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.487 2010/12/03 00:57:57 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.504 .
33 # Guess values for system-dependent variables and create Makefiles.
34 # Generated by GNU Autoconf 2.67.
37 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
38 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
42 # This configure script is free software; the Free Software Foundation
43 # gives unlimited permission to copy, distribute and modify it.
44 ## -------------------- ##
45 ## M4sh Initialization. ##
46 ## -------------------- ##
48 # Be more Bourne compatible
49 DUALCASE=1; export DUALCASE # for MKS sh
50 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
53 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
54 # is contrary to our usage. Disable this feature.
55 alias -g '${1+"$@"}'='"$@"'
58 case `(set -o) 2>/dev/null` in #(
70 # Printing a long string crashes Solaris 7 /usr/bin/printf.
71 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
72 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
73 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
74 # Prefer a ksh shell builtin over an external printf program on Solaris,
75 # but without wasting forks for bash or zsh.
76 if test -z "$BASH_VERSION$ZSH_VERSION" \
77 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
79 as_echo_n='print -rn --'
80 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
84 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
85 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
86 as_echo_n='/usr/ucb/echo -n'
88 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
93 expr "X$arg" : "X\\(.*\\)$as_nl";
94 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
96 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
99 as_echo_n='sh -c $as_echo_n_body as_echo'
102 as_echo='sh -c $as_echo_body as_echo'
105 # The user is always right.
106 if test "${PATH_SEPARATOR+set}" != set; then
108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
116 # We need space, tab and new line, in precisely that order. Quoting is
117 # there to prevent editors from complaining about space-tab.
118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
119 # splitting by setting IFS to empty value.)
122 # Find who we are. Look in the path if we contain no directory separator.
124 *[\\/]* ) as_myself=$0 ;;
125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 test -z "$as_dir" && as_dir=.
130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
136 # We did not find ourselves, most probably we were run as `sh COMMAND'
137 # in which case we are not to be found in the path.
138 if test "x$as_myself" = x; then
141 if test ! -f "$as_myself"; then
142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
146 # Unset variables that we do not need and which cause bugs (e.g. in
147 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
148 # suppresses any "Segmentation fault" message there. '((' could
149 # trigger a bug in pdksh 5.2.14.
150 for as_var in BASH_ENV ENV MAIL MAILPATH
151 do eval test x\${$as_var+set} = xset \
152 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
167 if test "x$CONFIG_SHELL" = x; then
168 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
171 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
172 # is contrary to our usage. Disable this feature.
173 alias -g '\${1+\"\$@\"}'='\"\$@\"'
176 case \`(set -o) 2>/dev/null\` in #(
184 as_required="as_fn_return () { (exit \$1); }
185 as_fn_success () { as_fn_return 0; }
186 as_fn_failure () { as_fn_return 1; }
187 as_fn_ret_success () { return 0; }
188 as_fn_ret_failure () { return 1; }
191 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
192 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
193 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
194 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
195 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
198 exitcode=1; echo positional parameters were not saved.
200 test x\$exitcode = x0 || exit 1"
201 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
202 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
203 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
204 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
205 test \$(( 1 + 1 )) = 2 || exit 1"
206 if (eval "$as_required") 2>/dev/null; then :
211 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 test -z "$as_dir" && as_dir=.
223 for as_base in sh bash ksh sh5; do
224 # Try only shells that exist, to save several forks.
225 as_shell=$as_dir/$as_base
226 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
227 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
228 CONFIG_SHELL=$as_shell as_have_required=yes
229 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
237 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
244 if test "x$CONFIG_SHELL" != x; then :
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
255 if test x$as_have_required = xno; then :
256 $as_echo "$0: This script requires a shell more modern than all"
257 $as_echo "$0: the shells that I found on your system."
258 if test x${ZSH_VERSION+set} = xset ; then
259 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
260 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
262 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
263 $0: including any error possibly output before this
264 $0: message. Then install a modern shell, or manually run
265 $0: the script under such a shell if you do have one."
271 SHELL=${CONFIG_SHELL-/bin/sh}
273 # Unset more variables known to interfere with behavior of common tools.
274 CLICOLOR_FORCE= GREP_OPTIONS=
275 unset CLICOLOR_FORCE GREP_OPTIONS
277 ## --------------------- ##
278 ## M4sh Shell Functions. ##
279 ## --------------------- ##
282 # Portably unset VAR.
285 { eval $1=; unset $1;}
289 # as_fn_set_status STATUS
290 # -----------------------
291 # Set $? to STATUS, without forking.
299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 # Create "$as_dir" as a directory, including parents if necessary.
314 -*) as_dir=./$as_dir;;
316 test -d "$as_dir" || eval $as_mkdir_p || {
320 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
323 as_dirs="'$as_qdir' $as_dirs"
324 as_dir=`$as_dirname -- "$as_dir" ||
325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
326 X"$as_dir" : 'X\(//\)[^/]' \| \
327 X"$as_dir" : 'X\(//\)$' \| \
328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
329 $as_echo X"$as_dir" |
330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 test -d "$as_dir" && break
349 test -z "$as_dirs" || eval "mkdir $as_dirs"
350 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
354 # as_fn_append VAR VALUE
355 # ----------------------
356 # Append the text in VALUE to the end of the definition contained in VAR. Take
357 # advantage of any shell optimizations that allow amortized linear growth over
358 # repeated appends, instead of the typical quadratic growth present in naive
360 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
361 eval 'as_fn_append ()
374 # Perform arithmetic evaluation on the ARGs, and store the result in the
375 # global $as_val. Take advantage of shells that can avoid forks. The arguments
376 # must be portable across $(()) and expr.
377 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
385 as_val=`expr "$@" || test $? -eq 1`
390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
391 # ----------------------------------------
392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
394 # script with STATUS, using 1 if that was 0.
397 as_status=$1; test $as_status -eq 0 && as_status=1
399 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
400 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
402 $as_echo "$as_me: error: $2" >&2
403 as_fn_exit $as_status
406 if expr a : '\(a\)' >/dev/null 2>&1 &&
407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
425 as_me=`$as_basename -- "$0" ||
426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
427 X"$0" : 'X\(//\)$' \| \
428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
430 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 # Avoid depending upon Character Ranges.
445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
448 as_cr_digits='0123456789'
449 as_cr_alnum=$as_cr_Letters$as_cr_digits
452 as_lineno_1=$LINENO as_lineno_1a=$LINENO
453 as_lineno_2=$LINENO as_lineno_2a=$LINENO
454 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
455 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
456 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
468 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 chmod +x "$as_me.lineno" ||
473 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475 # Don't try to exec as it changes $[0], causing all sort of problems
476 # (the dirname of $[0] is not the place where we might find the
477 # original and so on. Autoconf is especially sensitive to this).
479 # Exit status is that of the last command.
483 ECHO_C= ECHO_N= ECHO_T=
484 case `echo -n x` in #(((((
486 case `echo 'xy\c'` in
487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
489 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
496 rm -f conf$$ conf$$.exe conf$$.file
497 if test -d conf$$.dir; then
498 rm -f conf$$.dir/conf$$.file
501 mkdir conf$$.dir 2>/dev/null
503 if (echo >conf$$.file) 2>/dev/null; then
504 if ln -s conf$$.file conf$$ 2>/dev/null; then
506 # ... but there are two gotchas:
507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509 # In both cases, we have to default to `cp -p'.
510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
512 elif ln conf$$.file conf$$ 2>/dev/null; then
520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
521 rmdir conf$$.dir 2>/dev/null
523 if mkdir -p . 2>/dev/null; then
524 as_mkdir_p='mkdir -p "$as_dir"'
526 test -d ./-p && rmdir ./-p
530 if test -x / >/dev/null 2>&1; then
533 if ls -dL / >/dev/null 2>&1; then
540 if test -d "$1"; then
546 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
547 ???[sx]*):;;*)false;;esac;fi
551 as_executable_p=$as_test_x
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
572 if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
575 elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $echo works!
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
586 if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605 echo_test_string=`eval $cmd` &&
606 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
622 # So, first we look for a working echo in the user's PATH.
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
637 if test "X$echo" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
644 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
655 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 echo="$CONFIG_SHELL $0 --fallback-echo"
675 # maybe with a smaller string...
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
691 # Oops. We lost completely, so just stick with echo.
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 tagnames=${tagnames+${tagnames},}CXX
712 tagnames=${tagnames+${tagnames},}F77
714 test -n "$DJDIR" || exec 7<&0 </dev/null
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
725 ac_default_prefix=/usr/local
727 ac_config_libobj_dir=.
734 # Identity of this package.
742 ac_unique_file="lib/dns/name.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
756 # ifdef HAVE_STDLIB_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
779 ac_subst_vars='LTLIBOBJS
795 BIND9_BIND9_BUILDINCLUDE
796 BIND9_LWRES_BUILDINCLUDE
797 BIND9_DNS_BUILDINCLUDE
798 BIND9_ISCCFG_BUILDINCLUDE
799 BIND9_ISCCC_BUILDINCLUDE
800 BIND9_ISC_BUILDINCLUDE
803 XSLT_DB2LATEX_ADMONITIONS
805 XSLT_DOCBOOK_MAKETOC_XHTML
806 XSLT_DOCBOOK_MAKETOC_HTML
807 XSLT_DOCBOOK_CHUNKTOC_XHTML
808 XSLT_DOCBOOK_CHUNKTOC_HTML
809 XSLT_DOCBOOK_CHUNK_XHTML
810 XSLT_DOCBOOK_CHUNK_HTML
811 XSLT_DOCBOOK_STYLE_MAN
812 XSLT_DOCBOOK_STYLE_XHTML
813 XSLT_DOCBOOK_STYLE_HTML
821 ISC_PLATFORM_USEMACASM
822 ISC_PLATFORM_USESTDASM
823 ISC_PLATFORM_USEOSFASM
824 ISC_PLATFORM_USEGCCASM
825 ISC_PLATFORM_HAVEATOMICSTORE
826 ISC_PLATFORM_HAVECMPXCHG
827 ISC_PLATFORM_HAVEXADDQ
828 ISC_PLATFORM_HAVEXADD
829 ISC_PLATFORM_HAVEIFNAMETOINDEX
830 ISC_PLATFORM_HAVESTRINGSH
831 ISC_PLATFORM_BRACEPTHREADONCEINIT
832 IRS_PLATFORM_USEDECLSPEC
833 LWRES_PLATFORM_USEDECLSPEC
834 ISC_PLATFORM_USEDECLSPEC
835 ISC_PLATFORM_RLIMITTYPE
836 ISC_PLATFORM_HAVESYSUNH
837 LWRES_PLATFORM_QUADFORMAT
838 ISC_PLATFORM_QUADFORMAT
844 LWRES_PLATFORM_NEEDVSNPRINTF
845 ISC_PLATFORM_NEEDVSNPRINTF
846 LWRES_PLATFORM_NEEDSPRINTF
847 ISC_PLATFORM_NEEDSPRINTF
848 ISC_PLATFORM_NEEDSTRLCAT
849 ISC_PLATFORM_NEEDSTRLCPY
851 LWRES_PLATFORM_NEEDSTRTOUL
852 ISC_PLATFORM_NEEDSTRTOUL
853 ISC_PLATFORM_NEEDMEMMOVE
854 ISC_PLATFORM_NEEDSTRSEP
855 ISC_IRS_GETNAMEINFOSOCKLEN
856 ISC_LWRES_GETNAMEINFOPROTO
857 ISC_LWRES_GETADDRINFOPROTO
858 ISC_LWRES_GETIPNODEPROTO
860 ISC_LWRES_GETHOSTBYADDRVOID
861 ISC_LWRES_ENDNETENTINT
862 ISC_LWRES_SETNETENTINT
863 ISC_LWRES_GETNETBYADDRINADDR
864 ISC_LWRES_ENDHOSTENTINT
865 ISC_LWRES_SETHOSTENTINT
866 ISC_LWRES_NEEDRRSETINFO
868 ISC_LWRES_NEEDADDRINFO
869 ISC_PLATFORM_NEEDPORTT
870 ISC_PLATFORM_MSGHDRFLAVOR
871 LWRES_PLATFORM_HAVESALEN
872 ISC_PLATFORM_HAVESALEN
873 ISC_PLATFORM_NEEDPTON
874 ISC_PLATFORM_NEEDNTOP
875 ISC_PLATFORM_HAVEIF_LADDRCONF
876 ISC_PLATFORM_HAVEIF_LADDRREQ
877 ISC_PLATFORM_HAVESCOPEID
878 LWRES_HAVE_SIN6_SCOPE_ID
883 ISC_PLATFORM_FIXIN6ISADDR
884 ISC_PLATFORM_HAVEIN6PKTINFO
885 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
886 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
887 LWRES_PLATFORM_NEEDIN6ADDRANY
888 ISC_PLATFORM_NEEDIN6ADDRANY
889 LWRES_PLATFORM_HAVEINADDR6
890 ISC_PLATFORM_HAVEINADDR6
891 LWRES_PLATFORM_NEEDNETINET6IN6H
892 ISC_PLATFORM_NEEDNETINET6IN6H
893 LWRES_PLATFORM_NEEDNETINETIN6H
894 ISC_PLATFORM_NEEDNETINETIN6H
895 LWRES_PLATFORM_HAVEIPV6
896 ISC_PLATFORM_HAVEIPV6
902 LIBTOOL_ALLOW_UNDEFINED
912 ISC_PLATFORM_USEBACKTRACE
915 IRIX_DNSSEC_WARNINGS_HACK
922 ISC_PLATFORM_USETHREADS
928 ISC_PLATFORM_KRB5HEADER
929 ISC_PLATFORM_GSSAPIHEADER
930 ISC_PLATFORM_HAVEGSSAPI
935 ISC_PLATFORM_OPENSSLHASH
940 LWRES_PLATFORM_NEEDSYSSELECTH
941 ISC_PLATFORM_NEEDSYSSELECTH
942 ISC_PLATFORM_HAVEDEVPOLL
943 ISC_PLATFORM_HAVEEPOLL
944 ISC_PLATFORM_HAVEKQUEUE
945 ISC_PLATFORM_HAVELIFCONF
946 ISC_PLATFORM_NORETURN_POST
947 ISC_PLATFORM_NORETURN_PRE
948 ISC_PLATFORM_HAVELONGLONG
1023 program_transform_name
1034 ac_subst_files='BIND9_MAKE_INCLUDES
1045 enable_option_checking
1058 enable_openssl_version_check
1073 with_export_includedir
1097 ac_precious_vars='build_alias
1114 # Initialize some variables set by options.
1116 ac_init_version=false
1117 ac_unrecognized_opts=
1118 ac_unrecognized_sep=
1119 # The variables have the same names as the options, with
1120 # dashes changed to underlines.
1121 cache_file=/dev/null
1128 program_transform_name=s,x,x,
1136 # Installation directory options.
1137 # These are left unexpanded so users can "make install exec_prefix=/foo"
1138 # and all the variables that are supposed to be based on exec_prefix
1139 # by default will actually change.
1140 # Use braces instead of parens because sh, perl, etc. also accept them.
1141 # (The list follows the same order as the GNU Coding Standards.)
1142 bindir='${exec_prefix}/bin'
1143 sbindir='${exec_prefix}/sbin'
1144 libexecdir='${exec_prefix}/libexec'
1145 datarootdir='${prefix}/share'
1146 datadir='${datarootdir}'
1147 sysconfdir='${prefix}/etc'
1148 sharedstatedir='${prefix}/com'
1149 localstatedir='${prefix}/var'
1150 includedir='${prefix}/include'
1151 oldincludedir='/usr/include'
1152 docdir='${datarootdir}/doc/${PACKAGE}'
1153 infodir='${datarootdir}/info'
1158 libdir='${exec_prefix}/lib'
1159 localedir='${datarootdir}/locale'
1160 mandir='${datarootdir}/man'
1166 # If the previous option needs an argument, assign it.
1167 if test -n "$ac_prev"; then
1168 eval $ac_prev=\$ac_option
1174 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1179 # Accept the important Cygnus configure options, so we can diagnose typos.
1181 case $ac_dashdash$ac_option in
1185 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1187 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1188 bindir=$ac_optarg ;;
1190 -build | --build | --buil | --bui | --bu)
1191 ac_prev=build_alias ;;
1192 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1193 build_alias=$ac_optarg ;;
1195 -cache-file | --cache-file | --cache-fil | --cache-fi \
1196 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1197 ac_prev=cache_file ;;
1198 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1199 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1200 cache_file=$ac_optarg ;;
1202 --config-cache | -C)
1203 cache_file=config.cache ;;
1205 -datadir | --datadir | --datadi | --datad)
1207 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1208 datadir=$ac_optarg ;;
1210 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1211 | --dataroo | --dataro | --datar)
1212 ac_prev=datarootdir ;;
1213 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1214 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1215 datarootdir=$ac_optarg ;;
1217 -disable-* | --disable-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error $? "invalid feature name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1226 "enable_$ac_useropt"
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1231 eval enable_$ac_useropt=no ;;
1233 -docdir | --docdir | --docdi | --doc | --do)
1235 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1236 docdir=$ac_optarg ;;
1238 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1240 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1241 dvidir=$ac_optarg ;;
1243 -enable-* | --enable-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid feature name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "enable_$ac_useropt"
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval enable_$ac_useropt=\$ac_optarg ;;
1259 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1260 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1261 | --exec | --exe | --ex)
1262 ac_prev=exec_prefix ;;
1263 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1264 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1265 | --exec=* | --exe=* | --ex=*)
1266 exec_prefix=$ac_optarg ;;
1268 -gas | --gas | --ga | --g)
1269 # Obsolete; use --with-gas.
1272 -help | --help | --hel | --he | -h)
1273 ac_init_help=long ;;
1274 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1275 ac_init_help=recursive ;;
1276 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1277 ac_init_help=short ;;
1279 -host | --host | --hos | --ho)
1280 ac_prev=host_alias ;;
1281 -host=* | --host=* | --hos=* | --ho=*)
1282 host_alias=$ac_optarg ;;
1284 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1286 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1288 htmldir=$ac_optarg ;;
1290 -includedir | --includedir | --includedi | --included | --include \
1291 | --includ | --inclu | --incl | --inc)
1292 ac_prev=includedir ;;
1293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1294 | --includ=* | --inclu=* | --incl=* | --inc=*)
1295 includedir=$ac_optarg ;;
1297 -infodir | --infodir | --infodi | --infod | --info | --inf)
1299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1300 infodir=$ac_optarg ;;
1302 -libdir | --libdir | --libdi | --libd)
1304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1305 libdir=$ac_optarg ;;
1307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1308 | --libexe | --libex | --libe)
1309 ac_prev=libexecdir ;;
1310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1311 | --libexe=* | --libex=* | --libe=*)
1312 libexecdir=$ac_optarg ;;
1314 -localedir | --localedir | --localedi | --localed | --locale)
1315 ac_prev=localedir ;;
1316 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1317 localedir=$ac_optarg ;;
1319 -localstatedir | --localstatedir | --localstatedi | --localstated \
1320 | --localstate | --localstat | --localsta | --localst | --locals)
1321 ac_prev=localstatedir ;;
1322 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1323 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1324 localstatedir=$ac_optarg ;;
1326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1329 mandir=$ac_optarg ;;
1331 -nfp | --nfp | --nf)
1332 # Obsolete; use --without-fp.
1335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1336 | --no-cr | --no-c | -n)
1339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1345 | --oldin | --oldi | --old | --ol | --o)
1346 ac_prev=oldincludedir ;;
1347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1350 oldincludedir=$ac_optarg ;;
1352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1355 prefix=$ac_optarg ;;
1357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1358 | --program-pre | --program-pr | --program-p)
1359 ac_prev=program_prefix ;;
1360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1362 program_prefix=$ac_optarg ;;
1364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1365 | --program-suf | --program-su | --program-s)
1366 ac_prev=program_suffix ;;
1367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1369 program_suffix=$ac_optarg ;;
1371 -program-transform-name | --program-transform-name \
1372 | --program-transform-nam | --program-transform-na \
1373 | --program-transform-n | --program-transform- \
1374 | --program-transform | --program-transfor \
1375 | --program-transfo | --program-transf \
1376 | --program-trans | --program-tran \
1377 | --progr-tra | --program-tr | --program-t)
1378 ac_prev=program_transform_name ;;
1379 -program-transform-name=* | --program-transform-name=* \
1380 | --program-transform-nam=* | --program-transform-na=* \
1381 | --program-transform-n=* | --program-transform-=* \
1382 | --program-transform=* | --program-transfor=* \
1383 | --program-transfo=* | --program-transf=* \
1384 | --program-trans=* | --program-tran=* \
1385 | --progr-tra=* | --program-tr=* | --program-t=*)
1386 program_transform_name=$ac_optarg ;;
1388 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1390 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1391 pdfdir=$ac_optarg ;;
1393 -psdir | --psdir | --psdi | --psd | --ps)
1395 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399 | -silent | --silent | --silen | --sile | --sil)
1402 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1404 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1406 sbindir=$ac_optarg ;;
1408 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410 | --sharedst | --shareds | --shared | --share | --shar \
1412 ac_prev=sharedstatedir ;;
1413 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1417 sharedstatedir=$ac_optarg ;;
1419 -site | --site | --sit)
1421 -site=* | --site=* | --sit=*)
1424 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1426 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427 srcdir=$ac_optarg ;;
1429 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430 | --syscon | --sysco | --sysc | --sys | --sy)
1431 ac_prev=sysconfdir ;;
1432 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434 sysconfdir=$ac_optarg ;;
1436 -target | --target | --targe | --targ | --tar | --ta | --t)
1437 ac_prev=target_alias ;;
1438 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439 target_alias=$ac_optarg ;;
1441 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1444 -version | --version | --versio | --versi | --vers | -V)
1445 ac_init_version=: ;;
1448 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449 # Reject names that are not valid shell variable names.
1450 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451 as_fn_error $? "invalid package name: $ac_useropt"
1452 ac_useropt_orig=$ac_useropt
1453 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454 case $ac_user_opts in
1458 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459 ac_unrecognized_sep=', ';;
1461 eval with_$ac_useropt=\$ac_optarg ;;
1463 -without-* | --without-*)
1464 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465 # Reject names that are not valid shell variable names.
1466 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467 as_fn_error $? "invalid package name: $ac_useropt"
1468 ac_useropt_orig=$ac_useropt
1469 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470 case $ac_user_opts in
1474 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1475 ac_unrecognized_sep=', ';;
1477 eval with_$ac_useropt=no ;;
1480 # Obsolete; use --with-x.
1483 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1484 | --x-incl | --x-inc | --x-in | --x-i)
1485 ac_prev=x_includes ;;
1486 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1487 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1488 x_includes=$ac_optarg ;;
1490 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1491 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1492 ac_prev=x_libraries ;;
1493 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1494 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1495 x_libraries=$ac_optarg ;;
1497 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1498 Try \`$0 --help' for more information"
1502 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1503 # Reject names that are not valid shell variable names.
1504 case $ac_envvar in #(
1505 '' | [0-9]* | *[!_$as_cr_alnum]* )
1506 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1508 eval $ac_envvar=\$ac_optarg
1509 export $ac_envvar ;;
1512 # FIXME: should be removed in autoconf 3.0.
1513 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1514 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1515 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1516 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1522 if test -n "$ac_prev"; then
1523 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1524 as_fn_error $? "missing argument to $ac_option"
1527 if test -n "$ac_unrecognized_opts"; then
1528 case $enable_option_checking in
1530 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1531 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1535 # Check all directory arguments for consistency.
1536 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1537 datadir sysconfdir sharedstatedir localstatedir includedir \
1538 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1539 libdir localedir mandir
1541 eval ac_val=\$$ac_var
1542 # Remove trailing slashes.
1545 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1546 eval $ac_var=\$ac_val;;
1548 # Be sure to have absolute directory names.
1550 [\\/$]* | ?:[\\/]* ) continue;;
1551 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1553 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1556 # There might be people who depend on the old broken behavior: `$host'
1557 # used to hold the argument of --host etc.
1558 # FIXME: To remove some day.
1561 target=$target_alias
1563 # FIXME: To remove some day.
1564 if test "x$host_alias" != x; then
1565 if test "x$build_alias" = x; then
1566 cross_compiling=maybe
1567 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1568 If a cross compiler is detected then cross compile mode will be used" >&2
1569 elif test "x$build_alias" != "x$host_alias"; then
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1577 test "$silent" = yes && exec 6>/dev/null
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583 as_fn_error $? "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585 as_fn_error $? "pwd does not report name of working directory"
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590 ac_srcdir_defaulted=yes
1591 # Try the directory containing this script, then the parent directory.
1592 ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594 X"$as_myself" : 'X\(//\)[^/]' \| \
1595 X"$as_myself" : 'X\(//\)$' \| \
1596 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_myself" |
1598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1616 if test ! -r "$srcdir/$ac_unique_file"; then
1620 ac_srcdir_defaulted=no
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1626 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1628 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1640 for ac_var in $ac_precious_vars; do
1641 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_env_${ac_var}_value=\$${ac_var}
1643 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1648 # Report the --help message.
1650 if test "$ac_init_help" = "long"; then
1651 # Omit some internal or obsolete options to make the list less imposing.
1652 # This message is too long to be a string in the A/UX 3.1 sh.
1654 \`configure' configures this package to adapt to many kinds of systems.
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE. See below for descriptions of some of the useful variables.
1661 Defaults for the options are specified in brackets.
1664 -h, --help display this help and exit
1665 --help=short display options specific to this package
1666 --help=recursive display the short help of all the included packages
1667 -V, --version display version information and exit
1668 -q, --quiet, --silent do not print \`checking ...' messages
1669 --cache-file=FILE cache test results in FILE [disabled]
1670 -C, --config-cache alias for \`--cache-file=config.cache'
1671 -n, --no-create do not create output files
1672 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1674 Installation directories:
1675 --prefix=PREFIX install architecture-independent files in PREFIX
1676 [$ac_default_prefix]
1677 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1680 By default, \`make install' will install all the files in
1681 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1682 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683 for instance \`--prefix=\$HOME'.
1685 For better control, use the options below.
1687 Fine tuning of the installation directories:
1688 --bindir=DIR user executables [EPREFIX/bin]
1689 --sbindir=DIR system admin executables [EPREFIX/sbin]
1690 --libexecdir=DIR program executables [EPREFIX/libexec]
1691 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1694 --libdir=DIR object code libraries [EPREFIX/lib]
1695 --includedir=DIR C header files [PREFIX/include]
1696 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1697 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1698 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1699 --infodir=DIR info documentation [DATAROOTDIR/info]
1700 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1701 --mandir=DIR man documentation [DATAROOTDIR/man]
1702 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1703 --htmldir=DIR html documentation [DOCDIR]
1704 --dvidir=DIR dvi documentation [DOCDIR]
1705 --pdfdir=DIR pdf documentation [DOCDIR]
1706 --psdir=DIR ps documentation [DOCDIR]
1712 --build=BUILD configure for building on BUILD [guessed]
1713 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1717 if test -n "$ac_init_help"; then
1722 --disable-option-checking ignore unrecognized --enable/--with options
1723 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1724 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1725 --enable-shared[=PKGS] build shared libraries [default=yes]
1726 --enable-static[=PKGS] build static libraries [default=yes]
1727 --enable-fast-install[=PKGS]
1728 optimize for fast installation [default=yes]
1729 --disable-libtool-lock avoid locking (might break parallel builds)
1730 --enable-libbind deprecated
1731 --enable-kqueue use BSD kqueue when available [default=yes]
1732 --enable-epoll use Linux epoll when available [default=auto]
1733 --enable-devpoll use /dev/poll when available [default=yes]
1734 --enable-openssl-version-check
1735 Check OpenSSL Version [default=yes]
1736 --enable-openssl-hash use OpenSSL for hash functions [default=no]
1737 --enable-threads enable multithreading
1738 --enable-largefile 64-bit file support
1739 --enable-backtrace log stack backtrace on abort [default=yes]
1740 --enable-symtable use internal symbol table for backtrace
1741 [all|minimal(default)|none]
1742 --enable-exportlib build exportable library (GNU make required)
1744 --enable-ipv6 use IPv6 default=autodetect
1745 --enable-getifaddrs Enable the use of getifaddrs() [yes|no].
1746 --disable-isc-spnego use SPNEGO from GSSAPI library
1747 --disable-chroot disable chroot
1748 --disable-linux-caps disable linux capabilities
1749 --enable-atomic enable machine specific atomic operations
1750 [default=autodetect]
1751 --enable-fixed-rrset enable fixed rrset ordering
1753 --enable-filter-aaaa enable filtering of AAAA records over IPv4
1757 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1758 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1759 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1760 --with-pic try to use only PIC/non-PIC objects [default=use
1762 --with-tags[=TAGS] include additional configurations [automatic]
1763 --with-openssl=PATH Build with OpenSSL yes|no|path.
1764 (Required for DNSSEC)
1765 --with-pkcs11=PATH Build with PKCS11 support yes|no|path
1766 (PATH is for the PKCS11 provider)
1767 --with-gssapi=PATH Specify path for system-supplied GSSAPI
1768 --with-randomdev=PATH Specify path for random device
1769 --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)
1770 --with-libxml2=PATH Build with libxml2 library yes|no|path
1771 --with-purify=PATH use Rational purify
1772 --with-libtool use GNU libtool
1773 --with-export-libdir=PATH
1774 installation directory for the export library
1776 --with-export-includedir=PATH
1777 installation directory for the header files of the
1778 export library [PREFIX/include/bind9]
1779 --with-kame=PATH use Kame IPv6 default path /usr/local/v6
1780 --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets
1781 --with-idn=MPREFIX enable IDN support using idnkit default PREFIX
1782 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
1783 --with-iconv=LIBSPEC specify iconv library default -liconv
1784 --with-idnlib=ARG specify libidnkit
1785 --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path.
1786 (Required to use Postgres with DLZ)
1787 --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path.
1788 (Required to use MySQL with DLZ)
1789 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path.
1790 (Required to use Berkeley DB with DLZ)
1791 --with-dlz-filesystem=PATH Build with filesystem DLZ driver yes|no.
1792 (Required to use file system driver with DLZ)
1793 --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path.
1794 (Required to use LDAP with DLZ)
1795 --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path.
1796 (Required to use ODBC with DLZ)
1797 --with-dlz-stub=PATH Build with stub DLZ driver yes|no.
1798 (Required to use stub driver with DLZ)
1799 --with-make-clean Run "make clean" at end of configure [yes|no].
1801 Some influential environment variables:
1802 CC C compiler command
1803 CFLAGS C compiler flags
1804 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1805 nonstandard directory <lib dir>
1806 LIBS libraries to pass to the linker, e.g. -l<library>
1807 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1808 you have headers in a nonstandard directory <include dir>
1810 CXX C++ compiler command
1811 CXXFLAGS C++ compiler flags
1812 CXXCPP C++ preprocessor
1813 F77 Fortran 77 compiler command
1814 FFLAGS Fortran 77 compiler flags
1816 Use these variables to override the choices made by `configure' or to help
1817 it to find libraries and programs with nonstandard names/locations.
1819 Report bugs to the package provider.
1824 if test "$ac_init_help" = "recursive"; then
1825 # If there are subdirs, report their specific --help.
1826 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1827 test -d "$ac_dir" ||
1828 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1836 # A ".." for each directory in $ac_dir_suffix.
1837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1838 case $ac_top_builddir_sub in
1839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1843 ac_abs_top_builddir=$ac_pwd
1844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1845 # for backward compatibility:
1846 ac_top_builddir=$ac_top_build_prefix
1849 .) # We are building in place.
1851 ac_top_srcdir=$ac_top_builddir_sub
1852 ac_abs_top_srcdir=$ac_pwd ;;
1853 [\\/]* | ?:[\\/]* ) # Absolute name.
1854 ac_srcdir=$srcdir$ac_dir_suffix;
1855 ac_top_srcdir=$srcdir
1856 ac_abs_top_srcdir=$srcdir ;;
1858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1859 ac_top_srcdir=$ac_top_build_prefix$srcdir
1860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1864 cd "$ac_dir" || { ac_status=$?; continue; }
1865 # Check for guested configure.
1866 if test -f "$ac_srcdir/configure.gnu"; then
1868 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1869 elif test -f "$ac_srcdir/configure"; then
1871 $SHELL "$ac_srcdir/configure" --help=recursive
1873 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1875 cd "$ac_pwd" || { ac_status=$?; break; }
1879 test -n "$ac_init_help" && exit $ac_status
1880 if $ac_init_version; then
1883 generated by GNU Autoconf 2.67
1885 Copyright (C) 2010 Free Software Foundation, Inc.
1886 This configure script is free software; the Free Software Foundation
1887 gives unlimited permission to copy, distribute and modify it.
1892 ## ------------------------ ##
1893 ## Autoconf initialization. ##
1894 ## ------------------------ ##
1896 # ac_fn_c_try_compile LINENO
1897 # --------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_compile ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext
1903 if { { ac_try="$ac_compile"
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_compile") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest.$ac_objext; then :
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_c_try_compile
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 $as_test_x conftest$ac_exeext
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_c_try_link
1980 # ac_fn_c_try_cpp LINENO
1981 # ----------------------
1982 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_cpp conftest.$ac_ext"
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } > conftest.i && {
2002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2003 test ! -s conftest.err
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 as_fn_set_status $ac_retval
2017 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2020 # the include files in INCLUDES and setting the cache variable VAR
2022 ac_fn_c_check_header_mongrel ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if eval "test \"\${$3+set}\"" = set; then :
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval "test \"\${$3+set}\"" = set; then :
2029 $as_echo_n "(cached) " >&6
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2035 # Is the header compilable?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2037 $as_echo_n "checking $2 usability... " >&6; }
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_header_compiler=yes
2046 ac_header_compiler=no
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2050 $as_echo "$ac_header_compiler" >&6; }
2052 # Is the header present?
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2054 $as_echo_n "checking $2 presence... " >&6; }
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 if ac_fn_c_try_cpp "$LINENO"; then :
2060 ac_header_preproc=yes
2062 ac_header_preproc=no
2064 rm -f conftest.err conftest.i conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2066 $as_echo "$ac_header_preproc" >&6; }
2068 # So? What about this header?
2069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2072 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2078 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2080 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2082 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2084 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval "test \"\${$3+set}\"" = set; then :
2092 $as_echo_n "(cached) " >&6
2094 eval "$3=\$ac_header_compiler"
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2102 } # ac_fn_c_check_header_mongrel
2104 # ac_fn_c_try_run LINENO
2105 # ----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2107 # that executables *can* be run.
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_link"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_link") 2>&5
2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2122 { { case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_try") 2>&5
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; }; }; then :
2134 $as_echo "$as_me: program exited with status $ac_status" >&5
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2138 ac_retval=$ac_status
2140 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 as_fn_set_status $ac_retval
2146 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists and can be compiled using the include files in
2149 # INCLUDES, setting the cache variable VAR accordingly.
2150 ac_fn_c_check_header_compile ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval "test \"\${$3+set}\"" = set; then :
2156 $as_echo_n "(cached) " >&6
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2163 if ac_fn_c_try_compile "$LINENO"; then :
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_header_compile
2177 # ac_fn_c_check_func LINENO FUNC VAR
2178 # ----------------------------------
2179 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2180 ac_fn_c_check_func ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval "test \"\${$3+set}\"" = set; then :
2186 $as_echo_n "(cached) " >&6
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2192 #define $2 innocuous_$2
2194 /* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $2 (); below.
2196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2197 <limits.h> exists even on freestanding compilers. */
2200 # include <limits.h>
2202 # include <assert.h>
2207 /* Override any GCC internal prototype to avoid an error.
2208 Use char because int might match the return type of a GCC
2209 builtin and then its argument prototype would still apply. */
2214 /* The GNU C library defines this for functions which it implements
2215 to always fail with ENOSYS. Some functions are actually named
2216 something starting with __ and the normal name is an alias. */
2217 #if defined __stub_$2 || defined __stub___$2
2229 if ac_fn_c_try_link "$LINENO"; then :
2234 rm -f core conftest.err conftest.$ac_objext \
2235 conftest$ac_exeext conftest.$ac_ext
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 } # ac_fn_c_check_func
2244 # ac_fn_cxx_try_compile LINENO
2245 # ----------------------------
2246 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2247 ac_fn_cxx_try_compile ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 rm -f conftest.$ac_objext
2251 if { { ac_try="$ac_compile"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_compile") 2>conftest.err
2260 if test -s conftest.err; then
2261 grep -v '^ *+' conftest.err >conftest.er1
2262 cat conftest.er1 >&5
2263 mv -f conftest.er1 conftest.err
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; } && {
2267 test -z "$ac_cxx_werror_flag" ||
2268 test ! -s conftest.err
2269 } && test -s conftest.$ac_objext; then :
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278 as_fn_set_status $ac_retval
2280 } # ac_fn_cxx_try_compile
2282 # ac_fn_cxx_try_cpp LINENO
2283 # ------------------------
2284 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2285 ac_fn_cxx_try_cpp ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 if { { ac_try="$ac_cpp conftest.$ac_ext"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294 $as_echo "$ac_try_echo"; } >&5
2295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2297 if test -s conftest.err; then
2298 grep -v '^ *+' conftest.err >conftest.er1
2299 cat conftest.er1 >&5
2300 mv -f conftest.er1 conftest.err
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; } > conftest.i && {
2304 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2305 test ! -s conftest.err
2309 $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_cxx_try_cpp
2319 # ac_fn_cxx_try_link LINENO
2320 # -------------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_cxx_try_link ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_cxx_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 $as_test_x conftest$ac_exeext
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 as_fn_set_status $ac_retval
2363 } # ac_fn_cxx_try_link
2365 # ac_fn_f77_try_compile LINENO
2366 # ----------------------------
2367 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2368 ac_fn_f77_try_compile ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 rm -f conftest.$ac_objext
2372 if { { ac_try="$ac_compile"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_compile") 2>conftest.err
2381 if test -s conftest.err; then
2382 grep -v '^ *+' conftest.err >conftest.er1
2383 cat conftest.er1 >&5
2384 mv -f conftest.er1 conftest.err
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } && {
2388 test -z "$ac_f77_werror_flag" ||
2389 test ! -s conftest.err
2390 } && test -s conftest.$ac_objext; then :
2393 $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 as_fn_set_status $ac_retval
2401 } # ac_fn_f77_try_compile
2403 # ac_fn_f77_try_link LINENO
2404 # -------------------------
2405 # Try to link conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_f77_try_link ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 rm -f conftest.$ac_objext conftest$ac_exeext
2410 if { { ac_try="$ac_link"
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_link") 2>conftest.err
2419 if test -s conftest.err; then
2420 grep -v '^ *+' conftest.err >conftest.er1
2421 cat conftest.er1 >&5
2422 mv -f conftest.er1 conftest.err
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; } && {
2426 test -z "$ac_f77_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest$ac_exeext && {
2429 test "$cross_compiling" = yes ||
2430 $as_test_x conftest$ac_exeext
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441 # interfere with the next link command; also delete a directory that is
2442 # left behind by Apple's compiler. We do this before executing the actions.
2443 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 as_fn_set_status $ac_retval
2447 } # ac_fn_f77_try_link
2449 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2450 # -------------------------------------------
2451 # Tests whether TYPE exists after having included INCLUDES, setting cache
2452 # variable VAR accordingly.
2453 ac_fn_c_check_type ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if eval "test \"\${$3+set}\"" = set; then :
2459 $as_echo_n "(cached) " >&6
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2487 if ac_fn_c_try_compile "$LINENO"; then :
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501 } # ac_fn_c_check_type
2502 cat >config.log <<_ACEOF
2503 This file contains any messages produced by compilers while
2504 running configure, to aid debugging if configure makes a mistake.
2506 It was created by $as_me, which was
2507 generated by GNU Autoconf 2.67. Invocation command line was
2519 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2520 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2521 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2522 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2523 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2525 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2526 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2528 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2529 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2530 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2531 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2532 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2533 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2534 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 $as_echo "PATH: $as_dir"
2559 # Keep a trace of the command line.
2560 # Strip out --no-create and --no-recursion so they do not pile up.
2561 # Strip out --silent because we don't want to record it for future runs.
2562 # Also quote any args containing shell meta-characters.
2563 # Make two passes to allow for proper duplicate-argument suppression.
2567 ac_must_keep_next=false
2573 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2575 | -silent | --silent | --silen | --sile | --sil)
2578 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2583 as_fn_append ac_configure_args1 " '$ac_arg'"
2584 if test $ac_must_keep_next = true; then
2585 ac_must_keep_next=false # Got value, back to normal.
2588 *=* | --config-cache | -C | -disable-* | --disable-* \
2589 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2590 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2591 | -with-* | --with-* | -without-* | --without-* | --x)
2592 case "$ac_configure_args0 " in
2593 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2596 -* ) ac_must_keep_next=true ;;
2599 as_fn_append ac_configure_args " '$ac_arg'"
2604 { ac_configure_args0=; unset ac_configure_args0;}
2605 { ac_configure_args1=; unset ac_configure_args1;}
2607 # When interrupted or exit'd, cleanup temporary files, and complete
2608 # config.log. We remove comments because anyway the quotes in there
2609 # would cause problems or look ugly.
2610 # WARNING: Use '\'' to represent an apostrophe within the trap.
2611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2612 trap 'exit_status=$?
2613 # Save into config.log some information that might help in debugging.
2617 $as_echo "## ---------------- ##
2618 ## Cache variables. ##
2619 ## ---------------- ##"
2621 # The following way of writing the cache mishandles newlines in values,
2623 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2624 eval ac_val=\$$ac_var
2628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2632 _ | IFS | as_nl) ;; #(
2633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2634 *) { eval $ac_var=; unset $ac_var;} ;;
2639 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2640 *${as_nl}ac_space=\ *)
2642 "s/'\''/'\''\\\\'\'''\''/g;
2643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2653 $as_echo "## ----------------- ##
2654 ## Output variables. ##
2655 ## ----------------- ##"
2657 for ac_var in $ac_subst_vars
2659 eval ac_val=\$$ac_var
2661 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2663 $as_echo "$ac_var='\''$ac_val'\''"
2667 if test -n "$ac_subst_files"; then
2668 $as_echo "## ------------------- ##
2669 ## File substitutions. ##
2670 ## ------------------- ##"
2672 for ac_var in $ac_subst_files
2674 eval ac_val=\$$ac_var
2676 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2678 $as_echo "$ac_var='\''$ac_val'\''"
2683 if test -s confdefs.h; then
2684 $as_echo "## ----------- ##
2691 test "$ac_signal" != 0 &&
2692 $as_echo "$as_me: caught signal $ac_signal"
2693 $as_echo "$as_me: exit $exit_status"
2695 rm -f core *.core core.conftest.* &&
2696 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2699 for ac_signal in 1 2 13 15; do
2700 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2705 rm -f -r conftest* confdefs.h
2707 $as_echo "/* confdefs.h */" > confdefs.h
2709 # Predefined preprocessor variables.
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_NAME "$PACKAGE_NAME"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_STRING "$PACKAGE_STRING"
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_URL "$PACKAGE_URL"
2736 # Let the site file select an alternate cache file if it wants to.
2737 # Prefer an explicitly selected file to automatically selected ones.
2740 if test -n "$CONFIG_SITE"; then
2741 # We do not want a PATH search for config.site.
2742 case $CONFIG_SITE in #((
2743 -*) ac_site_file1=./$CONFIG_SITE;;
2744 */*) ac_site_file1=$CONFIG_SITE;;
2745 *) ac_site_file1=./$CONFIG_SITE;;
2747 elif test "x$prefix" != xNONE; then
2748 ac_site_file1=$prefix/share/config.site
2749 ac_site_file2=$prefix/etc/config.site
2751 ac_site_file1=$ac_default_prefix/share/config.site
2752 ac_site_file2=$ac_default_prefix/etc/config.site
2754 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2756 test "x$ac_site_file" = xNONE && continue
2757 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2759 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2760 sed 's/^/| /' "$ac_site_file" >&5
2762 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "failed to load site script $ac_site_file
2765 See \`config.log' for more details" "$LINENO" 5; }
2769 if test -r "$cache_file"; then
2770 # Some versions of bash will fail to source /dev/null (special files
2771 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2772 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2774 $as_echo "$as_me: loading cache $cache_file" >&6;}
2776 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2777 *) . "./$cache_file";;
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2782 $as_echo "$as_me: creating cache $cache_file" >&6;}
2786 # Check that the precious variables saved in the cache have kept the same
2788 ac_cache_corrupted=false
2789 for ac_var in $ac_precious_vars; do
2790 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2791 eval ac_new_set=\$ac_env_${ac_var}_set
2792 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2793 eval ac_new_val=\$ac_env_${ac_var}_value
2794 case $ac_old_set,$ac_new_set in
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2797 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2798 ac_cache_corrupted=: ;;
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2801 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2802 ac_cache_corrupted=: ;;
2805 if test "x$ac_old_val" != "x$ac_new_val"; then
2806 # differences in whitespace do not lead to failure.
2807 ac_old_val_w=`echo x $ac_old_val`
2808 ac_new_val_w=`echo x $ac_new_val`
2809 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2811 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2812 ac_cache_corrupted=:
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2815 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2816 eval $ac_var=\$ac_old_val
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2819 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2821 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2824 # Pass precious variables to config.status.
2825 if test "$ac_new_set" = set; then
2827 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2828 *) ac_arg=$ac_var=$ac_new_val ;;
2830 case " $ac_configure_args " in
2831 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2832 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2836 if $ac_cache_corrupted; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2840 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2841 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2843 ## -------------------- ##
2844 ## Main body of script. ##
2845 ## -------------------- ##
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 ac_config_headers="$ac_config_headers config.h"
2860 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2861 if test -f "$ac_dir/install-sh"; then
2863 ac_install_sh="$ac_aux_dir/install-sh -c"
2865 elif test -f "$ac_dir/install.sh"; then
2867 ac_install_sh="$ac_aux_dir/install.sh -c"
2869 elif test -f "$ac_dir/shtool"; then
2871 ac_install_sh="$ac_aux_dir/shtool install -c"
2875 if test -z "$ac_aux_dir"; then
2876 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2879 # These three variables are undocumented and unsupported,
2880 # and are intended to be withdrawn in a future Autoconf release.
2881 # They can cause serious problems if a builder's source tree is in a directory
2882 # whose full name contains unusual characters.
2883 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2884 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2885 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2888 # Make sure we can run config.sub.
2889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2890 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2893 $as_echo_n "checking build system type... " >&6; }
2894 if test "${ac_cv_build+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
2897 ac_build_alias=$build_alias
2898 test "x$ac_build_alias" = x &&
2899 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2900 test "x$ac_build_alias" = x &&
2901 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2902 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2903 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2907 $as_echo "$ac_cv_build" >&6; }
2908 case $ac_cv_build in
2910 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2913 ac_save_IFS=$IFS; IFS='-'
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2923 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2927 $as_echo_n "checking host system type... " >&6; }
2928 if test "${ac_cv_host+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2931 if test "x$host_alias" = x; then
2932 ac_cv_host=$ac_cv_build
2934 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2935 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2940 $as_echo "$ac_cv_host" >&6; }
2943 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2946 ac_save_IFS=$IFS; IFS='-'
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2956 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2961 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2963 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2964 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2965 $as_echo_n "(cached) " >&6
2967 cat >conftest.make <<\_ACEOF
2970 @echo '@@@%%%=$(MAKE)=@@@%%%'
2972 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2973 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2975 eval ac_cv_prog_make_${ac_make}_set=yes;;
2977 eval ac_cv_prog_make_${ac_make}_set=no;;
2981 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 SET_MAKE="MAKE=${MAKE-make}"
2993 # GNU libtool support
2997 # Just set the maximum command line length for sunos as it otherwise
2998 # takes a exceptionally long time to work it out. Required for libtool.
3000 lt_cv_sys_max_cmd_len=4096;
3004 # Check whether --enable-shared was given.
3005 if test "${enable_shared+set}" = set; then :
3006 enableval=$enable_shared; p=${PACKAGE-default}
3008 yes) enable_shared=yes ;;
3009 no) enable_shared=no ;;
3012 # Look at the argument we got. We use all the common list separators.
3013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3014 for pkg in $enableval; do
3016 if test "X$pkg" = "X$p"; then
3028 # Check whether --enable-static was given.
3029 if test "${enable_static+set}" = set; then :
3030 enableval=$enable_static; p=${PACKAGE-default}
3032 yes) enable_static=yes ;;
3033 no) enable_static=no ;;
3036 # Look at the argument we got. We use all the common list separators.
3037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3038 for pkg in $enableval; do
3040 if test "X$pkg" = "X$p"; then
3052 # Check whether --enable-fast-install was given.
3053 if test "${enable_fast_install+set}" = set; then :
3054 enableval=$enable_fast_install; p=${PACKAGE-default}
3056 yes) enable_fast_install=yes ;;
3057 no) enable_fast_install=no ;;
3059 enable_fast_install=no
3060 # Look at the argument we got. We use all the common list separators.
3061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3062 for pkg in $enableval; do
3064 if test "X$pkg" = "X$p"; then
3065 enable_fast_install=yes
3072 enable_fast_install=yes
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3120 if test -z "$ac_cv_prog_CC"; then
3122 # Extract the first word of "gcc", so it can be a program name with args.
3123 set dummy gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC="gcc"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3158 if test "x$ac_ct_CC" = x; then
3161 case $cross_compiling:$ac_tool_warned in
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3173 if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_CC="${ac_tool_prefix}cc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3214 if test -z "$CC"; then
3215 # Extract the first word of "cc", so it can be a program name with args.
3216 set dummy cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if test "${ac_cv_prog_CC+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test $ac_prog_rejected = yes; then
3246 # We found a bogon in the path, so make sure we never use it.
3247 set dummy $ac_cv_prog_CC
3249 if test $# != 0; then
3250 # We chose a different compiler from the bogus one.
3251 # However, it has the same basename, so the bogon will be chosen
3252 # first if we set CC to just the basename; use the full file name.
3254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 for ac_prog in cl.exe
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$CC" && break
3314 if test -z "$CC"; then
3316 for ac_prog in cl.exe
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_ac_ct_CC="$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 test -n "$ac_ct_CC" && break
3358 if test "x$ac_ct_CC" = x; then
3361 case $cross_compiling:$ac_tool_warned in
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned=yes ;;
3374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "no acceptable C compiler found in \$PATH
3377 See \`config.log' for more details" "$LINENO" 5; }
3379 # Provide some information about the compiler.
3380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3383 for ac_option in --version -v -V -qversion; do
3384 { { ac_try="$ac_compiler $ac_option >&5"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3393 if test -s conftest.err; then
3395 ... rest of stderr output deleted ...
3396 10q' conftest.err >conftest.er1
3397 cat conftest.er1 >&5
3399 rm -f conftest.er1 conftest.err
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421 $as_echo_n "checking whether the C compiler works... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3428 for ac_file in $ac_files
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3437 if { { ac_try="$ac_link_default"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link_default") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
3448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3453 for ac_file in $ac_files ''
3455 test -f "$ac_file" || continue
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3460 # We found the default executable, but exeext='' is most
3464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468 # We set ac_cv_exeext here because the later test for it is not
3469 # safe: cross compilers may not add the suffix if given an `-o'
3470 # argument, so we may need to know it at that point already.
3471 # Even if this section looks crufty: it has the advantage of
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3483 if test -z "$ac_file"; then :
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error 77 "C compiler cannot create executables
3492 See \`config.log' for more details" "$LINENO" 5; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495 $as_echo "yes" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498 $as_echo_n "checking for C compiler default output file name... " >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500 $as_echo "$ac_file" >&6; }
3501 ac_exeext=$ac_cv_exeext
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3506 $as_echo_n "checking for suffix of executables... " >&6; }
3507 if { { ac_try="$ac_link"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3520 # work properly (i.e., refer to `conftest.exe'), while it won't with
3522 for ac_file in conftest.exe conftest conftest.*; do
3523 test -f "$ac_file" || continue
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 rm -f conftest conftest$ac_cv_exeext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3539 $as_echo "$ac_cv_exeext" >&6; }
3541 rm -f conftest.$ac_ext
3542 EXEEXT=$ac_cv_exeext
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3550 FILE *f = fopen ("conftest.out", "w");
3551 return ferror (f) || fclose (f) != 0;
3557 ac_clean_files="$ac_clean_files conftest.out"
3558 # Check that the compiler produces executables we can run. If not, either
3559 # the compiler is broken, or we cross compile.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561 $as_echo_n "checking whether we are cross compiling... " >&6; }
3562 if test "$cross_compiling" != yes; then
3563 { { ac_try="$ac_link"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 if { ac_try='./conftest$ac_cv_exeext'
3575 { { case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_try") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; }; then
3587 if test "$cross_compiling" = maybe; then
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot run C compiled programs.
3593 If you meant to cross compile, use \`--host'.
3594 See \`config.log' for more details" "$LINENO" 5; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599 $as_echo "$cross_compiling" >&6; }
3601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602 ac_clean_files=$ac_clean_files_save
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3604 $as_echo_n "checking for suffix of object files... " >&6; }
3605 if test "${ac_cv_objext+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3619 rm -f conftest.o conftest.obj
3620 if { { ac_try="$ac_compile"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_compile") 2>&5
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
3631 for ac_file in conftest.o conftest.obj conftest.*; do
3632 test -f "$ac_file" || continue;
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "cannot compute suffix of object files: cannot compile
3646 See \`config.log' for more details" "$LINENO" 5; }
3648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3651 $as_echo "$ac_cv_objext" >&6; }
3652 OBJEXT=$ac_cv_objext
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3656 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3673 if ac_fn_c_try_compile "$LINENO"; then :
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3689 ac_test_CFLAGS=${CFLAGS+set}
3690 ac_save_CFLAGS=$CFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3693 if test "${ac_cv_prog_cc_g+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_save_c_werror_flag=$ac_c_werror_flag
3697 ac_c_werror_flag=yes
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 if ac_fn_c_try_compile "$LINENO"; then :
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3726 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_c_try_compile "$LINENO"; then :
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3763 if test "$GCC" = yes; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 ac_cv_prog_cc_c89=no
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3780 #include <sys/types.h>
3781 #include <sys/stat.h>
3782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3783 struct buf { int x; };
3784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785 static char *e (p, i)
3791 static char *f (char * (*g) (char **, int), char **p, ...)
3796 s = g (p, va_arg (v,int));
3801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3802 function prototypes and stuff, but not '\xHH' hex character constants.
3803 These don't provoke an error unfortunately, instead are silently treated
3804 as 'x'. The following induces an error, until -std is added to get
3805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3806 array size at least. It's necessary to write '\x00'==0 to get something
3807 that's true only with -std. */
3808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3810 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3811 inside strings and character constants. */
3813 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3815 int test (int i, double x);
3816 struct s1 {int (*f) (int a);};
3817 struct s2 {int (*f) (double a);};
3818 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3824 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3829 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3832 CC="$ac_save_CC $ac_arg"
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_cv_prog_cc_c89=$ac_arg
3836 rm -f core conftest.err conftest.$ac_objext
3837 test "x$ac_cv_prog_cc_c89" != "xno" && break
3839 rm -f conftest.$ac_ext
3844 case "x$ac_cv_prog_cc_c89" in
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3847 $as_echo "none needed" >&6; } ;;
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3850 $as_echo "unsupported" >&6; } ;;
3852 CC="$CC $ac_cv_prog_cc_c89"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3856 if test "x$ac_cv_prog_cc_c89" != xno; then :
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3868 if test "${lt_cv_path_SED+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3871 # Loop through the user's path and test for sed and gsed.
3872 # Then use that list of sed's as ones to test for truncation.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for lt_ac_prog in sed gsed; do
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3881 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3889 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3890 # along with /bin/sed that truncates output.
3891 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3892 test ! -f $lt_ac_sed && continue
3893 cat /dev/null > conftest.in
3895 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3896 # Check for GNU sed and select it if it is found.
3897 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3898 lt_cv_path_SED=$lt_ac_sed
3902 cat conftest.in conftest.in >conftest.tmp
3903 mv conftest.tmp conftest.in
3904 cp conftest.in conftest.nl
3906 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3907 cmp -s conftest.out conftest.nl || break
3908 # 10000 chars as input seems more than enough
3909 test $lt_ac_count -gt 10 && break
3910 lt_ac_count=`expr $lt_ac_count + 1`
3911 if test $lt_ac_count -gt $lt_ac_max; then
3912 lt_ac_max=$lt_ac_count
3913 lt_cv_path_SED=$lt_ac_sed
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3923 $as_echo "$SED" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3927 if test "${ac_cv_path_GREP+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -z "$GREP"; then
3931 ac_path_GREP_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937 test -z "$as_dir" && as_dir=.
3938 for ac_prog in grep ggrep; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3942 # Check for GNU ac_path_GREP and select it if it is found.
3943 # Check for GNU $ac_path_GREP
3944 case `"$ac_path_GREP" --version 2>&1` in
3946 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3949 $as_echo_n 0123456789 >"conftest.in"
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 $as_echo 'GREP' >> "conftest.nl"
3956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958 as_fn_arith $ac_count + 1 && ac_count=$as_val
3959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_GREP="$ac_path_GREP"
3962 ac_path_GREP_max=$ac_count
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970 $ac_path_GREP_found && break 3
3975 if test -z "$ac_cv_path_GREP"; then
3976 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3979 ac_cv_path_GREP=$GREP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3984 $as_echo "$ac_cv_path_GREP" >&6; }
3985 GREP="$ac_cv_path_GREP"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3989 $as_echo_n "checking for egrep... " >&6; }
3990 if test "${ac_cv_path_EGREP+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994 then ac_cv_path_EGREP="$GREP -E"
3996 if test -z "$EGREP"; then
3997 ac_path_EGREP_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in egrep; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4008 # Check for GNU ac_path_EGREP and select it if it is found.
4009 # Check for GNU $ac_path_EGREP
4010 case `"$ac_path_EGREP" --version 2>&1` in
4012 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015 $as_echo_n 0123456789 >"conftest.in"
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'EGREP' >> "conftest.nl"
4022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024 as_fn_arith $ac_count + 1 && ac_count=$as_val
4025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_EGREP="$ac_path_EGREP"
4028 ac_path_EGREP_max=$ac_count
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 $ac_path_EGREP_found && break 3
4041 if test -z "$ac_cv_path_EGREP"; then
4042 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045 ac_cv_path_EGREP=$EGREP
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4051 $as_echo "$ac_cv_path_EGREP" >&6; }
4052 EGREP="$ac_cv_path_EGREP"
4056 # Check whether --with-gnu-ld was given.
4057 if test "${with_gnu_ld+set}" = set; then :
4058 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4064 if test "$GCC" = yes; then
4065 # Check if gcc -print-prog-name=ld gives a path.
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4067 $as_echo_n "checking for ld used by $CC... " >&6; }
4070 # gcc leaves a trailing carriage return which upsets mingw
4071 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4073 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4076 # Accept absolute paths.
4078 re_direlt='/[^/][^/]*/\.\./'
4079 # Canonicalize the pathname of ld
4080 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4081 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4082 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4084 test -z "$LD" && LD="$ac_prog"
4087 # If it fails, then pretend we aren't using GCC.
4091 # If it is relative, then search for the first ld in PATH.
4095 elif test "$with_gnu_ld" = yes; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4097 $as_echo_n "checking for GNU ld... " >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4100 $as_echo_n "checking for non-GNU ld... " >&6; }
4102 if test "${lt_cv_path_LD+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4105 if test -z "$LD"; then
4106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4107 for ac_dir in $PATH; do
4109 test -z "$ac_dir" && ac_dir=.
4110 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4111 lt_cv_path_LD="$ac_dir/$ac_prog"
4112 # Check to see if the program is GNU ld. I'd rather use --version,
4113 # but apparently some variants of GNU ld only accept -v.
4114 # Break only if it was the GNU/non-GNU ld that we prefer.
4115 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4116 *GNU* | *'with BFD'*)
4117 test "$with_gnu_ld" != no && break
4120 test "$with_gnu_ld" != yes && break
4127 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4132 if test -n "$LD"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4134 $as_echo "$LD" >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4139 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4141 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4142 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4146 case `$LD -v 2>&1 </dev/null` in
4147 *GNU* | *'with BFD'*)
4148 lt_cv_prog_gnu_ld=yes
4151 lt_cv_prog_gnu_ld=no
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4156 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4157 with_gnu_ld=$lt_cv_prog_gnu_ld
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4161 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4162 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4165 lt_cv_ld_reload_flag='-r'
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4168 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4169 reload_flag=$lt_cv_ld_reload_flag
4170 case $reload_flag in
4172 *) reload_flag=" $reload_flag" ;;
4174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4177 if test "$GCC" = yes; then
4178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4186 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4187 if test "${lt_cv_path_NM+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -n "$NM"; then
4191 # Let the user override the test.
4194 lt_nm_to_check="${ac_tool_prefix}nm"
4195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4196 lt_nm_to_check="$lt_nm_to_check nm"
4198 for lt_tmp_nm in $lt_nm_to_check; do
4199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4202 test -z "$ac_dir" && ac_dir=.
4203 tmp_nm="$ac_dir/$lt_tmp_nm"
4204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4205 # Check to see if the nm accepts a BSD-compat flag.
4206 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4207 # nm: unknown option "B" ignored
4208 # Tru64's nm complains that /dev/null is an invalid object file
4209 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4210 */dev/null* | *'Invalid file or object type'*)
4211 lt_cv_path_NM="$tmp_nm -B"
4215 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4217 lt_cv_path_NM="$tmp_nm -p"
4221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4222 continue # so that we can try to find one that supports BSD flags
4231 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4235 $as_echo "$lt_cv_path_NM" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4239 $as_echo_n "checking whether ln -s works... " >&6; }
4241 if test "$LN_S" = "ln -s"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 $as_echo "yes" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4246 $as_echo "no, using $LN_S" >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4250 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4251 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4254 lt_cv_file_magic_cmd='$MAGIC_CMD'
4255 lt_cv_file_magic_test_file=
4256 lt_cv_deplibs_check_method='unknown'
4257 # Need to set the preceding variable on all platforms that support
4258 # interlibrary dependencies.
4259 # 'none' -- dependencies not supported.
4260 # `unknown' -- same as none, but documents that we really don't know.
4261 # 'pass_all' -- all dependencies passed with no checks.
4262 # 'test_compile' -- check by making test program.
4263 # 'file_magic [[regex]]' -- check by looking for files in library path
4264 # which responds to the $file_magic_cmd with a given extended regex.
4265 # If you have `file' or equivalent on your system and you're not sure
4266 # whether `pass_all' will *always* work, you probably want this one.
4270 lt_cv_deplibs_check_method=pass_all
4274 lt_cv_deplibs_check_method=pass_all
4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4279 lt_cv_file_magic_cmd='/usr/bin/file -L'
4280 lt_cv_file_magic_test_file=/shlib/libc.so
4284 # func_win32_libid is a shell function defined in ltmain.sh
4285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4286 lt_cv_file_magic_cmd='func_win32_libid'
4290 # Base MSYS/MinGW do not provide the 'file' command needed by
4291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4292 # unless we find 'file', for example because we are cross-compiling.
4293 if ( file / ) >/dev/null 2>&1; then
4294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4295 lt_cv_file_magic_cmd='func_win32_libid'
4297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4298 lt_cv_file_magic_cmd='$OBJDUMP -f'
4302 darwin* | rhapsody*)
4303 lt_cv_deplibs_check_method=pass_all
4306 freebsd* | dragonfly*)
4307 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4310 # Not sure whether the presence of OpenBSD here was a mistake.
4311 # Let's accept both of them until this is cleared up.
4312 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4313 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4318 lt_cv_deplibs_check_method=pass_all
4323 lt_cv_deplibs_check_method=pass_all
4326 hpux10.20* | hpux11*)
4327 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4331 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4334 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]'
4335 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4339 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4349 irix5* | irix6* | nonstopux*)
4351 *-32|*"-32 ") libmagic=32-bit;;
4352 *-n32|*"-n32 ") libmagic=N32;;
4353 *-64|*"-64 ") libmagic=64-bit;;
4354 *) libmagic=never-match;;
4356 lt_cv_deplibs_check_method=pass_all
4359 # This must be Linux ELF.
4360 linux* | k*bsd*-gnu)
4361 lt_cv_deplibs_check_method=pass_all
4365 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4374 lt_cv_file_magic_cmd=/usr/bin/file
4375 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4379 lt_cv_deplibs_check_method=unknown
4383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4390 osf3* | osf4* | osf5*)
4391 lt_cv_deplibs_check_method=pass_all
4395 lt_cv_deplibs_check_method=pass_all
4399 lt_cv_deplibs_check_method=pass_all
4403 case $host_vendor in
4405 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]'
4406 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4409 lt_cv_deplibs_check_method=pass_all
4412 lt_cv_file_magic_cmd='/bin/file'
4413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4416 lt_cv_file_magic_cmd='/bin/file'
4417 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4418 lt_cv_file_magic_test_file=/lib/libc.so
4421 lt_cv_deplibs_check_method=pass_all
4424 lt_cv_deplibs_check_method=pass_all
4429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4430 lt_cv_deplibs_check_method=pass_all
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4436 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4437 file_magic_cmd=$lt_cv_file_magic_cmd
4438 deplibs_check_method=$lt_cv_deplibs_check_method
4439 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4444 # If no C compiler was specified, use CC.
4447 # If no C compiler flags were specified, use CFLAGS.
4448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4450 # Allow CC to be a program name with arguments.
4454 # Check whether --enable-libtool-lock was given.
4455 if test "${enable_libtool_lock+set}" = set; then :
4456 enableval=$enable_libtool_lock;
4459 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4461 # Some flags need to be propagated to the compiler or linker for good
4465 # Find out which ABI we are using.
4466 echo 'int i;' > conftest.$ac_ext
4467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4468 (eval $ac_compile) 2>&5
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }; then
4472 case `/usr/bin/file conftest.$ac_objext` in
4484 # Find out which ABI we are using.
4485 echo '#line 4485 "configure"' > conftest.$ac_ext
4486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4487 (eval $ac_compile) 2>&5
4489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }; then
4491 if test "$lt_cv_prog_gnu_ld" = yes; then
4492 case `/usr/bin/file conftest.$ac_objext` in
4494 LD="${LD-ld} -melf32bsmip"
4497 LD="${LD-ld} -melf32bmipn32"
4500 LD="${LD-ld} -melf64bmip"
4504 case `/usr/bin/file conftest.$ac_objext` in
4520 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4521 s390*-*linux*|sparc*-*linux*)
4522 # Find out which ABI we are using.
4523 echo 'int i;' > conftest.$ac_ext
4524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4525 (eval $ac_compile) 2>&5
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; then
4529 case `/usr/bin/file conftest.o` in
4532 x86_64-*kfreebsd*-gnu)
4533 LD="${LD-ld} -m elf_i386_fbsd"
4536 LD="${LD-ld} -m elf_i386"
4538 ppc64-*linux*|powerpc64-*linux*)
4539 LD="${LD-ld} -m elf32ppclinux"
4542 LD="${LD-ld} -m elf_s390"
4545 LD="${LD-ld} -m elf32_sparc"
4551 x86_64-*kfreebsd*-gnu)
4552 LD="${LD-ld} -m elf_x86_64_fbsd"
4555 LD="${LD-ld} -m elf_x86_64"
4557 ppc*-*linux*|powerpc*-*linux*)
4558 LD="${LD-ld} -m elf64ppc"
4561 LD="${LD-ld} -m elf64_s390"
4564 LD="${LD-ld} -m elf64_sparc"
4574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4575 SAVE_CFLAGS="$CFLAGS"
4576 CFLAGS="$CFLAGS -belf"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4578 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4579 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_c_try_link "$LINENO"; then :
4600 lt_cv_cc_needs_belf=yes
4602 lt_cv_cc_needs_belf=no
4604 rm -f core conftest.err conftest.$ac_objext \
4605 conftest$ac_exeext conftest.$ac_ext
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4614 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4617 CFLAGS="$SAVE_CFLAGS"
4621 # Find out which ABI we are using.
4622 echo 'int i;' > conftest.$ac_ext
4623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4624 (eval $ac_compile) 2>&5
4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }; then
4628 case `/usr/bin/file conftest.o` in
4630 case $lt_cv_prog_gnu_ld in
4631 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4633 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4647 need_locks="$enable_libtool_lock"
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4656 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4657 # On Suns, sometimes $CPP names a directory.
4658 if test -n "$CPP" && test -d "$CPP"; then
4661 if test -z "$CPP"; then
4662 if test "${ac_cv_prog_CPP+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 # Double quotes because CPP needs to be expanded
4666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4669 for ac_c_preproc_warn_flag in '' yes
4671 # Use a header file that comes with gcc, so configuring glibc
4672 # with a fresh cross-compiler works.
4673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674 # <limits.h> exists even on freestanding compilers.
4675 # On the NeXT, cc -E runs the code through the compiler's parser,
4676 # not just through cpp. "Syntax error" is here to catch this case.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4680 # include <limits.h>
4682 # include <assert.h>
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4689 # Broken: fails on valid input.
4692 rm -f conftest.err conftest.i conftest.$ac_ext
4694 # OK, works on sane cases. Now check whether nonexistent headers
4695 # can be detected and how.
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <ac_nonexistent.h>
4700 if ac_fn_c_try_cpp "$LINENO"; then :
4701 # Broken: success on invalid input.
4704 # Passes both tests.
4708 rm -f conftest.err conftest.i conftest.$ac_ext
4711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4712 rm -f conftest.i conftest.err conftest.$ac_ext
4713 if $ac_preproc_ok; then :
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4726 $as_echo "$CPP" >&6; }
4728 for ac_c_preproc_warn_flag in '' yes
4730 # Use a header file that comes with gcc, so configuring glibc
4731 # with a fresh cross-compiler works.
4732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4733 # <limits.h> exists even on freestanding compilers.
4734 # On the NeXT, cc -E runs the code through the compiler's parser,
4735 # not just through cpp. "Syntax error" is here to catch this case.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4739 # include <limits.h>
4741 # include <assert.h>
4745 if ac_fn_c_try_cpp "$LINENO"; then :
4748 # Broken: fails on valid input.
4751 rm -f conftest.err conftest.i conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 #include <ac_nonexistent.h>
4759 if ac_fn_c_try_cpp "$LINENO"; then :
4760 # Broken: success on invalid input.
4763 # Passes both tests.
4767 rm -f conftest.err conftest.i conftest.$ac_ext
4770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4771 rm -f conftest.i conftest.err conftest.$ac_ext
4772 if $ac_preproc_ok; then :
4775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4778 See \`config.log' for more details" "$LINENO" 5; }
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4789 $as_echo_n "checking for ANSI C header files... " >&6; }
4790 if test "${ac_cv_header_stdc+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_header_stdc=yes
4811 ac_cv_header_stdc=no
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 if test $ac_cv_header_stdc = yes; then
4816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4823 $EGREP "memchr" >/dev/null 2>&1; then :
4826 ac_cv_header_stdc=no
4832 if test $ac_cv_header_stdc = yes; then
4833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 $EGREP "free" >/dev/null 2>&1; then :
4843 ac_cv_header_stdc=no
4849 if test $ac_cv_header_stdc = yes; then
4850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4851 if test "$cross_compiling" = yes; then :
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4858 #if ((' ' & 0x0FF) == 0x020)
4859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862 # define ISLOWER(c) \
4863 (('a' <= (c) && (c) <= 'i') \
4864 || ('j' <= (c) && (c) <= 'r') \
4865 || ('s' <= (c) && (c) <= 'z'))
4866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4874 for (i = 0; i < 256; i++)
4875 if (XOR (islower (i), ISLOWER (i))
4876 || toupper (i) != TOUPPER (i))
4881 if ac_fn_c_try_run "$LINENO"; then :
4884 ac_cv_header_stdc=no
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4887 conftest.$ac_objext conftest.beam conftest.$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4893 $as_echo "$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4896 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4901 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4902 inttypes.h stdint.h unistd.h
4904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4905 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4908 cat >>confdefs.h <<_ACEOF
4909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 for ac_header in dlfcn.h
4919 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4920 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4921 cat >>confdefs.h <<_ACEOF
4922 #define HAVE_DLFCN_H 1
4930 ac_cpp='$CXXCPP $CPPFLAGS'
4931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4934 if test -z "$CXX"; then
4935 if test -n "$CCC"; then
4938 if test -n "$ac_tool_prefix"; then
4939 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_CXX+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$CXX"; then
4949 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 if test -n "$CXX"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4971 $as_echo "$CXX" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4978 test -n "$CXX" && break
4981 if test -z "$CXX"; then
4983 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4985 # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4992 if test -n "$ac_ct_CXX"; then
4993 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_ac_ct_CXX="$ac_prog"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5013 if test -n "$ac_ct_CXX"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5015 $as_echo "$ac_ct_CXX" >&6; }
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5022 test -n "$ac_ct_CXX" && break
5025 if test "x$ac_ct_CXX" = x; then
5028 case $cross_compiling:$ac_tool_warned in
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032 ac_tool_warned=yes ;;
5040 # Provide some information about the compiler.
5041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5044 for ac_option in --version -v -V -qversion; do
5045 { { ac_try="$ac_compiler $ac_option >&5"
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5054 if test -s conftest.err; then
5056 ... rest of stderr output deleted ...
5057 10q' conftest.err >conftest.er1
5058 cat conftest.er1 >&5
5060 rm -f conftest.er1 conftest.err
5061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5062 test $ac_status = 0; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5066 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5067 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5084 if ac_fn_cxx_try_compile "$LINENO"; then :
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5094 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5095 if test $ac_compiler_gnu = yes; then
5100 ac_test_CXXFLAGS=${CXXFLAGS+set}
5101 ac_save_CXXFLAGS=$CXXFLAGS
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5103 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5104 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5108 ac_cxx_werror_flag=yes
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5122 if ac_fn_cxx_try_compile "$LINENO"; then :
5123 ac_cv_prog_cxx_g=yes
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5137 if ac_fn_cxx_try_compile "$LINENO"; then :
5140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5153 if ac_fn_cxx_try_compile "$LINENO"; then :
5154 ac_cv_prog_cxx_g=yes
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5164 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5165 if test "$ac_test_CXXFLAGS" = set; then
5166 CXXFLAGS=$ac_save_CXXFLAGS
5167 elif test $ac_cv_prog_cxx_g = yes; then
5168 if test "$GXX" = yes; then
5174 if test "$GXX" = yes; then
5181 ac_cpp='$CXXCPP $CPPFLAGS'
5182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5188 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5189 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5190 (test "X$CXX" != "Xg++"))) ; then
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5197 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5198 if test -z "$CXXCPP"; then
5199 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5202 # Double quotes because CXXCPP needs to be expanded
5203 for CXXCPP in "$CXX -E" "/lib/cpp"
5206 for ac_cxx_preproc_warn_flag in '' yes
5208 # Use a header file that comes with gcc, so configuring glibc
5209 # with a fresh cross-compiler works.
5210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211 # <limits.h> exists even on freestanding compilers.
5212 # On the NeXT, cc -E runs the code through the compiler's parser,
5213 # not just through cpp. "Syntax error" is here to catch this case.
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 # include <limits.h>
5219 # include <assert.h>
5223 if ac_fn_cxx_try_cpp "$LINENO"; then :
5226 # Broken: fails on valid input.
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5231 # OK, works on sane cases. Now check whether nonexistent headers
5232 # can be detected and how.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <ac_nonexistent.h>
5237 if ac_fn_cxx_try_cpp "$LINENO"; then :
5238 # Broken: success on invalid input.
5241 # Passes both tests.
5245 rm -f conftest.err conftest.i conftest.$ac_ext
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.i conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then :
5255 ac_cv_prog_CXXCPP=$CXXCPP
5258 CXXCPP=$ac_cv_prog_CXXCPP
5260 ac_cv_prog_CXXCPP=$CXXCPP
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5263 $as_echo "$CXXCPP" >&6; }
5265 for ac_cxx_preproc_warn_flag in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5276 # include <limits.h>
5278 # include <assert.h>
5282 if ac_fn_cxx_try_cpp "$LINENO"; then :
5285 # Broken: fails on valid input.
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5290 # OK, works on sane cases. Now check whether nonexistent headers
5291 # can be detected and how.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5296 if ac_fn_cxx_try_cpp "$LINENO"; then :
5297 # Broken: success on invalid input.
5300 # Passes both tests.
5304 rm -f conftest.err conftest.i conftest.$ac_ext
5307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308 rm -f conftest.i conftest.err conftest.$ac_ext
5309 if $ac_preproc_ok; then :
5312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5314 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5315 See \`config.log' for more details" "$LINENO" 5; }
5319 ac_cpp='$CXXCPP $CPPFLAGS'
5320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5328 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5329 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5331 if test -n "$ac_tool_prefix"; then
5332 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 pgfortran pgf95 lf95 ftn
5334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_F77+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$F77"; then
5342 ac_cv_prog_F77="$F77" # Let the user override the test.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 if test -n "$F77"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5364 $as_echo "$F77" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 test -n "$F77" && break
5374 if test -z "$F77"; then
5376 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 pgfortran pgf95 lf95 ftn
5378 # Extract the first word of "$ac_prog", so it can be a program name with args.
5379 set dummy $ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5385 if test -n "$ac_ct_F77"; then
5386 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_ac_ct_F77="$ac_prog"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5406 if test -n "$ac_ct_F77"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5408 $as_echo "$ac_ct_F77" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 test -n "$ac_ct_F77" && break
5418 if test "x$ac_ct_F77" = x; then
5421 case $cross_compiling:$ac_tool_warned in
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5432 # Provide some information about the compiler.
5433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5436 for ac_option in --version -v -V -qversion; do
5437 { { ac_try="$ac_compiler $ac_option >&5"
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5443 $as_echo "$ac_try_echo"; } >&5
5444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5446 if test -s conftest.err; then
5448 ... rest of stderr output deleted ...
5449 10q' conftest.err >conftest.er1
5450 cat conftest.er1 >&5
5452 rm -f conftest.er1 conftest.err
5453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454 test $ac_status = 0; }
5458 # If we don't use `.F' as extension, the preprocessor is not run on the
5459 # input file. (Note that this only needs to work for GNU compilers.)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5463 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5464 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 cat > conftest.$ac_ext <<_ACEOF
5475 if ac_fn_f77_try_compile "$LINENO"; then :
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5485 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5487 ac_test_FFLAGS=${FFLAGS+set}
5488 ac_save_FFLAGS=$FFLAGS
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5491 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5492 if test "${ac_cv_prog_f77_g+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5496 cat > conftest.$ac_ext <<_ACEOF
5501 if ac_fn_f77_try_compile "$LINENO"; then :
5502 ac_cv_prog_f77_g=yes
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5510 $as_echo "$ac_cv_prog_f77_g" >&6; }
5511 if test "$ac_test_FFLAGS" = set; then
5512 FFLAGS=$ac_save_FFLAGS
5513 elif test $ac_cv_prog_f77_g = yes; then
5514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5520 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5527 if test $ac_compiler_gnu = yes; then
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5541 # find the maximum length of command line arguments
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5543 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5544 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
5552 # On DJGPP, this test can blow up pretty badly due to problems in libc
5553 # (any single argument exceeding 2000 bytes causes a buffer overrun
5554 # during glob expansion). Even if it were fixed, the result of this
5555 # check would be larger than it should be.
5556 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5560 # Under GNU Hurd, this test is not required because there is
5561 # no limit to the length of command line arguments.
5562 # Libtool will interpret -1 as no limit whatsoever
5563 lt_cv_sys_max_cmd_len=-1;
5567 # On Win9x/ME, this test blows up -- it succeeds, but takes
5568 # about 5 minutes as the teststring grows exponentially.
5569 # Worse, since 9x/ME are not pre-emptively multitasking,
5570 # you end up with a "frozen" computer, even though with patience
5571 # the test eventually succeeds (with a max line length of 256k).
5572 # Instead, let's just punt: use the minimum linelength reported by
5573 # all of the supported platforms: 8192 (on NT/2K/XP).
5574 lt_cv_sys_max_cmd_len=8192;
5578 # On AmigaOS with pdksh, this test takes hours, literally.
5579 # So we just punt and use a minimum line length of 8192.
5580 lt_cv_sys_max_cmd_len=8192;
5583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5584 # This has been around since 386BSD, at least. Likely further.
5585 if test -x /sbin/sysctl; then
5586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5587 elif test -x /usr/sbin/sysctl; then
5588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5592 # And add a safety zone
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5599 lt_cv_sys_max_cmd_len=196608
5603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5605 # nice to cause kernel panics so lets avoid the loop below.
5606 # First set a reasonable default.
5607 lt_cv_sys_max_cmd_len=16384
5609 if test -x /sbin/sysconfig; then
5610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5616 lt_cv_sys_max_cmd_len=102400
5618 sysv5* | sco5v6* | sysv4.2uw2*)
5619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5620 if test -n "$kargmax"; then
5621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5623 lt_cv_sys_max_cmd_len=32768
5627 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5628 if test -n "$lt_cv_sys_max_cmd_len"; then
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5634 = "XX$teststring") >/dev/null 2>&1 &&
5635 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5636 lt_cv_sys_max_cmd_len=$new_result &&
5637 test $i != 17 # 1/2 MB should be enough
5640 teststring=$teststring$teststring
5643 # Add a significant safety factor because C++ compilers can tack on massive
5644 # amounts of additional arguments before passing them to the linker.
5645 # It appears as though 1/2 is a usable value.
5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653 if test -n $lt_cv_sys_max_cmd_len ; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5655 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5658 $as_echo "none" >&6; }
5665 # Check for command to grab the raw symbol name followed by C symbol from nm.
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5667 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5668 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5672 # These are sane defaults that work on at least a few old systems.
5673 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5675 # Character class describing NM global symbol codes.
5676 symcode='[BCDEGRST]'
5678 # Regexp to match symbols that can be accessed directly from C.
5679 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5681 # Transform an extracted symbol line into a proper C declaration
5682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5684 # Transform an extracted symbol line into symbol name and symbol address
5685 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'"
5687 # Define system-specific variables.
5692 cygwin* | mingw* | pw32*)
5693 symcode='[ABCDGISTW]'
5695 hpux*) # Its linker distinguishes data from code symbols
5696 if test "$host_cpu" = ia64; then
5697 symcode='[ABCDEGRST]'
5699 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5700 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'"
5702 linux* | k*bsd*-gnu)
5703 if test "$host_cpu" = ia64; then
5704 symcode='[ABCDGIRSTW]'
5705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5706 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'"
5710 symcode='[BCDEGRST]'
5713 symcode='[BCDEGQRST]'
5724 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5732 # Handle CRLF in mingw tool chain
5736 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5740 # If we're using GNU nm, then use its standard symbol codes.
5741 case `$NM -V 2>&1` in
5742 *GNU* | *'with BFD'*)
5743 symcode='[ABCDGIRSTW]' ;;
5746 # Try without a prefix undercore, then with it.
5747 for ac_symprfx in "" "_"; do
5749 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5750 symxfrm="\\1 $ac_symprfx\\2 \\2"
5752 # Write the raw and C identifiers.
5753 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5755 # Check to see that the pipe works correctly.
5759 cat > conftest.$ac_ext <<EOF
5764 void nm_test_func(){}
5768 int main(){nm_test_var='a';nm_test_func();return(0);}
5771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5772 (eval $ac_compile) 2>&5
5774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775 test $ac_status = 0; }; then
5776 # Now try to grab the symbols.
5778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5779 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782 test $ac_status = 0; } && test -s "$nlist"; then
5783 # Try sorting and uniquifying the output.
5784 if sort "$nlist" | uniq > "$nlist"T; then
5785 mv -f "$nlist"T "$nlist"
5790 # Make sure that we snagged all the symbols we need.
5791 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5792 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5793 cat <<EOF > conftest.$ac_ext
5799 # Now generate the symbol file.
5800 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5802 cat <<EOF >> conftest.$ac_ext
5803 #if defined (__STDC__) && __STDC__
5804 # define lt_ptr_t void *
5806 # define lt_ptr_t char *
5810 /* The mapping between symbol names and symbols. */
5815 lt_preloaded_symbols[] =
5818 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5819 cat <<\EOF >> conftest.$ac_ext
5827 # Now try linking the two files.
5828 mv conftest.$ac_objext conftstm.$ac_objext
5829 lt_save_LIBS="$LIBS"
5830 lt_save_CFLAGS="$CFLAGS"
5831 LIBS="conftstm.$ac_objext"
5832 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5834 (eval $ac_link) 2>&5
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5840 LIBS="$lt_save_LIBS"
5841 CFLAGS="$lt_save_CFLAGS"
5843 echo "cannot find nm_test_func in $nlist" >&5
5846 echo "cannot find nm_test_var in $nlist" >&5
5849 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5852 echo "$progname: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 rm -rf conftest* conftst*
5857 # Do not use the global_symbol_pipe unless it works.
5858 if test "$pipe_works" = yes; then
5861 lt_cv_sys_global_symbol_pipe=
5867 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5868 lt_cv_sys_global_symbol_to_cdecl=
5870 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5872 $as_echo "failed" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5875 $as_echo "ok" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5879 $as_echo_n "checking for objdir... " >&6; }
5880 if test "${lt_cv_objdir+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5883 rm -f .libs 2>/dev/null
5884 mkdir .libs 2>/dev/null
5885 if test -d .libs; then
5888 # MS-DOS does not allow filenames that begin with a dot.
5891 rmdir .libs 2>/dev/null
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5894 $as_echo "$lt_cv_objdir" >&6; }
5895 objdir=$lt_cv_objdir
5903 # AIX sometimes has problems with the GCC collect2 program. For some
5904 # reason, if we set the COLLECT_NAMES environment variable, the problems
5905 # vanish in a puff of smoke.
5906 if test "X${COLLECT_NAMES+set}" != Xset; then
5908 export COLLECT_NAMES
5913 # Sed substitution that helps us do robust quoting. It backslashifies
5914 # metacharacters that are still active within double-quoted strings.
5915 Xsed='sed -e 1s/^X//'
5916 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5918 # Same as above, but do not quote variable references.
5919 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5921 # Sed substitution to delay expansion of an escaped shell variable in a
5922 # double_quote_subst'ed string.
5923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5925 # Sed substitution to avoid accidental globbing in evaled expressions
5926 no_glob_subst='s/\*/\\\*/g'
5932 default_ofile=libtool
5933 can_build_shared=yes
5935 # All known linkers require a `.a' archive for static linking (except MSVC,
5936 # which needs '.lib').
5938 ltmain="$ac_aux_dir/ltmain.sh"
5939 ofile="$default_ofile"
5940 with_gnu_ld="$lt_cv_prog_gnu_ld"
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}ar; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_AR+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -n "$AR"; then
5951 ac_cv_prog_AR="$AR" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_AR="${ac_tool_prefix}ar"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 if test -n "$AR"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5973 $as_echo "$AR" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_AR"; then
5983 # Extract the first word of "ar", so it can be a program name with args.
5984 set dummy ar; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5990 if test -n "$ac_ct_AR"; then
5991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_AR="ar"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6011 if test -n "$ac_ct_AR"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6013 $as_echo "$ac_ct_AR" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_AR" = x; then
6022 case $cross_compiling:$ac_tool_warned in
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$RANLIB"; then
6043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 RANLIB=$ac_cv_prog_RANLIB
6063 if test -n "$RANLIB"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6065 $as_echo "$RANLIB" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_RANLIB"; then
6074 ac_ct_RANLIB=$RANLIB
6075 # Extract the first word of "ranlib", so it can be a program name with args.
6076 set dummy ranlib; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$ac_ct_RANLIB"; then
6083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_RANLIB="ranlib"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6103 if test -n "$ac_ct_RANLIB"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6105 $as_echo "$ac_ct_RANLIB" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_RANLIB" = x; then
6114 case $cross_compiling:$ac_tool_warned in
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6120 RANLIB=$ac_ct_RANLIB
6123 RANLIB="$ac_cv_prog_RANLIB"
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}strip; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_STRIP+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$STRIP"; then
6135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 STRIP=$ac_cv_prog_STRIP
6155 if test -n "$STRIP"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6157 $as_echo "$STRIP" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6165 if test -z "$ac_cv_prog_STRIP"; then
6167 # Extract the first word of "strip", so it can be a program name with args.
6168 set dummy strip; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$ac_ct_STRIP"; then
6175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_STRIP="strip"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6195 if test -n "$ac_ct_STRIP"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6197 $as_echo "$ac_ct_STRIP" >&6; }
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6203 if test "x$ac_ct_STRIP" = x; then
6206 case $cross_compiling:$ac_tool_warned in
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6215 STRIP="$ac_cv_prog_STRIP"
6220 old_CFLAGS="$CFLAGS"
6222 # Set sane defaults for various variables
6223 test -z "$AR" && AR=ar
6224 test -z "$AR_FLAGS" && AR_FLAGS=cru
6225 test -z "$AS" && AS=as
6226 test -z "$CC" && CC=cc
6227 test -z "$LTCC" && LTCC=$CC
6228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6229 test -z "$DLLTOOL" && DLLTOOL=dlltool
6230 test -z "$LD" && LD=ld
6231 test -z "$LN_S" && LN_S="ln -s"
6232 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6233 test -z "$NM" && NM=nm
6234 test -z "$SED" && SED=sed
6235 test -z "$OBJDUMP" && OBJDUMP=objdump
6236 test -z "$RANLIB" && RANLIB=:
6237 test -z "$STRIP" && STRIP=:
6238 test -z "$ac_objext" && ac_objext=o
6240 # Determine commands to create old-style static archives.
6241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6242 old_postinstall_cmds='chmod 644 $oldlib'
6243 old_postuninstall_cmds=
6245 if test -n "$RANLIB"; then
6248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6257 for cc_temp in $compiler""; do
6259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6265 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6268 # Only perform the check for file, if the check method requires it
6269 case $deplibs_check_method in
6271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6273 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6274 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6282 lt_save_MAGIC_CMD="$MAGIC_CMD"
6283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6285 for ac_dir in $ac_dummy; do
6287 test -z "$ac_dir" && ac_dir=.
6288 if test -f $ac_dir/${ac_tool_prefix}file; then
6289 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6290 if test -n "$file_magic_test_file"; then
6291 case $deplibs_check_method in
6293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6296 $EGREP "$file_magic_regex" > /dev/null; then
6301 *** Warning: the command libtool uses to detect shared libraries,
6302 *** $file_magic_cmd, produces output that libtool cannot recognize.
6303 *** The result is that libtool may fail to recognize shared libraries
6304 *** as such. This will affect the creation of libtool libraries that
6305 *** depend on shared libraries, but programs linked with such libtool
6306 *** libraries will work regardless of this problem. Nevertheless, you
6307 *** may want to report the problem to your system manager and/or to
6308 *** bug-libtool@gnu.org
6318 MAGIC_CMD="$lt_save_MAGIC_CMD"
6323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6324 if test -n "$MAGIC_CMD"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6326 $as_echo "$MAGIC_CMD" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6332 if test -z "$lt_cv_path_MAGIC_CMD"; then
6333 if test -n "$ac_tool_prefix"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6335 $as_echo_n "checking for file... " >&6; }
6336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6344 lt_save_MAGIC_CMD="$MAGIC_CMD"
6345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6347 for ac_dir in $ac_dummy; do
6349 test -z "$ac_dir" && ac_dir=.
6350 if test -f $ac_dir/file; then
6351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6352 if test -n "$file_magic_test_file"; then
6353 case $deplibs_check_method in
6355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6358 $EGREP "$file_magic_regex" > /dev/null; then
6363 *** Warning: the command libtool uses to detect shared libraries,
6364 *** $file_magic_cmd, produces output that libtool cannot recognize.
6365 *** The result is that libtool may fail to recognize shared libraries
6366 *** as such. This will affect the creation of libtool libraries that
6367 *** depend on shared libraries, but programs linked with such libtool
6368 *** libraries will work regardless of this problem. Nevertheless, you
6369 *** may want to report the problem to your system manager and/or to
6370 *** bug-libtool@gnu.org
6380 MAGIC_CMD="$lt_save_MAGIC_CMD"
6385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6386 if test -n "$MAGIC_CMD"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6388 $as_echo "$MAGIC_CMD" >&6; }
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6405 rhapsody* | darwin*)
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6414 if test -n "$DSYMUTIL"; then
6415 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6435 if test -n "$DSYMUTIL"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6437 $as_echo "$DSYMUTIL" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6445 if test -z "$ac_cv_prog_DSYMUTIL"; then
6446 ac_ct_DSYMUTIL=$DSYMUTIL
6447 # Extract the first word of "dsymutil", so it can be a program name with args.
6448 set dummy dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 if test -n "$ac_ct_DSYMUTIL"; then
6455 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6475 if test -n "$ac_ct_DSYMUTIL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6477 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6483 if test "x$ac_ct_DSYMUTIL" = x; then
6486 case $cross_compiling:$ac_tool_warned in
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6492 DSYMUTIL=$ac_ct_DSYMUTIL
6495 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$NMEDIT"; then
6507 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 NMEDIT=$ac_cv_prog_NMEDIT
6527 if test -n "$NMEDIT"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6529 $as_echo "$NMEDIT" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6537 if test -z "$ac_cv_prog_NMEDIT"; then
6538 ac_ct_NMEDIT=$NMEDIT
6539 # Extract the first word of "nmedit", so it can be a program name with args.
6540 set dummy nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6546 if test -n "$ac_ct_NMEDIT"; then
6547 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6567 if test -n "$ac_ct_NMEDIT"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6569 $as_echo "$ac_ct_NMEDIT" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6575 if test "x$ac_ct_NMEDIT" = x; then
6578 case $cross_compiling:$ac_tool_warned in
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6584 NMEDIT=$ac_ct_NMEDIT
6587 NMEDIT="$ac_cv_prog_NMEDIT"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6592 $as_echo_n "checking for -single_module linker flag... " >&6; }
6593 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 lt_cv_apple_cc_single_mod=no
6597 if test -z "${LT_MULTI_MODULE}"; then
6598 # By default we will add the -single_module flag. You can override
6599 # by either setting the environment variable LT_MULTI_MODULE
6600 # non-empty at configure time, or by adding -multi_module to the
6602 echo "int foo(void){return 1;}" > conftest.c
6603 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6604 -dynamiclib ${wl}-single_module conftest.c
6605 if test -f libconftest.dylib; then
6606 lt_cv_apple_cc_single_mod=yes
6607 rm -rf libconftest.dylib*
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6613 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6615 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6616 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6619 lt_cv_ld_exported_symbols_list=no
6620 save_LDFLAGS=$LDFLAGS
6621 echo "_main" > conftest.sym
6622 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6634 if ac_fn_c_try_link "$LINENO"; then :
6635 lt_cv_ld_exported_symbols_list=yes
6637 lt_cv_ld_exported_symbols_list=no
6639 rm -f core conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 LDFLAGS="$save_LDFLAGS"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6645 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6647 rhapsody* | darwin1.[0123])
6648 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6650 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6652 # if running on 10.5 or later, the deployment target defaults
6653 # to the OS version, if on x86, and 10.4, the deployment
6654 # target defaults to 10.4. Don't you love it?
6655 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6656 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6657 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6661 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6665 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6666 _lt_dar_single_mod='$single_module'
6668 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6669 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6671 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6673 if test "$DSYMUTIL" != ":"; then
6674 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6685 # Check whether --enable-libtool-lock was given.
6686 if test "${enable_libtool_lock+set}" = set; then :
6687 enableval=$enable_libtool_lock;
6690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6693 # Check whether --with-pic was given.
6694 if test "${with_pic+set}" = set; then :
6695 withval=$with_pic; pic_mode="$withval"
6700 test -z "$pic_mode" && pic_mode=default
6702 # Use C for the default configuration in the libtool script
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712 # Source file extension for C test sources.
6715 # Object file extension for compiled C test sources.
6719 # Code to be used in simple compile tests
6720 lt_simple_compile_test_code="int some_variable = 0;"
6722 # Code to be used in simple link tests
6723 lt_simple_link_test_code='int main(){return(0);}'
6726 # If no C compiler was specified, use CC.
6729 # If no C compiler flags were specified, use CFLAGS.
6730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6732 # Allow CC to be a program name with arguments.
6736 # save warnings/boilerplate of simple test code
6737 ac_outfile=conftest.$ac_objext
6738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6740 _lt_compiler_boilerplate=`cat conftest.err`
6743 ac_outfile=conftest.$ac_objext
6744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6746 _lt_linker_boilerplate=`cat conftest.err`
6751 ## There is no encapsulation within the following macros, do not change
6752 ## the running order or otherwise move them around unless you know exactly
6753 ## what you are doing...
6755 lt_prog_compiler_no_builtin_flag=
6757 if test "$GCC" = yes; then
6758 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6762 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6763 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6766 lt_cv_prog_compiler_rtti_exceptions=no
6767 ac_outfile=conftest.$ac_objext
6768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6769 lt_compiler_flag="-fno-rtti -fno-exceptions"
6770 # Insert the option either (1) after the last *FLAGS variable, or
6771 # (2) before a word containing "conftest.", or (3) at the end.
6772 # Note that $ac_compile itself does not contain backslashes and begins
6773 # with a dollar sign (not a hyphen), so the echo should work correctly.
6774 # The option is referenced via a variable to avoid confusing sed.
6775 lt_compile=`echo "$ac_compile" | $SED \
6776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6778 -e 's:$: $lt_compiler_flag:'`
6779 (eval echo "\"\$as_me:6779: $lt_compile\"" >&5)
6780 (eval "$lt_compile" 2>conftest.err)
6782 cat conftest.err >&5
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 if (exit $ac_status) && test -s "$ac_outfile"; then
6785 # The compiler can only warn and ignore the option if not recognized
6786 # So say no if there are warnings other than the usual output.
6787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6790 lt_cv_prog_compiler_rtti_exceptions=yes
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6797 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6799 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6800 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6807 lt_prog_compiler_wl=
6808 lt_prog_compiler_pic=
6809 lt_prog_compiler_static=
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6812 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6814 if test "$GCC" = yes; then
6815 lt_prog_compiler_wl='-Wl,'
6816 lt_prog_compiler_static='-static'
6820 # All AIX code is PIC.
6821 if test "$host_cpu" = ia64; then
6822 # AIX 5 now supports IA64 processor
6823 lt_prog_compiler_static='-Bstatic'
6828 # FIXME: we need at least 68020 code to build shared libraries, but
6829 # adding the `-m68020' flag to GCC prevents building anything better,
6831 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6834 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6835 # PIC is the default for these OSes.
6838 mingw* | cygwin* | pw32* | os2*)
6839 # This hack is so that the source file can tell whether it is being
6840 # built for inclusion in a dll (and should export symbols for example).
6841 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6842 # (--disable-auto-import) libraries
6843 lt_prog_compiler_pic='-DDLL_EXPORT'
6846 darwin* | rhapsody*)
6847 # PIC is the default on this platform
6848 # Common symbols not allowed in MH_DYLIB files
6849 lt_prog_compiler_pic='-fno-common'
6853 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6854 # Instead, we relocate shared libraries at runtime.
6858 # Just because we use GCC doesn't mean we suddenly get shared libraries
6859 # on systems that don't support them.
6860 lt_prog_compiler_can_build_shared=no
6865 if test -d /usr/nec; then
6866 lt_prog_compiler_pic=-Kconform_pic
6871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6878 lt_prog_compiler_pic='-fPIC'
6884 lt_prog_compiler_pic='-fPIC'
6888 # PORTME Check for flag to pass linker flags through the system compiler.
6891 lt_prog_compiler_wl='-Wl,'
6892 if test "$host_cpu" = ia64; then
6893 # AIX 5 now supports IA64 processor
6894 lt_prog_compiler_static='-Bstatic'
6896 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6900 # PIC is the default on this platform
6901 # Common symbols not allowed in MH_DYLIB files
6902 case $cc_basename in
6904 lt_prog_compiler_pic='-qnocommon'
6905 lt_prog_compiler_wl='-Wl,'
6910 mingw* | cygwin* | pw32* | os2*)
6911 # This hack is so that the source file can tell whether it is being
6912 # built for inclusion in a dll (and should export symbols for example).
6913 lt_prog_compiler_pic='-DDLL_EXPORT'
6916 hpux9* | hpux10* | hpux11*)
6917 lt_prog_compiler_wl='-Wl,'
6918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6925 lt_prog_compiler_pic='+Z'
6928 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6929 lt_prog_compiler_static='${wl}-a ${wl}archive'
6932 irix5* | irix6* | nonstopux*)
6933 lt_prog_compiler_wl='-Wl,'
6934 # PIC (with -KPIC) is the default.
6935 lt_prog_compiler_static='-non_shared'
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
6943 linux* | k*bsd*-gnu)
6944 case $cc_basename in
6946 lt_prog_compiler_wl='-Wl,'
6947 lt_prog_compiler_pic='-KPIC'
6948 lt_prog_compiler_static='-static'
6950 pgcc* | pgf77* | pgf90* | pgf95*)
6951 # Portland Group compilers (*not* the Pentium gcc compiler,
6952 # which looks to be a dead project)
6953 lt_prog_compiler_wl='-Wl,'
6954 lt_prog_compiler_pic='-fpic'
6955 lt_prog_compiler_static='-Bstatic'
6958 lt_prog_compiler_wl='-Wl,'
6959 # All Alpha code is PIC.
6960 lt_prog_compiler_static='-non_shared'
6963 case `$CC -V 2>&1 | sed 5q` in
6966 lt_prog_compiler_pic='-KPIC'
6967 lt_prog_compiler_static='-Bstatic'
6968 lt_prog_compiler_wl='-Wl,'
6971 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6972 lt_prog_compiler_pic='-KPIC'
6973 lt_prog_compiler_static='-Bstatic'
6974 lt_prog_compiler_wl=''
6981 osf3* | osf4* | osf5*)
6982 lt_prog_compiler_wl='-Wl,'
6983 # All OSF/1 code is PIC.
6984 lt_prog_compiler_static='-non_shared'
6988 lt_prog_compiler_static='-non_shared'
6992 lt_prog_compiler_pic='-KPIC'
6993 lt_prog_compiler_static='-Bstatic'
6994 case $cc_basename in
6996 lt_prog_compiler_wl='-Qoption ld ';;
6998 lt_prog_compiler_wl='-Wl,';;
7003 lt_prog_compiler_wl='-Qoption ld '
7004 lt_prog_compiler_pic='-PIC'
7005 lt_prog_compiler_static='-Bstatic'
7008 sysv4 | sysv4.2uw2* | sysv4.3*)
7009 lt_prog_compiler_wl='-Wl,'
7010 lt_prog_compiler_pic='-KPIC'
7011 lt_prog_compiler_static='-Bstatic'
7015 if test -d /usr/nec ;then
7016 lt_prog_compiler_pic='-Kconform_pic'
7017 lt_prog_compiler_static='-Bstatic'
7021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7022 lt_prog_compiler_wl='-Wl,'
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7028 lt_prog_compiler_wl='-Wl,'
7029 lt_prog_compiler_can_build_shared=no
7033 lt_prog_compiler_pic='-pic'
7034 lt_prog_compiler_static='-Bstatic'
7038 lt_prog_compiler_can_build_shared=no
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7044 $as_echo "$lt_prog_compiler_pic" >&6; }
7047 # Check to make sure the PIC flag actually works.
7049 if test -n "$lt_prog_compiler_pic"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7052 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7053 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
7056 lt_cv_prog_compiler_pic_works=no
7057 ac_outfile=conftest.$ac_objext
7058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7059 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7060 # Insert the option either (1) after the last *FLAGS variable, or
7061 # (2) before a word containing "conftest.", or (3) at the end.
7062 # Note that $ac_compile itself does not contain backslashes and begins
7063 # with a dollar sign (not a hyphen), so the echo should work correctly.
7064 # The option is referenced via a variable to avoid confusing sed.
7065 lt_compile=`echo "$ac_compile" | $SED \
7066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7068 -e 's:$: $lt_compiler_flag:'`
7069 (eval echo "\"\$as_me:7069: $lt_compile\"" >&5)
7070 (eval "$lt_compile" 2>conftest.err)
7072 cat conftest.err >&5
7073 echo "$as_me:7073: \$? = $ac_status" >&5
7074 if (exit $ac_status) && test -s "$ac_outfile"; then
7075 # The compiler can only warn and ignore the option if not recognized
7076 # So say no if there are warnings other than the usual output.
7077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7080 lt_cv_prog_compiler_pic_works=yes
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7087 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7089 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7090 case $lt_prog_compiler_pic in
7092 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7095 lt_prog_compiler_pic=
7096 lt_prog_compiler_can_build_shared=no
7101 # For platforms which do not support PIC, -DPIC is meaningless:
7103 lt_prog_compiler_pic=
7106 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7111 # Check to make sure the static flag actually works.
7113 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7115 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7116 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7119 lt_cv_prog_compiler_static_works=no
7120 save_LDFLAGS="$LDFLAGS"
7121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7122 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7124 # The linker can only warn and ignore the option if not recognized
7125 # So say no if there are warnings
7126 if test -s conftest.err; then
7127 # Append any errors to the config.log.
7128 cat conftest.err 1>&5
7129 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7131 if diff conftest.exp conftest.er2 >/dev/null; then
7132 lt_cv_prog_compiler_static_works=yes
7135 lt_cv_prog_compiler_static_works=yes
7139 LDFLAGS="$save_LDFLAGS"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7143 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7145 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7148 lt_prog_compiler_static=
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7154 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7157 lt_cv_prog_compiler_c_o=no
7158 $rm -r conftest 2>/dev/null
7162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7164 lt_compiler_flag="-o out/conftest2.$ac_objext"
7165 # Insert the option either (1) after the last *FLAGS variable, or
7166 # (2) before a word containing "conftest.", or (3) at the end.
7167 # Note that $ac_compile itself does not contain backslashes and begins
7168 # with a dollar sign (not a hyphen), so the echo should work correctly.
7169 lt_compile=`echo "$ac_compile" | $SED \
7170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172 -e 's:$: $lt_compiler_flag:'`
7173 (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174 (eval "$lt_compile" 2>out/conftest.err)
7176 cat out/conftest.err >&5
7177 echo "$as_me:7177: \$? = $ac_status" >&5
7178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7180 # The compiler can only warn and ignore the option if not recognized
7181 # So say no if there are warnings
7182 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7185 lt_cv_prog_compiler_c_o=yes
7190 # SGI C++ compiler will create directory out/ii_files/ for
7191 # template instantiation
7192 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7193 $rm out/* && rmdir out
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7203 hard_links="nottested"
7204 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7205 # do not overwrite the value of need_locks provided by the user
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7207 $as_echo_n "checking if we can lock with hard links... " >&6; }
7210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7212 ln conftest.a conftest.b 2>&5 || hard_links=no
7213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7215 $as_echo "$hard_links" >&6; }
7216 if test "$hard_links" = no; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7218 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7229 allow_undefined_flag=
7230 enable_shared_with_static_runtimes=no
7232 archive_expsym_cmds=
7233 old_archive_From_new_cmds=
7234 old_archive_from_expsyms_cmds=
7235 export_dynamic_flag_spec=
7236 whole_archive_flag_spec=
7237 thread_safe_flag_spec=
7238 hardcode_libdir_flag_spec=
7239 hardcode_libdir_flag_spec_ld=
7240 hardcode_libdir_separator=
7243 hardcode_shlibpath_var=unsupported
7244 link_all_deplibs=unknown
7245 hardcode_automatic=no
7248 always_export_symbols=no
7249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7250 # include_expsyms should be a list of space-separated symbols to be *always*
7251 # included in the symbol list
7253 # exclude_expsyms can be an extended regexp of symbols to exclude
7254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7256 # as well as any symbol that contains `d'.
7257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7259 # platforms (ab)use it in PIC code, but their linkers get confused if
7260 # the symbol is explicitly referenced. Since portable code cannot
7261 # rely on this symbol name, it's probably fine to never include it in
7262 # preloaded symbol tables.
7263 # Exclude shared library initialization/finalization symbols.
7264 extract_expsyms_cmds=
7265 # Just being paranoid about ensuring that cc_basename is set.
7266 for cc_temp in $compiler""; do
7268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7277 cygwin* | mingw* | pw32*)
7278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7279 # When not using gcc, we currently assume that we are using
7280 # Microsoft Visual C++.
7281 if test "$GCC" != yes; then
7286 # we just hope/assume this is gcc and not c89 (= MSVC++)
7295 if test "$with_gnu_ld" = yes; then
7296 # If archive_cmds runs LD, not CC, wlarc should be empty
7299 # Set some defaults for GNU ld with shared library support. These
7300 # are reset later if shared libraries are not supported. Putting them
7301 # here allows them to be overridden if necessary.
7302 runpath_var=LD_RUN_PATH
7303 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7304 export_dynamic_flag_spec='${wl}--export-dynamic'
7305 # ancient GNU ld didn't support --whole-archive et. al.
7306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7307 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7309 whole_archive_flag_spec=
7311 supports_anon_versioning=no
7312 case `$LD -v 2>/dev/null` in
7313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7316 *\ 2.11.*) ;; # other 2.11 versions
7317 *) supports_anon_versioning=yes ;;
7320 # See if GNU ld supports shared libraries.
7323 # On AIX/PPC, the GNU linker is very broken
7324 if test "$host_cpu" != ia64; then
7328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7329 *** to be unable to reliably create shared libraries on AIX.
7330 *** Therefore, libtool is disabling shared libraries support. If you
7331 *** really care for shared libraries, you may want to modify your PATH
7332 *** so that a non-GNU linker is found, and then restart.
7339 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)'
7340 hardcode_libdir_flag_spec='-L$libdir'
7341 hardcode_minus_L=yes
7343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7344 # that the semantics of dynamic libraries on AmigaOS, at least up
7345 # to version 4, is to share data among multiple programs linked
7346 # with the same dynamic library. Since this doesn't match the
7347 # behavior of shared libraries on other platforms, we can't use
7353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7354 allow_undefined_flag=unsupported
7355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7356 # support --undefined. This deserves some investigation. FIXME
7357 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7363 cygwin* | mingw* | pw32*)
7364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7365 # as there is no search path for DLLs.
7366 hardcode_libdir_flag_spec='-L$libdir'
7367 allow_undefined_flag=unsupported
7368 always_export_symbols=no
7369 enable_shared_with_static_runtimes=yes
7370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7374 # If the export-symbols file already is a .def file (1st line
7375 # is EXPORTS), use it as is; otherwise, prepend...
7376 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7377 cp $export_symbols $output_objdir/$soname.def;
7379 echo EXPORTS > $output_objdir/$soname.def;
7380 cat $export_symbols >> $output_objdir/$soname.def;
7382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7390 hardcode_shlibpath_var=no
7391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7392 export_dynamic_flag_spec='${wl}-E'
7393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7394 # Instead, shared libraries are loaded at an image base (0x10000000 by
7395 # default) and relocated if they conflict, which is a slow very memory
7396 # consuming and fragmenting process. To avoid this, we pick a random,
7397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7400 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'
7403 gnu* | linux* | k*bsd*-gnu)
7404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7406 case $cc_basename,$host_cpu in
7407 pgcc*) # Portland Group C compiler
7408 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'
7409 tmp_addflag=' $pic_flag'
7411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7412 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'
7413 tmp_addflag=' $pic_flag -Mnomain' ;;
7414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7415 tmp_addflag=' -i_dynamic' ;;
7416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7417 tmp_addflag=' -i_dynamic -nofor_main' ;;
7418 ifc* | ifort*) # Intel Fortran compiler
7419 tmp_addflag=' -nofor_main' ;;
7421 case `$CC -V 2>&1 | sed 5q` in
7422 *Sun\ C*) # Sun C 5.9
7423 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'
7424 tmp_sharedflag='-G' ;;
7425 *Sun\ F*) # Sun Fortran 8.3
7426 tmp_sharedflag='-G' ;;
7428 tmp_sharedflag='-shared' ;;
7430 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7432 if test $supports_anon_versioning = yes; then
7433 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435 $echo "local: *; };" >> $output_objdir/$libname.ver~
7436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7454 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7459 *** create shared libraries on Solaris systems. Therefore, libtool
7460 *** is disabling shared libraries support. We urge you to upgrade GNU
7461 *** binutils to release 2.9.1 or newer. Another option is to modify
7462 *** your PATH or compiler configuration so that the native linker is
7463 *** used, and then restart.
7466 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7475 case `$LD -v 2>&1` in
7476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7481 *** reliably create shared libraries on SCO systems. Therefore, libtool
7482 *** is disabling shared libraries support. We urge you to upgrade GNU
7483 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7484 *** your PATH or compiler configuration so that the native linker is
7485 *** used, and then restart.
7490 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7491 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7502 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7505 hardcode_shlibpath_var=no
7509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 if test "$ld_shlibs" = no; then
7520 hardcode_libdir_flag_spec=
7521 export_dynamic_flag_spec=
7522 whole_archive_flag_spec=
7525 # PORTME fill in a description of your system's linker (not GNU ld)
7528 allow_undefined_flag=unsupported
7529 always_export_symbols=yes
7530 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'
7531 # Note: this linker hardcodes the directories in LIBPATH if there
7532 # are no directories specified by -L.
7533 hardcode_minus_L=yes
7534 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7535 # Neither direct hardcoding nor static linking is supported with a
7537 hardcode_direct=unsupported
7542 if test "$host_cpu" = ia64; then
7543 # On IA64, the linker does run time linking by default, so we don't
7544 # have to do anything special.
7545 aix_use_runtimelinking=no
7546 exp_sym_flag='-Bexport'
7549 # If we're using GNU nm, then we don't want the "-C" option.
7550 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7551 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7552 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'
7554 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'
7556 aix_use_runtimelinking=no
7558 # Test if we are trying to use run time linking or normal
7559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7560 # need to do runtime linking.
7561 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7562 for ld_flag in $LDFLAGS; do
7563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7564 aix_use_runtimelinking=yes
7571 exp_sym_flag='-bexport'
7572 no_entry_flag='-bnoentry'
7575 # When large executables or shared objects are built, AIX ld can
7576 # have problems creating the table of contents. If linking a library
7577 # or program results in "error TOC overflow" add -mminimal-toc to
7578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7583 hardcode_libdir_separator=':'
7584 link_all_deplibs=yes
7586 if test "$GCC" = yes; then
7587 case $host_os in aix4.[012]|aix4.[012].*)
7588 # We only want to do this on AIX 4.2 and lower, the check
7589 # below for broken collect2 doesn't work under 4.3+
7590 collect2name=`${CC} -print-prog-name=collect2`
7591 if test -f "$collect2name" && \
7592 strings "$collect2name" | grep resolve_lib_name >/dev/null
7594 # We have reworked collect2
7597 # We have old collect2
7598 hardcode_direct=unsupported
7599 # It fails to find uninstalled libraries when the uninstalled
7600 # path is not listed in the libpath. Setting hardcode_minus_L
7601 # to unsupported forces relinking
7602 hardcode_minus_L=yes
7603 hardcode_libdir_flag_spec='-L$libdir'
7604 hardcode_libdir_separator=
7608 shared_flag='-shared'
7609 if test "$aix_use_runtimelinking" = yes; then
7610 shared_flag="$shared_flag "'${wl}-G'
7614 if test "$host_cpu" = ia64; then
7615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7616 # chokes on -Wl,-G. The following line is correct:
7619 if test "$aix_use_runtimelinking" = yes; then
7620 shared_flag='${wl}-G'
7622 shared_flag='${wl}-bM:SRE'
7627 # It seems that -bexpall does not export symbols beginning with
7628 # underscore (_), so it is better to generate a list of symbols to export.
7629 always_export_symbols=yes
7630 if test "$aix_use_runtimelinking" = yes; then
7631 # Warning - without using the other runtime loading flags (-brtl),
7632 # -berok will link without error, but may produce a broken library.
7633 allow_undefined_flag='-berok'
7634 # Determine the default libpath from the value encoded in an empty executable.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7646 if ac_fn_c_try_link "$LINENO"; then :
7648 lt_aix_libpath_sed='
7649 /Import File Strings/,/^$/ {
7655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7656 # Check for a 64-bit object if we didn't find anything.
7657 if test -z "$aix_libpath"; then
7658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7661 rm -f core conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7666 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"
7668 if test "$host_cpu" = ia64; then
7669 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7670 allow_undefined_flag="-z nodefs"
7671 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"
7673 # Determine the default libpath from the value encoded in an empty executable.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7685 if ac_fn_c_try_link "$LINENO"; then :
7687 lt_aix_libpath_sed='
7688 /Import File Strings/,/^$/ {
7694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7695 # Check for a 64-bit object if we didn't find anything.
7696 if test -z "$aix_libpath"; then
7697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7700 rm -f core conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
7702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7704 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7705 # Warning - without using the other run time loading flags,
7706 # -berok will link without error, but may produce a broken library.
7707 no_undefined_flag=' ${wl}-bernotok'
7708 allow_undefined_flag=' ${wl}-berok'
7709 # Exported symbols can be pulled into shared objects from archives
7710 whole_archive_flag_spec='$convenience'
7711 archive_cmds_need_lc=yes
7712 # This is similar to how AIX traditionally builds its shared libraries.
7713 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'
7719 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)'
7720 hardcode_libdir_flag_spec='-L$libdir'
7721 hardcode_minus_L=yes
7722 # see comment about different semantics on the GNU ld section
7727 export_dynamic_flag_spec=-rdynamic
7730 cygwin* | mingw* | pw32*)
7731 # When not using gcc, we currently assume that we are using
7732 # Microsoft Visual C++.
7733 # hardcode_libdir_flag_spec is actually meaningless, as there is
7734 # no search path for DLLs.
7735 hardcode_libdir_flag_spec=' '
7736 allow_undefined_flag=unsupported
7737 # Tell ltmain to make .lib files, not .a files.
7739 # Tell ltmain to make .dll files, not .so files.
7741 # FIXME: Setting linknames here is a bad hack.
7742 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7743 # The linker will automatically build a .lib file if we build a DLL.
7744 old_archive_From_new_cmds='true'
7745 # FIXME: Should let the user specify the lib program.
7746 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7747 fix_srcfile_path='`cygpath -w "$srcfile"`'
7748 enable_shared_with_static_runtimes=yes
7751 darwin* | rhapsody*)
7753 rhapsody* | darwin1.[012])
7754 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7757 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7758 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7760 case ${MACOSX_DEPLOYMENT_TARGET} in
7762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7765 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7771 archive_cmds_need_lc=no
7773 hardcode_automatic=yes
7774 hardcode_shlibpath_var=unsupported
7775 whole_archive_flag_spec=''
7776 link_all_deplibs=yes
7777 if test "$GCC" = yes ; then
7778 output_verbose_link_cmd='echo'
7779 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7780 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7781 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}"
7782 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}"
7784 case $cc_basename in
7786 output_verbose_link_cmd='echo'
7787 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7788 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7790 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}'
7791 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}'
7801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7802 hardcode_libdir_flag_spec='-L$libdir'
7803 hardcode_shlibpath_var=no
7810 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7811 # support. Future versions do this automatically, but an explicit c++rt0.o
7812 # does not break anything, and helps significantly (at the cost of a little
7815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7816 hardcode_libdir_flag_spec='-R$libdir'
7818 hardcode_shlibpath_var=no
7821 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_minus_L=yes
7826 hardcode_shlibpath_var=no
7829 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7830 freebsd* | dragonfly*)
7831 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7832 hardcode_libdir_flag_spec='-R$libdir'
7834 hardcode_shlibpath_var=no
7838 if test "$GCC" = yes; then
7839 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'
7841 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'
7843 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7844 hardcode_libdir_separator=:
7847 # hardcode_minus_L: Not really in the search PATH,
7848 # but as the default location of the library.
7849 hardcode_minus_L=yes
7850 export_dynamic_flag_spec='${wl}-E'
7854 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7855 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7857 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7859 if test "$with_gnu_ld" = no; then
7860 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861 hardcode_libdir_separator=:
7864 export_dynamic_flag_spec='${wl}-E'
7866 # hardcode_minus_L: Not really in the search PATH,
7867 # but as the default location of the library.
7868 hardcode_minus_L=yes
7873 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7876 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7891 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7894 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7898 if test "$with_gnu_ld" = no; then
7899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7900 hardcode_libdir_separator=:
7904 hardcode_libdir_flag_spec_ld='+b $libdir'
7906 hardcode_shlibpath_var=no
7910 export_dynamic_flag_spec='${wl}-E'
7912 # hardcode_minus_L: Not really in the search PATH,
7913 # but as the default location of the library.
7914 hardcode_minus_L=yes
7920 irix5* | irix6* | nonstopux*)
7921 if test "$GCC" = yes; then
7922 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'
7924 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'
7925 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928 hardcode_libdir_separator=:
7929 link_all_deplibs=yes
7933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7936 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7938 hardcode_libdir_flag_spec='-R$libdir'
7940 hardcode_shlibpath_var=no
7944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7947 hardcode_libdir_separator=:
7948 hardcode_shlibpath_var=no
7952 if test -f /usr/libexec/ld.so; then
7954 hardcode_shlibpath_var=no
7955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7957 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7959 export_dynamic_flag_spec='${wl}-E'
7962 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964 hardcode_libdir_flag_spec='-R$libdir'
7967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978 hardcode_libdir_flag_spec='-L$libdir'
7979 hardcode_minus_L=yes
7980 allow_undefined_flag=unsupported
7981 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'
7982 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7986 if test "$GCC" = yes; then
7987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7988 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'
7990 allow_undefined_flag=' -expect_unresolved \*'
7991 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'
7993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7994 hardcode_libdir_separator=:
7997 osf4* | osf5*) # as osf3* with the addition of -msym flag
7998 if test "$GCC" = yes; then
7999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8000 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'
8001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8003 allow_undefined_flag=' -expect_unresolved \*'
8004 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'
8005 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8006 $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'
8008 # Both c and cxx compiler support -rpath directly
8009 hardcode_libdir_flag_spec='-rpath $libdir'
8011 hardcode_libdir_separator=:
8015 no_undefined_flag=' -z text'
8016 if test "$GCC" = yes; then
8018 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8020 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8023 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8024 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8027 hardcode_libdir_flag_spec='-R$libdir'
8028 hardcode_shlibpath_var=no
8030 solaris2.[0-5] | solaris2.[0-5].*) ;;
8032 # The compiler driver will combine and reorder linker options,
8033 # but understands `-z linker_flag'. GCC discards it without `$wl',
8034 # but is careful enough not to reorder.
8035 # Supported since Solaris 2.6 (maybe 2.5.1?)
8036 if test "$GCC" = yes; then
8037 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8043 link_all_deplibs=yes
8047 if test "x$host_vendor" = xsequent; then
8048 # Use $CC to link under sequent, because it throws in some extra .o
8049 # files that make .init and .fini sections work.
8050 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8054 hardcode_libdir_flag_spec='-L$libdir'
8056 hardcode_minus_L=yes
8057 hardcode_shlibpath_var=no
8061 case $host_vendor in
8063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8064 hardcode_direct=yes # is this really true???
8067 ## LD is ld it makes a PLAMLIB
8068 ## CC just makes a GrossModule.
8069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8070 reload_cmds='$CC -r -o $output$reload_objs'
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8078 runpath_var='LD_RUN_PATH'
8079 hardcode_shlibpath_var=no
8083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8084 hardcode_shlibpath_var=no
8085 export_dynamic_flag_spec='-Bexport'
8089 if test -d /usr/nec; then
8090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091 hardcode_shlibpath_var=no
8092 runpath_var=LD_RUN_PATH
8093 hardcode_runpath_var=yes
8098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8099 no_undefined_flag='${wl}-z,text'
8100 archive_cmds_need_lc=no
8101 hardcode_shlibpath_var=no
8102 runpath_var='LD_RUN_PATH'
8104 if test "$GCC" = yes; then
8105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8113 sysv5* | sco3.2v5* | sco5v6*)
8114 # Note: We can NOT use -z defs as we might desire, because we do not
8115 # link with -lc, and that would cause any symbols used from libc to
8116 # always be unresolved, which means just about no library would
8117 # ever link correctly. If we're not using GNU ld we use -z text
8118 # though, which does catch some bad symbols but isn't as heavy-handed
8120 no_undefined_flag='${wl}-z,text'
8121 allow_undefined_flag='${wl}-z,nodefs'
8122 archive_cmds_need_lc=no
8123 hardcode_shlibpath_var=no
8124 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8125 hardcode_libdir_separator=':'
8126 link_all_deplibs=yes
8127 export_dynamic_flag_spec='${wl}-Bexport'
8128 runpath_var='LD_RUN_PATH'
8130 if test "$GCC" = yes; then
8131 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_libdir_flag_spec='-L$libdir'
8142 hardcode_shlibpath_var=no
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8152 $as_echo "$ld_shlibs" >&6; }
8153 test "$ld_shlibs" = no && can_build_shared=no
8156 # Do we need to explicitly link libc?
8158 case "x$archive_cmds_need_lc" in
8160 # Assume -lc should be added
8161 archive_cmds_need_lc=yes
8163 if test "$enable_shared" = yes && test "$GCC" = yes; then
8164 case $archive_cmds in
8166 # FIXME: we may have to deal with multi-command sequences.
8169 # Test whether the compiler implicitly links with -lc since on some
8170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8171 # to ld, don't add -lc before -lgcc.
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8178 (eval $ac_compile) 2>&5
8180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181 test $ac_status = 0; } 2>conftest.err; then
8184 libobjs=conftest.$ac_objext
8186 wl=$lt_prog_compiler_wl
8187 pic_flag=$lt_prog_compiler_pic
8193 lt_save_allow_undefined_flag=$allow_undefined_flag
8194 allow_undefined_flag=
8195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8196 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8199 test $ac_status = 0; }
8201 archive_cmds_need_lc=no
8203 archive_cmds_need_lc=yes
8205 allow_undefined_flag=$lt_save_allow_undefined_flag
8207 cat conftest.err 1>&5
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8211 $as_echo "$archive_cmds_need_lc" >&6; }
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8219 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8221 libname_spec='lib$name'
8229 shlibpath_overrides_runpath=unknown
8231 dynamic_linker="$host_os ld.so"
8232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8234 if test "$GCC" = yes; then
8236 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8237 *) lt_awk_arg="/^libraries:/" ;;
8239 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8240 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8241 # if the path contains ";" then we assume it to be the separator
8242 # otherwise default to the standard path separator (i.e. ":") - it is
8243 # assumed that no part of a normal pathname contains ";" but that should
8244 # okay in the real world where ";" in dirpaths is itself problematic.
8245 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8247 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8249 # Ok, now we have the path, separated by spaces, we can step through it
8250 # and add multilib dir if necessary.
8251 lt_tmp_lt_search_path_spec=
8252 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8253 for lt_sys_path in $lt_search_path_spec; do
8254 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8257 test -d "$lt_sys_path" && \
8258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8261 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8262 BEGIN {RS=" "; FS="/|\n";} {
8265 for (lt_i = NF; lt_i > 0; lt_i--) {
8266 if ($lt_i != "" && $lt_i != ".") {
8267 if ($lt_i == "..") {
8270 if (lt_count == 0) {
8271 lt_foo="/" $lt_i lt_foo;
8278 if (lt_foo != "") { lt_freq[lt_foo]++; }
8279 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8281 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8285 need_lib_prefix=unknown
8286 hardcode_into_libs=no
8288 # when you set need_version to no, make sure it does not cause -set_version
8289 # flags to be left without arguments
8290 need_version=unknown
8295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8296 shlibpath_var=LIBPATH
8298 # AIX 3 has no versioning support, so we append a major version to the name.
8299 soname_spec='${libname}${release}${shared_ext}$major'
8306 hardcode_into_libs=yes
8307 if test "$host_cpu" = ia64; then
8308 # AIX 5 supports IA64
8309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8310 shlibpath_var=LD_LIBRARY_PATH
8312 # With GCC up to 2.95.x, collect2 would create an import file
8313 # for dependence libraries. The import file would start with
8314 # the line `#! .'. This would cause the generated library to
8315 # depend on `.', always an invalid library. This was fixed in
8316 # development snapshots of GCC prior to 3.0.
8318 aix4 | aix4.[01] | aix4.[01].*)
8319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8321 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8329 # soname into executable. Probably we can add versioning support to
8330 # collect2, so additional links can be useful in future.
8331 if test "$aix_use_runtimelinking" = yes; then
8332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8333 # instead of lib<name>.a to let people know that these are not
8334 # typical AIX shared libraries.
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337 # We preserve .a as extension for shared libraries through AIX4.2
8338 # and later when we are not doing run time linking.
8339 library_names_spec='${libname}${release}.a $libname.a'
8340 soname_spec='${libname}${release}${shared_ext}$major'
8342 shlibpath_var=LIBPATH
8347 library_names_spec='$libname.ixlibrary $libname.a'
8348 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8349 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'
8353 library_names_spec='${libname}${shared_ext}'
8354 dynamic_linker="$host_os ld.so"
8355 shlibpath_var=LIBRARY_PATH
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8364 shlibpath_var=LD_LIBRARY_PATH
8365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8367 # the default ld.so.conf also contains /usr/contrib/lib and
8368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8369 # libtool to hard-code these into programs
8372 cygwin* | mingw* | pw32*)
8373 version_type=windows
8378 case $GCC,$host_os in
8379 yes,cygwin* | yes,mingw* | yes,pw32*)
8380 library_names_spec='$libname.dll.a'
8381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8382 postinstall_cmds='base_file=`basename \${file}`~
8383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8384 dldir=$destdir/`dirname \$dlpath`~
8385 test -d \$dldir || mkdir -p \$dldir~
8386 $install_prog $dir/$dlname \$dldir/$dlname~
8387 chmod a+x \$dldir/$dlname'
8388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8389 dlpath=$dir/\$dldll~
8391 shlibpath_overrides_runpath=yes
8395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8397 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8400 # MinGW DLLs use traditional 'lib' prefix
8401 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8403 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8404 # It is most probably a Windows format PATH printed by
8405 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8406 # path with ; separators, and with drive letters. We can handle the
8407 # drive letters (cygwin fileutils understands them), so leave them,
8408 # especially as we might pass files found there to a mingw objdump,
8409 # which wouldn't understand a cygwinified path. Ahh.
8410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8416 # pw32 DLLs use 'pw' prefix rather than 'lib'
8417 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8426 dynamic_linker='Win32 ld.exe'
8427 # FIXME: first we should search . and the directory the executable is in
8431 darwin* | rhapsody*)
8432 dynamic_linker="$host_os dyld"
8436 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8437 soname_spec='${libname}${release}${major}$shared_ext'
8438 shlibpath_overrides_runpath=yes
8439 shlibpath_var=DYLD_LIBRARY_PATH
8440 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8442 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8459 freebsd* | dragonfly*)
8460 # DragonFly does not have aout. When/if they implement a new
8461 # versioning mechanism, adjust this.
8462 if test -x /usr/bin/objformat; then
8463 objformat=`/usr/bin/objformat`
8466 freebsd[123]*) objformat=aout ;;
8470 version_type=freebsd-$objformat
8471 case $version_type in
8473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8482 shlibpath_var=LD_LIBRARY_PATH
8485 shlibpath_overrides_runpath=yes
8487 freebsd3.[01]* | freebsdelf3.[01]*)
8488 shlibpath_overrides_runpath=yes
8489 hardcode_into_libs=yes
8491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8493 shlibpath_overrides_runpath=no
8494 hardcode_into_libs=yes
8496 *) # from 4.6 on, and DragonFly
8497 shlibpath_overrides_runpath=yes
8498 hardcode_into_libs=yes
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 shlibpath_var=LD_LIBRARY_PATH
8510 hardcode_into_libs=yes
8513 hpux9* | hpux10* | hpux11*)
8514 # Give a soname corresponding to the major version so that dld.sl refuses to
8515 # link against other versions.
8522 hardcode_into_libs=yes
8523 dynamic_linker="$host_os dld.so"
8524 shlibpath_var=LD_LIBRARY_PATH
8525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 soname_spec='${libname}${release}${shared_ext}$major'
8528 if test "X$HPUX_IA64_MODE" = X32; then
8529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8537 hardcode_into_libs=yes
8538 dynamic_linker="$host_os dld.sl"
8539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8548 dynamic_linker="$host_os dld.sl"
8549 shlibpath_var=SHLIB_PATH
8550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec='${libname}${release}${shared_ext}$major'
8555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8556 postinstall_cmds='chmod 555 $lib'
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8566 shlibpath_var=LD_LIBRARY_PATH
8567 shlibpath_overrides_runpath=no
8568 hardcode_into_libs=yes
8571 irix5* | irix6* | nonstopux*)
8573 nonstopux*) version_type=nonstopux ;;
8575 if test "$lt_cv_prog_gnu_ld" = yes; then
8583 soname_spec='${libname}${release}${shared_ext}$major'
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8586 irix5* | nonstopux*)
8590 case $LD in # libtool.m4 will add one of these switches to LD
8591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8592 libsuff= shlibsuff= libmagic=32-bit;;
8593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8594 libsuff=32 shlibsuff=N32 libmagic=N32;;
8595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8597 *) libsuff= shlibsuff= libmagic=never-match;;
8601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8602 shlibpath_overrides_runpath=no
8603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8605 hardcode_into_libs=yes
8608 # No shared lib support for Linux oldld, aout, or coff.
8609 linux*oldld* | linux*aout* | linux*coff*)
8613 # This must be Linux ELF.
8614 linux* | k*bsd*-gnu)
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 shlibpath_overrides_runpath=no
8623 # This implies no fast_install, which is unacceptable.
8624 # Some rework will be needed to allow for fast_install
8625 # before this can be enabled.
8626 hardcode_into_libs=yes
8628 # Append ld.so.conf contents to the search path
8629 if test -f /etc/ld.so.conf; then
8630 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' ' '`
8631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8634 # We used to test for /lib/ld.so.1 and disable shared libraries on
8635 # powerpc, because MkLinux only supported shared libraries with the
8636 # GNU dynamic linker. Since this was broken with cross compilers,
8637 # most powerpc-linux boxes support dynamic linking these days and
8638 # people can always --disable-shared, the test was removed, and we
8639 # assume the GNU/Linux dynamic linker is in use.
8640 dynamic_linker='GNU/Linux ld.so'
8647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8650 dynamic_linker='NetBSD (a.out) ld.so'
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 dynamic_linker='NetBSD ld.elf_so'
8656 shlibpath_var=LD_LIBRARY_PATH
8657 shlibpath_overrides_runpath=yes
8658 hardcode_into_libs=yes
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 shlibpath_var=LD_LIBRARY_PATH
8665 shlibpath_overrides_runpath=yes
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673 soname_spec='${libname}${release}${shared_ext}$major'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=yes
8680 sys_lib_dlsearch_path_spec="/usr/lib"
8682 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8684 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8685 *) need_version=no ;;
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8689 shlibpath_var=LD_LIBRARY_PATH
8690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8692 openbsd2.[89] | openbsd2.[89].*)
8693 shlibpath_overrides_runpath=no
8696 shlibpath_overrides_runpath=yes
8700 shlibpath_overrides_runpath=yes
8705 libname_spec='$name'
8708 library_names_spec='$libname${shared_ext} $libname.a'
8709 dynamic_linker='OS/2 ld.exe'
8710 shlibpath_var=LIBPATH
8713 osf3* | osf4* | osf5*)
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8721 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8735 shlibpath_overrides_runpath=yes
8736 hardcode_into_libs=yes
8737 # ldd complains unless libraries are executable
8738 postinstall_cmds='chmod +x $lib'
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 shlibpath_overrides_runpath=yes
8747 if test "$with_gnu_ld" = yes; then
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 case $host_vendor in
8760 shlibpath_overrides_runpath=no
8762 export_dynamic_flag_spec='${wl}-Blargedynsym'
8763 runpath_var=LD_RUN_PATH
8771 shlibpath_overrides_runpath=no
8772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8778 if test -d /usr/nec ;then
8780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8781 soname_spec='$libname${shared_ext}.$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8787 version_type=freebsd-elf
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 shlibpath_var=LD_LIBRARY_PATH
8793 hardcode_into_libs=yes
8794 if test "$with_gnu_ld" = yes; then
8795 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8796 shlibpath_overrides_runpath=no
8798 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8799 shlibpath_overrides_runpath=yes
8802 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8806 sys_lib_dlsearch_path_spec='/usr/lib'
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LD_LIBRARY_PATH
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8821 $as_echo "$dynamic_linker" >&6; }
8822 test "$dynamic_linker" = no && can_build_shared=no
8824 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8827 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8830 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8831 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8834 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8837 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8840 if test "$GCC" = yes; then
8841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8845 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8847 if test -n "$hardcode_libdir_flag_spec" || \
8848 test -n "$runpath_var" || \
8849 test "X$hardcode_automatic" = "Xyes" ; then
8851 # We can hardcode non-existant directories.
8852 if test "$hardcode_direct" != no &&
8853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8854 # have to relink, otherwise we might link with an installed library
8855 # when we should be linking with a yet-to-be-installed one
8856 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8857 test "$hardcode_minus_L" != no; then
8858 # Linking always hardcodes the temporary library directory.
8859 hardcode_action=relink
8861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8862 hardcode_action=immediate
8865 # We cannot hardcode anything, or else we can only hardcode existing
8867 hardcode_action=unsupported
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8870 $as_echo "$hardcode_action" >&6; }
8872 if test "$hardcode_action" = relink; then
8873 # Fast installation is not supported
8874 enable_fast_install=no
8875 elif test "$shlibpath_overrides_runpath" = yes ||
8876 test "$enable_shared" = no; then
8877 # Fast installation is not necessary
8878 enable_fast_install=needless
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8884 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8885 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8886 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8887 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8889 $as_echo "yes" >&6; }
8891 # FIXME - insert some real tests, host_os isn't really good enough
8894 if test -n "$STRIP" ; then
8895 striplib="$STRIP -x"
8896 old_striplib="$STRIP -S"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8911 if test "x$enable_dlopen" != xyes; then
8912 enable_dlopen=unknown
8913 enable_dlopen_self=unknown
8914 enable_dlopen_self_static=unknown
8921 lt_cv_dlopen="load_add_on"
8923 lt_cv_dlopen_self=yes
8927 lt_cv_dlopen="LoadLibrary"
8932 lt_cv_dlopen="dlopen"
8937 # if libdl is installed we need to link against it
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8939 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8943 ac_check_lib_save_LIBS=$LIBS
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_lib_dl_dlopen=yes
8966 ac_cv_lib_dl_dlopen=no
8968 rm -f core conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 LIBS=$ac_check_lib_save_LIBS
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8974 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8980 lt_cv_dlopen_self=yes
8987 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8988 if test "x$ac_cv_func_shl_load" = x""yes; then :
8989 lt_cv_dlopen="shl_load"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8992 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8993 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8996 ac_check_lib_save_LIBS=$LIBS
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_lib_dld_shl_load=yes
9019 ac_cv_lib_dld_shl_load=no
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9026 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9027 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9028 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9030 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9031 if test "x$ac_cv_func_dlopen" = x""yes; then :
9032 lt_cv_dlopen="dlopen"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9035 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9039 ac_check_lib_save_LIBS=$LIBS
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9044 /* Override any GCC internal prototype to avoid an error.
9045 Use char because int might match the return type of a GCC
9046 builtin and then its argument prototype would still apply. */
9059 if ac_fn_c_try_link "$LINENO"; then :
9060 ac_cv_lib_dl_dlopen=yes
9062 ac_cv_lib_dl_dlopen=no
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9069 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9070 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9074 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9075 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9078 ac_check_lib_save_LIBS=$LIBS
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_cv_lib_svld_dlopen=yes
9101 ac_cv_lib_svld_dlopen=no
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9108 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9109 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9113 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9117 ac_check_lib_save_LIBS=$LIBS
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9122 /* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9137 if ac_fn_c_try_link "$LINENO"; then :
9138 ac_cv_lib_dld_dld_link=yes
9140 ac_cv_lib_dld_dld_link=no
9142 rm -f core conftest.err conftest.$ac_objext \
9143 conftest$ac_exeext conftest.$ac_ext
9144 LIBS=$ac_check_lib_save_LIBS
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9147 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9148 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9149 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9170 if test "x$lt_cv_dlopen" != xno; then
9176 case $lt_cv_dlopen in
9178 save_CPPFLAGS="$CPPFLAGS"
9179 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9181 save_LDFLAGS="$LDFLAGS"
9182 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9185 LIBS="$lt_cv_dlopen_libs $LIBS"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9188 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9189 if test "${lt_cv_dlopen_self+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9192 if test "$cross_compiling" = yes; then :
9193 lt_cv_dlopen_self=cross
9195 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9196 lt_status=$lt_dlunknown
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9198 "configure"
9199 #include "confdefs.h"
9208 # define LT_DLGLOBAL RTLD_GLOBAL
9211 # define LT_DLGLOBAL DL_GLOBAL
9213 # define LT_DLGLOBAL 0
9217 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9218 find out it does not work in some platform. */
9219 #ifndef LT_DLLAZY_OR_NOW
9221 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9224 # define LT_DLLAZY_OR_NOW DL_LAZY
9227 # define LT_DLLAZY_OR_NOW RTLD_NOW
9230 # define LT_DLLAZY_OR_NOW DL_NOW
9232 # define LT_DLLAZY_OR_NOW 0
9240 extern "C" void exit (int);
9243 void fnord() { int i=42;}
9246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9247 int status = $lt_dlunknown;
9251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9252 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9253 /* dlclose (self); */
9261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9262 (eval $ac_link) 2>&5
9264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9266 (./conftest; exit; ) >&5 2>/dev/null
9269 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9270 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9271 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9274 # compilation failed
9275 lt_cv_dlopen_self=no
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9283 $as_echo "$lt_cv_dlopen_self" >&6; }
9285 if test "x$lt_cv_dlopen_self" = xyes; then
9286 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9288 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9289 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9292 if test "$cross_compiling" = yes; then :
9293 lt_cv_dlopen_self_static=cross
9295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9296 lt_status=$lt_dlunknown
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9298 "configure"
9299 #include "confdefs.h"
9308 # define LT_DLGLOBAL RTLD_GLOBAL
9311 # define LT_DLGLOBAL DL_GLOBAL
9313 # define LT_DLGLOBAL 0
9317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9318 find out it does not work in some platform. */
9319 #ifndef LT_DLLAZY_OR_NOW
9321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9324 # define LT_DLLAZY_OR_NOW DL_LAZY
9327 # define LT_DLLAZY_OR_NOW RTLD_NOW
9330 # define LT_DLLAZY_OR_NOW DL_NOW
9332 # define LT_DLLAZY_OR_NOW 0
9340 extern "C" void exit (int);
9343 void fnord() { int i=42;}
9346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9347 int status = $lt_dlunknown;
9351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9353 /* dlclose (self); */
9361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9362 (eval $ac_link) 2>&5
9364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9366 (./conftest; exit; ) >&5 2>/dev/null
9369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9371 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9374 # compilation failed
9375 lt_cv_dlopen_self_static=no
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9386 CPPFLAGS="$save_CPPFLAGS"
9387 LDFLAGS="$save_LDFLAGS"
9392 case $lt_cv_dlopen_self in
9393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9394 *) enable_dlopen_self=unknown ;;
9397 case $lt_cv_dlopen_self_static in
9398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9399 *) enable_dlopen_self_static=unknown ;;
9404 # Report which library types will actually be built
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9406 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9408 $as_echo "$can_build_shared" >&6; }
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9411 $as_echo_n "checking whether to build shared libraries... " >&6; }
9412 test "$can_build_shared" = "no" && enable_shared=no
9414 # On AIX, shared libraries and static libraries use the same namespace, and
9415 # are all built from PIC.
9418 test "$enable_shared" = yes && enable_static=no
9419 if test -n "$RANLIB"; then
9420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9421 postinstall_cmds='$RANLIB $lib'
9426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9427 test "$enable_shared" = yes && enable_static=no
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9432 $as_echo "$enable_shared" >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9435 $as_echo_n "checking whether to build static libraries... " >&6; }
9436 # Make sure either enable_shared or enable_static is yes.
9437 test "$enable_shared" = yes || enable_static=yes
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9439 $as_echo "$enable_static" >&6; }
9441 # The else clause should only fire when bootstrapping the
9442 # libtool distribution, otherwise you forgot to ship ltmain.sh
9443 # with your package, and you will get complaints that there are
9444 # no rules to generate ltmain.sh.
9445 if test -f "$ltmain"; then
9446 # See if we are running on zsh, and set the options which allow our commands through
9447 # without removal of \ escapes.
9448 if test -n "${ZSH_VERSION+set}" ; then
9449 setopt NO_GLOB_SUBST
9451 # Now quote all the things that may contain metacharacters while being
9452 # careful not to overquote the AC_SUBSTed values. We take copies of the
9453 # variables and quote the copies for generation of the libtool script.
9454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9458 deplibs_check_method reload_flag reload_cmds need_locks \
9459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9460 lt_cv_sys_global_symbol_to_c_name_address \
9461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9462 old_postinstall_cmds old_postuninstall_cmds \
9466 lt_prog_compiler_wl \
9467 lt_prog_compiler_pic \
9468 lt_prog_compiler_static \
9469 lt_prog_compiler_no_builtin_flag \
9470 export_dynamic_flag_spec \
9471 thread_safe_flag_spec \
9472 whole_archive_flag_spec \
9473 enable_shared_with_static_runtimes \
9475 old_archive_from_new_cmds \
9480 compiler_lib_search_path \
9481 compiler_lib_search_dirs \
9483 archive_expsym_cmds \
9485 postuninstall_cmds \
9486 old_archive_from_expsyms_cmds \
9487 allow_undefined_flag \
9489 export_symbols_cmds \
9490 hardcode_libdir_flag_spec \
9491 hardcode_libdir_flag_spec_ld \
9492 hardcode_libdir_separator \
9493 hardcode_automatic \
9495 module_expsym_cmds \
9496 lt_cv_prog_compiler_c_o \
9502 old_archive_cmds | \
9503 old_archive_from_new_cmds | \
9505 archive_expsym_cmds | \
9507 module_expsym_cmds | \
9508 old_archive_from_expsyms_cmds | \
9509 export_symbols_cmds | \
9510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9511 postinstall_cmds | postuninstall_cmds | \
9512 old_postinstall_cmds | old_postuninstall_cmds | \
9513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9514 # Double-quote double-evaled strings.
9515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9524 *'\$0 --fallback-echo"')
9525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9530 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9533 $as_echo "$as_me: creating $ofile" >&6;}
9535 cat <<__EOF__ >> "$cfgfile"
9538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9543 # Free Software Foundation, Inc.
9545 # This file is part of GNU Libtool:
9546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9548 # This program is free software; you can redistribute it and/or modify
9549 # it under the terms of the GNU General Public License as published by
9550 # the Free Software Foundation; either version 2 of the License, or
9551 # (at your option) any later version.
9553 # This program is distributed in the hope that it will be useful, but
9554 # WITHOUT ANY WARRANTY; without even the implied warranty of
9555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9556 # General Public License for more details.
9558 # You should have received a copy of the GNU General Public License
9559 # along with this program; if not, write to the Free Software
9560 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9562 # As a special exception to the GNU General Public License, if you
9563 # distribute this file as part of a program that contains a
9564 # configuration script generated by Autoconf, you may include it under
9565 # the same distribution terms that you use for the rest of that program.
9567 # A sed program that does not truncate output.
9570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9571 Xsed="$SED -e 1s/^X//"
9573 # The HP-UX ksh and POSIX shell print the target directory to stdout
9575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9577 # The names of the tagged configurations supported by this script.
9580 # ### BEGIN LIBTOOL CONFIG
9582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9584 # Shell to use when invoking shell scripts.
9587 # Whether or not to build shared libraries.
9588 build_libtool_libs=$enable_shared
9590 # Whether or not to build static libraries.
9591 build_old_libs=$enable_static
9593 # Whether or not to add -lc for building shared libraries.
9594 build_libtool_need_lc=$archive_cmds_need_lc
9596 # Whether or not to disallow shared libs when runtime libs are static
9597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9599 # Whether or not to optimize for fast installation.
9600 fast_install=$enable_fast_install
9603 host_alias=$host_alias
9608 build_alias=$build_alias
9612 # An echo program that does not interpret backslashes.
9617 AR_FLAGS=$lt_AR_FLAGS
9622 # LTCC compiler flags.
9623 LTCFLAGS=$lt_LTCFLAGS
9625 # A language-specific compiler.
9628 # Is the compiler the GNU C compiler?
9634 # The linker used to build libraries.
9637 # Whether we need hard or soft links.
9640 # A BSD-compatible nm program.
9643 # A symbol stripping program
9646 # Used to examine libraries when file_magic_cmd begins "file"
9647 MAGIC_CMD=$MAGIC_CMD
9649 # Used on cygwin: DLL creation program.
9652 # Used on cygwin: object dumper.
9655 # Used on cygwin: assembler.
9658 # The name of the directory that contains temporary libtool files.
9661 # How to create reloadable object files.
9662 reload_flag=$lt_reload_flag
9663 reload_cmds=$lt_reload_cmds
9665 # How to pass a linker flag through the compiler.
9666 wl=$lt_lt_prog_compiler_wl
9668 # Object file suffix (normally "o").
9671 # Old archive suffix (normally "a").
9674 # Shared library suffix (normally ".so").
9675 shrext_cmds='$shrext_cmds'
9677 # Executable file suffix (normally "").
9680 # Additional compiler flags for building library objects.
9681 pic_flag=$lt_lt_prog_compiler_pic
9684 # What is the maximum length of a command?
9685 max_cmd_len=$lt_cv_sys_max_cmd_len
9687 # Does compiler simultaneously support -c and -o options?
9688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9690 # Must we lock files when doing compilation?
9691 need_locks=$lt_need_locks
9693 # Do we need the lib prefix for modules?
9694 need_lib_prefix=$need_lib_prefix
9696 # Do we need a version for libraries?
9697 need_version=$need_version
9699 # Whether dlopen is supported.
9700 dlopen_support=$enable_dlopen
9702 # Whether dlopen of programs is supported.
9703 dlopen_self=$enable_dlopen_self
9705 # Whether dlopen of statically linked programs is supported.
9706 dlopen_self_static=$enable_dlopen_self_static
9708 # Compiler flag to prevent dynamic linking.
9709 link_static_flag=$lt_lt_prog_compiler_static
9711 # Compiler flag to turn off builtin functions.
9712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9714 # Compiler flag to allow reflexive dlopens.
9715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9717 # Compiler flag to generate shared objects directly from archives.
9718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9720 # Compiler flag to generate thread-safe objects.
9721 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9723 # Library versioning type.
9724 version_type=$version_type
9726 # Format of library name prefix.
9727 libname_spec=$lt_libname_spec
9729 # List of archive names. First name is the real one, the rest are links.
9730 # The last name is the one that the linker finds with -lNAME.
9731 library_names_spec=$lt_library_names_spec
9733 # The coded name of the library, if different from the real name.
9734 soname_spec=$lt_soname_spec
9736 # Commands used to build and install an old-style archive.
9738 old_archive_cmds=$lt_old_archive_cmds
9739 old_postinstall_cmds=$lt_old_postinstall_cmds
9740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9742 # Create an old-style archive from a shared archive.
9743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9745 # Create a temporary old-style archive to link instead of a shared archive.
9746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9748 # Commands used to build and install a shared archive.
9749 archive_cmds=$lt_archive_cmds
9750 archive_expsym_cmds=$lt_archive_expsym_cmds
9751 postinstall_cmds=$lt_postinstall_cmds
9752 postuninstall_cmds=$lt_postuninstall_cmds
9754 # Commands used to build a loadable module (assumed same as above if empty)
9755 module_cmds=$lt_module_cmds
9756 module_expsym_cmds=$lt_module_expsym_cmds
9758 # Commands to strip libraries.
9759 old_striplib=$lt_old_striplib
9760 striplib=$lt_striplib
9762 # Dependencies to place before the objects being linked to create a
9764 predep_objects=$lt_predep_objects
9766 # Dependencies to place after the objects being linked to create a
9768 postdep_objects=$lt_postdep_objects
9770 # Dependencies to place before the objects being linked to create a
9774 # Dependencies to place after the objects being linked to create a
9776 postdeps=$lt_postdeps
9778 # The directories searched by this compiler when creating a shared
9780 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
9782 # The library search path used internally by the compiler when linking
9784 compiler_lib_search_path=$lt_compiler_lib_search_path
9786 # Method to check whether dependent libraries are shared objects.
9787 deplibs_check_method=$lt_deplibs_check_method
9789 # Command to use when deplibs_check_method == file_magic.
9790 file_magic_cmd=$lt_file_magic_cmd
9792 # Flag that allows shared libraries with undefined symbols to be built.
9793 allow_undefined_flag=$lt_allow_undefined_flag
9795 # Flag that forces no undefined symbols.
9796 no_undefined_flag=$lt_no_undefined_flag
9798 # Commands used to finish a libtool library installation in a directory.
9799 finish_cmds=$lt_finish_cmds
9801 # Same as above, but a single script fragment to be evaled but not shown.
9802 finish_eval=$lt_finish_eval
9804 # Take the output of nm and produce a listing of raw symbols and C names.
9805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9807 # Transform the output of nm in a proper C declaration
9808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9810 # Transform the output of nm in a C name address pair
9811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9813 # This is the shared library runtime path variable.
9814 runpath_var=$runpath_var
9816 # This is the shared library path variable.
9817 shlibpath_var=$shlibpath_var
9819 # Is shlibpath searched before the hard-coded library search path?
9820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9822 # How to hardcode a shared library path into an executable.
9823 hardcode_action=$hardcode_action
9825 # Whether we should hardcode library paths into libraries.
9826 hardcode_into_libs=$hardcode_into_libs
9828 # Flag to hardcode \$libdir into a binary during linking.
9829 # This must work even if \$libdir does not exist.
9830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9832 # If ld is used when linking, flag to hardcode \$libdir into
9833 # a binary during linking. This must work even if \$libdir does
9835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9837 # Whether we need a single -rpath flag with a separated argument.
9838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9842 hardcode_direct=$hardcode_direct
9844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9846 hardcode_minus_L=$hardcode_minus_L
9848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9849 # the resulting binary.
9850 hardcode_shlibpath_var=$hardcode_shlibpath_var
9852 # Set to yes if building a shared library automatically hardcodes DIR into the library
9853 # and all subsequent libraries and executables linked against it.
9854 hardcode_automatic=$hardcode_automatic
9856 # Variables whose values should be saved in libtool wrapper scripts and
9857 # restored at relink time.
9858 variables_saved_for_relink="$variables_saved_for_relink"
9860 # Whether libtool must link a program against all its dependency libraries.
9861 link_all_deplibs=$link_all_deplibs
9863 # Compile-time system search path for libraries
9864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9866 # Run-time system search path for libraries
9867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9869 # Fix the shell variable \$srcfile for the compiler.
9870 fix_srcfile_path=$lt_fix_srcfile_path
9872 # Set to yes if exported symbols are required.
9873 always_export_symbols=$always_export_symbols
9875 # The commands to list exported symbols.
9876 export_symbols_cmds=$lt_export_symbols_cmds
9878 # The commands to extract the exported symbol list from a shared archive.
9879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9881 # Symbols that should not be listed in the preloaded symbols.
9882 exclude_expsyms=$lt_exclude_expsyms
9884 # Symbols that must always be exported.
9885 include_expsyms=$lt_include_expsyms
9887 # ### END LIBTOOL CONFIG
9894 cat <<\EOF >> "$cfgfile"
9896 # AIX sometimes has problems with the GCC collect2 program. For some
9897 # reason, if we set the COLLECT_NAMES environment variable, the problems
9898 # vanish in a puff of smoke.
9899 if test "X${COLLECT_NAMES+set}" != Xset; then
9901 export COLLECT_NAMES
9907 # We use sed instead of cat because bash on DJGPP gets confused if
9908 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9909 # text mode, it properly converts lines to CR/LF. This bash problem
9910 # is reportedly fixed, but why not run on old versions too?
9911 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9913 mv -f "$cfgfile" "$ofile" || \
9914 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9918 # If there is no Makefile yet, we rely on a make rule to execute
9919 # `config.status --recheck' to rerun these tests and create the
9920 # libtool script then.
9921 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9922 if test -f "$ltmain_in"; then
9923 test -f Makefile && make "$ltmain"
9929 ac_cpp='$CPP $CPPFLAGS'
9930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9937 # Check whether --with-tags was given.
9938 if test "${with_tags+set}" = set; then :
9939 withval=$with_tags; tagnames="$withval"
9943 if test -f "$ltmain" && test -n "$tagnames"; then
9944 if test ! -f "${ofile}"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9946 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9949 if test -z "$LTCC"; then
9950 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9951 if test -z "$LTCC"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9953 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9956 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9959 if test -z "$LTCFLAGS"; then
9960 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9963 # Extract list of available tagged configurations in $ofile.
9964 # Note that this assumes the entire list is on one line.
9965 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9968 for tagname in $tagnames; do
9970 # Check whether tagname contains only valid characters
9971 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9973 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9977 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9979 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9982 # Update the list of available tags.
9983 if test -n "$tagname"; then
9984 echo appending configuration tag \"$tagname\" to $ofile
9988 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9989 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9990 (test "X$CXX" != "Xg++"))) ; then
9992 ac_cpp='$CXXCPP $CPPFLAGS'
9993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10000 archive_cmds_need_lc_CXX=no
10001 allow_undefined_flag_CXX=
10002 always_export_symbols_CXX=no
10003 archive_expsym_cmds_CXX=
10004 export_dynamic_flag_spec_CXX=
10005 hardcode_direct_CXX=no
10006 hardcode_libdir_flag_spec_CXX=
10007 hardcode_libdir_flag_spec_ld_CXX=
10008 hardcode_libdir_separator_CXX=
10009 hardcode_minus_L_CXX=no
10010 hardcode_shlibpath_var_CXX=unsupported
10011 hardcode_automatic_CXX=no
10013 module_expsym_cmds_CXX=
10014 link_all_deplibs_CXX=unknown
10015 old_archive_cmds_CXX=$old_archive_cmds
10016 no_undefined_flag_CXX=
10017 whole_archive_flag_spec_CXX=
10018 enable_shared_with_static_runtimes_CXX=no
10020 # Dependencies to place before and after the object being linked:
10021 predep_objects_CXX=
10022 postdep_objects_CXX=
10025 compiler_lib_search_path_CXX=
10026 compiler_lib_search_dirs_CXX=
10028 # Source file extension for C++ test sources.
10031 # Object file extension for compiled C++ test sources.
10035 # Code to be used in simple compile tests
10036 lt_simple_compile_test_code="int some_variable = 0;"
10038 # Code to be used in simple link tests
10039 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10043 # If no C compiler was specified, use CC.
10046 # If no C compiler flags were specified, use CFLAGS.
10047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10049 # Allow CC to be a program name with arguments.
10053 # save warnings/boilerplate of simple test code
10054 ac_outfile=conftest.$ac_objext
10055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10057 _lt_compiler_boilerplate=`cat conftest.err`
10060 ac_outfile=conftest.$ac_objext
10061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10063 _lt_linker_boilerplate=`cat conftest.err`
10067 # Allow CC to be a program name with arguments.
10072 lt_save_with_gnu_ld=$with_gnu_ld
10073 lt_save_path_LD=$lt_cv_path_LD
10074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10075 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10077 $as_unset lt_cv_prog_gnu_ld
10079 if test -n "${lt_cv_path_LDCXX+set}"; then
10080 lt_cv_path_LD=$lt_cv_path_LDCXX
10082 $as_unset lt_cv_path_LD
10084 test -z "${LDCXX+set}" || LD=$LDCXX
10088 for cc_temp in $compiler""; do
10090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10099 # We don't want -fno-exception wen compiling C++ code, so set the
10100 # no_builtin_flag separately
10101 if test "$GXX" = yes; then
10102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10104 lt_prog_compiler_no_builtin_flag_CXX=
10107 if test "$GXX" = yes; then
10108 # Set up default GNU C++ configuration
10111 # Check whether --with-gnu-ld was given.
10112 if test "${with_gnu_ld+set}" = set; then :
10113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10119 if test "$GCC" = yes; then
10120 # Check if gcc -print-prog-name=ld gives a path.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10122 $as_echo_n "checking for ld used by $CC... " >&6; }
10125 # gcc leaves a trailing carriage return which upsets mingw
10126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10131 # Accept absolute paths.
10133 re_direlt='/[^/][^/]*/\.\./'
10134 # Canonicalize the pathname of ld
10135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10139 test -z "$LD" && LD="$ac_prog"
10142 # If it fails, then pretend we aren't using GCC.
10146 # If it is relative, then search for the first ld in PATH.
10147 with_gnu_ld=unknown
10150 elif test "$with_gnu_ld" = yes; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10152 $as_echo_n "checking for GNU ld... " >&6; }
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10155 $as_echo_n "checking for non-GNU ld... " >&6; }
10157 if test "${lt_cv_path_LD+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10160 if test -z "$LD"; then
10161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10162 for ac_dir in $PATH; do
10164 test -z "$ac_dir" && ac_dir=.
10165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10166 lt_cv_path_LD="$ac_dir/$ac_prog"
10167 # Check to see if the program is GNU ld. I'd rather use --version,
10168 # but apparently some variants of GNU ld only accept -v.
10169 # Break only if it was the GNU/non-GNU ld that we prefer.
10170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10171 *GNU* | *'with BFD'*)
10172 test "$with_gnu_ld" != no && break
10175 test "$with_gnu_ld" != yes && break
10182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10186 LD="$lt_cv_path_LD"
10187 if test -n "$LD"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10189 $as_echo "$LD" >&6; }
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10197 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10200 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10201 case `$LD -v 2>&1 </dev/null` in
10202 *GNU* | *'with BFD'*)
10203 lt_cv_prog_gnu_ld=yes
10206 lt_cv_prog_gnu_ld=no
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10211 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10212 with_gnu_ld=$lt_cv_prog_gnu_ld
10216 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10217 # archiving commands below assume that GNU ld is being used.
10218 if test "$with_gnu_ld" = yes; then
10219 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 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'
10222 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10225 # If archive_cmds runs LD, not CC, wlarc should be empty
10226 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10227 # investigate it a little bit more. (MM)
10230 # ancient GNU ld didn't support --whole-archive et. al.
10231 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10232 grep 'no-whole-archive' > /dev/null; then
10233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10235 whole_archive_flag_spec_CXX=
10241 # A generic and very simple default shared library creation
10242 # command for GNU C++ for the case where it uses the native
10243 # linker, instead of GNU ld. If possible, this setting should
10244 # overridden to take advantage of the native linker features on
10245 # the platform it is being used on.
10246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10249 # Commands to make compiler produce verbose output that lists
10250 # what "hidden" libraries, object files and flags are used when
10251 # linking a shared library.
10252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10260 # PORTME: fill in a description of your system's C++ link characteristics
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10262 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10266 # FIXME: insert proper C++ library support
10270 if test "$host_cpu" = ia64; then
10271 # On IA64, the linker does run time linking by default, so we don't
10272 # have to do anything special.
10273 aix_use_runtimelinking=no
10274 exp_sym_flag='-Bexport'
10277 aix_use_runtimelinking=no
10279 # Test if we are trying to use run time linking or normal
10280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10281 # need to do runtime linking.
10282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10283 for ld_flag in $LDFLAGS; do
10286 aix_use_runtimelinking=yes
10294 exp_sym_flag='-bexport'
10295 no_entry_flag='-bnoentry'
10298 # When large executables or shared objects are built, AIX ld can
10299 # have problems creating the table of contents. If linking a library
10300 # or program results in "error TOC overflow" add -mminimal-toc to
10301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10304 archive_cmds_CXX=''
10305 hardcode_direct_CXX=yes
10306 hardcode_libdir_separator_CXX=':'
10307 link_all_deplibs_CXX=yes
10309 if test "$GXX" = yes; then
10310 case $host_os in aix4.[012]|aix4.[012].*)
10311 # We only want to do this on AIX 4.2 and lower, the check
10312 # below for broken collect2 doesn't work under 4.3+
10313 collect2name=`${CC} -print-prog-name=collect2`
10314 if test -f "$collect2name" && \
10315 strings "$collect2name" | grep resolve_lib_name >/dev/null
10317 # We have reworked collect2
10320 # We have old collect2
10321 hardcode_direct_CXX=unsupported
10322 # It fails to find uninstalled libraries when the uninstalled
10323 # path is not listed in the libpath. Setting hardcode_minus_L
10324 # to unsupported forces relinking
10325 hardcode_minus_L_CXX=yes
10326 hardcode_libdir_flag_spec_CXX='-L$libdir'
10327 hardcode_libdir_separator_CXX=
10331 shared_flag='-shared'
10332 if test "$aix_use_runtimelinking" = yes; then
10333 shared_flag="$shared_flag "'${wl}-G'
10337 if test "$host_cpu" = ia64; then
10338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10339 # chokes on -Wl,-G. The following line is correct:
10342 if test "$aix_use_runtimelinking" = yes; then
10343 shared_flag='${wl}-G'
10345 shared_flag='${wl}-bM:SRE'
10350 # It seems that -bexpall does not export symbols beginning with
10351 # underscore (_), so it is better to generate a list of symbols to export.
10352 always_export_symbols_CXX=yes
10353 if test "$aix_use_runtimelinking" = yes; then
10354 # Warning - without using the other runtime loading flags (-brtl),
10355 # -berok will link without error, but may produce a broken library.
10356 allow_undefined_flag_CXX='-berok'
10357 # Determine the default libpath from the value encoded in an empty executable.
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10369 if ac_fn_cxx_try_link "$LINENO"; then :
10371 lt_aix_libpath_sed='
10372 /Import File Strings/,/^$/ {
10378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10379 # Check for a 64-bit object if we didn't find anything.
10380 if test -z "$aix_libpath"; then
10381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10390 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"
10392 if test "$host_cpu" = ia64; then
10393 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10394 allow_undefined_flag_CXX="-z nodefs"
10395 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"
10397 # Determine the default libpath from the value encoded in an empty executable.
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10409 if ac_fn_cxx_try_link "$LINENO"; then :
10411 lt_aix_libpath_sed='
10412 /Import File Strings/,/^$/ {
10418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419 # Check for a 64-bit object if we didn't find anything.
10420 if test -z "$aix_libpath"; then
10421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429 # Warning - without using the other run time loading flags,
10430 # -berok will link without error, but may produce a broken library.
10431 no_undefined_flag_CXX=' ${wl}-bernotok'
10432 allow_undefined_flag_CXX=' ${wl}-berok'
10433 # Exported symbols can be pulled into shared objects from archives
10434 whole_archive_flag_spec_CXX='$convenience'
10435 archive_cmds_need_lc_CXX=yes
10436 # This is similar to how AIX traditionally builds its shared libraries.
10437 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'
10443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10444 allow_undefined_flag_CXX=unsupported
10445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10446 # support --undefined. This deserves some investigation. FIXME
10447 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454 case $cc_basename in
10456 # FIXME: insert proper C++ library support
10462 cygwin* | mingw* | pw32*)
10463 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10464 # as there is no search path for DLLs.
10465 hardcode_libdir_flag_spec_CXX='-L$libdir'
10466 allow_undefined_flag_CXX=unsupported
10467 always_export_symbols_CXX=no
10468 enable_shared_with_static_runtimes_CXX=yes
10470 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10471 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'
10472 # If the export-symbols file already is a .def file (1st line
10473 # is EXPORTS), use it as is; otherwise, prepend...
10474 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10475 cp $export_symbols $output_objdir/$soname.def;
10477 echo EXPORTS > $output_objdir/$soname.def;
10478 cat $export_symbols >> $output_objdir/$soname.def;
10480 $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'
10485 darwin* | rhapsody*)
10486 archive_cmds_need_lc_CXX=no
10487 hardcode_direct_CXX=no
10488 hardcode_automatic_CXX=yes
10489 hardcode_shlibpath_var_CXX=unsupported
10490 whole_archive_flag_spec_CXX=''
10491 link_all_deplibs_CXX=yes
10492 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10493 if test "$GXX" = yes ; then
10494 output_verbose_link_cmd='echo'
10495 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}"
10496 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10497 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}"
10498 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}"
10499 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10500 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}"
10501 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}"
10504 case $cc_basename in
10506 output_verbose_link_cmd='echo'
10507 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'
10508 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10510 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}'
10511 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}'
10521 case $cc_basename in
10523 # FIXME: insert proper C++ library support
10527 # Green Hills C++ Compiler
10528 # FIXME: insert proper C++ library support
10532 # FIXME: insert proper C++ library support
10538 # C++ shared libraries reported to be fairly broken before switch to ELF
10542 archive_cmds_need_lc_CXX=no
10544 freebsd* | dragonfly*)
10545 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10553 hardcode_libdir_separator_CXX=:
10554 export_dynamic_flag_spec_CXX='${wl}-E'
10555 hardcode_direct_CXX=yes
10556 hardcode_minus_L_CXX=yes # Not in the search PATH,
10557 # but as the default
10558 # location of the library.
10560 case $cc_basename in
10562 # FIXME: insert proper C++ library support
10566 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'
10567 # Commands to make compiler produce verbose output that lists
10568 # what "hidden" libraries, object files and flags are used when
10569 # linking a shared library.
10571 # There doesn't appear to be a way to prevent this compiler from
10572 # explicitly linking system object files so we need to strip them
10573 # from the output so that they don't get included in the library
10575 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'
10578 if test "$GXX" = yes; then
10579 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'
10581 # FIXME: insert proper C++ library support
10588 if test $with_gnu_ld = no; then
10589 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10590 hardcode_libdir_separator_CXX=:
10595 export_dynamic_flag_spec_CXX='${wl}-E'
10601 hardcode_direct_CXX=no
10602 hardcode_shlibpath_var_CXX=no
10605 hardcode_direct_CXX=yes
10606 hardcode_minus_L_CXX=yes # Not in the search PATH,
10607 # but as the default
10608 # location of the library.
10612 case $cc_basename in
10614 # FIXME: insert proper C++ library support
10620 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10623 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10629 # Commands to make compiler produce verbose output that lists
10630 # what "hidden" libraries, object files and flags are used when
10631 # linking a shared library.
10633 # There doesn't appear to be a way to prevent this compiler from
10634 # explicitly linking system object files so we need to strip them
10635 # from the output so that they don't get included in the library
10637 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'
10640 if test "$GXX" = yes; then
10641 if test $with_gnu_ld = no; then
10644 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10647 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10650 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'
10655 # FIXME: insert proper C++ library support
10662 hardcode_direct_CXX=no
10663 hardcode_shlibpath_var_CXX=no
10664 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10665 export_dynamic_flag_spec_CXX='${wl}-E'
10666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10667 # Instead, shared libraries are loaded at an image base (0x10000000 by
10668 # default) and relocated if they conflict, which is a slow very memory
10669 # consuming and fragmenting process. To avoid this, we pick a random,
10670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10672 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'
10673 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'
10676 case $cc_basename in
10679 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'
10681 # Archives containing C++ object files must be created using
10682 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10683 # necessary to make sure instantiated templates are included
10685 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10688 if test "$GXX" = yes; then
10689 if test "$with_gnu_ld" = no; then
10690 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'
10692 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'
10695 link_all_deplibs_CXX=yes
10698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10699 hardcode_libdir_separator_CXX=:
10701 linux* | k*bsd*-gnu)
10702 case $cc_basename in
10704 # Kuck and Associates, Inc. (KAI) C++ Compiler
10706 # KCC will only create a shared library if the output file
10707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10708 # to its proper name (with version) after linking.
10709 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'
10710 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'
10711 # Commands to make compiler produce verbose output that lists
10712 # what "hidden" libraries, object files and flags are used when
10713 # linking a shared library.
10715 # There doesn't appear to be a way to prevent this compiler from
10716 # explicitly linking system object files so we need to strip them
10717 # from the output so that they don't get included in the library
10719 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'
10721 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10724 # Archives containing C++ object files must be created using
10725 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10726 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10731 # version 8.0 and above of icpc choke on multiply defined symbols
10732 # if we add $predep_objects and $postdep_objects, however 7.1 and
10733 # earlier do not add the objects themselves.
10734 case `$CC -V 2>&1` in
10736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737 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'
10739 *) # Version 8.0 or newer
10742 ia64*) tmp_idyn=' -i_dynamic';;
10744 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10745 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'
10748 archive_cmds_need_lc_CXX=no
10749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10751 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10754 # Portland Group C++ compiler
10755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10756 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'
10758 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10760 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'
10764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10765 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'
10767 runpath_var=LD_RUN_PATH
10768 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10769 hardcode_libdir_separator_CXX=:
10771 # Commands to make compiler produce verbose output that lists
10772 # what "hidden" libraries, object files and flags are used when
10773 # linking a shared library.
10775 # There doesn't appear to be a way to prevent this compiler from
10776 # explicitly linking system object files so we need to strip them
10777 # from the output so that they don't get included in the library
10779 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'
10782 case `$CC -V 2>&1 | sed 5q` in
10785 no_undefined_flag_CXX=' -zdefs'
10786 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10787 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'
10788 hardcode_libdir_flag_spec_CXX='-R$libdir'
10789 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'
10791 # Not sure whether something based on
10792 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10794 output_verbose_link_cmd='echo'
10796 # Archives containing C++ object files must be created using
10797 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10798 # necessary to make sure instantiated templates are included
10800 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10807 # FIXME: insert proper C++ library support
10811 # FIXME: insert proper C++ library support
10815 case $cc_basename in
10817 # FIXME: insert proper C++ library support
10821 # FIXME: insert proper C++ library support
10827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10828 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10830 hardcode_libdir_flag_spec_CXX='-R$libdir'
10831 hardcode_direct_CXX=yes
10832 hardcode_shlibpath_var_CXX=no
10834 # Workaround some broken pre-1.5 toolchains
10835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10838 # C++ shared libraries are fairly broken
10842 if test -f /usr/libexec/ld.so; then
10843 hardcode_direct_CXX=yes
10844 hardcode_shlibpath_var_CXX=no
10845 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10848 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10849 export_dynamic_flag_spec_CXX='${wl}-E'
10850 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10852 output_verbose_link_cmd='echo'
10858 case $cc_basename in
10860 # Kuck and Associates, Inc. (KAI) C++ Compiler
10862 # KCC will only create a shared library if the output file
10863 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10864 # to its proper name (with version) after linking.
10865 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'
10867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10868 hardcode_libdir_separator_CXX=:
10870 # Archives containing C++ object files must be created using
10871 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10872 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10876 # Rational C++ 2.4.1
10877 # FIXME: insert proper C++ library support
10881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882 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'
10884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885 hardcode_libdir_separator_CXX=:
10887 # Commands to make compiler produce verbose output that lists
10888 # what "hidden" libraries, object files and flags are used when
10889 # linking a shared library.
10891 # There doesn't appear to be a way to prevent this compiler from
10892 # explicitly linking system object files so we need to strip them
10893 # from the output so that they don't get included in the library
10895 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'
10898 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10900 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'
10902 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10903 hardcode_libdir_separator_CXX=:
10905 # Commands to make compiler produce verbose output that lists
10906 # what "hidden" libraries, object files and flags are used when
10907 # linking a shared library.
10908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10911 # FIXME: insert proper C++ library support
10918 case $cc_basename in
10920 # Kuck and Associates, Inc. (KAI) C++ Compiler
10922 # KCC will only create a shared library if the output file
10923 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10924 # to its proper name (with version) after linking.
10925 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'
10927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10928 hardcode_libdir_separator_CXX=:
10930 # Archives containing C++ object files must be created using
10931 # the KAI C++ compiler.
10932 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10935 # Rational C++ 2.4.1
10936 # FIXME: insert proper C++ library support
10940 allow_undefined_flag_CXX=' -expect_unresolved \*'
10941 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'
10942 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10943 echo "-hidden">> $lib.exp~
10944 $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~
10947 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10948 hardcode_libdir_separator_CXX=:
10950 # Commands to make compiler produce verbose output that lists
10951 # what "hidden" libraries, object files and flags are used when
10952 # linking a shared library.
10954 # There doesn't appear to be a way to prevent this compiler from
10955 # explicitly linking system object files so we need to strip them
10956 # from the output so that they don't get included in the library
10958 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'
10961 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10962 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10963 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'
10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10966 hardcode_libdir_separator_CXX=:
10968 # Commands to make compiler produce verbose output that lists
10969 # what "hidden" libraries, object files and flags are used when
10970 # linking a shared library.
10971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10974 # FIXME: insert proper C++ library support
10981 # FIXME: insert proper C++ library support
10985 case $cc_basename in
10988 # FIXME: insert proper C++ library support
10993 # FIXME: insert proper C++ library support
10997 # FIXME: insert proper C++ library support
11003 case $cc_basename in
11005 # Sun C++ 4.2, 5.x and Centerline C++
11006 archive_cmds_need_lc_CXX=yes
11007 no_undefined_flag_CXX=' -zdefs'
11008 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11010 $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'
11012 hardcode_libdir_flag_spec_CXX='-R$libdir'
11013 hardcode_shlibpath_var_CXX=no
11015 solaris2.[0-5] | solaris2.[0-5].*) ;;
11017 # The compiler driver will combine and reorder linker options,
11018 # but understands `-z linker_flag'.
11019 # Supported since Solaris 2.6 (maybe 2.5.1?)
11020 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11023 link_all_deplibs_CXX=yes
11025 output_verbose_link_cmd='echo'
11027 # Archives containing C++ object files must be created using
11028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11029 # necessary to make sure instantiated templates are included
11031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11034 # Green Hills C++ Compiler
11035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11037 # The C++ compiler must be used to create the archive.
11038 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11041 # GNU C++ compiler with Solaris linker
11042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11043 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11044 if $CC --version | grep -v '^2\.7' > /dev/null; then
11045 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11047 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11049 # Commands to make compiler produce verbose output that lists
11050 # what "hidden" libraries, object files and flags are used when
11051 # linking a shared library.
11052 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11054 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11056 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11057 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11058 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11060 # Commands to make compiler produce verbose output that lists
11061 # what "hidden" libraries, object files and flags are used when
11062 # linking a shared library.
11063 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11066 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11068 solaris2.[0-5] | solaris2.[0-5].*) ;;
11070 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11078 no_undefined_flag_CXX='${wl}-z,text'
11079 archive_cmds_need_lc_CXX=no
11080 hardcode_shlibpath_var_CXX=no
11081 runpath_var='LD_RUN_PATH'
11083 case $cc_basename in
11085 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11086 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11089 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11090 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094 sysv5* | sco3.2v5* | sco5v6*)
11095 # Note: We can NOT use -z defs as we might desire, because we do not
11096 # link with -lc, and that would cause any symbols used from libc to
11097 # always be unresolved, which means just about no library would
11098 # ever link correctly. If we're not using GNU ld we use -z text
11099 # though, which does catch some bad symbols but isn't as heavy-handed
11101 # For security reasons, it is highly recommended that you always
11102 # use absolute paths for naming shared libraries, and exclude the
11103 # DT_RUNPATH tag from executables and libraries. But doing so
11104 # requires that you compile everything twice, which is a pain.
11105 # So that behaviour is only enabled if SCOABSPATH is set to a
11106 # non-empty value in the environment. Most likely only useful for
11107 # creating official distributions of packages.
11108 # This is a hack until libtool officially supports absolute path
11109 # names for shared libraries.
11110 no_undefined_flag_CXX='${wl}-z,text'
11111 allow_undefined_flag_CXX='${wl}-z,nodefs'
11112 archive_cmds_need_lc_CXX=no
11113 hardcode_shlibpath_var_CXX=no
11114 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11115 hardcode_libdir_separator_CXX=':'
11116 link_all_deplibs_CXX=yes
11117 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11118 runpath_var='LD_RUN_PATH'
11120 case $cc_basename in
11122 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 case $cc_basename in
11134 # NonStop-UX NCC 3.20
11135 # FIXME: insert proper C++ library support
11139 # FIXME: insert proper C++ library support
11145 # FIXME: insert proper C++ library support
11149 # FIXME: insert proper C++ library support
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11154 $as_echo "$ld_shlibs_CXX" >&6; }
11155 test "$ld_shlibs_CXX" = no && can_build_shared=no
11161 ## There is no encapsulation within the following macros, do not change
11162 ## the running order or otherwise move them around unless you know exactly
11163 ## what you are doing...
11164 cat > conftest.$ac_ext <<EOF
11168 Foo (void) { a = 0; }
11174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11175 (eval $ac_compile) 2>&5
11177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11178 test $ac_status = 0; }; then
11179 # Parse the compiler output and extract the necessary
11180 # objects, libraries and library flags.
11182 # Sentinel used to keep track of whether or not we are before
11183 # the conftest object file.
11184 pre_test_object_deps_done=no
11186 # The `*' in the case matches for architectures that use `case' in
11187 # $output_verbose_cmd can trigger glob expansion during the loop
11188 # eval without this substitution.
11189 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11191 for p in `eval $output_verbose_link_cmd`; do
11195 # Some compilers place space between "-{L,R}" and the path.
11196 # Remove the space.
11197 if test $p = "-L" \
11198 || test $p = "-R"; then
11205 if test "$pre_test_object_deps_done" = no; then
11208 # Internal compiler library paths should come after those
11209 # provided the user. The postdeps already come after the
11210 # user supplied libs so there is no need to process them.
11211 if test -z "$compiler_lib_search_path_CXX"; then
11212 compiler_lib_search_path_CXX="${prev}${p}"
11214 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11217 # The "-l" case would never come before the object being
11218 # linked, so don't bother handling this case.
11221 if test -z "$postdeps_CXX"; then
11222 postdeps_CXX="${prev}${p}"
11224 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11230 # This assumes that the test object file only shows up
11231 # once in the compiler output.
11232 if test "$p" = "conftest.$objext"; then
11233 pre_test_object_deps_done=yes
11237 if test "$pre_test_object_deps_done" = no; then
11238 if test -z "$predep_objects_CXX"; then
11239 predep_objects_CXX="$p"
11241 predep_objects_CXX="$predep_objects_CXX $p"
11244 if test -z "$postdep_objects_CXX"; then
11245 postdep_objects_CXX="$p"
11247 postdep_objects_CXX="$postdep_objects_CXX $p"
11252 *) ;; # Ignore the rest.
11260 echo "libtool.m4: error: problem compiling CXX test program"
11263 $rm -f confest.$objext
11265 compiler_lib_search_dirs_CXX=
11266 if test -n "$compiler_lib_search_path_CXX"; then
11267 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11270 # PORTME: override above test on systems where it is broken
11273 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11274 # hack all around it, let's just trust "g++" to DTRT.
11275 predep_objects_CXX=
11276 postdep_objects_CXX=
11281 case `$CC -V 2>&1 | sed 5q` in
11285 # The more standards-conforming stlport4 library is
11286 # incompatible with the Cstd library. Avoid specifying
11287 # it if it's in CXXFLAGS. Ignore libCrun as
11288 # -library=stlport4 depends on it.
11289 case " $CXX $CXXFLAGS " in
11290 *" -library=stlport4 "*)
11291 solaris_use_stlport4=yes
11294 if test "$solaris_use_stlport4" != yes; then
11295 postdeps_CXX='-library=Cstd -library=Crun'
11302 case $cc_basename in
11304 # The more standards-conforming stlport4 library is
11305 # incompatible with the Cstd library. Avoid specifying
11306 # it if it's in CXXFLAGS. Ignore libCrun as
11307 # -library=stlport4 depends on it.
11308 case " $CXX $CXXFLAGS " in
11309 *" -library=stlport4 "*)
11310 solaris_use_stlport4=yes
11314 # Adding this requires a known-good setup of shared libraries for
11315 # Sun compiler versions before 5.6, else PIC objects from an old
11316 # archive will be linked into the output, leading to subtle bugs.
11317 if test "$solaris_use_stlport4" != yes; then
11318 postdeps_CXX='-library=Cstd -library=Crun'
11325 case " $postdeps_CXX " in
11326 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11329 lt_prog_compiler_wl_CXX=
11330 lt_prog_compiler_pic_CXX=
11331 lt_prog_compiler_static_CXX=
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11334 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11336 # C++ specific cases for pic, static, wl, etc.
11337 if test "$GXX" = yes; then
11338 lt_prog_compiler_wl_CXX='-Wl,'
11339 lt_prog_compiler_static_CXX='-static'
11343 # All AIX code is PIC.
11344 if test "$host_cpu" = ia64; then
11345 # AIX 5 now supports IA64 processor
11346 lt_prog_compiler_static_CXX='-Bstatic'
11350 # FIXME: we need at least 68020 code to build shared libraries, but
11351 # adding the `-m68020' flag to GCC prevents building anything better,
11353 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11355 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11356 # PIC is the default for these OSes.
11358 mingw* | cygwin* | os2* | pw32*)
11359 # This hack is so that the source file can tell whether it is being
11360 # built for inclusion in a dll (and should export symbols for example).
11361 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11362 # (--disable-auto-import) libraries
11363 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11365 darwin* | rhapsody*)
11366 # PIC is the default on this platform
11367 # Common symbols not allowed in MH_DYLIB files
11368 lt_prog_compiler_pic_CXX='-fno-common'
11371 # DJGPP does not support shared libraries at all
11372 lt_prog_compiler_pic_CXX=
11375 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11376 # Instead, we relocate shared libraries at runtime.
11379 if test -d /usr/nec; then
11380 lt_prog_compiler_pic_CXX=-Kconform_pic
11384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11385 # not for PA HP-UX.
11390 lt_prog_compiler_pic_CXX='-fPIC'
11395 lt_prog_compiler_pic_CXX='-fPIC'
11401 # All AIX code is PIC.
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 now supports IA64 processor
11404 lt_prog_compiler_static_CXX='-Bstatic'
11406 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11410 case $cc_basename in
11412 # Green Hills C++ Compiler
11413 # _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"
11418 # PIC is the default on this platform
11419 # Common symbols not allowed in MH_DYLIB files
11420 case $cc_basename in
11422 lt_prog_compiler_pic_CXX='-qnocommon'
11423 lt_prog_compiler_wl_CXX='-Wl,'
11428 case $cc_basename in
11430 lt_prog_compiler_pic_CXX='-KPIC'
11433 # Green Hills C++ Compiler
11434 lt_prog_compiler_pic_CXX='-pic'
11440 freebsd* | dragonfly*)
11441 # FreeBSD uses GNU C++
11443 hpux9* | hpux10* | hpux11*)
11444 case $cc_basename in
11446 lt_prog_compiler_wl_CXX='-Wl,'
11447 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11448 if test "$host_cpu" != ia64; then
11449 lt_prog_compiler_pic_CXX='+Z'
11453 lt_prog_compiler_wl_CXX='-Wl,'
11454 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11460 lt_prog_compiler_pic_CXX='+Z'
11469 # This is c89, which is MS Visual C++ (no shared libs)
11470 # Anyone wants to do a port?
11472 irix5* | irix6* | nonstopux*)
11473 case $cc_basename in
11475 lt_prog_compiler_wl_CXX='-Wl,'
11476 lt_prog_compiler_static_CXX='-non_shared'
11477 # CC pic flag -KPIC is the default.
11483 linux* | k*bsd*-gnu)
11484 case $cc_basename in
11487 lt_prog_compiler_wl_CXX='--backend -Wl,'
11488 lt_prog_compiler_pic_CXX='-fPIC'
11492 lt_prog_compiler_wl_CXX='-Wl,'
11493 lt_prog_compiler_pic_CXX='-KPIC'
11494 lt_prog_compiler_static_CXX='-static'
11497 # Portland Group C++ compiler.
11498 lt_prog_compiler_wl_CXX='-Wl,'
11499 lt_prog_compiler_pic_CXX='-fpic'
11500 lt_prog_compiler_static_CXX='-Bstatic'
11504 # Make sure the PIC flag is empty. It appears that all Alpha
11505 # Linux and Compaq Tru64 Unix objects are PIC.
11506 lt_prog_compiler_pic_CXX=
11507 lt_prog_compiler_static_CXX='-non_shared'
11510 case `$CC -V 2>&1 | sed 5q` in
11513 lt_prog_compiler_pic_CXX='-KPIC'
11514 lt_prog_compiler_static_CXX='-Bstatic'
11515 lt_prog_compiler_wl_CXX='-Qoption ld '
11526 case $cc_basename in
11528 lt_prog_compiler_pic_CXX='-W c,exportall'
11536 osf3* | osf4* | osf5*)
11537 case $cc_basename in
11539 lt_prog_compiler_wl_CXX='--backend -Wl,'
11542 # Rational C++ 2.4.1
11543 lt_prog_compiler_pic_CXX='-pic'
11546 # Digital/Compaq C++
11547 lt_prog_compiler_wl_CXX='-Wl,'
11548 # Make sure the PIC flag is empty. It appears that all Alpha
11549 # Linux and Compaq Tru64 Unix objects are PIC.
11550 lt_prog_compiler_pic_CXX=
11551 lt_prog_compiler_static_CXX='-non_shared'
11560 case $cc_basename in
11562 # Sun C++ 4.2, 5.x and Centerline C++
11563 lt_prog_compiler_pic_CXX='-KPIC'
11564 lt_prog_compiler_static_CXX='-Bstatic'
11565 lt_prog_compiler_wl_CXX='-Qoption ld '
11568 # Green Hills C++ Compiler
11569 lt_prog_compiler_pic_CXX='-PIC'
11576 case $cc_basename in
11579 lt_prog_compiler_pic_CXX='-pic'
11580 lt_prog_compiler_static_CXX='-Bstatic'
11584 lt_prog_compiler_pic_CXX='-pic'
11591 case $cc_basename in
11593 # NonStop-UX NCC 3.20
11594 lt_prog_compiler_pic_CXX='-KPIC'
11600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11601 case $cc_basename in
11603 lt_prog_compiler_wl_CXX='-Wl,'
11604 lt_prog_compiler_pic_CXX='-KPIC'
11605 lt_prog_compiler_static_CXX='-Bstatic'
11612 lt_prog_compiler_can_build_shared_CXX=no
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11618 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11621 # Check to make sure the PIC flag actually works.
11623 if test -n "$lt_prog_compiler_pic_CXX"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11626 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11627 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11630 lt_cv_prog_compiler_pic_works_CXX=no
11631 ac_outfile=conftest.$ac_objext
11632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11633 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11634 # Insert the option either (1) after the last *FLAGS variable, or
11635 # (2) before a word containing "conftest.", or (3) at the end.
11636 # Note that $ac_compile itself does not contain backslashes and begins
11637 # with a dollar sign (not a hyphen), so the echo should work correctly.
11638 # The option is referenced via a variable to avoid confusing sed.
11639 lt_compile=`echo "$ac_compile" | $SED \
11640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11642 -e 's:$: $lt_compiler_flag:'`
11643 (eval echo "\"\$as_me:11643: $lt_compile\"" >&5)
11644 (eval "$lt_compile" 2>conftest.err)
11646 cat conftest.err >&5
11647 echo "$as_me:11647: \$? = $ac_status" >&5
11648 if (exit $ac_status) && test -s "$ac_outfile"; then
11649 # The compiler can only warn and ignore the option if not recognized
11650 # So say no if there are warnings other than the usual output.
11651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11654 lt_cv_prog_compiler_pic_works_CXX=yes
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
11661 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
11663 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11664 case $lt_prog_compiler_pic_CXX in
11666 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11669 lt_prog_compiler_pic_CXX=
11670 lt_prog_compiler_can_build_shared_CXX=no
11675 # For platforms which do not support PIC, -DPIC is meaningless:
11677 lt_prog_compiler_pic_CXX=
11680 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11685 # Check to make sure the static flag actually works.
11687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11690 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11693 lt_cv_prog_compiler_static_works_CXX=no
11694 save_LDFLAGS="$LDFLAGS"
11695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11698 # The linker can only warn and ignore the option if not recognized
11699 # So say no if there are warnings
11700 if test -s conftest.err; then
11701 # Append any errors to the config.log.
11702 cat conftest.err 1>&5
11703 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11705 if diff conftest.exp conftest.er2 >/dev/null; then
11706 lt_cv_prog_compiler_static_works_CXX=yes
11709 lt_cv_prog_compiler_static_works_CXX=yes
11713 LDFLAGS="$save_LDFLAGS"
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
11717 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
11719 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
11722 lt_prog_compiler_static_CXX=
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11727 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11728 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11731 lt_cv_prog_compiler_c_o_CXX=no
11732 $rm -r conftest 2>/dev/null
11736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11738 lt_compiler_flag="-o out/conftest2.$ac_objext"
11739 # Insert the option either (1) after the last *FLAGS variable, or
11740 # (2) before a word containing "conftest.", or (3) at the end.
11741 # Note that $ac_compile itself does not contain backslashes and begins
11742 # with a dollar sign (not a hyphen), so the echo should work correctly.
11743 lt_compile=`echo "$ac_compile" | $SED \
11744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11746 -e 's:$: $lt_compiler_flag:'`
11747 (eval echo "\"\$as_me:11747: $lt_compile\"" >&5)
11748 (eval "$lt_compile" 2>out/conftest.err)
11750 cat out/conftest.err >&5
11751 echo "$as_me:11751: \$? = $ac_status" >&5
11752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11754 # The compiler can only warn and ignore the option if not recognized
11755 # So say no if there are warnings
11756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11759 lt_cv_prog_compiler_c_o_CXX=yes
11764 # SGI C++ compiler will create directory out/ii_files/ for
11765 # template instantiation
11766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11767 $rm out/* && rmdir out
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11774 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11777 hard_links="nottested"
11778 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11779 # do not overwrite the value of need_locks provided by the user
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11781 $as_echo_n "checking if we can lock with hard links... " >&6; }
11784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11786 ln conftest.a conftest.b 2>&5 || hard_links=no
11787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11789 $as_echo "$hard_links" >&6; }
11790 if test "$hard_links" = no; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11800 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11802 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11805 # If we're using GNU nm, then we don't want the "-C" option.
11806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11808 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'
11810 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'
11814 export_symbols_cmds_CXX="$ltdll_cmds"
11817 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'
11820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11823 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11826 $as_echo "$ld_shlibs_CXX" >&6; }
11827 test "$ld_shlibs_CXX" = no && can_build_shared=no
11830 # Do we need to explicitly link libc?
11832 case "x$archive_cmds_need_lc_CXX" in
11834 # Assume -lc should be added
11835 archive_cmds_need_lc_CXX=yes
11837 if test "$enable_shared" = yes && test "$GCC" = yes; then
11838 case $archive_cmds_CXX in
11840 # FIXME: we may have to deal with multi-command sequences.
11843 # Test whether the compiler implicitly links with -lc since on some
11844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11845 # to ld, don't add -lc before -lgcc.
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11852 (eval $ac_compile) 2>&5
11854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855 test $ac_status = 0; } 2>conftest.err; then
11858 libobjs=conftest.$ac_objext
11860 wl=$lt_prog_compiler_wl_CXX
11861 pic_flag=$lt_prog_compiler_pic_CXX
11867 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11868 allow_undefined_flag_CXX=
11869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11870 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873 test $ac_status = 0; }
11875 archive_cmds_need_lc_CXX=no
11877 archive_cmds_need_lc_CXX=yes
11879 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11881 cat conftest.err 1>&5
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11885 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11893 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11894 library_names_spec=
11895 libname_spec='lib$name'
11899 postuninstall_cmds=
11903 shlibpath_overrides_runpath=unknown
11905 dynamic_linker="$host_os ld.so"
11906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11908 need_lib_prefix=unknown
11909 hardcode_into_libs=no
11911 # when you set need_version to no, make sure it does not cause -set_version
11912 # flags to be left without arguments
11913 need_version=unknown
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11919 shlibpath_var=LIBPATH
11921 # AIX 3 has no versioning support, so we append a major version to the name.
11922 soname_spec='${libname}${release}${shared_ext}$major'
11929 hardcode_into_libs=yes
11930 if test "$host_cpu" = ia64; then
11931 # AIX 5 supports IA64
11932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11933 shlibpath_var=LD_LIBRARY_PATH
11935 # With GCC up to 2.95.x, collect2 would create an import file
11936 # for dependence libraries. The import file would start with
11937 # the line `#! .'. This would cause the generated library to
11938 # depend on `.', always an invalid library. This was fixed in
11939 # development snapshots of GCC prior to 3.0.
11941 aix4 | aix4.[01] | aix4.[01].*)
11942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11944 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11947 can_build_shared=no
11951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11952 # soname into executable. Probably we can add versioning support to
11953 # collect2, so additional links can be useful in future.
11954 if test "$aix_use_runtimelinking" = yes; then
11955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11956 # instead of lib<name>.a to let people know that these are not
11957 # typical AIX shared libraries.
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 # We preserve .a as extension for shared libraries through AIX4.2
11961 # and later when we are not doing run time linking.
11962 library_names_spec='${libname}${release}.a $libname.a'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11965 shlibpath_var=LIBPATH
11970 library_names_spec='$libname.ixlibrary $libname.a'
11971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11972 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'
11976 library_names_spec='${libname}${shared_ext}'
11977 dynamic_linker="$host_os ld.so"
11978 shlibpath_var=LIBRARY_PATH
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11990 # the default ld.so.conf also contains /usr/contrib/lib and
11991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11992 # libtool to hard-code these into programs
11995 cygwin* | mingw* | pw32*)
11996 version_type=windows
12001 case $GCC,$host_os in
12002 yes,cygwin* | yes,mingw* | yes,pw32*)
12003 library_names_spec='$libname.dll.a'
12004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12005 postinstall_cmds='base_file=`basename \${file}`~
12006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12007 dldir=$destdir/`dirname \$dlpath`~
12008 test -d \$dldir || mkdir -p \$dldir~
12009 $install_prog $dir/$dlname \$dldir/$dlname~
12010 chmod a+x \$dldir/$dlname'
12011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12012 dlpath=$dir/\$dldll~
12014 shlibpath_overrides_runpath=yes
12018 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12019 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12020 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12023 # MinGW DLLs use traditional 'lib' prefix
12024 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12025 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12026 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12027 # It is most probably a Windows format PATH printed by
12028 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12029 # path with ; separators, and with drive letters. We can handle the
12030 # drive letters (cygwin fileutils understands them), so leave them,
12031 # especially as we might pass files found there to a mingw objdump,
12032 # which wouldn't understand a cygwinified path. Ahh.
12033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12039 # pw32 DLLs use 'pw' prefix rather than 'lib'
12040 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12046 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12049 dynamic_linker='Win32 ld.exe'
12050 # FIXME: first we should search . and the directory the executable is in
12054 darwin* | rhapsody*)
12055 dynamic_linker="$host_os dyld"
12056 version_type=darwin
12059 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12060 soname_spec='${libname}${release}${major}$shared_ext'
12061 shlibpath_overrides_runpath=yes
12062 shlibpath_var=DYLD_LIBRARY_PATH
12063 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 shlibpath_var=LD_LIBRARY_PATH
12081 freebsd* | dragonfly*)
12082 # DragonFly does not have aout. When/if they implement a new
12083 # versioning mechanism, adjust this.
12084 if test -x /usr/bin/objformat; then
12085 objformat=`/usr/bin/objformat`
12088 freebsd[123]*) objformat=aout ;;
12089 *) objformat=elf ;;
12092 version_type=freebsd-$objformat
12093 case $version_type in
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12104 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes
12109 freebsd3.[01]* | freebsdelf3.[01]*)
12110 shlibpath_overrides_runpath=yes
12111 hardcode_into_libs=yes
12113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12115 shlibpath_overrides_runpath=no
12116 hardcode_into_libs=yes
12118 *) # from 4.6 on, and DragonFly
12119 shlibpath_overrides_runpath=yes
12120 hardcode_into_libs=yes
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 shlibpath_var=LD_LIBRARY_PATH
12132 hardcode_into_libs=yes
12135 hpux9* | hpux10* | hpux11*)
12136 # Give a soname corresponding to the major version so that dld.sl refuses to
12137 # link against other versions.
12144 hardcode_into_libs=yes
12145 dynamic_linker="$host_os dld.so"
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 if test "X$HPUX_IA64_MODE" = X32; then
12151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12159 hardcode_into_libs=yes
12160 dynamic_linker="$host_os dld.sl"
12161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12170 dynamic_linker="$host_os dld.sl"
12171 shlibpath_var=SHLIB_PATH
12172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 soname_spec='${libname}${release}${shared_ext}$major'
12177 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12178 postinstall_cmds='chmod 555 $lib'
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 shlibpath_overrides_runpath=no
12190 hardcode_into_libs=yes
12193 irix5* | irix6* | nonstopux*)
12195 nonstopux*) version_type=nonstopux ;;
12197 if test "$lt_cv_prog_gnu_ld" = yes; then
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12208 irix5* | nonstopux*)
12209 libsuff= shlibsuff=
12212 case $LD in # libtool.m4 will add one of these switches to LD
12213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12214 libsuff= shlibsuff= libmagic=32-bit;;
12215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12216 libsuff=32 shlibsuff=N32 libmagic=N32;;
12217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12218 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12219 *) libsuff= shlibsuff= libmagic=never-match;;
12223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12224 shlibpath_overrides_runpath=no
12225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12227 hardcode_into_libs=yes
12230 # No shared lib support for Linux oldld, aout, or coff.
12231 linux*oldld* | linux*aout* | linux*coff*)
12235 # This must be Linux ELF.
12236 linux* | k*bsd*-gnu)
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12243 shlibpath_var=LD_LIBRARY_PATH
12244 shlibpath_overrides_runpath=no
12245 # This implies no fast_install, which is unacceptable.
12246 # Some rework will be needed to allow for fast_install
12247 # before this can be enabled.
12248 hardcode_into_libs=yes
12250 # Append ld.so.conf contents to the search path
12251 if test -f /etc/ld.so.conf; then
12252 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' ' '`
12253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12256 # We used to test for /lib/ld.so.1 and disable shared libraries on
12257 # powerpc, because MkLinux only supported shared libraries with the
12258 # GNU dynamic linker. Since this was broken with cross compilers,
12259 # most powerpc-linux boxes support dynamic linking these days and
12260 # people can always --disable-shared, the test was removed, and we
12261 # assume the GNU/Linux dynamic linker is in use.
12262 dynamic_linker='GNU/Linux ld.so'
12269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272 dynamic_linker='NetBSD (a.out) ld.so'
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 dynamic_linker='NetBSD ld.elf_so'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12280 hardcode_into_libs=yes
12285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286 shlibpath_var=LD_LIBRARY_PATH
12287 shlibpath_overrides_runpath=yes
12294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12295 soname_spec='${libname}${release}${shared_ext}$major'
12296 shlibpath_var=LD_LIBRARY_PATH
12297 shlibpath_overrides_runpath=yes
12302 sys_lib_dlsearch_path_spec="/usr/lib"
12304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12307 *) need_version=no ;;
12309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12314 openbsd2.[89] | openbsd2.[89].*)
12315 shlibpath_overrides_runpath=no
12318 shlibpath_overrides_runpath=yes
12322 shlibpath_overrides_runpath=yes
12327 libname_spec='$name'
12330 library_names_spec='$libname${shared_ext} $libname.a'
12331 dynamic_linker='OS/2 ld.exe'
12332 shlibpath_var=LIBPATH
12335 osf3* | osf4* | osf5*)
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12355 soname_spec='${libname}${release}${shared_ext}$major'
12356 shlibpath_var=LD_LIBRARY_PATH
12357 shlibpath_overrides_runpath=yes
12358 hardcode_into_libs=yes
12359 # ldd complains unless libraries are executable
12360 postinstall_cmds='chmod +x $lib'
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 shlibpath_overrides_runpath=yes
12369 if test "$with_gnu_ld" = yes; then
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 case $host_vendor in
12382 shlibpath_overrides_runpath=no
12384 export_dynamic_flag_spec='${wl}-Blargedynsym'
12385 runpath_var=LD_RUN_PATH
12393 shlibpath_overrides_runpath=no
12394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12400 if test -d /usr/nec ;then
12402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12403 soname_spec='$libname${shared_ext}.$major'
12404 shlibpath_var=LD_LIBRARY_PATH
12408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12409 version_type=freebsd-elf
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12413 soname_spec='${libname}${release}${shared_ext}$major'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 hardcode_into_libs=yes
12416 if test "$with_gnu_ld" = yes; then
12417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12418 shlibpath_overrides_runpath=no
12420 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12421 shlibpath_overrides_runpath=yes
12424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12428 sys_lib_dlsearch_path_spec='/usr/lib'
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434 soname_spec='${libname}${release}${shared_ext}$major'
12435 shlibpath_var=LD_LIBRARY_PATH
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12443 $as_echo "$dynamic_linker" >&6; }
12444 test "$dynamic_linker" = no && can_build_shared=no
12446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12449 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12452 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12453 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12456 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12462 if test "$GCC" = yes; then
12463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12467 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12468 hardcode_action_CXX=
12469 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12470 test -n "$runpath_var_CXX" || \
12471 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12473 # We can hardcode non-existant directories.
12474 if test "$hardcode_direct_CXX" != no &&
12475 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12476 # have to relink, otherwise we might link with an installed library
12477 # when we should be linking with a yet-to-be-installed one
12478 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12479 test "$hardcode_minus_L_CXX" != no; then
12480 # Linking always hardcodes the temporary library directory.
12481 hardcode_action_CXX=relink
12483 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12484 hardcode_action_CXX=immediate
12487 # We cannot hardcode anything, or else we can only hardcode existing
12489 hardcode_action_CXX=unsupported
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12492 $as_echo "$hardcode_action_CXX" >&6; }
12494 if test "$hardcode_action_CXX" = relink; then
12495 # Fast installation is not supported
12496 enable_fast_install=no
12497 elif test "$shlibpath_overrides_runpath" = yes ||
12498 test "$enable_shared" = no; then
12499 # Fast installation is not necessary
12500 enable_fast_install=needless
12504 # The else clause should only fire when bootstrapping the
12505 # libtool distribution, otherwise you forgot to ship ltmain.sh
12506 # with your package, and you will get complaints that there are
12507 # no rules to generate ltmain.sh.
12508 if test -f "$ltmain"; then
12509 # See if we are running on zsh, and set the options which allow our commands through
12510 # without removal of \ escapes.
12511 if test -n "${ZSH_VERSION+set}" ; then
12512 setopt NO_GLOB_SUBST
12514 # Now quote all the things that may contain metacharacters while being
12515 # careful not to overquote the AC_SUBSTed values. We take copies of the
12516 # variables and quote the copies for generation of the libtool script.
12517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521 deplibs_check_method reload_flag reload_cmds need_locks \
12522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523 lt_cv_sys_global_symbol_to_c_name_address \
12524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525 old_postinstall_cmds old_postuninstall_cmds \
12529 lt_prog_compiler_wl_CXX \
12530 lt_prog_compiler_pic_CXX \
12531 lt_prog_compiler_static_CXX \
12532 lt_prog_compiler_no_builtin_flag_CXX \
12533 export_dynamic_flag_spec_CXX \
12534 thread_safe_flag_spec_CXX \
12535 whole_archive_flag_spec_CXX \
12536 enable_shared_with_static_runtimes_CXX \
12537 old_archive_cmds_CXX \
12538 old_archive_from_new_cmds_CXX \
12539 predep_objects_CXX \
12540 postdep_objects_CXX \
12543 compiler_lib_search_path_CXX \
12544 compiler_lib_search_dirs_CXX \
12546 archive_expsym_cmds_CXX \
12547 postinstall_cmds_CXX \
12548 postuninstall_cmds_CXX \
12549 old_archive_from_expsyms_cmds_CXX \
12550 allow_undefined_flag_CXX \
12551 no_undefined_flag_CXX \
12552 export_symbols_cmds_CXX \
12553 hardcode_libdir_flag_spec_CXX \
12554 hardcode_libdir_flag_spec_ld_CXX \
12555 hardcode_libdir_separator_CXX \
12556 hardcode_automatic_CXX \
12558 module_expsym_cmds_CXX \
12559 lt_cv_prog_compiler_c_o_CXX \
12560 fix_srcfile_path_CXX \
12561 exclude_expsyms_CXX \
12562 include_expsyms_CXX; do
12565 old_archive_cmds_CXX | \
12566 old_archive_from_new_cmds_CXX | \
12567 archive_cmds_CXX | \
12568 archive_expsym_cmds_CXX | \
12569 module_cmds_CXX | \
12570 module_expsym_cmds_CXX | \
12571 old_archive_from_expsyms_cmds_CXX | \
12572 export_symbols_cmds_CXX | \
12573 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12574 postinstall_cmds | postuninstall_cmds | \
12575 old_postinstall_cmds | old_postuninstall_cmds | \
12576 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12577 # Double-quote double-evaled strings.
12578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12581 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12587 *'\$0 --fallback-echo"')
12588 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12594 cat <<__EOF__ >> "$cfgfile"
12595 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12599 # Shell to use when invoking shell scripts.
12602 # Whether or not to build shared libraries.
12603 build_libtool_libs=$enable_shared
12605 # Whether or not to build static libraries.
12606 build_old_libs=$enable_static
12608 # Whether or not to add -lc for building shared libraries.
12609 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12611 # Whether or not to disallow shared libs when runtime libs are static
12612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12614 # Whether or not to optimize for fast installation.
12615 fast_install=$enable_fast_install
12618 host_alias=$host_alias
12622 # The build system.
12623 build_alias=$build_alias
12627 # An echo program that does not interpret backslashes.
12632 AR_FLAGS=$lt_AR_FLAGS
12637 # LTCC compiler flags.
12638 LTCFLAGS=$lt_LTCFLAGS
12640 # A language-specific compiler.
12641 CC=$lt_compiler_CXX
12643 # Is the compiler the GNU C compiler?
12649 # The linker used to build libraries.
12652 # Whether we need hard or soft links.
12655 # A BSD-compatible nm program.
12658 # A symbol stripping program
12661 # Used to examine libraries when file_magic_cmd begins "file"
12662 MAGIC_CMD=$MAGIC_CMD
12664 # Used on cygwin: DLL creation program.
12667 # Used on cygwin: object dumper.
12670 # Used on cygwin: assembler.
12673 # The name of the directory that contains temporary libtool files.
12676 # How to create reloadable object files.
12677 reload_flag=$lt_reload_flag
12678 reload_cmds=$lt_reload_cmds
12680 # How to pass a linker flag through the compiler.
12681 wl=$lt_lt_prog_compiler_wl_CXX
12683 # Object file suffix (normally "o").
12684 objext="$ac_objext"
12686 # Old archive suffix (normally "a").
12689 # Shared library suffix (normally ".so").
12690 shrext_cmds='$shrext_cmds'
12692 # Executable file suffix (normally "").
12695 # Additional compiler flags for building library objects.
12696 pic_flag=$lt_lt_prog_compiler_pic_CXX
12699 # What is the maximum length of a command?
12700 max_cmd_len=$lt_cv_sys_max_cmd_len
12702 # Does compiler simultaneously support -c and -o options?
12703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12705 # Must we lock files when doing compilation?
12706 need_locks=$lt_need_locks
12708 # Do we need the lib prefix for modules?
12709 need_lib_prefix=$need_lib_prefix
12711 # Do we need a version for libraries?
12712 need_version=$need_version
12714 # Whether dlopen is supported.
12715 dlopen_support=$enable_dlopen
12717 # Whether dlopen of programs is supported.
12718 dlopen_self=$enable_dlopen_self
12720 # Whether dlopen of statically linked programs is supported.
12721 dlopen_self_static=$enable_dlopen_self_static
12723 # Compiler flag to prevent dynamic linking.
12724 link_static_flag=$lt_lt_prog_compiler_static_CXX
12726 # Compiler flag to turn off builtin functions.
12727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12729 # Compiler flag to allow reflexive dlopens.
12730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12732 # Compiler flag to generate shared objects directly from archives.
12733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12735 # Compiler flag to generate thread-safe objects.
12736 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12738 # Library versioning type.
12739 version_type=$version_type
12741 # Format of library name prefix.
12742 libname_spec=$lt_libname_spec
12744 # List of archive names. First name is the real one, the rest are links.
12745 # The last name is the one that the linker finds with -lNAME.
12746 library_names_spec=$lt_library_names_spec
12748 # The coded name of the library, if different from the real name.
12749 soname_spec=$lt_soname_spec
12751 # Commands used to build and install an old-style archive.
12753 old_archive_cmds=$lt_old_archive_cmds_CXX
12754 old_postinstall_cmds=$lt_old_postinstall_cmds
12755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12757 # Create an old-style archive from a shared archive.
12758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12760 # Create a temporary old-style archive to link instead of a shared archive.
12761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12763 # Commands used to build and install a shared archive.
12764 archive_cmds=$lt_archive_cmds_CXX
12765 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12766 postinstall_cmds=$lt_postinstall_cmds
12767 postuninstall_cmds=$lt_postuninstall_cmds
12769 # Commands used to build a loadable module (assumed same as above if empty)
12770 module_cmds=$lt_module_cmds_CXX
12771 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12773 # Commands to strip libraries.
12774 old_striplib=$lt_old_striplib
12775 striplib=$lt_striplib
12777 # Dependencies to place before the objects being linked to create a
12779 predep_objects=$lt_predep_objects_CXX
12781 # Dependencies to place after the objects being linked to create a
12783 postdep_objects=$lt_postdep_objects_CXX
12785 # Dependencies to place before the objects being linked to create a
12787 predeps=$lt_predeps_CXX
12789 # Dependencies to place after the objects being linked to create a
12791 postdeps=$lt_postdeps_CXX
12793 # The directories searched by this compiler when creating a shared
12795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
12797 # The library search path used internally by the compiler when linking
12798 # a shared library.
12799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12801 # Method to check whether dependent libraries are shared objects.
12802 deplibs_check_method=$lt_deplibs_check_method
12804 # Command to use when deplibs_check_method == file_magic.
12805 file_magic_cmd=$lt_file_magic_cmd
12807 # Flag that allows shared libraries with undefined symbols to be built.
12808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12810 # Flag that forces no undefined symbols.
12811 no_undefined_flag=$lt_no_undefined_flag_CXX
12813 # Commands used to finish a libtool library installation in a directory.
12814 finish_cmds=$lt_finish_cmds
12816 # Same as above, but a single script fragment to be evaled but not shown.
12817 finish_eval=$lt_finish_eval
12819 # Take the output of nm and produce a listing of raw symbols and C names.
12820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12822 # Transform the output of nm in a proper C declaration
12823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12825 # Transform the output of nm in a C name address pair
12826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12828 # This is the shared library runtime path variable.
12829 runpath_var=$runpath_var
12831 # This is the shared library path variable.
12832 shlibpath_var=$shlibpath_var
12834 # Is shlibpath searched before the hard-coded library search path?
12835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12837 # How to hardcode a shared library path into an executable.
12838 hardcode_action=$hardcode_action_CXX
12840 # Whether we should hardcode library paths into libraries.
12841 hardcode_into_libs=$hardcode_into_libs
12843 # Flag to hardcode \$libdir into a binary during linking.
12844 # This must work even if \$libdir does not exist.
12845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12847 # If ld is used when linking, flag to hardcode \$libdir into
12848 # a binary during linking. This must work even if \$libdir does
12850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12852 # Whether we need a single -rpath flag with a separated argument.
12853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12856 # resulting binary.
12857 hardcode_direct=$hardcode_direct_CXX
12859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12860 # resulting binary.
12861 hardcode_minus_L=$hardcode_minus_L_CXX
12863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12864 # the resulting binary.
12865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12867 # Set to yes if building a shared library automatically hardcodes DIR into the library
12868 # and all subsequent libraries and executables linked against it.
12869 hardcode_automatic=$hardcode_automatic_CXX
12871 # Variables whose values should be saved in libtool wrapper scripts and
12872 # restored at relink time.
12873 variables_saved_for_relink="$variables_saved_for_relink"
12875 # Whether libtool must link a program against all its dependency libraries.
12876 link_all_deplibs=$link_all_deplibs_CXX
12878 # Compile-time system search path for libraries
12879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12881 # Run-time system search path for libraries
12882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12884 # Fix the shell variable \$srcfile for the compiler.
12885 fix_srcfile_path=$lt_fix_srcfile_path
12887 # Set to yes if exported symbols are required.
12888 always_export_symbols=$always_export_symbols_CXX
12890 # The commands to list exported symbols.
12891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12893 # The commands to extract the exported symbol list from a shared archive.
12894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12896 # Symbols that should not be listed in the preloaded symbols.
12897 exclude_expsyms=$lt_exclude_expsyms_CXX
12899 # Symbols that must always be exported.
12900 include_expsyms=$lt_include_expsyms_CXX
12902 # ### END LIBTOOL TAG CONFIG: $tagname
12908 # If there is no Makefile yet, we rely on a make rule to execute
12909 # `config.status --recheck' to rerun these tests and create the
12910 # libtool script then.
12911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12912 if test -f "$ltmain_in"; then
12913 test -f Makefile && make "$ltmain"
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12928 with_gnu_ldcxx=$with_gnu_ld
12929 with_gnu_ld=$lt_save_with_gnu_ld
12930 lt_cv_path_LDCXX=$lt_cv_path_LD
12931 lt_cv_path_LD=$lt_save_path_LD
12932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12941 if test -n "$F77" && test "X$F77" != "Xno"; then
12944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12949 archive_cmds_need_lc_F77=no
12950 allow_undefined_flag_F77=
12951 always_export_symbols_F77=no
12952 archive_expsym_cmds_F77=
12953 export_dynamic_flag_spec_F77=
12954 hardcode_direct_F77=no
12955 hardcode_libdir_flag_spec_F77=
12956 hardcode_libdir_flag_spec_ld_F77=
12957 hardcode_libdir_separator_F77=
12958 hardcode_minus_L_F77=no
12959 hardcode_automatic_F77=no
12961 module_expsym_cmds_F77=
12962 link_all_deplibs_F77=unknown
12963 old_archive_cmds_F77=$old_archive_cmds
12964 no_undefined_flag_F77=
12965 whole_archive_flag_spec_F77=
12966 enable_shared_with_static_runtimes_F77=no
12968 # Source file extension for f77 test sources.
12971 # Object file extension for compiled f77 test sources.
12975 # Code to be used in simple compile tests
12976 lt_simple_compile_test_code="\
12982 # Code to be used in simple link tests
12983 lt_simple_link_test_code="\
12988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12990 # If no C compiler was specified, use CC.
12993 # If no C compiler flags were specified, use CFLAGS.
12994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12996 # Allow CC to be a program name with arguments.
13000 # save warnings/boilerplate of simple test code
13001 ac_outfile=conftest.$ac_objext
13002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13004 _lt_compiler_boilerplate=`cat conftest.err`
13007 ac_outfile=conftest.$ac_objext
13008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13010 _lt_linker_boilerplate=`cat conftest.err`
13014 # Allow CC to be a program name with arguments.
13019 for cc_temp in $compiler""; do
13021 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13022 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13027 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13031 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13033 $as_echo "$can_build_shared" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13036 $as_echo_n "checking whether to build shared libraries... " >&6; }
13037 test "$can_build_shared" = "no" && enable_shared=no
13039 # On AIX, shared libraries and static libraries use the same namespace, and
13040 # are all built from PIC.
13043 test "$enable_shared" = yes && enable_static=no
13044 if test -n "$RANLIB"; then
13045 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13046 postinstall_cmds='$RANLIB $lib'
13050 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13051 test "$enable_shared" = yes && enable_static=no
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13056 $as_echo "$enable_shared" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13059 $as_echo_n "checking whether to build static libraries... " >&6; }
13060 # Make sure either enable_shared or enable_static is yes.
13061 test "$enable_shared" = yes || enable_static=yes
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13063 $as_echo "$enable_static" >&6; }
13068 lt_prog_compiler_wl_F77=
13069 lt_prog_compiler_pic_F77=
13070 lt_prog_compiler_static_F77=
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13073 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13075 if test "$GCC" = yes; then
13076 lt_prog_compiler_wl_F77='-Wl,'
13077 lt_prog_compiler_static_F77='-static'
13081 # All AIX code is PIC.
13082 if test "$host_cpu" = ia64; then
13083 # AIX 5 now supports IA64 processor
13084 lt_prog_compiler_static_F77='-Bstatic'
13089 # FIXME: we need at least 68020 code to build shared libraries, but
13090 # adding the `-m68020' flag to GCC prevents building anything better,
13092 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13096 # PIC is the default for these OSes.
13099 mingw* | cygwin* | pw32* | os2*)
13100 # This hack is so that the source file can tell whether it is being
13101 # built for inclusion in a dll (and should export symbols for example).
13102 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13103 # (--disable-auto-import) libraries
13104 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13107 darwin* | rhapsody*)
13108 # PIC is the default on this platform
13109 # Common symbols not allowed in MH_DYLIB files
13110 lt_prog_compiler_pic_F77='-fno-common'
13114 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13115 # Instead, we relocate shared libraries at runtime.
13119 # Just because we use GCC doesn't mean we suddenly get shared libraries
13120 # on systems that don't support them.
13121 lt_prog_compiler_can_build_shared_F77=no
13126 if test -d /usr/nec; then
13127 lt_prog_compiler_pic_F77=-Kconform_pic
13132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13133 # not for PA HP-UX.
13139 lt_prog_compiler_pic_F77='-fPIC'
13145 lt_prog_compiler_pic_F77='-fPIC'
13149 # PORTME Check for flag to pass linker flags through the system compiler.
13152 lt_prog_compiler_wl_F77='-Wl,'
13153 if test "$host_cpu" = ia64; then
13154 # AIX 5 now supports IA64 processor
13155 lt_prog_compiler_static_F77='-Bstatic'
13157 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13161 # PIC is the default on this platform
13162 # Common symbols not allowed in MH_DYLIB files
13163 case $cc_basename in
13165 lt_prog_compiler_pic_F77='-qnocommon'
13166 lt_prog_compiler_wl_F77='-Wl,'
13171 mingw* | cygwin* | pw32* | os2*)
13172 # This hack is so that the source file can tell whether it is being
13173 # built for inclusion in a dll (and should export symbols for example).
13174 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13177 hpux9* | hpux10* | hpux11*)
13178 lt_prog_compiler_wl_F77='-Wl,'
13179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13180 # not for PA HP-UX.
13186 lt_prog_compiler_pic_F77='+Z'
13189 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13190 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13193 irix5* | irix6* | nonstopux*)
13194 lt_prog_compiler_wl_F77='-Wl,'
13195 # PIC (with -KPIC) is the default.
13196 lt_prog_compiler_static_F77='-non_shared'
13200 lt_prog_compiler_pic_F77='-KPIC'
13201 lt_prog_compiler_static_F77='-Bstatic'
13204 linux* | k*bsd*-gnu)
13205 case $cc_basename in
13207 lt_prog_compiler_wl_F77='-Wl,'
13208 lt_prog_compiler_pic_F77='-KPIC'
13209 lt_prog_compiler_static_F77='-static'
13211 pgcc* | pgf77* | pgf90* | pgf95*)
13212 # Portland Group compilers (*not* the Pentium gcc compiler,
13213 # which looks to be a dead project)
13214 lt_prog_compiler_wl_F77='-Wl,'
13215 lt_prog_compiler_pic_F77='-fpic'
13216 lt_prog_compiler_static_F77='-Bstatic'
13219 lt_prog_compiler_wl_F77='-Wl,'
13220 # All Alpha code is PIC.
13221 lt_prog_compiler_static_F77='-non_shared'
13224 case `$CC -V 2>&1 | sed 5q` in
13227 lt_prog_compiler_pic_F77='-KPIC'
13228 lt_prog_compiler_static_F77='-Bstatic'
13229 lt_prog_compiler_wl_F77='-Wl,'
13232 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13233 lt_prog_compiler_pic_F77='-KPIC'
13234 lt_prog_compiler_static_F77='-Bstatic'
13235 lt_prog_compiler_wl_F77=''
13242 osf3* | osf4* | osf5*)
13243 lt_prog_compiler_wl_F77='-Wl,'
13244 # All OSF/1 code is PIC.
13245 lt_prog_compiler_static_F77='-non_shared'
13249 lt_prog_compiler_static_F77='-non_shared'
13253 lt_prog_compiler_pic_F77='-KPIC'
13254 lt_prog_compiler_static_F77='-Bstatic'
13255 case $cc_basename in
13256 f77* | f90* | f95*)
13257 lt_prog_compiler_wl_F77='-Qoption ld ';;
13259 lt_prog_compiler_wl_F77='-Wl,';;
13264 lt_prog_compiler_wl_F77='-Qoption ld '
13265 lt_prog_compiler_pic_F77='-PIC'
13266 lt_prog_compiler_static_F77='-Bstatic'
13269 sysv4 | sysv4.2uw2* | sysv4.3*)
13270 lt_prog_compiler_wl_F77='-Wl,'
13271 lt_prog_compiler_pic_F77='-KPIC'
13272 lt_prog_compiler_static_F77='-Bstatic'
13276 if test -d /usr/nec ;then
13277 lt_prog_compiler_pic_F77='-Kconform_pic'
13278 lt_prog_compiler_static_F77='-Bstatic'
13282 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13283 lt_prog_compiler_wl_F77='-Wl,'
13284 lt_prog_compiler_pic_F77='-KPIC'
13285 lt_prog_compiler_static_F77='-Bstatic'
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 lt_prog_compiler_can_build_shared_F77=no
13294 lt_prog_compiler_pic_F77='-pic'
13295 lt_prog_compiler_static_F77='-Bstatic'
13299 lt_prog_compiler_can_build_shared_F77=no
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13305 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13308 # Check to make sure the PIC flag actually works.
13310 if test -n "$lt_prog_compiler_pic_F77"; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13313 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13314 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13315 $as_echo_n "(cached) " >&6
13317 lt_cv_prog_compiler_pic_works_F77=no
13318 ac_outfile=conftest.$ac_objext
13319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13320 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13321 # Insert the option either (1) after the last *FLAGS variable, or
13322 # (2) before a word containing "conftest.", or (3) at the end.
13323 # Note that $ac_compile itself does not contain backslashes and begins
13324 # with a dollar sign (not a hyphen), so the echo should work correctly.
13325 # The option is referenced via a variable to avoid confusing sed.
13326 lt_compile=`echo "$ac_compile" | $SED \
13327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13329 -e 's:$: $lt_compiler_flag:'`
13330 (eval echo "\"\$as_me:13330: $lt_compile\"" >&5)
13331 (eval "$lt_compile" 2>conftest.err)
13333 cat conftest.err >&5
13334 echo "$as_me:13334: \$? = $ac_status" >&5
13335 if (exit $ac_status) && test -s "$ac_outfile"; then
13336 # The compiler can only warn and ignore the option if not recognized
13337 # So say no if there are warnings other than the usual output.
13338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13341 lt_cv_prog_compiler_pic_works_F77=yes
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13348 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13350 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13351 case $lt_prog_compiler_pic_F77 in
13353 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13356 lt_prog_compiler_pic_F77=
13357 lt_prog_compiler_can_build_shared_F77=no
13362 # For platforms which do not support PIC, -DPIC is meaningless:
13364 lt_prog_compiler_pic_F77=
13367 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13372 # Check to make sure the static flag actually works.
13374 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13376 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13377 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13380 lt_cv_prog_compiler_static_works_F77=no
13381 save_LDFLAGS="$LDFLAGS"
13382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13383 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13385 # The linker can only warn and ignore the option if not recognized
13386 # So say no if there are warnings
13387 if test -s conftest.err; then
13388 # Append any errors to the config.log.
13389 cat conftest.err 1>&5
13390 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13392 if diff conftest.exp conftest.er2 >/dev/null; then
13393 lt_cv_prog_compiler_static_works_F77=yes
13396 lt_cv_prog_compiler_static_works_F77=yes
13400 LDFLAGS="$save_LDFLAGS"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13404 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13406 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13409 lt_prog_compiler_static_F77=
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13415 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13416 $as_echo_n "(cached) " >&6
13418 lt_cv_prog_compiler_c_o_F77=no
13419 $rm -r conftest 2>/dev/null
13423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13425 lt_compiler_flag="-o out/conftest2.$ac_objext"
13426 # Insert the option either (1) after the last *FLAGS variable, or
13427 # (2) before a word containing "conftest.", or (3) at the end.
13428 # Note that $ac_compile itself does not contain backslashes and begins
13429 # with a dollar sign (not a hyphen), so the echo should work correctly.
13430 lt_compile=`echo "$ac_compile" | $SED \
13431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13433 -e 's:$: $lt_compiler_flag:'`
13434 (eval echo "\"\$as_me:13434: $lt_compile\"" >&5)
13435 (eval "$lt_compile" 2>out/conftest.err)
13437 cat out/conftest.err >&5
13438 echo "$as_me:13438: \$? = $ac_status" >&5
13439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13441 # The compiler can only warn and ignore the option if not recognized
13442 # So say no if there are warnings
13443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13446 lt_cv_prog_compiler_c_o_F77=yes
13451 # SGI C++ compiler will create directory out/ii_files/ for
13452 # template instantiation
13453 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13454 $rm out/* && rmdir out
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13461 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13464 hard_links="nottested"
13465 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13466 # do not overwrite the value of need_locks provided by the user
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13468 $as_echo_n "checking if we can lock with hard links... " >&6; }
13471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13473 ln conftest.a conftest.b 2>&5 || hard_links=no
13474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13476 $as_echo "$hard_links" >&6; }
13477 if test "$hard_links" = no; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13490 allow_undefined_flag_F77=
13491 enable_shared_with_static_runtimes_F77=no
13493 archive_expsym_cmds_F77=
13494 old_archive_From_new_cmds_F77=
13495 old_archive_from_expsyms_cmds_F77=
13496 export_dynamic_flag_spec_F77=
13497 whole_archive_flag_spec_F77=
13498 thread_safe_flag_spec_F77=
13499 hardcode_libdir_flag_spec_F77=
13500 hardcode_libdir_flag_spec_ld_F77=
13501 hardcode_libdir_separator_F77=
13502 hardcode_direct_F77=no
13503 hardcode_minus_L_F77=no
13504 hardcode_shlibpath_var_F77=unsupported
13505 link_all_deplibs_F77=unknown
13506 hardcode_automatic_F77=no
13508 module_expsym_cmds_F77=
13509 always_export_symbols_F77=no
13510 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13511 # include_expsyms should be a list of space-separated symbols to be *always*
13512 # included in the symbol list
13513 include_expsyms_F77=
13514 # exclude_expsyms can be an extended regexp of symbols to exclude
13515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13517 # as well as any symbol that contains `d'.
13518 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13520 # platforms (ab)use it in PIC code, but their linkers get confused if
13521 # the symbol is explicitly referenced. Since portable code cannot
13522 # rely on this symbol name, it's probably fine to never include it in
13523 # preloaded symbol tables.
13524 # Exclude shared library initialization/finalization symbols.
13525 extract_expsyms_cmds=
13526 # Just being paranoid about ensuring that cc_basename is set.
13527 for cc_temp in $compiler""; do
13529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13538 cygwin* | mingw* | pw32*)
13539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13540 # When not using gcc, we currently assume that we are using
13541 # Microsoft Visual C++.
13542 if test "$GCC" != yes; then
13547 # we just hope/assume this is gcc and not c89 (= MSVC++)
13556 if test "$with_gnu_ld" = yes; then
13557 # If archive_cmds runs LD, not CC, wlarc should be empty
13560 # Set some defaults for GNU ld with shared library support. These
13561 # are reset later if shared libraries are not supported. Putting them
13562 # here allows them to be overridden if necessary.
13563 runpath_var=LD_RUN_PATH
13564 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13565 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13566 # ancient GNU ld didn't support --whole-archive et. al.
13567 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13568 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13570 whole_archive_flag_spec_F77=
13572 supports_anon_versioning=no
13573 case `$LD -v 2>/dev/null` in
13574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13577 *\ 2.11.*) ;; # other 2.11 versions
13578 *) supports_anon_versioning=yes ;;
13581 # See if GNU ld supports shared libraries.
13584 # On AIX/PPC, the GNU linker is very broken
13585 if test "$host_cpu" != ia64; then
13589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13590 *** to be unable to reliably create shared libraries on AIX.
13591 *** Therefore, libtool is disabling shared libraries support. If you
13592 *** really care for shared libraries, you may want to modify your PATH
13593 *** so that a non-GNU linker is found, and then restart.
13600 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)'
13601 hardcode_libdir_flag_spec_F77='-L$libdir'
13602 hardcode_minus_L_F77=yes
13604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13605 # that the semantics of dynamic libraries on AmigaOS, at least up
13606 # to version 4, is to share data among multiple programs linked
13607 # with the same dynamic library. Since this doesn't match the
13608 # behavior of shared libraries on other platforms, we can't use
13614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615 allow_undefined_flag_F77=unsupported
13616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13617 # support --undefined. This deserves some investigation. FIXME
13618 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624 cygwin* | mingw* | pw32*)
13625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13626 # as there is no search path for DLLs.
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 allow_undefined_flag_F77=unsupported
13629 always_export_symbols_F77=no
13630 enable_shared_with_static_runtimes_F77=yes
13631 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13635 # If the export-symbols file already is a .def file (1st line
13636 # is EXPORTS), use it as is; otherwise, prepend...
13637 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638 cp $export_symbols $output_objdir/$soname.def;
13640 echo EXPORTS > $output_objdir/$soname.def;
13641 cat $export_symbols >> $output_objdir/$soname.def;
13643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13650 hardcode_direct_F77=no
13651 hardcode_shlibpath_var_F77=no
13652 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13653 export_dynamic_flag_spec_F77='${wl}-E'
13654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13655 # Instead, shared libraries are loaded at an image base (0x10000000 by
13656 # default) and relocated if they conflict, which is a slow very memory
13657 # consuming and fragmenting process. To avoid this, we pick a random,
13658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13660 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'
13661 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'
13664 gnu* | linux* | k*bsd*-gnu)
13665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13667 case $cc_basename,$host_cpu in
13668 pgcc*) # Portland Group C compiler
13669 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'
13670 tmp_addflag=' $pic_flag'
13672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13673 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'
13674 tmp_addflag=' $pic_flag -Mnomain' ;;
13675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13676 tmp_addflag=' -i_dynamic' ;;
13677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13678 tmp_addflag=' -i_dynamic -nofor_main' ;;
13679 ifc* | ifort*) # Intel Fortran compiler
13680 tmp_addflag=' -nofor_main' ;;
13682 case `$CC -V 2>&1 | sed 5q` in
13683 *Sun\ C*) # Sun C 5.9
13684 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'
13685 tmp_sharedflag='-G' ;;
13686 *Sun\ F*) # Sun Fortran 8.3
13687 tmp_sharedflag='-G' ;;
13689 tmp_sharedflag='-shared' ;;
13691 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13693 if test $supports_anon_versioning = yes; then
13694 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13696 $echo "local: *; };" >> $output_objdir/$libname.ver~
13697 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13706 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13710 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13715 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13720 *** create shared libraries on Solaris systems. Therefore, libtool
13721 *** is disabling shared libraries support. We urge you to upgrade GNU
13722 *** binutils to release 2.9.1 or newer. Another option is to modify
13723 *** your PATH or compiler configuration so that the native linker is
13724 *** used, and then restart.
13727 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13728 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13736 case `$LD -v 2>&1` in
13737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13742 *** reliably create shared libraries on SCO systems. Therefore, libtool
13743 *** is disabling shared libraries support. We urge you to upgrade GNU
13744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13745 *** your PATH or compiler configuration so that the native linker is
13746 *** used, and then restart.
13751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13752 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13763 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_direct_F77=yes
13766 hardcode_shlibpath_var_F77=no
13770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13771 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13772 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13779 if test "$ld_shlibs_F77" = no; then
13781 hardcode_libdir_flag_spec_F77=
13782 export_dynamic_flag_spec_F77=
13783 whole_archive_flag_spec_F77=
13786 # PORTME fill in a description of your system's linker (not GNU ld)
13789 allow_undefined_flag_F77=unsupported
13790 always_export_symbols_F77=yes
13791 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'
13792 # Note: this linker hardcodes the directories in LIBPATH if there
13793 # are no directories specified by -L.
13794 hardcode_minus_L_F77=yes
13795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13796 # Neither direct hardcoding nor static linking is supported with a
13798 hardcode_direct_F77=unsupported
13803 if test "$host_cpu" = ia64; then
13804 # On IA64, the linker does run time linking by default, so we don't
13805 # have to do anything special.
13806 aix_use_runtimelinking=no
13807 exp_sym_flag='-Bexport'
13810 # If we're using GNU nm, then we don't want the "-C" option.
13811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13813 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'
13815 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'
13817 aix_use_runtimelinking=no
13819 # Test if we are trying to use run time linking or normal
13820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13821 # need to do runtime linking.
13822 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13823 for ld_flag in $LDFLAGS; do
13824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13825 aix_use_runtimelinking=yes
13832 exp_sym_flag='-bexport'
13833 no_entry_flag='-bnoentry'
13836 # When large executables or shared objects are built, AIX ld can
13837 # have problems creating the table of contents. If linking a library
13838 # or program results in "error TOC overflow" add -mminimal-toc to
13839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13842 archive_cmds_F77=''
13843 hardcode_direct_F77=yes
13844 hardcode_libdir_separator_F77=':'
13845 link_all_deplibs_F77=yes
13847 if test "$GCC" = yes; then
13848 case $host_os in aix4.[012]|aix4.[012].*)
13849 # We only want to do this on AIX 4.2 and lower, the check
13850 # below for broken collect2 doesn't work under 4.3+
13851 collect2name=`${CC} -print-prog-name=collect2`
13852 if test -f "$collect2name" && \
13853 strings "$collect2name" | grep resolve_lib_name >/dev/null
13855 # We have reworked collect2
13858 # We have old collect2
13859 hardcode_direct_F77=unsupported
13860 # It fails to find uninstalled libraries when the uninstalled
13861 # path is not listed in the libpath. Setting hardcode_minus_L
13862 # to unsupported forces relinking
13863 hardcode_minus_L_F77=yes
13864 hardcode_libdir_flag_spec_F77='-L$libdir'
13865 hardcode_libdir_separator_F77=
13869 shared_flag='-shared'
13870 if test "$aix_use_runtimelinking" = yes; then
13871 shared_flag="$shared_flag "'${wl}-G'
13875 if test "$host_cpu" = ia64; then
13876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13877 # chokes on -Wl,-G. The following line is correct:
13880 if test "$aix_use_runtimelinking" = yes; then
13881 shared_flag='${wl}-G'
13883 shared_flag='${wl}-bM:SRE'
13888 # It seems that -bexpall does not export symbols beginning with
13889 # underscore (_), so it is better to generate a list of symbols to export.
13890 always_export_symbols_F77=yes
13891 if test "$aix_use_runtimelinking" = yes; then
13892 # Warning - without using the other runtime loading flags (-brtl),
13893 # -berok will link without error, but may produce a broken library.
13894 allow_undefined_flag_F77='-berok'
13895 # Determine the default libpath from the value encoded in an empty executable.
13896 cat > conftest.$ac_ext <<_ACEOF
13901 if ac_fn_f77_try_link "$LINENO"; then :
13903 lt_aix_libpath_sed='
13904 /Import File Strings/,/^$/ {
13910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13911 # Check for a 64-bit object if we didn't find anything.
13912 if test -z "$aix_libpath"; then
13913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13920 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13921 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"
13923 if test "$host_cpu" = ia64; then
13924 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13925 allow_undefined_flag_F77="-z nodefs"
13926 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"
13928 # Determine the default libpath from the value encoded in an empty executable.
13929 cat > conftest.$ac_ext <<_ACEOF
13934 if ac_fn_f77_try_link "$LINENO"; then :
13936 lt_aix_libpath_sed='
13937 /Import File Strings/,/^$/ {
13943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13944 # Check for a 64-bit object if we didn't find anything.
13945 if test -z "$aix_libpath"; then
13946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13953 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13954 # Warning - without using the other run time loading flags,
13955 # -berok will link without error, but may produce a broken library.
13956 no_undefined_flag_F77=' ${wl}-bernotok'
13957 allow_undefined_flag_F77=' ${wl}-berok'
13958 # Exported symbols can be pulled into shared objects from archives
13959 whole_archive_flag_spec_F77='$convenience'
13960 archive_cmds_need_lc_F77=yes
13961 # This is similar to how AIX traditionally builds its shared libraries.
13962 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'
13968 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)'
13969 hardcode_libdir_flag_spec_F77='-L$libdir'
13970 hardcode_minus_L_F77=yes
13971 # see comment about different semantics on the GNU ld section
13976 export_dynamic_flag_spec_F77=-rdynamic
13979 cygwin* | mingw* | pw32*)
13980 # When not using gcc, we currently assume that we are using
13981 # Microsoft Visual C++.
13982 # hardcode_libdir_flag_spec is actually meaningless, as there is
13983 # no search path for DLLs.
13984 hardcode_libdir_flag_spec_F77=' '
13985 allow_undefined_flag_F77=unsupported
13986 # Tell ltmain to make .lib files, not .a files.
13988 # Tell ltmain to make .dll files, not .so files.
13990 # FIXME: Setting linknames here is a bad hack.
13991 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13992 # The linker will automatically build a .lib file if we build a DLL.
13993 old_archive_From_new_cmds_F77='true'
13994 # FIXME: Should let the user specify the lib program.
13995 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
13996 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13997 enable_shared_with_static_runtimes_F77=yes
14000 darwin* | rhapsody*)
14002 rhapsody* | darwin1.[012])
14003 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14006 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14007 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14009 case ${MACOSX_DEPLOYMENT_TARGET} in
14011 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14014 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14020 archive_cmds_need_lc_F77=no
14021 hardcode_direct_F77=no
14022 hardcode_automatic_F77=yes
14023 hardcode_shlibpath_var_F77=unsupported
14024 whole_archive_flag_spec_F77=''
14025 link_all_deplibs_F77=yes
14026 if test "$GCC" = yes ; then
14027 output_verbose_link_cmd='echo'
14028 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}"
14029 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14030 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}"
14031 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}"
14033 case $cc_basename in
14035 output_verbose_link_cmd='echo'
14036 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14037 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14039 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}'
14040 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}'
14050 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14051 hardcode_libdir_flag_spec_F77='-L$libdir'
14052 hardcode_shlibpath_var_F77=no
14059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14060 # support. Future versions do this automatically, but an explicit c++rt0.o
14061 # does not break anything, and helps significantly (at the cost of a little
14064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14065 hardcode_libdir_flag_spec_F77='-R$libdir'
14066 hardcode_direct_F77=yes
14067 hardcode_shlibpath_var_F77=no
14070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14072 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14073 hardcode_direct_F77=yes
14074 hardcode_minus_L_F77=yes
14075 hardcode_shlibpath_var_F77=no
14078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14079 freebsd* | dragonfly*)
14080 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14081 hardcode_libdir_flag_spec_F77='-R$libdir'
14082 hardcode_direct_F77=yes
14083 hardcode_shlibpath_var_F77=no
14087 if test "$GCC" = yes; then
14088 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'
14090 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'
14092 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14093 hardcode_libdir_separator_F77=:
14094 hardcode_direct_F77=yes
14096 # hardcode_minus_L: Not really in the search PATH,
14097 # but as the default location of the library.
14098 hardcode_minus_L_F77=yes
14099 export_dynamic_flag_spec_F77='${wl}-E'
14103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14104 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14106 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14108 if test "$with_gnu_ld" = no; then
14109 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14110 hardcode_libdir_separator_F77=:
14112 hardcode_direct_F77=yes
14113 export_dynamic_flag_spec_F77='${wl}-E'
14115 # hardcode_minus_L: Not really in the search PATH,
14116 # but as the default location of the library.
14117 hardcode_minus_L_F77=yes
14122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14125 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14128 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14131 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14137 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14143 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14147 if test "$with_gnu_ld" = no; then
14148 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14149 hardcode_libdir_separator_F77=:
14153 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14154 hardcode_direct_F77=no
14155 hardcode_shlibpath_var_F77=no
14158 hardcode_direct_F77=yes
14159 export_dynamic_flag_spec_F77='${wl}-E'
14161 # hardcode_minus_L: Not really in the search PATH,
14162 # but as the default location of the library.
14163 hardcode_minus_L_F77=yes
14169 irix5* | irix6* | nonstopux*)
14170 if test "$GCC" = yes; then
14171 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'
14173 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'
14174 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14176 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177 hardcode_libdir_separator_F77=:
14178 link_all_deplibs_F77=yes
14182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14183 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14185 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14187 hardcode_libdir_flag_spec_F77='-R$libdir'
14188 hardcode_direct_F77=yes
14189 hardcode_shlibpath_var_F77=no
14193 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14194 hardcode_direct_F77=yes
14195 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14196 hardcode_libdir_separator_F77=:
14197 hardcode_shlibpath_var_F77=no
14201 if test -f /usr/libexec/ld.so; then
14202 hardcode_direct_F77=yes
14203 hardcode_shlibpath_var_F77=no
14204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14205 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14207 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14208 export_dynamic_flag_spec_F77='${wl}-E'
14211 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14212 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14213 hardcode_libdir_flag_spec_F77='-R$libdir'
14216 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14217 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14227 hardcode_libdir_flag_spec_F77='-L$libdir'
14228 hardcode_minus_L_F77=yes
14229 allow_undefined_flag_F77=unsupported
14230 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'
14231 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14235 if test "$GCC" = yes; then
14236 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14237 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'
14239 allow_undefined_flag_F77=' -expect_unresolved \*'
14240 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'
14242 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14243 hardcode_libdir_separator_F77=:
14246 osf4* | osf5*) # as osf3* with the addition of -msym flag
14247 if test "$GCC" = yes; then
14248 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14249 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'
14250 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14252 allow_undefined_flag_F77=' -expect_unresolved \*'
14253 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'
14254 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~
14255 $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'
14257 # Both c and cxx compiler support -rpath directly
14258 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14260 hardcode_libdir_separator_F77=:
14264 no_undefined_flag_F77=' -z text'
14265 if test "$GCC" = yes; then
14267 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14269 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14272 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14276 hardcode_libdir_flag_spec_F77='-R$libdir'
14277 hardcode_shlibpath_var_F77=no
14279 solaris2.[0-5] | solaris2.[0-5].*) ;;
14281 # The compiler driver will combine and reorder linker options,
14282 # but understands `-z linker_flag'. GCC discards it without `$wl',
14283 # but is careful enough not to reorder.
14284 # Supported since Solaris 2.6 (maybe 2.5.1?)
14285 if test "$GCC" = yes; then
14286 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14288 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14292 link_all_deplibs_F77=yes
14296 if test "x$host_vendor" = xsequent; then
14297 # Use $CC to link under sequent, because it throws in some extra .o
14298 # files that make .init and .fini sections work.
14299 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14301 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14303 hardcode_libdir_flag_spec_F77='-L$libdir'
14304 hardcode_direct_F77=yes
14305 hardcode_minus_L_F77=yes
14306 hardcode_shlibpath_var_F77=no
14310 case $host_vendor in
14312 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313 hardcode_direct_F77=yes # is this really true???
14316 ## LD is ld it makes a PLAMLIB
14317 ## CC just makes a GrossModule.
14318 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14319 reload_cmds_F77='$CC -r -o $output$reload_objs'
14320 hardcode_direct_F77=no
14323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14327 runpath_var='LD_RUN_PATH'
14328 hardcode_shlibpath_var_F77=no
14332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_shlibpath_var_F77=no
14334 export_dynamic_flag_spec_F77='-Bexport'
14338 if test -d /usr/nec; then
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_shlibpath_var_F77=no
14341 runpath_var=LD_RUN_PATH
14342 hardcode_runpath_var=yes
14347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14348 no_undefined_flag_F77='${wl}-z,text'
14349 archive_cmds_need_lc_F77=no
14350 hardcode_shlibpath_var_F77=no
14351 runpath_var='LD_RUN_PATH'
14353 if test "$GCC" = yes; then
14354 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14362 sysv5* | sco3.2v5* | sco5v6*)
14363 # Note: We can NOT use -z defs as we might desire, because we do not
14364 # link with -lc, and that would cause any symbols used from libc to
14365 # always be unresolved, which means just about no library would
14366 # ever link correctly. If we're not using GNU ld we use -z text
14367 # though, which does catch some bad symbols but isn't as heavy-handed
14369 no_undefined_flag_F77='${wl}-z,text'
14370 allow_undefined_flag_F77='${wl}-z,nodefs'
14371 archive_cmds_need_lc_F77=no
14372 hardcode_shlibpath_var_F77=no
14373 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14374 hardcode_libdir_separator_F77=':'
14375 link_all_deplibs_F77=yes
14376 export_dynamic_flag_spec_F77='${wl}-Bexport'
14377 runpath_var='LD_RUN_PATH'
14379 if test "$GCC" = yes; then
14380 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14381 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14383 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14384 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_libdir_flag_spec_F77='-L$libdir'
14391 hardcode_shlibpath_var_F77=no
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14401 $as_echo "$ld_shlibs_F77" >&6; }
14402 test "$ld_shlibs_F77" = no && can_build_shared=no
14405 # Do we need to explicitly link libc?
14407 case "x$archive_cmds_need_lc_F77" in
14409 # Assume -lc should be added
14410 archive_cmds_need_lc_F77=yes
14412 if test "$enable_shared" = yes && test "$GCC" = yes; then
14413 case $archive_cmds_F77 in
14415 # FIXME: we may have to deal with multi-command sequences.
14418 # Test whether the compiler implicitly links with -lc since on some
14419 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14420 # to ld, don't add -lc before -lgcc.
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14422 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14427 (eval $ac_compile) 2>&5
14429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; } 2>conftest.err; then
14433 libobjs=conftest.$ac_objext
14435 wl=$lt_prog_compiler_wl_F77
14436 pic_flag=$lt_prog_compiler_pic_F77
14442 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14443 allow_undefined_flag_F77=
14444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14445 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448 test $ac_status = 0; }
14450 archive_cmds_need_lc_F77=no
14452 archive_cmds_need_lc_F77=yes
14454 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14456 cat conftest.err 1>&5
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14460 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14468 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14469 library_names_spec=
14470 libname_spec='lib$name'
14474 postuninstall_cmds=
14478 shlibpath_overrides_runpath=unknown
14480 dynamic_linker="$host_os ld.so"
14481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14483 need_lib_prefix=unknown
14484 hardcode_into_libs=no
14486 # when you set need_version to no, make sure it does not cause -set_version
14487 # flags to be left without arguments
14488 need_version=unknown
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14494 shlibpath_var=LIBPATH
14496 # AIX 3 has no versioning support, so we append a major version to the name.
14497 soname_spec='${libname}${release}${shared_ext}$major'
14504 hardcode_into_libs=yes
14505 if test "$host_cpu" = ia64; then
14506 # AIX 5 supports IA64
14507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14508 shlibpath_var=LD_LIBRARY_PATH
14510 # With GCC up to 2.95.x, collect2 would create an import file
14511 # for dependence libraries. The import file would start with
14512 # the line `#! .'. This would cause the generated library to
14513 # depend on `.', always an invalid library. This was fixed in
14514 # development snapshots of GCC prior to 3.0.
14516 aix4 | aix4.[01] | aix4.[01].*)
14517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14519 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14522 can_build_shared=no
14526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14527 # soname into executable. Probably we can add versioning support to
14528 # collect2, so additional links can be useful in future.
14529 if test "$aix_use_runtimelinking" = yes; then
14530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14531 # instead of lib<name>.a to let people know that these are not
14532 # typical AIX shared libraries.
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 # We preserve .a as extension for shared libraries through AIX4.2
14536 # and later when we are not doing run time linking.
14537 library_names_spec='${libname}${release}.a $libname.a'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14540 shlibpath_var=LIBPATH
14545 library_names_spec='$libname.ixlibrary $libname.a'
14546 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14547 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'
14551 library_names_spec='${libname}${shared_ext}'
14552 dynamic_linker="$host_os ld.so"
14553 shlibpath_var=LIBRARY_PATH
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14565 # the default ld.so.conf also contains /usr/contrib/lib and
14566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14567 # libtool to hard-code these into programs
14570 cygwin* | mingw* | pw32*)
14571 version_type=windows
14576 case $GCC,$host_os in
14577 yes,cygwin* | yes,mingw* | yes,pw32*)
14578 library_names_spec='$libname.dll.a'
14579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14580 postinstall_cmds='base_file=`basename \${file}`~
14581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14582 dldir=$destdir/`dirname \$dlpath`~
14583 test -d \$dldir || mkdir -p \$dldir~
14584 $install_prog $dir/$dlname \$dldir/$dlname~
14585 chmod a+x \$dldir/$dlname'
14586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14587 dlpath=$dir/\$dldll~
14589 shlibpath_overrides_runpath=yes
14593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14595 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14598 # MinGW DLLs use traditional 'lib' prefix
14599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14601 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14602 # It is most probably a Windows format PATH printed by
14603 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14604 # path with ; separators, and with drive letters. We can handle the
14605 # drive letters (cygwin fileutils understands them), so leave them,
14606 # especially as we might pass files found there to a mingw objdump,
14607 # which wouldn't understand a cygwinified path. Ahh.
14608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14614 # pw32 DLLs use 'pw' prefix rather than 'lib'
14615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14624 dynamic_linker='Win32 ld.exe'
14625 # FIXME: first we should search . and the directory the executable is in
14629 darwin* | rhapsody*)
14630 dynamic_linker="$host_os dyld"
14631 version_type=darwin
14634 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14635 soname_spec='${libname}${release}${major}$shared_ext'
14636 shlibpath_overrides_runpath=yes
14637 shlibpath_var=DYLD_LIBRARY_PATH
14638 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14640 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 shlibpath_var=LD_LIBRARY_PATH
14656 freebsd* | dragonfly*)
14657 # DragonFly does not have aout. When/if they implement a new
14658 # versioning mechanism, adjust this.
14659 if test -x /usr/bin/objformat; then
14660 objformat=`/usr/bin/objformat`
14663 freebsd[123]*) objformat=aout ;;
14664 *) objformat=elf ;;
14667 version_type=freebsd-$objformat
14668 case $version_type in
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14679 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14684 freebsd3.[01]* | freebsdelf3.[01]*)
14685 shlibpath_overrides_runpath=yes
14686 hardcode_into_libs=yes
14688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14690 shlibpath_overrides_runpath=no
14691 hardcode_into_libs=yes
14693 *) # from 4.6 on, and DragonFly
14694 shlibpath_overrides_runpath=yes
14695 hardcode_into_libs=yes
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 hardcode_into_libs=yes
14710 hpux9* | hpux10* | hpux11*)
14711 # Give a soname corresponding to the major version so that dld.sl refuses to
14712 # link against other versions.
14719 hardcode_into_libs=yes
14720 dynamic_linker="$host_os dld.so"
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 if test "X$HPUX_IA64_MODE" = X32; then
14726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14734 hardcode_into_libs=yes
14735 dynamic_linker="$host_os dld.sl"
14736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14745 dynamic_linker="$host_os dld.sl"
14746 shlibpath_var=SHLIB_PATH
14747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14752 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14753 postinstall_cmds='chmod 555 $lib'
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 hardcode_into_libs=yes
14768 irix5* | irix6* | nonstopux*)
14770 nonstopux*) version_type=nonstopux ;;
14772 if test "$lt_cv_prog_gnu_ld" = yes; then
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14783 irix5* | nonstopux*)
14784 libsuff= shlibsuff=
14787 case $LD in # libtool.m4 will add one of these switches to LD
14788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14789 libsuff= shlibsuff= libmagic=32-bit;;
14790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14791 libsuff=32 shlibsuff=N32 libmagic=N32;;
14792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14794 *) libsuff= shlibsuff= libmagic=never-match;;
14798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14799 shlibpath_overrides_runpath=no
14800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14802 hardcode_into_libs=yes
14805 # No shared lib support for Linux oldld, aout, or coff.
14806 linux*oldld* | linux*aout* | linux*coff*)
14810 # This must be Linux ELF.
14811 linux* | k*bsd*-gnu)
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=no
14820 # This implies no fast_install, which is unacceptable.
14821 # Some rework will be needed to allow for fast_install
14822 # before this can be enabled.
14823 hardcode_into_libs=yes
14825 # Append ld.so.conf contents to the search path
14826 if test -f /etc/ld.so.conf; then
14827 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' ' '`
14828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14831 # We used to test for /lib/ld.so.1 and disable shared libraries on
14832 # powerpc, because MkLinux only supported shared libraries with the
14833 # GNU dynamic linker. Since this was broken with cross compilers,
14834 # most powerpc-linux boxes support dynamic linking these days and
14835 # people can always --disable-shared, the test was removed, and we
14836 # assume the GNU/Linux dynamic linker is in use.
14837 dynamic_linker='GNU/Linux ld.so'
14844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14847 dynamic_linker='NetBSD (a.out) ld.so'
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 dynamic_linker='NetBSD ld.elf_so'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=yes
14855 hardcode_into_libs=yes
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 shlibpath_overrides_runpath=yes
14877 sys_lib_dlsearch_path_spec="/usr/lib"
14879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14882 *) need_version=no ;;
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14889 openbsd2.[89] | openbsd2.[89].*)
14890 shlibpath_overrides_runpath=no
14893 shlibpath_overrides_runpath=yes
14897 shlibpath_overrides_runpath=yes
14902 libname_spec='$name'
14905 library_names_spec='$libname${shared_ext} $libname.a'
14906 dynamic_linker='OS/2 ld.exe'
14907 shlibpath_var=LIBPATH
14910 osf3* | osf4* | osf5*)
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes
14933 hardcode_into_libs=yes
14934 # ldd complains unless libraries are executable
14935 postinstall_cmds='chmod +x $lib'
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 shlibpath_overrides_runpath=yes
14944 if test "$with_gnu_ld" = yes; then
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 case $host_vendor in
14957 shlibpath_overrides_runpath=no
14959 export_dynamic_flag_spec='${wl}-Blargedynsym'
14960 runpath_var=LD_RUN_PATH
14968 shlibpath_overrides_runpath=no
14969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14975 if test -d /usr/nec ;then
14977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14978 soname_spec='$libname${shared_ext}.$major'
14979 shlibpath_var=LD_LIBRARY_PATH
14983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14984 version_type=freebsd-elf
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 hardcode_into_libs=yes
14991 if test "$with_gnu_ld" = yes; then
14992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14993 shlibpath_overrides_runpath=no
14995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14996 shlibpath_overrides_runpath=yes
14999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15003 sys_lib_dlsearch_path_spec='/usr/lib'
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 shlibpath_var=LD_LIBRARY_PATH
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15018 $as_echo "$dynamic_linker" >&6; }
15019 test "$dynamic_linker" = no && can_build_shared=no
15021 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15022 $as_echo_n "(cached) " >&6
15024 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15027 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15029 $as_echo_n "(cached) " >&6
15031 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15036 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15037 if test "$GCC" = yes; then
15038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15043 hardcode_action_F77=
15044 if test -n "$hardcode_libdir_flag_spec_F77" || \
15045 test -n "$runpath_var_F77" || \
15046 test "X$hardcode_automatic_F77" = "Xyes" ; then
15048 # We can hardcode non-existant directories.
15049 if test "$hardcode_direct_F77" != no &&
15050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15051 # have to relink, otherwise we might link with an installed library
15052 # when we should be linking with a yet-to-be-installed one
15053 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15054 test "$hardcode_minus_L_F77" != no; then
15055 # Linking always hardcodes the temporary library directory.
15056 hardcode_action_F77=relink
15058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15059 hardcode_action_F77=immediate
15062 # We cannot hardcode anything, or else we can only hardcode existing
15064 hardcode_action_F77=unsupported
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15067 $as_echo "$hardcode_action_F77" >&6; }
15069 if test "$hardcode_action_F77" = relink; then
15070 # Fast installation is not supported
15071 enable_fast_install=no
15072 elif test "$shlibpath_overrides_runpath" = yes ||
15073 test "$enable_shared" = no; then
15074 # Fast installation is not necessary
15075 enable_fast_install=needless
15079 # The else clause should only fire when bootstrapping the
15080 # libtool distribution, otherwise you forgot to ship ltmain.sh
15081 # with your package, and you will get complaints that there are
15082 # no rules to generate ltmain.sh.
15083 if test -f "$ltmain"; then
15084 # See if we are running on zsh, and set the options which allow our commands through
15085 # without removal of \ escapes.
15086 if test -n "${ZSH_VERSION+set}" ; then
15087 setopt NO_GLOB_SUBST
15089 # Now quote all the things that may contain metacharacters while being
15090 # careful not to overquote the AC_SUBSTed values. We take copies of the
15091 # variables and quote the copies for generation of the libtool script.
15092 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15094 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15095 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15096 deplibs_check_method reload_flag reload_cmds need_locks \
15097 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15098 lt_cv_sys_global_symbol_to_c_name_address \
15099 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15100 old_postinstall_cmds old_postuninstall_cmds \
15104 lt_prog_compiler_wl_F77 \
15105 lt_prog_compiler_pic_F77 \
15106 lt_prog_compiler_static_F77 \
15107 lt_prog_compiler_no_builtin_flag_F77 \
15108 export_dynamic_flag_spec_F77 \
15109 thread_safe_flag_spec_F77 \
15110 whole_archive_flag_spec_F77 \
15111 enable_shared_with_static_runtimes_F77 \
15112 old_archive_cmds_F77 \
15113 old_archive_from_new_cmds_F77 \
15114 predep_objects_F77 \
15115 postdep_objects_F77 \
15118 compiler_lib_search_path_F77 \
15119 compiler_lib_search_dirs_F77 \
15121 archive_expsym_cmds_F77 \
15122 postinstall_cmds_F77 \
15123 postuninstall_cmds_F77 \
15124 old_archive_from_expsyms_cmds_F77 \
15125 allow_undefined_flag_F77 \
15126 no_undefined_flag_F77 \
15127 export_symbols_cmds_F77 \
15128 hardcode_libdir_flag_spec_F77 \
15129 hardcode_libdir_flag_spec_ld_F77 \
15130 hardcode_libdir_separator_F77 \
15131 hardcode_automatic_F77 \
15133 module_expsym_cmds_F77 \
15134 lt_cv_prog_compiler_c_o_F77 \
15135 fix_srcfile_path_F77 \
15136 exclude_expsyms_F77 \
15137 include_expsyms_F77; do
15140 old_archive_cmds_F77 | \
15141 old_archive_from_new_cmds_F77 | \
15142 archive_cmds_F77 | \
15143 archive_expsym_cmds_F77 | \
15144 module_cmds_F77 | \
15145 module_expsym_cmds_F77 | \
15146 old_archive_from_expsyms_cmds_F77 | \
15147 export_symbols_cmds_F77 | \
15148 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15149 postinstall_cmds | postuninstall_cmds | \
15150 old_postinstall_cmds | old_postuninstall_cmds | \
15151 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15152 # Double-quote double-evaled strings.
15153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15162 *'\$0 --fallback-echo"')
15163 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15169 cat <<__EOF__ >> "$cfgfile"
15170 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15172 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15174 # Shell to use when invoking shell scripts.
15177 # Whether or not to build shared libraries.
15178 build_libtool_libs=$enable_shared
15180 # Whether or not to build static libraries.
15181 build_old_libs=$enable_static
15183 # Whether or not to add -lc for building shared libraries.
15184 build_libtool_need_lc=$archive_cmds_need_lc_F77
15186 # Whether or not to disallow shared libs when runtime libs are static
15187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15189 # Whether or not to optimize for fast installation.
15190 fast_install=$enable_fast_install
15193 host_alias=$host_alias
15197 # The build system.
15198 build_alias=$build_alias
15202 # An echo program that does not interpret backslashes.
15207 AR_FLAGS=$lt_AR_FLAGS
15212 # LTCC compiler flags.
15213 LTCFLAGS=$lt_LTCFLAGS
15215 # A language-specific compiler.
15216 CC=$lt_compiler_F77
15218 # Is the compiler the GNU C compiler?
15224 # The linker used to build libraries.
15227 # Whether we need hard or soft links.
15230 # A BSD-compatible nm program.
15233 # A symbol stripping program
15236 # Used to examine libraries when file_magic_cmd begins "file"
15237 MAGIC_CMD=$MAGIC_CMD
15239 # Used on cygwin: DLL creation program.
15242 # Used on cygwin: object dumper.
15245 # Used on cygwin: assembler.
15248 # The name of the directory that contains temporary libtool files.
15251 # How to create reloadable object files.
15252 reload_flag=$lt_reload_flag
15253 reload_cmds=$lt_reload_cmds
15255 # How to pass a linker flag through the compiler.
15256 wl=$lt_lt_prog_compiler_wl_F77
15258 # Object file suffix (normally "o").
15259 objext="$ac_objext"
15261 # Old archive suffix (normally "a").
15264 # Shared library suffix (normally ".so").
15265 shrext_cmds='$shrext_cmds'
15267 # Executable file suffix (normally "").
15270 # Additional compiler flags for building library objects.
15271 pic_flag=$lt_lt_prog_compiler_pic_F77
15274 # What is the maximum length of a command?
15275 max_cmd_len=$lt_cv_sys_max_cmd_len
15277 # Does compiler simultaneously support -c and -o options?
15278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15280 # Must we lock files when doing compilation?
15281 need_locks=$lt_need_locks
15283 # Do we need the lib prefix for modules?
15284 need_lib_prefix=$need_lib_prefix
15286 # Do we need a version for libraries?
15287 need_version=$need_version
15289 # Whether dlopen is supported.
15290 dlopen_support=$enable_dlopen
15292 # Whether dlopen of programs is supported.
15293 dlopen_self=$enable_dlopen_self
15295 # Whether dlopen of statically linked programs is supported.
15296 dlopen_self_static=$enable_dlopen_self_static
15298 # Compiler flag to prevent dynamic linking.
15299 link_static_flag=$lt_lt_prog_compiler_static_F77
15301 # Compiler flag to turn off builtin functions.
15302 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15304 # Compiler flag to allow reflexive dlopens.
15305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15307 # Compiler flag to generate shared objects directly from archives.
15308 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15310 # Compiler flag to generate thread-safe objects.
15311 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15313 # Library versioning type.
15314 version_type=$version_type
15316 # Format of library name prefix.
15317 libname_spec=$lt_libname_spec
15319 # List of archive names. First name is the real one, the rest are links.
15320 # The last name is the one that the linker finds with -lNAME.
15321 library_names_spec=$lt_library_names_spec
15323 # The coded name of the library, if different from the real name.
15324 soname_spec=$lt_soname_spec
15326 # Commands used to build and install an old-style archive.
15328 old_archive_cmds=$lt_old_archive_cmds_F77
15329 old_postinstall_cmds=$lt_old_postinstall_cmds
15330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15332 # Create an old-style archive from a shared archive.
15333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15335 # Create a temporary old-style archive to link instead of a shared archive.
15336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15338 # Commands used to build and install a shared archive.
15339 archive_cmds=$lt_archive_cmds_F77
15340 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15341 postinstall_cmds=$lt_postinstall_cmds
15342 postuninstall_cmds=$lt_postuninstall_cmds
15344 # Commands used to build a loadable module (assumed same as above if empty)
15345 module_cmds=$lt_module_cmds_F77
15346 module_expsym_cmds=$lt_module_expsym_cmds_F77
15348 # Commands to strip libraries.
15349 old_striplib=$lt_old_striplib
15350 striplib=$lt_striplib
15352 # Dependencies to place before the objects being linked to create a
15354 predep_objects=$lt_predep_objects_F77
15356 # Dependencies to place after the objects being linked to create a
15358 postdep_objects=$lt_postdep_objects_F77
15360 # Dependencies to place before the objects being linked to create a
15362 predeps=$lt_predeps_F77
15364 # Dependencies to place after the objects being linked to create a
15366 postdeps=$lt_postdeps_F77
15368 # The directories searched by this compiler when creating a shared
15370 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15372 # The library search path used internally by the compiler when linking
15373 # a shared library.
15374 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15376 # Method to check whether dependent libraries are shared objects.
15377 deplibs_check_method=$lt_deplibs_check_method
15379 # Command to use when deplibs_check_method == file_magic.
15380 file_magic_cmd=$lt_file_magic_cmd
15382 # Flag that allows shared libraries with undefined symbols to be built.
15383 allow_undefined_flag=$lt_allow_undefined_flag_F77
15385 # Flag that forces no undefined symbols.
15386 no_undefined_flag=$lt_no_undefined_flag_F77
15388 # Commands used to finish a libtool library installation in a directory.
15389 finish_cmds=$lt_finish_cmds
15391 # Same as above, but a single script fragment to be evaled but not shown.
15392 finish_eval=$lt_finish_eval
15394 # Take the output of nm and produce a listing of raw symbols and C names.
15395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15397 # Transform the output of nm in a proper C declaration
15398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15400 # Transform the output of nm in a C name address pair
15401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15403 # This is the shared library runtime path variable.
15404 runpath_var=$runpath_var
15406 # This is the shared library path variable.
15407 shlibpath_var=$shlibpath_var
15409 # Is shlibpath searched before the hard-coded library search path?
15410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15412 # How to hardcode a shared library path into an executable.
15413 hardcode_action=$hardcode_action_F77
15415 # Whether we should hardcode library paths into libraries.
15416 hardcode_into_libs=$hardcode_into_libs
15418 # Flag to hardcode \$libdir into a binary during linking.
15419 # This must work even if \$libdir does not exist.
15420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15422 # If ld is used when linking, flag to hardcode \$libdir into
15423 # a binary during linking. This must work even if \$libdir does
15425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15427 # Whether we need a single -rpath flag with a separated argument.
15428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15431 # resulting binary.
15432 hardcode_direct=$hardcode_direct_F77
15434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15435 # resulting binary.
15436 hardcode_minus_L=$hardcode_minus_L_F77
15438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15439 # the resulting binary.
15440 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15442 # Set to yes if building a shared library automatically hardcodes DIR into the library
15443 # and all subsequent libraries and executables linked against it.
15444 hardcode_automatic=$hardcode_automatic_F77
15446 # Variables whose values should be saved in libtool wrapper scripts and
15447 # restored at relink time.
15448 variables_saved_for_relink="$variables_saved_for_relink"
15450 # Whether libtool must link a program against all its dependency libraries.
15451 link_all_deplibs=$link_all_deplibs_F77
15453 # Compile-time system search path for libraries
15454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15456 # Run-time system search path for libraries
15457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15459 # Fix the shell variable \$srcfile for the compiler.
15460 fix_srcfile_path=$lt_fix_srcfile_path
15462 # Set to yes if exported symbols are required.
15463 always_export_symbols=$always_export_symbols_F77
15465 # The commands to list exported symbols.
15466 export_symbols_cmds=$lt_export_symbols_cmds_F77
15468 # The commands to extract the exported symbol list from a shared archive.
15469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15471 # Symbols that should not be listed in the preloaded symbols.
15472 exclude_expsyms=$lt_exclude_expsyms_F77
15474 # Symbols that must always be exported.
15475 include_expsyms=$lt_include_expsyms_F77
15477 # ### END LIBTOOL TAG CONFIG: $tagname
15483 # If there is no Makefile yet, we rely on a make rule to execute
15484 # `config.status --recheck' to rerun these tests and create the
15485 # libtool script then.
15486 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15487 if test -f "$ltmain_in"; then
15488 test -f Makefile && make "$ltmain"
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15507 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15510 # Source file extension for Java test sources.
15513 # Object file extension for compiled Java test sources.
15517 # Code to be used in simple compile tests
15518 lt_simple_compile_test_code="class foo {}"
15520 # Code to be used in simple link tests
15521 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15525 # If no C compiler was specified, use CC.
15528 # If no C compiler flags were specified, use CFLAGS.
15529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15531 # Allow CC to be a program name with arguments.
15535 # save warnings/boilerplate of simple test code
15536 ac_outfile=conftest.$ac_objext
15537 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15538 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15539 _lt_compiler_boilerplate=`cat conftest.err`
15542 ac_outfile=conftest.$ac_objext
15543 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15544 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15545 _lt_linker_boilerplate=`cat conftest.err`
15549 # Allow CC to be a program name with arguments.
15554 for cc_temp in $compiler""; do
15556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15562 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15565 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15566 archive_cmds_need_lc_GCJ=no
15568 old_archive_cmds_GCJ=$old_archive_cmds
15571 ## There is no encapsulation within the following macros, do not change
15572 ## the running order or otherwise move them around unless you know exactly
15573 ## what you are doing...
15575 lt_prog_compiler_no_builtin_flag_GCJ=
15577 if test "$GCC" = yes; then
15578 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15582 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15583 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15586 lt_cv_prog_compiler_rtti_exceptions=no
15587 ac_outfile=conftest.$ac_objext
15588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15589 lt_compiler_flag="-fno-rtti -fno-exceptions"
15590 # Insert the option either (1) after the last *FLAGS variable, or
15591 # (2) before a word containing "conftest.", or (3) at the end.
15592 # Note that $ac_compile itself does not contain backslashes and begins
15593 # with a dollar sign (not a hyphen), so the echo should work correctly.
15594 # The option is referenced via a variable to avoid confusing sed.
15595 lt_compile=`echo "$ac_compile" | $SED \
15596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598 -e 's:$: $lt_compiler_flag:'`
15599 (eval echo "\"\$as_me:15599: $lt_compile\"" >&5)
15600 (eval "$lt_compile" 2>conftest.err)
15602 cat conftest.err >&5
15603 echo "$as_me:15603: \$? = $ac_status" >&5
15604 if (exit $ac_status) && test -s "$ac_outfile"; then
15605 # The compiler can only warn and ignore the option if not recognized
15606 # So say no if there are warnings other than the usual output.
15607 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15610 lt_cv_prog_compiler_rtti_exceptions=yes
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15617 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15619 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15620 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15627 lt_prog_compiler_wl_GCJ=
15628 lt_prog_compiler_pic_GCJ=
15629 lt_prog_compiler_static_GCJ=
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15632 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15634 if test "$GCC" = yes; then
15635 lt_prog_compiler_wl_GCJ='-Wl,'
15636 lt_prog_compiler_static_GCJ='-static'
15640 # All AIX code is PIC.
15641 if test "$host_cpu" = ia64; then
15642 # AIX 5 now supports IA64 processor
15643 lt_prog_compiler_static_GCJ='-Bstatic'
15648 # FIXME: we need at least 68020 code to build shared libraries, but
15649 # adding the `-m68020' flag to GCC prevents building anything better,
15651 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15654 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15655 # PIC is the default for these OSes.
15658 mingw* | cygwin* | pw32* | os2*)
15659 # This hack is so that the source file can tell whether it is being
15660 # built for inclusion in a dll (and should export symbols for example).
15661 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15662 # (--disable-auto-import) libraries
15666 darwin* | rhapsody*)
15667 # PIC is the default on this platform
15668 # Common symbols not allowed in MH_DYLIB files
15669 lt_prog_compiler_pic_GCJ='-fno-common'
15673 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15674 # Instead, we relocate shared libraries at runtime.
15678 # Just because we use GCC doesn't mean we suddenly get shared libraries
15679 # on systems that don't support them.
15680 lt_prog_compiler_can_build_shared_GCJ=no
15685 if test -d /usr/nec; then
15686 lt_prog_compiler_pic_GCJ=-Kconform_pic
15691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15692 # not for PA HP-UX.
15698 lt_prog_compiler_pic_GCJ='-fPIC'
15704 lt_prog_compiler_pic_GCJ='-fPIC'
15708 # PORTME Check for flag to pass linker flags through the system compiler.
15711 lt_prog_compiler_wl_GCJ='-Wl,'
15712 if test "$host_cpu" = ia64; then
15713 # AIX 5 now supports IA64 processor
15714 lt_prog_compiler_static_GCJ='-Bstatic'
15716 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15720 # PIC is the default on this platform
15721 # Common symbols not allowed in MH_DYLIB files
15722 case $cc_basename in
15724 lt_prog_compiler_pic_GCJ='-qnocommon'
15725 lt_prog_compiler_wl_GCJ='-Wl,'
15730 mingw* | cygwin* | pw32* | os2*)
15731 # This hack is so that the source file can tell whether it is being
15732 # built for inclusion in a dll (and should export symbols for example).
15736 hpux9* | hpux10* | hpux11*)
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15739 # not for PA HP-UX.
15745 lt_prog_compiler_pic_GCJ='+Z'
15748 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15749 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15752 irix5* | irix6* | nonstopux*)
15753 lt_prog_compiler_wl_GCJ='-Wl,'
15754 # PIC (with -KPIC) is the default.
15755 lt_prog_compiler_static_GCJ='-non_shared'
15759 lt_prog_compiler_pic_GCJ='-KPIC'
15760 lt_prog_compiler_static_GCJ='-Bstatic'
15763 linux* | k*bsd*-gnu)
15764 case $cc_basename in
15766 lt_prog_compiler_wl_GCJ='-Wl,'
15767 lt_prog_compiler_pic_GCJ='-KPIC'
15768 lt_prog_compiler_static_GCJ='-static'
15770 pgcc* | pgf77* | pgf90* | pgf95*)
15771 # Portland Group compilers (*not* the Pentium gcc compiler,
15772 # which looks to be a dead project)
15773 lt_prog_compiler_wl_GCJ='-Wl,'
15774 lt_prog_compiler_pic_GCJ='-fpic'
15775 lt_prog_compiler_static_GCJ='-Bstatic'
15778 lt_prog_compiler_wl_GCJ='-Wl,'
15779 # All Alpha code is PIC.
15780 lt_prog_compiler_static_GCJ='-non_shared'
15783 case `$CC -V 2>&1 | sed 5q` in
15786 lt_prog_compiler_pic_GCJ='-KPIC'
15787 lt_prog_compiler_static_GCJ='-Bstatic'
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15791 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15792 lt_prog_compiler_pic_GCJ='-KPIC'
15793 lt_prog_compiler_static_GCJ='-Bstatic'
15794 lt_prog_compiler_wl_GCJ=''
15801 osf3* | osf4* | osf5*)
15802 lt_prog_compiler_wl_GCJ='-Wl,'
15803 # All OSF/1 code is PIC.
15804 lt_prog_compiler_static_GCJ='-non_shared'
15808 lt_prog_compiler_static_GCJ='-non_shared'
15812 lt_prog_compiler_pic_GCJ='-KPIC'
15813 lt_prog_compiler_static_GCJ='-Bstatic'
15814 case $cc_basename in
15815 f77* | f90* | f95*)
15816 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15818 lt_prog_compiler_wl_GCJ='-Wl,';;
15823 lt_prog_compiler_wl_GCJ='-Qoption ld '
15824 lt_prog_compiler_pic_GCJ='-PIC'
15825 lt_prog_compiler_static_GCJ='-Bstatic'
15828 sysv4 | sysv4.2uw2* | sysv4.3*)
15829 lt_prog_compiler_wl_GCJ='-Wl,'
15830 lt_prog_compiler_pic_GCJ='-KPIC'
15831 lt_prog_compiler_static_GCJ='-Bstatic'
15835 if test -d /usr/nec ;then
15836 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15837 lt_prog_compiler_static_GCJ='-Bstatic'
15841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15842 lt_prog_compiler_wl_GCJ='-Wl,'
15843 lt_prog_compiler_pic_GCJ='-KPIC'
15844 lt_prog_compiler_static_GCJ='-Bstatic'
15848 lt_prog_compiler_wl_GCJ='-Wl,'
15849 lt_prog_compiler_can_build_shared_GCJ=no
15853 lt_prog_compiler_pic_GCJ='-pic'
15854 lt_prog_compiler_static_GCJ='-Bstatic'
15858 lt_prog_compiler_can_build_shared_GCJ=no
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15864 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15867 # Check to make sure the PIC flag actually works.
15869 if test -n "$lt_prog_compiler_pic_GCJ"; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15873 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
15876 lt_cv_prog_compiler_pic_works_GCJ=no
15877 ac_outfile=conftest.$ac_objext
15878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15879 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15880 # Insert the option either (1) after the last *FLAGS variable, or
15881 # (2) before a word containing "conftest.", or (3) at the end.
15882 # Note that $ac_compile itself does not contain backslashes and begins
15883 # with a dollar sign (not a hyphen), so the echo should work correctly.
15884 # The option is referenced via a variable to avoid confusing sed.
15885 lt_compile=`echo "$ac_compile" | $SED \
15886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15888 -e 's:$: $lt_compiler_flag:'`
15889 (eval echo "\"\$as_me:15889: $lt_compile\"" >&5)
15890 (eval "$lt_compile" 2>conftest.err)
15892 cat conftest.err >&5
15893 echo "$as_me:15893: \$? = $ac_status" >&5
15894 if (exit $ac_status) && test -s "$ac_outfile"; then
15895 # The compiler can only warn and ignore the option if not recognized
15896 # So say no if there are warnings other than the usual output.
15897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15900 lt_cv_prog_compiler_pic_works_GCJ=yes
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
15907 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
15909 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
15910 case $lt_prog_compiler_pic_GCJ in
15912 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15915 lt_prog_compiler_pic_GCJ=
15916 lt_prog_compiler_can_build_shared_GCJ=no
15921 # For platforms which do not support PIC, -DPIC is meaningless:
15923 lt_prog_compiler_pic_GCJ=
15926 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15931 # Check to make sure the static flag actually works.
15933 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15936 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
15937 $as_echo_n "(cached) " >&6
15939 lt_cv_prog_compiler_static_works_GCJ=no
15940 save_LDFLAGS="$LDFLAGS"
15941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15944 # The linker can only warn and ignore the option if not recognized
15945 # So say no if there are warnings
15946 if test -s conftest.err; then
15947 # Append any errors to the config.log.
15948 cat conftest.err 1>&5
15949 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15951 if diff conftest.exp conftest.er2 >/dev/null; then
15952 lt_cv_prog_compiler_static_works_GCJ=yes
15955 lt_cv_prog_compiler_static_works_GCJ=yes
15959 LDFLAGS="$save_LDFLAGS"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
15963 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
15965 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
15968 lt_prog_compiler_static_GCJ=
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15974 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
15975 $as_echo_n "(cached) " >&6
15977 lt_cv_prog_compiler_c_o_GCJ=no
15978 $rm -r conftest 2>/dev/null
15982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15984 lt_compiler_flag="-o out/conftest2.$ac_objext"
15985 # Insert the option either (1) after the last *FLAGS variable, or
15986 # (2) before a word containing "conftest.", or (3) at the end.
15987 # Note that $ac_compile itself does not contain backslashes and begins
15988 # with a dollar sign (not a hyphen), so the echo should work correctly.
15989 lt_compile=`echo "$ac_compile" | $SED \
15990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15992 -e 's:$: $lt_compiler_flag:'`
15993 (eval echo "\"\$as_me:15993: $lt_compile\"" >&5)
15994 (eval "$lt_compile" 2>out/conftest.err)
15996 cat out/conftest.err >&5
15997 echo "$as_me:15997: \$? = $ac_status" >&5
15998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16000 # The compiler can only warn and ignore the option if not recognized
16001 # So say no if there are warnings
16002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16005 lt_cv_prog_compiler_c_o_GCJ=yes
16010 # SGI C++ compiler will create directory out/ii_files/ for
16011 # template instantiation
16012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16013 $rm out/* && rmdir out
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16020 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16023 hard_links="nottested"
16024 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16025 # do not overwrite the value of need_locks provided by the user
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16027 $as_echo_n "checking if we can lock with hard links... " >&6; }
16030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16032 ln conftest.a conftest.b 2>&5 || hard_links=no
16033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16035 $as_echo "$hard_links" >&6; }
16036 if test "$hard_links" = no; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16038 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16046 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16049 allow_undefined_flag_GCJ=
16050 enable_shared_with_static_runtimes_GCJ=no
16052 archive_expsym_cmds_GCJ=
16053 old_archive_From_new_cmds_GCJ=
16054 old_archive_from_expsyms_cmds_GCJ=
16055 export_dynamic_flag_spec_GCJ=
16056 whole_archive_flag_spec_GCJ=
16057 thread_safe_flag_spec_GCJ=
16058 hardcode_libdir_flag_spec_GCJ=
16059 hardcode_libdir_flag_spec_ld_GCJ=
16060 hardcode_libdir_separator_GCJ=
16061 hardcode_direct_GCJ=no
16062 hardcode_minus_L_GCJ=no
16063 hardcode_shlibpath_var_GCJ=unsupported
16064 link_all_deplibs_GCJ=unknown
16065 hardcode_automatic_GCJ=no
16067 module_expsym_cmds_GCJ=
16068 always_export_symbols_GCJ=no
16069 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16070 # include_expsyms should be a list of space-separated symbols to be *always*
16071 # included in the symbol list
16072 include_expsyms_GCJ=
16073 # exclude_expsyms can be an extended regexp of symbols to exclude
16074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16076 # as well as any symbol that contains `d'.
16077 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16079 # platforms (ab)use it in PIC code, but their linkers get confused if
16080 # the symbol is explicitly referenced. Since portable code cannot
16081 # rely on this symbol name, it's probably fine to never include it in
16082 # preloaded symbol tables.
16083 # Exclude shared library initialization/finalization symbols.
16084 extract_expsyms_cmds=
16085 # Just being paranoid about ensuring that cc_basename is set.
16086 for cc_temp in $compiler""; do
16088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16097 cygwin* | mingw* | pw32*)
16098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16099 # When not using gcc, we currently assume that we are using
16100 # Microsoft Visual C++.
16101 if test "$GCC" != yes; then
16106 # we just hope/assume this is gcc and not c89 (= MSVC++)
16115 if test "$with_gnu_ld" = yes; then
16116 # If archive_cmds runs LD, not CC, wlarc should be empty
16119 # Set some defaults for GNU ld with shared library support. These
16120 # are reset later if shared libraries are not supported. Putting them
16121 # here allows them to be overridden if necessary.
16122 runpath_var=LD_RUN_PATH
16123 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16124 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16125 # ancient GNU ld didn't support --whole-archive et. al.
16126 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16127 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16129 whole_archive_flag_spec_GCJ=
16131 supports_anon_versioning=no
16132 case `$LD -v 2>/dev/null` in
16133 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16134 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16135 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16136 *\ 2.11.*) ;; # other 2.11 versions
16137 *) supports_anon_versioning=yes ;;
16140 # See if GNU ld supports shared libraries.
16143 # On AIX/PPC, the GNU linker is very broken
16144 if test "$host_cpu" != ia64; then
16148 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16149 *** to be unable to reliably create shared libraries on AIX.
16150 *** Therefore, libtool is disabling shared libraries support. If you
16151 *** really care for shared libraries, you may want to modify your PATH
16152 *** so that a non-GNU linker is found, and then restart.
16159 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)'
16160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16161 hardcode_minus_L_GCJ=yes
16163 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16164 # that the semantics of dynamic libraries on AmigaOS, at least up
16165 # to version 4, is to share data among multiple programs linked
16166 # with the same dynamic library. Since this doesn't match the
16167 # behavior of shared libraries on other platforms, we can't use
16173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16174 allow_undefined_flag_GCJ=unsupported
16175 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16176 # support --undefined. This deserves some investigation. FIXME
16177 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16183 cygwin* | mingw* | pw32*)
16184 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16185 # as there is no search path for DLLs.
16186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187 allow_undefined_flag_GCJ=unsupported
16188 always_export_symbols_GCJ=no
16189 enable_shared_with_static_runtimes_GCJ=yes
16190 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16192 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16194 # If the export-symbols file already is a .def file (1st line
16195 # is EXPORTS), use it as is; otherwise, prepend...
16196 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16197 cp $export_symbols $output_objdir/$soname.def;
16199 echo EXPORTS > $output_objdir/$soname.def;
16200 cat $export_symbols >> $output_objdir/$soname.def;
16202 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16209 hardcode_direct_GCJ=no
16210 hardcode_shlibpath_var_GCJ=no
16211 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16212 export_dynamic_flag_spec_GCJ='${wl}-E'
16213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16214 # Instead, shared libraries are loaded at an image base (0x10000000 by
16215 # default) and relocated if they conflict, which is a slow very memory
16216 # consuming and fragmenting process. To avoid this, we pick a random,
16217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16219 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'
16220 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'
16223 gnu* | linux* | k*bsd*-gnu)
16224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16226 case $cc_basename,$host_cpu in
16227 pgcc*) # Portland Group C compiler
16228 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'
16229 tmp_addflag=' $pic_flag'
16231 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16232 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'
16233 tmp_addflag=' $pic_flag -Mnomain' ;;
16234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16235 tmp_addflag=' -i_dynamic' ;;
16236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16237 tmp_addflag=' -i_dynamic -nofor_main' ;;
16238 ifc* | ifort*) # Intel Fortran compiler
16239 tmp_addflag=' -nofor_main' ;;
16241 case `$CC -V 2>&1 | sed 5q` in
16242 *Sun\ C*) # Sun C 5.9
16243 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'
16244 tmp_sharedflag='-G' ;;
16245 *Sun\ F*) # Sun Fortran 8.3
16246 tmp_sharedflag='-G' ;;
16248 tmp_sharedflag='-shared' ;;
16250 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16252 if test $supports_anon_versioning = yes; then
16253 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16255 $echo "local: *; };" >> $output_objdir/$libname.ver~
16256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16265 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16268 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16269 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16274 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16279 *** create shared libraries on Solaris systems. Therefore, libtool
16280 *** is disabling shared libraries support. We urge you to upgrade GNU
16281 *** binutils to release 2.9.1 or newer. Another option is to modify
16282 *** your PATH or compiler configuration so that the native linker is
16283 *** used, and then restart.
16286 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16287 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16288 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16295 case `$LD -v 2>&1` in
16296 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16301 *** reliably create shared libraries on SCO systems. Therefore, libtool
16302 *** is disabling shared libraries support. We urge you to upgrade GNU
16303 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16304 *** your PATH or compiler configuration so that the native linker is
16305 *** used, and then restart.
16310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16312 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16313 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16322 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324 hardcode_direct_GCJ=yes
16325 hardcode_shlibpath_var_GCJ=no
16329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16330 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16338 if test "$ld_shlibs_GCJ" = no; then
16340 hardcode_libdir_flag_spec_GCJ=
16341 export_dynamic_flag_spec_GCJ=
16342 whole_archive_flag_spec_GCJ=
16345 # PORTME fill in a description of your system's linker (not GNU ld)
16348 allow_undefined_flag_GCJ=unsupported
16349 always_export_symbols_GCJ=yes
16350 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'
16351 # Note: this linker hardcodes the directories in LIBPATH if there
16352 # are no directories specified by -L.
16353 hardcode_minus_L_GCJ=yes
16354 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16355 # Neither direct hardcoding nor static linking is supported with a
16357 hardcode_direct_GCJ=unsupported
16362 if test "$host_cpu" = ia64; then
16363 # On IA64, the linker does run time linking by default, so we don't
16364 # have to do anything special.
16365 aix_use_runtimelinking=no
16366 exp_sym_flag='-Bexport'
16369 # If we're using GNU nm, then we don't want the "-C" option.
16370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16371 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16372 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'
16374 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'
16376 aix_use_runtimelinking=no
16378 # Test if we are trying to use run time linking or normal
16379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16380 # need to do runtime linking.
16381 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16382 for ld_flag in $LDFLAGS; do
16383 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16384 aix_use_runtimelinking=yes
16391 exp_sym_flag='-bexport'
16392 no_entry_flag='-bnoentry'
16395 # When large executables or shared objects are built, AIX ld can
16396 # have problems creating the table of contents. If linking a library
16397 # or program results in "error TOC overflow" add -mminimal-toc to
16398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16401 archive_cmds_GCJ=''
16402 hardcode_direct_GCJ=yes
16403 hardcode_libdir_separator_GCJ=':'
16404 link_all_deplibs_GCJ=yes
16406 if test "$GCC" = yes; then
16407 case $host_os in aix4.[012]|aix4.[012].*)
16408 # We only want to do this on AIX 4.2 and lower, the check
16409 # below for broken collect2 doesn't work under 4.3+
16410 collect2name=`${CC} -print-prog-name=collect2`
16411 if test -f "$collect2name" && \
16412 strings "$collect2name" | grep resolve_lib_name >/dev/null
16414 # We have reworked collect2
16417 # We have old collect2
16418 hardcode_direct_GCJ=unsupported
16419 # It fails to find uninstalled libraries when the uninstalled
16420 # path is not listed in the libpath. Setting hardcode_minus_L
16421 # to unsupported forces relinking
16422 hardcode_minus_L_GCJ=yes
16423 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16424 hardcode_libdir_separator_GCJ=
16428 shared_flag='-shared'
16429 if test "$aix_use_runtimelinking" = yes; then
16430 shared_flag="$shared_flag "'${wl}-G'
16434 if test "$host_cpu" = ia64; then
16435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16436 # chokes on -Wl,-G. The following line is correct:
16439 if test "$aix_use_runtimelinking" = yes; then
16440 shared_flag='${wl}-G'
16442 shared_flag='${wl}-bM:SRE'
16447 # It seems that -bexpall does not export symbols beginning with
16448 # underscore (_), so it is better to generate a list of symbols to export.
16449 always_export_symbols_GCJ=yes
16450 if test "$aix_use_runtimelinking" = yes; then
16451 # Warning - without using the other runtime loading flags (-brtl),
16452 # -berok will link without error, but may produce a broken library.
16453 allow_undefined_flag_GCJ='-berok'
16454 # Determine the default libpath from the value encoded in an empty executable.
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16466 if ac_fn_c_try_link "$LINENO"; then :
16468 lt_aix_libpath_sed='
16469 /Import File Strings/,/^$/ {
16475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16476 # Check for a 64-bit object if we didn't find anything.
16477 if test -z "$aix_libpath"; then
16478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16485 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486 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"
16488 if test "$host_cpu" = ia64; then
16489 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16490 allow_undefined_flag_GCJ="-z nodefs"
16491 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"
16493 # Determine the default libpath from the value encoded in an empty executable.
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16505 if ac_fn_c_try_link "$LINENO"; then :
16507 lt_aix_libpath_sed='
16508 /Import File Strings/,/^$/ {
16514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16515 # Check for a 64-bit object if we didn't find anything.
16516 if test -z "$aix_libpath"; then
16517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16520 rm -f core conftest.err conftest.$ac_objext \
16521 conftest$ac_exeext conftest.$ac_ext
16522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16524 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16525 # Warning - without using the other run time loading flags,
16526 # -berok will link without error, but may produce a broken library.
16527 no_undefined_flag_GCJ=' ${wl}-bernotok'
16528 allow_undefined_flag_GCJ=' ${wl}-berok'
16529 # Exported symbols can be pulled into shared objects from archives
16530 whole_archive_flag_spec_GCJ='$convenience'
16531 archive_cmds_need_lc_GCJ=yes
16532 # This is similar to how AIX traditionally builds its shared libraries.
16533 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'
16539 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)'
16540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16541 hardcode_minus_L_GCJ=yes
16542 # see comment about different semantics on the GNU ld section
16547 export_dynamic_flag_spec_GCJ=-rdynamic
16550 cygwin* | mingw* | pw32*)
16551 # When not using gcc, we currently assume that we are using
16552 # Microsoft Visual C++.
16553 # hardcode_libdir_flag_spec is actually meaningless, as there is
16554 # no search path for DLLs.
16555 hardcode_libdir_flag_spec_GCJ=' '
16556 allow_undefined_flag_GCJ=unsupported
16557 # Tell ltmain to make .lib files, not .a files.
16559 # Tell ltmain to make .dll files, not .so files.
16561 # FIXME: Setting linknames here is a bad hack.
16562 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16563 # The linker will automatically build a .lib file if we build a DLL.
16564 old_archive_From_new_cmds_GCJ='true'
16565 # FIXME: Should let the user specify the lib program.
16566 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16567 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16568 enable_shared_with_static_runtimes_GCJ=yes
16571 darwin* | rhapsody*)
16573 rhapsody* | darwin1.[012])
16574 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16577 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16578 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16580 case ${MACOSX_DEPLOYMENT_TARGET} in
16582 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16585 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16591 archive_cmds_need_lc_GCJ=no
16592 hardcode_direct_GCJ=no
16593 hardcode_automatic_GCJ=yes
16594 hardcode_shlibpath_var_GCJ=unsupported
16595 whole_archive_flag_spec_GCJ=''
16596 link_all_deplibs_GCJ=yes
16597 if test "$GCC" = yes ; then
16598 output_verbose_link_cmd='echo'
16599 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}"
16600 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16601 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}"
16602 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}"
16604 case $cc_basename in
16606 output_verbose_link_cmd='echo'
16607 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16608 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16609 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16610 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}'
16611 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}'
16621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623 hardcode_shlibpath_var_GCJ=no
16630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16631 # support. Future versions do this automatically, but an explicit c++rt0.o
16632 # does not break anything, and helps significantly (at the cost of a little
16635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16636 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16637 hardcode_direct_GCJ=yes
16638 hardcode_shlibpath_var_GCJ=no
16641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_direct_GCJ=yes
16645 hardcode_minus_L_GCJ=yes
16646 hardcode_shlibpath_var_GCJ=no
16649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16650 freebsd* | dragonfly*)
16651 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16652 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16653 hardcode_direct_GCJ=yes
16654 hardcode_shlibpath_var_GCJ=no
16658 if test "$GCC" = yes; then
16659 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'
16661 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'
16663 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16664 hardcode_libdir_separator_GCJ=:
16665 hardcode_direct_GCJ=yes
16667 # hardcode_minus_L: Not really in the search PATH,
16668 # but as the default location of the library.
16669 hardcode_minus_L_GCJ=yes
16670 export_dynamic_flag_spec_GCJ='${wl}-E'
16674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16675 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16677 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16679 if test "$with_gnu_ld" = no; then
16680 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16681 hardcode_libdir_separator_GCJ=:
16683 hardcode_direct_GCJ=yes
16684 export_dynamic_flag_spec_GCJ='${wl}-E'
16686 # hardcode_minus_L: Not really in the search PATH,
16687 # but as the default location of the library.
16688 hardcode_minus_L_GCJ=yes
16693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16696 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16699 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16702 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16708 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16714 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16718 if test "$with_gnu_ld" = no; then
16719 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16720 hardcode_libdir_separator_GCJ=:
16724 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16725 hardcode_direct_GCJ=no
16726 hardcode_shlibpath_var_GCJ=no
16729 hardcode_direct_GCJ=yes
16730 export_dynamic_flag_spec_GCJ='${wl}-E'
16732 # hardcode_minus_L: Not really in the search PATH,
16733 # but as the default location of the library.
16734 hardcode_minus_L_GCJ=yes
16740 irix5* | irix6* | nonstopux*)
16741 if test "$GCC" = yes; then
16742 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'
16744 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'
16745 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16748 hardcode_libdir_separator_GCJ=:
16749 link_all_deplibs_GCJ=yes
16753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16754 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16756 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16758 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16759 hardcode_direct_GCJ=yes
16760 hardcode_shlibpath_var_GCJ=no
16764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16765 hardcode_direct_GCJ=yes
16766 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16767 hardcode_libdir_separator_GCJ=:
16768 hardcode_shlibpath_var_GCJ=no
16772 if test -f /usr/libexec/ld.so; then
16773 hardcode_direct_GCJ=yes
16774 hardcode_shlibpath_var_GCJ=no
16775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16776 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16778 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16779 export_dynamic_flag_spec_GCJ='${wl}-E'
16782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16783 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16787 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16788 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16799 hardcode_minus_L_GCJ=yes
16800 allow_undefined_flag_GCJ=unsupported
16801 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'
16802 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16806 if test "$GCC" = yes; then
16807 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16808 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'
16810 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16811 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'
16813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16814 hardcode_libdir_separator_GCJ=:
16817 osf4* | osf5*) # as osf3* with the addition of -msym flag
16818 if test "$GCC" = yes; then
16819 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16820 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'
16821 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16823 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16824 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'
16825 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~
16826 $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'
16828 # Both c and cxx compiler support -rpath directly
16829 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16831 hardcode_libdir_separator_GCJ=:
16835 no_undefined_flag_GCJ=' -z text'
16836 if test "$GCC" = yes; then
16838 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16839 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16840 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16843 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16844 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16845 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16847 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16848 hardcode_shlibpath_var_GCJ=no
16850 solaris2.[0-5] | solaris2.[0-5].*) ;;
16852 # The compiler driver will combine and reorder linker options,
16853 # but understands `-z linker_flag'. GCC discards it without `$wl',
16854 # but is careful enough not to reorder.
16855 # Supported since Solaris 2.6 (maybe 2.5.1?)
16856 if test "$GCC" = yes; then
16857 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16859 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16863 link_all_deplibs_GCJ=yes
16867 if test "x$host_vendor" = xsequent; then
16868 # Use $CC to link under sequent, because it throws in some extra .o
16869 # files that make .init and .fini sections work.
16870 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16872 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16875 hardcode_direct_GCJ=yes
16876 hardcode_minus_L_GCJ=yes
16877 hardcode_shlibpath_var_GCJ=no
16881 case $host_vendor in
16883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_direct_GCJ=yes # is this really true???
16887 ## LD is ld it makes a PLAMLIB
16888 ## CC just makes a GrossModule.
16889 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16890 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16891 hardcode_direct_GCJ=no
16894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16898 runpath_var='LD_RUN_PATH'
16899 hardcode_shlibpath_var_GCJ=no
16903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904 hardcode_shlibpath_var_GCJ=no
16905 export_dynamic_flag_spec_GCJ='-Bexport'
16909 if test -d /usr/nec; then
16910 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_shlibpath_var_GCJ=no
16912 runpath_var=LD_RUN_PATH
16913 hardcode_runpath_var=yes
16918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16919 no_undefined_flag_GCJ='${wl}-z,text'
16920 archive_cmds_need_lc_GCJ=no
16921 hardcode_shlibpath_var_GCJ=no
16922 runpath_var='LD_RUN_PATH'
16924 if test "$GCC" = yes; then
16925 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 sysv5* | sco3.2v5* | sco5v6*)
16934 # Note: We can NOT use -z defs as we might desire, because we do not
16935 # link with -lc, and that would cause any symbols used from libc to
16936 # always be unresolved, which means just about no library would
16937 # ever link correctly. If we're not using GNU ld we use -z text
16938 # though, which does catch some bad symbols but isn't as heavy-handed
16940 no_undefined_flag_GCJ='${wl}-z,text'
16941 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16942 archive_cmds_need_lc_GCJ=no
16943 hardcode_shlibpath_var_GCJ=no
16944 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16945 hardcode_libdir_separator_GCJ=':'
16946 link_all_deplibs_GCJ=yes
16947 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16948 runpath_var='LD_RUN_PATH'
16950 if test "$GCC" = yes; then
16951 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16954 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16962 hardcode_shlibpath_var_GCJ=no
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16972 $as_echo "$ld_shlibs_GCJ" >&6; }
16973 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16976 # Do we need to explicitly link libc?
16978 case "x$archive_cmds_need_lc_GCJ" in
16980 # Assume -lc should be added
16981 archive_cmds_need_lc_GCJ=yes
16983 if test "$enable_shared" = yes && test "$GCC" = yes; then
16984 case $archive_cmds_GCJ in
16986 # FIXME: we may have to deal with multi-command sequences.
16989 # Test whether the compiler implicitly links with -lc since on some
16990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16991 # to ld, don't add -lc before -lgcc.
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16993 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16998 (eval $ac_compile) 2>&5
17000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001 test $ac_status = 0; } 2>conftest.err; then
17004 libobjs=conftest.$ac_objext
17006 wl=$lt_prog_compiler_wl_GCJ
17007 pic_flag=$lt_prog_compiler_pic_GCJ
17013 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17014 allow_undefined_flag_GCJ=
17015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17016 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17019 test $ac_status = 0; }
17021 archive_cmds_need_lc_GCJ=no
17023 archive_cmds_need_lc_GCJ=yes
17025 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17027 cat conftest.err 1>&5
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17031 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17040 library_names_spec=
17041 libname_spec='lib$name'
17045 postuninstall_cmds=
17049 shlibpath_overrides_runpath=unknown
17051 dynamic_linker="$host_os ld.so"
17052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17054 need_lib_prefix=unknown
17055 hardcode_into_libs=no
17057 # when you set need_version to no, make sure it does not cause -set_version
17058 # flags to be left without arguments
17059 need_version=unknown
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17065 shlibpath_var=LIBPATH
17067 # AIX 3 has no versioning support, so we append a major version to the name.
17068 soname_spec='${libname}${release}${shared_ext}$major'
17075 hardcode_into_libs=yes
17076 if test "$host_cpu" = ia64; then
17077 # AIX 5 supports IA64
17078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17079 shlibpath_var=LD_LIBRARY_PATH
17081 # With GCC up to 2.95.x, collect2 would create an import file
17082 # for dependence libraries. The import file would start with
17083 # the line `#! .'. This would cause the generated library to
17084 # depend on `.', always an invalid library. This was fixed in
17085 # development snapshots of GCC prior to 3.0.
17087 aix4 | aix4.[01] | aix4.[01].*)
17088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17090 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17093 can_build_shared=no
17097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17098 # soname into executable. Probably we can add versioning support to
17099 # collect2, so additional links can be useful in future.
17100 if test "$aix_use_runtimelinking" = yes; then
17101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17102 # instead of lib<name>.a to let people know that these are not
17103 # typical AIX shared libraries.
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106 # We preserve .a as extension for shared libraries through AIX4.2
17107 # and later when we are not doing run time linking.
17108 library_names_spec='${libname}${release}.a $libname.a'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17111 shlibpath_var=LIBPATH
17116 library_names_spec='$libname.ixlibrary $libname.a'
17117 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17118 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'
17122 library_names_spec='${libname}${shared_ext}'
17123 dynamic_linker="$host_os ld.so"
17124 shlibpath_var=LIBRARY_PATH
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17136 # the default ld.so.conf also contains /usr/contrib/lib and
17137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17138 # libtool to hard-code these into programs
17141 cygwin* | mingw* | pw32*)
17142 version_type=windows
17147 case $GCC,$host_os in
17148 yes,cygwin* | yes,mingw* | yes,pw32*)
17149 library_names_spec='$libname.dll.a'
17150 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151 postinstall_cmds='base_file=`basename \${file}`~
17152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17153 dldir=$destdir/`dirname \$dlpath`~
17154 test -d \$dldir || mkdir -p \$dldir~
17155 $install_prog $dir/$dlname \$dldir/$dlname~
17156 chmod a+x \$dldir/$dlname'
17157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17158 dlpath=$dir/\$dldll~
17160 shlibpath_overrides_runpath=yes
17164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17166 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17169 # MinGW DLLs use traditional 'lib' prefix
17170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17173 # It is most probably a Windows format PATH printed by
17174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17175 # path with ; separators, and with drive letters. We can handle the
17176 # drive letters (cygwin fileutils understands them), so leave them,
17177 # especially as we might pass files found there to a mingw objdump,
17178 # which wouldn't understand a cygwinified path. Ahh.
17179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17185 # pw32 DLLs use 'pw' prefix rather than 'lib'
17186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17195 dynamic_linker='Win32 ld.exe'
17196 # FIXME: first we should search . and the directory the executable is in
17200 darwin* | rhapsody*)
17201 dynamic_linker="$host_os dyld"
17202 version_type=darwin
17205 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17206 soname_spec='${libname}${release}${major}$shared_ext'
17207 shlibpath_overrides_runpath=yes
17208 shlibpath_var=DYLD_LIBRARY_PATH
17209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 shlibpath_var=LD_LIBRARY_PATH
17227 freebsd* | dragonfly*)
17228 # DragonFly does not have aout. When/if they implement a new
17229 # versioning mechanism, adjust this.
17230 if test -x /usr/bin/objformat; then
17231 objformat=`/usr/bin/objformat`
17234 freebsd[123]*) objformat=aout ;;
17235 *) objformat=elf ;;
17238 version_type=freebsd-$objformat
17239 case $version_type in
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17250 shlibpath_var=LD_LIBRARY_PATH
17253 shlibpath_overrides_runpath=yes
17255 freebsd3.[01]* | freebsdelf3.[01]*)
17256 shlibpath_overrides_runpath=yes
17257 hardcode_into_libs=yes
17259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17261 shlibpath_overrides_runpath=no
17262 hardcode_into_libs=yes
17264 *) # from 4.6 on, and DragonFly
17265 shlibpath_overrides_runpath=yes
17266 hardcode_into_libs=yes
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 hardcode_into_libs=yes
17281 hpux9* | hpux10* | hpux11*)
17282 # Give a soname corresponding to the major version so that dld.sl refuses to
17283 # link against other versions.
17290 hardcode_into_libs=yes
17291 dynamic_linker="$host_os dld.so"
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 if test "X$HPUX_IA64_MODE" = X32; then
17297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17305 hardcode_into_libs=yes
17306 dynamic_linker="$host_os dld.sl"
17307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17316 dynamic_linker="$host_os dld.sl"
17317 shlibpath_var=SHLIB_PATH
17318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17324 postinstall_cmds='chmod 555 $lib'
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath=no
17336 hardcode_into_libs=yes
17339 irix5* | irix6* | nonstopux*)
17341 nonstopux*) version_type=nonstopux ;;
17343 if test "$lt_cv_prog_gnu_ld" = yes; then
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17354 irix5* | nonstopux*)
17355 libsuff= shlibsuff=
17358 case $LD in # libtool.m4 will add one of these switches to LD
17359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17360 libsuff= shlibsuff= libmagic=32-bit;;
17361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17362 libsuff=32 shlibsuff=N32 libmagic=N32;;
17363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17365 *) libsuff= shlibsuff= libmagic=never-match;;
17369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17370 shlibpath_overrides_runpath=no
17371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17373 hardcode_into_libs=yes
17376 # No shared lib support for Linux oldld, aout, or coff.
17377 linux*oldld* | linux*aout* | linux*coff*)
17381 # This must be Linux ELF.
17382 linux* | k*bsd*-gnu)
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=no
17391 # This implies no fast_install, which is unacceptable.
17392 # Some rework will be needed to allow for fast_install
17393 # before this can be enabled.
17394 hardcode_into_libs=yes
17396 # Append ld.so.conf contents to the search path
17397 if test -f /etc/ld.so.conf; then
17398 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' ' '`
17399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17402 # We used to test for /lib/ld.so.1 and disable shared libraries on
17403 # powerpc, because MkLinux only supported shared libraries with the
17404 # GNU dynamic linker. Since this was broken with cross compilers,
17405 # most powerpc-linux boxes support dynamic linking these days and
17406 # people can always --disable-shared, the test was removed, and we
17407 # assume the GNU/Linux dynamic linker is in use.
17408 dynamic_linker='GNU/Linux ld.so'
17415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418 dynamic_linker='NetBSD (a.out) ld.so'
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 dynamic_linker='NetBSD ld.elf_so'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 shlibpath_overrides_runpath=yes
17426 hardcode_into_libs=yes
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 shlibpath_overrides_runpath=yes
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=yes
17448 sys_lib_dlsearch_path_spec="/usr/lib"
17450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17453 *) need_version=no ;;
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17457 shlibpath_var=LD_LIBRARY_PATH
17458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17460 openbsd2.[89] | openbsd2.[89].*)
17461 shlibpath_overrides_runpath=no
17464 shlibpath_overrides_runpath=yes
17468 shlibpath_overrides_runpath=yes
17473 libname_spec='$name'
17476 library_names_spec='$libname${shared_ext} $libname.a'
17477 dynamic_linker='OS/2 ld.exe'
17478 shlibpath_var=LIBPATH
17481 osf3* | osf4* | osf5*)
17485 soname_spec='${libname}${release}${shared_ext}$major'
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 shlibpath_var=LD_LIBRARY_PATH
17488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath=yes
17504 hardcode_into_libs=yes
17505 # ldd complains unless libraries are executable
17506 postinstall_cmds='chmod +x $lib'
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 shlibpath_overrides_runpath=yes
17515 if test "$with_gnu_ld" = yes; then
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 case $host_vendor in
17528 shlibpath_overrides_runpath=no
17530 export_dynamic_flag_spec='${wl}-Blargedynsym'
17531 runpath_var=LD_RUN_PATH
17539 shlibpath_overrides_runpath=no
17540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17546 if test -d /usr/nec ;then
17548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17549 soname_spec='$libname${shared_ext}.$major'
17550 shlibpath_var=LD_LIBRARY_PATH
17554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17555 version_type=freebsd-elf
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 hardcode_into_libs=yes
17562 if test "$with_gnu_ld" = yes; then
17563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17564 shlibpath_overrides_runpath=no
17566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17567 shlibpath_overrides_runpath=yes
17570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17574 sys_lib_dlsearch_path_spec='/usr/lib'
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17589 $as_echo "$dynamic_linker" >&6; }
17590 test "$dynamic_linker" = no && can_build_shared=no
17592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
17593 $as_echo_n "(cached) " >&6
17595 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
17600 $as_echo_n "(cached) " >&6
17602 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17608 if test "$GCC" = yes; then
17609 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17613 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17614 hardcode_action_GCJ=
17615 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17616 test -n "$runpath_var_GCJ" || \
17617 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17619 # We can hardcode non-existant directories.
17620 if test "$hardcode_direct_GCJ" != no &&
17621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17622 # have to relink, otherwise we might link with an installed library
17623 # when we should be linking with a yet-to-be-installed one
17624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17625 test "$hardcode_minus_L_GCJ" != no; then
17626 # Linking always hardcodes the temporary library directory.
17627 hardcode_action_GCJ=relink
17629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17630 hardcode_action_GCJ=immediate
17633 # We cannot hardcode anything, or else we can only hardcode existing
17635 hardcode_action_GCJ=unsupported
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17638 $as_echo "$hardcode_action_GCJ" >&6; }
17640 if test "$hardcode_action_GCJ" = relink; then
17641 # Fast installation is not supported
17642 enable_fast_install=no
17643 elif test "$shlibpath_overrides_runpath" = yes ||
17644 test "$enable_shared" = no; then
17645 # Fast installation is not necessary
17646 enable_fast_install=needless
17650 # The else clause should only fire when bootstrapping the
17651 # libtool distribution, otherwise you forgot to ship ltmain.sh
17652 # with your package, and you will get complaints that there are
17653 # no rules to generate ltmain.sh.
17654 if test -f "$ltmain"; then
17655 # See if we are running on zsh, and set the options which allow our commands through
17656 # without removal of \ escapes.
17657 if test -n "${ZSH_VERSION+set}" ; then
17658 setopt NO_GLOB_SUBST
17660 # Now quote all the things that may contain metacharacters while being
17661 # careful not to overquote the AC_SUBSTed values. We take copies of the
17662 # variables and quote the copies for generation of the libtool script.
17663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17667 deplibs_check_method reload_flag reload_cmds need_locks \
17668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17669 lt_cv_sys_global_symbol_to_c_name_address \
17670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17671 old_postinstall_cmds old_postuninstall_cmds \
17675 lt_prog_compiler_wl_GCJ \
17676 lt_prog_compiler_pic_GCJ \
17677 lt_prog_compiler_static_GCJ \
17678 lt_prog_compiler_no_builtin_flag_GCJ \
17679 export_dynamic_flag_spec_GCJ \
17680 thread_safe_flag_spec_GCJ \
17681 whole_archive_flag_spec_GCJ \
17682 enable_shared_with_static_runtimes_GCJ \
17683 old_archive_cmds_GCJ \
17684 old_archive_from_new_cmds_GCJ \
17685 predep_objects_GCJ \
17686 postdep_objects_GCJ \
17689 compiler_lib_search_path_GCJ \
17690 compiler_lib_search_dirs_GCJ \
17692 archive_expsym_cmds_GCJ \
17693 postinstall_cmds_GCJ \
17694 postuninstall_cmds_GCJ \
17695 old_archive_from_expsyms_cmds_GCJ \
17696 allow_undefined_flag_GCJ \
17697 no_undefined_flag_GCJ \
17698 export_symbols_cmds_GCJ \
17699 hardcode_libdir_flag_spec_GCJ \
17700 hardcode_libdir_flag_spec_ld_GCJ \
17701 hardcode_libdir_separator_GCJ \
17702 hardcode_automatic_GCJ \
17704 module_expsym_cmds_GCJ \
17705 lt_cv_prog_compiler_c_o_GCJ \
17706 fix_srcfile_path_GCJ \
17707 exclude_expsyms_GCJ \
17708 include_expsyms_GCJ; do
17711 old_archive_cmds_GCJ | \
17712 old_archive_from_new_cmds_GCJ | \
17713 archive_cmds_GCJ | \
17714 archive_expsym_cmds_GCJ | \
17715 module_cmds_GCJ | \
17716 module_expsym_cmds_GCJ | \
17717 old_archive_from_expsyms_cmds_GCJ | \
17718 export_symbols_cmds_GCJ | \
17719 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17720 postinstall_cmds | postuninstall_cmds | \
17721 old_postinstall_cmds | old_postuninstall_cmds | \
17722 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17723 # Double-quote double-evaled strings.
17724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17733 *'\$0 --fallback-echo"')
17734 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17740 cat <<__EOF__ >> "$cfgfile"
17741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17745 # Shell to use when invoking shell scripts.
17748 # Whether or not to build shared libraries.
17749 build_libtool_libs=$enable_shared
17751 # Whether or not to build static libraries.
17752 build_old_libs=$enable_static
17754 # Whether or not to add -lc for building shared libraries.
17755 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17757 # Whether or not to disallow shared libs when runtime libs are static
17758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17760 # Whether or not to optimize for fast installation.
17761 fast_install=$enable_fast_install
17764 host_alias=$host_alias
17768 # The build system.
17769 build_alias=$build_alias
17773 # An echo program that does not interpret backslashes.
17778 AR_FLAGS=$lt_AR_FLAGS
17783 # LTCC compiler flags.
17784 LTCFLAGS=$lt_LTCFLAGS
17786 # A language-specific compiler.
17787 CC=$lt_compiler_GCJ
17789 # Is the compiler the GNU C compiler?
17795 # The linker used to build libraries.
17798 # Whether we need hard or soft links.
17801 # A BSD-compatible nm program.
17804 # A symbol stripping program
17807 # Used to examine libraries when file_magic_cmd begins "file"
17808 MAGIC_CMD=$MAGIC_CMD
17810 # Used on cygwin: DLL creation program.
17813 # Used on cygwin: object dumper.
17816 # Used on cygwin: assembler.
17819 # The name of the directory that contains temporary libtool files.
17822 # How to create reloadable object files.
17823 reload_flag=$lt_reload_flag
17824 reload_cmds=$lt_reload_cmds
17826 # How to pass a linker flag through the compiler.
17827 wl=$lt_lt_prog_compiler_wl_GCJ
17829 # Object file suffix (normally "o").
17830 objext="$ac_objext"
17832 # Old archive suffix (normally "a").
17835 # Shared library suffix (normally ".so").
17836 shrext_cmds='$shrext_cmds'
17838 # Executable file suffix (normally "").
17841 # Additional compiler flags for building library objects.
17842 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17845 # What is the maximum length of a command?
17846 max_cmd_len=$lt_cv_sys_max_cmd_len
17848 # Does compiler simultaneously support -c and -o options?
17849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17851 # Must we lock files when doing compilation?
17852 need_locks=$lt_need_locks
17854 # Do we need the lib prefix for modules?
17855 need_lib_prefix=$need_lib_prefix
17857 # Do we need a version for libraries?
17858 need_version=$need_version
17860 # Whether dlopen is supported.
17861 dlopen_support=$enable_dlopen
17863 # Whether dlopen of programs is supported.
17864 dlopen_self=$enable_dlopen_self
17866 # Whether dlopen of statically linked programs is supported.
17867 dlopen_self_static=$enable_dlopen_self_static
17869 # Compiler flag to prevent dynamic linking.
17870 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17872 # Compiler flag to turn off builtin functions.
17873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17875 # Compiler flag to allow reflexive dlopens.
17876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17878 # Compiler flag to generate shared objects directly from archives.
17879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17881 # Compiler flag to generate thread-safe objects.
17882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17884 # Library versioning type.
17885 version_type=$version_type
17887 # Format of library name prefix.
17888 libname_spec=$lt_libname_spec
17890 # List of archive names. First name is the real one, the rest are links.
17891 # The last name is the one that the linker finds with -lNAME.
17892 library_names_spec=$lt_library_names_spec
17894 # The coded name of the library, if different from the real name.
17895 soname_spec=$lt_soname_spec
17897 # Commands used to build and install an old-style archive.
17899 old_archive_cmds=$lt_old_archive_cmds_GCJ
17900 old_postinstall_cmds=$lt_old_postinstall_cmds
17901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17903 # Create an old-style archive from a shared archive.
17904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17906 # Create a temporary old-style archive to link instead of a shared archive.
17907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17909 # Commands used to build and install a shared archive.
17910 archive_cmds=$lt_archive_cmds_GCJ
17911 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17912 postinstall_cmds=$lt_postinstall_cmds
17913 postuninstall_cmds=$lt_postuninstall_cmds
17915 # Commands used to build a loadable module (assumed same as above if empty)
17916 module_cmds=$lt_module_cmds_GCJ
17917 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17919 # Commands to strip libraries.
17920 old_striplib=$lt_old_striplib
17921 striplib=$lt_striplib
17923 # Dependencies to place before the objects being linked to create a
17925 predep_objects=$lt_predep_objects_GCJ
17927 # Dependencies to place after the objects being linked to create a
17929 postdep_objects=$lt_postdep_objects_GCJ
17931 # Dependencies to place before the objects being linked to create a
17933 predeps=$lt_predeps_GCJ
17935 # Dependencies to place after the objects being linked to create a
17937 postdeps=$lt_postdeps_GCJ
17939 # The directories searched by this compiler when creating a shared
17941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
17943 # The library search path used internally by the compiler when linking
17944 # a shared library.
17945 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17947 # Method to check whether dependent libraries are shared objects.
17948 deplibs_check_method=$lt_deplibs_check_method
17950 # Command to use when deplibs_check_method == file_magic.
17951 file_magic_cmd=$lt_file_magic_cmd
17953 # Flag that allows shared libraries with undefined symbols to be built.
17954 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17956 # Flag that forces no undefined symbols.
17957 no_undefined_flag=$lt_no_undefined_flag_GCJ
17959 # Commands used to finish a libtool library installation in a directory.
17960 finish_cmds=$lt_finish_cmds
17962 # Same as above, but a single script fragment to be evaled but not shown.
17963 finish_eval=$lt_finish_eval
17965 # Take the output of nm and produce a listing of raw symbols and C names.
17966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17968 # Transform the output of nm in a proper C declaration
17969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17971 # Transform the output of nm in a C name address pair
17972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17974 # This is the shared library runtime path variable.
17975 runpath_var=$runpath_var
17977 # This is the shared library path variable.
17978 shlibpath_var=$shlibpath_var
17980 # Is shlibpath searched before the hard-coded library search path?
17981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17983 # How to hardcode a shared library path into an executable.
17984 hardcode_action=$hardcode_action_GCJ
17986 # Whether we should hardcode library paths into libraries.
17987 hardcode_into_libs=$hardcode_into_libs
17989 # Flag to hardcode \$libdir into a binary during linking.
17990 # This must work even if \$libdir does not exist.
17991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17993 # If ld is used when linking, flag to hardcode \$libdir into
17994 # a binary during linking. This must work even if \$libdir does
17996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17998 # Whether we need a single -rpath flag with a separated argument.
17999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18002 # resulting binary.
18003 hardcode_direct=$hardcode_direct_GCJ
18005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18006 # resulting binary.
18007 hardcode_minus_L=$hardcode_minus_L_GCJ
18009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18010 # the resulting binary.
18011 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18013 # Set to yes if building a shared library automatically hardcodes DIR into the library
18014 # and all subsequent libraries and executables linked against it.
18015 hardcode_automatic=$hardcode_automatic_GCJ
18017 # Variables whose values should be saved in libtool wrapper scripts and
18018 # restored at relink time.
18019 variables_saved_for_relink="$variables_saved_for_relink"
18021 # Whether libtool must link a program against all its dependency libraries.
18022 link_all_deplibs=$link_all_deplibs_GCJ
18024 # Compile-time system search path for libraries
18025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18027 # Run-time system search path for libraries
18028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18030 # Fix the shell variable \$srcfile for the compiler.
18031 fix_srcfile_path=$lt_fix_srcfile_path
18033 # Set to yes if exported symbols are required.
18034 always_export_symbols=$always_export_symbols_GCJ
18036 # The commands to list exported symbols.
18037 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18039 # The commands to extract the exported symbol list from a shared archive.
18040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18042 # Symbols that should not be listed in the preloaded symbols.
18043 exclude_expsyms=$lt_exclude_expsyms_GCJ
18045 # Symbols that must always be exported.
18046 include_expsyms=$lt_include_expsyms_GCJ
18048 # ### END LIBTOOL TAG CONFIG: $tagname
18054 # If there is no Makefile yet, we rely on a make rule to execute
18055 # `config.status --recheck' to rerun these tests and create the
18056 # libtool script then.
18057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18058 if test -f "$ltmain_in"; then
18059 test -f Makefile && make "$ltmain"
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18080 # Source file extension for RC test sources.
18083 # Object file extension for compiled RC test sources.
18087 # Code to be used in simple compile tests
18088 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18090 # Code to be used in simple link tests
18091 lt_simple_link_test_code="$lt_simple_compile_test_code"
18093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18095 # If no C compiler was specified, use CC.
18098 # If no C compiler flags were specified, use CFLAGS.
18099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18101 # Allow CC to be a program name with arguments.
18105 # save warnings/boilerplate of simple test code
18106 ac_outfile=conftest.$ac_objext
18107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18109 _lt_compiler_boilerplate=`cat conftest.err`
18112 ac_outfile=conftest.$ac_objext
18113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18115 _lt_linker_boilerplate=`cat conftest.err`
18119 # Allow CC to be a program name with arguments.
18124 for cc_temp in $compiler""; do
18126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18134 lt_cv_prog_compiler_c_o_RC=yes
18136 # The else clause should only fire when bootstrapping the
18137 # libtool distribution, otherwise you forgot to ship ltmain.sh
18138 # with your package, and you will get complaints that there are
18139 # no rules to generate ltmain.sh.
18140 if test -f "$ltmain"; then
18141 # See if we are running on zsh, and set the options which allow our commands through
18142 # without removal of \ escapes.
18143 if test -n "${ZSH_VERSION+set}" ; then
18144 setopt NO_GLOB_SUBST
18146 # Now quote all the things that may contain metacharacters while being
18147 # careful not to overquote the AC_SUBSTed values. We take copies of the
18148 # variables and quote the copies for generation of the libtool script.
18149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18153 deplibs_check_method reload_flag reload_cmds need_locks \
18154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18155 lt_cv_sys_global_symbol_to_c_name_address \
18156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18157 old_postinstall_cmds old_postuninstall_cmds \
18161 lt_prog_compiler_wl_RC \
18162 lt_prog_compiler_pic_RC \
18163 lt_prog_compiler_static_RC \
18164 lt_prog_compiler_no_builtin_flag_RC \
18165 export_dynamic_flag_spec_RC \
18166 thread_safe_flag_spec_RC \
18167 whole_archive_flag_spec_RC \
18168 enable_shared_with_static_runtimes_RC \
18169 old_archive_cmds_RC \
18170 old_archive_from_new_cmds_RC \
18171 predep_objects_RC \
18172 postdep_objects_RC \
18175 compiler_lib_search_path_RC \
18176 compiler_lib_search_dirs_RC \
18178 archive_expsym_cmds_RC \
18179 postinstall_cmds_RC \
18180 postuninstall_cmds_RC \
18181 old_archive_from_expsyms_cmds_RC \
18182 allow_undefined_flag_RC \
18183 no_undefined_flag_RC \
18184 export_symbols_cmds_RC \
18185 hardcode_libdir_flag_spec_RC \
18186 hardcode_libdir_flag_spec_ld_RC \
18187 hardcode_libdir_separator_RC \
18188 hardcode_automatic_RC \
18190 module_expsym_cmds_RC \
18191 lt_cv_prog_compiler_c_o_RC \
18192 fix_srcfile_path_RC \
18193 exclude_expsyms_RC \
18194 include_expsyms_RC; do
18197 old_archive_cmds_RC | \
18198 old_archive_from_new_cmds_RC | \
18199 archive_cmds_RC | \
18200 archive_expsym_cmds_RC | \
18202 module_expsym_cmds_RC | \
18203 old_archive_from_expsyms_cmds_RC | \
18204 export_symbols_cmds_RC | \
18205 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18206 postinstall_cmds | postuninstall_cmds | \
18207 old_postinstall_cmds | old_postuninstall_cmds | \
18208 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18209 # Double-quote double-evaled strings.
18210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18219 *'\$0 --fallback-echo"')
18220 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18226 cat <<__EOF__ >> "$cfgfile"
18227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18231 # Shell to use when invoking shell scripts.
18234 # Whether or not to build shared libraries.
18235 build_libtool_libs=$enable_shared
18237 # Whether or not to build static libraries.
18238 build_old_libs=$enable_static
18240 # Whether or not to add -lc for building shared libraries.
18241 build_libtool_need_lc=$archive_cmds_need_lc_RC
18243 # Whether or not to disallow shared libs when runtime libs are static
18244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18246 # Whether or not to optimize for fast installation.
18247 fast_install=$enable_fast_install
18250 host_alias=$host_alias
18254 # The build system.
18255 build_alias=$build_alias
18259 # An echo program that does not interpret backslashes.
18264 AR_FLAGS=$lt_AR_FLAGS
18269 # LTCC compiler flags.
18270 LTCFLAGS=$lt_LTCFLAGS
18272 # A language-specific compiler.
18275 # Is the compiler the GNU C compiler?
18281 # The linker used to build libraries.
18284 # Whether we need hard or soft links.
18287 # A BSD-compatible nm program.
18290 # A symbol stripping program
18293 # Used to examine libraries when file_magic_cmd begins "file"
18294 MAGIC_CMD=$MAGIC_CMD
18296 # Used on cygwin: DLL creation program.
18299 # Used on cygwin: object dumper.
18302 # Used on cygwin: assembler.
18305 # The name of the directory that contains temporary libtool files.
18308 # How to create reloadable object files.
18309 reload_flag=$lt_reload_flag
18310 reload_cmds=$lt_reload_cmds
18312 # How to pass a linker flag through the compiler.
18313 wl=$lt_lt_prog_compiler_wl_RC
18315 # Object file suffix (normally "o").
18316 objext="$ac_objext"
18318 # Old archive suffix (normally "a").
18321 # Shared library suffix (normally ".so").
18322 shrext_cmds='$shrext_cmds'
18324 # Executable file suffix (normally "").
18327 # Additional compiler flags for building library objects.
18328 pic_flag=$lt_lt_prog_compiler_pic_RC
18331 # What is the maximum length of a command?
18332 max_cmd_len=$lt_cv_sys_max_cmd_len
18334 # Does compiler simultaneously support -c and -o options?
18335 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18337 # Must we lock files when doing compilation?
18338 need_locks=$lt_need_locks
18340 # Do we need the lib prefix for modules?
18341 need_lib_prefix=$need_lib_prefix
18343 # Do we need a version for libraries?
18344 need_version=$need_version
18346 # Whether dlopen is supported.
18347 dlopen_support=$enable_dlopen
18349 # Whether dlopen of programs is supported.
18350 dlopen_self=$enable_dlopen_self
18352 # Whether dlopen of statically linked programs is supported.
18353 dlopen_self_static=$enable_dlopen_self_static
18355 # Compiler flag to prevent dynamic linking.
18356 link_static_flag=$lt_lt_prog_compiler_static_RC
18358 # Compiler flag to turn off builtin functions.
18359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18361 # Compiler flag to allow reflexive dlopens.
18362 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18364 # Compiler flag to generate shared objects directly from archives.
18365 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18367 # Compiler flag to generate thread-safe objects.
18368 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18370 # Library versioning type.
18371 version_type=$version_type
18373 # Format of library name prefix.
18374 libname_spec=$lt_libname_spec
18376 # List of archive names. First name is the real one, the rest are links.
18377 # The last name is the one that the linker finds with -lNAME.
18378 library_names_spec=$lt_library_names_spec
18380 # The coded name of the library, if different from the real name.
18381 soname_spec=$lt_soname_spec
18383 # Commands used to build and install an old-style archive.
18385 old_archive_cmds=$lt_old_archive_cmds_RC
18386 old_postinstall_cmds=$lt_old_postinstall_cmds
18387 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18389 # Create an old-style archive from a shared archive.
18390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18392 # Create a temporary old-style archive to link instead of a shared archive.
18393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18395 # Commands used to build and install a shared archive.
18396 archive_cmds=$lt_archive_cmds_RC
18397 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18398 postinstall_cmds=$lt_postinstall_cmds
18399 postuninstall_cmds=$lt_postuninstall_cmds
18401 # Commands used to build a loadable module (assumed same as above if empty)
18402 module_cmds=$lt_module_cmds_RC
18403 module_expsym_cmds=$lt_module_expsym_cmds_RC
18405 # Commands to strip libraries.
18406 old_striplib=$lt_old_striplib
18407 striplib=$lt_striplib
18409 # Dependencies to place before the objects being linked to create a
18411 predep_objects=$lt_predep_objects_RC
18413 # Dependencies to place after the objects being linked to create a
18415 postdep_objects=$lt_postdep_objects_RC
18417 # Dependencies to place before the objects being linked to create a
18419 predeps=$lt_predeps_RC
18421 # Dependencies to place after the objects being linked to create a
18423 postdeps=$lt_postdeps_RC
18425 # The directories searched by this compiler when creating a shared
18427 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18429 # The library search path used internally by the compiler when linking
18430 # a shared library.
18431 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18433 # Method to check whether dependent libraries are shared objects.
18434 deplibs_check_method=$lt_deplibs_check_method
18436 # Command to use when deplibs_check_method == file_magic.
18437 file_magic_cmd=$lt_file_magic_cmd
18439 # Flag that allows shared libraries with undefined symbols to be built.
18440 allow_undefined_flag=$lt_allow_undefined_flag_RC
18442 # Flag that forces no undefined symbols.
18443 no_undefined_flag=$lt_no_undefined_flag_RC
18445 # Commands used to finish a libtool library installation in a directory.
18446 finish_cmds=$lt_finish_cmds
18448 # Same as above, but a single script fragment to be evaled but not shown.
18449 finish_eval=$lt_finish_eval
18451 # Take the output of nm and produce a listing of raw symbols and C names.
18452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18454 # Transform the output of nm in a proper C declaration
18455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18457 # Transform the output of nm in a C name address pair
18458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18460 # This is the shared library runtime path variable.
18461 runpath_var=$runpath_var
18463 # This is the shared library path variable.
18464 shlibpath_var=$shlibpath_var
18466 # Is shlibpath searched before the hard-coded library search path?
18467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18469 # How to hardcode a shared library path into an executable.
18470 hardcode_action=$hardcode_action_RC
18472 # Whether we should hardcode library paths into libraries.
18473 hardcode_into_libs=$hardcode_into_libs
18475 # Flag to hardcode \$libdir into a binary during linking.
18476 # This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18479 # If ld is used when linking, flag to hardcode \$libdir into
18480 # a binary during linking. This must work even if \$libdir does
18482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18484 # Whether we need a single -rpath flag with a separated argument.
18485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488 # resulting binary.
18489 hardcode_direct=$hardcode_direct_RC
18491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_minus_L=$hardcode_minus_L_RC
18495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496 # the resulting binary.
18497 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18499 # Set to yes if building a shared library automatically hardcodes DIR into the library
18500 # and all subsequent libraries and executables linked against it.
18501 hardcode_automatic=$hardcode_automatic_RC
18503 # Variables whose values should be saved in libtool wrapper scripts and
18504 # restored at relink time.
18505 variables_saved_for_relink="$variables_saved_for_relink"
18507 # Whether libtool must link a program against all its dependency libraries.
18508 link_all_deplibs=$link_all_deplibs_RC
18510 # Compile-time system search path for libraries
18511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18513 # Run-time system search path for libraries
18514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18516 # Fix the shell variable \$srcfile for the compiler.
18517 fix_srcfile_path=$lt_fix_srcfile_path
18519 # Set to yes if exported symbols are required.
18520 always_export_symbols=$always_export_symbols_RC
18522 # The commands to list exported symbols.
18523 export_symbols_cmds=$lt_export_symbols_cmds_RC
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18528 # Symbols that should not be listed in the preloaded symbols.
18529 exclude_expsyms=$lt_exclude_expsyms_RC
18531 # Symbols that must always be exported.
18532 include_expsyms=$lt_include_expsyms_RC
18534 # ### END LIBTOOL TAG CONFIG: $tagname
18540 # If there is no Makefile yet, we rely on a make rule to execute
18541 # `config.status --recheck' to rerun these tests and create the
18542 # libtool script then.
18543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544 if test -f "$ltmain_in"; then
18545 test -f Makefile && make "$ltmain"
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18561 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18565 # Append the new tag name to the list of available tags.
18566 if test -n "$tagname" ; then
18567 available_tags="$available_tags $tagname"
18573 # Now substitute the updated list of available tags.
18574 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18575 mv "${ofile}T" "$ofile"
18579 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18585 # This can be used to rebuild libtool when needed
18586 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18588 # Always use our own libtool.
18589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18591 # Prevent multiple expansion
18612 # Find a good install program. We prefer a C program (faster),
18613 # so one script is as good as another. But avoid the broken or
18614 # incompatible versions:
18615 # SysV /etc/install, /usr/sbin/install
18616 # SunOS /usr/etc/install
18617 # IRIX /sbin/install
18619 # AmigaOS /C/install, which installs bootblocks on floppy discs
18620 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18621 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18622 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18623 # OS/2's system install, which has a completely different semantic
18624 # ./install, which can be erroneously created by make from ./install.sh.
18625 # Reject install programs that cannot install multiple files.
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18627 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18628 if test -z "$INSTALL"; then
18629 if test "${ac_cv_path_install+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18633 for as_dir in $PATH
18636 test -z "$as_dir" && as_dir=.
18637 # Account for people who put trailing slashes in PATH elements.
18638 case $as_dir/ in #((
18639 ./ | .// | /[cC]/* | \
18640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18644 # OSF1 and SCO ODT 3.0 have their own names for install.
18645 # Don't use installbsd from OSF since it installs stuff as root
18647 for ac_prog in ginstall scoinst install; do
18648 for ac_exec_ext in '' $ac_executable_extensions; do
18649 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18650 if test $ac_prog = install &&
18651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18652 # AIX install. It has an incompatible calling convention.
18654 elif test $ac_prog = install &&
18655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18656 # program-specific install script used by HP pwplus--don't use.
18659 rm -rf conftest.one conftest.two conftest.dir
18660 echo one > conftest.one
18661 echo two > conftest.two
18663 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18664 test -s conftest.one && test -s conftest.two &&
18665 test -s conftest.dir/conftest.one &&
18666 test -s conftest.dir/conftest.two
18668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18681 rm -rf conftest.one conftest.two conftest.dir
18684 if test "${ac_cv_path_install+set}" = set; then
18685 INSTALL=$ac_cv_path_install
18687 # As a last resort, use the slow shell script. Don't cache a
18688 # value for INSTALL within a source directory, because that will
18689 # break other packages using the cache if that directory is
18690 # removed, or if the value is a relative name.
18691 INSTALL=$ac_install_sh
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18695 $as_echo "$INSTALL" >&6; }
18697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18698 # It thinks the first close brace ends the variable substitution.
18699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18706 $as_echo_n "checking whether ln -s works... " >&6; }
18708 if test "$LN_S" = "ln -s"; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18710 $as_echo "yes" >&6; }
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18713 $as_echo "no, using $LN_S" >&6; }
18722 # Warn if the user specified libbind, which is now deprecated
18723 # Check whether --enable-libbind was given.
18724 if test "${enable_libbind+set}" = set; then :
18725 enableval=$enable_libbind;
18729 case "$enable_libbind" in
18731 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
18732 It is available from http://www.isc.org as a separate download." "$LINENO" 5
18739 # Make very sure that these are the first files processed by
18740 # config.status, since we use the processed output as the input for
18741 # AC_SUBST_FILE() substitutions in other files.
18743 ac_config_files="$ac_config_files make/rules make/includes"
18746 # Extract the first word of "ar", so it can be a program name with args.
18747 set dummy ar; ac_word=$2
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18749 $as_echo_n "checking for $ac_word... " >&6; }
18750 if test "${ac_cv_path_AR+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18755 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759 for as_dir in $PATH
18762 test -z "$as_dir" && as_dir=.
18763 for ac_exec_ext in '' $ac_executable_extensions; do
18764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18765 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18777 if test -n "$AR"; then
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18779 $as_echo "$AR" >&6; }
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782 $as_echo "no" >&6; }
18790 # The POSIX ln(1) program. Non-POSIX systems may substitute
18791 # "copy" or something.
18798 ar program not found. Please fix your PATH to include the directory in
18799 which ar resides, or set AR in the environment with the full path to ar.
18808 for ac_prog in etags emacs-etags
18810 # Extract the first word of "$ac_prog", so it can be a program name with args.
18811 set dummy $ac_prog; ac_word=$2
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18813 $as_echo_n "checking for $ac_word... " >&6; }
18814 if test "${ac_cv_path_ETAGS+set}" = set; then :
18815 $as_echo_n "(cached) " >&6
18819 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18826 test -z "$as_dir" && as_dir=.
18827 for ac_exec_ext in '' $ac_executable_extensions; do
18828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18829 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18840 ETAGS=$ac_cv_path_ETAGS
18841 if test -n "$ETAGS"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
18843 $as_echo "$ETAGS" >&6; }
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18850 test -n "$ETAGS" && break
18855 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
18856 # GNU emacs etags, and it requires the -L flag.
18858 if test "X$ETAGS" != "X"; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
18860 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
18861 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18863 $as_echo "yes" >&6; }
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18867 $as_echo "no" >&6; }
18873 # Perl is optional; it is used only by some of the system test scripts.
18874 # Note: the backtrace feature (see below) uses perl to build the symbol table,
18875 # but it still compiles without perl, in which case an empty table will be used.
18877 for ac_prog in perl5 perl
18879 # Extract the first word of "$ac_prog", so it can be a program name with args.
18880 set dummy $ac_prog; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if test "${ac_cv_path_PERL+set}" = set; then :
18884 $as_echo_n "(cached) " >&6
18888 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18909 PERL=$ac_cv_path_PERL
18910 if test -n "$PERL"; then
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18912 $as_echo "$PERL" >&6; }
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915 $as_echo "no" >&6; }
18919 test -n "$PERL" && break
18925 # Special processing of paths depending on whether --prefix,
18926 # --sysconfdir or --localstatedir arguments were given. What's
18927 # desired is some compatibility with the way previous versions
18928 # of BIND built; they defaulted to /usr/local for most parts of
18929 # the installation, but named.boot/named.conf was in /etc
18930 # and named.pid was in /var/run.
18932 # So ... if none of --prefix, --sysconfdir or --localstatedir are
18933 # specified, set things up that way. If --prefix is given, use
18934 # it for sysconfdir and localstatedir the way configure normally
18935 # would. To change the prefix for everything but leave named.conf
18936 # in /etc or named.pid in /var/run, then do this the usual configure way:
18937 # ./configure --prefix=/somewhere --sysconfdir=/etc
18938 # ./configure --prefix=/somewhere --localstatedir=/var
18940 # To put named.conf and named.pid in /usr/local with everything else,
18941 # set the prefix explicitly to /usr/local even though that's the default:
18942 # ./configure --prefix=/usr/local
18946 case "$sysconfdir" in
18951 case "$localstatedir" in
18960 # Make sure INSTALL uses an absolute path, else it will be wrong in all
18961 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
18962 # configure based on the location of the file where it is substituted.
18963 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
18964 # subdirectory of install-sh, This relative path will be wrong for all
18965 # directories more than one level down from install-sh.
18972 # Not all systems have dirname.
18975 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
18978 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
18979 test "$ac_dir" = "$ac_prog" && ac_dir=.
18980 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
18981 INSTALL="$ac_dir/$ac_prog"
18986 # On these hosts, we really want to use cc, not gcc, even if it is
18987 # found. The gcc that these systems have will not correctly handle
18990 # However, if the user sets $CC to be something, let that override
18993 if test "X$CC" = "X" ; then
18999 # Use Sun's cc if it is available, but watch
19000 # out for /usr/ucb/cc; it will never be the right
19003 # If setting CC here fails, the AC_PROG_CC done
19004 # below might still find gcc.
19005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
19006 for ac_dir in $PATH; do
19007 test -z "$ac_dir" && ac_dir=.
19013 if test -f "$ac_dir/cc"; then
19032 ac_cpp='$CPP $CPPFLAGS'
19033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19036 if test -n "$ac_tool_prefix"; then
19037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19040 $as_echo_n "checking for $ac_word... " >&6; }
19041 if test "${ac_cv_prog_CC+set}" = set; then :
19042 $as_echo_n "(cached) " >&6
19044 if test -n "$CC"; then
19045 ac_cv_prog_CC="$CC" # Let the user override the test.
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19051 test -z "$as_dir" && as_dir=.
19052 for ac_exec_ext in '' $ac_executable_extensions; do
19053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19065 if test -n "$CC"; then
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19067 $as_echo "$CC" >&6; }
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 $as_echo "no" >&6; }
19075 if test -z "$ac_cv_prog_CC"; then
19077 # Extract the first word of "gcc", so it can be a program name with args.
19078 set dummy gcc; ac_word=$2
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19080 $as_echo_n "checking for $ac_word... " >&6; }
19081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19082 $as_echo_n "(cached) " >&6
19084 if test -n "$ac_ct_CC"; then
19085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19091 test -z "$as_dir" && as_dir=.
19092 for ac_exec_ext in '' $ac_executable_extensions; do
19093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19094 ac_cv_prog_ac_ct_CC="gcc"
19095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19105 if test -n "$ac_ct_CC"; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19107 $as_echo "$ac_ct_CC" >&6; }
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110 $as_echo "no" >&6; }
19113 if test "x$ac_ct_CC" = x; then
19116 case $cross_compiling:$ac_tool_warned in
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19120 ac_tool_warned=yes ;;
19125 CC="$ac_cv_prog_CC"
19128 if test -z "$CC"; then
19129 if test -n "$ac_tool_prefix"; then
19130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19131 set dummy ${ac_tool_prefix}cc; ac_word=$2
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19133 $as_echo_n "checking for $ac_word... " >&6; }
19134 if test "${ac_cv_prog_CC+set}" = set; then :
19135 $as_echo_n "(cached) " >&6
19137 if test -n "$CC"; then
19138 ac_cv_prog_CC="$CC" # Let the user override the test.
19140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141 for as_dir in $PATH
19144 test -z "$as_dir" && as_dir=.
19145 for ac_exec_ext in '' $ac_executable_extensions; do
19146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19147 ac_cv_prog_CC="${ac_tool_prefix}cc"
19148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19158 if test -n "$CC"; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19160 $as_echo "$CC" >&6; }
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19163 $as_echo "no" >&6; }
19169 if test -z "$CC"; then
19170 # Extract the first word of "cc", so it can be a program name with args.
19171 set dummy cc; ac_word=$2
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19173 $as_echo_n "checking for $ac_word... " >&6; }
19174 if test "${ac_cv_prog_CC+set}" = set; then :
19175 $as_echo_n "(cached) " >&6
19177 if test -n "$CC"; then
19178 ac_cv_prog_CC="$CC" # Let the user override the test.
19180 ac_prog_rejected=no
19181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19185 test -z "$as_dir" && as_dir=.
19186 for ac_exec_ext in '' $ac_executable_extensions; do
19187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19189 ac_prog_rejected=yes
19193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19200 if test $ac_prog_rejected = yes; then
19201 # We found a bogon in the path, so make sure we never use it.
19202 set dummy $ac_cv_prog_CC
19204 if test $# != 0; then
19205 # We chose a different compiler from the bogus one.
19206 # However, it has the same basename, so the bogon will be chosen
19207 # first if we set CC to just the basename; use the full file name.
19209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19215 if test -n "$CC"; then
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19217 $as_echo "$CC" >&6; }
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220 $as_echo "no" >&6; }
19225 if test -z "$CC"; then
19226 if test -n "$ac_tool_prefix"; then
19227 for ac_prog in cl.exe
19229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19232 $as_echo_n "checking for $ac_word... " >&6; }
19233 if test "${ac_cv_prog_CC+set}" = set; then :
19234 $as_echo_n "(cached) " >&6
19236 if test -n "$CC"; then
19237 ac_cv_prog_CC="$CC" # Let the user override the test.
19239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19240 for as_dir in $PATH
19243 test -z "$as_dir" && as_dir=.
19244 for ac_exec_ext in '' $ac_executable_extensions; do
19245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19257 if test -n "$CC"; then
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19259 $as_echo "$CC" >&6; }
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19262 $as_echo "no" >&6; }
19266 test -n "$CC" && break
19269 if test -z "$CC"; then
19271 for ac_prog in cl.exe
19273 # Extract the first word of "$ac_prog", so it can be a program name with args.
19274 set dummy $ac_prog; ac_word=$2
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19276 $as_echo_n "checking for $ac_word... " >&6; }
19277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19278 $as_echo_n "(cached) " >&6
19280 if test -n "$ac_ct_CC"; then
19281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19284 for as_dir in $PATH
19287 test -z "$as_dir" && as_dir=.
19288 for ac_exec_ext in '' $ac_executable_extensions; do
19289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19290 ac_cv_prog_ac_ct_CC="$ac_prog"
19291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19301 if test -n "$ac_ct_CC"; then
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19303 $as_echo "$ac_ct_CC" >&6; }
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306 $as_echo "no" >&6; }
19310 test -n "$ac_ct_CC" && break
19313 if test "x$ac_ct_CC" = x; then
19316 case $cross_compiling:$ac_tool_warned in
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19320 ac_tool_warned=yes ;;
19329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19331 as_fn_error $? "no acceptable C compiler found in \$PATH
19332 See \`config.log' for more details" "$LINENO" 5; }
19334 # Provide some information about the compiler.
19335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19338 for ac_option in --version -v -V -qversion; do
19339 { { ac_try="$ac_compiler $ac_option >&5"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19345 $as_echo "$ac_try_echo"; } >&5
19346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19348 if test -s conftest.err; then
19350 ... rest of stderr output deleted ...
19351 10q' conftest.err >conftest.er1
19352 cat conftest.er1 >&5
19354 rm -f conftest.er1 conftest.err
19355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19356 test $ac_status = 0; }
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19361 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19378 if ac_fn_c_try_compile "$LINENO"; then :
19379 ac_compiler_gnu=yes
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19389 if test $ac_compiler_gnu = yes; then
19394 ac_test_CFLAGS=${CFLAGS+set}
19395 ac_save_CFLAGS=$CFLAGS
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19398 if test "${ac_cv_prog_cc_g+set}" = set; then :
19399 $as_echo_n "(cached) " >&6
19401 ac_save_c_werror_flag=$ac_c_werror_flag
19402 ac_c_werror_flag=yes
19405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h. */
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417 ac_cv_prog_cc_g=yes
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19431 if ac_fn_c_try_compile "$LINENO"; then :
19434 ac_c_werror_flag=$ac_save_c_werror_flag
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448 ac_cv_prog_cc_g=yes
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 ac_c_werror_flag=$ac_save_c_werror_flag
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19458 $as_echo "$ac_cv_prog_cc_g" >&6; }
19459 if test "$ac_test_CFLAGS" = set; then
19460 CFLAGS=$ac_save_CFLAGS
19461 elif test $ac_cv_prog_cc_g = yes; then
19462 if test "$GCC" = yes; then
19468 if test "$GCC" = yes; then
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19476 if test "${ac_cv_prog_cc_c89+set}" = set; then :
19477 $as_echo_n "(cached) " >&6
19479 ac_cv_prog_cc_c89=no
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 #include <stdarg.h>
19485 #include <sys/types.h>
19486 #include <sys/stat.h>
19487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19488 struct buf { int x; };
19489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19490 static char *e (p, i)
19496 static char *f (char * (*g) (char **, int), char **p, ...)
19501 s = g (p, va_arg (v,int));
19506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19507 function prototypes and stuff, but not '\xHH' hex character constants.
19508 These don't provoke an error unfortunately, instead are silently treated
19509 as 'x'. The following induces an error, until -std is added to get
19510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19511 array size at least. It's necessary to write '\x00'==0 to get something
19512 that's true only with -std. */
19513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19516 inside strings and character constants. */
19518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19520 int test (int i, double x);
19521 struct s1 {int (*f) (int a);};
19522 struct s2 {int (*f) (double a);};
19523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19537 CC="$ac_save_CC $ac_arg"
19538 if ac_fn_c_try_compile "$LINENO"; then :
19539 ac_cv_prog_cc_c89=$ac_arg
19541 rm -f core conftest.err conftest.$ac_objext
19542 test "x$ac_cv_prog_cc_c89" != "xno" && break
19544 rm -f conftest.$ac_ext
19549 case "x$ac_cv_prog_cc_c89" in
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19552 $as_echo "none needed" >&6; } ;;
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19555 $as_echo "unsupported" >&6; } ;;
19557 CC="$CC $ac_cv_prog_cc_c89"
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19561 if test "x$ac_cv_prog_cc_c89" != xno; then :
19566 ac_cpp='$CPP $CPPFLAGS'
19567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19573 # gcc's optimiser is broken at -02 for ultrasparc
19575 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
19584 # OS dependent CC flags
19587 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
19588 # -D_XOPEN_SOURCE_EXTENDED.
19590 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
19591 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
19593 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
19595 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
19596 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
19597 LIBS="-lxnet $LIBS"
19599 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
19601 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
19602 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
19604 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
19605 # parts of the IPv6 Advanced Socket API as a result. This is stupid
19606 # as it breaks how the two halves (Basic and Advanced) of the IPv6
19607 # Socket API were designed to be used but we have to live with it.
19608 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
19610 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
19611 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19616 $as_echo_n "checking for ANSI C header files... " >&6; }
19617 if test "${ac_cv_header_stdc+set}" = set; then :
19618 $as_echo_n "(cached) " >&6
19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h. */
19622 #include <stdlib.h>
19623 #include <stdarg.h>
19624 #include <string.h>
19635 if ac_fn_c_try_compile "$LINENO"; then :
19636 ac_cv_header_stdc=yes
19638 ac_cv_header_stdc=no
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642 if test $ac_cv_header_stdc = yes; then
19643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19646 #include <string.h>
19649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19650 $EGREP "memchr" >/dev/null 2>&1; then :
19653 ac_cv_header_stdc=no
19659 if test $ac_cv_header_stdc = yes; then
19660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663 #include <stdlib.h>
19666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19667 $EGREP "free" >/dev/null 2>&1; then :
19670 ac_cv_header_stdc=no
19676 if test $ac_cv_header_stdc = yes; then
19677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19678 if test "$cross_compiling" = yes; then :
19681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19684 #include <stdlib.h>
19685 #if ((' ' & 0x0FF) == 0x020)
19686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19689 # define ISLOWER(c) \
19690 (('a' <= (c) && (c) <= 'i') \
19691 || ('j' <= (c) && (c) <= 'r') \
19692 || ('s' <= (c) && (c) <= 'z'))
19693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19701 for (i = 0; i < 256; i++)
19702 if (XOR (islower (i), ISLOWER (i))
19703 || toupper (i) != TOUPPER (i))
19708 if ac_fn_c_try_run "$LINENO"; then :
19711 ac_cv_header_stdc=no
19713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19714 conftest.$ac_objext conftest.beam conftest.$ac_ext
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19720 $as_echo "$ac_cv_header_stdc" >&6; }
19721 if test $ac_cv_header_stdc = yes; then
19723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19728 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
19730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19732 #ifdef HAVE_SYS_PARAM_H
19733 # include <sys/param.h>
19737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19738 cat >>confdefs.h <<_ACEOF
19739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19748 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19749 if test "${ac_cv_c_const+set}" = set; then :
19750 $as_echo_n "(cached) " >&6
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19758 /* FIXME: Include the comments suggested by Paul. */
19759 #ifndef __cplusplus
19760 /* Ultrix mips cc rejects this. */
19761 typedef int charset[2];
19763 /* SunOS 4.1.1 cc rejects this. */
19764 char const *const *pcpcc;
19766 /* NEC SVR4.0.2 mips cc rejects this. */
19767 struct point {int x, y;};
19768 static struct point const zero = {0,0};
19769 /* AIX XL C 1.02.0.0 rejects this.
19770 It does not let you subtract one const X* pointer from another in
19771 an arm of an if-expression whose if-part is not a constant
19773 const char *g = "string";
19774 pcpcc = &g + (g ? g-g : 0);
19775 /* HPUX 7.0 cc rejects these. */
19777 ppc = (char**) pcpcc;
19778 pcpcc = (char const *const *) ppc;
19779 { /* SCO 3.2v4 cc rejects this. */
19781 char const *s = 0 ? (char *) 0 : (char const *) 0;
19786 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19787 int x[] = {25, 17};
19788 const int *foo = &x[0];
19791 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19792 typedef const int *iptr;
19796 { /* AIX XL C 1.02.0.0 rejects this saying
19797 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19798 struct s { int j; const int *ap[3]; };
19799 struct s *b; b->j = 5;
19801 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19802 const int foo = 10;
19803 if (!foo) return 0;
19805 return !cs[0] && !zero.x;
19812 if ac_fn_c_try_compile "$LINENO"; then :
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19820 $as_echo "$ac_cv_c_const" >&6; }
19821 if test $ac_cv_c_const = no; then
19823 $as_echo "#define const /**/" >>confdefs.h
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19828 $as_echo_n "checking for inline... " >&6; }
19829 if test "${ac_cv_c_inline+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19833 for ac_kw in inline __inline__ __inline; do
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19836 #ifndef __cplusplus
19838 static $ac_kw foo_t static_foo () {return 0; }
19839 $ac_kw foo_t foo () {return 0; }
19843 if ac_fn_c_try_compile "$LINENO"; then :
19844 ac_cv_c_inline=$ac_kw
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 test "$ac_cv_c_inline" != no && break
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19852 $as_echo "$ac_cv_c_inline" >&6; }
19854 case $ac_cv_c_inline in
19857 case $ac_cv_c_inline in
19859 *) ac_val=$ac_cv_c_inline;;
19861 cat >>confdefs.h <<_ACEOF
19862 #ifndef __cplusplus
19863 #define inline $ac_val
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19870 $as_echo_n "checking for working volatile... " >&6; }
19871 if test "${ac_cv_c_volatile+set}" = set; then :
19872 $as_echo_n "(cached) " >&6
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19882 int * volatile y = (int *) 0;
19888 if ac_fn_c_try_compile "$LINENO"; then :
19889 ac_cv_c_volatile=yes
19891 ac_cv_c_volatile=no
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19896 $as_echo "$ac_cv_c_volatile" >&6; }
19897 if test $ac_cv_c_volatile = no; then
19899 $as_echo "#define volatile /**/" >>confdefs.h
19903 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
19904 if test "x$ac_cv_func_sysctlbyname" = x""yes; then :
19905 $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
19911 $as_echo_n "checking for flexible array members... " >&6; }
19912 if test "${ac_cv_c_flexmember+set}" = set; then :
19913 $as_echo_n "(cached) " >&6
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19917 #include <stdlib.h>
19919 #include <stddef.h>
19920 struct s { int n; double d[]; };
19924 int m = getchar ();
19925 struct s *p = malloc (offsetof (struct s, d)
19926 + m * sizeof (double));
19928 return p->d != (double *) NULL;
19933 if ac_fn_c_try_compile "$LINENO"; then :
19934 ac_cv_c_flexmember=yes
19936 ac_cv_c_flexmember=no
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19941 $as_echo "$ac_cv_c_flexmember" >&6; }
19942 if test $ac_cv_c_flexmember = yes; then
19944 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19947 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19953 # Older versions of HP/UX don't define seteuid() and setegid()
19955 for ac_func in seteuid setresuid
19957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19960 cat >>confdefs.h <<_ACEOF
19961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19967 for ac_func in setegid setresgid
19969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19971 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19972 cat >>confdefs.h <<_ACEOF
19973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19981 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
19982 # is reported to not support "static inline" (RT #1212).
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5
19985 $as_echo_n "checking for static inline breakage... " >&6; }
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19996 static inline int foo1() {
20000 static inline int foo2() {
20007 if ac_fn_c_try_compile "$LINENO"; then :
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 $as_echo "no" >&6; }
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012 $as_echo "yes" >&6; }
20013 $as_echo "#define inline /**/" >>confdefs.h
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20019 if test "x$ac_cv_type_size_t" = x""yes; then :
20023 cat >>confdefs.h <<_ACEOF
20024 #define size_t unsigned int
20029 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20030 if test "x$ac_cv_type_ssize_t" = x""yes; then :
20034 cat >>confdefs.h <<_ACEOF
20035 #define ssize_t int
20040 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20041 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
20045 cat >>confdefs.h <<_ACEOF
20046 #define uintptr_t unsigned long
20051 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20052 #include <sys/types.h>
20053 #include <sys/socket.h>
20056 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20057 $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h
20061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20062 /* end confdefs.h. */
20064 #include <sys/types.h>
20065 #include <sys/socket.h>
20066 int getsockname(int, struct sockaddr *, size_t *);
20076 if ac_fn_c_try_compile "$LINENO"; then :
20077 $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h
20080 $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h
20083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20089 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20090 if test "${ac_cv_header_time+set}" = set; then :
20091 $as_echo_n "(cached) " >&6
20093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094 /* end confdefs.h. */
20095 #include <sys/types.h>
20096 #include <sys/time.h>
20102 if ((struct tm *) 0)
20108 if ac_fn_c_try_compile "$LINENO"; then :
20109 ac_cv_header_time=yes
20111 ac_cv_header_time=no
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20116 $as_echo "$ac_cv_header_time" >&6; }
20117 if test $ac_cv_header_time = yes; then
20119 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
20124 $as_echo_n "checking for long long... " >&6; }
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20131 long long i = 0; return (0);
20136 if ac_fn_c_try_compile "$LINENO"; then :
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20138 $as_echo "yes" >&6; }
20139 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 $as_echo "no" >&6; }
20143 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149 # check for GCC noreturn attribute
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
20152 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h. */
20159 void foo() __attribute__((noreturn));
20164 if ac_fn_c_try_compile "$LINENO"; then :
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166 $as_echo "yes" >&6; }
20167 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
20168 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20171 $as_echo "no" >&6; }
20172 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
20173 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 # check if we have lifconf
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
20183 $as_echo_n "checking for struct lifconf... " >&6; }
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20187 #include <sys/types.h>
20188 #include <sys/socket.h>
20189 #include <net/if.h>
20195 struct lifconf lifconf;
20196 lifconf.lifc_len = 0;
20203 if ac_fn_c_try_compile "$LINENO"; then :
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20205 $as_echo "yes" >&6; }
20206 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20209 $as_echo "no" >&6; }
20210 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
20212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216 # check if we have kqueue
20218 # Check whether --enable-kqueue was given.
20219 if test "${enable_kqueue+set}" = set; then :
20220 enableval=$enable_kqueue; want_kqueue="$enableval"
20225 case $want_kqueue in
20227 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
20228 if test "x$ac_cv_func_kqueue" = x""yes; then :
20229 ac_cv_have_kqueue=yes
20231 ac_cv_have_kqueue=no
20234 case $ac_cv_have_kqueue in
20236 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
20239 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
20244 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
20250 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
20251 # so we need to try running the code, not just test its existence.
20253 # Check whether --enable-epoll was given.
20254 if test "${enable_epoll+set}" = set; then :
20255 enableval=$enable_epoll; want_epoll="$enableval"
20260 case $want_epoll in
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5
20263 $as_echo_n "checking epoll support... " >&6; }
20264 if test "$cross_compiling" = yes; then :
20265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20267 as_fn_error $? "cannot run test program while cross compiling
20268 See \`config.log' for more details" "$LINENO" 5; }
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20273 #include <sys/epoll.h>
20275 if (epoll_create(1) < 0)
20281 if ac_fn_c_try_run "$LINENO"; then :
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20283 $as_echo "yes" >&6; }
20284 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20287 $as_echo "no" >&6; }
20288 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20291 conftest.$ac_objext conftest.beam conftest.$ac_ext
20296 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
20299 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
20305 # check if we support /dev/poll
20307 # Check whether --enable-devpoll was given.
20308 if test "${enable_devpoll+set}" = set; then :
20309 enableval=$enable_devpoll; want_devpoll="$enableval"
20314 case $want_devpoll in
20316 for ac_header in sys/devpoll.h devpoll.h
20318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20321 cat >>confdefs.h <<_ACEOF
20322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20324 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
20327 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
20335 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
20341 # check if we need to #include sys/select.h explicitly
20343 case $ac_cv_header_unistd_h in
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5
20346 $as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
20347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348 /* end confdefs.h. */
20350 #include <sys/types.h> /* Ultrix */
20351 #include <unistd.h>
20355 fd_set read_set; return (0);
20360 if ac_fn_c_try_compile "$LINENO"; then :
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20362 $as_echo "yes" >&6; }
20363 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
20364 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20367 $as_echo "no" >&6; }
20368 case $ac_cv_header_sys_select_h in
20370 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
20371 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
20374 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20382 case $ac_cv_header_sys_select_h in
20384 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
20385 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
20388 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5
20397 # Find the machine's endian flavor.
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20400 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20401 if test "${ac_cv_c_bigendian+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20404 ac_cv_c_bigendian=unknown
20405 # See if we're dealing with a universal compiler.
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20408 #ifndef __APPLE_CC__
20409 not a universal capable compiler
20414 if ac_fn_c_try_compile "$LINENO"; then :
20416 # Check for potential -arch flags. It is not universal unless
20417 # there are at least two -arch flags with different values.
20420 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20421 if test -n "$ac_prev"; then
20423 i?86 | x86_64 | ppc | ppc64)
20424 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20427 ac_cv_c_bigendian=universal
20433 elif test "x$ac_word" = "x-arch"; then
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 if test $ac_cv_c_bigendian = unknown; then
20440 # See if sys/param.h defines the BYTE_ORDER macro.
20441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20442 /* end confdefs.h. */
20443 #include <sys/types.h>
20444 #include <sys/param.h>
20449 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20450 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20452 bogus endian macros
20459 if ac_fn_c_try_compile "$LINENO"; then :
20460 # It does; now see whether it defined to BIG_ENDIAN or not.
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h. */
20463 #include <sys/types.h>
20464 #include <sys/param.h>
20469 #if BYTE_ORDER != BIG_ENDIAN
20477 if ac_fn_c_try_compile "$LINENO"; then :
20478 ac_cv_c_bigendian=yes
20480 ac_cv_c_bigendian=no
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 if test $ac_cv_c_bigendian = unknown; then
20487 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20490 #include <limits.h>
20495 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20496 bogus endian macros
20503 if ac_fn_c_try_compile "$LINENO"; then :
20504 # It does; now see whether it defined to _BIG_ENDIAN or not.
20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20507 #include <limits.h>
20512 #ifndef _BIG_ENDIAN
20520 if ac_fn_c_try_compile "$LINENO"; then :
20521 ac_cv_c_bigendian=yes
20523 ac_cv_c_bigendian=no
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 if test $ac_cv_c_bigendian = unknown; then
20530 # Compile a test program.
20531 if test "$cross_compiling" = yes; then :
20532 # Try to guess by grepping values from an object file.
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20535 short int ascii_mm[] =
20536 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20537 short int ascii_ii[] =
20538 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20539 int use_ascii (int i) {
20540 return ascii_mm[i] + ascii_ii[i];
20542 short int ebcdic_ii[] =
20543 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20544 short int ebcdic_mm[] =
20545 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20546 int use_ebcdic (int i) {
20547 return ebcdic_mm[i] + ebcdic_ii[i];
20554 return use_ascii (foo) == use_ebcdic (foo);
20559 if ac_fn_c_try_compile "$LINENO"; then :
20560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20561 ac_cv_c_bigendian=yes
20563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20564 if test "$ac_cv_c_bigendian" = unknown; then
20565 ac_cv_c_bigendian=no
20567 # finding both strings is unlikely to happen, but who knows?
20568 ac_cv_c_bigendian=unknown
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20576 $ac_includes_default
20581 /* Are we little or big endian? From Harbison&Steele. */
20585 char c[sizeof (long int)];
20588 return u.c[sizeof (long int) - 1] == 1;
20594 if ac_fn_c_try_run "$LINENO"; then :
20595 ac_cv_c_bigendian=no
20597 ac_cv_c_bigendian=yes
20599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20600 conftest.$ac_objext conftest.beam conftest.$ac_ext
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20606 $as_echo "$ac_cv_c_bigendian" >&6; }
20607 case $ac_cv_c_bigendian in #(
20609 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20615 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20619 as_fn_error $? "unknown endianness
20620 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20626 # was --with-openssl specified?
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
20630 $as_echo_n "checking for OpenSSL library... " >&6; }
20632 # Check whether --with-openssl was given.
20633 if test "${with_openssl+set}" = set; then :
20634 withval=$with_openssl; use_openssl="$withval"
20640 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
20641 if test "$use_openssl" = "auto"
20643 for d in $openssldirs
20645 if test -f $d/include/openssl/opensslv.h
20652 case "$use_openssl" in
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20655 $as_echo "no" >&6; }
20666 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
20667 If you don't want OpenSSL, use --without-openssl" "$LINENO" 5
20670 if test "$use_openssl" = "yes"
20672 # User did not specify a path - guess it
20673 for d in $openssldirs
20675 if test -f $d/include/openssl/opensslv.h
20681 if test "$use_openssl" = "yes"
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20684 $as_echo "not found" >&6; }
20685 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5
20687 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
20689 as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5
20691 USE_OPENSSL='-DOPENSSL'
20692 if test "$use_openssl" = "/usr"
20695 DNS_OPENSSL_LIBS="-lcrypto"
20697 DST_OPENSSL_INC="-I$use_openssl/include"
20700 DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
20703 DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
20707 # Apple's ld seaches for serially for dynamic
20708 # then static libraries. This means you can't
20709 # use -L to override dynamic system libraries
20710 # with static ones when linking. Instead
20711 # we specify a absolute path.
20713 if test -f "$use_openssl/lib/libcrypto.dylib"
20715 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
20717 DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
20721 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
20726 $as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
20728 saved_cflags="$CFLAGS"
20730 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
20731 LIBS="$LIBS $DNS_OPENSSL_LIBS"
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5
20733 $as_echo_n "checking whether linking with OpenSSL works... " >&6; }
20734 if test "$cross_compiling" = yes; then :
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5
20736 $as_echo "assuming it does work on target platform" >&6; }
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20741 #include <openssl/err.h>
20748 if ac_fn_c_try_run "$LINENO"; then :
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20750 $as_echo "yes" >&6; }
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20753 $as_echo "no" >&6; }
20754 as_fn_error $? "Could not run test program using OpenSSL from
20755 $use_openssl/lib and $use_openssl/include.
20756 Please check the argument to --with-openssl and your
20757 shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5
20759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20760 conftest.$ac_objext conftest.beam conftest.$ac_ext
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5
20765 $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20769 #include <openssl/err.h>
20773 DSO_METHOD_dlfcn();
20778 if ac_fn_c_try_link "$LINENO"; then :
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20780 $as_echo "no" >&6; }
20783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h. */
20786 #include <openssl/err.h>
20791 DSO_METHOD_dlfcn();
20796 if ac_fn_c_try_link "$LINENO"; then :
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20798 $as_echo "yes" >&6; }
20799 DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20803 $as_echo "unknown" >&6; }
20804 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5
20806 rm -f core conftest.err conftest.$ac_objext \
20807 conftest$ac_exeext conftest.$ac_ext
20810 rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
20813 # Check whether --enable-openssl-version-check was given.
20814 if test "${enable_openssl_version_check+set}" = set; then :
20815 enableval=$enable_openssl_version_check;
20818 case "$enable_openssl_version_check" in
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
20821 $as_echo_n "checking OpenSSL library version... " >&6; }
20822 if test "$cross_compiling" = yes; then :
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has compatible version" >&5
20824 $as_echo "assuming target platform has compatible version" >&6; }
20826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h. */
20830 #include <openssl/opensslv.h>
20832 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
20833 OPENSSL_VERSION_NUMBER < 0x00908000L) ||
20834 OPENSSL_VERSION_NUMBER >= 0x0090804fL)
20836 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n",
20837 OPENSSL_VERSION_NUMBER);
20838 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
20839 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
20844 if ac_fn_c_try_run "$LINENO"; then :
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
20846 $as_echo "ok" >&6; }
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not compatible" >&5
20849 $as_echo "not compatible" >&6; }
20850 OPENSSL_WARNING=yes
20853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20854 conftest.$ac_objext conftest.beam conftest.$ac_ext
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipped OpenSSL version check" >&5
20860 $as_echo "Skipped OpenSSL version check" >&6; }
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
20865 $as_echo_n "checking for OpenSSL DSA support... " >&6; }
20866 if test -f $use_openssl/include/openssl/dsa.h
20868 $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20871 $as_echo "yes" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20876 for ac_func in EVP_sha256 EVP_sha512
20878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20880 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20881 cat >>confdefs.h <<_ACEOF
20882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20888 CFLAGS="$saved_cflags"
20890 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
20891 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
20897 # This would include the system openssl path (and linker options to use
20898 # it as needed) if it is found.
20905 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
20908 # Use OpenSSL for hash functions
20911 # Check whether --enable-openssl-hash was given.
20912 if test "${enable_openssl_hash+set}" = set; then :
20913 enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
20915 want_openssl_hash="no"
20918 case $want_openssl_hash in
20920 if test "$USE_OPENSSL" = ""
20922 as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5
20924 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
20925 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
20928 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
20936 # PKCS11 (aka crypto hardware) support
20938 # This works only with the right OpenSSL with PKCS11 engine!
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5
20942 $as_echo_n "checking for PKCS11 support... " >&6; }
20944 # Check whether --with-pkcs11 was given.
20945 if test "${with_pkcs11+set}" = set; then :
20946 withval=$with_pkcs11; use_pkcs11="$withval"
20952 case "$use_pkcs11" in
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20955 $as_echo "disabled" >&6; }
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL with PKCS11 support" >&5
20961 $as_echo "using OpenSSL with PKCS11 support" >&6; }
20962 USE_PKCS11='-DUSE_PKCS11'
20963 PKCS11_TOOLS=pkcs11
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5
20970 $as_echo_n "checking for PKCS11 tools... " >&6; }
20971 case "$use_pkcs11" in
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20974 $as_echo "disabled" >&6; }
20975 PKCS11_PROVIDER="undefined"
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PKCS11 provider is \"$use_pkcs11\"" >&5
20979 $as_echo "PKCS11 provider is \"$use_pkcs11\"" >&6; }
20980 PKCS11_PROVIDER="$use_pkcs11"
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
20986 $as_echo_n "checking for GSSAPI library... " >&6; }
20988 # Check whether --with-gssapi was given.
20989 if test "${with_gssapi+set}" = set; then :
20990 withval=$with_gssapi; use_gssapi="$withval"
20996 gssapidirs="/usr/local /usr/pkg /usr/kerberos /usr"
20997 if test "$use_gssapi" = "yes"
20999 for d in $gssapidirs
21001 if test -f $d/include/gssapi/gssapi.h -o -f $d/include/gssapi.h
21009 case "$use_gssapi" in
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21012 $as_echo "disabled" >&6; }
21016 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
21020 $as_echo "looking in $use_gssapi/lib" >&6; }
21021 USE_GSSAPI='-DGSSAPI'
21022 saved_cppflags="$CPPFLAGS"
21023 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
21024 for ac_header in gssapi.h gssapi/gssapi.h
21026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21029 cat >>confdefs.h <<_ACEOF
21030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21032 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
21038 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
21039 as_fn_error $? "gssapi.h not found" "$LINENO" 5
21042 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
21044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21047 cat >>confdefs.h <<_ACEOF
21048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21050 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
21056 if test "$ISC_PLATFORM_KRB5HEADER" = ""; then
21057 as_fn_error $? "krb5.h not found" "$LINENO" 5
21060 CPPFLAGS="$saved_cppflags"
21063 # XXXDCL This probably doesn't work right on all systems.
21064 # It will need to be worked on as problems become evident.
21066 # Essentially the problems here relate to two different
21067 # areas. The first area is building with either KTH
21068 # or MIT Kerberos, particularly when both are present on
21069 # the machine. The other is static versus dynamic linking.
21071 # On the KTH vs MIT issue, Both have libkrb5 that can mess
21072 # up the works if one implementation ends up trying to
21073 # use the other's krb. This is unfortunately a situation
21074 # that very easily arises.
21076 # Dynamic linking when the dependency information is built
21077 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
21078 # all such problems go away, but when that setup is not
21079 # present, because either the dynamic libraries lack
21080 # dependencies or static linking is being done, then the
21081 # problems start to show up.
21085 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
21086 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
21088 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
21089 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
21092 # Note that this does not include $saved_libs, because
21093 # on FreeBSD machines this configure script has added
21094 # -L/usr/local/lib to LIBS, which can make the
21095 # -lgssapi_krb5 test succeed with shared libraries even
21096 # when you are trying to build with KTH in /usr/lib.
21097 LIBS="-L$use_gssapi/lib $TRY_LIBS"
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
21099 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
21100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21101 /* end confdefs.h. */
21106 gss_acquire_cred();krb5_init_context()
21111 if ac_fn_c_try_link "$LINENO"; then :
21116 rm -f core conftest.err conftest.$ac_objext \
21117 conftest$ac_exeext conftest.$ac_ext
21118 case $gssapi_linked in
21119 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120 $as_echo "yes" >&6; }; break ;;
21121 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; } ;;
21126 case $gssapi_linked in
21127 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
21131 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
21132 # but MIT in /usr/local/lib and trying to build with KTH.
21133 # /usr/local/lib can end up earlier on the link lines.
21134 # Like most kludges, this one is not only inelegant it
21135 # is also likely to be the wrong thing to do at least as
21136 # many times as it is the right thing. Something better
21137 # needs to be done.
21139 if test "$use_gssapi" = "/usr" -a \
21140 -f /usr/local/lib/libkrb5.a; then
21144 case "$FIX_KTH_VS_MIT" in
21146 case "$enable_static_linking" in
21147 yes) gssapi_lib_suffix=".a" ;;
21148 *) gssapi_lib_suffix=".so" ;;
21151 for lib in $LIBS; do
21156 new_lib=`echo $lib |
21157 sed -e s%^-l%$use_gssapi/lib/lib% \
21158 -e s%$%$gssapi_lib_suffix%`
21159 NEW_LIBS="$NEW_LIBS $new_lib"
21162 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
21170 DST_GSSAPI_INC="-I$use_gssapi/include"
21171 DNS_GSSAPI_LIBS="$LIBS"
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
21174 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
21186 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
21189 # Applications linking with libdns also need to link with these libraries.
21195 # was --with-randomdev specified?
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
21198 $as_echo_n "checking for random device... " >&6; }
21200 # Check whether --with-randomdev was given.
21201 if test "${with_randomdev+set}" = set; then :
21202 withval=$with_randomdev; use_randomdev="$withval"
21204 use_randomdev="unspec"
21208 case "$use_randomdev" in
21212 devrandom=/dev/arandom
21215 devrandom=/dev/random
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
21219 $as_echo "$devrandom" >&6; }
21220 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5
21222 $as_echo_n "checking for $devrandom... " >&6; }
21223 if eval "test \"\${$as_ac_File+set}\"" = set; then :
21224 $as_echo_n "(cached) " >&6
21226 test "$cross_compiling" = yes &&
21227 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
21228 if test -r "$devrandom"; then
21229 eval "$as_ac_File=yes"
21231 eval "$as_ac_File=no"
21234 eval ac_res=\$$as_ac_File
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21236 $as_echo "$ac_res" >&6; }
21237 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
21238 cat >>confdefs.h <<_ACEOF
21239 #define PATH_RANDOMDEV "$devrandom"
21246 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21250 $as_echo "disabled" >&6; }
21253 cat >>confdefs.h <<_ACEOF
21254 #define PATH_RANDOMDEV "$use_randomdev"
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5
21258 $as_echo "using \"$use_randomdev\"" >&6; }
21263 # Do we have arc4random() ?
21265 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21266 if test "x$ac_cv_func_arc4random" = x""yes; then :
21267 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21273 # Begin pthreads checking.
21275 # First, decide whether to use multithreading or not.
21277 # Enable multithreading by default on systems where it is known
21278 # to work well, and where debugging of multithreaded programs
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5
21283 $as_echo_n "checking whether to build with thread support... " >&6; }
21287 use_threads=true ;;
21289 # Thread signals are broken on Solaris 2.6; they are sometimes
21290 # delivered to the wrong thread.
21291 use_threads=false ;;
21293 use_threads=true ;;
21295 use_threads=true ;;
21297 use_threads=false ;;
21299 use_threads=true ;;
21301 use_threads=true ;;
21302 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
21304 use_threads=false ;;
21305 *-*-sysv*OpenUNIX*)
21307 use_threads=true ;;
21309 if test -r /usr/lib/libpthread.so ; then
21312 # Socket I/O optimizations introduced in 9.2 expose a
21313 # bug in unproven-pthreads; see PR #12650
21318 # OpenBSD users have reported that named dumps core on
21319 # startup when built with threads.
21320 use_threads=false ;;
21322 use_threads=false ;;
21324 # Thread signals do not work reliably on some versions of BSD/OS.
21325 use_threads=false ;;
21327 use_threads=true ;;
21329 # Threads are disabled on Linux by default because most
21330 # Linux kernels produce unusable core dumps from multithreaded
21331 # programs, and because of limitations in setuid().
21332 use_threads=false ;;
21334 use_threads=false ;;
21337 # Check whether --enable-threads was given.
21338 if test "${enable_threads+set}" = set; then :
21339 enableval=$enable_threads;
21342 case "$enable_threads" in
21350 # Use system-dependent default
21353 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21360 $as_echo "yes" >&6; }
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 $as_echo "no" >&6; }
21369 # Search for / configure pthreads in a system-dependent fashion.
21373 # NetBSD has multiple pthreads implementations. The
21374 # recommended one to use is "unproven-pthreads". The
21375 # older "mit-pthreads" may also work on some NetBSD
21376 # versions. The PTL2 thread library does not
21377 # currently work with bind9, but can be chosen with
21378 # the --with-ptl2 option for those who wish to
21379 # experiment with it.
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which NetBSD thread library to use" >&5
21382 $as_echo_n "checking which NetBSD thread library to use... " >&6; }
21385 # Check whether --with-ptl2 was given.
21386 if test "${with_ptl2+set}" = set; then :
21387 withval=$with_ptl2; use_ptl2="$withval"
21393 : ${LOCALBASE:=/usr/pkg}
21395 if test "X$use_ptl2" = "Xyes"
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PTL2" >&5
21398 $as_echo "PTL2" >&6; }
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
21400 $as_echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
21403 if test -r /usr/lib/libpthread.so
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: native" >&5
21406 $as_echo "native" >&6; }
21407 LIBS="-lpthread $LIBS"
21409 if test ! -d $LOCALBASE/pthreads
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21412 $as_echo "none" >&6; }
21413 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mit-pthreads/unproven-pthreads" >&5
21419 $as_echo "mit-pthreads/unproven-pthreads" >&6; }
21420 pkg="$LOCALBASE/pthreads"
21421 lib1="-L$pkg/lib -Wl,-R$pkg/lib"
21422 lib2="-lpthread -lm -lgcc -lpthread"
21423 LIBS="$lib1 $lib2 $LIBS"
21424 CPPFLAGS="$CPPFLAGS -I$pkg/include"
21425 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
21431 # We don't want to set -lpthread as that break
21432 # the ability to choose threads library at final
21433 # link time and is not valid for all architectures.
21436 if test "X$GCC" = "Xyes"; then
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5
21440 $as_echo_n "checking for gcc -pthread support... " >&6; };
21441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21443 #include <pthread.h>
21447 printf("%x\n", pthread_create);
21452 if ac_fn_c_try_link "$LINENO"; then :
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21455 $as_echo "yes" >&6; }
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21458 $as_echo "no" >&6; }
21460 rm -f core conftest.err conftest.$ac_objext \
21461 conftest$ac_exeext conftest.$ac_ext
21464 if test "X$PTHREAD" != "Xyes"; then
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21466 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
21467 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
21468 $as_echo_n "(cached) " >&6
21470 ac_check_lib_save_LIBS=$LIBS
21471 LIBS="-lpthread $LIBS"
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21481 char pthread_create ();
21485 return pthread_create ();
21490 if ac_fn_c_try_link "$LINENO"; then :
21491 ac_cv_lib_pthread_pthread_create=yes
21493 ac_cv_lib_pthread_pthread_create=no
21495 rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497 LIBS=$ac_check_lib_save_LIBS
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21500 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
21501 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
21502 cat >>confdefs.h <<_ACEOF
21503 #define HAVE_LIBPTHREAD 1
21506 LIBS="-lpthread $LIBS"
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5
21510 $as_echo_n "checking for thread_create in -lthr... " >&6; }
21511 if test "${ac_cv_lib_thr_thread_create+set}" = set; then :
21512 $as_echo_n "(cached) " >&6
21514 ac_check_lib_save_LIBS=$LIBS
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h. */
21519 /* Override any GCC internal prototype to avoid an error.
21520 Use char because int might match the return type of a GCC
21521 builtin and then its argument prototype would still apply. */
21525 char thread_create ();
21529 return thread_create ();
21534 if ac_fn_c_try_link "$LINENO"; then :
21535 ac_cv_lib_thr_thread_create=yes
21537 ac_cv_lib_thr_thread_create=no
21539 rm -f core conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext conftest.$ac_ext
21541 LIBS=$ac_check_lib_save_LIBS
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5
21544 $as_echo "$ac_cv_lib_thr_thread_create" >&6; }
21545 if test "x$ac_cv_lib_thr_thread_create" = x""yes; then :
21546 cat >>confdefs.h <<_ACEOF
21547 #define HAVE_LIBTHR 1
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
21554 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
21555 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
21556 $as_echo_n "(cached) " >&6
21558 ac_check_lib_save_LIBS=$LIBS
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21563 /* Override any GCC internal prototype to avoid an error.
21564 Use char because int might match the return type of a GCC
21565 builtin and then its argument prototype would still apply. */
21569 char pthread_create ();
21573 return pthread_create ();
21578 if ac_fn_c_try_link "$LINENO"; then :
21579 ac_cv_lib_c_r_pthread_create=yes
21581 ac_cv_lib_c_r_pthread_create=no
21583 rm -f core conftest.err conftest.$ac_objext \
21584 conftest$ac_exeext conftest.$ac_ext
21585 LIBS=$ac_check_lib_save_LIBS
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
21588 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
21589 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
21590 cat >>confdefs.h <<_ACEOF
21591 #define HAVE_LIBC_R 1
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
21598 $as_echo_n "checking for pthread_create in -lc... " >&6; }
21599 if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
21600 $as_echo_n "(cached) " >&6
21602 ac_check_lib_save_LIBS=$LIBS
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h. */
21607 /* Override any GCC internal prototype to avoid an error.
21608 Use char because int might match the return type of a GCC
21609 builtin and then its argument prototype would still apply. */
21613 char pthread_create ();
21617 return pthread_create ();
21622 if ac_fn_c_try_link "$LINENO"; then :
21623 ac_cv_lib_c_pthread_create=yes
21625 ac_cv_lib_c_pthread_create=no
21627 rm -f core conftest.err conftest.$ac_objext \
21628 conftest$ac_exeext conftest.$ac_ext
21629 LIBS=$ac_check_lib_save_LIBS
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
21632 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
21633 if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
21634 cat >>confdefs.h <<_ACEOF
21635 #define HAVE_LIBC 1
21641 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21654 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
21655 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
21656 $as_echo_n "(cached) " >&6
21658 ac_check_lib_save_LIBS=$LIBS
21659 LIBS="-lpthread $LIBS"
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21663 /* Override any GCC internal prototype to avoid an error.
21664 Use char because int might match the return type of a GCC
21665 builtin and then its argument prototype would still apply. */
21669 char pthread_create ();
21673 return pthread_create ();
21678 if ac_fn_c_try_link "$LINENO"; then :
21679 ac_cv_lib_pthread_pthread_create=yes
21681 ac_cv_lib_pthread_pthread_create=no
21683 rm -f core conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21685 LIBS=$ac_check_lib_save_LIBS
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21688 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
21689 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
21690 cat >>confdefs.h <<_ACEOF
21691 #define HAVE_LIBPTHREAD 1
21694 LIBS="-lpthread $LIBS"
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5
21698 $as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
21699 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then :
21700 $as_echo_n "(cached) " >&6
21702 ac_check_lib_save_LIBS=$LIBS
21703 LIBS="-lpthread $LIBS"
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h. */
21707 /* Override any GCC internal prototype to avoid an error.
21708 Use char because int might match the return type of a GCC
21709 builtin and then its argument prototype would still apply. */
21713 char __pthread_create ();
21717 return __pthread_create ();
21722 if ac_fn_c_try_link "$LINENO"; then :
21723 ac_cv_lib_pthread___pthread_create=yes
21725 ac_cv_lib_pthread___pthread_create=no
21727 rm -f core conftest.err conftest.$ac_objext \
21728 conftest$ac_exeext conftest.$ac_ext
21729 LIBS=$ac_check_lib_save_LIBS
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5
21732 $as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
21733 if test "x$ac_cv_lib_pthread___pthread_create" = x""yes; then :
21734 cat >>confdefs.h <<_ACEOF
21735 #define HAVE_LIBPTHREAD 1
21738 LIBS="-lpthread $LIBS"
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
21742 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
21743 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then :
21744 $as_echo_n "(cached) " >&6
21746 ac_check_lib_save_LIBS=$LIBS
21747 LIBS="-lpthread $LIBS"
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21751 /* Override any GCC internal prototype to avoid an error.
21752 Use char because int might match the return type of a GCC
21753 builtin and then its argument prototype would still apply. */
21757 char __pthread_create_system ();
21761 return __pthread_create_system ();
21766 if ac_fn_c_try_link "$LINENO"; then :
21767 ac_cv_lib_pthread___pthread_create_system=yes
21769 ac_cv_lib_pthread___pthread_create_system=no
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21773 LIBS=$ac_check_lib_save_LIBS
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
21776 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
21777 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then :
21778 cat >>confdefs.h <<_ACEOF
21779 #define HAVE_LIBPTHREAD 1
21782 LIBS="-lpthread $LIBS"
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
21786 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
21787 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
21788 $as_echo_n "(cached) " >&6
21790 ac_check_lib_save_LIBS=$LIBS
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h. */
21795 /* Override any GCC internal prototype to avoid an error.
21796 Use char because int might match the return type of a GCC
21797 builtin and then its argument prototype would still apply. */
21801 char pthread_create ();
21805 return pthread_create ();
21810 if ac_fn_c_try_link "$LINENO"; then :
21811 ac_cv_lib_c_r_pthread_create=yes
21813 ac_cv_lib_c_r_pthread_create=no
21815 rm -f core conftest.err conftest.$ac_objext \
21816 conftest$ac_exeext conftest.$ac_ext
21817 LIBS=$ac_check_lib_save_LIBS
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
21820 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
21821 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
21822 cat >>confdefs.h <<_ACEOF
21823 #define HAVE_LIBC_R 1
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
21830 $as_echo_n "checking for pthread_create in -lc... " >&6; }
21831 if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
21832 $as_echo_n "(cached) " >&6
21834 ac_check_lib_save_LIBS=$LIBS
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h. */
21839 /* Override any GCC internal prototype to avoid an error.
21840 Use char because int might match the return type of a GCC
21841 builtin and then its argument prototype would still apply. */
21845 char pthread_create ();
21849 return pthread_create ();
21854 if ac_fn_c_try_link "$LINENO"; then :
21855 ac_cv_lib_c_pthread_create=yes
21857 ac_cv_lib_c_pthread_create=no
21859 rm -f core conftest.err conftest.$ac_objext \
21860 conftest$ac_exeext conftest.$ac_ext
21861 LIBS=$ac_check_lib_save_LIBS
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
21864 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
21865 if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
21866 cat >>confdefs.h <<_ACEOF
21867 #define HAVE_LIBC 1
21873 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
21890 if test "X$GCC" = "Xyes"; then
21894 CCOPT="$CCOPT -pthread"
21895 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
21899 CCOPT="$CCOPT -pthread"
21902 LIBS="$LIBS -lthread"
21905 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
21912 CCOPT="$CCOPT -pthread"
21919 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
21921 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
21923 CCOPT="$CCOPT -Kthread"
21925 *-*-sysv*OpenUNIX*)
21927 CCOPT="$CCOPT -Kpthread"
21931 ALWAYS_DEFINES="-D_REENTRANT"
21932 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
21933 THREADOPTOBJS='${THREADOPTOBJS}'
21934 THREADOPTSRCS='${THREADOPTSRCS}'
21935 thread_dir=pthreads
21937 # We'd like to use sigwait() too
21939 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
21940 if test "x$ac_cv_func_sigwait" = x""yes; then :
21941 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
21945 $as_echo_n "checking for sigwait in -lc... " >&6; }
21946 if test "${ac_cv_lib_c_sigwait+set}" = set; then :
21947 $as_echo_n "(cached) " >&6
21949 ac_check_lib_save_LIBS=$LIBS
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21954 /* Override any GCC internal prototype to avoid an error.
21955 Use char because int might match the return type of a GCC
21956 builtin and then its argument prototype would still apply. */
21969 if ac_fn_c_try_link "$LINENO"; then :
21970 ac_cv_lib_c_sigwait=yes
21972 ac_cv_lib_c_sigwait=no
21974 rm -f core conftest.err conftest.$ac_objext \
21975 conftest$ac_exeext conftest.$ac_ext
21976 LIBS=$ac_check_lib_save_LIBS
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
21979 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
21980 if test "x$ac_cv_lib_c_sigwait" = x""yes; then :
21981 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
21985 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
21986 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21989 ac_check_lib_save_LIBS=$LIBS
21990 LIBS="-lpthread $LIBS"
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
22009 if ac_fn_c_try_link "$LINENO"; then :
22010 ac_cv_lib_pthread_sigwait=yes
22012 ac_cv_lib_pthread_sigwait=no
22014 rm -f core conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
22016 LIBS=$ac_check_lib_save_LIBS
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
22019 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
22020 if test "x$ac_cv_lib_pthread_sigwait" = x""yes; then :
22021 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
22025 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
22026 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then :
22027 $as_echo_n "(cached) " >&6
22029 ac_check_lib_save_LIBS=$LIBS
22030 LIBS="-lpthread $LIBS"
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22034 /* Override any GCC internal prototype to avoid an error.
22035 Use char because int might match the return type of a GCC
22036 builtin and then its argument prototype would still apply. */
22044 return _Psigwait ();
22049 if ac_fn_c_try_link "$LINENO"; then :
22050 ac_cv_lib_pthread__Psigwait=yes
22052 ac_cv_lib_pthread__Psigwait=no
22054 rm -f core conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22056 LIBS=$ac_check_lib_save_LIBS
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
22059 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
22060 if test "x$ac_cv_lib_pthread__Psigwait" = x""yes; then :
22061 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22072 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
22073 if test "x$ac_cv_func_pthread_attr_getstacksize" = x""yes; then :
22074 $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
22079 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
22080 if test "x$ac_cv_func_pthread_attr_setstacksize" = x""yes; then :
22081 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
22087 # Additional OS-specific issues related to pthreads and sigwait.
22091 # One more place to look for sigwait.
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
22095 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
22096 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then :
22097 $as_echo_n "(cached) " >&6
22099 ac_check_lib_save_LIBS=$LIBS
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h. */
22104 /* Override any GCC internal prototype to avoid an error.
22105 Use char because int might match the return type of a GCC
22106 builtin and then its argument prototype would still apply. */
22119 if ac_fn_c_try_link "$LINENO"; then :
22120 ac_cv_lib_c_r_sigwait=yes
22122 ac_cv_lib_c_r_sigwait=no
22124 rm -f core conftest.err conftest.$ac_objext \
22125 conftest$ac_exeext conftest.$ac_ext
22126 LIBS=$ac_check_lib_save_LIBS
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
22129 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
22130 if test "x$ac_cv_lib_c_r_sigwait" = x""yes; then :
22131 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22136 *-freebsd5.[012]|*-freebsd5.[012].*);;
22137 *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
22138 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
22142 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
22148 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
22149 # called before certain pthreads calls. This is deprecated
22152 *-bsdi3.*|*-bsdi4.0*)
22153 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
22157 # LinuxThreads requires some changes to the way we
22158 # deal with signals.
22161 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
22165 # Ensure the right sigwait() semantics on Solaris and make
22166 # sure we call pthread_setconcurrency.
22169 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
22171 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
22172 if test "x$ac_cv_func_pthread_setconcurrency" = x""yes; then :
22173 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
22179 # UnixWare does things its own way.
22181 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
22182 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
22188 # Look for sysconf to allow detection of the number of processors.
22190 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
22191 if test "x$ac_cv_func_sysconf" = x""yes; then :
22192 $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
22198 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
22199 thread_dir=nothreads
22209 ISC_THREAD_DIR=$thread_dir
22213 # was --with-libxml2 specified?
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
22216 $as_echo_n "checking for libxml2 library... " >&6; }
22218 # Check whether --with-libxml2 was given.
22219 if test "${with_libxml2+set}" = set; then :
22220 withval=$with_libxml2; use_libxml2="$withval"
22226 case "$use_libxml2" in
22231 case X`(xml2-config --version) 2>/dev/null` in
22233 libxml2_libs=`xml2-config --libs`
22234 libxml2_cflags=`xml2-config --cflags`
22243 if test -f "$use_libxml2/bin/xml2-config" ; then
22244 libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
22245 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
22250 if test "X$libxml2_libs" != "X"
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22253 $as_echo "yes" >&6; }
22254 CFLAGS="$CFLAGS $libxml2_cflags"
22255 LIBS="$LIBS $libxml2_libs"
22257 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22261 $as_echo "no" >&6; }
22265 # In solaris 10, SMF can manage named service
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
22268 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
22269 if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then :
22270 $as_echo_n "(cached) " >&6
22272 ac_check_lib_save_LIBS=$LIBS
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h. */
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22283 char smf_enable_instance ();
22287 return smf_enable_instance ();
22292 if ac_fn_c_try_link "$LINENO"; then :
22293 ac_cv_lib_scf_smf_enable_instance=yes
22295 ac_cv_lib_scf_smf_enable_instance=no
22297 rm -f core conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
22299 LIBS=$ac_check_lib_save_LIBS
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
22302 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
22303 if test "x$ac_cv_lib_scf_smf_enable_instance" = x""yes; then :
22304 cat >>confdefs.h <<_ACEOF
22305 #define HAVE_LIBSCF 1
22314 # flockfile is usually provided by pthreads, but we may want to use it
22315 # even if compiled with --disable-threads. getc_unlocked might also not
22318 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
22319 if test "x$ac_cv_func_flockfile" = x""yes; then :
22320 $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h
22324 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
22325 if test "x$ac_cv_func_getc_unlocked" = x""yes; then :
22326 $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h
22332 # Indicate what the final decision was regarding threads.
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5
22335 $as_echo_n "checking whether to build with threads... " >&6; }
22336 if $use_threads; then
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22338 $as_echo "yes" >&6; }
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22341 $as_echo "no" >&6; }
22345 # End of pthreads stuff.
22351 # Check whether --enable-largefile was given.
22352 if test "${enable_largefile+set}" = set; then :
22353 enableval=$enable_largefile; want_largefile="yes"
22355 want_largefile="no"
22358 case $want_largefile in
22360 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
22367 # Additional compiler settings.
22371 IRIX_DNSSEC_WARNINGS_HACK=""
22373 if test "X$GCC" = "Xyes"; then
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
22375 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
22376 SAVE_CFLAGS=$CFLAGS
22377 CFLAGS="$CFLAGS -fno-strict-aliasing"
22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22389 if ac_fn_c_try_compile "$LINENO"; then :
22390 FNOSTRICTALIASING=yes
22392 FNOSTRICTALIASING=no
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 CFLAGS=$SAVE_CFLAGS
22396 if test "$FNOSTRICTALIASING" = "yes"; then
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22398 $as_echo "yes" >&6; }
22399 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22402 $as_echo "no" >&6; }
22403 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
22407 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
22414 CCOPT="$CCOPT -std"
22419 # The version of the C compiler that constantly warns about
22420 # 'const' as well as alignment issues is unfortunately not
22421 # able to be discerned via the version of the operating
22422 # system, nor does cc have a version flag.
22423 case "`$CC +W 123 2>&1`" in
22425 STD_CWARNINGS="+w1"
22428 # Turn off the pointlessly noisy warnings.
22429 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
22432 CCOPT="$CCOPT -Ae -z"
22433 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
22434 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
22437 STD_CWARNINGS="-fullwarn -woff 1209"
22439 # Silence more than 250 instances of
22440 # "prototyped function redeclared without prototype"
22441 # and 11 instances of
22442 # "variable ... was set but never used"
22443 # from lib/dns/sec/openssl.
22445 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
22450 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
22465 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
22466 if test "x$ac_cv_func_catgets" = x""yes; then :
22467 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
22473 # -lxnet buys us one big porting headache... standards, gotta love 'em.
22475 # AC_CHECK_LIB(xnet, socket, ,
22476 # AC_CHECK_LIB(socket, socket)
22479 # Use this for now, instead:
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22488 $as_echo_n "checking for socket in -lsocket... " >&6; }
22489 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22492 ac_check_lib_save_LIBS=$LIBS
22493 LIBS="-lsocket $LIBS"
22494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22495 /* end confdefs.h. */
22497 /* Override any GCC internal prototype to avoid an error.
22498 Use char because int might match the return type of a GCC
22499 builtin and then its argument prototype would still apply. */
22512 if ac_fn_c_try_link "$LINENO"; then :
22513 ac_cv_lib_socket_socket=yes
22515 ac_cv_lib_socket_socket=no
22517 rm -f core conftest.err conftest.$ac_objext \
22518 conftest$ac_exeext conftest.$ac_ext
22519 LIBS=$ac_check_lib_save_LIBS
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22522 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22523 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22524 cat >>confdefs.h <<_ACEOF
22525 #define HAVE_LIBSOCKET 1
22528 LIBS="-lsocket $LIBS"
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
22533 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
22534 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
22535 $as_echo_n "(cached) " >&6
22537 ac_check_lib_save_LIBS=$LIBS
22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h. */
22542 /* Override any GCC internal prototype to avoid an error.
22543 Use char because int might match the return type of a GCC
22544 builtin and then its argument prototype would still apply. */
22552 return inet_addr ();
22557 if ac_fn_c_try_link "$LINENO"; then :
22558 ac_cv_lib_nsl_inet_addr=yes
22560 ac_cv_lib_nsl_inet_addr=no
22562 rm -f core conftest.err conftest.$ac_objext \
22563 conftest$ac_exeext conftest.$ac_ext
22564 LIBS=$ac_check_lib_save_LIBS
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
22567 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
22568 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
22569 cat >>confdefs.h <<_ACEOF
22570 #define HAVE_LIBNSL 1
22581 # Work around Solaris's select() limitations.
22584 *-solaris2.[89]|*-solaris2.1?)
22586 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
22595 $as_echo_n "checking whether to use purify... " >&6; }
22597 # Check whether --with-purify was given.
22598 if test "${with_purify+set}" = set; then :
22599 withval=$with_purify; use_purify="$withval"
22605 case "$use_purify" in
22609 # Extract the first word of "purify", so it can be a program name with args.
22610 set dummy purify; ac_word=$2
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22612 $as_echo_n "checking for $ac_word... " >&6; }
22613 if test "${ac_cv_path_purify_path+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22616 case $purify_path in
22618 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
22621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22622 for as_dir in $PATH
22625 test -z "$as_dir" && as_dir=.
22626 for ac_exec_ext in '' $ac_executable_extensions; do
22627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22628 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
22629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22636 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
22640 purify_path=$ac_cv_path_purify_path
22641 if test -n "$purify_path"; then
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
22643 $as_echo "$purify_path" >&6; }
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22646 $as_echo "no" >&6; }
22652 purify_path="$use_purify"
22656 case "$use_purify" in
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659 $as_echo "no" >&6; }
22663 if test -f $purify_path || test $purify_path = purify; then
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
22665 $as_echo "$purify_path" >&6; }
22666 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
22667 PURIFY="$purify_path $PURIFYFLAGS"
22669 as_fn_error $? "$purify_path not found.
22671 Please choose the proper path with the following command:
22673 configure --with-purify=PATH
22683 # Check whether --with-libtool was given.
22684 if test "${with_libtool+set}" = set; then :
22685 withval=$with_libtool; use_libtool="$withval"
22691 case $use_libtool in
22696 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
22697 LIBTOOL_MODE_COMPILE='--mode=compile'
22698 LIBTOOL_MODE_INSTALL='--mode=install'
22699 LIBTOOL_MODE_LINK='--mode=link'
22701 *) LIBTOOL_ALLOW_UNDEFINED= ;;
22704 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
22705 *) LIBTOOL_IN_MAIN= ;;
22714 LIBTOOL_MODE_COMPILE=
22715 LIBTOOL_MODE_INSTALL=
22717 LIBTOOL_ALLOW_UNDEFINED=
22723 # enable/disable dumping stack backtrace. Also check if the system supports
22724 # glibc-compatible backtrace() function.
22726 # Check whether --enable-backtrace was given.
22727 if test "${enable_backtrace+set}" = set; then :
22728 enableval=$enable_backtrace; want_backtrace="$enableval"
22730 want_backtrace="yes"
22733 case $want_backtrace in
22735 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737 /* end confdefs.h. */
22738 #include <execinfo.h>
22742 return (backtrace((void **)0, 0));
22747 if ac_fn_c_try_link "$LINENO"; then :
22749 $as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h
22752 rm -f core conftest.err conftest.$ac_objext \
22753 conftest$ac_exeext conftest.$ac_ext
22756 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
22761 # Check whether --enable-symtable was given.
22762 if test "${enable_symtable+set}" = set; then :
22763 enableval=$enable_symtable; want_symtable="$enableval"
22765 want_symtable="minimal"
22768 case $want_symtable in
22769 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
22770 if test "$PERL" = ""
22772 as_fn_error $? "Internal symbol table requires perl but no perl is found.
22773 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
22775 if test "$use_libtool" = "yes"; then
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
22777 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
22779 # we generate the internal symbol table only for those systems
22780 # known to work to avoid unexpected build failure. Also, warn
22781 # about unsupported systems when the feature is enabled
22784 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
22785 MKSYMTBL_PROGRAM="$PERL"
22786 if test $want_symtable = all; then
22787 ALWAYS_MAKE_SYMTABLE="yes"
22791 if test $want_symtable = yes -o $want_symtable = all
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
22794 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
22806 # File name extension for static archive files, for those few places
22807 # where they are treated differently from dynamic ones.
22822 # build exportable DNS library?
22824 # Check whether --enable-exportlib was given.
22825 if test "${enable_exportlib+set}" = set; then :
22826 enableval=$enable_exportlib;
22829 case "$enable_exportlib" in
22832 for x in gmake gnumake make; do
22833 if $x --version 2>/dev/null | grep GNU > /dev/null; then
22838 if test -z "$gmake"; then
22839 as_fn_error $? "exportlib requires GNU make. Install it or disable the feature." "$LINENO" 5
22841 LIBEXPORT=lib/export
22843 BIND9_CO_RULE="%.$O: \${srcdir}/%.c"
22846 BIND9_CO_RULE=".c.$O:"
22852 # Check whether --with-export-libdir was given.
22853 if test "${with_export_libdir+set}" = set; then :
22854 withval=$with_export_libdir; export_libdir="$withval"
22857 if test -z "$export_libdir"; then
22858 export_libdir="\${exec_prefix}/lib/bind9/"
22863 # Check whether --with-export-includedir was given.
22864 if test "${with_export_includedir+set}" = set; then :
22865 withval=$with_export_includedir; export_includedir="$withval"
22868 if test -z "$export_includedir"; then
22869 export_includedir="\${prefix}/include/bind9/"
22874 # Here begins a very long section to determine the system's networking
22875 # capabilities. The order of the tests is significant.
22881 # Check whether --enable-ipv6 was given.
22882 if test "${enable_ipv6+set}" = set; then :
22883 enableval=$enable_ipv6;
22887 case "$enable_ipv6" in
22889 $as_echo "#define WANT_IPV6 1" >>confdefs.h
22897 # We do the IPv6 compilation checking after libtool so that we can put
22898 # the right suffix on the files.
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
22901 $as_echo_n "checking for IPv6 structures... " >&6; }
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h. */
22905 #include <sys/types.h>
22906 #include <sys/socket.h>
22907 #include <netinet/in.h>
22911 struct sockaddr_in6 sin6; return (0);
22916 if ac_fn_c_try_compile "$LINENO"; then :
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22918 $as_echo "yes" >&6; }
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22922 $as_echo "no" >&6; }
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928 # See whether IPv6 support is provided via a Kame add-on.
22929 # This is done before other IPv6 linking tests to LIBS is properly set.
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
22932 $as_echo_n "checking for Kame IPv6 support... " >&6; }
22934 # Check whether --with-kame was given.
22935 if test "${with_kame+set}" = set; then :
22936 withval=$with_kame; use_kame="$withval"
22942 case "$use_kame" in
22946 kame_path=/usr/local/v6
22949 kame_path="$use_kame"
22953 case "$use_kame" in
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22959 if test -f $kame_path/lib/libinet6.a; then
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
22961 $as_echo "$kame_path/lib/libinet6.a" >&6; }
22962 LIBS="-L$kame_path/lib -linet6 $LIBS"
22964 as_fn_error $? "$kame_path/lib/libinet6.a not found.
22966 Please choose the proper path with the following command:
22968 configure --with-kame=PATH
22975 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
22976 # Including it on Kame-using platforms is very bad, though, because
22977 # Kame uses #error against direct inclusion. So include it on only
22978 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
22979 # This is done before the in6_pktinfo check because that's what
22980 # netinet6/in6.h is needed for.
22985 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
22986 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
22987 isc_netinet6in6_hack="#include <netinet6/in6.h>"
22990 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
22991 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
22992 isc_netinet6in6_hack=""
22998 # This is similar to the netinet6/in6.h issue.
23001 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23003 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
23004 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
23005 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
23006 isc_netinetin6_hack="#include <netinet/in6.h>"
23009 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
23010 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
23011 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
23012 isc_netinetin6_hack=""
23017 # Now delve deeper into the suitability of the IPv6 support.
23019 case "$found_ipv6" in
23021 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
23022 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5
23025 $as_echo_n "checking for in6_addr... " >&6; }
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h. */
23029 #include <sys/types.h>
23030 #include <sys/socket.h>
23031 #include <netinet/in.h>
23032 $isc_netinetin6_hack
23033 $isc_netinet6in6_hack
23038 struct in6_addr in6; return (0);
23043 if ac_fn_c_try_compile "$LINENO"; then :
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23045 $as_echo "yes" >&6; }
23046 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
23047 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
23048 isc_in_addr6_hack=""
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23051 $as_echo "no" >&6; }
23052 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
23053 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
23054 isc_in_addr6_hack="#define in6_addr in_addr6"
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
23059 $as_echo_n "checking for in6addr_any... " >&6; }
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h. */
23063 #include <sys/types.h>
23064 #include <sys/socket.h>
23065 #include <netinet/in.h>
23066 $isc_netinetin6_hack
23067 $isc_netinet6in6_hack
23073 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
23078 if ac_fn_c_try_link "$LINENO"; then :
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23080 $as_echo "yes" >&6; }
23081 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
23082 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23085 $as_echo "no" >&6; }
23086 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
23087 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
23089 rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
23093 $as_echo_n "checking for in6addr_loopback... " >&6; }
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23097 #include <sys/types.h>
23098 #include <sys/socket.h>
23099 #include <netinet/in.h>
23100 $isc_netinetin6_hack
23101 $isc_netinet6in6_hack
23107 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
23112 if ac_fn_c_try_link "$LINENO"; then :
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23114 $as_echo "yes" >&6; }
23115 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
23116 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23119 $as_echo "no" >&6; }
23120 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
23121 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
23123 rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
23127 $as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h. */
23131 #include <sys/types.h>
23132 #include <sys/socket.h>
23133 #include <netinet/in.h>
23134 $isc_netinetin6_hack
23135 $isc_netinet6in6_hack
23140 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
23145 if ac_fn_c_try_compile "$LINENO"; then :
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23147 $as_echo "yes" >&6; }
23148 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
23149 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 $as_echo "no" >&6; }
23153 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
23154 result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 LWRES_HAVE_SIN6_SCOPE_ID="$result"
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
23160 $as_echo_n "checking for in6_pktinfo... " >&6; }
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h. */
23164 #include <sys/types.h>
23165 #include <sys/socket.h>
23166 #include <netinet/in.h>
23167 $isc_netinetin6_hack
23168 $isc_netinet6in6_hack
23173 struct in6_pktinfo xyzzy; return (0);
23178 if ac_fn_c_try_compile "$LINENO"; then :
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23180 $as_echo "yes" >&6; }
23181 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5
23184 $as_echo "no -- disabling runtime ipv6 support" >&6; }
23185 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
23191 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
23192 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
23193 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
23194 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23195 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
23196 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
23197 ISC_IPV6_H="ipv6.h"
23198 ISC_IPV6_O="ipv6.$O"
23199 ISC_ISCIPV6_O="unix/ipv6.$O"
23200 ISC_IPV6_C="ipv6.c"
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
23226 $as_echo_n "checking for struct if_laddrreq... " >&6; }
23227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h. */
23230 #include <sys/types.h>
23231 #include <net/if6.h>
23236 struct if_laddrreq a;
23241 if ac_fn_c_try_link "$LINENO"; then :
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23243 $as_echo "yes" >&6; }
23244 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23247 $as_echo "no" >&6; }
23248 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
23250 rm -f core conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
23255 $as_echo_n "checking for struct if_laddrconf... " >&6; }
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h. */
23259 #include <sys/types.h>
23260 #include <net/if6.h>
23265 struct if_laddrconf a;
23270 if ac_fn_c_try_link "$LINENO"; then :
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23272 $as_echo "yes" >&6; }
23273 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
23279 rm -f core conftest.err conftest.$ac_objext \
23280 conftest$ac_exeext conftest.$ac_ext
23284 # Check for network functions that are often missing. We do this
23285 # after the libtool checking, so we can put the right suffix on
23286 # the files. It also needs to come after checking for a Kame add-on,
23287 # which provides some (all?) of the desired functions.
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5
23291 $as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
23292 if test "$cross_compiling" = yes; then :
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop needed" >&5
23294 $as_echo "assuming inet_ntop needed" >&6; }
23295 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23296 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23297 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h. */
23302 #include <sys/types.h>
23303 #include <sys/socket.h>
23304 #include <netinet/in.h>
23305 #include <arpa/inet.h>
23307 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
23309 if ac_fn_c_try_run "$LINENO"; then :
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23312 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23315 $as_echo "no" >&6; }
23316 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23317 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23318 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23321 conftest.$ac_objext conftest.beam conftest.$ac_ext
23326 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
23327 # addresses with less than four octets, like "1.2.3". Also leading
23328 # zeros should also be rejected.
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5
23331 $as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
23332 if test "$cross_compiling" = yes; then :
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has working inet_pton" >&5
23334 $as_echo "assuming target platform has working inet_pton" >&6; }
23335 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23340 #include <sys/types.h>
23341 #include <sys/socket.h>
23342 #include <netinet/in.h>
23343 #include <arpa/inet.h>
23344 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
23345 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
23346 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
23348 if ac_fn_c_try_run "$LINENO"; then :
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23350 $as_echo "yes" >&6; }
23351 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23354 $as_echo "no" >&6; }
23355 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
23356 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
23357 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
23359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23360 conftest.$ac_objext conftest.beam conftest.$ac_ext
23368 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
23372 # Turn on 4.4BSD style sa_len support.
23373 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
23379 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
23380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h. */
23383 #include <sys/types.h>
23384 #include <sys/socket.h>
23388 struct sockaddr sa; sa.sa_len = 0; return (0);
23393 if ac_fn_c_try_compile "$LINENO"; then :
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23395 $as_echo "yes" >&6; }
23396 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
23397 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23400 $as_echo "no" >&6; }
23401 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
23402 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23409 # Look for a 4.4BSD or 4.3BSD struct msghdr
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5
23412 $as_echo_n "checking for struct msghdr flavor... " >&6; }
23413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23414 /* end confdefs.h. */
23416 #include <sys/types.h>
23417 #include <sys/socket.h>
23421 struct msghdr msg; msg.msg_flags = 0; return (0);
23426 if ac_fn_c_try_compile "$LINENO"; then :
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5
23428 $as_echo "4.4BSD" >&6; }
23429 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5
23432 $as_echo "4.3BSD" >&6; }
23433 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 # Look for in_port_t.
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5
23442 $as_echo_n "checking for type in_port_t... " >&6; }
23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23444 /* end confdefs.h. */
23446 #include <sys/types.h>
23447 #include <netinet/in.h>
23451 in_port_t port = 25; return (0);
23456 if ac_fn_c_try_compile "$LINENO"; then :
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23458 $as_echo "yes" >&6; }
23459 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23462 $as_echo "no" >&6; }
23463 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23469 # Check for addrinfo
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
23472 $as_echo_n "checking for struct addrinfo... " >&6; }
23473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474 /* end confdefs.h. */
23480 struct addrinfo a; return (0);
23485 if ac_fn_c_try_compile "$LINENO"; then :
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23487 $as_echo "yes" >&6; }
23488 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
23489 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
23490 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23494 $as_echo "no" >&6; }
23495 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
23496 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 # Check for rrsetinfo
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5
23506 $as_echo_n "checking for struct rrsetinfo... " >&6; }
23507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h. */
23514 struct rrsetinfo r; return (0);
23519 if ac_fn_c_try_compile "$LINENO"; then :
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23521 $as_echo "yes" >&6; }
23522 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23525 $as_echo "no" >&6; }
23526 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5
23532 $as_echo_n "checking for int sethostent... " >&6; }
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534 /* end confdefs.h. */
23540 int i = sethostent(0); return(0);
23545 if ac_fn_c_try_compile "$LINENO"; then :
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23547 $as_echo "yes" >&6; }
23548 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23551 $as_echo "no" >&6; }
23552 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5
23558 $as_echo_n "checking for int endhostent... " >&6; }
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23566 int i = endhostent(); return(0);
23571 if ac_fn_c_try_compile "$LINENO"; then :
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23573 $as_echo "yes" >&6; }
23574 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23577 $as_echo "no" >&6; }
23578 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5
23584 $as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
23585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586 /* end confdefs.h. */
23589 struct netent *getnetbyaddr(in_addr_t, int);
23598 if ac_fn_c_try_compile "$LINENO"; then :
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23600 $as_echo "yes" >&6; }
23601 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23605 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
23607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5
23611 $as_echo_n "checking for int setnetent... " >&6; }
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23619 int i = setnetent(0); return(0);
23624 if ac_fn_c_try_compile "$LINENO"; then :
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626 $as_echo "yes" >&6; }
23627 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630 $as_echo "no" >&6; }
23631 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
23633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5
23637 $as_echo_n "checking for int endnetent... " >&6; }
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h. */
23645 int i = endnetent(); return(0);
23650 if ac_fn_c_try_compile "$LINENO"; then :
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23652 $as_echo "yes" >&6; }
23653 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23656 $as_echo "no" >&6; }
23657 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5
23663 $as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23668 struct hostent *gethostbyaddr(const void *, size_t, int);
23677 if ac_fn_c_try_compile "$LINENO"; then :
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23679 $as_echo "yes" >&6; }
23680 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23683 $as_echo "no" >&6; }
23684 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
23686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
23690 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h. */
23698 h_errno = 1; return(0);
23703 if ac_fn_c_try_compile "$LINENO"; then :
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23706 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709 $as_echo "no" >&6; }
23710 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23716 # Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
23717 # known variations here:
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5
23720 $as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h. */
23724 #include <sys/types.h>
23725 #include <sys/socket.h>
23727 int getnameinfo(const struct sockaddr *, socklen_t, char *,
23728 socklen_t, char *, socklen_t, unsigned int);
23737 if ac_fn_c_try_compile "$LINENO"; then :
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5
23739 $as_echo "socklen_t for buflen; u_int for flags" >&6; }
23741 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
23744 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h
23747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h. */
23750 #include <sys/types.h>
23751 #include <sys/socket.h>
23753 int getnameinfo(const struct sockaddr *, socklen_t, char *,
23754 size_t, char *, size_t, int);
23763 if ac_fn_c_try_compile "$LINENO"; then :
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
23765 $as_echo "size_t for buflen; int for flags" >&6; }
23766 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
23768 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
23772 $as_echo "not match any subspecies; assume standard definition" >&6; }
23773 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
23775 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
23778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783 # ...and same for gai_strerror().
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5
23786 $as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h. */
23790 #include <sys/types.h>
23791 #include <sys/socket.h>
23793 char *gai_strerror(int ecode);
23802 if ac_fn_c_try_compile "$LINENO"; then :
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5
23804 $as_echo "returning char *" >&6; }
23806 $as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
23810 $as_echo "not match any subspecies; assume standard definition" >&6; }
23811 $as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
23817 if test "x$ac_cv_func_getipnodebyname" = x""yes; then :
23818 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
23820 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
23823 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
23824 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
23825 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
23827 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
23830 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
23831 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
23832 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
23833 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
23836 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
23839 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
23840 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
23841 $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h
23850 # Check whether --enable-getifaddrs was given.
23851 if test "${enable_getifaddrs+set}" = set; then :
23852 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
23854 want_getifaddrs="yes"
23859 # This interface iteration code for getifaddrs() will fall back to using
23860 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
23863 case $want_getifaddrs in
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
23866 $as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
23867 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
23868 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
23869 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
23875 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
23876 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
23877 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
23887 # Look for a sysctl call to get the list of network interfaces.
23889 case $ac_cv_header_sys_sysctl_h in
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
23892 $as_echo_n "checking for interface list sysctl... " >&6; }
23893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23894 /* end confdefs.h. */
23896 #include <sys/param.h>
23897 #include <sys/sysctl.h>
23898 #include <sys/socket.h>
23899 #ifdef NET_RT_IFLIST
23904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23905 $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23907 $as_echo "yes" >&6; }
23908 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912 $as_echo "no" >&6; }
23920 # Check for some other useful functions that are not ever-present.
23923 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
23924 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
23925 # reportedly defines strsep() without declaring it in <string.h> when
23926 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
23927 # AC_CHECK_FUNC() incorrectly succeeds because it declares
23928 # the function itself.
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5
23930 $as_echo_n "checking for correctly declared strsep()... " >&6; }
23931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23933 #include <string.h>
23937 char *sp; char *foo = strsep(&sp, ".");
23942 if ac_fn_c_try_link "$LINENO"; then :
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23944 $as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23947 $as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
23949 rm -f core conftest.err conftest.$ac_objext \
23950 conftest$ac_exeext conftest.$ac_ext
23953 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
23954 if test "x$ac_cv_func_memmove" = x""yes; then :
23955 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
23957 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
23962 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
23963 if test "x$ac_cv_func_strtoul" = x""yes; then :
23964 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
23965 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
23968 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
23969 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
23970 GENRANDOMLIB='${ISCLIBS}'
23977 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
23978 if test "x$ac_cv_func_strlcpy" = x""yes; then :
23979 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
23981 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
23986 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
23987 if test "x$ac_cv_func_strlcat" = x""yes; then :
23988 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
23990 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf" >&5
23998 $as_echo_n "checking sprintf... " >&6; }
23999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000 /* end confdefs.h. */
24007 char buf[2]; return(*sprintf(buf,"x"));
24012 if ac_fn_c_try_compile "$LINENO"; then :
24014 ISC_PRINT_OBJS="print.$O"
24015 ISC_PRINT_SRCS="print.c"
24016 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
24017 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
24020 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
24021 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24029 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
24030 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
24031 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
24033 ISC_PRINT_OBJS="print.$O"
24034 ISC_PRINT_SRCS="print.c"
24035 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
24036 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
24041 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
24042 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
24044 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
24045 if test "x$ac_cv_func_strerror" = x""yes; then :
24046 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
24055 # Use our own SPNEGO implementation?
24057 # Check whether --enable-isc-spnego was given.
24058 if test "${enable_isc_spnego+set}" = set; then :
24059 enableval=$enable_isc_spnego;
24063 if test -n "$USE_GSSAPI"
24065 case "$enable_isc_spnego" in
24067 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
24068 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
24069 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
24071 $as_echo "using SPNEGO from lib/dns" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
24075 $as_echo "using SPNEGO from GSSAPI library" >&6; }
24085 # Determine the printf format characters to use when printing
24086 # values of type isc_int64_t. This will normally be "ll", but where
24087 # the compiler treats "long long" as a alias for "long" and printf
24088 # doesn't know about "long long" use "l". Hopefully the sprintf
24089 # will produce a inconsistent result in the later case. If the compiler
24090 # fails due to seeing "%lld" we fall back to "l".
24092 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
24093 # %ld even for (long long)/
24095 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
24096 # configure on Win32.
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5
24099 $as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
24100 if test "$cross_compiling" = yes; then :
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5
24102 $as_echo "assuming target platform uses ll" >&6; }
24103 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24104 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107 /* end confdefs.h. */
24111 long long int j = 0;
24114 sprintf(buf, "%lld", j);
24115 exit((sizeof(long long int) != sizeof(long int))? 0 :
24116 (strcmp(buf, "0") != 0));
24120 if ac_fn_c_try_run "$LINENO"; then :
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5
24122 $as_echo "ll" >&6; }
24123 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24124 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5
24127 $as_echo "l" >&6; }
24128 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
24129 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
24131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24132 conftest.$ac_objext conftest.beam conftest.$ac_ext
24141 # Note it is very recommended to *not* disable chroot(),
24142 # this is only because chroot() was made obsolete by Posix.
24143 # Check whether --enable-chroot was given.
24144 if test "${enable_chroot+set}" = set; then :
24145 enableval=$enable_chroot;
24148 case "$enable_chroot" in
24150 for ac_func in chroot
24152 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
24153 if test "x$ac_cv_func_chroot" = x""yes; then :
24154 cat >>confdefs.h <<_ACEOF
24155 #define HAVE_CHROOT 1
24165 # Check whether --enable-linux-caps was given.
24166 if test "${enable_linux_caps+set}" = set; then :
24167 enableval=$enable_linux_caps;
24170 case "$enable_linux_caps" in
24172 for ac_header in linux/capability.h sys/capability.h
24174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24175 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24177 cat >>confdefs.h <<_ACEOF
24178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
24186 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
24187 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
24188 $as_echo_n "(cached) " >&6
24190 ac_check_lib_save_LIBS=$LIBS
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h. */
24195 /* Override any GCC internal prototype to avoid an error.
24196 Use char because int might match the return type of a GCC
24197 builtin and then its argument prototype would still apply. */
24201 char cap_set_proc ();
24205 return cap_set_proc ();
24210 if ac_fn_c_try_link "$LINENO"; then :
24211 ac_cv_lib_cap_cap_set_proc=yes
24213 ac_cv_lib_cap_cap_set_proc=no
24215 rm -f core conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
24217 LIBS=$ac_check_lib_save_LIBS
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
24220 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
24221 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_LIBCAP 1
24234 for ac_header in sys/prctl.h
24236 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
24237 if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
24238 cat >>confdefs.h <<_ACEOF
24239 #define HAVE_SYS_PRCTL_H 1
24247 for ac_header in sys/un.h
24249 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24250 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24251 cat >>confdefs.h <<_ACEOF
24252 #define HAVE_SYS_UN_H 1
24254 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
24257 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
24268 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
24273 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
24281 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
24282 if test "x$ac_cv_func_tzset" = x""yes; then :
24283 $as_echo "#define HAVE_TZSET 1" >>confdefs.h
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
24289 $as_echo_n "checking for optarg declaration... " >&6; }
24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24293 #include <unistd.h>
24303 if ac_fn_c_try_compile "$LINENO"; then :
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24305 $as_echo "yes" >&6; }
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24308 $as_echo "no" >&6; }
24309 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
24311 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
24314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 # BSD/OS, and perhaps some others, don't define rlim_t.
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5
24320 $as_echo_n "checking for type rlim_t... " >&6; }
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24324 #include <sys/types.h>
24325 #include <sys/time.h>
24326 #include <sys/resource.h>
24330 rlim_t rl = 19671212; return (0);
24335 if ac_fn_c_try_compile "$LINENO"; then :
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24337 $as_echo "yes" >&6; }
24338 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24341 $as_echo "no" >&6; }
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5
24344 $as_echo_n "checking type of rlim_cur... " >&6; }
24345 if test "$cross_compiling" = yes; then :
24347 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming long long int" >&5
24349 $as_echo "cannot determine type of rlim_cur when cross compiling - assuming long long int" >&6; }
24351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h. */
24354 #include <sys/types.h>
24355 #include <sys/time.h>
24356 #include <sys/resource.h>
24357 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
24359 if ac_fn_c_try_run "$LINENO"; then :
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
24361 $as_echo "int" >&6; }
24362 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
24365 if test "$cross_compiling" = yes; then :
24366 as_fn_error $? "this cannot happen" "$LINENO" 5
24368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h. */
24371 #include <sys/types.h>
24372 #include <sys/time.h>
24373 #include <sys/resource.h>
24374 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
24376 if ac_fn_c_try_run "$LINENO"; then :
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
24378 $as_echo "long int" >&6; }
24379 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
24382 if test "$cross_compiling" = yes; then :
24383 as_fn_error $? "this cannot happen" "$LINENO" 5
24385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386 /* end confdefs.h. */
24388 #include <sys/types.h>
24389 #include <sys/time.h>
24390 #include <sys/resource.h>
24391 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
24393 if ac_fn_c_try_run "$LINENO"; then :
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
24395 $as_echo "long long int" >&6; }
24396 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
24398 as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5
24401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24402 conftest.$ac_objext conftest.beam conftest.$ac_ext
24407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24408 conftest.$ac_objext conftest.beam conftest.$ac_ext
24413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24414 conftest.$ac_objext conftest.beam conftest.$ac_ext
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423 # Older HP-UX doesn't have gettune
24427 for ac_header in sys/dyntune.h
24429 ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
24430 if test "x$ac_cv_header_sys_dyntune_h" = x""yes; then :
24431 cat >>confdefs.h <<_ACEOF
24432 #define HAVE_SYS_DYNTUNE_H 1
24446 # Compaq TruCluster requires more code for handling cluster IP aliases
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5
24451 $as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
24452 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then :
24453 $as_echo_n "(cached) " >&6
24455 ac_check_lib_save_LIBS=$LIBS
24456 LIBS="-lclua $LIBS"
24457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458 /* end confdefs.h. */
24460 /* Override any GCC internal prototype to avoid an error.
24461 Use char because int might match the return type of a GCC
24462 builtin and then its argument prototype would still apply. */
24466 char clua_getaliasaddress ();
24470 return clua_getaliasaddress ();
24475 if ac_fn_c_try_link "$LINENO"; then :
24476 ac_cv_lib_clua_clua_getaliasaddress=yes
24478 ac_cv_lib_clua_clua_getaliasaddress=no
24480 rm -f core conftest.err conftest.$ac_objext \
24481 conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
24485 $as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
24486 if test "x$ac_cv_lib_clua_clua_getaliasaddress" = x""yes; then :
24487 LIBS="-lclua $LIBS"
24490 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress"
24491 if test "x$ac_cv_func_clua_getaliasaddress" = x""yes; then :
24493 $as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h
24503 # Some hosts need msg_namelen to match the size of the socket structure.
24504 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
24509 $as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h
24515 # Microsoft has their own way of handling shared libraries that requires
24516 # additional qualifiers on extern variables. Unix systems don't need it.
24519 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
24521 LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
24523 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
24526 # Random remaining OS-specific issues involving compiler warnings.
24527 # XXXDCL print messages to indicate some compensation is being done?
24530 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
24534 hack_shutup_pthreadonceinit=yes
24537 hack_shutup_sputaux=yes
24540 hack_shutup_sigwait=yes
24541 hack_shutup_sputaux=yes
24544 hack_shutup_stdargcast=yes
24547 hack_shutup_pthreadonceinit=yes
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h. */
24552 #include <pthread.h>
24556 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
24561 if ac_fn_c_try_compile "$LINENO"; then :
24562 hack_shutup_pthreadonceinit=yes
24564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 case "$hack_shutup_pthreadonceinit" in
24571 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
24573 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
24577 case "$hack_shutup_sigwait" in
24580 # Shut up a -Wmissing-prototypes warning for sigwait().
24582 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h
24587 case "$hack_shutup_sputaux" in
24590 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
24592 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h
24597 case "$hack_shutup_stdargcast" in
24600 # Shut up a -Wcast-qual warning from va_start().
24602 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h
24607 for ac_header in strings.h
24609 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
24610 if test "x$ac_cv_header_strings_h" = x""yes; then :
24611 cat >>confdefs.h <<_ACEOF
24612 #define HAVE_STRINGS_H 1
24614 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
24617 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
24626 # Check for if_nametoindex() for IPv6 scoped addresses support
24628 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
24629 if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
24630 ac_cv_have_if_nametoindex=yes
24632 ac_cv_have_if_nametoindex=no
24635 case $ac_cv_have_if_nametoindex in
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
24640 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
24641 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24644 ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lipv6 $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h. */
24649 /* Override any GCC internal prototype to avoid an error.
24650 Use char because int might match the return type of a GCC
24651 builtin and then its argument prototype would still apply. */
24655 char if_nametoindex ();
24659 return if_nametoindex ();
24664 if ac_fn_c_try_link "$LINENO"; then :
24665 ac_cv_lib_ipv6_if_nametoindex=yes
24667 ac_cv_lib_ipv6_if_nametoindex=no
24669 rm -f core conftest.err conftest.$ac_objext \
24670 conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
24674 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
24675 if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
24676 ac_cv_have_if_nametoindex=yes
24677 LIBS="-lipv6 $LIBS"
24683 case $ac_cv_have_if_nametoindex in
24685 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
24688 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
24693 for ac_func in nanosleep
24695 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24696 if test "x$ac_cv_func_nanosleep" = x""yes; then :
24697 cat >>confdefs.h <<_ACEOF
24698 #define HAVE_NANOSLEEP 1
24706 # Machine architecture dependent features
24708 # Check whether --enable-atomic was given.
24709 if test "${enable_atomic+set}" = set; then :
24710 enableval=$enable_atomic; enable_atomic="$enableval"
24712 enable_atomic="autodetect"
24715 case "$enable_atomic" in
24719 if test "X$GCC" = "Xyes"; then
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"isc\"); works" >&5
24721 $as_echo_n "checking if asm(\"isc\"); works... " >&6; }
24722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h. */
24729 main() { asm("ics"); exit(0); }
24735 if ac_fn_c_try_compile "$LINENO"; then :
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24737 $as_echo "yes" >&6; }
24741 saved_cflags="$CFLAGS"
24742 CFLAGS="$CFLAGS -Wa,-many"
24743 if test "$cross_compiling" = yes; then :
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5
24745 $as_echo "cross compile, assume yes" >&6; }
24746 CFLAGS="$saved_cflags"
24749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24750 /* end confdefs.h. */
24752 main() { asm("ics"); exit(0); }
24755 if ac_fn_c_try_run "$LINENO"; then :
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5
24757 $as_echo "yes, required -Wa,-many" >&6; }
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5
24761 $as_echo "no, use_atomic disabled" >&6; }
24762 CFLAGS="$saved_cflags"
24765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24766 conftest.$ac_objext conftest.beam conftest.$ac_ext
24772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
24789 if test "$use_atomic" = "yes"; then
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5
24791 $as_echo_n "checking architecture type for atomic operations... " >&6; }
24792 have_atomic=yes # set default
24795 # XXX: some old x86 architectures actually do not support
24796 # (some of) these operations. Do we need stricter checks?
24797 if test "$cross_compiling" = yes; then :
24800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h. */
24804 exit((sizeof(void *) == 8) ? 0 : 1);
24808 if ac_fn_c_try_run "$LINENO"; then :
24814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24815 conftest.$ac_objext conftest.beam conftest.$ac_ext
24820 if test "$cross_compiling" = yes; then :
24824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h. */
24828 exit((sizeof(void *) == 8) ? 0 : 1);
24832 if ac_fn_c_try_run "$LINENO"; then :
24838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24839 conftest.$ac_objext conftest.beam conftest.$ac_ext
24846 powerpc-*|powerpc64-*)
24849 mips-*|mipsel-*|mips64-*|mips64el-*)
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5
24861 $as_echo "$arch" >&6; }
24864 if test "$have_atomic" = "yes"; then
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5
24866 $as_echo_n "checking compiler support for inline assembly code... " >&6; }
24869 # Check whether the compiler supports the assembly syntax we provide.
24870 if test "X$GCC" = "Xyes"; then
24871 # GCC's ASM extension always works
24873 if test $arch = "x86_64"; then
24874 # We can share the same code for gcc with x86_32
24877 if test $arch = "powerpc"; then
24879 # The MacOS (and maybe others) uses "r0" for register
24880 # zero. Under linux/ibm it is "0" for register 0.
24881 # Probe to see if we have a MacOS style assembler.
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5
24884 $as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
24885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24886 /* end confdefs.h. */
24892 __asm__ volatile ("li r0, 0x0\n"::);
24898 if ac_fn_c_try_compile "$LINENO"; then :
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24901 $as_echo "yes" >&6; }
24903 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24907 $as_echo "no" >&6; }
24909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914 # Tru64 compiler has its own syntax for inline
24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h. */
24924 #error "unexpected compiler"
24931 if ac_fn_c_try_compile "$LINENO"; then :
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 case "$compiler" in
24943 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
24946 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
24953 # See if the generic __asm function works. If not,
24954 # we need to disable the atomic operations.
24955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h. */
24968 if ac_fn_c_try_link "$LINENO"; then :
24969 compiler="standard"
24970 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
24972 compiler="not supported (atomic operations disabled)"
24976 rm -f core conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext;
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5
24982 $as_echo "$compiler" >&6; }
24985 if test "$have_atomic" = "yes"; then
24986 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
24987 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
24988 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
24990 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
24991 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
24992 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
24995 if test "$have_xaddq" = "yes"; then
24996 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
24998 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
25015 # Activate "rrset-order fixed" or not?
25017 # Check whether --enable-fixed-rrset was given.
25018 if test "${enable_fixed_rrset+set}" = set; then :
25019 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
25024 case "$enable_fixed" in
25027 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
25037 # Activate "filter-aaaa-on-v4" or not?
25039 # Check whether --enable-filter-aaaa was given.
25040 if test "${enable_filter_aaaa+set}" = set; then :
25041 enableval=$enable_filter_aaaa; enable_filter="$enableval"
25046 case "$enable_filter" in
25049 $as_echo "#define ALLOW_FILTER_AAAA_ON_V4 1" >>confdefs.h
25059 # The following sets up how non-blocking i/o is established.
25060 # Sunos, cygwin and solaris 2.x (x<5) require special handling.
25063 *-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
25065 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
25067 *-solaris2.[01234])
25068 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
25071 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
25075 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
25080 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
25081 # This prevents the source address being set.
25084 *-solaris2.[012345]|*-solaris2.5.1)
25086 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
25091 # The following sections deal with tools used for formatting
25092 # the documentation. They are all optional, unless you are
25093 # a developer editing the documentation source.
25100 for ac_prog in latex
25102 # Extract the first word of "$ac_prog", so it can be a program name with args.
25103 set dummy $ac_prog; ac_word=$2
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25105 $as_echo_n "checking for $ac_word... " >&6; }
25106 if test "${ac_cv_path_LATEX+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25111 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
25114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25115 for as_dir in $PATH
25118 test -z "$as_dir" && as_dir=.
25119 for ac_exec_ext in '' $ac_executable_extensions; do
25120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25121 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
25122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25132 LATEX=$ac_cv_path_LATEX
25133 if test -n "$LATEX"; then
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
25135 $as_echo "$LATEX" >&6; }
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25138 $as_echo "no" >&6; }
25142 test -n "$LATEX" && break
25144 test -n "$LATEX" || LATEX="latex"
25148 for ac_prog in pdflatex
25150 # Extract the first word of "$ac_prog", so it can be a program name with args.
25151 set dummy $ac_prog; ac_word=$2
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25153 $as_echo_n "checking for $ac_word... " >&6; }
25154 if test "${ac_cv_path_PDFLATEX+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25159 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
25162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25163 for as_dir in $PATH
25166 test -z "$as_dir" && as_dir=.
25167 for ac_exec_ext in '' $ac_executable_extensions; do
25168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25169 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
25170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25180 PDFLATEX=$ac_cv_path_PDFLATEX
25181 if test -n "$PDFLATEX"; then
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
25183 $as_echo "$PDFLATEX" >&6; }
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25186 $as_echo "no" >&6; }
25190 test -n "$PDFLATEX" && break
25192 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
25202 # Extract the first word of "$ac_prog", so it can be a program name with args.
25203 set dummy $ac_prog; ac_word=$2
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25205 $as_echo_n "checking for $ac_word... " >&6; }
25206 if test "${ac_cv_path_W3M+set}" = set; then :
25207 $as_echo_n "(cached) " >&6
25211 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
25214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25215 for as_dir in $PATH
25218 test -z "$as_dir" && as_dir=.
25219 for ac_exec_ext in '' $ac_executable_extensions; do
25220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25221 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
25222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25232 W3M=$ac_cv_path_W3M
25233 if test -n "$W3M"; then
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
25235 $as_echo "$W3M" >&6; }
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25238 $as_echo "no" >&6; }
25242 test -n "$W3M" && break
25244 test -n "$W3M" || W3M="w3m"
25249 # Look for xsltproc (libxslt)
25252 # Extract the first word of "xsltproc", so it can be a program name with args.
25253 set dummy xsltproc; ac_word=$2
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25255 $as_echo_n "checking for $ac_word... " >&6; }
25256 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
25257 $as_echo_n "(cached) " >&6
25261 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
25264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25265 for as_dir in $PATH
25268 test -z "$as_dir" && as_dir=.
25269 for ac_exec_ext in '' $ac_executable_extensions; do
25270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25271 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
25272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25279 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
25283 XSLTPROC=$ac_cv_path_XSLTPROC
25284 if test -n "$XSLTPROC"; then
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
25286 $as_echo "$XSLTPROC" >&6; }
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289 $as_echo "no" >&6; }
25296 # Look for xmllint (libxml2)
25299 # Extract the first word of "xmllint", so it can be a program name with args.
25300 set dummy xmllint; ac_word=$2
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25302 $as_echo_n "checking for $ac_word... " >&6; }
25303 if test "${ac_cv_path_XMLLINT+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25308 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
25311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25312 for as_dir in $PATH
25315 test -z "$as_dir" && as_dir=.
25316 for ac_exec_ext in '' $ac_executable_extensions; do
25317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25318 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
25319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25326 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
25330 XMLLINT=$ac_cv_path_XMLLINT
25331 if test -n "$XMLLINT"; then
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
25333 $as_echo "$XMLLINT" >&6; }
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25336 $as_echo "no" >&6; }
25346 # Extract the first word of "doxygen", so it can be a program name with args.
25347 set dummy doxygen; ac_word=$2
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25349 $as_echo_n "checking for $ac_word... " >&6; }
25350 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25355 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25359 for as_dir in $PATH
25362 test -z "$as_dir" && as_dir=.
25363 for ac_exec_ext in '' $ac_executable_extensions; do
25364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25365 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25373 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
25377 DOXYGEN=$ac_cv_path_DOXYGEN
25378 if test -n "$DOXYGEN"; then
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
25380 $as_echo "$DOXYGEN" >&6; }
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25383 $as_echo "no" >&6; }
25390 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
25391 # in a number of directories:
25393 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
25395 # If the file FILENAME is found in one of the DIRECTORIES, the shell
25396 # variable VARIABLE is defined to its absolute pathname. Otherwise,
25397 # it is set to FILENAME, with no directory prefix (that's not terribly
25398 # useful, but looks less confusing in substitutions than leaving it
25399 # empty). The variable VARIABLE will be substituted into output files.
25405 # Look for Docbook-XSL stylesheets. Location probably varies by system.
25406 # If it's not explicitly specified, guess where it might be found, based on
25407 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
25408 # of at the moment).
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
25411 $as_echo_n "checking for Docbook-XSL path... " >&6; }
25413 # Check whether --with-docbook-xsl was given.
25414 if test "${with_docbook_xsl+set}" = set; then :
25415 withval=$with_docbook_xsl; docbook_path="$withval"
25417 docbook_path="auto"
25420 case "$docbook_path" in
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
25423 $as_echo "auto" >&6; }
25424 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook"
25427 docbook_xsl_trees="$withval"
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
25429 $as_echo "$docbook_xsl_trees" >&6; }
25434 # Look for stylesheets we need.
25438 XSLT_DOCBOOK_STYLE_HTML=""
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
25440 $as_echo_n "checking for html/docbook.xsl... " >&6; }
25441 for d in $docbook_xsl_trees
25443 f=$d/html/docbook.xsl
25446 XSLT_DOCBOOK_STYLE_HTML=$f
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25448 $as_echo "$f" >&6; }
25452 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25455 $as_echo "\"not found\"" >&6; };
25456 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
25461 XSLT_DOCBOOK_STYLE_XHTML=""
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
25463 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
25464 for d in $docbook_xsl_trees
25466 f=$d/xhtml/docbook.xsl
25469 XSLT_DOCBOOK_STYLE_XHTML=$f
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25471 $as_echo "$f" >&6; }
25475 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25478 $as_echo "\"not found\"" >&6; };
25479 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
25484 XSLT_DOCBOOK_STYLE_MAN=""
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
25486 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
25487 for d in $docbook_xsl_trees
25489 f=$d/manpages/docbook.xsl
25492 XSLT_DOCBOOK_STYLE_MAN=$f
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25494 $as_echo "$f" >&6; }
25498 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25501 $as_echo "\"not found\"" >&6; };
25502 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
25507 XSLT_DOCBOOK_CHUNK_HTML=""
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
25509 $as_echo_n "checking for html/chunk.xsl... " >&6; }
25510 for d in $docbook_xsl_trees
25512 f=$d/html/chunk.xsl
25515 XSLT_DOCBOOK_CHUNK_HTML=$f
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25517 $as_echo "$f" >&6; }
25521 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25524 $as_echo "\"not found\"" >&6; };
25525 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
25530 XSLT_DOCBOOK_CHUNK_XHTML=""
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
25532 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
25533 for d in $docbook_xsl_trees
25535 f=$d/xhtml/chunk.xsl
25538 XSLT_DOCBOOK_CHUNK_XHTML=$f
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25540 $as_echo "$f" >&6; }
25544 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25547 $as_echo "\"not found\"" >&6; };
25548 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
25553 XSLT_DOCBOOK_CHUNKTOC_HTML=""
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
25555 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
25556 for d in $docbook_xsl_trees
25558 f=$d/html/chunktoc.xsl
25561 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25563 $as_echo "$f" >&6; }
25567 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25570 $as_echo "\"not found\"" >&6; };
25571 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
25576 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
25578 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
25579 for d in $docbook_xsl_trees
25581 f=$d/xhtml/chunktoc.xsl
25584 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25586 $as_echo "$f" >&6; }
25590 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25593 $as_echo "\"not found\"" >&6; };
25594 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
25599 XSLT_DOCBOOK_MAKETOC_HTML=""
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
25601 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
25602 for d in $docbook_xsl_trees
25604 f=$d/html/maketoc.xsl
25607 XSLT_DOCBOOK_MAKETOC_HTML=$f
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25609 $as_echo "$f" >&6; }
25613 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25616 $as_echo "\"not found\"" >&6; };
25617 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
25622 XSLT_DOCBOOK_MAKETOC_XHTML=""
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
25624 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
25625 for d in $docbook_xsl_trees
25627 f=$d/xhtml/maketoc.xsl
25630 XSLT_DOCBOOK_MAKETOC_XHTML=$f
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25632 $as_echo "$f" >&6; }
25636 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25639 $as_echo "\"not found\"" >&6; };
25640 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
25646 # Same dance for db2latex
25648 # No idea where this lives except on FreeBSD.
25651 db2latex_xsl_trees="/usr/local/share"
25654 # Look for stylesheets we need.
25658 XSLT_DB2LATEX_STYLE=""
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/docbook.xsl" >&5
25660 $as_echo_n "checking for db2latex/xsl/docbook.xsl... " >&6; }
25661 for d in $db2latex_xsl_trees
25663 f=$d/db2latex/xsl/docbook.xsl
25666 XSLT_DB2LATEX_STYLE=$f
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25668 $as_echo "$f" >&6; }
25672 if test "X$XSLT_DB2LATEX_STYLE" = "X"
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25675 $as_echo "\"not found\"" >&6; };
25676 XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl
25682 # Look for "admonition" image directory. Can't use NOM_PATH_FILE()
25683 # because it's a directory, so just do the same things, inline.
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/figures" >&5
25687 $as_echo_n "checking for db2latex/xsl/figures... " >&6; }
25688 for d in $db2latex_xsl_trees
25690 dd=$d/db2latex/xsl/figures
25693 XSLT_DB2LATEX_ADMONITIONS=$dd
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dd" >&5
25695 $as_echo "$dd" >&6; }
25699 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25702 $as_echo "not found" >&6; }
25703 XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures
25711 # Check whether --with-idn was given.
25712 if test "${with_idn+set}" = set; then :
25713 withval=$with_idn; use_idn="$withval"
25720 if test X$prefix = XNONE ; then
25721 idn_path=/usr/local
25729 idn_path="$use_idn"
25736 # Check whether --with-libiconv was given.
25737 if test "${with_libiconv+set}" = set; then :
25738 withval=$with_libiconv; use_libiconv="$withval"
25743 case "$use_libiconv" in
25745 if test X$prefix = XNONE ; then
25746 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
25748 iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
25755 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
25760 # Check whether --with-iconv was given.
25761 if test "${with_iconv+set}" = set; then :
25762 withval=$with_iconv; iconvlib="$withval"
25765 case "$iconvlib" in
25775 # Check whether --with-idnlib was given.
25776 if test "${with_idnlib+set}" = set; then :
25777 withval=$with_idnlib; idnlib="$withval"
25782 if test "$idnlib" = yes; then
25783 as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5
25787 if test "$use_idn" != no; then
25789 $as_echo "#define WITH_IDN 1" >>confdefs.h
25791 STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
25792 if test "$idnlib" != no; then
25793 IDNLIBS="$idnlib $iconvlib"
25795 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
25800 for ac_header in locale.h
25802 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
25803 if test "x$ac_cv_header_locale_h" = x""yes; then :
25804 cat >>confdefs.h <<_ACEOF
25805 #define HAVE_LOCALE_H 1
25812 for ac_func in setlocale
25814 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25815 if test "x$ac_cv_func_setlocale" = x""yes; then :
25816 cat >>confdefs.h <<_ACEOF
25817 #define HAVE_SETLOCALE 1
25828 BIND9_TOP_BUILDDIR=`pwd`
25836 if test "X$srcdir" != "X"; then
25837 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
25838 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
25839 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
25840 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
25841 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
25842 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
25844 BIND9_ISC_BUILDINCLUDE=""
25845 BIND9_ISCCC_BUILDINCLUDE=""
25846 BIND9_ISCCFG_BUILDINCLUDE=""
25847 BIND9_DNS_BUILDINCLUDE=""
25848 BIND9_LWRES_BUILDINCLUDE=""
25849 BIND9_BIND9_BUILDINCLUDE=""
25853 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
25856 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
25859 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
25862 if test -z "$ac_configure_args"; then
25863 BIND9_CONFIGARGS="defaults"
25865 for a in $ac_configure_args
25867 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
25870 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
25871 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
25875 LIBISC_API=$srcdir/lib/isc/api
25878 LIBISCCC_API=$srcdir/lib/isccc/api
25881 LIBISCCFG_API=$srcdir/lib/isccfg/api
25884 LIBDNS_API=$srcdir/lib/dns/api
25887 LIBBIND9_API=$srcdir/lib/bind9/api
25890 LIBLWRES_API=$srcdir/lib/lwres/api
25893 LIBIRS_API=$srcdir/lib/irs/api
25896 # Configure any DLZ drivers.
25898 # If config.dlz.in selects one or more DLZ drivers, it will set
25899 # USE_DLZ to a non-empty value, which will be our clue to
25900 # enable the DLZ core functions.
25902 # This section has to come after the libtool stuff because it needs to
25903 # know how to name the driver object files.
25907 DLZ_DRIVER_INCLUDES=""
25913 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
25915 # Permission to use, copy, modify, and distribute this software for any
25916 # purpose with or without fee is hereby granted, provided that the above
25917 # copyright notice and this permission notice appear in all copies.
25919 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
25920 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25921 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
25922 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25923 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
25924 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25925 # PERFORMANCE OF THIS SOFTWARE.
25928 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
25930 dlzdir='${DLZ_DRIVER_DIR}'
25933 # Private autoconf macro to simplify configuring drivers:
25935 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
25938 # DEFINE is FOO (to define -DDLZ_FOO)
25939 # DRIVER is dlz_foo_driver (sources without the .c)
25940 # INCLUDES is any necessary include definitions
25941 # LIBS is any necessary library definitions
25946 # Check for the various DLZ drivers
25950 # Was --with-dlz-postgres specified?
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
25954 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
25956 # Check whether --with-dlz_postgres was given.
25957 if test "${with_dlz_postgres+set}" = set; then :
25958 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
25960 use_dlz_postgres="no"
25964 if test "$use_dlz_postgres" = "yes"
25966 # User did not specify a path - guess it
25967 # Ask Postgres to tell us where it is
25969 for ac_prog in pg_config
25971 # Extract the first word of "$ac_prog", so it can be a program name with args.
25972 set dummy $ac_prog; ac_word=$2
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25974 $as_echo_n "checking for $ac_word... " >&6; }
25975 if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
25976 $as_echo_n "(cached) " >&6
25980 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
25983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25984 for as_dir in $PATH
25987 test -z "$as_dir" && as_dir=.
25988 for ac_exec_ext in '' $ac_executable_extensions; do
25989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25990 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26001 PG_CONFIG=$ac_cv_path_PG_CONFIG
26002 if test -n "$PG_CONFIG"; then
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
26004 $as_echo "$PG_CONFIG" >&6; }
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26007 $as_echo "no" >&6; }
26011 test -n "$PG_CONFIG" && break
26013 test -n "$PG_CONFIG" || PG_CONFIG="not found"
26016 if test "$PG_CONFIG" != "not found"
26018 use_dlz_postgres=`$PG_CONFIG --includedir`
26019 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
26023 if test "$use_dlz_postgres" = "yes"
26025 # User did not specify path and Postgres didn't say - guess it
26027 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
26030 if test -f $d/include/libpq-fe.h
26032 use_dlz_postgres=$d/include
26033 use_dlz_postgres_lib=$d/lib
26039 if test "$use_dlz_postgres" = "yes"
26041 # Still no joy, give up
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26044 $as_echo "not found" >&6; }
26045 as_fn_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" "$LINENO" 5
26048 case "$use_dlz_postgres" in
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26051 $as_echo "no" >&6; }
26055 USE_DLZ="$USE_DLZ -DDLZ_POSTGRES"
26056 for i in dlz_postgres_driver
26058 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26059 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26061 if test -n "-I$use_dlz_postgres"
26063 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
26065 if test -n "-L$use_dlz_postgres_lib -lpq"
26067 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
26072 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
26078 # Was --with-dlz-mysql specified?
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
26082 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
26084 # Check whether --with-dlz_mysql was given.
26085 if test "${with_dlz_mysql+set}" = set; then :
26086 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
26094 if test "$use_dlz_mysql" = "yes"
26096 # User did not specify a path - guess it
26097 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
26098 for d in $mysqldirs
26100 if test -f $d/include/mysql/mysql.h
26103 mysql_include=$d/include/mysql
26104 if test -d $d/lib/mysql
26106 mysql_lib=$d/lib/mysql
26111 elif test -f $d/include/mysql.h
26114 mysql_include=$d/include
26115 if test -d $d/lib/mysql
26117 mysql_lib=$d/lib/mysql
26124 elif test "$use_dlz_mysql" != "no"
26127 if test -f $d/include/mysql/mysql.h
26129 mysql_include=$d/include/mysql
26130 if test -d $d/lib/mysql
26132 mysql_lib=$d/lib/mysql
26136 elif test -f $d/include/mysql.h
26138 mysql_include=$d/include
26139 if test -d $d/lib/mysql
26141 mysql_lib=$d/lib/mysql
26148 if test "$use_dlz_mysql" = "yes"
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26151 $as_echo "not found" >&6; }
26152 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
26155 case "$use_dlz_mysql" in
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26158 $as_echo "no" >&6; }
26162 USE_DLZ="$USE_DLZ -DDLZ_MYSQL"
26163 for i in dlz_mysql_driver
26165 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26166 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26168 if test -n "-I${mysql_include}"
26170 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
26172 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
26174 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
26179 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
26185 # Was --with-dlz-bdb specified?
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver" >&5
26189 $as_echo_n "checking for Berkeley DB DLZ driver... " >&6; }
26191 # Check whether --with-dlz_bdb was given.
26192 if test "${with_dlz_bdb+set}" = set; then :
26193 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
26199 case "$use_dlz_bdb" in
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26202 $as_echo "no" >&6; }
26205 if test "$use_dlz_bdb" = "yes"
26207 # User did not specify a path - guess directories
26208 bdbdirs="/usr/local /usr/pkg /usr"
26209 elif test -d "$use_dlz_bdb"
26211 # User specified directory and it exists
26212 bdbdirs="$use_dlz_bdb"
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26215 $as_echo "not found" >&6; }
26216 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
26220 # Use path we were given or guessed. This is insanely
26221 # complicated because we have to search for a bunch of
26222 # platform-specific variations and have to check
26223 # separately for include and library directories.
26225 # Set both to yes, so we can check them later
26231 # Skip nonexistant directories
26237 # Check other locations for includes.
26238 # Order is important (sigh).
26240 bdb_incdirs="/ /db42/ /db41/ /db4/ /db/"
26241 for d in $bdb_incdirs
26243 if test -f "$dd/include${d}db.h"
26245 dlz_bdb_inc="-I$dd/include${d}"
26250 # Give up on this directory if we couldn't
26251 # find the include subdir
26253 if test "$dlz_bdb_inc" = "yes"
26258 # Look for libname other than libdb.so.
26259 # Order is important (sigh).
26261 bdb_libnames="db42 db-4.2 db41 db-4.1 db"
26262 for d in $bdb_libnames
26264 if test -f "$dd/lib/lib${d}.so"
26266 if test "$dd" != "/usr"
26268 dlz_bdb_libs="-L${dd}/lib "
26272 dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
26277 # If we found both incdir and lib, we're done
26278 if test "$dlz_bdb_libs" != "yes"
26283 # Otherwise, we're starting over
26289 # Done searching, now make sure we got everything.
26291 if test "$dlz_bdb_inc" = "yes"
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26294 $as_echo "not found" >&6; }
26295 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
26298 if test "$dlz_bdb_libs" = "yes"
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26301 $as_echo "not found" >&6; }
26302 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
26306 USE_DLZ="$USE_DLZ -DDLZ_BDB"
26307 for i in dlz_bdb_driver dlz_bdbhpt_driver
26309 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26310 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26312 if test -n "$dlz_bdb_inc"
26314 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
26316 if test -n "$dlz_bdb_libs"
26318 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
26323 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
26325 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
26332 # Was --with-dlz-filesystem specified?
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
26336 $as_echo_n "checking for file system DLZ driver... " >&6; }
26338 # Check whether --with-dlz_filesystem was given.
26339 if test "${with_dlz_filesystem+set}" = set; then :
26340 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
26342 use_dlz_filesystem="no"
26346 case "$use_dlz_filesystem" in
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26349 $as_echo "no" >&6; }
26353 USE_DLZ="$USE_DLZ -DDLZ_FILESYSTEM"
26354 for i in dlz_filesystem_driver
26356 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26357 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26361 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
26365 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
26368 DLZ_SYSTEM_TEST=dlz
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26370 $as_echo "yes" >&6; }
26376 # Was --with-dlz-ldap specified?
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
26380 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
26382 # Check whether --with-dlz_ldap was given.
26383 if test "${with_dlz_ldap+set}" = set; then :
26384 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
26390 if test "$use_dlz_ldap" = "yes"
26392 # User did not specify a path - guess it
26393 ldapdirs="/usr /usr/local /usr/pkg"
26396 if test -f $d/include/ldap.h
26404 if test "$use_dlz_ldap" = "yes"
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26407 $as_echo "not found" >&6; }
26408 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
26411 case "$use_dlz_ldap" in
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26414 $as_echo "no" >&6; }
26418 USE_DLZ="$USE_DLZ -DDLZ_LDAP"
26419 for i in dlz_ldap_driver
26421 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26422 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26424 if test -n "-I$use_dlz_ldap/include"
26426 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
26428 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
26430 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
26435 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
26441 # Was --with-dlz-odbc specified?
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
26445 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
26447 # Check whether --with-dlz_odbc was given.
26448 if test "${with_dlz_odbc+set}" = set; then :
26449 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
26455 if test "$use_dlz_odbc" = "yes"
26457 # User did not specify a path - guess it
26458 odbcdirs="/usr /usr/local /usr/pkg"
26461 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
26469 case "$use_dlz_odbc" in
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26472 $as_echo "no" >&6; }
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26476 $as_echo "not found" >&6; }
26477 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
26481 USE_DLZ="$USE_DLZ -DDLZ_ODBC"
26482 for i in dlz_odbc_driver
26484 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26485 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26487 if test -n "-I$use_dlz_odbc/include"
26489 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
26491 if test -n "-L$use_dlz_odbc/lib -lodbc"
26493 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
26498 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
26504 # Was --with-dlz-stub specified?
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
26508 $as_echo_n "checking for stub DLZ driver... " >&6; }
26510 # Check whether --with-dlz_stub was given.
26511 if test "${with_dlz_stub+set}" = set; then :
26512 withval=$with_dlz_stub; use_dlz_stub="$withval"
26518 case "$use_dlz_stub" in
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26521 $as_echo "no" >&6; }
26526 USE_DLZ="$USE_DLZ -DDLZ_STUB"
26527 for i in dlz_stub_driver
26529 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26530 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26534 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
26538 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26543 $as_echo "yes" >&6; }
26548 # Add any additional DLZ drivers here.
26551 # Finally, some generic stuff that applies to all drivers, assuming
26552 # we're compiling DLZ at all.
26554 if test -n "$USE_DLZ"
26557 # Where to find DLZ driver header files.
26559 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
26562 # Initialization and shutdown wrappers, helper functions.
26564 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
26565 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLZ" >&5
26570 $as_echo_n "checking for DLZ... " >&6; }
26572 if test -n "$USE_DLZ"
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26575 $as_echo "yes" >&6; }
26576 USE_DLZ="-DDLZ $USE_DLZ"
26577 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
26578 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26582 $as_echo "no" >&6; }
26583 DLZ_DRIVER_RULES=/dev/null
26594 if test "$cross_compiling" = "yes"; then
26595 if test -z "$BUILD_CC"; then
26596 as_fn_error $? "BUILD_CC not set" "$LINENO" 5
26598 BUILD_CFLAGS="$BUILD_CFLAGS"
26599 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
26600 BUILD_LDFLAGS="$BUILD_LDFLAGS"
26601 BUILD_LIBS="$BUILD_LIBS"
26604 BUILD_CFLAGS="$CFLAGS"
26605 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
26606 BUILD_LDFLAGS="$LDFLAGS"
26611 for e in $BUILD_LDFLAGS ; do
26616 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26617 NEWFLAGS="$NEWFLAGS $e $ee"
26620 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26621 NEWFLAGS="$NEWFLAGS $e $ee"
26624 ee=`echo $e | sed -e 's%^-L%-R%'`
26625 NEWFLAGS="$NEWFLAGS $e $ee"
26628 NEWFLAGS="$NEWFLAGS $e"
26633 NEWFLAGS="$NEWFLAGS $e"
26637 BUILD_LDFLAGS="$NEWFLAGS"
26640 for e in $DNS_GSSAPI_LIBS ; do
26645 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26646 NEWFLAGS="$NEWFLAGS $e $ee"
26649 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26650 NEWFLAGS="$NEWFLAGS $e $ee"
26653 ee=`echo $e | sed -e 's%^-L%-R%'`
26654 NEWFLAGS="$NEWFLAGS $e $ee"
26657 NEWFLAGS="$NEWFLAGS $e"
26662 NEWFLAGS="$NEWFLAGS $e"
26666 DNS_GSSAPI_LIBS="$NEWFLAGS"
26669 for e in $DNS_CRYPTO_LIBS ; do
26674 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26675 NEWFLAGS="$NEWFLAGS $e $ee"
26678 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26679 NEWFLAGS="$NEWFLAGS $e $ee"
26682 ee=`echo $e | sed -e 's%^-L%-R%'`
26683 NEWFLAGS="$NEWFLAGS $e $ee"
26686 NEWFLAGS="$NEWFLAGS $e"
26691 NEWFLAGS="$NEWFLAGS $e"
26695 DNS_CRYPTO_LIBS="$NEWFLAGS"
26704 # Commands to run at the end of config.status.
26705 # Don't just put these into configure, it won't work right if somebody
26706 # runs config.status directly (which autoconf allows).
26709 ac_config_commands="$ac_config_commands chmod"
26713 # Files to configure. These are listed here because we used to
26714 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
26715 # elsewhere if there's a good reason for doing so.
26718 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/hashes/Makefile bin/tests/net/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/filter-aaaa/Makefile bin/tests/system/lwresd/Makefile bin/tests/system/tkey/Makefile bin/tests/headerdep_test.sh bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.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"
26725 cat >confcache <<\_ACEOF
26726 # This file is a shell script that caches the results of configure
26727 # tests run on this system so they can be shared between configure
26728 # scripts and configure runs, see configure's option --config-cache.
26729 # It is not useful on other systems. If it contains results you don't
26730 # want to keep, you may remove or edit it.
26732 # config.status only pays attention to the cache file if you give it
26733 # the --recheck option to rerun configure.
26735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26737 # following values.
26741 # The following way of writing the cache mishandles newlines in values,
26742 # but we know of no workaround that is simple, portable, and efficient.
26743 # So, we kill variables containing newlines.
26744 # Ultrix sh set writes to stderr and can't be redirected directly,
26745 # and sets the high bit in the cache file unless we assign to the vars.
26747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26748 eval ac_val=\$$ac_var
26752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26753 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26756 _ | IFS | as_nl) ;; #(
26757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26758 *) { eval $ac_var=; unset $ac_var;} ;;
26764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26765 *${as_nl}ac_space=\ *)
26766 # `set' does not quote correctly, so add quotes: double-quote
26767 # substitution turns \\\\ into \\, and sed turns \\ into \.
26770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26773 # `set' quotes correctly as required by POSIX, so do not add quotes.
26774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26787 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26788 if test -w "$cache_file"; then
26789 test "x$cache_file" != "x/dev/null" &&
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26791 $as_echo "$as_me: updating cache $cache_file" >&6;}
26792 cat confcache >$cache_file
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26795 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26801 # Let make expand exec_prefix.
26802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26804 DEFS=-DHAVE_CONFIG_H
26809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26810 # 1. Remove the extension, and $U if already installed.
26811 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26812 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26814 # will be set to the directory where LIBOBJS objects are built.
26815 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26816 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26818 LIBOBJS=$ac_libobjs
26820 LTLIBOBJS=$ac_ltlibobjs
26825 : ${CONFIG_STATUS=./config.status}
26827 ac_clean_files_save=$ac_clean_files
26828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26834 # Generated by $as_me.
26835 # Run this file to recreate the current configuration.
26836 # Compiler output produced by configure, useful for debugging
26837 # configure, is in config.log if it exists.
26840 ac_cs_recheck=false
26843 SHELL=\${CONFIG_SHELL-$SHELL}
26846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26847 ## -------------------- ##
26848 ## M4sh Initialization. ##
26849 ## -------------------- ##
26851 # Be more Bourne compatible
26852 DUALCASE=1; export DUALCASE # for MKS sh
26853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26857 # is contrary to our usage. Disable this feature.
26858 alias -g '${1+"$@"}'='"$@"'
26859 setopt NO_GLOB_SUBST
26861 case `(set -o) 2>/dev/null` in #(
26873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26877 # Prefer a ksh shell builtin over an external printf program on Solaris,
26878 # but without wasting forks for bash or zsh.
26879 if test -z "$BASH_VERSION$ZSH_VERSION" \
26880 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26881 as_echo='print -r --'
26882 as_echo_n='print -rn --'
26883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26884 as_echo='printf %s\n'
26885 as_echo_n='printf %s'
26887 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26888 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26889 as_echo_n='/usr/ucb/echo -n'
26891 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26892 as_echo_n_body='eval
26896 expr "X$arg" : "X\\(.*\\)$as_nl";
26897 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26899 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26901 export as_echo_n_body
26902 as_echo_n='sh -c $as_echo_n_body as_echo'
26904 export as_echo_body
26905 as_echo='sh -c $as_echo_body as_echo'
26908 # The user is always right.
26909 if test "${PATH_SEPARATOR+set}" != set; then
26911 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26912 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26919 # We need space, tab and new line, in precisely that order. Quoting is
26920 # there to prevent editors from complaining about space-tab.
26921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26922 # splitting by setting IFS to empty value.)
26925 # Find who we are. Look in the path if we contain no directory separator.
26927 *[\\/]* ) as_myself=$0 ;;
26928 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26929 for as_dir in $PATH
26932 test -z "$as_dir" && as_dir=.
26933 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26939 # We did not find ourselves, most probably we were run as `sh COMMAND'
26940 # in which case we are not to be found in the path.
26941 if test "x$as_myself" = x; then
26944 if test ! -f "$as_myself"; then
26945 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26949 # Unset variables that we do not need and which cause bugs (e.g. in
26950 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26951 # suppresses any "Segmentation fault" message there. '((' could
26952 # trigger a bug in pdksh 5.2.14.
26953 for as_var in BASH_ENV ENV MAIL MAILPATH
26954 do eval test x\${$as_var+set} = xset \
26955 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26971 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26972 # ----------------------------------------
26973 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26974 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26975 # script with STATUS, using 1 if that was 0.
26978 as_status=$1; test $as_status -eq 0 && as_status=1
26980 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26981 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26983 $as_echo "$as_me: error: $2" >&2
26984 as_fn_exit $as_status
26988 # as_fn_set_status STATUS
26989 # -----------------------
26990 # Set $? to STATUS, without forking.
26991 as_fn_set_status ()
26994 } # as_fn_set_status
26996 # as_fn_exit STATUS
26997 # -----------------
26998 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27002 as_fn_set_status $1
27008 # Portably unset VAR.
27011 { eval $1=; unset $1;}
27013 as_unset=as_fn_unset
27014 # as_fn_append VAR VALUE
27015 # ----------------------
27016 # Append the text in VALUE to the end of the definition contained in VAR. Take
27017 # advantage of any shell optimizations that allow amortized linear growth over
27018 # repeated appends, instead of the typical quadratic growth present in naive
27020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27021 eval 'as_fn_append ()
27032 # as_fn_arith ARG...
27033 # ------------------
27034 # Perform arithmetic evaluation on the ARGs, and store the result in the
27035 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27036 # must be portable across $(()) and expr.
27037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27038 eval 'as_fn_arith ()
27045 as_val=`expr "$@" || test $? -eq 1`
27050 if expr a : '\(a\)' >/dev/null 2>&1 &&
27051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27058 as_basename=basename
27063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27069 as_me=`$as_basename -- "$0" ||
27070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27071 X"$0" : 'X\(//\)$' \| \
27072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27074 sed '/^.*\/\([^/][^/]*\)\/*$/{
27088 # Avoid depending upon Character Ranges.
27089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27092 as_cr_digits='0123456789'
27093 as_cr_alnum=$as_cr_Letters$as_cr_digits
27095 ECHO_C= ECHO_N= ECHO_T=
27096 case `echo -n x` in #(((((
27098 case `echo 'xy\c'` in
27099 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27101 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27108 rm -f conf$$ conf$$.exe conf$$.file
27109 if test -d conf$$.dir; then
27110 rm -f conf$$.dir/conf$$.file
27113 mkdir conf$$.dir 2>/dev/null
27115 if (echo >conf$$.file) 2>/dev/null; then
27116 if ln -s conf$$.file conf$$ 2>/dev/null; then
27118 # ... but there are two gotchas:
27119 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27120 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27121 # In both cases, we have to default to `cp -p'.
27122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27124 elif ln conf$$.file conf$$ 2>/dev/null; then
27132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27133 rmdir conf$$.dir 2>/dev/null
27138 # Create "$as_dir" as a directory, including parents if necessary.
27143 -*) as_dir=./$as_dir;;
27145 test -d "$as_dir" || eval $as_mkdir_p || {
27149 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27150 *) as_qdir=$as_dir;;
27152 as_dirs="'$as_qdir' $as_dirs"
27153 as_dir=`$as_dirname -- "$as_dir" ||
27154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27155 X"$as_dir" : 'X\(//\)[^/]' \| \
27156 X"$as_dir" : 'X\(//\)$' \| \
27157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27158 $as_echo X"$as_dir" |
27159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27163 /^X\(\/\/\)[^/].*/{
27176 test -d "$as_dir" && break
27178 test -z "$as_dirs" || eval "mkdir $as_dirs"
27179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27183 if mkdir -p . 2>/dev/null; then
27184 as_mkdir_p='mkdir -p "$as_dir"'
27186 test -d ./-p && rmdir ./-p
27190 if test -x / >/dev/null 2>&1; then
27191 as_test_x='test -x'
27193 if ls -dL / >/dev/null 2>&1; then
27200 if test -d "$1"; then
27206 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27207 ???[sx]*):;;*)false;;esac;fi
27211 as_executable_p=$as_test_x
27213 # Sed expression to map a string onto a valid CPP name.
27214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27216 # Sed expression to map a string onto a valid variable name.
27217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27221 ## ----------------------------------- ##
27222 ## Main body of $CONFIG_STATUS script. ##
27223 ## ----------------------------------- ##
27225 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27228 # Save the log message, to keep $0 and so on meaningful, and to
27229 # report actual input values of CONFIG_FILES etc. instead of their
27230 # values after options handling.
27232 This file was extended by $as_me, which was
27233 generated by GNU Autoconf 2.67. Invocation command line was
27235 CONFIG_FILES = $CONFIG_FILES
27236 CONFIG_HEADERS = $CONFIG_HEADERS
27237 CONFIG_LINKS = $CONFIG_LINKS
27238 CONFIG_COMMANDS = $CONFIG_COMMANDS
27241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27246 case $ac_config_files in *"
27247 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27250 case $ac_config_headers in *"
27251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27256 # Files that config.status was made for.
27257 config_files="$ac_config_files"
27258 config_headers="$ac_config_headers"
27259 config_commands="$ac_config_commands"
27263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27265 \`$as_me' instantiates files and other configuration actions
27266 from templates according to the current configuration. Unless the files
27267 and actions are specified as TAGs, all are instantiated by default.
27269 Usage: $0 [OPTION]... [TAG]...
27271 -h, --help print this help, then exit
27272 -V, --version print version number and configuration settings, then exit
27273 --config print configuration, then exit
27274 -q, --quiet, --silent
27275 do not print progress messages
27276 -d, --debug don't remove temporary files
27277 --recheck update $as_me by reconfiguring in the same conditions
27278 --file=FILE[:TEMPLATE]
27279 instantiate the configuration file FILE
27280 --header=FILE[:TEMPLATE]
27281 instantiate the configuration header FILE
27283 Configuration files:
27286 Configuration headers:
27289 Configuration commands:
27292 Report bugs to the package provider."
27295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27296 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27299 configured by $0, generated by GNU Autoconf 2.67,
27300 with options \\"\$ac_cs_config\\"
27302 Copyright (C) 2010 Free Software Foundation, Inc.
27303 This config.status script is free software; the Free Software Foundation
27304 gives unlimited permission to copy, distribute and modify it."
27309 test -n "\$AWK" || AWK=awk
27312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27313 # The default lists apply if the user does not specify any file.
27319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27336 # Handling of the options.
27337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27339 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27340 $as_echo "$ac_cs_version"; exit ;;
27341 --config | --confi | --conf | --con | --co | --c )
27342 $as_echo "$ac_cs_config"; exit ;;
27343 --debug | --debu | --deb | --de | --d | -d )
27345 --file | --fil | --fi | --f )
27348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27349 '') as_fn_error $? "missing file argument" ;;
27351 as_fn_append CONFIG_FILES " '$ac_optarg'"
27352 ac_need_defaults=false;;
27353 --header | --heade | --head | --hea )
27356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27358 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27359 ac_need_defaults=false;;
27361 # Conflict between --help and --header
27362 as_fn_error $? "ambiguous option: \`$1'
27363 Try \`$0 --help' for more information.";;
27364 --help | --hel | -h )
27365 $as_echo "$ac_cs_usage"; exit ;;
27366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27367 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27370 # This is an error.
27371 -*) as_fn_error $? "unrecognized option: \`$1'
27372 Try \`$0 --help' for more information." ;;
27374 *) as_fn_append ac_config_targets " $1"
27375 ac_need_defaults=false ;;
27381 ac_configure_extra_args=
27383 if $ac_cs_silent; then
27385 ac_configure_extra_args="$ac_configure_extra_args --silent"
27389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27390 if \$ac_cs_recheck; then
27391 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27393 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27394 CONFIG_SHELL='$SHELL'
27395 export CONFIG_SHELL
27400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27405 ## Running $as_me. ##
27411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27416 # Handling of arguments.
27417 for ac_config_target in $ac_config_targets
27419 case $ac_config_target in
27420 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27421 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
27422 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
27423 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
27424 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
27425 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
27426 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27427 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
27428 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
27429 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27430 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
27431 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
27432 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
27433 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
27434 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
27435 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
27436 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
27437 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
27438 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
27439 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
27440 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
27441 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
27442 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
27443 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
27444 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
27445 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
27446 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
27447 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
27448 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
27449 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
27450 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
27451 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
27452 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
27453 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
27454 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
27455 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
27456 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
27457 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
27458 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
27459 "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;;
27460 "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;;
27461 "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
27462 "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
27463 "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
27464 "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
27465 "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
27466 "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
27467 "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
27468 "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
27469 "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
27470 "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;;
27471 "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
27472 "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
27473 "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
27474 "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;;
27475 "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
27476 "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
27477 "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
27478 "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
27479 "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
27480 "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;;
27481 "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
27482 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
27483 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
27484 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
27485 "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
27486 "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
27487 "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
27488 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
27489 "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
27490 "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
27491 "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
27492 "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
27493 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
27494 "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
27495 "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
27496 "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
27497 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
27498 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
27499 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
27500 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
27501 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
27502 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
27503 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
27504 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
27505 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
27506 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
27507 "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
27508 "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
27509 "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
27510 "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
27511 "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
27512 "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
27513 "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
27514 "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
27515 "bin/tests/hashes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/hashes/Makefile" ;;
27516 "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
27517 "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
27518 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
27519 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
27520 "bin/tests/system/filter-aaaa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/filter-aaaa/Makefile" ;;
27521 "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
27522 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
27523 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
27524 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
27525 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
27526 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
27527 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
27528 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
27529 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27530 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
27531 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27532 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
27533 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
27534 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
27535 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
27536 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
27537 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
27538 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
27539 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
27540 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
27542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27547 # If the user did not use the arguments to specify the items to instantiate,
27548 # then the envvar interface is used. Set only those that are not.
27549 # We use the long form for the default assignment because of an extremely
27550 # bizarre bug on SunOS 4.1.3.
27551 if $ac_need_defaults; then
27552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27557 # Have a temporary directory for convenience. Make it in the build tree
27558 # simply because there is no reason against having it here, and in addition,
27559 # creating and moving files from /tmp can sometimes cause problems.
27560 # Hook for its removal unless debugging.
27561 # Note that there is a small window in which the directory will not be cleaned:
27562 # after its creation but before its name has been assigned to `$tmp'.
27566 trap 'exit_status=$?
27567 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27569 trap 'as_fn_exit 1' 1 2 13 15
27571 # Create a (secure) tmp directory for tmp files.
27574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27575 test -n "$tmp" && test -d "$tmp"
27578 tmp=./conf$$-$RANDOM
27579 (umask 077 && mkdir "$tmp")
27580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27582 # Set up the scripts for CONFIG_FILES section.
27583 # No need to generate them if there are no CONFIG_FILES.
27584 # This happens for instance with `./config.status config.h'.
27585 if test -n "$CONFIG_FILES"; then
27587 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27588 ac_cs_awk_getline=:
27589 ac_cs_awk_pipe_init=
27590 ac_cs_awk_read_file='
27591 while ((getline aline < (F[key])) > 0)
27594 ac_cs_awk_pipe_fini=
27596 ac_cs_awk_getline=false
27597 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27598 ac_cs_awk_read_file='
27600 print "cat " F[key] " &&"
27601 '$ac_cs_awk_pipe_init
27602 # The final `:' finishes the AND list.
27603 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27605 ac_cr=`echo X | tr X '\015'`
27606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27607 # But we know of no other shell where ac_cr would be empty at this
27608 # point, so we can use a bashism as a fallback.
27609 if test "x$ac_cr" = x; then
27610 eval ac_cr=\$\'\\r\'
27612 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27616 ac_cs_awk_cr=$ac_cr
27619 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27622 # Create commands to substitute file output variables.
27624 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27625 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27626 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27629 } >conf$$files.sh &&
27630 . ./conf$$files.sh ||
27631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27632 rm -f conf$$files.sh
27635 echo "cat >conf$$subs.awk <<_ACEOF" &&
27636 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27638 } >conf$$subs.sh ||
27639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27642 for ac_last_try in false false false false false :; do
27643 . ./conf$$subs.sh ||
27644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27646 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27647 if test $ac_delim_n = $ac_delim_num; then
27649 elif $ac_last_try; then
27650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27655 rm -f conf$$subs.sh
27657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27658 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27662 s/^/S["/; s/!.*/"]=/
27672 s/\(.\{148\}\)..*/\1/
27674 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27686 s/\(.\{148\}\)..*/\1/
27688 s/["\\]/\\&/g; s/^/"/; s/$/"/
27692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27697 ' <conf$$subs.awk | sed '
27702 ' >>$CONFIG_STATUS || ac_write_fail=1
27703 rm -f conf$$subs.awk
27704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27706 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27707 for (key in S) S_is_set[key] = 1
27709 \$ac_cs_awk_pipe_init
27713 nfields = split(line, field, "@")
27715 len = length(field[1])
27716 for (i = 2; i < nfields; i++) {
27718 keylen = length(key)
27719 if (S_is_set[key]) {
27721 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27722 len += length(value) + length(field[++i])
27727 if (nfields == 3 && !substed) {
27729 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27730 \$ac_cs_awk_read_file
27736 \$ac_cs_awk_pipe_fini
27739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27740 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27741 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27744 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27745 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27748 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27749 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27750 # trailing colons and then remove the whole line if VPATH becomes empty
27751 # (actually we leave an empty line to preserve line numbers).
27752 if test "x$srcdir" = x.; then
27753 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27772 fi # test -n "$CONFIG_FILES"
27774 # Set up the scripts for CONFIG_HEADERS section.
27775 # No need to generate them if there are no CONFIG_HEADERS.
27776 # This happens for instance with `./config.status Makefile'.
27777 if test -n "$CONFIG_HEADERS"; then
27778 cat >"$tmp/defines.awk" <<\_ACAWK ||
27782 # Transform confdefs.h into an awk script `defines.awk', embedded as
27783 # here-document in config.status, that substitutes the proper values into
27784 # config.h.in to produce config.h.
27786 # Create a delimiter string that does not exist in confdefs.h, to ease
27787 # handling of long lines.
27789 for ac_last_try in false false :; do
27790 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27791 if test -z "$ac_t"; then
27793 elif $ac_last_try; then
27794 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27800 # For the awk script, D is an array of macro values keyed by name,
27801 # likewise P contains macro parameters if any. Preserve backslash
27802 # newline sequences.
27804 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27806 s/.\{148\}/&'"$ac_delim"'/g
27809 s/^[ ]*#[ ]*define[ ][ ]*/ /
27816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27818 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27823 D["\1"]=" \3\\\\\\n"\\/p
27825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27830 s/.\{148\}/&'"$ac_delim"'/g
27835 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27838 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27840 ' <confdefs.h | sed '
27841 s/'"$ac_delim"'/"\\\
27842 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27845 for (key in D) D_is_set[key] = 1
27848 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27850 split(line, arg, " ")
27851 if (arg[1] == "#") {
27855 defundef = substr(arg[1], 2)
27858 split(mac1, mac2, "(") #)
27860 prefix = substr(line, 1, index(line, defundef) - 1)
27861 if (D_is_set[macro]) {
27862 # Preserve the white space surrounding the "#".
27863 print prefix "define", macro P[macro] D[macro]
27866 # Replace #undef with comments. This is necessary, for example,
27867 # in the case of _POSIX_SOURCE, which is predefined and required
27868 # on some systems where configure will not decide to define it.
27869 if (defundef == "undef") {
27870 print "/*", prefix defundef, macro, "*/"
27878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27879 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27880 fi # test -n "$CONFIG_HEADERS"
27883 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27888 :[FHLC]) ac_mode=$ac_tag; continue;;
27890 case $ac_mode$ac_tag in
27892 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27893 :[FH]-) ac_tag=-:-;;
27894 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27911 -) ac_f="$tmp/stdin";;
27912 *) # Look for the file first in the build tree, then in the source tree
27913 # (if the path is not absolute). The absolute path cannot be DOS-style,
27914 # because $ac_f cannot contain `:'.
27918 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27920 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27922 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27923 as_fn_append ac_file_inputs " '$ac_f'"
27926 # Let's still pretend it is `configure' which instantiates (i.e., don't
27927 # use $as_me), people would be surprised to read:
27928 # /* config.h. Generated by config.status. */
27929 configure_input='Generated from '`
27930 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27932 if test x"$ac_file" != x-; then
27933 configure_input="$ac_file. $configure_input"
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27935 $as_echo "$as_me: creating $ac_file" >&6;}
27937 # Neutralize special characters interpreted by sed in replacement strings.
27938 case $configure_input in #(
27939 *\&* | *\|* | *\\* )
27940 ac_sed_conf_input=`$as_echo "$configure_input" |
27941 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27942 *) ac_sed_conf_input=$configure_input;;
27946 *:-:* | *:-) cat >"$tmp/stdin" \
27947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27952 ac_dir=`$as_dirname -- "$ac_file" ||
27953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954 X"$ac_file" : 'X\(//\)[^/]' \| \
27955 X"$ac_file" : 'X\(//\)$' \| \
27956 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27957 $as_echo X"$ac_file" |
27958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27962 /^X\(\/\/\)[^/].*/{
27975 as_dir="$ac_dir"; as_fn_mkdir_p
27979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27981 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27982 # A ".." for each directory in $ac_dir_suffix.
27983 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27984 case $ac_top_builddir_sub in
27985 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27986 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27989 ac_abs_top_builddir=$ac_pwd
27990 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27991 # for backward compatibility:
27992 ac_top_builddir=$ac_top_build_prefix
27995 .) # We are building in place.
27997 ac_top_srcdir=$ac_top_builddir_sub
27998 ac_abs_top_srcdir=$ac_pwd ;;
27999 [\\/]* | ?:[\\/]* ) # Absolute name.
28000 ac_srcdir=$srcdir$ac_dir_suffix;
28001 ac_top_srcdir=$srcdir
28002 ac_abs_top_srcdir=$srcdir ;;
28003 *) # Relative name.
28004 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28005 ac_top_srcdir=$ac_top_build_prefix$srcdir
28006 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28008 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28019 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28024 # If the template does not know about datarootdir, expand it.
28025 # FIXME: This hack should be removed a few years after 2.60.
28026 ac_datarootdir_hack=; ac_datarootdir_seen=
28037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28038 *datarootdir*) ac_datarootdir_seen=yes;;
28039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28044 ac_datarootdir_hack='
28045 s&@datadir@&$datadir&g
28046 s&@docdir@&$docdir&g
28047 s&@infodir@&$infodir&g
28048 s&@localedir@&$localedir&g
28049 s&@mandir@&$mandir&g
28050 s&\\\${datarootdir}&$datarootdir&g' ;;
28054 # Neutralize VPATH when `$srcdir' = `.'.
28055 # Shell code in configure.ac might set extrasub.
28056 # FIXME: do we really want to maintain this feature?
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28058 ac_sed_extra="$ac_vpsub
28061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28064 s|@configure_input@|$ac_sed_conf_input|;t t
28065 s&@top_builddir@&$ac_top_builddir_sub&;t t
28066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28067 s&@srcdir@&$ac_srcdir&;t t
28068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28069 s&@top_srcdir@&$ac_top_srcdir&;t t
28070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28071 s&@builddir@&$ac_builddir&;t t
28072 s&@abs_builddir@&$ac_abs_builddir&;t t
28073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28074 s&@INSTALL@&$ac_INSTALL&;t t
28075 $ac_datarootdir_hack
28077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28078 if $ac_cs_awk_getline; then
28079 $AWK -f "$tmp/subs.awk"
28081 $AWK -f "$tmp/subs.awk" | $SHELL
28083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28085 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28086 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28087 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28089 which seems to be undefined. Please make sure it is defined" >&5
28090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28091 which seems to be undefined. Please make sure it is defined" >&2;}
28095 -) cat "$tmp/out" && rm -f "$tmp/out";;
28096 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28104 if test x"$ac_file" != x-; then
28106 $as_echo "/* $configure_input */" \
28107 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28108 } >"$tmp/config.h" \
28109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28110 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28115 mv "$tmp/config.h" "$ac_file" \
28116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28119 $as_echo "/* $configure_input */" \
28120 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28121 || as_fn_error $? "could not create -" "$LINENO" 5
28125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28126 $as_echo "$as_me: executing $ac_file commands" >&6;}
28131 case $ac_file$ac_mode in
28132 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
28140 ac_clean_files=$ac_clean_files_save
28142 test $ac_write_fail = 0 ||
28143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28146 # configure is writing to config.log, and then calls config.status.
28147 # config.status does its own redirection, appending to config.log.
28148 # Unfortunately, on DOS this fails, as config.log is still kept open
28149 # by configure, so config.status won't be able to write to it; its
28150 # output is simply discarded. So we exec the FD to /dev/null,
28151 # effectively closing config.log, so it can be properly (re)opened and
28152 # appended to by config.status. When coming back to configure, we
28153 # need to make the FD available again.
28154 if test "$no_create" != yes; then
28156 ac_config_status_args=
28157 test "$silent" = yes &&
28158 ac_config_status_args="$ac_config_status_args --quiet"
28160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28163 # would make configure fail if this is the last instruction.
28164 $ac_cs_success || as_fn_exit 1
28166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28173 # Now that the Makefiles exist we can ensure that everything is rebuilt.
28176 # Check whether --with-make-clean was given.
28177 if test "${with_make_clean+set}" = set; then :
28178 withval=$with_make_clean; make_clean="$withval"
28183 case "$make_clean" in
28189 if test "X$USE_OPENSSL" = "X"; then
28191 BIND is being built without OpenSSL. This means it will not have DNSSEC support.
28195 if test "X$OPENSSL_WARNING" != "X"; then
28197 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28198 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28200 WARNING Your OpenSSL crypto library may be vulnerable to WARNING
28201 WARNING one or more of the the following known security WARNING
28202 WARNING flaws: WARNING
28204 WARNING CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and WARNING
28205 WARNING CVE-2006-2940. WARNING
28207 WARNING It is recommended that you upgrade to OpenSSL WARNING
28208 WARNING version 0.9.8d/0.9.7l (or greater). WARNING
28210 WARNING You can disable this warning by specifying: WARNING
28212 WARNING --disable-openssl-version-check WARNING
28214 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28215 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28219 # Tell Emacs to edit this file in shell mode.