1#! /bin/sh 2# Copyright (C) 1996-2022 Internet Systems Consortium, Inc. ("ISC") 3# 4# This Source Code Form is subject to the terms of the Mozilla Public 5# License, v. 2.0. If a copy of the MPL was not distributed with this 6# file, you can obtain one at https://mozilla.org/MPL/2.0/. 7# 8# ----------------------------------------------------------------------------- 9# 10# Guess values for system-dependent variables and create Makefiles. 11# Generated by GNU Autoconf 2.69 for BIND 9.11. 12# 13# Report bugs to <info@isc.org>. 14# 15# 16# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 17# 18# 19# This configure script is free software; the Free Software Foundation 20# gives unlimited permission to copy, distribute and modify it. 21## -------------------- ## 22## M4sh Initialization. ## 23## -------------------- ## 24 25# Be more Bourne compatible 26DUALCASE=1; export DUALCASE # for MKS sh 27if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 28 emulate sh 29 NULLCMD=: 30 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31 # is contrary to our usage. Disable this feature. 32 alias -g '${1+"$@"}'='"$@"' 33 setopt NO_GLOB_SUBST 34else 35 case `(set -o) 2>/dev/null` in #( 36 *posix*) : 37 set -o posix ;; #( 38 *) : 39 ;; 40esac 41fi 42 43 44as_nl=' 45' 46export as_nl 47# Printing a long string crashes Solaris 7 /usr/bin/printf. 48as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51# Prefer a ksh shell builtin over an external printf program on Solaris, 52# but without wasting forks for bash or zsh. 53if test -z "$BASH_VERSION$ZSH_VERSION" \ 54 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 55 as_echo='print -r --' 56 as_echo_n='print -rn --' 57elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58 as_echo='printf %s\n' 59 as_echo_n='printf %s' 60else 61 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 62 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 63 as_echo_n='/usr/ucb/echo -n' 64 else 65 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66 as_echo_n_body='eval 67 arg=$1; 68 case $arg in #( 69 *"$as_nl"*) 70 expr "X$arg" : "X\\(.*\\)$as_nl"; 71 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 72 esac; 73 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 74 ' 75 export as_echo_n_body 76 as_echo_n='sh -c $as_echo_n_body as_echo' 77 fi 78 export as_echo_body 79 as_echo='sh -c $as_echo_body as_echo' 80fi 81 82# The user is always right. 83if test "${PATH_SEPARATOR+set}" != set; then 84 PATH_SEPARATOR=: 85 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 86 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 87 PATH_SEPARATOR=';' 88 } 89fi 90 91 92# IFS 93# We need space, tab and new line, in precisely that order. Quoting is 94# there to prevent editors from complaining about space-tab. 95# (If _AS_PATH_WALK were called with IFS unset, it would disable word 96# splitting by setting IFS to empty value.) 97IFS=" "" $as_nl" 98 99# Find who we are. Look in the path if we contain no directory separator. 100as_myself= 101case $0 in #(( 102 *[\\/]* ) as_myself=$0 ;; 103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 104for as_dir in $PATH 105do 106 IFS=$as_save_IFS 107 test -z "$as_dir" && as_dir=. 108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 109 done 110IFS=$as_save_IFS 111 112 ;; 113esac 114# We did not find ourselves, most probably we were run as `sh COMMAND' 115# in which case we are not to be found in the path. 116if test "x$as_myself" = x; then 117 as_myself=$0 118fi 119if test ! -f "$as_myself"; then 120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 121 exit 1 122fi 123 124# Unset variables that we do not need and which cause bugs (e.g. in 125# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 126# suppresses any "Segmentation fault" message there. '((' could 127# trigger a bug in pdksh 5.2.14. 128for as_var in BASH_ENV ENV MAIL MAILPATH 129do eval test x\${$as_var+set} = xset \ 130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 131done 132PS1='$ ' 133PS2='> ' 134PS4='+ ' 135 136# NLS nuisances. 137LC_ALL=C 138export LC_ALL 139LANGUAGE=C 140export LANGUAGE 141 142# CDPATH. 143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 144 145# Use a proper internal environment variable to ensure we don't fall 146 # into an infinite loop, continuously re-executing ourselves. 147 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 148 _as_can_reexec=no; export _as_can_reexec; 149 # We cannot yet assume a decent shell, so we have to provide a 150# neutralization value for shells without unset; and this also 151# works around shells that cannot unset nonexistent variables. 152# Preserve -v and -x to the replacement shell. 153BASH_ENV=/dev/null 154ENV=/dev/null 155(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 156case $- in # (((( 157 *v*x* | *x*v* ) as_opts=-vx ;; 158 *v* ) as_opts=-v ;; 159 *x* ) as_opts=-x ;; 160 * ) as_opts= ;; 161esac 162exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 163# Admittedly, this is quite paranoid, since all the known shells bail 164# out after a failed `exec'. 165$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 166as_fn_exit 255 167 fi 168 # We don't want this to propagate to other subprocesses. 169 { _as_can_reexec=; unset _as_can_reexec;} 170if test "x$CONFIG_SHELL" = x; then 171 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 172 emulate sh 173 NULLCMD=: 174 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 175 # is contrary to our usage. Disable this feature. 176 alias -g '\${1+\"\$@\"}'='\"\$@\"' 177 setopt NO_GLOB_SUBST 178else 179 case \`(set -o) 2>/dev/null\` in #( 180 *posix*) : 181 set -o posix ;; #( 182 *) : 183 ;; 184esac 185fi 186" 187 as_required="as_fn_return () { (exit \$1); } 188as_fn_success () { as_fn_return 0; } 189as_fn_failure () { as_fn_return 1; } 190as_fn_ret_success () { return 0; } 191as_fn_ret_failure () { return 1; } 192 193exitcode=0 194as_fn_success || { exitcode=1; echo as_fn_success failed.; } 195as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 196as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 197as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 198if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 199 200else 201 exitcode=1; echo positional parameters were not saved. 202fi 203test x\$exitcode = x0 || exit 1 204test -x / || exit 1" 205 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 206 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 207 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 208 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 209 210 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 211 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 212 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 213 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 214 PATH=/empty FPATH=/empty; export PATH FPATH 215 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 216 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 217test \$(( 1 + 1 )) = 2 || exit 1" 218 if (eval "$as_required") 2>/dev/null; then : 219 as_have_required=yes 220else 221 as_have_required=no 222fi 223 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 224 225else 226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 227as_found=false 228for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 229do 230 IFS=$as_save_IFS 231 test -z "$as_dir" && as_dir=. 232 as_found=: 233 case $as_dir in #( 234 /*) 235 for as_base in sh bash ksh sh5; do 236 # Try only shells that exist, to save several forks. 237 as_shell=$as_dir/$as_base 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 240 CONFIG_SHELL=$as_shell as_have_required=yes 241 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 242 break 2 243fi 244fi 245 done;; 246 esac 247 as_found=false 248done 249$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 250 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 251 CONFIG_SHELL=$SHELL as_have_required=yes 252fi; } 253IFS=$as_save_IFS 254 255 256 if test "x$CONFIG_SHELL" != x; then : 257 export CONFIG_SHELL 258 # We cannot yet assume a decent shell, so we have to provide a 259# neutralization value for shells without unset; and this also 260# works around shells that cannot unset nonexistent variables. 261# Preserve -v and -x to the replacement shell. 262BASH_ENV=/dev/null 263ENV=/dev/null 264(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 265case $- in # (((( 266 *v*x* | *x*v* ) as_opts=-vx ;; 267 *v* ) as_opts=-v ;; 268 *x* ) as_opts=-x ;; 269 * ) as_opts= ;; 270esac 271exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 272# Admittedly, this is quite paranoid, since all the known shells bail 273# out after a failed `exec'. 274$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 275exit 255 276fi 277 278 if test x$as_have_required = xno; then : 279 $as_echo "$0: This script requires a shell more modern than all" 280 $as_echo "$0: the shells that I found on your system." 281 if test x${ZSH_VERSION+set} = xset ; then 282 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 283 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 284 else 285 $as_echo "$0: Please tell bug-autoconf@gnu.org and info@isc.org about 286$0: your system, including any error possibly output before 287$0: this message. Then install a modern shell, or manually 288$0: run the script under such a shell if you do have one." 289 fi 290 exit 1 291fi 292fi 293fi 294SHELL=${CONFIG_SHELL-/bin/sh} 295export SHELL 296# Unset more variables known to interfere with behavior of common tools. 297CLICOLOR_FORCE= GREP_OPTIONS= 298unset CLICOLOR_FORCE GREP_OPTIONS 299 300## --------------------- ## 301## M4sh Shell Functions. ## 302## --------------------- ## 303# as_fn_unset VAR 304# --------------- 305# Portably unset VAR. 306as_fn_unset () 307{ 308 { eval $1=; unset $1;} 309} 310as_unset=as_fn_unset 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352$as_echo X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 392 eval 'as_fn_append () 393 { 394 eval $1+=\$2 395 }' 396else 397 as_fn_append () 398 { 399 eval $1=\$$1\$2 400 } 401fi # as_fn_append 402 403# as_fn_arith ARG... 404# ------------------ 405# Perform arithmetic evaluation on the ARGs, and store the result in the 406# global $as_val. Take advantage of shells that can avoid forks. The arguments 407# must be portable across $(()) and expr. 408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 409 eval 'as_fn_arith () 410 { 411 as_val=$(( $* )) 412 }' 413else 414 as_fn_arith () 415 { 416 as_val=`expr "$@" || test $? -eq 1` 417 } 418fi # as_fn_arith 419 420 421# as_fn_error STATUS ERROR [LINENO LOG_FD] 422# ---------------------------------------- 423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 425# script with STATUS, using 1 if that was 0. 426as_fn_error () 427{ 428 as_status=$1; test $as_status -eq 0 && as_status=1 429 if test "$4"; then 430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 432 fi 433 $as_echo "$as_me: error: $2" >&2 434 as_fn_exit $as_status 435} # as_fn_error 436 437if expr a : '\(a\)' >/dev/null 2>&1 && 438 test "X`expr 00001 : '.*\(...\)'`" = X001; then 439 as_expr=expr 440else 441 as_expr=false 442fi 443 444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 445 as_basename=basename 446else 447 as_basename=false 448fi 449 450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 451 as_dirname=dirname 452else 453 as_dirname=false 454fi 455 456as_me=`$as_basename -- "$0" || 457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 458 X"$0" : 'X\(//\)$' \| \ 459 X"$0" : 'X\(/\)' \| . 2>/dev/null || 460$as_echo X/"$0" | 461 sed '/^.*\/\([^/][^/]*\)\/*$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\/\)$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\).*/{ 470 s//\1/ 471 q 472 } 473 s/.*/./; q'` 474 475# Avoid depending upon Character Ranges. 476as_cr_letters='abcdefghijklmnopqrstuvwxyz' 477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 478as_cr_Letters=$as_cr_letters$as_cr_LETTERS 479as_cr_digits='0123456789' 480as_cr_alnum=$as_cr_Letters$as_cr_digits 481 482 483 as_lineno_1=$LINENO as_lineno_1a=$LINENO 484 as_lineno_2=$LINENO as_lineno_2a=$LINENO 485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 488 sed -n ' 489 p 490 /[$]LINENO/= 491 ' <$as_myself | 492 sed ' 493 s/[$]LINENO.*/&-/ 494 t lineno 495 b 496 :lineno 497 N 498 :loop 499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 500 t loop 501 s/-\n.*// 502 ' >$as_me.lineno && 503 chmod +x "$as_me.lineno" || 504 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 505 506 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 507 # already done that, so ensure we don't try to do so again and fall 508 # in an infinite loop. This has already happened in practice. 509 _as_can_reexec=no; export _as_can_reexec 510 # Don't try to exec as it changes $[0], causing all sort of problems 511 # (the dirname of $[0] is not the place where we might find the 512 # original and so on. Autoconf is especially sensitive to this). 513 . "./$as_me.lineno" 514 # Exit status is that of the last command. 515 exit 516} 517 518ECHO_C= ECHO_N= ECHO_T= 519case `echo -n x` in #((((( 520-n*) 521 case `echo 'xy\c'` in 522 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 523 xy) ECHO_C='\c';; 524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 525 ECHO_T=' ';; 526 esac;; 527*) 528 ECHO_N='-n';; 529esac 530 531rm -f conf$$ conf$$.exe conf$$.file 532if test -d conf$$.dir; then 533 rm -f conf$$.dir/conf$$.file 534else 535 rm -f conf$$.dir 536 mkdir conf$$.dir 2>/dev/null 537fi 538if (echo >conf$$.file) 2>/dev/null; then 539 if ln -s conf$$.file conf$$ 2>/dev/null; then 540 as_ln_s='ln -s' 541 # ... but there are two gotchas: 542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 544 # In both cases, we have to default to `cp -pR'. 545 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 546 as_ln_s='cp -pR' 547 elif ln conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s=ln 549 else 550 as_ln_s='cp -pR' 551 fi 552else 553 as_ln_s='cp -pR' 554fi 555rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 556rmdir conf$$.dir 2>/dev/null 557 558if mkdir -p . 2>/dev/null; then 559 as_mkdir_p='mkdir -p "$as_dir"' 560else 561 test -d ./-p && rmdir ./-p 562 as_mkdir_p=false 563fi 564 565as_test_x='test -x' 566as_executable_p=as_fn_executable_p 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574SHELL=${CONFIG_SHELL-/bin/sh} 575 576 577test -n "$DJDIR" || exec 7<&0 </dev/null 578exec 6>&1 579 580# Name of the host. 581# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 582# so uname gets run too. 583ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 584 585# 586# Initializations. 587# 588ac_default_prefix=/usr/local 589ac_clean_files= 590ac_config_libobj_dir=. 591LIBOBJS= 592cross_compiling=no 593subdirs= 594MFLAGS= 595MAKEFLAGS= 596 597# Identity of this package. 598PACKAGE_NAME='BIND' 599PACKAGE_TARNAME='bind' 600PACKAGE_VERSION='9.11' 601PACKAGE_STRING='BIND 9.11' 602PACKAGE_BUGREPORT='info@isc.org' 603PACKAGE_URL='https://www.isc.org/downloads/BIND/' 604 605# Factoring default headers for most tests. 606ac_includes_default="\ 607#include <stdio.h> 608#ifdef HAVE_SYS_TYPES_H 609# include <sys/types.h> 610#endif 611#ifdef HAVE_SYS_STAT_H 612# include <sys/stat.h> 613#endif 614#ifdef STDC_HEADERS 615# include <stdlib.h> 616# include <stddef.h> 617#else 618# ifdef HAVE_STDLIB_H 619# include <stdlib.h> 620# endif 621#endif 622#ifdef HAVE_STRING_H 623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 624# include <memory.h> 625# endif 626# include <string.h> 627#endif 628#ifdef HAVE_STRINGS_H 629# include <strings.h> 630#endif 631#ifdef HAVE_INTTYPES_H 632# include <inttypes.h> 633#endif 634#ifdef HAVE_STDINT_H 635# include <stdint.h> 636#endif 637#ifdef HAVE_UNISTD_H 638# include <unistd.h> 639#endif" 640 641ac_subst_vars='LTLIBOBJS 642LIBOBJS 643BUILD_LIBS 644BUILD_LDFLAGS 645BUILD_CPPFLAGS 646BUILD_CFLAGS 647BUILD_CC 648DLZ_DRIVER_MYSQL_LIBS 649DLZ_DRIVER_MYSQL_INCLUDES 650DLZ_SYSTEM_TEST 651DLZ_DRIVER_OBJS 652DLZ_DRIVER_SRCS 653DLZ_DRIVER_LIBS 654DLZ_DRIVER_INCLUDES 655CONTRIB_DLZ 656MYSQL_CONFIG 657PG_CONFIG 658SO_TARGETS 659SO_STRIP 660SO_LD 661SO_LDFLAGS 662SO_CFLAGS 663SO 664BIND9_CONFIGARGS 665BIND9_SRCID 666BIND9_VERSIONSHORT 667BIND9_VERSIONSTRING 668BIND9_MAJOR 669BIND9_VERSION 670BIND9_DESCRIPTION 671BIND9_PRODUCT 672BIND9_IRS_BUILDINCLUDE 673BIND9_BIND9_BUILDINCLUDE 674BIND9_LWRES_BUILDINCLUDE 675BIND9_DNS_BUILDINCLUDE 676BIND9_ISCCFG_BUILDINCLUDE 677BIND9_ISCCC_BUILDINCLUDE 678BIND9_ISC_BUILDINCLUDE 679BIND9_TOP_BUILDDIR 680LD_WRAP_TESTS 681UNITTESTS 682KYUA 683CMOCKA_LIBS 684CMOCKA_CFLAGS 685LIBIDN2_LIBS 686LIBIDN2_CFLAGS 687IDNKIT_LIBS 688XSLT_DOCBOOK_MAKETOC_XHTML 689XSLT_DOCBOOK_MAKETOC_HTML 690XSLT_DOCBOOK_CHUNKTOC_XHTML 691XSLT_DOCBOOK_CHUNKTOC_HTML 692XSLT_DOCBOOK_CHUNK_XHTML 693XSLT_DOCBOOK_CHUNK_HTML 694XSLT_DOCBOOK_STYLE_MAN 695XSLT_DOCBOOK_STYLE_XHTML 696XSLT_DOCBOOK_STYLE_HTML 697CURL 698DOXYGEN 699XMLLINT 700XSLTPROC 701PANDOC 702W3M 703DBLATEX 704PDFLATEX 705LATEX 706DNSTAPTARGETS 707DNSTAPOBJS 708DNSTAPSRCS 709DNSTAP 710FSTRM_CAPTURE 711PROTOC_C 712ISC_PLATFORM_BUSYWAITNOP 713ISC_ARCH_DIR 714ISC_PLATFORM_USEMACASM 715ISC_PLATFORM_USESTDASM 716ISC_PLATFORM_USEOSFASM 717ISC_PLATFORM_USEGCCASM 718ISC_PLATFORM_HAVEATOMICSTOREQ 719ISC_PLATFORM_HAVEATOMICSTORE 720ISC_PLATFORM_HAVECMPXCHG 721ISC_PLATFORM_HAVEXADDQ 722ISC_PLATFORM_HAVEXADD 723ISC_PLATFORM_HAVESTDATOMIC 724ISC_PLATFORM_HAVEIFNAMETOINDEX 725ISC_PLATFORM_HAVESTRINGSH 726ISC_PLATFORM_BRACEPTHREADONCEINIT 727IRS_PLATFORM_USEDECLSPEC 728LWRES_PLATFORM_USEDECLSPEC 729ISC_PLATFORM_USEDECLSPEC 730ISC_PLATFORM_RLIMITTYPE 731ISC_PLATFORM_HAVESTATNSEC 732ISC_PLATFORM_HAVESYSUNH 733DST_EXTRA_SRCS 734DST_EXTRA_OBJS 735ISC_EXTRA_SRCS 736ISC_EXTRA_OBJS 737LWRES_PLATFORM_NEEDVSNPRINTF 738LWRES_PLATFORM_NEEDSPRINTF 739ISC_PLATFORM_NEEDVSNPRINTF 740ISC_PLATFORM_NEEDSPRINTF 741ISC_PLATFORM_NEEDFPRINTF 742ISC_PLATFORM_NEEDPRINTF 743READLINE_LIB 744ISC_PLATFORM_NEEDSTRCASESTR 745ISC_PLATFORM_NEEDSTRLCAT 746LWRES_PLATFORM_NEEDSTRLCPY 747ISC_PLATFORM_NEEDSTRLCPY 748GENRANDOMLIB 749LWRES_PLATFORM_NEEDSTRTOUL 750ISC_PLATFORM_NEEDSTRTOUL 751ISC_PLATFORM_NEEDMEMMOVE 752ISC_PLATFORM_NEEDSTRSEP 753ISC_IRS_GETNAMEINFOSOCKLEN 754ISC_LWRES_GETNAMEINFOPROTO 755ISC_LWRES_GETADDRINFOPROTO 756ISC_LWRES_GETIPNODEPROTO 757ISC_LWRES_NEEDHERRNO 758ISC_LWRES_GETHOSTBYADDRVOID 759ISC_LWRES_ENDNETENTINT 760ISC_LWRES_SETNETENTINT 761ISC_LWRES_GETNETBYADDRINADDR 762ISC_LWRES_ENDHOSTENTINT 763ISC_LWRES_SETHOSTENTINT 764ISC_LWRES_NEEDRRSETINFO 765ISC_IRS_NEEDADDRINFO 766ISC_LWRES_NEEDADDRINFO 767ISC_PLATFORM_HAVETFO 768ISC_PLATFORM_NEEDPORTT 769ISC_PLATFORM_MSGHDRFLAVOR 770LWRES_PLATFORM_HAVESALEN 771ISC_PLATFORM_HAVESALEN 772ISC_PLATFORM_NEEDPTON 773ISC_PLATFORM_NEEDNTOP 774ISC_PLATFORM_HAVEIF_LADDRCONF 775ISC_PLATFORM_HAVEIF_LADDRREQ 776ISC_PLATFORM_HAVESCOPEID 777LWRES_HAVE_SIN6_SCOPE_ID 778ISC_IPV6_C 779ISC_ISCIPV6_O 780ISC_IPV6_O 781ISC_IPV6_H 782ISC_PLATFORM_HAVESOCKADDRSTORAGE 783ISC_PLATFORM_FIXIN6ISADDR 784ISC_PLATFORM_HAVEIN6PKTINFO 785LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 786ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 787LWRES_PLATFORM_NEEDIN6ADDRANY 788ISC_PLATFORM_NEEDIN6ADDRANY 789LWRES_PLATFORM_HAVEINADDR6 790ISC_PLATFORM_HAVEINADDR6 791LWRES_PLATFORM_NEEDNETINET6IN6H 792ISC_PLATFORM_NEEDNETINET6IN6H 793LWRES_PLATFORM_NEEDNETINETIN6H 794ISC_PLATFORM_NEEDNETINETIN6H 795LWRES_PLATFORM_HAVEIPV6 796ISC_PLATFORM_HAVEIPV6 797BIND9_CO_RULE 798LIBTOOL_IN_MAIN 799LIBTOOL_ALLOW_UNDEFINED 800LIBTOOL_MODE_UNINSTALL 801LIBTOOL_MODE_LINK 802LIBTOOL_MODE_INSTALL 803LIBTOOL_MODE_COMPILE 804LIBTOOL_MKDEP_SED 805SA 806A 807O 808ALWAYS_MAKE_SYMTABLE 809MKSYMTBL_PROGRAM 810ISC_PLATFORM_USEBACKTRACE 811PURIFY 812purify_path 813IRIX_DNSSEC_WARNINGS_HACK 814MKDEPPROG 815MKDEPCFLAGS 816MKDEPCC 817ZLIB 818JSONSTATS 819XMLSTATS 820LIBXML2_LIBS 821LIBXML2_CFLAGS 822NZDTARGETS 823NZDSRCS 824NZD_TOOLS 825PKCS11_TEST 826PKCS11_ED25519 827PKCS11_GOST 828PKCS11_ECDSA 829CRYPTO 830PKCS11LINKSRCS 831PKCS11LINKOBJS 832PKCS11_PROVIDER 833ISC_ISCPK11_API_O 834ISC_ISCPK11_API_C 835ISC_PK11_RESULT_O 836ISC_PK11_RESULT_C 837ISC_PK11_API_O 838ISC_PK11_API_C 839ISC_PK11_O 840ISC_PK11_C 841PKCS11_ENGINE 842PKCS11_TOOLS 843USE_PKCS11 844ISC_OPENSSL_LIBS 845ISC_OPENSSL_INC 846ISC_PLATFORM_OPENSSLHASH 847ISC_PLATFORM_WANTAES 848OPENSSL_GOST 849OPENSSL_ED25519 850OPENSSL_ECDSA 851OPENSSLLINKSRCS 852OPENSSLLINKOBJS 853OPENSSLGOSTLINKSRCS 854OPENSSLGOSTLINKOBJS 855OPENSSLEDDSALINKSRCS 856OPENSSLEDDSALINKOBJS 857OPENSSLECDSALINKSRCS 858OPENSSLECDSALINKOBJS 859DST_OPENSSL_INC 860INSTALL_LIBRARY 861ISC_THREAD_DIR 862THREADOPTSRCS 863THREADOPTOBJS 864ISC_PLATFORM_USETHREADS 865ALWAYS_DEFINES 866CHECK_DSA 867DNS_CRYPTO_LIBS 868DNS_GSSAPI_LIBS 869DST_GSSAPI_INC 870USE_GSSAPI 871ISC_PLATFORM_KRB5HEADER 872ISC_PLATFORM_GSSAPI_KRB5_HEADER 873ISC_PLATFORM_GSSAPIHEADER 874ISC_PLATFORM_HAVEGSSAPI 875KRB5_CONFIG 876GEOIPLINKOBJS 877GEOIPLINKSRCS 878GEOIP2LINKOBJS 879GEOIP2LINKSRCS 880MAXMINDDB_PREFIX 881MAXMINDDB_LIBS 882MAXMINDDB_CFLAGS 883LWRES_PLATFORM_NEEDSYSSELECTH 884ISC_PLATFORM_NEEDSYSSELECTH 885ISC_PLATFORM_HAVEDEVPOLL 886ISC_PLATFORM_HAVEEPOLL 887ISC_PLATFORM_HAVEKQUEUE 888ISC_PLATFORM_HAVELIFCONF 889ISC_PLATFORM_NORETURN_POST 890ISC_PLATFORM_NORETURN_PRE 891ISC_PLATFORM_HAVELONGLONG 892ISC_SOCKADDR_LEN_T 893expanded_sysconfdir 894PYTHON_INSTALL_LIB 895PYTHON_INSTALL_DIR 896PYTHON_TOOLS 897KEYMGR 898COVERAGE 899CHECKDS 900PYTHON 901PERL 902ETAGS 903LN 904ARFLAGS 905XTARGETS 906PKG_CONFIG_LIBDIR 907PKG_CONFIG_PATH 908PKG_CONFIG 909BACKTRACECFLAGS 910CCNOOPT 911CCOPT 912STD_CWARNINGS 913STD_CDEFINES 914STD_CINCLUDES 915INSTALL_DATA 916INSTALL_SCRIPT 917INSTALL_PROGRAM 918CPP 919LT_SYS_LIBRARY_PATH 920OTOOL64 921OTOOL 922LIPO 923NMEDIT 924DSYMUTIL 925MANIFEST_TOOL 926AWK 927RANLIB 928STRIP 929ac_ct_AR 930AR 931DLLTOOL 932OBJDUMP 933LN_S 934NM 935ac_ct_DUMPBIN 936DUMPBIN 937LD 938FGREP 939EGREP 940GREP 941SED 942OBJEXT 943EXEEXT 944ac_ct_CC 945CPPFLAGS 946LDFLAGS 947CFLAGS 948CC 949LIBTOOL 950LFS_LIBS 951LFS_LDFLAGS 952LFS_CFLAGS 953SET_MAKE 954host_os 955host_vendor 956host_cpu 957host 958build_os 959build_vendor 960build_cpu 961build 962target_alias 963host_alias 964build_alias 965LIBS 966ECHO_T 967ECHO_N 968ECHO_C 969DEFS 970mandir 971localedir 972libdir 973psdir 974pdfdir 975dvidir 976htmldir 977infodir 978docdir 979oldincludedir 980includedir 981localstatedir 982sharedstatedir 983sysconfdir 984datadir 985datarootdir 986libexecdir 987sbindir 988bindir 989program_transform_name 990prefix 991exec_prefix 992PACKAGE_URL 993PACKAGE_BUGREPORT 994PACKAGE_STRING 995PACKAGE_VERSION 996PACKAGE_TARNAME 997PACKAGE_NAME 998PATH_SEPARATOR 999SHELL' 1000ac_subst_files='BIND9_MAKE_INCLUDES 1001BIND9_MAKE_RULES 1002LIBISC_API 1003LIBISCCC_API 1004LIBISCCFG_API 1005LIBDNS_API 1006LIBDNS_MAPAPI 1007LIBBIND9_API 1008LIBLWRES_API 1009LIBIRS_API 1010DLZ_DRIVER_RULES' 1011ac_user_opts=' 1012enable_option_checking 1013enable_shared 1014enable_static 1015with_pic 1016enable_fast_install 1017with_aix_soname 1018with_gnu_ld 1019with_sysroot 1020enable_libtool_lock 1021enable_libbind 1022enable_buffer_useinline 1023enable_warn_shadow 1024enable_warn_error 1025enable_developer 1026enable_afl 1027enable_seccomp 1028with_python 1029with_python_install_dir 1030enable_kqueue 1031enable_epoll 1032enable_devpoll 1033with_geoip 1034with_geoip2 1035with_gssapi 1036with_randomdev 1037enable_threads 1038with_locktype 1039with_libtool 1040enable_native_pkcs11 1041with_openssl 1042with_pkcs11 1043with_ecdsa 1044with_gost 1045with_eddsa 1046with_aes 1047enable_openssl_hash 1048with_cc_alg 1049with_lmdb 1050with_libxml2 1051with_libjson 1052with_zlib 1053enable_largefile 1054with_purify 1055with_gperftools_profiler 1056enable_backtrace 1057enable_symtable 1058enable_ipv6 1059with_kame 1060enable_tcp_fastopen 1061enable_getifaddrs 1062with_readline 1063enable_chroot 1064enable_linux_caps 1065with_rlimtype 1066enable_atomic 1067enable_fixed_rrset 1068enable_rpz_nsip 1069enable_rpz_nsdname 1070enable_filter_aaaa 1071enable_dnstap 1072with_protobuf_c 1073with_libfstrm 1074with_docbook_xsl 1075with_idnkit 1076with_libiconv 1077with_iconv 1078with_idnlib 1079with_libidn2 1080with_cmocka 1081with_tuning 1082enable_querytrace 1083with_dlopen 1084with_dlz_postgres 1085with_dlz_mysql 1086with_dlz_bdb 1087with_dlz_filesystem 1088with_dlz_ldap 1089with_dlz_odbc 1090with_dlz_stub 1091with_make_clean 1092enable_full_report 1093' 1094 ac_precious_vars='build_alias 1095host_alias 1096target_alias 1097CC 1098CFLAGS 1099LDFLAGS 1100LIBS 1101CPPFLAGS 1102LT_SYS_LIBRARY_PATH 1103CPP 1104PKG_CONFIG 1105PKG_CONFIG_PATH 1106PKG_CONFIG_LIBDIR 1107PYTHON 1108MAXMINDDB_CFLAGS 1109MAXMINDDB_LIBS 1110MAXMINDDB_PREFIX 1111LIBXML2_CFLAGS 1112LIBXML2_LIBS 1113CMOCKA_CFLAGS 1114CMOCKA_LIBS 1115KYUA' 1116 1117 1118# Initialize some variables set by options. 1119ac_init_help= 1120ac_init_version=false 1121ac_unrecognized_opts= 1122ac_unrecognized_sep= 1123# The variables have the same names as the options, with 1124# dashes changed to underlines. 1125cache_file=/dev/null 1126exec_prefix=NONE 1127no_create= 1128no_recursion= 1129prefix=NONE 1130program_prefix=NONE 1131program_suffix=NONE 1132program_transform_name=s,x,x, 1133silent= 1134site= 1135srcdir= 1136verbose= 1137x_includes=NONE 1138x_libraries=NONE 1139 1140# Installation directory options. 1141# These are left unexpanded so users can "make install exec_prefix=/foo" 1142# and all the variables that are supposed to be based on exec_prefix 1143# by default will actually change. 1144# Use braces instead of parens because sh, perl, etc. also accept them. 1145# (The list follows the same order as the GNU Coding Standards.) 1146bindir='${exec_prefix}/bin' 1147sbindir='${exec_prefix}/sbin' 1148libexecdir='${exec_prefix}/libexec' 1149datarootdir='${prefix}/share' 1150datadir='${datarootdir}' 1151sysconfdir='${prefix}/etc' 1152sharedstatedir='${prefix}/com' 1153localstatedir='${prefix}/var' 1154includedir='${prefix}/include' 1155oldincludedir='/usr/include' 1156docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1157infodir='${datarootdir}/info' 1158htmldir='${docdir}' 1159dvidir='${docdir}' 1160pdfdir='${docdir}' 1161psdir='${docdir}' 1162libdir='${exec_prefix}/lib' 1163localedir='${datarootdir}/locale' 1164mandir='${datarootdir}/man' 1165 1166ac_prev= 1167ac_dashdash= 1168for ac_option 1169do 1170 # If the previous option needs an argument, assign it. 1171 if test -n "$ac_prev"; then 1172 eval $ac_prev=\$ac_option 1173 ac_prev= 1174 continue 1175 fi 1176 1177 case $ac_option in 1178 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1179 *=) ac_optarg= ;; 1180 *) ac_optarg=yes ;; 1181 esac 1182 1183 # Accept the important Cygnus configure options, so we can diagnose typos. 1184 1185 case $ac_dashdash$ac_option in 1186 --) 1187 ac_dashdash=yes ;; 1188 1189 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1190 ac_prev=bindir ;; 1191 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1192 bindir=$ac_optarg ;; 1193 1194 -build | --build | --buil | --bui | --bu) 1195 ac_prev=build_alias ;; 1196 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1197 build_alias=$ac_optarg ;; 1198 1199 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1200 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1201 ac_prev=cache_file ;; 1202 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1203 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1204 cache_file=$ac_optarg ;; 1205 1206 --config-cache | -C) 1207 cache_file=config.cache ;; 1208 1209 -datadir | --datadir | --datadi | --datad) 1210 ac_prev=datadir ;; 1211 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1212 datadir=$ac_optarg ;; 1213 1214 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1215 | --dataroo | --dataro | --datar) 1216 ac_prev=datarootdir ;; 1217 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1218 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1219 datarootdir=$ac_optarg ;; 1220 1221 -disable-* | --disable-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error $? "invalid feature name: $ac_useropt" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230"enable_$ac_useropt" 1231"*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval enable_$ac_useropt=no ;; 1236 1237 -docdir | --docdir | --docdi | --doc | --do) 1238 ac_prev=docdir ;; 1239 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1240 docdir=$ac_optarg ;; 1241 1242 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1243 ac_prev=dvidir ;; 1244 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1245 dvidir=$ac_optarg ;; 1246 1247 -enable-* | --enable-*) 1248 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1249 # Reject names that are not valid shell variable names. 1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1251 as_fn_error $? "invalid feature name: $ac_useropt" 1252 ac_useropt_orig=$ac_useropt 1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1254 case $ac_user_opts in 1255 *" 1256"enable_$ac_useropt" 1257"*) ;; 1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1259 ac_unrecognized_sep=', ';; 1260 esac 1261 eval enable_$ac_useropt=\$ac_optarg ;; 1262 1263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1265 | --exec | --exe | --ex) 1266 ac_prev=exec_prefix ;; 1267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1269 | --exec=* | --exe=* | --ex=*) 1270 exec_prefix=$ac_optarg ;; 1271 1272 -gas | --gas | --ga | --g) 1273 # Obsolete; use --with-gas. 1274 with_gas=yes ;; 1275 1276 -help | --help | --hel | --he | -h) 1277 ac_init_help=long ;; 1278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1279 ac_init_help=recursive ;; 1280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1281 ac_init_help=short ;; 1282 1283 -host | --host | --hos | --ho) 1284 ac_prev=host_alias ;; 1285 -host=* | --host=* | --hos=* | --ho=*) 1286 host_alias=$ac_optarg ;; 1287 1288 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1289 ac_prev=htmldir ;; 1290 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1291 | --ht=*) 1292 htmldir=$ac_optarg ;; 1293 1294 -includedir | --includedir | --includedi | --included | --include \ 1295 | --includ | --inclu | --incl | --inc) 1296 ac_prev=includedir ;; 1297 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1298 | --includ=* | --inclu=* | --incl=* | --inc=*) 1299 includedir=$ac_optarg ;; 1300 1301 -infodir | --infodir | --infodi | --infod | --info | --inf) 1302 ac_prev=infodir ;; 1303 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1304 infodir=$ac_optarg ;; 1305 1306 -libdir | --libdir | --libdi | --libd) 1307 ac_prev=libdir ;; 1308 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1309 libdir=$ac_optarg ;; 1310 1311 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1312 | --libexe | --libex | --libe) 1313 ac_prev=libexecdir ;; 1314 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1315 | --libexe=* | --libex=* | --libe=*) 1316 libexecdir=$ac_optarg ;; 1317 1318 -localedir | --localedir | --localedi | --localed | --locale) 1319 ac_prev=localedir ;; 1320 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1321 localedir=$ac_optarg ;; 1322 1323 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1324 | --localstate | --localstat | --localsta | --localst | --locals) 1325 ac_prev=localstatedir ;; 1326 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1327 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1328 localstatedir=$ac_optarg ;; 1329 1330 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1331 ac_prev=mandir ;; 1332 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1333 mandir=$ac_optarg ;; 1334 1335 -nfp | --nfp | --nf) 1336 # Obsolete; use --without-fp. 1337 with_fp=no ;; 1338 1339 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1340 | --no-cr | --no-c | -n) 1341 no_create=yes ;; 1342 1343 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1344 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1345 no_recursion=yes ;; 1346 1347 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1348 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1349 | --oldin | --oldi | --old | --ol | --o) 1350 ac_prev=oldincludedir ;; 1351 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1352 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1353 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1354 oldincludedir=$ac_optarg ;; 1355 1356 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1357 ac_prev=prefix ;; 1358 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1359 prefix=$ac_optarg ;; 1360 1361 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1362 | --program-pre | --program-pr | --program-p) 1363 ac_prev=program_prefix ;; 1364 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1365 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1366 program_prefix=$ac_optarg ;; 1367 1368 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1369 | --program-suf | --program-su | --program-s) 1370 ac_prev=program_suffix ;; 1371 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1372 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1373 program_suffix=$ac_optarg ;; 1374 1375 -program-transform-name | --program-transform-name \ 1376 | --program-transform-nam | --program-transform-na \ 1377 | --program-transform-n | --program-transform- \ 1378 | --program-transform | --program-transfor \ 1379 | --program-transfo | --program-transf \ 1380 | --program-trans | --program-tran \ 1381 | --progr-tra | --program-tr | --program-t) 1382 ac_prev=program_transform_name ;; 1383 -program-transform-name=* | --program-transform-name=* \ 1384 | --program-transform-nam=* | --program-transform-na=* \ 1385 | --program-transform-n=* | --program-transform-=* \ 1386 | --program-transform=* | --program-transfor=* \ 1387 | --program-transfo=* | --program-transf=* \ 1388 | --program-trans=* | --program-tran=* \ 1389 | --progr-tra=* | --program-tr=* | --program-t=*) 1390 program_transform_name=$ac_optarg ;; 1391 1392 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1393 ac_prev=pdfdir ;; 1394 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1395 pdfdir=$ac_optarg ;; 1396 1397 -psdir | --psdir | --psdi | --psd | --ps) 1398 ac_prev=psdir ;; 1399 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1400 psdir=$ac_optarg ;; 1401 1402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1403 | -silent | --silent | --silen | --sile | --sil) 1404 silent=yes ;; 1405 1406 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1407 ac_prev=sbindir ;; 1408 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1409 | --sbi=* | --sb=*) 1410 sbindir=$ac_optarg ;; 1411 1412 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1413 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1414 | --sharedst | --shareds | --shared | --share | --shar \ 1415 | --sha | --sh) 1416 ac_prev=sharedstatedir ;; 1417 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1418 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1419 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1420 | --sha=* | --sh=*) 1421 sharedstatedir=$ac_optarg ;; 1422 1423 -site | --site | --sit) 1424 ac_prev=site ;; 1425 -site=* | --site=* | --sit=*) 1426 site=$ac_optarg ;; 1427 1428 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1429 ac_prev=srcdir ;; 1430 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1431 srcdir=$ac_optarg ;; 1432 1433 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1434 | --syscon | --sysco | --sysc | --sys | --sy) 1435 ac_prev=sysconfdir ;; 1436 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1437 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1438 sysconfdir=$ac_optarg ;; 1439 1440 -target | --target | --targe | --targ | --tar | --ta | --t) 1441 ac_prev=target_alias ;; 1442 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1443 target_alias=$ac_optarg ;; 1444 1445 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1446 verbose=yes ;; 1447 1448 -version | --version | --versio | --versi | --vers | -V) 1449 ac_init_version=: ;; 1450 1451 -with-* | --with-*) 1452 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1453 # Reject names that are not valid shell variable names. 1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1455 as_fn_error $? "invalid package name: $ac_useropt" 1456 ac_useropt_orig=$ac_useropt 1457 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1458 case $ac_user_opts in 1459 *" 1460"with_$ac_useropt" 1461"*) ;; 1462 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1463 ac_unrecognized_sep=', ';; 1464 esac 1465 eval with_$ac_useropt=\$ac_optarg ;; 1466 1467 -without-* | --without-*) 1468 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1469 # Reject names that are not valid shell variable names. 1470 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1471 as_fn_error $? "invalid package name: $ac_useropt" 1472 ac_useropt_orig=$ac_useropt 1473 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1474 case $ac_user_opts in 1475 *" 1476"with_$ac_useropt" 1477"*) ;; 1478 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1479 ac_unrecognized_sep=', ';; 1480 esac 1481 eval with_$ac_useropt=no ;; 1482 1483 --x) 1484 # Obsolete; use --with-x. 1485 with_x=yes ;; 1486 1487 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1488 | --x-incl | --x-inc | --x-in | --x-i) 1489 ac_prev=x_includes ;; 1490 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1491 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1492 x_includes=$ac_optarg ;; 1493 1494 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1495 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1496 ac_prev=x_libraries ;; 1497 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1498 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1499 x_libraries=$ac_optarg ;; 1500 1501 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1502Try \`$0 --help' for more information" 1503 ;; 1504 1505 *=*) 1506 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1507 # Reject names that are not valid shell variable names. 1508 case $ac_envvar in #( 1509 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1510 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1511 esac 1512 eval $ac_envvar=\$ac_optarg 1513 export $ac_envvar ;; 1514 1515 *) 1516 # FIXME: should be removed in autoconf 3.0. 1517 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1518 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1519 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1520 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1521 ;; 1522 1523 esac 1524done 1525 1526if test -n "$ac_prev"; then 1527 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1528 as_fn_error $? "missing argument to $ac_option" 1529fi 1530 1531if test -n "$ac_unrecognized_opts"; then 1532 case $enable_option_checking in 1533 no) ;; 1534 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1535 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1536 esac 1537fi 1538 1539# Check all directory arguments for consistency. 1540for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1541 datadir sysconfdir sharedstatedir localstatedir includedir \ 1542 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1543 libdir localedir mandir 1544do 1545 eval ac_val=\$$ac_var 1546 # Remove trailing slashes. 1547 case $ac_val in 1548 */ ) 1549 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1550 eval $ac_var=\$ac_val;; 1551 esac 1552 # Be sure to have absolute directory names. 1553 case $ac_val in 1554 [\\/$]* | ?:[\\/]* ) continue;; 1555 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1556 esac 1557 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1558done 1559 1560# There might be people who depend on the old broken behavior: `$host' 1561# used to hold the argument of --host etc. 1562# FIXME: To remove some day. 1563build=$build_alias 1564host=$host_alias 1565target=$target_alias 1566 1567# FIXME: To remove some day. 1568if test "x$host_alias" != x; then 1569 if test "x$build_alias" = x; then 1570 cross_compiling=maybe 1571 elif test "x$build_alias" != "x$host_alias"; then 1572 cross_compiling=yes 1573 fi 1574fi 1575 1576ac_tool_prefix= 1577test -n "$host_alias" && ac_tool_prefix=$host_alias- 1578 1579test "$silent" = yes && exec 6>/dev/null 1580 1581 1582ac_pwd=`pwd` && test -n "$ac_pwd" && 1583ac_ls_di=`ls -di .` && 1584ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1585 as_fn_error $? "working directory cannot be determined" 1586test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1587 as_fn_error $? "pwd does not report name of working directory" 1588 1589 1590# Find the source files, if location was not specified. 1591if test -z "$srcdir"; then 1592 ac_srcdir_defaulted=yes 1593 # Try the directory containing this script, then the parent directory. 1594 ac_confdir=`$as_dirname -- "$as_myself" || 1595$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1596 X"$as_myself" : 'X\(//\)[^/]' \| \ 1597 X"$as_myself" : 'X\(//\)$' \| \ 1598 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1599$as_echo X"$as_myself" | 1600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1601 s//\1/ 1602 q 1603 } 1604 /^X\(\/\/\)[^/].*/{ 1605 s//\1/ 1606 q 1607 } 1608 /^X\(\/\/\)$/{ 1609 s//\1/ 1610 q 1611 } 1612 /^X\(\/\).*/{ 1613 s//\1/ 1614 q 1615 } 1616 s/.*/./; q'` 1617 srcdir=$ac_confdir 1618 if test ! -r "$srcdir/$ac_unique_file"; then 1619 srcdir=.. 1620 fi 1621else 1622 ac_srcdir_defaulted=no 1623fi 1624if test ! -r "$srcdir/$ac_unique_file"; then 1625 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1626 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1627fi 1628ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1629ac_abs_confdir=`( 1630 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1631 pwd)` 1632# When building in place, set srcdir=. 1633if test "$ac_abs_confdir" = "$ac_pwd"; then 1634 srcdir=. 1635fi 1636# Remove unnecessary trailing slashes from srcdir. 1637# Double slashes in file names in object file debugging info 1638# mess up M-x gdb in Emacs. 1639case $srcdir in 1640*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1641esac 1642for ac_var in $ac_precious_vars; do 1643 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1644 eval ac_env_${ac_var}_value=\$${ac_var} 1645 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1646 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1647done 1648 1649# 1650# Report the --help message. 1651# 1652if test "$ac_init_help" = "long"; then 1653 # Omit some internal or obsolete options to make the list less imposing. 1654 # This message is too long to be a string in the A/UX 3.1 sh. 1655 cat <<_ACEOF 1656\`configure' configures BIND 9.11 to adapt to many kinds of systems. 1657 1658Usage: $0 [OPTION]... [VAR=VALUE]... 1659 1660To assign environment variables (e.g., CC, CFLAGS...), specify them as 1661VAR=VALUE. See below for descriptions of some of the useful variables. 1662 1663Defaults for the options are specified in brackets. 1664 1665Configuration: 1666 -h, --help display this help and exit 1667 --help=short display options specific to this package 1668 --help=recursive display the short help of all the included packages 1669 -V, --version display version information and exit 1670 -q, --quiet, --silent do not print \`checking ...' messages 1671 --cache-file=FILE cache test results in FILE [disabled] 1672 -C, --config-cache alias for \`--cache-file=config.cache' 1673 -n, --no-create do not create output files 1674 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1675 1676Installation directories: 1677 --prefix=PREFIX install architecture-independent files in PREFIX 1678 [$ac_default_prefix] 1679 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1680 [PREFIX] 1681 1682By default, \`make install' will install all the files in 1683\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1684an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1685for instance \`--prefix=\$HOME'. 1686 1687For better control, use the options below. 1688 1689Fine tuning of the installation directories: 1690 --bindir=DIR user executables [EPREFIX/bin] 1691 --sbindir=DIR system admin executables [EPREFIX/sbin] 1692 --libexecdir=DIR program executables [EPREFIX/libexec] 1693 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1694 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1695 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1696 --libdir=DIR object code libraries [EPREFIX/lib] 1697 --includedir=DIR C header files [PREFIX/include] 1698 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1699 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1700 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1701 --infodir=DIR info documentation [DATAROOTDIR/info] 1702 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1703 --mandir=DIR man documentation [DATAROOTDIR/man] 1704 --docdir=DIR documentation root [DATAROOTDIR/doc/bind] 1705 --htmldir=DIR html documentation [DOCDIR] 1706 --dvidir=DIR dvi documentation [DOCDIR] 1707 --pdfdir=DIR pdf documentation [DOCDIR] 1708 --psdir=DIR ps documentation [DOCDIR] 1709_ACEOF 1710 1711 cat <<\_ACEOF 1712 1713System types: 1714 --build=BUILD configure for building on BUILD [guessed] 1715 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1716_ACEOF 1717fi 1718 1719if test -n "$ac_init_help"; then 1720 case $ac_init_help in 1721 short | recursive ) echo "Configuration of BIND 9.11:";; 1722 esac 1723 cat <<\_ACEOF 1724 1725Optional Features: 1726 --disable-option-checking ignore unrecognized --enable/--with options 1727 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1728 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1729 --enable-shared[=PKGS] build shared libraries [default=yes] 1730 --enable-static[=PKGS] build static libraries [default=yes] 1731 --enable-fast-install[=PKGS] 1732 optimize for fast installation [default=yes] 1733 --disable-libtool-lock avoid locking (might break parallel builds) 1734 --enable-libbind deprecated 1735 --enable-buffer-useinline 1736 define ISC_BUFFER_USEINLINE when compiling 1737 [[default=yes]] 1738 --enable-warn-shadow turn on -Wshadow when compiling 1739 --enable-warn-error turn on -Werror when compiling 1740 --enable-developer enable developer build settings 1741 --enable-afl enable American Fuzzy Lop test harness [default=no] 1742 --enable-seccomp enable support for libseccomp system call filtering 1743 [default=no] 1744 --enable-kqueue use BSD kqueue when available [default=yes] 1745 --enable-epoll use Linux epoll when available [default=auto] 1746 --enable-devpoll use /dev/poll when available [default=yes] 1747 --enable-threads enable multithreading 1748 --enable-native-pkcs11 use native PKCS11 for all crypto [default=no] 1749 --enable-openssl-hash use OpenSSL for hash functions [default=no] 1750 --enable-largefile 64-bit file support 1751 --enable-backtrace log stack backtrace on abort [default=yes] 1752 --enable-symtable use internal symbol table for backtrace 1753 [all|minimal(default)|none] 1754 --enable-ipv6 use IPv6 [default=autodetect] 1755 --disable-tcp-fastopen disable TCP Fast Open support [default=autodetect] 1756 --enable-getifaddrs enable the use of getifaddrs() [yes|no]. 1757 --disable-chroot disable chroot 1758 --disable-linux-caps disable linux capabilities 1759 --enable-atomic enable machine specific atomic operations 1760 [default=autodetect] 1761 --enable-fixed-rrset enable fixed rrset ordering [default=no] 1762 --disable-rpz-nsip disable rpz nsip rules [default=enabled] 1763 --disable-rpz-nsdname disable rpz nsdname rules [default=enabled] 1764 --enable-filter-aaaa enable filtering of AAAA records [default=no] 1765 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c) 1766 --enable-querytrace enable very verbose query trace logging [default=no] 1767 --enable-full-report report values of all configure options 1768 1769Optional Packages: 1770 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1771 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1772 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1773 both] 1774 --with-aix-soname=aix|svr4|both 1775 shared library versioning (aka "SONAME") variant to 1776 provide on AIX, [default=aix]. 1777 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1778 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1779 compiler's sysroot if not specified). 1780 --with-python=PATH specify path to Python interpreter 1781 --with-python-install-dir=PATH 1782 installation directory for Python modules 1783 --with-geoip=PATH Build with legacy GeoIP support (yes|no|path) 1784 --with-geoip2=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path) 1785 [default=no] 1786 --with-gssapi=PATH|/path/krb5-config 1787 Specify path for system-supplied GSSAPI 1788 [default=auto] 1789 --with-randomdev=PATH Specify path for random device 1790 --with-locktype=ARG Specify mutex lock type (adaptive or standard) 1791 --with-libtool use GNU libtool 1792 --with-openssl=PATH Build with OpenSSL [yes|no|path]. (Crypto is 1793 required for DNSSEC) 1794 --with-pkcs11=PATH Build with PKCS11 support [yes|no|path] (PATH is for 1795 the PKCS11 provider) 1796 --with-ecdsa Crypto ECDSA 1797 --with-gost Crypto GOST [yes|no|raw|asn1]. 1798 --with-eddsa Crypto EDDSA [yes|all|no]. 1799 --with-aes Crypto AES 1800 --with-cc-alg=ALG deprecated 1801 --with-lmdb=PATH build with LMDB library [yes|no|path] 1802 --with-libxml2=PATH build with libxml2 library (auto|yes|no|path) 1803 [default=auto] 1804 --with-libjson=PATH build with libjson0 library [yes|no|path] 1805 --with-zlib=PATH build with zlib for HTTP compression [default=yes] 1806 --with-purify=PATH use Rational purify 1807 --with-gperftools-profiler 1808 use gperftools CPU profiler 1809 --with-kame=PATH use Kame IPv6 [default path /usr/local/v6] 1810 --with-readline=LIBSPEC specify readline library [default auto] 1811 1812 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1813 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1814 --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets 1815 --with-idnkit=PATH enable IDN support using idnkit [yes|no|path] 1816 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX [default PREFIX] 1817 --with-iconv=LIBSPEC specify iconv library [default -liconv] 1818 --with-idnlib=ARG specify libidnkit 1819 --with-libidn2=PATH enable IDN support using GNU libidn2 [yes|no|path] 1820 --with-cmocka=no enable cmocka based tests (default is no) 1821 --with-tuning=ARG Specify server tuning (large or default) 1822 --with-dlopen=ARG support dynamically loadable DLZ drivers 1823 --with-dlz-postgres=PATH 1824 Build with Postgres DLZ driver [yes|no|path]. 1825 (Required to use Postgres with DLZ) 1826 --with-dlz-mysql=PATH Build with MySQL DLZ driver [yes|no|path]. (Required 1827 to use MySQL with DLZ) 1828 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver [yes|no|path]. 1829 (Required to use Berkeley DB with DLZ) 1830 --with-dlz-filesystem=ARG 1831 Build with filesystem DLZ driver [yes|no]. (Required 1832 to use file system driver with DLZ) 1833 --with-dlz-ldap=PATH Build with LDAP DLZ driver [yes|no|path]. (Required 1834 to use LDAP with DLZ) 1835 --with-dlz-odbc=PATH Build with ODBC DLZ driver [yes|no|path]. (Required 1836 to use ODBC with DLZ) 1837 --with-dlz-stub=ARG Build with stub DLZ driver [yes|no]. (Required to 1838 use stub driver with DLZ) 1839 --with-make-clean run "make clean" at end of configure [yes|no] 1840 1841Some influential environment variables: 1842 CC C compiler command 1843 CFLAGS C compiler flags 1844 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1845 nonstandard directory <lib dir> 1846 LIBS libraries to pass to the linker, e.g. -l<library> 1847 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1848 you have headers in a nonstandard directory <include dir> 1849 LT_SYS_LIBRARY_PATH 1850 User-defined run-time library search path. 1851 CPP C preprocessor 1852 PKG_CONFIG path to pkg-config utility 1853 PKG_CONFIG_PATH 1854 directories to add to pkg-config's search path 1855 PKG_CONFIG_LIBDIR 1856 path overriding pkg-config's built-in search path 1857 PYTHON path to python executable 1858 MAXMINDDB_CFLAGS 1859 C compiler flags for MAXMINDDB, overriding pkg-config 1860 MAXMINDDB_LIBS 1861 linker flags for MAXMINDDB, overriding pkg-config 1862 MAXMINDDB_PREFIX 1863 value of prefix for libmaxminddb, overriding pkg-config 1864 LIBXML2_CFLAGS 1865 C compiler flags for LIBXML2, overriding pkg-config 1866 LIBXML2_LIBS 1867 linker flags for LIBXML2, overriding pkg-config 1868 CMOCKA_CFLAGS 1869 C compiler flags for CMOCKA, overriding pkg-config 1870 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config 1871 KYUA path to kyua execution engine 1872 1873Use these variables to override the choices made by `configure' or to help 1874it to find libraries and programs with nonstandard names/locations. 1875 1876Report bugs to <info@isc.org>. 1877BIND home page: <https://www.isc.org/downloads/BIND/>. 1878_ACEOF 1879ac_status=$? 1880fi 1881 1882if test "$ac_init_help" = "recursive"; then 1883 # If there are subdirs, report their specific --help. 1884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1885 test -d "$ac_dir" || 1886 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1887 continue 1888 ac_builddir=. 1889 1890case "$ac_dir" in 1891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1892*) 1893 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1894 # A ".." for each directory in $ac_dir_suffix. 1895 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1896 case $ac_top_builddir_sub in 1897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1899 esac ;; 1900esac 1901ac_abs_top_builddir=$ac_pwd 1902ac_abs_builddir=$ac_pwd$ac_dir_suffix 1903# for backward compatibility: 1904ac_top_builddir=$ac_top_build_prefix 1905 1906case $srcdir in 1907 .) # We are building in place. 1908 ac_srcdir=. 1909 ac_top_srcdir=$ac_top_builddir_sub 1910 ac_abs_top_srcdir=$ac_pwd ;; 1911 [\\/]* | ?:[\\/]* ) # Absolute name. 1912 ac_srcdir=$srcdir$ac_dir_suffix; 1913 ac_top_srcdir=$srcdir 1914 ac_abs_top_srcdir=$srcdir ;; 1915 *) # Relative name. 1916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1917 ac_top_srcdir=$ac_top_build_prefix$srcdir 1918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1919esac 1920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1921 1922 cd "$ac_dir" || { ac_status=$?; continue; } 1923 # Check for guested configure. 1924 if test -f "$ac_srcdir/configure.gnu"; then 1925 echo && 1926 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1927 elif test -f "$ac_srcdir/configure"; then 1928 echo && 1929 $SHELL "$ac_srcdir/configure" --help=recursive 1930 else 1931 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1932 fi || ac_status=$? 1933 cd "$ac_pwd" || { ac_status=$?; break; } 1934 done 1935fi 1936 1937test -n "$ac_init_help" && exit $ac_status 1938if $ac_init_version; then 1939 cat <<\_ACEOF 1940BIND configure 9.11 1941generated by GNU Autoconf 2.69 1942 1943Copyright (C) 2012 Free Software Foundation, Inc. 1944This configure script is free software; the Free Software Foundation 1945gives unlimited permission to copy, distribute and modify it. 1946_ACEOF 1947 exit 1948fi 1949 1950## ------------------------ ## 1951## Autoconf initialization. ## 1952## ------------------------ ## 1953 1954# ac_fn_c_try_compile LINENO 1955# -------------------------- 1956# Try to compile conftest.$ac_ext, and return whether this succeeded. 1957ac_fn_c_try_compile () 1958{ 1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1960 rm -f conftest.$ac_objext 1961 if { { ac_try="$ac_compile" 1962case "(($ac_try" in 1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1964 *) ac_try_echo=$ac_try;; 1965esac 1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1967$as_echo "$ac_try_echo"; } >&5 1968 (eval "$ac_compile") 2>conftest.err 1969 ac_status=$? 1970 if test -s conftest.err; then 1971 grep -v '^ *+' conftest.err >conftest.er1 1972 cat conftest.er1 >&5 1973 mv -f conftest.er1 conftest.err 1974 fi 1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1976 test $ac_status = 0; } && { 1977 test -z "$ac_c_werror_flag" || 1978 test ! -s conftest.err 1979 } && test -s conftest.$ac_objext; then : 1980 ac_retval=0 1981else 1982 $as_echo "$as_me: failed program was:" >&5 1983sed 's/^/| /' conftest.$ac_ext >&5 1984 1985 ac_retval=1 1986fi 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 as_fn_set_status $ac_retval 1989 1990} # ac_fn_c_try_compile 1991 1992# ac_fn_c_try_link LINENO 1993# ----------------------- 1994# Try to link conftest.$ac_ext, and return whether this succeeded. 1995ac_fn_c_try_link () 1996{ 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 rm -f conftest.$ac_objext conftest$ac_exeext 1999 if { { ac_try="$ac_link" 2000case "(($ac_try" in 2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2002 *) ac_try_echo=$ac_try;; 2003esac 2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2005$as_echo "$ac_try_echo"; } >&5 2006 (eval "$ac_link") 2>conftest.err 2007 ac_status=$? 2008 if test -s conftest.err; then 2009 grep -v '^ *+' conftest.err >conftest.er1 2010 cat conftest.er1 >&5 2011 mv -f conftest.er1 conftest.err 2012 fi 2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2014 test $ac_status = 0; } && { 2015 test -z "$ac_c_werror_flag" || 2016 test ! -s conftest.err 2017 } && test -s conftest$ac_exeext && { 2018 test "$cross_compiling" = yes || 2019 test -x conftest$ac_exeext 2020 }; then : 2021 ac_retval=0 2022else 2023 $as_echo "$as_me: failed program was:" >&5 2024sed 's/^/| /' conftest.$ac_ext >&5 2025 2026 ac_retval=1 2027fi 2028 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2029 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2030 # interfere with the next link command; also delete a directory that is 2031 # left behind by Apple's compiler. We do this before executing the actions. 2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2034 as_fn_set_status $ac_retval 2035 2036} # ac_fn_c_try_link 2037 2038# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2039# ------------------------------------------------------- 2040# Tests whether HEADER exists and can be compiled using the include files in 2041# INCLUDES, setting the cache variable VAR accordingly. 2042ac_fn_c_check_header_compile () 2043{ 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2046$as_echo_n "checking for $2... " >&6; } 2047if eval \${$3+:} false; then : 2048 $as_echo_n "(cached) " >&6 2049else 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053#include <$2> 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 eval "$3=yes" 2057else 2058 eval "$3=no" 2059fi 2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061fi 2062eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064$as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067} # ac_fn_c_check_header_compile 2068 2069# ac_fn_c_try_cpp LINENO 2070# ---------------------- 2071# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2072ac_fn_c_try_cpp () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 if { { ac_try="$ac_cpp conftest.$ac_ext" 2076case "(($ac_try" in 2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2078 *) ac_try_echo=$ac_try;; 2079esac 2080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2081$as_echo "$ac_try_echo"; } >&5 2082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2083 ac_status=$? 2084 if test -s conftest.err; then 2085 grep -v '^ *+' conftest.err >conftest.er1 2086 cat conftest.er1 >&5 2087 mv -f conftest.er1 conftest.err 2088 fi 2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2090 test $ac_status = 0; } > conftest.i && { 2091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2092 test ! -s conftest.err 2093 }; then : 2094 ac_retval=0 2095else 2096 $as_echo "$as_me: failed program was:" >&5 2097sed 's/^/| /' conftest.$ac_ext >&5 2098 2099 ac_retval=1 2100fi 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2102 as_fn_set_status $ac_retval 2103 2104} # ac_fn_c_try_cpp 2105 2106# ac_fn_c_try_run LINENO 2107# ---------------------- 2108# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2109# that executables *can* be run. 2110ac_fn_c_try_run () 2111{ 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 if { { ac_try="$ac_link" 2114case "(($ac_try" in 2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2116 *) ac_try_echo=$ac_try;; 2117esac 2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2119$as_echo "$ac_try_echo"; } >&5 2120 (eval "$ac_link") 2>&5 2121 ac_status=$? 2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2123 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2124 { { case "(($ac_try" in 2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2126 *) ac_try_echo=$ac_try;; 2127esac 2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2129$as_echo "$ac_try_echo"; } >&5 2130 (eval "$ac_try") 2>&5 2131 ac_status=$? 2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2133 test $ac_status = 0; }; }; then : 2134 ac_retval=0 2135else 2136 $as_echo "$as_me: program exited with status $ac_status" >&5 2137 $as_echo "$as_me: failed program was:" >&5 2138sed 's/^/| /' conftest.$ac_ext >&5 2139 2140 ac_retval=$ac_status 2141fi 2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2144 as_fn_set_status $ac_retval 2145 2146} # ac_fn_c_try_run 2147 2148# ac_fn_c_check_func LINENO FUNC VAR 2149# ---------------------------------- 2150# Tests whether FUNC exists, setting the cache variable VAR accordingly 2151ac_fn_c_check_func () 2152{ 2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155$as_echo_n "checking for $2... " >&6; } 2156if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158else 2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160/* end confdefs.h. */ 2161/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2162 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2163#define $2 innocuous_$2 2164 2165/* System header to define __stub macros and hopefully few prototypes, 2166 which can conflict with char $2 (); below. 2167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2168 <limits.h> exists even on freestanding compilers. */ 2169 2170#ifdef __STDC__ 2171# include <limits.h> 2172#else 2173# include <assert.h> 2174#endif 2175 2176#undef $2 2177 2178/* Override any GCC internal prototype to avoid an error. 2179 Use char because int might match the return type of a GCC 2180 builtin and then its argument prototype would still apply. */ 2181#ifdef __cplusplus 2182extern "C" 2183#endif 2184char $2 (); 2185/* The GNU C library defines this for functions which it implements 2186 to always fail with ENOSYS. Some functions are actually named 2187 something starting with __ and the normal name is an alias. */ 2188#if defined __stub_$2 || defined __stub___$2 2189choke me 2190#endif 2191 2192int 2193main () 2194{ 2195return $2 (); 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200if ac_fn_c_try_link "$LINENO"; then : 2201 eval "$3=yes" 2202else 2203 eval "$3=no" 2204fi 2205rm -f core conftest.err conftest.$ac_objext \ 2206 conftest$ac_exeext conftest.$ac_ext 2207fi 2208eval ac_res=\$$3 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2210$as_echo "$ac_res" >&6; } 2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2212 2213} # ac_fn_c_check_func 2214 2215# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2216# ------------------------------------------- 2217# Tests whether TYPE exists after having included INCLUDES, setting cache 2218# variable VAR accordingly. 2219ac_fn_c_check_type () 2220{ 2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2223$as_echo_n "checking for $2... " >&6; } 2224if eval \${$3+:} false; then : 2225 $as_echo_n "(cached) " >&6 2226else 2227 eval "$3=no" 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230$4 2231int 2232main () 2233{ 2234if (sizeof ($2)) 2235 return 0; 2236 ; 2237 return 0; 2238} 2239_ACEOF 2240if ac_fn_c_try_compile "$LINENO"; then : 2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2242/* end confdefs.h. */ 2243$4 2244int 2245main () 2246{ 2247if (sizeof (($2))) 2248 return 0; 2249 ; 2250 return 0; 2251} 2252_ACEOF 2253if ac_fn_c_try_compile "$LINENO"; then : 2254 2255else 2256 eval "$3=yes" 2257fi 2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2259fi 2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2261fi 2262eval ac_res=\$$3 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2264$as_echo "$ac_res" >&6; } 2265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2266 2267} # ac_fn_c_check_type 2268 2269# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2270# ------------------------------------------------------- 2271# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2272# the include files in INCLUDES and setting the cache variable VAR 2273# accordingly. 2274ac_fn_c_check_header_mongrel () 2275{ 2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2277 if eval \${$3+:} false; then : 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2279$as_echo_n "checking for $2... " >&6; } 2280if eval \${$3+:} false; then : 2281 $as_echo_n "(cached) " >&6 2282fi 2283eval ac_res=\$$3 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2285$as_echo "$ac_res" >&6; } 2286else 2287 # Is the header compilable? 2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2289$as_echo_n "checking $2 usability... " >&6; } 2290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2291/* end confdefs.h. */ 2292$4 2293#include <$2> 2294_ACEOF 2295if ac_fn_c_try_compile "$LINENO"; then : 2296 ac_header_compiler=yes 2297else 2298 ac_header_compiler=no 2299fi 2300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2302$as_echo "$ac_header_compiler" >&6; } 2303 2304# Is the header present? 2305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2306$as_echo_n "checking $2 presence... " >&6; } 2307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2308/* end confdefs.h. */ 2309#include <$2> 2310_ACEOF 2311if ac_fn_c_try_cpp "$LINENO"; then : 2312 ac_header_preproc=yes 2313else 2314 ac_header_preproc=no 2315fi 2316rm -f conftest.err conftest.i conftest.$ac_ext 2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2318$as_echo "$ac_header_preproc" >&6; } 2319 2320# So? What about this header? 2321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2322 yes:no: ) 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2324$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2326$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2327 ;; 2328 no:yes:* ) 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2330$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2332$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2334$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2336$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2338$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2339( $as_echo "## --------------------------- ## 2340## Report this to info@isc.org ## 2341## --------------------------- ##" 2342 ) | sed "s/^/$as_me: WARNING: /" >&2 2343 ;; 2344esac 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2346$as_echo_n "checking for $2... " >&6; } 2347if eval \${$3+:} false; then : 2348 $as_echo_n "(cached) " >&6 2349else 2350 eval "$3=\$ac_header_compiler" 2351fi 2352eval ac_res=\$$3 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2354$as_echo "$ac_res" >&6; } 2355fi 2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2357 2358} # ac_fn_c_check_header_mongrel 2359 2360# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2361# -------------------------------------------- 2362# Tries to find the compile-time value of EXPR in a program that includes 2363# INCLUDES, setting VAR accordingly. Returns whether the value could be 2364# computed 2365ac_fn_c_compute_int () 2366{ 2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2368 if test "$cross_compiling" = yes; then 2369 # Depending upon the size, compute the lo and hi bounds. 2370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2371/* end confdefs.h. */ 2372$4 2373int 2374main () 2375{ 2376static int test_array [1 - 2 * !(($2) >= 0)]; 2377test_array [0] = 0; 2378return test_array [0]; 2379 2380 ; 2381 return 0; 2382} 2383_ACEOF 2384if ac_fn_c_try_compile "$LINENO"; then : 2385 ac_lo=0 ac_mid=0 2386 while :; do 2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2388/* end confdefs.h. */ 2389$4 2390int 2391main () 2392{ 2393static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2394test_array [0] = 0; 2395return test_array [0]; 2396 2397 ; 2398 return 0; 2399} 2400_ACEOF 2401if ac_fn_c_try_compile "$LINENO"; then : 2402 ac_hi=$ac_mid; break 2403else 2404 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2405 if test $ac_lo -le $ac_mid; then 2406 ac_lo= ac_hi= 2407 break 2408 fi 2409 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2410fi 2411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2412 done 2413else 2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2415/* end confdefs.h. */ 2416$4 2417int 2418main () 2419{ 2420static int test_array [1 - 2 * !(($2) < 0)]; 2421test_array [0] = 0; 2422return test_array [0]; 2423 2424 ; 2425 return 0; 2426} 2427_ACEOF 2428if ac_fn_c_try_compile "$LINENO"; then : 2429 ac_hi=-1 ac_mid=-1 2430 while :; do 2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2432/* end confdefs.h. */ 2433$4 2434int 2435main () 2436{ 2437static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2438test_array [0] = 0; 2439return test_array [0]; 2440 2441 ; 2442 return 0; 2443} 2444_ACEOF 2445if ac_fn_c_try_compile "$LINENO"; then : 2446 ac_lo=$ac_mid; break 2447else 2448 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2449 if test $ac_mid -le $ac_hi; then 2450 ac_lo= ac_hi= 2451 break 2452 fi 2453 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2454fi 2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2456 done 2457else 2458 ac_lo= ac_hi= 2459fi 2460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2461fi 2462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2463# Binary search between lo and hi bounds. 2464while test "x$ac_lo" != "x$ac_hi"; do 2465 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2467/* end confdefs.h. */ 2468$4 2469int 2470main () 2471{ 2472static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2473test_array [0] = 0; 2474return test_array [0]; 2475 2476 ; 2477 return 0; 2478} 2479_ACEOF 2480if ac_fn_c_try_compile "$LINENO"; then : 2481 ac_hi=$ac_mid 2482else 2483 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2484fi 2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2486done 2487case $ac_lo in #(( 2488?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2489'') ac_retval=1 ;; 2490esac 2491 else 2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2493/* end confdefs.h. */ 2494$4 2495static long int longval () { return $2; } 2496static unsigned long int ulongval () { return $2; } 2497#include <stdio.h> 2498#include <stdlib.h> 2499int 2500main () 2501{ 2502 2503 FILE *f = fopen ("conftest.val", "w"); 2504 if (! f) 2505 return 1; 2506 if (($2) < 0) 2507 { 2508 long int i = longval (); 2509 if (i != ($2)) 2510 return 1; 2511 fprintf (f, "%ld", i); 2512 } 2513 else 2514 { 2515 unsigned long int i = ulongval (); 2516 if (i != ($2)) 2517 return 1; 2518 fprintf (f, "%lu", i); 2519 } 2520 /* Do not output a trailing newline, as this causes \r\n confusion 2521 on some platforms. */ 2522 return ferror (f) || fclose (f) != 0; 2523 2524 ; 2525 return 0; 2526} 2527_ACEOF 2528if ac_fn_c_try_run "$LINENO"; then : 2529 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2530else 2531 ac_retval=1 2532fi 2533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2534 conftest.$ac_objext conftest.beam conftest.$ac_ext 2535rm -f conftest.val 2536 2537 fi 2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2539 as_fn_set_status $ac_retval 2540 2541} # ac_fn_c_compute_int 2542cat >config.log <<_ACEOF 2543This file contains any messages produced by compilers while 2544running configure, to aid debugging if configure makes a mistake. 2545 2546It was created by BIND $as_me 9.11, which was 2547generated by GNU Autoconf 2.69. Invocation command line was 2548 2549 $ $0 $@ 2550 2551_ACEOF 2552exec 5>>config.log 2553{ 2554cat <<_ASUNAME 2555## --------- ## 2556## Platform. ## 2557## --------- ## 2558 2559hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2560uname -m = `(uname -m) 2>/dev/null || echo unknown` 2561uname -r = `(uname -r) 2>/dev/null || echo unknown` 2562uname -s = `(uname -s) 2>/dev/null || echo unknown` 2563uname -v = `(uname -v) 2>/dev/null || echo unknown` 2564 2565/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2566/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2567 2568/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2569/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2570/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2571/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2572/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2573/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2574/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2575 2576_ASUNAME 2577 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 $as_echo "PATH: $as_dir" 2584 done 2585IFS=$as_save_IFS 2586 2587} >&5 2588 2589cat >&5 <<_ACEOF 2590 2591 2592## ----------- ## 2593## Core tests. ## 2594## ----------- ## 2595 2596_ACEOF 2597 2598 2599# Keep a trace of the command line. 2600# Strip out --no-create and --no-recursion so they do not pile up. 2601# Strip out --silent because we don't want to record it for future runs. 2602# Also quote any args containing shell meta-characters. 2603# Make two passes to allow for proper duplicate-argument suppression. 2604ac_configure_args= 2605ac_configure_args0= 2606ac_configure_args1= 2607ac_must_keep_next=false 2608for ac_pass in 1 2 2609do 2610 for ac_arg 2611 do 2612 case $ac_arg in 2613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2615 | -silent | --silent | --silen | --sile | --sil) 2616 continue ;; 2617 *\'*) 2618 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2619 esac 2620 case $ac_pass in 2621 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2622 2) 2623 as_fn_append ac_configure_args1 " '$ac_arg'" 2624 if test $ac_must_keep_next = true; then 2625 ac_must_keep_next=false # Got value, back to normal. 2626 else 2627 case $ac_arg in 2628 *=* | --config-cache | -C | -disable-* | --disable-* \ 2629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2631 | -with-* | --with-* | -without-* | --without-* | --x) 2632 case "$ac_configure_args0 " in 2633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2634 esac 2635 ;; 2636 -* ) ac_must_keep_next=true ;; 2637 esac 2638 fi 2639 as_fn_append ac_configure_args " '$ac_arg'" 2640 ;; 2641 esac 2642 done 2643done 2644{ ac_configure_args0=; unset ac_configure_args0;} 2645{ ac_configure_args1=; unset ac_configure_args1;} 2646 2647# When interrupted or exit'd, cleanup temporary files, and complete 2648# config.log. We remove comments because anyway the quotes in there 2649# would cause problems or look ugly. 2650# WARNING: Use '\'' to represent an apostrophe within the trap. 2651# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2652trap 'exit_status=$? 2653 # Save into config.log some information that might help in debugging. 2654 { 2655 echo 2656 2657 $as_echo "## ---------------- ## 2658## Cache variables. ## 2659## ---------------- ##" 2660 echo 2661 # The following way of writing the cache mishandles newlines in values, 2662( 2663 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2664 eval ac_val=\$$ac_var 2665 case $ac_val in #( 2666 *${as_nl}*) 2667 case $ac_var in #( 2668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2670 esac 2671 case $ac_var in #( 2672 _ | IFS | as_nl) ;; #( 2673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2674 *) { eval $ac_var=; unset $ac_var;} ;; 2675 esac ;; 2676 esac 2677 done 2678 (set) 2>&1 | 2679 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2680 *${as_nl}ac_space=\ *) 2681 sed -n \ 2682 "s/'\''/'\''\\\\'\'''\''/g; 2683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2684 ;; #( 2685 *) 2686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2687 ;; 2688 esac | 2689 sort 2690) 2691 echo 2692 2693 $as_echo "## ----------------- ## 2694## Output variables. ## 2695## ----------------- ##" 2696 echo 2697 for ac_var in $ac_subst_vars 2698 do 2699 eval ac_val=\$$ac_var 2700 case $ac_val in 2701 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2702 esac 2703 $as_echo "$ac_var='\''$ac_val'\''" 2704 done | sort 2705 echo 2706 2707 if test -n "$ac_subst_files"; then 2708 $as_echo "## ------------------- ## 2709## File substitutions. ## 2710## ------------------- ##" 2711 echo 2712 for ac_var in $ac_subst_files 2713 do 2714 eval ac_val=\$$ac_var 2715 case $ac_val in 2716 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2717 esac 2718 $as_echo "$ac_var='\''$ac_val'\''" 2719 done | sort 2720 echo 2721 fi 2722 2723 if test -s confdefs.h; then 2724 $as_echo "## ----------- ## 2725## confdefs.h. ## 2726## ----------- ##" 2727 echo 2728 cat confdefs.h 2729 echo 2730 fi 2731 test "$ac_signal" != 0 && 2732 $as_echo "$as_me: caught signal $ac_signal" 2733 $as_echo "$as_me: exit $exit_status" 2734 } >&5 2735 rm -f core *.core core.conftest.* && 2736 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2737 exit $exit_status 2738' 0 2739for ac_signal in 1 2 13 15; do 2740 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2741done 2742ac_signal=0 2743 2744# confdefs.h avoids OS command line length limits that DEFS can exceed. 2745rm -f -r conftest* confdefs.h 2746 2747$as_echo "/* confdefs.h */" > confdefs.h 2748 2749# Predefined preprocessor variables. 2750 2751cat >>confdefs.h <<_ACEOF 2752#define PACKAGE_NAME "$PACKAGE_NAME" 2753_ACEOF 2754 2755cat >>confdefs.h <<_ACEOF 2756#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2757_ACEOF 2758 2759cat >>confdefs.h <<_ACEOF 2760#define PACKAGE_VERSION "$PACKAGE_VERSION" 2761_ACEOF 2762 2763cat >>confdefs.h <<_ACEOF 2764#define PACKAGE_STRING "$PACKAGE_STRING" 2765_ACEOF 2766 2767cat >>confdefs.h <<_ACEOF 2768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2769_ACEOF 2770 2771cat >>confdefs.h <<_ACEOF 2772#define PACKAGE_URL "$PACKAGE_URL" 2773_ACEOF 2774 2775 2776# Let the site file select an alternate cache file if it wants to. 2777# Prefer an explicitly selected file to automatically selected ones. 2778ac_site_file1=NONE 2779ac_site_file2=NONE 2780if test -n "$CONFIG_SITE"; then 2781 # We do not want a PATH search for config.site. 2782 case $CONFIG_SITE in #(( 2783 -*) ac_site_file1=./$CONFIG_SITE;; 2784 */*) ac_site_file1=$CONFIG_SITE;; 2785 *) ac_site_file1=./$CONFIG_SITE;; 2786 esac 2787elif test "x$prefix" != xNONE; then 2788 ac_site_file1=$prefix/share/config.site 2789 ac_site_file2=$prefix/etc/config.site 2790else 2791 ac_site_file1=$ac_default_prefix/share/config.site 2792 ac_site_file2=$ac_default_prefix/etc/config.site 2793fi 2794for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2795do 2796 test "x$ac_site_file" = xNONE && continue 2797 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2799$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2800 sed 's/^/| /' "$ac_site_file" >&5 2801 . "$ac_site_file" \ 2802 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2804as_fn_error $? "failed to load site script $ac_site_file 2805See \`config.log' for more details" "$LINENO" 5; } 2806 fi 2807done 2808 2809if test -r "$cache_file"; then 2810 # Some versions of bash will fail to source /dev/null (special files 2811 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2812 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2814$as_echo "$as_me: loading cache $cache_file" >&6;} 2815 case $cache_file in 2816 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2817 *) . "./$cache_file";; 2818 esac 2819 fi 2820else 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2822$as_echo "$as_me: creating cache $cache_file" >&6;} 2823 >$cache_file 2824fi 2825 2826# Check that the precious variables saved in the cache have kept the same 2827# value. 2828ac_cache_corrupted=false 2829for ac_var in $ac_precious_vars; do 2830 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2831 eval ac_new_set=\$ac_env_${ac_var}_set 2832 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2833 eval ac_new_val=\$ac_env_${ac_var}_value 2834 case $ac_old_set,$ac_new_set in 2835 set,) 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2837$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2838 ac_cache_corrupted=: ;; 2839 ,set) 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2841$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2842 ac_cache_corrupted=: ;; 2843 ,);; 2844 *) 2845 if test "x$ac_old_val" != "x$ac_new_val"; then 2846 # differences in whitespace do not lead to failure. 2847 ac_old_val_w=`echo x $ac_old_val` 2848 ac_new_val_w=`echo x $ac_new_val` 2849 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2851$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2852 ac_cache_corrupted=: 2853 else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2855$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2856 eval $ac_var=\$ac_old_val 2857 fi 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2859$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2861$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2862 fi;; 2863 esac 2864 # Pass precious variables to config.status. 2865 if test "$ac_new_set" = set; then 2866 case $ac_new_val in 2867 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2868 *) ac_arg=$ac_var=$ac_new_val ;; 2869 esac 2870 case " $ac_configure_args " in 2871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2872 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2873 esac 2874 fi 2875done 2876if $ac_cache_corrupted; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2880$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2881 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2882fi 2883## -------------------- ## 2884## Main body of script. ## 2885## -------------------- ## 2886 2887ac_ext=c 2888ac_cpp='$CPP $CPPFLAGS' 2889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2891ac_compiler_gnu=$ac_cv_c_compiler_gnu 2892 2893 2894 2895 2896ac_config_headers="$ac_config_headers config.h" 2897 2898 2899 2900ac_aux_dir= 2901for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2902 if test -f "$ac_dir/install-sh"; then 2903 ac_aux_dir=$ac_dir 2904 ac_install_sh="$ac_aux_dir/install-sh -c" 2905 break 2906 elif test -f "$ac_dir/install.sh"; then 2907 ac_aux_dir=$ac_dir 2908 ac_install_sh="$ac_aux_dir/install.sh -c" 2909 break 2910 elif test -f "$ac_dir/shtool"; then 2911 ac_aux_dir=$ac_dir 2912 ac_install_sh="$ac_aux_dir/shtool install -c" 2913 break 2914 fi 2915done 2916if test -z "$ac_aux_dir"; then 2917 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2918fi 2919 2920# These three variables are undocumented and unsupported, 2921# and are intended to be withdrawn in a future Autoconf release. 2922# They can cause serious problems if a builder's source tree is in a directory 2923# whose full name contains unusual characters. 2924ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2925ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2926ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2927 2928 2929# Make sure we can run config.sub. 2930$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2931 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2932 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2934$as_echo_n "checking build system type... " >&6; } 2935if ${ac_cv_build+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 ac_build_alias=$build_alias 2939test "x$ac_build_alias" = x && 2940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2941test "x$ac_build_alias" = x && 2942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2945 2946fi 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2948$as_echo "$ac_cv_build" >&6; } 2949case $ac_cv_build in 2950*-*-*) ;; 2951*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2952esac 2953build=$ac_cv_build 2954ac_save_IFS=$IFS; IFS='-' 2955set x $ac_cv_build 2956shift 2957build_cpu=$1 2958build_vendor=$2 2959shift; shift 2960# Remember, the first character of IFS is used to create $*, 2961# except with old shells: 2962build_os=$* 2963IFS=$ac_save_IFS 2964case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2965 2966 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2968$as_echo_n "checking host system type... " >&6; } 2969if ${ac_cv_host+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 if test "x$host_alias" = x; then 2973 ac_cv_host=$ac_cv_build 2974else 2975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2977fi 2978 2979fi 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2981$as_echo "$ac_cv_host" >&6; } 2982case $ac_cv_host in 2983*-*-*) ;; 2984*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2985esac 2986host=$ac_cv_host 2987ac_save_IFS=$IFS; IFS='-' 2988set x $ac_cv_host 2989shift 2990host_cpu=$1 2991host_vendor=$2 2992shift; shift 2993# Remember, the first character of IFS is used to create $*, 2994# except with old shells: 2995host_os=$* 2996IFS=$ac_save_IFS 2997case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2998 2999 3000 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3002$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3003set x ${MAKE-make} 3004ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3005if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 cat >conftest.make <<\_ACEOF 3009SHELL = /bin/sh 3010all: 3011 @echo '@@@%%%=$(MAKE)=@@@%%%' 3012_ACEOF 3013# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3014case `${MAKE-make} -f conftest.make 2>/dev/null` in 3015 *@@@%%%=?*=@@@%%%*) 3016 eval ac_cv_prog_make_${ac_make}_set=yes;; 3017 *) 3018 eval ac_cv_prog_make_${ac_make}_set=no;; 3019esac 3020rm -f conftest.make 3021fi 3022if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3024$as_echo "yes" >&6; } 3025 SET_MAKE= 3026else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028$as_echo "no" >&6; } 3029 SET_MAKE="MAKE=${MAKE-make}" 3030fi 3031 3032 3033# 3034# GNU libtool support 3035# 3036case $build_os in 3037sunos*) 3038 # Just set the maximum command line length for sunos as it otherwise 3039 # takes a exceptionally long time to work it out. Required for libtool. 3040 3041 lt_cv_sys_max_cmd_len=4096; 3042 ;; 3043esac 3044 3045LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null` 3046LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null` 3047LFS_LIBS=`getconf LFS_LIBS 2>/dev/null` 3048 3049 3050 3051 3052 3053case `pwd` in 3054 *\ * | *\ *) 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3056$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3057esac 3058 3059 3060 3061macro_version='2.4.6' 3062macro_revision='2.4.6' 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076ltmain=$ac_aux_dir/ltmain.sh 3077 3078# Backslashify metacharacters that are still active within 3079# double-quoted strings. 3080sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3081 3082# Same as above, but do not quote variable references. 3083double_quote_subst='s/\(["`\\]\)/\\\1/g' 3084 3085# Sed substitution to delay expansion of an escaped shell variable in a 3086# double_quote_subst'ed string. 3087delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3088 3089# Sed substitution to delay expansion of an escaped single quote. 3090delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3091 3092# Sed substitution to avoid accidental globbing in evaled expressions 3093no_glob_subst='s/\*/\\\*/g' 3094 3095ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3096ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3097ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3098 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3100$as_echo_n "checking how to print strings... " >&6; } 3101# Test print first, because it will be a builtin if present. 3102if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3103 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3104 ECHO='print -r --' 3105elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3106 ECHO='printf %s\n' 3107else 3108 # Use this function as a fallback that always works. 3109 func_fallback_echo () 3110 { 3111 eval 'cat <<_LTECHO_EOF 3112$1 3113_LTECHO_EOF' 3114 } 3115 ECHO='func_fallback_echo' 3116fi 3117 3118# func_echo_all arg... 3119# Invoke $ECHO with all args, space-separated. 3120func_echo_all () 3121{ 3122 $ECHO "" 3123} 3124 3125case $ECHO in 3126 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3127$as_echo "printf" >&6; } ;; 3128 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3129$as_echo "print -r" >&6; } ;; 3130 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3131$as_echo "cat" >&6; } ;; 3132esac 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147ac_ext=c 3148ac_cpp='$CPP $CPPFLAGS' 3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3151ac_compiler_gnu=$ac_cv_c_compiler_gnu 3152if test -n "$ac_tool_prefix"; then 3153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3154set dummy ${ac_tool_prefix}gcc; ac_word=$2 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3156$as_echo_n "checking for $ac_word... " >&6; } 3157if ${ac_cv_prog_CC+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 if test -n "$CC"; then 3161 ac_cv_prog_CC="$CC" # Let the user override the test. 3162else 3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3164for as_dir in $PATH 3165do 3166 IFS=$as_save_IFS 3167 test -z "$as_dir" && as_dir=. 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3170 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3172 break 2 3173 fi 3174done 3175 done 3176IFS=$as_save_IFS 3177 3178fi 3179fi 3180CC=$ac_cv_prog_CC 3181if test -n "$CC"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3183$as_echo "$CC" >&6; } 3184else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186$as_echo "no" >&6; } 3187fi 3188 3189 3190fi 3191if test -z "$ac_cv_prog_CC"; then 3192 ac_ct_CC=$CC 3193 # Extract the first word of "gcc", so it can be a program name with args. 3194set dummy gcc; ac_word=$2 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3196$as_echo_n "checking for $ac_word... " >&6; } 3197if ${ac_cv_prog_ac_ct_CC+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 if test -n "$ac_ct_CC"; then 3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3202else 3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3204for as_dir in $PATH 3205do 3206 IFS=$as_save_IFS 3207 test -z "$as_dir" && as_dir=. 3208 for ac_exec_ext in '' $ac_executable_extensions; do 3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3210 ac_cv_prog_ac_ct_CC="gcc" 3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3212 break 2 3213 fi 3214done 3215 done 3216IFS=$as_save_IFS 3217 3218fi 3219fi 3220ac_ct_CC=$ac_cv_prog_ac_ct_CC 3221if test -n "$ac_ct_CC"; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3223$as_echo "$ac_ct_CC" >&6; } 3224else 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226$as_echo "no" >&6; } 3227fi 3228 3229 if test "x$ac_ct_CC" = x; then 3230 CC="" 3231 else 3232 case $cross_compiling:$ac_tool_warned in 3233yes:) 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3236ac_tool_warned=yes ;; 3237esac 3238 CC=$ac_ct_CC 3239 fi 3240else 3241 CC="$ac_cv_prog_CC" 3242fi 3243 3244if test -z "$CC"; then 3245 if test -n "$ac_tool_prefix"; then 3246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3247set dummy ${ac_tool_prefix}cc; ac_word=$2 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3249$as_echo_n "checking for $ac_word... " >&6; } 3250if ${ac_cv_prog_CC+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if test -n "$CC"; then 3254 ac_cv_prog_CC="$CC" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_CC="${ac_tool_prefix}cc" 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi 3272fi 3273CC=$ac_cv_prog_CC 3274if test -n "$CC"; then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3276$as_echo "$CC" >&6; } 3277else 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280fi 3281 3282 3283 fi 3284fi 3285if test -z "$CC"; then 3286 # Extract the first word of "cc", so it can be a program name with args. 3287set dummy cc; ac_word=$2 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289$as_echo_n "checking for $ac_word... " >&6; } 3290if ${ac_cv_prog_CC+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 if test -n "$CC"; then 3294 ac_cv_prog_CC="$CC" # Let the user override the test. 3295else 3296 ac_prog_rejected=no 3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298for as_dir in $PATH 3299do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 for ac_exec_ext in '' $ac_executable_extensions; do 3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3304 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3305 ac_prog_rejected=yes 3306 continue 3307 fi 3308 ac_cv_prog_CC="cc" 3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3310 break 2 3311 fi 3312done 3313 done 3314IFS=$as_save_IFS 3315 3316if test $ac_prog_rejected = yes; then 3317 # We found a bogon in the path, so make sure we never use it. 3318 set dummy $ac_cv_prog_CC 3319 shift 3320 if test $# != 0; then 3321 # We chose a different compiler from the bogus one. 3322 # However, it has the same basename, so the bogon will be chosen 3323 # first if we set CC to just the basename; use the full file name. 3324 shift 3325 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3326 fi 3327fi 3328fi 3329fi 3330CC=$ac_cv_prog_CC 3331if test -n "$CC"; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3333$as_echo "$CC" >&6; } 3334else 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3336$as_echo "no" >&6; } 3337fi 3338 3339 3340fi 3341if test -z "$CC"; then 3342 if test -n "$ac_tool_prefix"; then 3343 for ac_prog in cl.exe 3344 do 3345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3346set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348$as_echo_n "checking for $ac_word... " >&6; } 3349if ${ac_cv_prog_CC+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 if test -n "$CC"; then 3353 ac_cv_prog_CC="$CC" # Let the user override the test. 3354else 3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3356for as_dir in $PATH 3357do 3358 IFS=$as_save_IFS 3359 test -z "$as_dir" && as_dir=. 3360 for ac_exec_ext in '' $ac_executable_extensions; do 3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3364 break 2 3365 fi 3366done 3367 done 3368IFS=$as_save_IFS 3369 3370fi 3371fi 3372CC=$ac_cv_prog_CC 3373if test -n "$CC"; then 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3375$as_echo "$CC" >&6; } 3376else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378$as_echo "no" >&6; } 3379fi 3380 3381 3382 test -n "$CC" && break 3383 done 3384fi 3385if test -z "$CC"; then 3386 ac_ct_CC=$CC 3387 for ac_prog in cl.exe 3388do 3389 # Extract the first word of "$ac_prog", so it can be a program name with args. 3390set dummy $ac_prog; ac_word=$2 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3392$as_echo_n "checking for $ac_word... " >&6; } 3393if ${ac_cv_prog_ac_ct_CC+:} false; then : 3394 $as_echo_n "(cached) " >&6 3395else 3396 if test -n "$ac_ct_CC"; then 3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3398else 3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3400for as_dir in $PATH 3401do 3402 IFS=$as_save_IFS 3403 test -z "$as_dir" && as_dir=. 3404 for ac_exec_ext in '' $ac_executable_extensions; do 3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3406 ac_cv_prog_ac_ct_CC="$ac_prog" 3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3408 break 2 3409 fi 3410done 3411 done 3412IFS=$as_save_IFS 3413 3414fi 3415fi 3416ac_ct_CC=$ac_cv_prog_ac_ct_CC 3417if test -n "$ac_ct_CC"; then 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3419$as_echo "$ac_ct_CC" >&6; } 3420else 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3422$as_echo "no" >&6; } 3423fi 3424 3425 3426 test -n "$ac_ct_CC" && break 3427done 3428 3429 if test "x$ac_ct_CC" = x; then 3430 CC="" 3431 else 3432 case $cross_compiling:$ac_tool_warned in 3433yes:) 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3436ac_tool_warned=yes ;; 3437esac 3438 CC=$ac_ct_CC 3439 fi 3440fi 3441 3442fi 3443 3444 3445test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3447as_fn_error $? "no acceptable C compiler found in \$PATH 3448See \`config.log' for more details" "$LINENO" 5; } 3449 3450# Provide some information about the compiler. 3451$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3452set X $ac_compile 3453ac_compiler=$2 3454for ac_option in --version -v -V -qversion; do 3455 { { ac_try="$ac_compiler $ac_option >&5" 3456case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459esac 3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3461$as_echo "$ac_try_echo"; } >&5 3462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3463 ac_status=$? 3464 if test -s conftest.err; then 3465 sed '10a\ 3466... rest of stderr output deleted ... 3467 10q' conftest.err >conftest.er1 3468 cat conftest.er1 >&5 3469 fi 3470 rm -f conftest.er1 conftest.err 3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3472 test $ac_status = 0; } 3473done 3474 3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477 3478int 3479main () 3480{ 3481 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486ac_clean_files_save=$ac_clean_files 3487ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3488# Try to create an executable without -o first, disregard a.out. 3489# It will help us diagnose broken compilers, and finding out an intuition 3490# of exeext. 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3492$as_echo_n "checking whether the C compiler works... " >&6; } 3493ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3494 3495# The possible output files: 3496ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3497 3498ac_rmfiles= 3499for ac_file in $ac_files 3500do 3501 case $ac_file in 3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3503 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3504 esac 3505done 3506rm -f $ac_rmfiles 3507 3508if { { ac_try="$ac_link_default" 3509case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512esac 3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3514$as_echo "$ac_try_echo"; } >&5 3515 (eval "$ac_link_default") 2>&5 3516 ac_status=$? 3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3518 test $ac_status = 0; }; then : 3519 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3520# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3521# in a Makefile. We should not override ac_cv_exeext if it was cached, 3522# so that the user can short-circuit this test for compilers unknown to 3523# Autoconf. 3524for ac_file in $ac_files '' 3525do 3526 test -f "$ac_file" || continue 3527 case $ac_file in 3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3529 ;; 3530 [ab].out ) 3531 # We found the default executable, but exeext='' is most 3532 # certainly right. 3533 break;; 3534 *.* ) 3535 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3536 then :; else 3537 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3538 fi 3539 # We set ac_cv_exeext here because the later test for it is not 3540 # safe: cross compilers may not add the suffix if given an `-o' 3541 # argument, so we may need to know it at that point already. 3542 # Even if this section looks crufty: it has the advantage of 3543 # actually working. 3544 break;; 3545 * ) 3546 break;; 3547 esac 3548done 3549test "$ac_cv_exeext" = no && ac_cv_exeext= 3550 3551else 3552 ac_file='' 3553fi 3554if test -z "$ac_file"; then : 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3556$as_echo "no" >&6; } 3557$as_echo "$as_me: failed program was:" >&5 3558sed 's/^/| /' conftest.$ac_ext >&5 3559 3560{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3562as_fn_error 77 "C compiler cannot create executables 3563See \`config.log' for more details" "$LINENO" 5; } 3564else 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3566$as_echo "yes" >&6; } 3567fi 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3569$as_echo_n "checking for C compiler default output file name... " >&6; } 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3571$as_echo "$ac_file" >&6; } 3572ac_exeext=$ac_cv_exeext 3573 3574rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3575ac_clean_files=$ac_clean_files_save 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3577$as_echo_n "checking for suffix of executables... " >&6; } 3578if { { ac_try="$ac_link" 3579case "(($ac_try" in 3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3581 *) ac_try_echo=$ac_try;; 3582esac 3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3584$as_echo "$ac_try_echo"; } >&5 3585 (eval "$ac_link") 2>&5 3586 ac_status=$? 3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3588 test $ac_status = 0; }; then : 3589 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3590# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3591# work properly (i.e., refer to `conftest.exe'), while it won't with 3592# `rm'. 3593for ac_file in conftest.exe conftest conftest.*; do 3594 test -f "$ac_file" || continue 3595 case $ac_file in 3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3598 break;; 3599 * ) break;; 3600 esac 3601done 3602else 3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3605as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3606See \`config.log' for more details" "$LINENO" 5; } 3607fi 3608rm -f conftest conftest$ac_cv_exeext 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3610$as_echo "$ac_cv_exeext" >&6; } 3611 3612rm -f conftest.$ac_ext 3613EXEEXT=$ac_cv_exeext 3614ac_exeext=$EXEEXT 3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617#include <stdio.h> 3618int 3619main () 3620{ 3621FILE *f = fopen ("conftest.out", "w"); 3622 return ferror (f) || fclose (f) != 0; 3623 3624 ; 3625 return 0; 3626} 3627_ACEOF 3628ac_clean_files="$ac_clean_files conftest.out" 3629# Check that the compiler produces executables we can run. If not, either 3630# the compiler is broken, or we cross compile. 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3632$as_echo_n "checking whether we are cross compiling... " >&6; } 3633if test "$cross_compiling" != yes; then 3634 { { ac_try="$ac_link" 3635case "(($ac_try" in 3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3637 *) ac_try_echo=$ac_try;; 3638esac 3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3640$as_echo "$ac_try_echo"; } >&5 3641 (eval "$ac_link") 2>&5 3642 ac_status=$? 3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3644 test $ac_status = 0; } 3645 if { ac_try='./conftest$ac_cv_exeext' 3646 { { case "(($ac_try" in 3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3648 *) ac_try_echo=$ac_try;; 3649esac 3650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3651$as_echo "$ac_try_echo"; } >&5 3652 (eval "$ac_try") 2>&5 3653 ac_status=$? 3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3655 test $ac_status = 0; }; }; then 3656 cross_compiling=no 3657 else 3658 if test "$cross_compiling" = maybe; then 3659 cross_compiling=yes 3660 else 3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3663as_fn_error $? "cannot run C compiled programs. 3664If you meant to cross compile, use \`--host'. 3665See \`config.log' for more details" "$LINENO" 5; } 3666 fi 3667 fi 3668fi 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3670$as_echo "$cross_compiling" >&6; } 3671 3672rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3673ac_clean_files=$ac_clean_files_save 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3675$as_echo_n "checking for suffix of object files... " >&6; } 3676if ${ac_cv_objext+:} false; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690rm -f conftest.o conftest.obj 3691if { { ac_try="$ac_compile" 3692case "(($ac_try" in 3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3694 *) ac_try_echo=$ac_try;; 3695esac 3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3697$as_echo "$ac_try_echo"; } >&5 3698 (eval "$ac_compile") 2>&5 3699 ac_status=$? 3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3701 test $ac_status = 0; }; then : 3702 for ac_file in conftest.o conftest.obj conftest.*; do 3703 test -f "$ac_file" || continue; 3704 case $ac_file in 3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3707 break;; 3708 esac 3709done 3710else 3711 $as_echo "$as_me: failed program was:" >&5 3712sed 's/^/| /' conftest.$ac_ext >&5 3713 3714{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3716as_fn_error $? "cannot compute suffix of object files: cannot compile 3717See \`config.log' for more details" "$LINENO" 5; } 3718fi 3719rm -f conftest.$ac_cv_objext conftest.$ac_ext 3720fi 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3722$as_echo "$ac_cv_objext" >&6; } 3723OBJEXT=$ac_cv_objext 3724ac_objext=$OBJEXT 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3726$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3727if ${ac_cv_c_compiler_gnu+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3731/* end confdefs.h. */ 3732 3733int 3734main () 3735{ 3736#ifndef __GNUC__ 3737 choke me 3738#endif 3739 3740 ; 3741 return 0; 3742} 3743_ACEOF 3744if ac_fn_c_try_compile "$LINENO"; then : 3745 ac_compiler_gnu=yes 3746else 3747 ac_compiler_gnu=no 3748fi 3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3750ac_cv_c_compiler_gnu=$ac_compiler_gnu 3751 3752fi 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3754$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3755if test $ac_compiler_gnu = yes; then 3756 GCC=yes 3757else 3758 GCC= 3759fi 3760ac_test_CFLAGS=${CFLAGS+set} 3761ac_save_CFLAGS=$CFLAGS 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3763$as_echo_n "checking whether $CC accepts -g... " >&6; } 3764if ${ac_cv_prog_cc_g+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 ac_save_c_werror_flag=$ac_c_werror_flag 3768 ac_c_werror_flag=yes 3769 ac_cv_prog_cc_g=no 3770 CFLAGS="-g" 3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3772/* end confdefs.h. */ 3773 3774int 3775main () 3776{ 3777 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782if ac_fn_c_try_compile "$LINENO"; then : 3783 ac_cv_prog_cc_g=yes 3784else 3785 CFLAGS="" 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789int 3790main () 3791{ 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797if ac_fn_c_try_compile "$LINENO"; then : 3798 3799else 3800 ac_c_werror_flag=$ac_save_c_werror_flag 3801 CFLAGS="-g" 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813if ac_fn_c_try_compile "$LINENO"; then : 3814 ac_cv_prog_cc_g=yes 3815fi 3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3817fi 3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3819fi 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3821 ac_c_werror_flag=$ac_save_c_werror_flag 3822fi 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3824$as_echo "$ac_cv_prog_cc_g" >&6; } 3825if test "$ac_test_CFLAGS" = set; then 3826 CFLAGS=$ac_save_CFLAGS 3827elif test $ac_cv_prog_cc_g = yes; then 3828 if test "$GCC" = yes; then 3829 CFLAGS="-g -O2" 3830 else 3831 CFLAGS="-g" 3832 fi 3833else 3834 if test "$GCC" = yes; then 3835 CFLAGS="-O2" 3836 else 3837 CFLAGS= 3838 fi 3839fi 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3841$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3842if ${ac_cv_prog_cc_c89+:} false; then : 3843 $as_echo_n "(cached) " >&6 3844else 3845 ac_cv_prog_cc_c89=no 3846ac_save_CC=$CC 3847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849#include <stdarg.h> 3850#include <stdio.h> 3851struct stat; 3852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3853struct buf { int x; }; 3854FILE * (*rcsopen) (struct buf *, struct stat *, int); 3855static char *e (p, i) 3856 char **p; 3857 int i; 3858{ 3859 return p[i]; 3860} 3861static char *f (char * (*g) (char **, int), char **p, ...) 3862{ 3863 char *s; 3864 va_list v; 3865 va_start (v,p); 3866 s = g (p, va_arg (v,int)); 3867 va_end (v); 3868 return s; 3869} 3870 3871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3872 function prototypes and stuff, but not '\xHH' hex character constants. 3873 These don't provoke an error unfortunately, instead are silently treated 3874 as 'x'. The following induces an error, until -std is added to get 3875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3876 array size at least. It's necessary to write '\x00'==0 to get something 3877 that's true only with -std. */ 3878int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3879 3880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3881 inside strings and character constants. */ 3882#define FOO(x) 'x' 3883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3884 3885int test (int i, double x); 3886struct s1 {int (*f) (int a);}; 3887struct s2 {int (*f) (double a);}; 3888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3889int argc; 3890char **argv; 3891int 3892main () 3893{ 3894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3895 ; 3896 return 0; 3897} 3898_ACEOF 3899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3901do 3902 CC="$ac_save_CC $ac_arg" 3903 if ac_fn_c_try_compile "$LINENO"; then : 3904 ac_cv_prog_cc_c89=$ac_arg 3905fi 3906rm -f core conftest.err conftest.$ac_objext 3907 test "x$ac_cv_prog_cc_c89" != "xno" && break 3908done 3909rm -f conftest.$ac_ext 3910CC=$ac_save_CC 3911 3912fi 3913# AC_CACHE_VAL 3914case "x$ac_cv_prog_cc_c89" in 3915 x) 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3917$as_echo "none needed" >&6; } ;; 3918 xno) 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3920$as_echo "unsupported" >&6; } ;; 3921 *) 3922 CC="$CC $ac_cv_prog_cc_c89" 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3925esac 3926if test "x$ac_cv_prog_cc_c89" != xno; then : 3927 3928fi 3929 3930ac_ext=c 3931ac_cpp='$CPP $CPPFLAGS' 3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3934ac_compiler_gnu=$ac_cv_c_compiler_gnu 3935 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3937$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3938if ${ac_cv_path_SED+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3942 for ac_i in 1 2 3 4 5 6 7; do 3943 ac_script="$ac_script$as_nl$ac_script" 3944 done 3945 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3946 { ac_script=; unset ac_script;} 3947 if test -z "$SED"; then 3948 ac_path_SED_found=false 3949 # Loop through the user's path and test for each of PROGNAME-LIST 3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3951for as_dir in $PATH 3952do 3953 IFS=$as_save_IFS 3954 test -z "$as_dir" && as_dir=. 3955 for ac_prog in sed gsed; do 3956 for ac_exec_ext in '' $ac_executable_extensions; do 3957 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3958 as_fn_executable_p "$ac_path_SED" || continue 3959# Check for GNU ac_path_SED and select it if it is found. 3960 # Check for GNU $ac_path_SED 3961case `"$ac_path_SED" --version 2>&1` in 3962*GNU*) 3963 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3964*) 3965 ac_count=0 3966 $as_echo_n 0123456789 >"conftest.in" 3967 while : 3968 do 3969 cat "conftest.in" "conftest.in" >"conftest.tmp" 3970 mv "conftest.tmp" "conftest.in" 3971 cp "conftest.in" "conftest.nl" 3972 $as_echo '' >> "conftest.nl" 3973 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3975 as_fn_arith $ac_count + 1 && ac_count=$as_val 3976 if test $ac_count -gt ${ac_path_SED_max-0}; then 3977 # Best one so far, save it but keep looking for a better one 3978 ac_cv_path_SED="$ac_path_SED" 3979 ac_path_SED_max=$ac_count 3980 fi 3981 # 10*(2^10) chars as input seems more than enough 3982 test $ac_count -gt 10 && break 3983 done 3984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3985esac 3986 3987 $ac_path_SED_found && break 3 3988 done 3989 done 3990 done 3991IFS=$as_save_IFS 3992 if test -z "$ac_cv_path_SED"; then 3993 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3994 fi 3995else 3996 ac_cv_path_SED=$SED 3997fi 3998 3999fi 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4001$as_echo "$ac_cv_path_SED" >&6; } 4002 SED="$ac_cv_path_SED" 4003 rm -f conftest.sed 4004 4005test -z "$SED" && SED=sed 4006Xsed="$SED -e 1s/^X//" 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4019$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4020if ${ac_cv_path_GREP+:} false; then : 4021 $as_echo_n "(cached) " >&6 4022else 4023 if test -z "$GREP"; then 4024 ac_path_GREP_found=false 4025 # Loop through the user's path and test for each of PROGNAME-LIST 4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4028do 4029 IFS=$as_save_IFS 4030 test -z "$as_dir" && as_dir=. 4031 for ac_prog in grep ggrep; do 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4034 as_fn_executable_p "$ac_path_GREP" || continue 4035# Check for GNU ac_path_GREP and select it if it is found. 4036 # Check for GNU $ac_path_GREP 4037case `"$ac_path_GREP" --version 2>&1` in 4038*GNU*) 4039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4040*) 4041 ac_count=0 4042 $as_echo_n 0123456789 >"conftest.in" 4043 while : 4044 do 4045 cat "conftest.in" "conftest.in" >"conftest.tmp" 4046 mv "conftest.tmp" "conftest.in" 4047 cp "conftest.in" "conftest.nl" 4048 $as_echo 'GREP' >> "conftest.nl" 4049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4051 as_fn_arith $ac_count + 1 && ac_count=$as_val 4052 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4053 # Best one so far, save it but keep looking for a better one 4054 ac_cv_path_GREP="$ac_path_GREP" 4055 ac_path_GREP_max=$ac_count 4056 fi 4057 # 10*(2^10) chars as input seems more than enough 4058 test $ac_count -gt 10 && break 4059 done 4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4061esac 4062 4063 $ac_path_GREP_found && break 3 4064 done 4065 done 4066 done 4067IFS=$as_save_IFS 4068 if test -z "$ac_cv_path_GREP"; then 4069 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4070 fi 4071else 4072 ac_cv_path_GREP=$GREP 4073fi 4074 4075fi 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4077$as_echo "$ac_cv_path_GREP" >&6; } 4078 GREP="$ac_cv_path_GREP" 4079 4080 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4082$as_echo_n "checking for egrep... " >&6; } 4083if ${ac_cv_path_EGREP+:} false; then : 4084 $as_echo_n "(cached) " >&6 4085else 4086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4087 then ac_cv_path_EGREP="$GREP -E" 4088 else 4089 if test -z "$EGREP"; then 4090 ac_path_EGREP_found=false 4091 # Loop through the user's path and test for each of PROGNAME-LIST 4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4094do 4095 IFS=$as_save_IFS 4096 test -z "$as_dir" && as_dir=. 4097 for ac_prog in egrep; do 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4100 as_fn_executable_p "$ac_path_EGREP" || continue 4101# Check for GNU ac_path_EGREP and select it if it is found. 4102 # Check for GNU $ac_path_EGREP 4103case `"$ac_path_EGREP" --version 2>&1` in 4104*GNU*) 4105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4106*) 4107 ac_count=0 4108 $as_echo_n 0123456789 >"conftest.in" 4109 while : 4110 do 4111 cat "conftest.in" "conftest.in" >"conftest.tmp" 4112 mv "conftest.tmp" "conftest.in" 4113 cp "conftest.in" "conftest.nl" 4114 $as_echo 'EGREP' >> "conftest.nl" 4115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4117 as_fn_arith $ac_count + 1 && ac_count=$as_val 4118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4119 # Best one so far, save it but keep looking for a better one 4120 ac_cv_path_EGREP="$ac_path_EGREP" 4121 ac_path_EGREP_max=$ac_count 4122 fi 4123 # 10*(2^10) chars as input seems more than enough 4124 test $ac_count -gt 10 && break 4125 done 4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4127esac 4128 4129 $ac_path_EGREP_found && break 3 4130 done 4131 done 4132 done 4133IFS=$as_save_IFS 4134 if test -z "$ac_cv_path_EGREP"; then 4135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4136 fi 4137else 4138 ac_cv_path_EGREP=$EGREP 4139fi 4140 4141 fi 4142fi 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4144$as_echo "$ac_cv_path_EGREP" >&6; } 4145 EGREP="$ac_cv_path_EGREP" 4146 4147 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4149$as_echo_n "checking for fgrep... " >&6; } 4150if ${ac_cv_path_FGREP+:} false; then : 4151 $as_echo_n "(cached) " >&6 4152else 4153 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4154 then ac_cv_path_FGREP="$GREP -F" 4155 else 4156 if test -z "$FGREP"; then 4157 ac_path_FGREP_found=false 4158 # Loop through the user's path and test for each of PROGNAME-LIST 4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4160for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4161do 4162 IFS=$as_save_IFS 4163 test -z "$as_dir" && as_dir=. 4164 for ac_prog in fgrep; do 4165 for ac_exec_ext in '' $ac_executable_extensions; do 4166 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4167 as_fn_executable_p "$ac_path_FGREP" || continue 4168# Check for GNU ac_path_FGREP and select it if it is found. 4169 # Check for GNU $ac_path_FGREP 4170case `"$ac_path_FGREP" --version 2>&1` in 4171*GNU*) 4172 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4173*) 4174 ac_count=0 4175 $as_echo_n 0123456789 >"conftest.in" 4176 while : 4177 do 4178 cat "conftest.in" "conftest.in" >"conftest.tmp" 4179 mv "conftest.tmp" "conftest.in" 4180 cp "conftest.in" "conftest.nl" 4181 $as_echo 'FGREP' >> "conftest.nl" 4182 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4184 as_fn_arith $ac_count + 1 && ac_count=$as_val 4185 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4186 # Best one so far, save it but keep looking for a better one 4187 ac_cv_path_FGREP="$ac_path_FGREP" 4188 ac_path_FGREP_max=$ac_count 4189 fi 4190 # 10*(2^10) chars as input seems more than enough 4191 test $ac_count -gt 10 && break 4192 done 4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4194esac 4195 4196 $ac_path_FGREP_found && break 3 4197 done 4198 done 4199 done 4200IFS=$as_save_IFS 4201 if test -z "$ac_cv_path_FGREP"; then 4202 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4203 fi 4204else 4205 ac_cv_path_FGREP=$FGREP 4206fi 4207 4208 fi 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4211$as_echo "$ac_cv_path_FGREP" >&6; } 4212 FGREP="$ac_cv_path_FGREP" 4213 4214 4215test -z "$GREP" && GREP=grep 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235# Check whether --with-gnu-ld was given. 4236if test "${with_gnu_ld+set}" = set; then : 4237 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4238else 4239 with_gnu_ld=no 4240fi 4241 4242ac_prog=ld 4243if test yes = "$GCC"; then 4244 # Check if gcc -print-prog-name=ld gives a path. 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4246$as_echo_n "checking for ld used by $CC... " >&6; } 4247 case $host in 4248 *-*-mingw*) 4249 # gcc leaves a trailing carriage return, which upsets mingw 4250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4251 *) 4252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4253 esac 4254 case $ac_prog in 4255 # Accept absolute paths. 4256 [\\/]* | ?:[\\/]*) 4257 re_direlt='/[^/][^/]*/\.\./' 4258 # Canonicalize the pathname of ld 4259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4262 done 4263 test -z "$LD" && LD=$ac_prog 4264 ;; 4265 "") 4266 # If it fails, then pretend we aren't using GCC. 4267 ac_prog=ld 4268 ;; 4269 *) 4270 # If it is relative, then search for the first ld in PATH. 4271 with_gnu_ld=unknown 4272 ;; 4273 esac 4274elif test yes = "$with_gnu_ld"; then 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4276$as_echo_n "checking for GNU ld... " >&6; } 4277else 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4279$as_echo_n "checking for non-GNU ld... " >&6; } 4280fi 4281if ${lt_cv_path_LD+:} false; then : 4282 $as_echo_n "(cached) " >&6 4283else 4284 if test -z "$LD"; then 4285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4286 for ac_dir in $PATH; do 4287 IFS=$lt_save_ifs 4288 test -z "$ac_dir" && ac_dir=. 4289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4290 lt_cv_path_LD=$ac_dir/$ac_prog 4291 # Check to see if the program is GNU ld. I'd rather use --version, 4292 # but apparently some variants of GNU ld only accept -v. 4293 # Break only if it was the GNU/non-GNU ld that we prefer. 4294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4295 *GNU* | *'with BFD'*) 4296 test no != "$with_gnu_ld" && break 4297 ;; 4298 *) 4299 test yes != "$with_gnu_ld" && break 4300 ;; 4301 esac 4302 fi 4303 done 4304 IFS=$lt_save_ifs 4305else 4306 lt_cv_path_LD=$LD # Let the user override the test with a path. 4307fi 4308fi 4309 4310LD=$lt_cv_path_LD 4311if test -n "$LD"; then 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4313$as_echo "$LD" >&6; } 4314else 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4316$as_echo "no" >&6; } 4317fi 4318test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4320$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4321if ${lt_cv_prog_gnu_ld+:} false; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4325case `$LD -v 2>&1 </dev/null` in 4326*GNU* | *'with BFD'*) 4327 lt_cv_prog_gnu_ld=yes 4328 ;; 4329*) 4330 lt_cv_prog_gnu_ld=no 4331 ;; 4332esac 4333fi 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4335$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4336with_gnu_ld=$lt_cv_prog_gnu_ld 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4347$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4348if ${lt_cv_path_NM+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 if test -n "$NM"; then 4352 # Let the user override the test. 4353 lt_cv_path_NM=$NM 4354else 4355 lt_nm_to_check=${ac_tool_prefix}nm 4356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4357 lt_nm_to_check="$lt_nm_to_check nm" 4358 fi 4359 for lt_tmp_nm in $lt_nm_to_check; do 4360 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4362 IFS=$lt_save_ifs 4363 test -z "$ac_dir" && ac_dir=. 4364 tmp_nm=$ac_dir/$lt_tmp_nm 4365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4366 # Check to see if the nm accepts a BSD-compat flag. 4367 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4368 # nm: unknown option "B" ignored 4369 # Tru64's nm complains that /dev/null is an invalid object file 4370 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4371 case $build_os in 4372 mingw*) lt_bad_file=conftest.nm/nofile ;; 4373 *) lt_bad_file=/dev/null ;; 4374 esac 4375 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4376 *$lt_bad_file* | *'Invalid file or object type'*) 4377 lt_cv_path_NM="$tmp_nm -B" 4378 break 2 4379 ;; 4380 *) 4381 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4382 */dev/null*) 4383 lt_cv_path_NM="$tmp_nm -p" 4384 break 2 4385 ;; 4386 *) 4387 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4388 continue # so that we can try to find one that supports BSD flags 4389 ;; 4390 esac 4391 ;; 4392 esac 4393 fi 4394 done 4395 IFS=$lt_save_ifs 4396 done 4397 : ${lt_cv_path_NM=no} 4398fi 4399fi 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4401$as_echo "$lt_cv_path_NM" >&6; } 4402if test no != "$lt_cv_path_NM"; then 4403 NM=$lt_cv_path_NM 4404else 4405 # Didn't find any BSD compatible name lister, look for dumpbin. 4406 if test -n "$DUMPBIN"; then : 4407 # Let the user override the test. 4408 else 4409 if test -n "$ac_tool_prefix"; then 4410 for ac_prog in dumpbin "link -dump" 4411 do 4412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4413set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4415$as_echo_n "checking for $ac_word... " >&6; } 4416if ${ac_cv_prog_DUMPBIN+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418else 4419 if test -n "$DUMPBIN"; then 4420 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4421else 4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4423for as_dir in $PATH 4424do 4425 IFS=$as_save_IFS 4426 test -z "$as_dir" && as_dir=. 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4429 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4431 break 2 4432 fi 4433done 4434 done 4435IFS=$as_save_IFS 4436 4437fi 4438fi 4439DUMPBIN=$ac_cv_prog_DUMPBIN 4440if test -n "$DUMPBIN"; then 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4442$as_echo "$DUMPBIN" >&6; } 4443else 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445$as_echo "no" >&6; } 4446fi 4447 4448 4449 test -n "$DUMPBIN" && break 4450 done 4451fi 4452if test -z "$DUMPBIN"; then 4453 ac_ct_DUMPBIN=$DUMPBIN 4454 for ac_prog in dumpbin "link -dump" 4455do 4456 # Extract the first word of "$ac_prog", so it can be a program name with args. 4457set dummy $ac_prog; ac_word=$2 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4459$as_echo_n "checking for $ac_word... " >&6; } 4460if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 if test -n "$ac_ct_DUMPBIN"; then 4464 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4465else 4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467for as_dir in $PATH 4468do 4469 IFS=$as_save_IFS 4470 test -z "$as_dir" && as_dir=. 4471 for ac_exec_ext in '' $ac_executable_extensions; do 4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4473 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4475 break 2 4476 fi 4477done 4478 done 4479IFS=$as_save_IFS 4480 4481fi 4482fi 4483ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4484if test -n "$ac_ct_DUMPBIN"; then 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4486$as_echo "$ac_ct_DUMPBIN" >&6; } 4487else 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4489$as_echo "no" >&6; } 4490fi 4491 4492 4493 test -n "$ac_ct_DUMPBIN" && break 4494done 4495 4496 if test "x$ac_ct_DUMPBIN" = x; then 4497 DUMPBIN=":" 4498 else 4499 case $cross_compiling:$ac_tool_warned in 4500yes:) 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4503ac_tool_warned=yes ;; 4504esac 4505 DUMPBIN=$ac_ct_DUMPBIN 4506 fi 4507fi 4508 4509 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4510 *COFF*) 4511 DUMPBIN="$DUMPBIN -symbols -headers" 4512 ;; 4513 *) 4514 DUMPBIN=: 4515 ;; 4516 esac 4517 fi 4518 4519 if test : != "$DUMPBIN"; then 4520 NM=$DUMPBIN 4521 fi 4522fi 4523test -z "$NM" && NM=nm 4524 4525 4526 4527 4528 4529 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4531$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4532if ${lt_cv_nm_interface+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 lt_cv_nm_interface="BSD nm" 4536 echo "int some_variable = 0;" > conftest.$ac_ext 4537 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4538 (eval "$ac_compile" 2>conftest.err) 4539 cat conftest.err >&5 4540 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4541 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4542 cat conftest.err >&5 4543 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4544 cat conftest.out >&5 4545 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4546 lt_cv_nm_interface="MS dumpbin" 4547 fi 4548 rm -f conftest* 4549fi 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4551$as_echo "$lt_cv_nm_interface" >&6; } 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4554$as_echo_n "checking whether ln -s works... " >&6; } 4555LN_S=$as_ln_s 4556if test "$LN_S" = "ln -s"; then 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4558$as_echo "yes" >&6; } 4559else 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4561$as_echo "no, using $LN_S" >&6; } 4562fi 4563 4564# find the maximum length of command line arguments 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4566$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4567if ${lt_cv_sys_max_cmd_len+:} false; then : 4568 $as_echo_n "(cached) " >&6 4569else 4570 i=0 4571 teststring=ABCD 4572 4573 case $build_os in 4574 msdosdjgpp*) 4575 # On DJGPP, this test can blow up pretty badly due to problems in libc 4576 # (any single argument exceeding 2000 bytes causes a buffer overrun 4577 # during glob expansion). Even if it were fixed, the result of this 4578 # check would be larger than it should be. 4579 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4580 ;; 4581 4582 gnu*) 4583 # Under GNU Hurd, this test is not required because there is 4584 # no limit to the length of command line arguments. 4585 # Libtool will interpret -1 as no limit whatsoever 4586 lt_cv_sys_max_cmd_len=-1; 4587 ;; 4588 4589 cygwin* | mingw* | cegcc*) 4590 # On Win9x/ME, this test blows up -- it succeeds, but takes 4591 # about 5 minutes as the teststring grows exponentially. 4592 # Worse, since 9x/ME are not pre-emptively multitasking, 4593 # you end up with a "frozen" computer, even though with patience 4594 # the test eventually succeeds (with a max line length of 256k). 4595 # Instead, let's just punt: use the minimum linelength reported by 4596 # all of the supported platforms: 8192 (on NT/2K/XP). 4597 lt_cv_sys_max_cmd_len=8192; 4598 ;; 4599 4600 mint*) 4601 # On MiNT this can take a long time and run out of memory. 4602 lt_cv_sys_max_cmd_len=8192; 4603 ;; 4604 4605 amigaos*) 4606 # On AmigaOS with pdksh, this test takes hours, literally. 4607 # So we just punt and use a minimum line length of 8192. 4608 lt_cv_sys_max_cmd_len=8192; 4609 ;; 4610 4611 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4612 # This has been around since 386BSD, at least. Likely further. 4613 if test -x /sbin/sysctl; then 4614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4615 elif test -x /usr/sbin/sysctl; then 4616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4617 else 4618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4619 fi 4620 # And add a safety zone 4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4623 ;; 4624 4625 interix*) 4626 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4627 lt_cv_sys_max_cmd_len=196608 4628 ;; 4629 4630 os2*) 4631 # The test takes a long time on OS/2. 4632 lt_cv_sys_max_cmd_len=8192 4633 ;; 4634 4635 osf*) 4636 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4637 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4638 # nice to cause kernel panics so lets avoid the loop below. 4639 # First set a reasonable default. 4640 lt_cv_sys_max_cmd_len=16384 4641 # 4642 if test -x /sbin/sysconfig; then 4643 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4644 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4645 esac 4646 fi 4647 ;; 4648 sco3.2v5*) 4649 lt_cv_sys_max_cmd_len=102400 4650 ;; 4651 sysv5* | sco5v6* | sysv4.2uw2*) 4652 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4653 if test -n "$kargmax"; then 4654 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4655 else 4656 lt_cv_sys_max_cmd_len=32768 4657 fi 4658 ;; 4659 *) 4660 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4661 if test -n "$lt_cv_sys_max_cmd_len" && \ 4662 test undefined != "$lt_cv_sys_max_cmd_len"; then 4663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4665 else 4666 # Make teststring a little bigger before we do anything with it. 4667 # a 1K string should be a reasonable start. 4668 for i in 1 2 3 4 5 6 7 8; do 4669 teststring=$teststring$teststring 4670 done 4671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4672 # If test is not a shell built-in, we'll probably end up computing a 4673 # maximum length that is only half of the actual maximum length, but 4674 # we can't tell. 4675 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4676 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4677 test 17 != "$i" # 1/2 MB should be enough 4678 do 4679 i=`expr $i + 1` 4680 teststring=$teststring$teststring 4681 done 4682 # Only check the string length outside the loop. 4683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4684 teststring= 4685 # Add a significant safety factor because C++ compilers can tack on 4686 # massive amounts of additional arguments before passing them to the 4687 # linker. It appears as though 1/2 is a usable value. 4688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4689 fi 4690 ;; 4691 esac 4692 4693fi 4694 4695if test -n "$lt_cv_sys_max_cmd_len"; then 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4697$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4698else 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4700$as_echo "none" >&6; } 4701fi 4702max_cmd_len=$lt_cv_sys_max_cmd_len 4703 4704 4705 4706 4707 4708 4709: ${CP="cp -f"} 4710: ${MV="mv -f"} 4711: ${RM="rm -f"} 4712 4713if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4714 lt_unset=unset 4715else 4716 lt_unset=false 4717fi 4718 4719 4720 4721 4722 4723# test EBCDIC or ASCII 4724case `echo X|tr X '\101'` in 4725 A) # ASCII based system 4726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4727 lt_SP2NL='tr \040 \012' 4728 lt_NL2SP='tr \015\012 \040\040' 4729 ;; 4730 *) # EBCDIC based system 4731 lt_SP2NL='tr \100 \n' 4732 lt_NL2SP='tr \r\n \100\100' 4733 ;; 4734esac 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4745$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4746if ${lt_cv_to_host_file_cmd+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748else 4749 case $host in 4750 *-*-mingw* ) 4751 case $build in 4752 *-*-mingw* ) # actually msys 4753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4754 ;; 4755 *-*-cygwin* ) 4756 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4757 ;; 4758 * ) # otherwise, assume *nix 4759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4760 ;; 4761 esac 4762 ;; 4763 *-*-cygwin* ) 4764 case $build in 4765 *-*-mingw* ) # actually msys 4766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4767 ;; 4768 *-*-cygwin* ) 4769 lt_cv_to_host_file_cmd=func_convert_file_noop 4770 ;; 4771 * ) # otherwise, assume *nix 4772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4773 ;; 4774 esac 4775 ;; 4776 * ) # unhandled hosts (and "normal" native builds) 4777 lt_cv_to_host_file_cmd=func_convert_file_noop 4778 ;; 4779esac 4780 4781fi 4782 4783to_host_file_cmd=$lt_cv_to_host_file_cmd 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4785$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4786 4787 4788 4789 4790 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4792$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4793if ${lt_cv_to_tool_file_cmd+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 #assume ordinary cross tools, or native build. 4797lt_cv_to_tool_file_cmd=func_convert_file_noop 4798case $host in 4799 *-*-mingw* ) 4800 case $build in 4801 *-*-mingw* ) # actually msys 4802 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4803 ;; 4804 esac 4805 ;; 4806esac 4807 4808fi 4809 4810to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4812$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4813 4814 4815 4816 4817 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4819$as_echo_n "checking for $LD option to reload object files... " >&6; } 4820if ${lt_cv_ld_reload_flag+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 lt_cv_ld_reload_flag='-r' 4824fi 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4826$as_echo "$lt_cv_ld_reload_flag" >&6; } 4827reload_flag=$lt_cv_ld_reload_flag 4828case $reload_flag in 4829"" | " "*) ;; 4830*) reload_flag=" $reload_flag" ;; 4831esac 4832reload_cmds='$LD$reload_flag -o $output$reload_objs' 4833case $host_os in 4834 cygwin* | mingw* | pw32* | cegcc*) 4835 if test yes != "$GCC"; then 4836 reload_cmds=false 4837 fi 4838 ;; 4839 darwin*) 4840 if test yes = "$GCC"; then 4841 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4842 else 4843 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4844 fi 4845 ;; 4846esac 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856if test -n "$ac_tool_prefix"; then 4857 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4858set dummy ${ac_tool_prefix}objdump; ac_word=$2 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4860$as_echo_n "checking for $ac_word... " >&6; } 4861if ${ac_cv_prog_OBJDUMP+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 if test -n "$OBJDUMP"; then 4865 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4866else 4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868for as_dir in $PATH 4869do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4876 break 2 4877 fi 4878done 4879 done 4880IFS=$as_save_IFS 4881 4882fi 4883fi 4884OBJDUMP=$ac_cv_prog_OBJDUMP 4885if test -n "$OBJDUMP"; then 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4887$as_echo "$OBJDUMP" >&6; } 4888else 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4890$as_echo "no" >&6; } 4891fi 4892 4893 4894fi 4895if test -z "$ac_cv_prog_OBJDUMP"; then 4896 ac_ct_OBJDUMP=$OBJDUMP 4897 # Extract the first word of "objdump", so it can be a program name with args. 4898set dummy objdump; ac_word=$2 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4900$as_echo_n "checking for $ac_word... " >&6; } 4901if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 if test -n "$ac_ct_OBJDUMP"; then 4905 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4906else 4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4908for as_dir in $PATH 4909do 4910 IFS=$as_save_IFS 4911 test -z "$as_dir" && as_dir=. 4912 for ac_exec_ext in '' $ac_executable_extensions; do 4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4914 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4916 break 2 4917 fi 4918done 4919 done 4920IFS=$as_save_IFS 4921 4922fi 4923fi 4924ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4925if test -n "$ac_ct_OBJDUMP"; then 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4927$as_echo "$ac_ct_OBJDUMP" >&6; } 4928else 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4930$as_echo "no" >&6; } 4931fi 4932 4933 if test "x$ac_ct_OBJDUMP" = x; then 4934 OBJDUMP="false" 4935 else 4936 case $cross_compiling:$ac_tool_warned in 4937yes:) 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4940ac_tool_warned=yes ;; 4941esac 4942 OBJDUMP=$ac_ct_OBJDUMP 4943 fi 4944else 4945 OBJDUMP="$ac_cv_prog_OBJDUMP" 4946fi 4947 4948test -z "$OBJDUMP" && OBJDUMP=objdump 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4959$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4960if ${lt_cv_deplibs_check_method+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 lt_cv_file_magic_cmd='$MAGIC_CMD' 4964lt_cv_file_magic_test_file= 4965lt_cv_deplibs_check_method='unknown' 4966# Need to set the preceding variable on all platforms that support 4967# interlibrary dependencies. 4968# 'none' -- dependencies not supported. 4969# 'unknown' -- same as none, but documents that we really don't know. 4970# 'pass_all' -- all dependencies passed with no checks. 4971# 'test_compile' -- check by making test program. 4972# 'file_magic [[regex]]' -- check by looking for files in library path 4973# that responds to the $file_magic_cmd with a given extended regex. 4974# If you have 'file' or equivalent on your system and you're not sure 4975# whether 'pass_all' will *always* work, you probably want this one. 4976 4977case $host_os in 4978aix[4-9]*) 4979 lt_cv_deplibs_check_method=pass_all 4980 ;; 4981 4982beos*) 4983 lt_cv_deplibs_check_method=pass_all 4984 ;; 4985 4986bsdi[45]*) 4987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4988 lt_cv_file_magic_cmd='/usr/bin/file -L' 4989 lt_cv_file_magic_test_file=/shlib/libc.so 4990 ;; 4991 4992cygwin*) 4993 # func_win32_libid is a shell function defined in ltmain.sh 4994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4995 lt_cv_file_magic_cmd='func_win32_libid' 4996 ;; 4997 4998mingw* | pw32*) 4999 # Base MSYS/MinGW do not provide the 'file' command needed by 5000 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5001 # unless we find 'file', for example because we are cross-compiling. 5002 if ( file / ) >/dev/null 2>&1; then 5003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5004 lt_cv_file_magic_cmd='func_win32_libid' 5005 else 5006 # Keep this pattern in sync with the one in func_win32_libid. 5007 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5008 lt_cv_file_magic_cmd='$OBJDUMP -f' 5009 fi 5010 ;; 5011 5012cegcc*) 5013 # use the weaker test based on 'objdump'. See mingw*. 5014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5015 lt_cv_file_magic_cmd='$OBJDUMP -f' 5016 ;; 5017 5018darwin* | rhapsody*) 5019 lt_cv_deplibs_check_method=pass_all 5020 ;; 5021 5022freebsd* | dragonfly*) 5023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5024 case $host_cpu in 5025 i*86 ) 5026 # Not sure whether the presence of OpenBSD here was a mistake. 5027 # Let's accept both of them until this is cleared up. 5028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5029 lt_cv_file_magic_cmd=/usr/bin/file 5030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5031 ;; 5032 esac 5033 else 5034 lt_cv_deplibs_check_method=pass_all 5035 fi 5036 ;; 5037 5038haiku*) 5039 lt_cv_deplibs_check_method=pass_all 5040 ;; 5041 5042hpux10.20* | hpux11*) 5043 lt_cv_file_magic_cmd=/usr/bin/file 5044 case $host_cpu in 5045 ia64*) 5046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5048 ;; 5049 hppa*64*) 5050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5052 ;; 5053 *) 5054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5055 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5056 ;; 5057 esac 5058 ;; 5059 5060interix[3-9]*) 5061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5063 ;; 5064 5065irix5* | irix6* | nonstopux*) 5066 case $LD in 5067 *-32|*"-32 ") libmagic=32-bit;; 5068 *-n32|*"-n32 ") libmagic=N32;; 5069 *-64|*"-64 ") libmagic=64-bit;; 5070 *) libmagic=never-match;; 5071 esac 5072 lt_cv_deplibs_check_method=pass_all 5073 ;; 5074 5075# This must be glibc/ELF. 5076linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5077 lt_cv_deplibs_check_method=pass_all 5078 ;; 5079 5080netbsd* | netbsdelf*-gnu) 5081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5083 else 5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5085 fi 5086 ;; 5087 5088newos6*) 5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5090 lt_cv_file_magic_cmd=/usr/bin/file 5091 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5092 ;; 5093 5094*nto* | *qnx*) 5095 lt_cv_deplibs_check_method=pass_all 5096 ;; 5097 5098openbsd* | bitrig*) 5099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5101 else 5102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5103 fi 5104 ;; 5105 5106osf3* | osf4* | osf5*) 5107 lt_cv_deplibs_check_method=pass_all 5108 ;; 5109 5110rdos*) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 5114solaris*) 5115 lt_cv_deplibs_check_method=pass_all 5116 ;; 5117 5118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5119 lt_cv_deplibs_check_method=pass_all 5120 ;; 5121 5122sysv4 | sysv4.3*) 5123 case $host_vendor in 5124 motorola) 5125 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]' 5126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5127 ;; 5128 ncr) 5129 lt_cv_deplibs_check_method=pass_all 5130 ;; 5131 sequent) 5132 lt_cv_file_magic_cmd='/bin/file' 5133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5134 ;; 5135 sni) 5136 lt_cv_file_magic_cmd='/bin/file' 5137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5138 lt_cv_file_magic_test_file=/lib/libc.so 5139 ;; 5140 siemens) 5141 lt_cv_deplibs_check_method=pass_all 5142 ;; 5143 pc) 5144 lt_cv_deplibs_check_method=pass_all 5145 ;; 5146 esac 5147 ;; 5148 5149tpf*) 5150 lt_cv_deplibs_check_method=pass_all 5151 ;; 5152os2*) 5153 lt_cv_deplibs_check_method=pass_all 5154 ;; 5155esac 5156 5157fi 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5159$as_echo "$lt_cv_deplibs_check_method" >&6; } 5160 5161file_magic_glob= 5162want_nocaseglob=no 5163if test "$build" = "$host"; then 5164 case $host_os in 5165 mingw* | pw32*) 5166 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5167 want_nocaseglob=yes 5168 else 5169 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5170 fi 5171 ;; 5172 esac 5173fi 5174 5175file_magic_cmd=$lt_cv_file_magic_cmd 5176deplibs_check_method=$lt_cv_deplibs_check_method 5177test -z "$deplibs_check_method" && deplibs_check_method=unknown 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200if test -n "$ac_tool_prefix"; then 5201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5202set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5204$as_echo_n "checking for $ac_word... " >&6; } 5205if ${ac_cv_prog_DLLTOOL+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 if test -n "$DLLTOOL"; then 5209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5210else 5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222done 5223 done 5224IFS=$as_save_IFS 5225 5226fi 5227fi 5228DLLTOOL=$ac_cv_prog_DLLTOOL 5229if test -n "$DLLTOOL"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5231$as_echo "$DLLTOOL" >&6; } 5232else 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5234$as_echo "no" >&6; } 5235fi 5236 5237 5238fi 5239if test -z "$ac_cv_prog_DLLTOOL"; then 5240 ac_ct_DLLTOOL=$DLLTOOL 5241 # Extract the first word of "dlltool", so it can be a program name with args. 5242set dummy dlltool; ac_word=$2 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5244$as_echo_n "checking for $ac_word... " >&6; } 5245if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 if test -n "$ac_ct_DLLTOOL"; then 5249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5250else 5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252for as_dir in $PATH 5253do 5254 IFS=$as_save_IFS 5255 test -z "$as_dir" && as_dir=. 5256 for ac_exec_ext in '' $ac_executable_extensions; do 5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5258 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5260 break 2 5261 fi 5262done 5263 done 5264IFS=$as_save_IFS 5265 5266fi 5267fi 5268ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5269if test -n "$ac_ct_DLLTOOL"; then 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5271$as_echo "$ac_ct_DLLTOOL" >&6; } 5272else 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5274$as_echo "no" >&6; } 5275fi 5276 5277 if test "x$ac_ct_DLLTOOL" = x; then 5278 DLLTOOL="false" 5279 else 5280 case $cross_compiling:$ac_tool_warned in 5281yes:) 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5284ac_tool_warned=yes ;; 5285esac 5286 DLLTOOL=$ac_ct_DLLTOOL 5287 fi 5288else 5289 DLLTOOL="$ac_cv_prog_DLLTOOL" 5290fi 5291 5292test -z "$DLLTOOL" && DLLTOOL=dlltool 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5304$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5305if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 lt_cv_sharedlib_from_linklib_cmd='unknown' 5309 5310case $host_os in 5311cygwin* | mingw* | pw32* | cegcc*) 5312 # two different shell functions defined in ltmain.sh; 5313 # decide which one to use based on capabilities of $DLLTOOL 5314 case `$DLLTOOL --help 2>&1` in 5315 *--identify-strict*) 5316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5317 ;; 5318 *) 5319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5320 ;; 5321 esac 5322 ;; 5323*) 5324 # fallback: assume linklib IS sharedlib 5325 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5326 ;; 5327esac 5328 5329fi 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5331$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5332sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5333test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5334 5335 5336 5337 5338 5339 5340 5341 5342if test -n "$ac_tool_prefix"; then 5343 for ac_prog in ar 5344 do 5345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5346set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348$as_echo_n "checking for $ac_word... " >&6; } 5349if ${ac_cv_prog_AR+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 if test -n "$AR"; then 5353 ac_cv_prog_AR="$AR" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370fi 5371fi 5372AR=$ac_cv_prog_AR 5373if test -n "$AR"; then 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5375$as_echo "$AR" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 5382 test -n "$AR" && break 5383 done 5384fi 5385if test -z "$AR"; then 5386 ac_ct_AR=$AR 5387 for ac_prog in ar 5388do 5389 # Extract the first word of "$ac_prog", so it can be a program name with args. 5390set dummy $ac_prog; ac_word=$2 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5392$as_echo_n "checking for $ac_word... " >&6; } 5393if ${ac_cv_prog_ac_ct_AR+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 if test -n "$ac_ct_AR"; then 5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5398else 5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5400for as_dir in $PATH 5401do 5402 IFS=$as_save_IFS 5403 test -z "$as_dir" && as_dir=. 5404 for ac_exec_ext in '' $ac_executable_extensions; do 5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5406 ac_cv_prog_ac_ct_AR="$ac_prog" 5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5408 break 2 5409 fi 5410done 5411 done 5412IFS=$as_save_IFS 5413 5414fi 5415fi 5416ac_ct_AR=$ac_cv_prog_ac_ct_AR 5417if test -n "$ac_ct_AR"; then 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5419$as_echo "$ac_ct_AR" >&6; } 5420else 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5422$as_echo "no" >&6; } 5423fi 5424 5425 5426 test -n "$ac_ct_AR" && break 5427done 5428 5429 if test "x$ac_ct_AR" = x; then 5430 AR="false" 5431 else 5432 case $cross_compiling:$ac_tool_warned in 5433yes:) 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5436ac_tool_warned=yes ;; 5437esac 5438 AR=$ac_ct_AR 5439 fi 5440fi 5441 5442: ${AR=ar} 5443: ${AR_FLAGS=cru} 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5456$as_echo_n "checking for archiver @FILE support... " >&6; } 5457if ${lt_cv_ar_at_file+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 lt_cv_ar_at_file=no 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463 5464int 5465main () 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_compile "$LINENO"; then : 5473 echo conftest.$ac_objext > conftest.lst 5474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5476 (eval $lt_ar_try) 2>&5 5477 ac_status=$? 5478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5479 test $ac_status = 0; } 5480 if test 0 -eq "$ac_status"; then 5481 # Ensure the archiver fails upon bogus file names. 5482 rm -f conftest.$ac_objext libconftest.a 5483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5484 (eval $lt_ar_try) 2>&5 5485 ac_status=$? 5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5487 test $ac_status = 0; } 5488 if test 0 -ne "$ac_status"; then 5489 lt_cv_ar_at_file=@ 5490 fi 5491 fi 5492 rm -f conftest.* libconftest.a 5493 5494fi 5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5496 5497fi 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5499$as_echo "$lt_cv_ar_at_file" >&6; } 5500 5501if test no = "$lt_cv_ar_at_file"; then 5502 archiver_list_spec= 5503else 5504 archiver_list_spec=$lt_cv_ar_at_file 5505fi 5506 5507 5508 5509 5510 5511 5512 5513if test -n "$ac_tool_prefix"; then 5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5515set dummy ${ac_tool_prefix}strip; ac_word=$2 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517$as_echo_n "checking for $ac_word... " >&6; } 5518if ${ac_cv_prog_STRIP+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if test -n "$STRIP"; then 5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5523else 5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525for as_dir in $PATH 5526do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535done 5536 done 5537IFS=$as_save_IFS 5538 5539fi 5540fi 5541STRIP=$ac_cv_prog_STRIP 5542if test -n "$STRIP"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5544$as_echo "$STRIP" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549 5550 5551fi 5552if test -z "$ac_cv_prog_STRIP"; then 5553 ac_ct_STRIP=$STRIP 5554 # Extract the first word of "strip", so it can be a program name with args. 5555set dummy strip; ac_word=$2 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5557$as_echo_n "checking for $ac_word... " >&6; } 5558if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 if test -n "$ac_ct_STRIP"; then 5562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5563else 5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5571 ac_cv_prog_ac_ct_STRIP="strip" 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575done 5576 done 5577IFS=$as_save_IFS 5578 5579fi 5580fi 5581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5582if test -n "$ac_ct_STRIP"; then 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5584$as_echo "$ac_ct_STRIP" >&6; } 5585else 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5587$as_echo "no" >&6; } 5588fi 5589 5590 if test "x$ac_ct_STRIP" = x; then 5591 STRIP=":" 5592 else 5593 case $cross_compiling:$ac_tool_warned in 5594yes:) 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5597ac_tool_warned=yes ;; 5598esac 5599 STRIP=$ac_ct_STRIP 5600 fi 5601else 5602 STRIP="$ac_cv_prog_STRIP" 5603fi 5604 5605test -z "$STRIP" && STRIP=: 5606 5607 5608 5609 5610 5611 5612if test -n "$ac_tool_prefix"; then 5613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5614set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5616$as_echo_n "checking for $ac_word... " >&6; } 5617if ${ac_cv_prog_RANLIB+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 if test -n "$RANLIB"; then 5621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5622else 5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5624for as_dir in $PATH 5625do 5626 IFS=$as_save_IFS 5627 test -z "$as_dir" && as_dir=. 5628 for ac_exec_ext in '' $ac_executable_extensions; do 5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5632 break 2 5633 fi 5634done 5635 done 5636IFS=$as_save_IFS 5637 5638fi 5639fi 5640RANLIB=$ac_cv_prog_RANLIB 5641if test -n "$RANLIB"; then 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5643$as_echo "$RANLIB" >&6; } 5644else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5646$as_echo "no" >&6; } 5647fi 5648 5649 5650fi 5651if test -z "$ac_cv_prog_RANLIB"; then 5652 ac_ct_RANLIB=$RANLIB 5653 # Extract the first word of "ranlib", so it can be a program name with args. 5654set dummy ranlib; ac_word=$2 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5656$as_echo_n "checking for $ac_word... " >&6; } 5657if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 if test -n "$ac_ct_RANLIB"; then 5661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5662else 5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5664for as_dir in $PATH 5665do 5666 IFS=$as_save_IFS 5667 test -z "$as_dir" && as_dir=. 5668 for ac_exec_ext in '' $ac_executable_extensions; do 5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5670 ac_cv_prog_ac_ct_RANLIB="ranlib" 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5672 break 2 5673 fi 5674done 5675 done 5676IFS=$as_save_IFS 5677 5678fi 5679fi 5680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5681if test -n "$ac_ct_RANLIB"; then 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5683$as_echo "$ac_ct_RANLIB" >&6; } 5684else 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5686$as_echo "no" >&6; } 5687fi 5688 5689 if test "x$ac_ct_RANLIB" = x; then 5690 RANLIB=":" 5691 else 5692 case $cross_compiling:$ac_tool_warned in 5693yes:) 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5696ac_tool_warned=yes ;; 5697esac 5698 RANLIB=$ac_ct_RANLIB 5699 fi 5700else 5701 RANLIB="$ac_cv_prog_RANLIB" 5702fi 5703 5704test -z "$RANLIB" && RANLIB=: 5705 5706 5707 5708 5709 5710 5711# Determine commands to create old-style static archives. 5712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5713old_postinstall_cmds='chmod 644 $oldlib' 5714old_postuninstall_cmds= 5715 5716if test -n "$RANLIB"; then 5717 case $host_os in 5718 bitrig* | openbsd*) 5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5720 ;; 5721 *) 5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5723 ;; 5724 esac 5725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5726fi 5727 5728case $host_os in 5729 darwin*) 5730 lock_old_archive_extraction=yes ;; 5731 *) 5732 lock_old_archive_extraction=no ;; 5733esac 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755for ac_prog in gawk mawk nawk awk 5756do 5757 # Extract the first word of "$ac_prog", so it can be a program name with args. 5758set dummy $ac_prog; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_AWK+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$AWK"; then 5765 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_AWK="$ac_prog" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784AWK=$ac_cv_prog_AWK 5785if test -n "$AWK"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5787$as_echo "$AWK" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794 test -n "$AWK" && break 5795done 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815# If no C compiler was specified, use CC. 5816LTCC=${LTCC-"$CC"} 5817 5818# If no C compiler flags were specified, use CFLAGS. 5819LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5820 5821# Allow CC to be a program name with arguments. 5822compiler=$CC 5823 5824 5825# Check for command to grab the raw symbol name followed by C symbol from nm. 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5827$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5828if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 5832# These are sane defaults that work on at least a few old systems. 5833# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5834 5835# Character class describing NM global symbol codes. 5836symcode='[BCDEGRST]' 5837 5838# Regexp to match symbols that can be accessed directly from C. 5839sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5840 5841# Define system-specific variables. 5842case $host_os in 5843aix*) 5844 symcode='[BCDT]' 5845 ;; 5846cygwin* | mingw* | pw32* | cegcc*) 5847 symcode='[ABCDGISTW]' 5848 ;; 5849hpux*) 5850 if test ia64 = "$host_cpu"; then 5851 symcode='[ABCDEGRST]' 5852 fi 5853 ;; 5854irix* | nonstopux*) 5855 symcode='[BCDEGRST]' 5856 ;; 5857osf*) 5858 symcode='[BCDEGQRST]' 5859 ;; 5860solaris*) 5861 symcode='[BDRT]' 5862 ;; 5863sco3.2v5*) 5864 symcode='[DT]' 5865 ;; 5866sysv4.2uw2*) 5867 symcode='[DT]' 5868 ;; 5869sysv5* | sco5v6* | unixware* | OpenUNIX*) 5870 symcode='[ABDT]' 5871 ;; 5872sysv4) 5873 symcode='[DFNSTU]' 5874 ;; 5875esac 5876 5877# If we're using GNU nm, then use its standard symbol codes. 5878case `$NM -V 2>&1` in 5879*GNU* | *'with BFD'*) 5880 symcode='[ABCDGIRSTW]' ;; 5881esac 5882 5883if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5884 # Gets list of data symbols to import. 5885 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5886 # Adjust the below global symbol transforms to fixup imported variables. 5887 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5888 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5889 lt_c_name_lib_hook="\ 5890 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5891 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5892else 5893 # Disable hooks by default. 5894 lt_cv_sys_global_symbol_to_import= 5895 lt_cdecl_hook= 5896 lt_c_name_hook= 5897 lt_c_name_lib_hook= 5898fi 5899 5900# Transform an extracted symbol line into a proper C declaration. 5901# Some systems (esp. on ia64) link data and code symbols differently, 5902# so use this general approach. 5903lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5904$lt_cdecl_hook\ 5905" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5906" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5907 5908# Transform an extracted symbol line into symbol name and symbol address 5909lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5910$lt_c_name_hook\ 5911" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5912" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5913 5914# Transform an extracted symbol line into symbol name with lib prefix and 5915# symbol address. 5916lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5917$lt_c_name_lib_hook\ 5918" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5919" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5920" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5921 5922# Handle CRLF in mingw tool chain 5923opt_cr= 5924case $build_os in 5925mingw*) 5926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5927 ;; 5928esac 5929 5930# Try without a prefix underscore, then with it. 5931for ac_symprfx in "" "_"; do 5932 5933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5934 symxfrm="\\1 $ac_symprfx\\2 \\2" 5935 5936 # Write the raw and C identifiers. 5937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5938 # Fake it for dumpbin and say T for any non-static function, 5939 # D for any global variable and I for any imported variable. 5940 # Also find C++ and __fastcall symbols from MSVC++, 5941 # which start with @ or ?. 5942 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5943" {last_section=section; section=\$ 3};"\ 5944" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5945" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5946" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5947" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5948" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5949" \$ 0!~/External *\|/{next};"\ 5950" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5951" {if(hide[section]) next};"\ 5952" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5953" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5954" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5955" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5956" ' prfx=^$ac_symprfx" 5957 else 5958 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5959 fi 5960 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5961 5962 # Check to see that the pipe works correctly. 5963 pipe_works=no 5964 5965 rm -f conftest* 5966 cat > conftest.$ac_ext <<_LT_EOF 5967#ifdef __cplusplus 5968extern "C" { 5969#endif 5970char nm_test_var; 5971void nm_test_func(void); 5972void nm_test_func(void){} 5973#ifdef __cplusplus 5974} 5975#endif 5976int main(){nm_test_var='a';nm_test_func();return(0);} 5977_LT_EOF 5978 5979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5980 (eval $ac_compile) 2>&5 5981 ac_status=$? 5982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5983 test $ac_status = 0; }; then 5984 # Now try to grab the symbols. 5985 nlist=conftest.nm 5986 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 5987 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 5988 # Try sorting and uniquifying the output. 5989 if sort "$nlist" | uniq > "$nlist"T; then 5990 mv -f "$nlist"T "$nlist" 5991 else 5992 rm -f "$nlist"T 5993 fi 5994 5995 # Make sure that we snagged all the symbols we need. 5996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5998 cat <<_LT_EOF > conftest.$ac_ext 5999/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6000#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6001/* DATA imports from DLLs on WIN32 can't be const, because runtime 6002 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6003# define LT_DLSYM_CONST 6004#elif defined __osf__ 6005/* This system does not cope well with relocations in const data. */ 6006# define LT_DLSYM_CONST 6007#else 6008# define LT_DLSYM_CONST const 6009#endif 6010 6011#ifdef __cplusplus 6012extern "C" { 6013#endif 6014 6015_LT_EOF 6016 # Now generate the symbol file. 6017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6018 6019 cat <<_LT_EOF >> conftest.$ac_ext 6020 6021/* The mapping between symbol names and symbols. */ 6022LT_DLSYM_CONST struct { 6023 const char *name; 6024 void *address; 6025} 6026lt__PROGRAM__LTX_preloaded_symbols[] = 6027{ 6028 { "@PROGRAM@", (void *) 0 }, 6029_LT_EOF 6030 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6031 cat <<\_LT_EOF >> conftest.$ac_ext 6032 {0, (void *) 0} 6033}; 6034 6035/* This works around a problem in FreeBSD linker */ 6036#ifdef FREEBSD_WORKAROUND 6037static const void *lt_preloaded_setup() { 6038 return lt__PROGRAM__LTX_preloaded_symbols; 6039} 6040#endif 6041 6042#ifdef __cplusplus 6043} 6044#endif 6045_LT_EOF 6046 # Now try linking the two files. 6047 mv conftest.$ac_objext conftstm.$ac_objext 6048 lt_globsym_save_LIBS=$LIBS 6049 lt_globsym_save_CFLAGS=$CFLAGS 6050 LIBS=conftstm.$ac_objext 6051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6053 (eval $ac_link) 2>&5 6054 ac_status=$? 6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6056 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6057 pipe_works=yes 6058 fi 6059 LIBS=$lt_globsym_save_LIBS 6060 CFLAGS=$lt_globsym_save_CFLAGS 6061 else 6062 echo "cannot find nm_test_func in $nlist" >&5 6063 fi 6064 else 6065 echo "cannot find nm_test_var in $nlist" >&5 6066 fi 6067 else 6068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6069 fi 6070 else 6071 echo "$progname: failed program was:" >&5 6072 cat conftest.$ac_ext >&5 6073 fi 6074 rm -rf conftest* conftst* 6075 6076 # Do not use the global_symbol_pipe unless it works. 6077 if test yes = "$pipe_works"; then 6078 break 6079 else 6080 lt_cv_sys_global_symbol_pipe= 6081 fi 6082done 6083 6084fi 6085 6086if test -z "$lt_cv_sys_global_symbol_pipe"; then 6087 lt_cv_sys_global_symbol_to_cdecl= 6088fi 6089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6091$as_echo "failed" >&6; } 6092else 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6094$as_echo "ok" >&6; } 6095fi 6096 6097# Response file support. 6098if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6099 nm_file_list_spec='@' 6100elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6101 nm_file_list_spec='@' 6102fi 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6141$as_echo_n "checking for sysroot... " >&6; } 6142 6143# Check whether --with-sysroot was given. 6144if test "${with_sysroot+set}" = set; then : 6145 withval=$with_sysroot; 6146else 6147 with_sysroot=no 6148fi 6149 6150 6151lt_sysroot= 6152case $with_sysroot in #( 6153 yes) 6154 if test yes = "$GCC"; then 6155 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6156 fi 6157 ;; #( 6158 /*) 6159 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6160 ;; #( 6161 no|'') 6162 ;; #( 6163 *) 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6165$as_echo "$with_sysroot" >&6; } 6166 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6167 ;; 6168esac 6169 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6171$as_echo "${lt_sysroot:-no}" >&6; } 6172 6173 6174 6175 6176 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6178$as_echo_n "checking for a working dd... " >&6; } 6179if ${ac_cv_path_lt_DD+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 printf 0123456789abcdef0123456789abcdef >conftest.i 6183cat conftest.i conftest.i >conftest2.i 6184: ${lt_DD:=$DD} 6185if test -z "$lt_DD"; then 6186 ac_path_lt_DD_found=false 6187 # Loop through the user's path and test for each of PROGNAME-LIST 6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6189for as_dir in $PATH 6190do 6191 IFS=$as_save_IFS 6192 test -z "$as_dir" && as_dir=. 6193 for ac_prog in dd; do 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6196 as_fn_executable_p "$ac_path_lt_DD" || continue 6197if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6198 cmp -s conftest.i conftest.out \ 6199 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6200fi 6201 $ac_path_lt_DD_found && break 3 6202 done 6203 done 6204 done 6205IFS=$as_save_IFS 6206 if test -z "$ac_cv_path_lt_DD"; then 6207 : 6208 fi 6209else 6210 ac_cv_path_lt_DD=$lt_DD 6211fi 6212 6213rm -f conftest.i conftest2.i conftest.out 6214fi 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6216$as_echo "$ac_cv_path_lt_DD" >&6; } 6217 6218 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6220$as_echo_n "checking how to truncate binary pipes... " >&6; } 6221if ${lt_cv_truncate_bin+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 printf 0123456789abcdef0123456789abcdef >conftest.i 6225cat conftest.i conftest.i >conftest2.i 6226lt_cv_truncate_bin= 6227if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6228 cmp -s conftest.i conftest.out \ 6229 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6230fi 6231rm -f conftest.i conftest2.i conftest.out 6232test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6235$as_echo "$lt_cv_truncate_bin" >&6; } 6236 6237 6238 6239 6240 6241 6242 6243# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6244func_cc_basename () 6245{ 6246 for cc_temp in $*""; do 6247 case $cc_temp in 6248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6250 \-*) ;; 6251 *) break;; 6252 esac 6253 done 6254 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6255} 6256 6257# Check whether --enable-libtool-lock was given. 6258if test "${enable_libtool_lock+set}" = set; then : 6259 enableval=$enable_libtool_lock; 6260fi 6261 6262test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6263 6264# Some flags need to be propagated to the compiler or linker for good 6265# libtool support. 6266case $host in 6267ia64-*-hpux*) 6268 # Find out what ABI is being produced by ac_compile, and set mode 6269 # options accordingly. 6270 echo 'int i;' > conftest.$ac_ext 6271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6272 (eval $ac_compile) 2>&5 6273 ac_status=$? 6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6275 test $ac_status = 0; }; then 6276 case `/usr/bin/file conftest.$ac_objext` in 6277 *ELF-32*) 6278 HPUX_IA64_MODE=32 6279 ;; 6280 *ELF-64*) 6281 HPUX_IA64_MODE=64 6282 ;; 6283 esac 6284 fi 6285 rm -rf conftest* 6286 ;; 6287*-*-irix6*) 6288 # Find out what ABI is being produced by ac_compile, and set linker 6289 # options accordingly. 6290 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6292 (eval $ac_compile) 2>&5 6293 ac_status=$? 6294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6295 test $ac_status = 0; }; then 6296 if test yes = "$lt_cv_prog_gnu_ld"; then 6297 case `/usr/bin/file conftest.$ac_objext` in 6298 *32-bit*) 6299 LD="${LD-ld} -melf32bsmip" 6300 ;; 6301 *N32*) 6302 LD="${LD-ld} -melf32bmipn32" 6303 ;; 6304 *64-bit*) 6305 LD="${LD-ld} -melf64bmip" 6306 ;; 6307 esac 6308 else 6309 case `/usr/bin/file conftest.$ac_objext` in 6310 *32-bit*) 6311 LD="${LD-ld} -32" 6312 ;; 6313 *N32*) 6314 LD="${LD-ld} -n32" 6315 ;; 6316 *64-bit*) 6317 LD="${LD-ld} -64" 6318 ;; 6319 esac 6320 fi 6321 fi 6322 rm -rf conftest* 6323 ;; 6324 6325mips64*-*linux*) 6326 # Find out what ABI is being produced by ac_compile, and set linker 6327 # options accordingly. 6328 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6330 (eval $ac_compile) 2>&5 6331 ac_status=$? 6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6333 test $ac_status = 0; }; then 6334 emul=elf 6335 case `/usr/bin/file conftest.$ac_objext` in 6336 *32-bit*) 6337 emul="${emul}32" 6338 ;; 6339 *64-bit*) 6340 emul="${emul}64" 6341 ;; 6342 esac 6343 case `/usr/bin/file conftest.$ac_objext` in 6344 *MSB*) 6345 emul="${emul}btsmip" 6346 ;; 6347 *LSB*) 6348 emul="${emul}ltsmip" 6349 ;; 6350 esac 6351 case `/usr/bin/file conftest.$ac_objext` in 6352 *N32*) 6353 emul="${emul}n32" 6354 ;; 6355 esac 6356 LD="${LD-ld} -m $emul" 6357 fi 6358 rm -rf conftest* 6359 ;; 6360 6361x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6362s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6363 # Find out what ABI is being produced by ac_compile, and set linker 6364 # options accordingly. Note that the listed cases only cover the 6365 # situations where additional linker options are needed (such as when 6366 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6367 # vice versa); the common cases where no linker options are needed do 6368 # not appear in the list. 6369 echo 'int i;' > conftest.$ac_ext 6370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6371 (eval $ac_compile) 2>&5 6372 ac_status=$? 6373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6374 test $ac_status = 0; }; then 6375 case `/usr/bin/file conftest.o` in 6376 *32-bit*) 6377 case $host in 6378 x86_64-*kfreebsd*-gnu) 6379 LD="${LD-ld} -m elf_i386_fbsd" 6380 ;; 6381 x86_64-*linux*) 6382 case `/usr/bin/file conftest.o` in 6383 *x86-64*) 6384 LD="${LD-ld} -m elf32_x86_64" 6385 ;; 6386 *) 6387 LD="${LD-ld} -m elf_i386" 6388 ;; 6389 esac 6390 ;; 6391 powerpc64le-*linux*) 6392 LD="${LD-ld} -m elf32lppclinux" 6393 ;; 6394 powerpc64-*linux*) 6395 LD="${LD-ld} -m elf32ppclinux" 6396 ;; 6397 s390x-*linux*) 6398 LD="${LD-ld} -m elf_s390" 6399 ;; 6400 sparc64-*linux*) 6401 LD="${LD-ld} -m elf32_sparc" 6402 ;; 6403 esac 6404 ;; 6405 *64-bit*) 6406 case $host in 6407 x86_64-*kfreebsd*-gnu) 6408 LD="${LD-ld} -m elf_x86_64_fbsd" 6409 ;; 6410 x86_64-*linux*) 6411 LD="${LD-ld} -m elf_x86_64" 6412 ;; 6413 powerpcle-*linux*) 6414 LD="${LD-ld} -m elf64lppc" 6415 ;; 6416 powerpc-*linux*) 6417 LD="${LD-ld} -m elf64ppc" 6418 ;; 6419 s390*-*linux*|s390*-*tpf*) 6420 LD="${LD-ld} -m elf64_s390" 6421 ;; 6422 sparc*-*linux*) 6423 LD="${LD-ld} -m elf64_sparc" 6424 ;; 6425 esac 6426 ;; 6427 esac 6428 fi 6429 rm -rf conftest* 6430 ;; 6431 6432*-*-sco3.2v5*) 6433 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6434 SAVE_CFLAGS=$CFLAGS 6435 CFLAGS="$CFLAGS -belf" 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6437$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6438if ${lt_cv_cc_needs_belf+:} false; then : 6439 $as_echo_n "(cached) " >&6 6440else 6441 ac_ext=c 6442ac_cpp='$CPP $CPPFLAGS' 6443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6445ac_compiler_gnu=$ac_cv_c_compiler_gnu 6446 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449 6450int 6451main () 6452{ 6453 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458if ac_fn_c_try_link "$LINENO"; then : 6459 lt_cv_cc_needs_belf=yes 6460else 6461 lt_cv_cc_needs_belf=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext \ 6464 conftest$ac_exeext conftest.$ac_ext 6465 ac_ext=c 6466ac_cpp='$CPP $CPPFLAGS' 6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6469ac_compiler_gnu=$ac_cv_c_compiler_gnu 6470 6471fi 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6473$as_echo "$lt_cv_cc_needs_belf" >&6; } 6474 if test yes != "$lt_cv_cc_needs_belf"; then 6475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6476 CFLAGS=$SAVE_CFLAGS 6477 fi 6478 ;; 6479*-*solaris*) 6480 # Find out what ABI is being produced by ac_compile, and set linker 6481 # options accordingly. 6482 echo 'int i;' > conftest.$ac_ext 6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6484 (eval $ac_compile) 2>&5 6485 ac_status=$? 6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6487 test $ac_status = 0; }; then 6488 case `/usr/bin/file conftest.o` in 6489 *64-bit*) 6490 case $lt_cv_prog_gnu_ld in 6491 yes*) 6492 case $host in 6493 i?86-*-solaris*|x86_64-*-solaris*) 6494 LD="${LD-ld} -m elf_x86_64" 6495 ;; 6496 sparc*-*-solaris*) 6497 LD="${LD-ld} -m elf64_sparc" 6498 ;; 6499 esac 6500 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6501 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6502 LD=${LD-ld}_sol2 6503 fi 6504 ;; 6505 *) 6506 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6507 LD="${LD-ld} -64" 6508 fi 6509 ;; 6510 esac 6511 ;; 6512 esac 6513 fi 6514 rm -rf conftest* 6515 ;; 6516esac 6517 6518need_locks=$enable_libtool_lock 6519 6520if test -n "$ac_tool_prefix"; then 6521 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6522set dummy ${ac_tool_prefix}mt; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$MANIFEST_TOOL"; then 6529 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6538 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6549if test -n "$MANIFEST_TOOL"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6551$as_echo "$MANIFEST_TOOL" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 6558fi 6559if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6560 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6561 # Extract the first word of "mt", so it can be a program name with args. 6562set dummy mt; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$ac_ct_MANIFEST_TOOL"; then 6569 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6589if test -n "$ac_ct_MANIFEST_TOOL"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6591$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6598 MANIFEST_TOOL=":" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6607 fi 6608else 6609 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6610fi 6611 6612test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6614$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6615if ${lt_cv_path_mainfest_tool+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 lt_cv_path_mainfest_tool=no 6619 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6620 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6621 cat conftest.err >&5 6622 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6623 lt_cv_path_mainfest_tool=yes 6624 fi 6625 rm -f conftest* 6626fi 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6628$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6629if test yes != "$lt_cv_path_mainfest_tool"; then 6630 MANIFEST_TOOL=: 6631fi 6632 6633 6634 6635 6636 6637 6638 case $host_os in 6639 rhapsody* | darwin*) 6640 if test -n "$ac_tool_prefix"; then 6641 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6642set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644$as_echo_n "checking for $ac_word... " >&6; } 6645if ${ac_cv_prog_DSYMUTIL+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 if test -n "$DSYMUTIL"; then 6649 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6658 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668DSYMUTIL=$ac_cv_prog_DSYMUTIL 6669if test -n "$DSYMUTIL"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6671$as_echo "$DSYMUTIL" >&6; } 6672else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674$as_echo "no" >&6; } 6675fi 6676 6677 6678fi 6679if test -z "$ac_cv_prog_DSYMUTIL"; then 6680 ac_ct_DSYMUTIL=$DSYMUTIL 6681 # Extract the first word of "dsymutil", so it can be a program name with args. 6682set dummy dsymutil; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 if test -n "$ac_ct_DSYMUTIL"; then 6689 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6698 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703 done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6709if test -n "$ac_ct_DSYMUTIL"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6711$as_echo "$ac_ct_DSYMUTIL" >&6; } 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; } 6715fi 6716 6717 if test "x$ac_ct_DSYMUTIL" = x; then 6718 DSYMUTIL=":" 6719 else 6720 case $cross_compiling:$ac_tool_warned in 6721yes:) 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6724ac_tool_warned=yes ;; 6725esac 6726 DSYMUTIL=$ac_ct_DSYMUTIL 6727 fi 6728else 6729 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6730fi 6731 6732 if test -n "$ac_tool_prefix"; then 6733 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6734set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6736$as_echo_n "checking for $ac_word... " >&6; } 6737if ${ac_cv_prog_NMEDIT+:} false; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 if test -n "$NMEDIT"; then 6741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6742else 6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744for as_dir in $PATH 6745do 6746 IFS=$as_save_IFS 6747 test -z "$as_dir" && as_dir=. 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6750 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754done 6755 done 6756IFS=$as_save_IFS 6757 6758fi 6759fi 6760NMEDIT=$ac_cv_prog_NMEDIT 6761if test -n "$NMEDIT"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6763$as_echo "$NMEDIT" >&6; } 6764else 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6766$as_echo "no" >&6; } 6767fi 6768 6769 6770fi 6771if test -z "$ac_cv_prog_NMEDIT"; then 6772 ac_ct_NMEDIT=$NMEDIT 6773 # Extract the first word of "nmedit", so it can be a program name with args. 6774set dummy nmedit; ac_word=$2 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776$as_echo_n "checking for $ac_word... " >&6; } 6777if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 if test -n "$ac_ct_NMEDIT"; then 6781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6782else 6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784for as_dir in $PATH 6785do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_exec_ext in '' $ac_executable_extensions; do 6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6790 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6792 break 2 6793 fi 6794done 6795 done 6796IFS=$as_save_IFS 6797 6798fi 6799fi 6800ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6801if test -n "$ac_ct_NMEDIT"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6803$as_echo "$ac_ct_NMEDIT" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806$as_echo "no" >&6; } 6807fi 6808 6809 if test "x$ac_ct_NMEDIT" = x; then 6810 NMEDIT=":" 6811 else 6812 case $cross_compiling:$ac_tool_warned in 6813yes:) 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6816ac_tool_warned=yes ;; 6817esac 6818 NMEDIT=$ac_ct_NMEDIT 6819 fi 6820else 6821 NMEDIT="$ac_cv_prog_NMEDIT" 6822fi 6823 6824 if test -n "$ac_tool_prefix"; then 6825 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6826set dummy ${ac_tool_prefix}lipo; ac_word=$2 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6828$as_echo_n "checking for $ac_word... " >&6; } 6829if ${ac_cv_prog_LIPO+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 if test -n "$LIPO"; then 6833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6834else 6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6836for as_dir in $PATH 6837do 6838 IFS=$as_save_IFS 6839 test -z "$as_dir" && as_dir=. 6840 for ac_exec_ext in '' $ac_executable_extensions; do 6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6842 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6844 break 2 6845 fi 6846done 6847 done 6848IFS=$as_save_IFS 6849 6850fi 6851fi 6852LIPO=$ac_cv_prog_LIPO 6853if test -n "$LIPO"; then 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6855$as_echo "$LIPO" >&6; } 6856else 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6858$as_echo "no" >&6; } 6859fi 6860 6861 6862fi 6863if test -z "$ac_cv_prog_LIPO"; then 6864 ac_ct_LIPO=$LIPO 6865 # Extract the first word of "lipo", so it can be a program name with args. 6866set dummy lipo; ac_word=$2 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868$as_echo_n "checking for $ac_word... " >&6; } 6869if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 if test -n "$ac_ct_LIPO"; then 6873 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6874else 6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6882 ac_cv_prog_ac_ct_LIPO="lipo" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887 done 6888IFS=$as_save_IFS 6889 6890fi 6891fi 6892ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6893if test -n "$ac_ct_LIPO"; then 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6895$as_echo "$ac_ct_LIPO" >&6; } 6896else 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6898$as_echo "no" >&6; } 6899fi 6900 6901 if test "x$ac_ct_LIPO" = x; then 6902 LIPO=":" 6903 else 6904 case $cross_compiling:$ac_tool_warned in 6905yes:) 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6908ac_tool_warned=yes ;; 6909esac 6910 LIPO=$ac_ct_LIPO 6911 fi 6912else 6913 LIPO="$ac_cv_prog_LIPO" 6914fi 6915 6916 if test -n "$ac_tool_prefix"; then 6917 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6918set dummy ${ac_tool_prefix}otool; ac_word=$2 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6920$as_echo_n "checking for $ac_word... " >&6; } 6921if ${ac_cv_prog_OTOOL+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 if test -n "$OTOOL"; then 6925 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6926else 6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6928for as_dir in $PATH 6929do 6930 IFS=$as_save_IFS 6931 test -z "$as_dir" && as_dir=. 6932 for ac_exec_ext in '' $ac_executable_extensions; do 6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6934 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6936 break 2 6937 fi 6938done 6939 done 6940IFS=$as_save_IFS 6941 6942fi 6943fi 6944OTOOL=$ac_cv_prog_OTOOL 6945if test -n "$OTOOL"; then 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6947$as_echo "$OTOOL" >&6; } 6948else 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6950$as_echo "no" >&6; } 6951fi 6952 6953 6954fi 6955if test -z "$ac_cv_prog_OTOOL"; then 6956 ac_ct_OTOOL=$OTOOL 6957 # Extract the first word of "otool", so it can be a program name with args. 6958set dummy otool; ac_word=$2 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6960$as_echo_n "checking for $ac_word... " >&6; } 6961if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 if test -n "$ac_ct_OTOOL"; then 6965 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 test -z "$as_dir" && as_dir=. 6972 for ac_exec_ext in '' $ac_executable_extensions; do 6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6974 ac_cv_prog_ac_ct_OTOOL="otool" 6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6976 break 2 6977 fi 6978done 6979 done 6980IFS=$as_save_IFS 6981 6982fi 6983fi 6984ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6985if test -n "$ac_ct_OTOOL"; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6987$as_echo "$ac_ct_OTOOL" >&6; } 6988else 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990$as_echo "no" >&6; } 6991fi 6992 6993 if test "x$ac_ct_OTOOL" = x; then 6994 OTOOL=":" 6995 else 6996 case $cross_compiling:$ac_tool_warned in 6997yes:) 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7000ac_tool_warned=yes ;; 7001esac 7002 OTOOL=$ac_ct_OTOOL 7003 fi 7004else 7005 OTOOL="$ac_cv_prog_OTOOL" 7006fi 7007 7008 if test -n "$ac_tool_prefix"; then 7009 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7010set dummy ${ac_tool_prefix}otool64; ac_word=$2 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7012$as_echo_n "checking for $ac_word... " >&6; } 7013if ${ac_cv_prog_OTOOL64+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 if test -n "$OTOOL64"; then 7017 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7018else 7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020for as_dir in $PATH 7021do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7026 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034fi 7035fi 7036OTOOL64=$ac_cv_prog_OTOOL64 7037if test -n "$OTOOL64"; then 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7039$as_echo "$OTOOL64" >&6; } 7040else 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7042$as_echo "no" >&6; } 7043fi 7044 7045 7046fi 7047if test -z "$ac_cv_prog_OTOOL64"; then 7048 ac_ct_OTOOL64=$OTOOL64 7049 # Extract the first word of "otool64", so it can be a program name with args. 7050set dummy otool64; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$ac_ct_OTOOL64"; then 7057 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7066 ac_cv_prog_ac_ct_OTOOL64="otool64" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7077if test -n "$ac_ct_OTOOL64"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7079$as_echo "$ac_ct_OTOOL64" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 if test "x$ac_ct_OTOOL64" = x; then 7086 OTOOL64=":" 7087 else 7088 case $cross_compiling:$ac_tool_warned in 7089yes:) 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7092ac_tool_warned=yes ;; 7093esac 7094 OTOOL64=$ac_ct_OTOOL64 7095 fi 7096else 7097 OTOOL64="$ac_cv_prog_OTOOL64" 7098fi 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7127$as_echo_n "checking for -single_module linker flag... " >&6; } 7128if ${lt_cv_apple_cc_single_mod+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 lt_cv_apple_cc_single_mod=no 7132 if test -z "$LT_MULTI_MODULE"; then 7133 # By default we will add the -single_module flag. You can override 7134 # by either setting the environment variable LT_MULTI_MODULE 7135 # non-empty at configure time, or by adding -multi_module to the 7136 # link flags. 7137 rm -rf libconftest.dylib* 7138 echo "int foo(void){return 1;}" > conftest.c 7139 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7140-dynamiclib -Wl,-single_module conftest.c" >&5 7141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7142 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7143 _lt_result=$? 7144 # If there is a non-empty error log, and "single_module" 7145 # appears in it, assume the flag caused a linker warning 7146 if test -s conftest.err && $GREP single_module conftest.err; then 7147 cat conftest.err >&5 7148 # Otherwise, if the output was created with a 0 exit code from 7149 # the compiler, it worked. 7150 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7151 lt_cv_apple_cc_single_mod=yes 7152 else 7153 cat conftest.err >&5 7154 fi 7155 rm -rf libconftest.dylib* 7156 rm -f conftest.* 7157 fi 7158fi 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7160$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7161 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7163$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7164if ${lt_cv_ld_exported_symbols_list+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 lt_cv_ld_exported_symbols_list=no 7168 save_LDFLAGS=$LDFLAGS 7169 echo "_main" > conftest.sym 7170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173 7174int 7175main () 7176{ 7177 7178 ; 7179 return 0; 7180} 7181_ACEOF 7182if ac_fn_c_try_link "$LINENO"; then : 7183 lt_cv_ld_exported_symbols_list=yes 7184else 7185 lt_cv_ld_exported_symbols_list=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext \ 7188 conftest$ac_exeext conftest.$ac_ext 7189 LDFLAGS=$save_LDFLAGS 7190 7191fi 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7193$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7194 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7196$as_echo_n "checking for -force_load linker flag... " >&6; } 7197if ${lt_cv_ld_force_load+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 lt_cv_ld_force_load=no 7201 cat > conftest.c << _LT_EOF 7202int forced_loaded() { return 2;} 7203_LT_EOF 7204 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7205 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7206 echo "$AR cru libconftest.a conftest.o" >&5 7207 $AR cru libconftest.a conftest.o 2>&5 7208 echo "$RANLIB libconftest.a" >&5 7209 $RANLIB libconftest.a 2>&5 7210 cat > conftest.c << _LT_EOF 7211int main() { return 0;} 7212_LT_EOF 7213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7215 _lt_result=$? 7216 if test -s conftest.err && $GREP force_load conftest.err; then 7217 cat conftest.err >&5 7218 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7219 lt_cv_ld_force_load=yes 7220 else 7221 cat conftest.err >&5 7222 fi 7223 rm -f conftest.err libconftest.a conftest conftest.c 7224 rm -rf conftest.dSYM 7225 7226fi 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7228$as_echo "$lt_cv_ld_force_load" >&6; } 7229 case $host_os in 7230 rhapsody* | darwin1.[012]) 7231 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7232 darwin1.*) 7233 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7234 darwin*) # darwin 5.x on 7235 # if running on 10.5 or later, the deployment target defaults 7236 # to the OS version, if on x86, and 10.4, the deployment 7237 # target defaults to 10.4. Don't you love it? 7238 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7239 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7240 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7241 10.[012][,.]*) 7242 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7243 10.*) 7244 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7245 esac 7246 ;; 7247 esac 7248 if test yes = "$lt_cv_apple_cc_single_mod"; then 7249 _lt_dar_single_mod='$single_module' 7250 fi 7251 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7252 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7253 else 7254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7255 fi 7256 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7257 _lt_dsymutil='~$DSYMUTIL $lib || :' 7258 else 7259 _lt_dsymutil= 7260 fi 7261 ;; 7262 esac 7263 7264# func_munge_path_list VARIABLE PATH 7265# ----------------------------------- 7266# VARIABLE is name of variable containing _space_ separated list of 7267# directories to be munged by the contents of PATH, which is string 7268# having a format: 7269# "DIR[:DIR]:" 7270# string "DIR[ DIR]" will be prepended to VARIABLE 7271# ":DIR[:DIR]" 7272# string "DIR[ DIR]" will be appended to VARIABLE 7273# "DIRP[:DIRP]::[DIRA:]DIRA" 7274# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7275# "DIRA[ DIRA]" will be appended to VARIABLE 7276# "DIR[:DIR]" 7277# VARIABLE will be replaced by "DIR[ DIR]" 7278func_munge_path_list () 7279{ 7280 case x$2 in 7281 x) 7282 ;; 7283 *:) 7284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7285 ;; 7286 x:*) 7287 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7288 ;; 7289 *::*) 7290 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7291 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7292 ;; 7293 *) 7294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7295 ;; 7296 esac 7297} 7298 7299ac_ext=c 7300ac_cpp='$CPP $CPPFLAGS' 7301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7303ac_compiler_gnu=$ac_cv_c_compiler_gnu 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7305$as_echo_n "checking how to run the C preprocessor... " >&6; } 7306# On Suns, sometimes $CPP names a directory. 7307if test -n "$CPP" && test -d "$CPP"; then 7308 CPP= 7309fi 7310if test -z "$CPP"; then 7311 if ${ac_cv_prog_CPP+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 # Double quotes because CPP needs to be expanded 7315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7316 do 7317 ac_preproc_ok=false 7318for ac_c_preproc_warn_flag in '' yes 7319do 7320 # Use a header file that comes with gcc, so configuring glibc 7321 # with a fresh cross-compiler works. 7322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7323 # <limits.h> exists even on freestanding compilers. 7324 # On the NeXT, cc -E runs the code through the compiler's parser, 7325 # not just through cpp. "Syntax error" is here to catch this case. 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327/* end confdefs.h. */ 7328#ifdef __STDC__ 7329# include <limits.h> 7330#else 7331# include <assert.h> 7332#endif 7333 Syntax error 7334_ACEOF 7335if ac_fn_c_try_cpp "$LINENO"; then : 7336 7337else 7338 # Broken: fails on valid input. 7339continue 7340fi 7341rm -f conftest.err conftest.i conftest.$ac_ext 7342 7343 # OK, works on sane cases. Now check whether nonexistent headers 7344 # can be detected and how. 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#include <ac_nonexistent.h> 7348_ACEOF 7349if ac_fn_c_try_cpp "$LINENO"; then : 7350 # Broken: success on invalid input. 7351continue 7352else 7353 # Passes both tests. 7354ac_preproc_ok=: 7355break 7356fi 7357rm -f conftest.err conftest.i conftest.$ac_ext 7358 7359done 7360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7361rm -f conftest.i conftest.err conftest.$ac_ext 7362if $ac_preproc_ok; then : 7363 break 7364fi 7365 7366 done 7367 ac_cv_prog_CPP=$CPP 7368 7369fi 7370 CPP=$ac_cv_prog_CPP 7371else 7372 ac_cv_prog_CPP=$CPP 7373fi 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7375$as_echo "$CPP" >&6; } 7376ac_preproc_ok=false 7377for ac_c_preproc_warn_flag in '' yes 7378do 7379 # Use a header file that comes with gcc, so configuring glibc 7380 # with a fresh cross-compiler works. 7381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7382 # <limits.h> exists even on freestanding compilers. 7383 # On the NeXT, cc -E runs the code through the compiler's parser, 7384 # not just through cpp. "Syntax error" is here to catch this case. 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387#ifdef __STDC__ 7388# include <limits.h> 7389#else 7390# include <assert.h> 7391#endif 7392 Syntax error 7393_ACEOF 7394if ac_fn_c_try_cpp "$LINENO"; then : 7395 7396else 7397 # Broken: fails on valid input. 7398continue 7399fi 7400rm -f conftest.err conftest.i conftest.$ac_ext 7401 7402 # OK, works on sane cases. Now check whether nonexistent headers 7403 # can be detected and how. 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406#include <ac_nonexistent.h> 7407_ACEOF 7408if ac_fn_c_try_cpp "$LINENO"; then : 7409 # Broken: success on invalid input. 7410continue 7411else 7412 # Passes both tests. 7413ac_preproc_ok=: 7414break 7415fi 7416rm -f conftest.err conftest.i conftest.$ac_ext 7417 7418done 7419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7420rm -f conftest.i conftest.err conftest.$ac_ext 7421if $ac_preproc_ok; then : 7422 7423else 7424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7426as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7427See \`config.log' for more details" "$LINENO" 5; } 7428fi 7429 7430ac_ext=c 7431ac_cpp='$CPP $CPPFLAGS' 7432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7434ac_compiler_gnu=$ac_cv_c_compiler_gnu 7435 7436 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7438$as_echo_n "checking for ANSI C header files... " >&6; } 7439if ${ac_cv_header_stdc+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7443/* end confdefs.h. */ 7444#include <stdlib.h> 7445#include <stdarg.h> 7446#include <string.h> 7447#include <float.h> 7448 7449int 7450main () 7451{ 7452 7453 ; 7454 return 0; 7455} 7456_ACEOF 7457if ac_fn_c_try_compile "$LINENO"; then : 7458 ac_cv_header_stdc=yes 7459else 7460 ac_cv_header_stdc=no 7461fi 7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7463 7464if test $ac_cv_header_stdc = yes; then 7465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7467/* end confdefs.h. */ 7468#include <string.h> 7469 7470_ACEOF 7471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7472 $EGREP "memchr" >/dev/null 2>&1; then : 7473 7474else 7475 ac_cv_header_stdc=no 7476fi 7477rm -f conftest* 7478 7479fi 7480 7481if test $ac_cv_header_stdc = yes; then 7482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7484/* end confdefs.h. */ 7485#include <stdlib.h> 7486 7487_ACEOF 7488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7489 $EGREP "free" >/dev/null 2>&1; then : 7490 7491else 7492 ac_cv_header_stdc=no 7493fi 7494rm -f conftest* 7495 7496fi 7497 7498if test $ac_cv_header_stdc = yes; then 7499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7500 if test "$cross_compiling" = yes; then : 7501 : 7502else 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505#include <ctype.h> 7506#include <stdlib.h> 7507#if ((' ' & 0x0FF) == 0x020) 7508# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7509# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7510#else 7511# define ISLOWER(c) \ 7512 (('a' <= (c) && (c) <= 'i') \ 7513 || ('j' <= (c) && (c) <= 'r') \ 7514 || ('s' <= (c) && (c) <= 'z')) 7515# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7516#endif 7517 7518#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7519int 7520main () 7521{ 7522 int i; 7523 for (i = 0; i < 256; i++) 7524 if (XOR (islower (i), ISLOWER (i)) 7525 || toupper (i) != TOUPPER (i)) 7526 return 2; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_run "$LINENO"; then : 7531 7532else 7533 ac_cv_header_stdc=no 7534fi 7535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7536 conftest.$ac_objext conftest.beam conftest.$ac_ext 7537fi 7538 7539fi 7540fi 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7542$as_echo "$ac_cv_header_stdc" >&6; } 7543if test $ac_cv_header_stdc = yes; then 7544 7545$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7546 7547fi 7548 7549# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7550for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7551 inttypes.h stdint.h unistd.h 7552do : 7553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7554ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7555" 7556if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7557 cat >>confdefs.h <<_ACEOF 7558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7559_ACEOF 7560 7561fi 7562 7563done 7564 7565 7566for ac_header in dlfcn.h 7567do : 7568 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7569" 7570if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7571 cat >>confdefs.h <<_ACEOF 7572#define HAVE_DLFCN_H 1 7573_ACEOF 7574 7575fi 7576 7577done 7578 7579 7580 7581 7582 7583# Set options 7584 7585 7586 7587 enable_dlopen=no 7588 7589 7590 enable_win32_dll=no 7591 7592 7593 # Check whether --enable-shared was given. 7594if test "${enable_shared+set}" = set; then : 7595 enableval=$enable_shared; p=${PACKAGE-default} 7596 case $enableval in 7597 yes) enable_shared=yes ;; 7598 no) enable_shared=no ;; 7599 *) 7600 enable_shared=no 7601 # Look at the argument we got. We use all the common list separators. 7602 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7603 for pkg in $enableval; do 7604 IFS=$lt_save_ifs 7605 if test "X$pkg" = "X$p"; then 7606 enable_shared=yes 7607 fi 7608 done 7609 IFS=$lt_save_ifs 7610 ;; 7611 esac 7612else 7613 enable_shared=yes 7614fi 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 # Check whether --enable-static was given. 7625if test "${enable_static+set}" = set; then : 7626 enableval=$enable_static; p=${PACKAGE-default} 7627 case $enableval in 7628 yes) enable_static=yes ;; 7629 no) enable_static=no ;; 7630 *) 7631 enable_static=no 7632 # Look at the argument we got. We use all the common list separators. 7633 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7634 for pkg in $enableval; do 7635 IFS=$lt_save_ifs 7636 if test "X$pkg" = "X$p"; then 7637 enable_static=yes 7638 fi 7639 done 7640 IFS=$lt_save_ifs 7641 ;; 7642 esac 7643else 7644 enable_static=yes 7645fi 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656# Check whether --with-pic was given. 7657if test "${with_pic+set}" = set; then : 7658 withval=$with_pic; lt_p=${PACKAGE-default} 7659 case $withval in 7660 yes|no) pic_mode=$withval ;; 7661 *) 7662 pic_mode=default 7663 # Look at the argument we got. We use all the common list separators. 7664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7665 for lt_pkg in $withval; do 7666 IFS=$lt_save_ifs 7667 if test "X$lt_pkg" = "X$lt_p"; then 7668 pic_mode=yes 7669 fi 7670 done 7671 IFS=$lt_save_ifs 7672 ;; 7673 esac 7674else 7675 pic_mode=default 7676fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 # Check whether --enable-fast-install was given. 7686if test "${enable_fast_install+set}" = set; then : 7687 enableval=$enable_fast_install; p=${PACKAGE-default} 7688 case $enableval in 7689 yes) enable_fast_install=yes ;; 7690 no) enable_fast_install=no ;; 7691 *) 7692 enable_fast_install=no 7693 # Look at the argument we got. We use all the common list separators. 7694 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7695 for pkg in $enableval; do 7696 IFS=$lt_save_ifs 7697 if test "X$pkg" = "X$p"; then 7698 enable_fast_install=yes 7699 fi 7700 done 7701 IFS=$lt_save_ifs 7702 ;; 7703 esac 7704else 7705 enable_fast_install=yes 7706fi 7707 7708 7709 7710 7711 7712 7713 7714 7715 shared_archive_member_spec= 7716case $host,$enable_shared in 7717power*-*-aix[5-9]*,yes) 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7719$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7720 7721# Check whether --with-aix-soname was given. 7722if test "${with_aix_soname+set}" = set; then : 7723 withval=$with_aix_soname; case $withval in 7724 aix|svr4|both) 7725 ;; 7726 *) 7727 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7728 ;; 7729 esac 7730 lt_cv_with_aix_soname=$with_aix_soname 7731else 7732 if ${lt_cv_with_aix_soname+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 lt_cv_with_aix_soname=aix 7736fi 7737 7738 with_aix_soname=$lt_cv_with_aix_soname 7739fi 7740 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7742$as_echo "$with_aix_soname" >&6; } 7743 if test aix != "$with_aix_soname"; then 7744 # For the AIX way of multilib, we name the shared archive member 7745 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7746 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7747 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7748 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7749 if test 64 = "${OBJECT_MODE-32}"; then 7750 shared_archive_member_spec=shr_64 7751 else 7752 shared_archive_member_spec=shr 7753 fi 7754 fi 7755 ;; 7756*) 7757 with_aix_soname=aix 7758 ;; 7759esac 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770# This can be used to rebuild libtool when needed 7771LIBTOOL_DEPS=$ltmain 7772 7773# Always use our own libtool. 7774LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805test -z "$LN_S" && LN_S="ln -s" 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820if test -n "${ZSH_VERSION+set}"; then 7821 setopt NO_GLOB_SUBST 7822fi 7823 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7825$as_echo_n "checking for objdir... " >&6; } 7826if ${lt_cv_objdir+:} false; then : 7827 $as_echo_n "(cached) " >&6 7828else 7829 rm -f .libs 2>/dev/null 7830mkdir .libs 2>/dev/null 7831if test -d .libs; then 7832 lt_cv_objdir=.libs 7833else 7834 # MS-DOS does not allow filenames that begin with a dot. 7835 lt_cv_objdir=_libs 7836fi 7837rmdir .libs 2>/dev/null 7838fi 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7840$as_echo "$lt_cv_objdir" >&6; } 7841objdir=$lt_cv_objdir 7842 7843 7844 7845 7846 7847cat >>confdefs.h <<_ACEOF 7848#define LT_OBJDIR "$lt_cv_objdir/" 7849_ACEOF 7850 7851 7852 7853 7854case $host_os in 7855aix3*) 7856 # AIX sometimes has problems with the GCC collect2 program. For some 7857 # reason, if we set the COLLECT_NAMES environment variable, the problems 7858 # vanish in a puff of smoke. 7859 if test set != "${COLLECT_NAMES+set}"; then 7860 COLLECT_NAMES= 7861 export COLLECT_NAMES 7862 fi 7863 ;; 7864esac 7865 7866# Global variables: 7867ofile=libtool 7868can_build_shared=yes 7869 7870# All known linkers require a '.a' archive for static linking (except MSVC, 7871# which needs '.lib'). 7872libext=a 7873 7874with_gnu_ld=$lt_cv_prog_gnu_ld 7875 7876old_CC=$CC 7877old_CFLAGS=$CFLAGS 7878 7879# Set sane defaults for various variables 7880test -z "$CC" && CC=cc 7881test -z "$LTCC" && LTCC=$CC 7882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7883test -z "$LD" && LD=ld 7884test -z "$ac_objext" && ac_objext=o 7885 7886func_cc_basename $compiler 7887cc_basename=$func_cc_basename_result 7888 7889 7890# Only perform the check for file, if the check method requires it 7891test -z "$MAGIC_CMD" && MAGIC_CMD=file 7892case $deplibs_check_method in 7893file_magic*) 7894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7896$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7897if ${lt_cv_path_MAGIC_CMD+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 case $MAGIC_CMD in 7901[\\/*] | ?:[\\/]*) 7902 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7903 ;; 7904*) 7905 lt_save_MAGIC_CMD=$MAGIC_CMD 7906 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7908 for ac_dir in $ac_dummy; do 7909 IFS=$lt_save_ifs 7910 test -z "$ac_dir" && ac_dir=. 7911 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7912 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7913 if test -n "$file_magic_test_file"; then 7914 case $deplibs_check_method in 7915 "file_magic "*) 7916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7917 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7919 $EGREP "$file_magic_regex" > /dev/null; then 7920 : 7921 else 7922 cat <<_LT_EOF 1>&2 7923 7924*** Warning: the command libtool uses to detect shared libraries, 7925*** $file_magic_cmd, produces output that libtool cannot recognize. 7926*** The result is that libtool may fail to recognize shared libraries 7927*** as such. This will affect the creation of libtool libraries that 7928*** depend on shared libraries, but programs linked with such libtool 7929*** libraries will work regardless of this problem. Nevertheless, you 7930*** may want to report the problem to your system manager and/or to 7931*** bug-libtool@gnu.org 7932 7933_LT_EOF 7934 fi ;; 7935 esac 7936 fi 7937 break 7938 fi 7939 done 7940 IFS=$lt_save_ifs 7941 MAGIC_CMD=$lt_save_MAGIC_CMD 7942 ;; 7943esac 7944fi 7945 7946MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7947if test -n "$MAGIC_CMD"; then 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7949$as_echo "$MAGIC_CMD" >&6; } 7950else 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952$as_echo "no" >&6; } 7953fi 7954 7955 7956 7957 7958 7959if test -z "$lt_cv_path_MAGIC_CMD"; then 7960 if test -n "$ac_tool_prefix"; then 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7962$as_echo_n "checking for file... " >&6; } 7963if ${lt_cv_path_MAGIC_CMD+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 case $MAGIC_CMD in 7967[\\/*] | ?:[\\/]*) 7968 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7969 ;; 7970*) 7971 lt_save_MAGIC_CMD=$MAGIC_CMD 7972 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7974 for ac_dir in $ac_dummy; do 7975 IFS=$lt_save_ifs 7976 test -z "$ac_dir" && ac_dir=. 7977 if test -f "$ac_dir/file"; then 7978 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 7979 if test -n "$file_magic_test_file"; then 7980 case $deplibs_check_method in 7981 "file_magic "*) 7982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7983 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7985 $EGREP "$file_magic_regex" > /dev/null; then 7986 : 7987 else 7988 cat <<_LT_EOF 1>&2 7989 7990*** Warning: the command libtool uses to detect shared libraries, 7991*** $file_magic_cmd, produces output that libtool cannot recognize. 7992*** The result is that libtool may fail to recognize shared libraries 7993*** as such. This will affect the creation of libtool libraries that 7994*** depend on shared libraries, but programs linked with such libtool 7995*** libraries will work regardless of this problem. Nevertheless, you 7996*** may want to report the problem to your system manager and/or to 7997*** bug-libtool@gnu.org 7998 7999_LT_EOF 8000 fi ;; 8001 esac 8002 fi 8003 break 8004 fi 8005 done 8006 IFS=$lt_save_ifs 8007 MAGIC_CMD=$lt_save_MAGIC_CMD 8008 ;; 8009esac 8010fi 8011 8012MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8013if test -n "$MAGIC_CMD"; then 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8015$as_echo "$MAGIC_CMD" >&6; } 8016else 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018$as_echo "no" >&6; } 8019fi 8020 8021 8022 else 8023 MAGIC_CMD=: 8024 fi 8025fi 8026 8027 fi 8028 ;; 8029esac 8030 8031# Use C for the default configuration in the libtool script 8032 8033lt_save_CC=$CC 8034ac_ext=c 8035ac_cpp='$CPP $CPPFLAGS' 8036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8038ac_compiler_gnu=$ac_cv_c_compiler_gnu 8039 8040 8041# Source file extension for C test sources. 8042ac_ext=c 8043 8044# Object file extension for compiled C test sources. 8045objext=o 8046objext=$objext 8047 8048# Code to be used in simple compile tests 8049lt_simple_compile_test_code="int some_variable = 0;" 8050 8051# Code to be used in simple link tests 8052lt_simple_link_test_code='int main(){return(0);}' 8053 8054 8055 8056 8057 8058 8059 8060# If no C compiler was specified, use CC. 8061LTCC=${LTCC-"$CC"} 8062 8063# If no C compiler flags were specified, use CFLAGS. 8064LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8065 8066# Allow CC to be a program name with arguments. 8067compiler=$CC 8068 8069# Save the default compiler, since it gets overwritten when the other 8070# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8071compiler_DEFAULT=$CC 8072 8073# save warnings/boilerplate of simple test code 8074ac_outfile=conftest.$ac_objext 8075echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8077_lt_compiler_boilerplate=`cat conftest.err` 8078$RM conftest* 8079 8080ac_outfile=conftest.$ac_objext 8081echo "$lt_simple_link_test_code" >conftest.$ac_ext 8082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8083_lt_linker_boilerplate=`cat conftest.err` 8084$RM -r conftest* 8085 8086 8087## CAVEAT EMPTOR: 8088## There is no encapsulation within the following macros, do not change 8089## the running order or otherwise move them around unless you know exactly 8090## what you are doing... 8091if test -n "$compiler"; then 8092 8093lt_prog_compiler_no_builtin_flag= 8094 8095if test yes = "$GCC"; then 8096 case $cc_basename in 8097 nvcc*) 8098 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8099 *) 8100 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8101 esac 8102 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8104$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8105if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 lt_cv_prog_compiler_rtti_exceptions=no 8109 ac_outfile=conftest.$ac_objext 8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8111 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8112 # Insert the option either (1) after the last *FLAGS variable, or 8113 # (2) before a word containing "conftest.", or (3) at the end. 8114 # Note that $ac_compile itself does not contain backslashes and begins 8115 # with a dollar sign (not a hyphen), so the echo should work correctly. 8116 # The option is referenced via a variable to avoid confusing sed. 8117 lt_compile=`echo "$ac_compile" | $SED \ 8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8120 -e 's:$: $lt_compiler_flag:'` 8121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8122 (eval "$lt_compile" 2>conftest.err) 8123 ac_status=$? 8124 cat conftest.err >&5 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 if (exit $ac_status) && test -s "$ac_outfile"; then 8127 # The compiler can only warn and ignore the option if not recognized 8128 # So say no if there are warnings other than the usual output. 8129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8132 lt_cv_prog_compiler_rtti_exceptions=yes 8133 fi 8134 fi 8135 $RM conftest* 8136 8137fi 8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8139$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8140 8141if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8142 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8143else 8144 : 8145fi 8146 8147fi 8148 8149 8150 8151 8152 8153 8154 lt_prog_compiler_wl= 8155lt_prog_compiler_pic= 8156lt_prog_compiler_static= 8157 8158 8159 if test yes = "$GCC"; then 8160 lt_prog_compiler_wl='-Wl,' 8161 lt_prog_compiler_static='-static' 8162 8163 case $host_os in 8164 aix*) 8165 # All AIX code is PIC. 8166 if test ia64 = "$host_cpu"; then 8167 # AIX 5 now supports IA64 processor 8168 lt_prog_compiler_static='-Bstatic' 8169 fi 8170 lt_prog_compiler_pic='-fPIC' 8171 ;; 8172 8173 amigaos*) 8174 case $host_cpu in 8175 powerpc) 8176 # see comment about AmigaOS4 .so support 8177 lt_prog_compiler_pic='-fPIC' 8178 ;; 8179 m68k) 8180 # FIXME: we need at least 68020 code to build shared libraries, but 8181 # adding the '-m68020' flag to GCC prevents building anything better, 8182 # like '-m68040'. 8183 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8184 ;; 8185 esac 8186 ;; 8187 8188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8189 # PIC is the default for these OSes. 8190 ;; 8191 8192 mingw* | cygwin* | pw32* | os2* | cegcc*) 8193 # This hack is so that the source file can tell whether it is being 8194 # built for inclusion in a dll (and should export symbols for example). 8195 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8196 # (--disable-auto-import) libraries 8197 lt_prog_compiler_pic='-DDLL_EXPORT' 8198 case $host_os in 8199 os2*) 8200 lt_prog_compiler_static='$wl-static' 8201 ;; 8202 esac 8203 ;; 8204 8205 darwin* | rhapsody*) 8206 # PIC is the default on this platform 8207 # Common symbols not allowed in MH_DYLIB files 8208 lt_prog_compiler_pic='-fno-common' 8209 ;; 8210 8211 haiku*) 8212 # PIC is the default for Haiku. 8213 # The "-static" flag exists, but is broken. 8214 lt_prog_compiler_static= 8215 ;; 8216 8217 hpux*) 8218 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8219 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8220 # sets the default TLS model and affects inlining. 8221 case $host_cpu in 8222 hppa*64*) 8223 # +Z the default 8224 ;; 8225 *) 8226 lt_prog_compiler_pic='-fPIC' 8227 ;; 8228 esac 8229 ;; 8230 8231 interix[3-9]*) 8232 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8233 # Instead, we relocate shared libraries at runtime. 8234 ;; 8235 8236 msdosdjgpp*) 8237 # Just because we use GCC doesn't mean we suddenly get shared libraries 8238 # on systems that don't support them. 8239 lt_prog_compiler_can_build_shared=no 8240 enable_shared=no 8241 ;; 8242 8243 *nto* | *qnx*) 8244 # QNX uses GNU C++, but need to define -shared option too, otherwise 8245 # it will coredump. 8246 lt_prog_compiler_pic='-fPIC -shared' 8247 ;; 8248 8249 sysv4*MP*) 8250 if test -d /usr/nec; then 8251 lt_prog_compiler_pic=-Kconform_pic 8252 fi 8253 ;; 8254 8255 *) 8256 lt_prog_compiler_pic='-fPIC' 8257 ;; 8258 esac 8259 8260 case $cc_basename in 8261 nvcc*) # Cuda Compiler Driver 2.2 8262 lt_prog_compiler_wl='-Xlinker ' 8263 if test -n "$lt_prog_compiler_pic"; then 8264 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8265 fi 8266 ;; 8267 esac 8268 else 8269 # PORTME Check for flag to pass linker flags through the system compiler. 8270 case $host_os in 8271 aix*) 8272 lt_prog_compiler_wl='-Wl,' 8273 if test ia64 = "$host_cpu"; then 8274 # AIX 5 now supports IA64 processor 8275 lt_prog_compiler_static='-Bstatic' 8276 else 8277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8278 fi 8279 ;; 8280 8281 darwin* | rhapsody*) 8282 # PIC is the default on this platform 8283 # Common symbols not allowed in MH_DYLIB files 8284 lt_prog_compiler_pic='-fno-common' 8285 case $cc_basename in 8286 nagfor*) 8287 # NAG Fortran compiler 8288 lt_prog_compiler_wl='-Wl,-Wl,,' 8289 lt_prog_compiler_pic='-PIC' 8290 lt_prog_compiler_static='-Bstatic' 8291 ;; 8292 esac 8293 ;; 8294 8295 mingw* | cygwin* | pw32* | os2* | cegcc*) 8296 # This hack is so that the source file can tell whether it is being 8297 # built for inclusion in a dll (and should export symbols for example). 8298 lt_prog_compiler_pic='-DDLL_EXPORT' 8299 case $host_os in 8300 os2*) 8301 lt_prog_compiler_static='$wl-static' 8302 ;; 8303 esac 8304 ;; 8305 8306 hpux9* | hpux10* | hpux11*) 8307 lt_prog_compiler_wl='-Wl,' 8308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8309 # not for PA HP-UX. 8310 case $host_cpu in 8311 hppa*64*|ia64*) 8312 # +Z the default 8313 ;; 8314 *) 8315 lt_prog_compiler_pic='+Z' 8316 ;; 8317 esac 8318 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8319 lt_prog_compiler_static='$wl-a ${wl}archive' 8320 ;; 8321 8322 irix5* | irix6* | nonstopux*) 8323 lt_prog_compiler_wl='-Wl,' 8324 # PIC (with -KPIC) is the default. 8325 lt_prog_compiler_static='-non_shared' 8326 ;; 8327 8328 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8329 case $cc_basename in 8330 # old Intel for x86_64, which still supported -KPIC. 8331 ecc*) 8332 lt_prog_compiler_wl='-Wl,' 8333 lt_prog_compiler_pic='-KPIC' 8334 lt_prog_compiler_static='-static' 8335 ;; 8336 # icc used to be incompatible with GCC. 8337 # ICC 10 doesn't accept -KPIC any more. 8338 icc* | ifort*) 8339 lt_prog_compiler_wl='-Wl,' 8340 lt_prog_compiler_pic='-fPIC' 8341 lt_prog_compiler_static='-static' 8342 ;; 8343 # Lahey Fortran 8.1. 8344 lf95*) 8345 lt_prog_compiler_wl='-Wl,' 8346 lt_prog_compiler_pic='--shared' 8347 lt_prog_compiler_static='--static' 8348 ;; 8349 nagfor*) 8350 # NAG Fortran compiler 8351 lt_prog_compiler_wl='-Wl,-Wl,,' 8352 lt_prog_compiler_pic='-PIC' 8353 lt_prog_compiler_static='-Bstatic' 8354 ;; 8355 tcc*) 8356 # Fabrice Bellard et al's Tiny C Compiler 8357 lt_prog_compiler_wl='-Wl,' 8358 lt_prog_compiler_pic='-fPIC' 8359 lt_prog_compiler_static='-static' 8360 ;; 8361 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8362 # Portland Group compilers (*not* the Pentium gcc compiler, 8363 # which looks to be a dead project) 8364 lt_prog_compiler_wl='-Wl,' 8365 lt_prog_compiler_pic='-fpic' 8366 lt_prog_compiler_static='-Bstatic' 8367 ;; 8368 ccc*) 8369 lt_prog_compiler_wl='-Wl,' 8370 # All Alpha code is PIC. 8371 lt_prog_compiler_static='-non_shared' 8372 ;; 8373 xl* | bgxl* | bgf* | mpixl*) 8374 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8375 lt_prog_compiler_wl='-Wl,' 8376 lt_prog_compiler_pic='-qpic' 8377 lt_prog_compiler_static='-qstaticlink' 8378 ;; 8379 *) 8380 case `$CC -V 2>&1 | sed 5q` in 8381 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8382 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8383 lt_prog_compiler_pic='-KPIC' 8384 lt_prog_compiler_static='-Bstatic' 8385 lt_prog_compiler_wl='' 8386 ;; 8387 *Sun\ F* | *Sun*Fortran*) 8388 lt_prog_compiler_pic='-KPIC' 8389 lt_prog_compiler_static='-Bstatic' 8390 lt_prog_compiler_wl='-Qoption ld ' 8391 ;; 8392 *Sun\ C*) 8393 # Sun C 5.9 8394 lt_prog_compiler_pic='-KPIC' 8395 lt_prog_compiler_static='-Bstatic' 8396 lt_prog_compiler_wl='-Wl,' 8397 ;; 8398 *Intel*\ [CF]*Compiler*) 8399 lt_prog_compiler_wl='-Wl,' 8400 lt_prog_compiler_pic='-fPIC' 8401 lt_prog_compiler_static='-static' 8402 ;; 8403 *Portland\ Group*) 8404 lt_prog_compiler_wl='-Wl,' 8405 lt_prog_compiler_pic='-fpic' 8406 lt_prog_compiler_static='-Bstatic' 8407 ;; 8408 esac 8409 ;; 8410 esac 8411 ;; 8412 8413 newsos6) 8414 lt_prog_compiler_pic='-KPIC' 8415 lt_prog_compiler_static='-Bstatic' 8416 ;; 8417 8418 *nto* | *qnx*) 8419 # QNX uses GNU C++, but need to define -shared option too, otherwise 8420 # it will coredump. 8421 lt_prog_compiler_pic='-fPIC -shared' 8422 ;; 8423 8424 osf3* | osf4* | osf5*) 8425 lt_prog_compiler_wl='-Wl,' 8426 # All OSF/1 code is PIC. 8427 lt_prog_compiler_static='-non_shared' 8428 ;; 8429 8430 rdos*) 8431 lt_prog_compiler_static='-non_shared' 8432 ;; 8433 8434 solaris*) 8435 lt_prog_compiler_pic='-KPIC' 8436 lt_prog_compiler_static='-Bstatic' 8437 case $cc_basename in 8438 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8439 lt_prog_compiler_wl='-Qoption ld ';; 8440 *) 8441 lt_prog_compiler_wl='-Wl,';; 8442 esac 8443 ;; 8444 8445 sunos4*) 8446 lt_prog_compiler_wl='-Qoption ld ' 8447 lt_prog_compiler_pic='-PIC' 8448 lt_prog_compiler_static='-Bstatic' 8449 ;; 8450 8451 sysv4 | sysv4.2uw2* | sysv4.3*) 8452 lt_prog_compiler_wl='-Wl,' 8453 lt_prog_compiler_pic='-KPIC' 8454 lt_prog_compiler_static='-Bstatic' 8455 ;; 8456 8457 sysv4*MP*) 8458 if test -d /usr/nec; then 8459 lt_prog_compiler_pic='-Kconform_pic' 8460 lt_prog_compiler_static='-Bstatic' 8461 fi 8462 ;; 8463 8464 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-KPIC' 8467 lt_prog_compiler_static='-Bstatic' 8468 ;; 8469 8470 unicos*) 8471 lt_prog_compiler_wl='-Wl,' 8472 lt_prog_compiler_can_build_shared=no 8473 ;; 8474 8475 uts4*) 8476 lt_prog_compiler_pic='-pic' 8477 lt_prog_compiler_static='-Bstatic' 8478 ;; 8479 8480 *) 8481 lt_prog_compiler_can_build_shared=no 8482 ;; 8483 esac 8484 fi 8485 8486case $host_os in 8487 # For platforms that do not support PIC, -DPIC is meaningless: 8488 *djgpp*) 8489 lt_prog_compiler_pic= 8490 ;; 8491 *) 8492 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8493 ;; 8494esac 8495 8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8497$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8498if ${lt_cv_prog_compiler_pic+:} false; then : 8499 $as_echo_n "(cached) " >&6 8500else 8501 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8504$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8505lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8506 8507# 8508# Check to make sure the PIC flag actually works. 8509# 8510if test -n "$lt_prog_compiler_pic"; then 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8512$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8513if ${lt_cv_prog_compiler_pic_works+:} false; then : 8514 $as_echo_n "(cached) " >&6 8515else 8516 lt_cv_prog_compiler_pic_works=no 8517 ac_outfile=conftest.$ac_objext 8518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8519 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8520 # Insert the option either (1) after the last *FLAGS variable, or 8521 # (2) before a word containing "conftest.", or (3) at the end. 8522 # Note that $ac_compile itself does not contain backslashes and begins 8523 # with a dollar sign (not a hyphen), so the echo should work correctly. 8524 # The option is referenced via a variable to avoid confusing sed. 8525 lt_compile=`echo "$ac_compile" | $SED \ 8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8528 -e 's:$: $lt_compiler_flag:'` 8529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8530 (eval "$lt_compile" 2>conftest.err) 8531 ac_status=$? 8532 cat conftest.err >&5 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 if (exit $ac_status) && test -s "$ac_outfile"; then 8535 # The compiler can only warn and ignore the option if not recognized 8536 # So say no if there are warnings other than the usual output. 8537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8540 lt_cv_prog_compiler_pic_works=yes 8541 fi 8542 fi 8543 $RM conftest* 8544 8545fi 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8547$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8548 8549if test yes = "$lt_cv_prog_compiler_pic_works"; then 8550 case $lt_prog_compiler_pic in 8551 "" | " "*) ;; 8552 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8553 esac 8554else 8555 lt_prog_compiler_pic= 8556 lt_prog_compiler_can_build_shared=no 8557fi 8558 8559fi 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571# 8572# Check to make sure the static flag actually works. 8573# 8574wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8576$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8577if ${lt_cv_prog_compiler_static_works+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 lt_cv_prog_compiler_static_works=no 8581 save_LDFLAGS=$LDFLAGS 8582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8583 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8585 # The linker can only warn and ignore the option if not recognized 8586 # So say no if there are warnings 8587 if test -s conftest.err; then 8588 # Append any errors to the config.log. 8589 cat conftest.err 1>&5 8590 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8592 if diff conftest.exp conftest.er2 >/dev/null; then 8593 lt_cv_prog_compiler_static_works=yes 8594 fi 8595 else 8596 lt_cv_prog_compiler_static_works=yes 8597 fi 8598 fi 8599 $RM -r conftest* 8600 LDFLAGS=$save_LDFLAGS 8601 8602fi 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8604$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8605 8606if test yes = "$lt_cv_prog_compiler_static_works"; then 8607 : 8608else 8609 lt_prog_compiler_static= 8610fi 8611 8612 8613 8614 8615 8616 8617 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8619$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8620if ${lt_cv_prog_compiler_c_o+:} false; then : 8621 $as_echo_n "(cached) " >&6 8622else 8623 lt_cv_prog_compiler_c_o=no 8624 $RM -r conftest 2>/dev/null 8625 mkdir conftest 8626 cd conftest 8627 mkdir out 8628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8629 8630 lt_compiler_flag="-o out/conftest2.$ac_objext" 8631 # Insert the option either (1) after the last *FLAGS variable, or 8632 # (2) before a word containing "conftest.", or (3) at the end. 8633 # Note that $ac_compile itself does not contain backslashes and begins 8634 # with a dollar sign (not a hyphen), so the echo should work correctly. 8635 lt_compile=`echo "$ac_compile" | $SED \ 8636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8638 -e 's:$: $lt_compiler_flag:'` 8639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8640 (eval "$lt_compile" 2>out/conftest.err) 8641 ac_status=$? 8642 cat out/conftest.err >&5 8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8644 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8645 then 8646 # The compiler can only warn and ignore the option if not recognized 8647 # So say no if there are warnings 8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8651 lt_cv_prog_compiler_c_o=yes 8652 fi 8653 fi 8654 chmod u+w . 2>&5 8655 $RM conftest* 8656 # SGI C++ compiler will create directory out/ii_files/ for 8657 # template instantiation 8658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8659 $RM out/* && rmdir out 8660 cd .. 8661 $RM -r conftest 8662 $RM conftest* 8663 8664fi 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8666$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8667 8668 8669 8670 8671 8672 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8675if ${lt_cv_prog_compiler_c_o+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 lt_cv_prog_compiler_c_o=no 8679 $RM -r conftest 2>/dev/null 8680 mkdir conftest 8681 cd conftest 8682 mkdir out 8683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8684 8685 lt_compiler_flag="-o out/conftest2.$ac_objext" 8686 # Insert the option either (1) after the last *FLAGS variable, or 8687 # (2) before a word containing "conftest.", or (3) at the end. 8688 # Note that $ac_compile itself does not contain backslashes and begins 8689 # with a dollar sign (not a hyphen), so the echo should work correctly. 8690 lt_compile=`echo "$ac_compile" | $SED \ 8691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8693 -e 's:$: $lt_compiler_flag:'` 8694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8695 (eval "$lt_compile" 2>out/conftest.err) 8696 ac_status=$? 8697 cat out/conftest.err >&5 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8700 then 8701 # The compiler can only warn and ignore the option if not recognized 8702 # So say no if there are warnings 8703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8706 lt_cv_prog_compiler_c_o=yes 8707 fi 8708 fi 8709 chmod u+w . 2>&5 8710 $RM conftest* 8711 # SGI C++ compiler will create directory out/ii_files/ for 8712 # template instantiation 8713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8714 $RM out/* && rmdir out 8715 cd .. 8716 $RM -r conftest 8717 $RM conftest* 8718 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8721$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8722 8723 8724 8725 8726hard_links=nottested 8727if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8728 # do not overwrite the value of need_locks provided by the user 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8730$as_echo_n "checking if we can lock with hard links... " >&6; } 8731 hard_links=yes 8732 $RM conftest* 8733 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8734 touch conftest.a 8735 ln conftest.a conftest.b 2>&5 || hard_links=no 8736 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8738$as_echo "$hard_links" >&6; } 8739 if test no = "$hard_links"; then 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8741$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8742 need_locks=warn 8743 fi 8744else 8745 need_locks=no 8746fi 8747 8748 8749 8750 8751 8752 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8754$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8755 8756 runpath_var= 8757 allow_undefined_flag= 8758 always_export_symbols=no 8759 archive_cmds= 8760 archive_expsym_cmds= 8761 compiler_needs_object=no 8762 enable_shared_with_static_runtimes=no 8763 export_dynamic_flag_spec= 8764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8765 hardcode_automatic=no 8766 hardcode_direct=no 8767 hardcode_direct_absolute=no 8768 hardcode_libdir_flag_spec= 8769 hardcode_libdir_separator= 8770 hardcode_minus_L=no 8771 hardcode_shlibpath_var=unsupported 8772 inherit_rpath=no 8773 link_all_deplibs=unknown 8774 module_cmds= 8775 module_expsym_cmds= 8776 old_archive_from_new_cmds= 8777 old_archive_from_expsyms_cmds= 8778 thread_safe_flag_spec= 8779 whole_archive_flag_spec= 8780 # include_expsyms should be a list of space-separated symbols to be *always* 8781 # included in the symbol list 8782 include_expsyms= 8783 # exclude_expsyms can be an extended regexp of symbols to exclude 8784 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8785 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8786 # as well as any symbol that contains 'd'. 8787 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8789 # platforms (ab)use it in PIC code, but their linkers get confused if 8790 # the symbol is explicitly referenced. Since portable code cannot 8791 # rely on this symbol name, it's probably fine to never include it in 8792 # preloaded symbol tables. 8793 # Exclude shared library initialization/finalization symbols. 8794 extract_expsyms_cmds= 8795 8796 case $host_os in 8797 cygwin* | mingw* | pw32* | cegcc*) 8798 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8799 # When not using gcc, we currently assume that we are using 8800 # Microsoft Visual C++. 8801 if test yes != "$GCC"; then 8802 with_gnu_ld=no 8803 fi 8804 ;; 8805 interix*) 8806 # we just hope/assume this is gcc and not c89 (= MSVC++) 8807 with_gnu_ld=yes 8808 ;; 8809 openbsd* | bitrig*) 8810 with_gnu_ld=no 8811 ;; 8812 linux* | k*bsd*-gnu | gnu*) 8813 link_all_deplibs=no 8814 ;; 8815 esac 8816 8817 ld_shlibs=yes 8818 8819 # On some targets, GNU ld is compatible enough with the native linker 8820 # that we're better off using the native interface for both. 8821 lt_use_gnu_ld_interface=no 8822 if test yes = "$with_gnu_ld"; then 8823 case $host_os in 8824 aix*) 8825 # The AIX port of GNU ld has always aspired to compatibility 8826 # with the native linker. However, as the warning in the GNU ld 8827 # block says, versions before 2.19.5* couldn't really create working 8828 # shared libraries, regardless of the interface used. 8829 case `$LD -v 2>&1` in 8830 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8831 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8832 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8833 *) 8834 lt_use_gnu_ld_interface=yes 8835 ;; 8836 esac 8837 ;; 8838 *) 8839 lt_use_gnu_ld_interface=yes 8840 ;; 8841 esac 8842 fi 8843 8844 if test yes = "$lt_use_gnu_ld_interface"; then 8845 # If archive_cmds runs LD, not CC, wlarc should be empty 8846 wlarc='$wl' 8847 8848 # Set some defaults for GNU ld with shared library support. These 8849 # are reset later if shared libraries are not supported. Putting them 8850 # here allows them to be overridden if necessary. 8851 runpath_var=LD_RUN_PATH 8852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8853 export_dynamic_flag_spec='$wl--export-dynamic' 8854 # ancient GNU ld didn't support --whole-archive et. al. 8855 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8856 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8857 else 8858 whole_archive_flag_spec= 8859 fi 8860 supports_anon_versioning=no 8861 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8862 *GNU\ gold*) supports_anon_versioning=yes ;; 8863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8866 *\ 2.11.*) ;; # other 2.11 versions 8867 *) supports_anon_versioning=yes ;; 8868 esac 8869 8870 # See if GNU ld supports shared libraries. 8871 case $host_os in 8872 aix[3-9]*) 8873 # On AIX/PPC, the GNU linker is very broken 8874 if test ia64 != "$host_cpu"; then 8875 ld_shlibs=no 8876 cat <<_LT_EOF 1>&2 8877 8878*** Warning: the GNU linker, at least up to release 2.19, is reported 8879*** to be unable to reliably create shared libraries on AIX. 8880*** Therefore, libtool is disabling shared libraries support. If you 8881*** really care for shared libraries, you may want to install binutils 8882*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8883*** You will then need to restart the configuration process. 8884 8885_LT_EOF 8886 fi 8887 ;; 8888 8889 amigaos*) 8890 case $host_cpu in 8891 powerpc) 8892 # see comment about AmigaOS4 .so support 8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8894 archive_expsym_cmds='' 8895 ;; 8896 m68k) 8897 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)' 8898 hardcode_libdir_flag_spec='-L$libdir' 8899 hardcode_minus_L=yes 8900 ;; 8901 esac 8902 ;; 8903 8904 beos*) 8905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8906 allow_undefined_flag=unsupported 8907 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8908 # support --undefined. This deserves some investigation. FIXME 8909 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8910 else 8911 ld_shlibs=no 8912 fi 8913 ;; 8914 8915 cygwin* | mingw* | pw32* | cegcc*) 8916 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8917 # as there is no search path for DLLs. 8918 hardcode_libdir_flag_spec='-L$libdir' 8919 export_dynamic_flag_spec='$wl--export-all-symbols' 8920 allow_undefined_flag=unsupported 8921 always_export_symbols=no 8922 enable_shared_with_static_runtimes=yes 8923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8924 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8925 8926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8928 # If the export-symbols file already is a .def file, use it as 8929 # is; otherwise, prepend EXPORTS... 8930 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8931 cp $export_symbols $output_objdir/$soname.def; 8932 else 8933 echo EXPORTS > $output_objdir/$soname.def; 8934 cat $export_symbols >> $output_objdir/$soname.def; 8935 fi~ 8936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8937 else 8938 ld_shlibs=no 8939 fi 8940 ;; 8941 8942 haiku*) 8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8944 link_all_deplibs=yes 8945 ;; 8946 8947 os2*) 8948 hardcode_libdir_flag_spec='-L$libdir' 8949 hardcode_minus_L=yes 8950 allow_undefined_flag=unsupported 8951 shrext_cmds=.dll 8952 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8953 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8954 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8955 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8956 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8957 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8958 emximp -o $lib $output_objdir/$libname.def' 8959 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8960 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8961 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8962 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8963 prefix_cmds="$SED"~ 8964 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8965 prefix_cmds="$prefix_cmds -e 1d"; 8966 fi~ 8967 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8968 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8969 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8970 emximp -o $lib $output_objdir/$libname.def' 8971 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8972 enable_shared_with_static_runtimes=yes 8973 ;; 8974 8975 interix[3-9]*) 8976 hardcode_direct=no 8977 hardcode_shlibpath_var=no 8978 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 8979 export_dynamic_flag_spec='$wl-E' 8980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8981 # Instead, shared libraries are loaded at an image base (0x10000000 by 8982 # default) and relocated if they conflict, which is a slow very memory 8983 # consuming and fragmenting process. To avoid this, we pick a random, 8984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8985 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8987 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' 8988 ;; 8989 8990 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8991 tmp_diet=no 8992 if test linux-dietlibc = "$host_os"; then 8993 case $cc_basename in 8994 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8995 esac 8996 fi 8997 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8998 && test no = "$tmp_diet" 8999 then 9000 tmp_addflag=' $pic_flag' 9001 tmp_sharedflag='-shared' 9002 case $cc_basename,$host_cpu in 9003 pgcc*) # Portland Group C compiler 9004 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9005 tmp_addflag=' $pic_flag' 9006 ;; 9007 pgf77* | pgf90* | pgf95* | pgfortran*) 9008 # Portland Group f77 and f90 compilers 9009 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9010 tmp_addflag=' $pic_flag -Mnomain' ;; 9011 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9012 tmp_addflag=' -i_dynamic' ;; 9013 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9014 tmp_addflag=' -i_dynamic -nofor_main' ;; 9015 ifc* | ifort*) # Intel Fortran compiler 9016 tmp_addflag=' -nofor_main' ;; 9017 lf95*) # Lahey Fortran 8.1 9018 whole_archive_flag_spec= 9019 tmp_sharedflag='--shared' ;; 9020 nagfor*) # NAGFOR 5.3 9021 tmp_sharedflag='-Wl,-shared' ;; 9022 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9023 tmp_sharedflag='-qmkshrobj' 9024 tmp_addflag= ;; 9025 nvcc*) # Cuda Compiler Driver 2.2 9026 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9027 compiler_needs_object=yes 9028 ;; 9029 esac 9030 case `$CC -V 2>&1 | sed 5q` in 9031 *Sun\ C*) # Sun C 5.9 9032 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9033 compiler_needs_object=yes 9034 tmp_sharedflag='-G' ;; 9035 *Sun\ F*) # Sun Fortran 8.3 9036 tmp_sharedflag='-G' ;; 9037 esac 9038 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9039 9040 if test yes = "$supports_anon_versioning"; then 9041 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9043 echo "local: *; };" >> $output_objdir/$libname.ver~ 9044 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9045 fi 9046 9047 case $cc_basename in 9048 tcc*) 9049 export_dynamic_flag_spec='-rdynamic' 9050 ;; 9051 xlf* | bgf* | bgxlf* | mpixlf*) 9052 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9053 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9055 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9056 if test yes = "$supports_anon_versioning"; then 9057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9059 echo "local: *; };" >> $output_objdir/$libname.ver~ 9060 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9061 fi 9062 ;; 9063 esac 9064 else 9065 ld_shlibs=no 9066 fi 9067 ;; 9068 9069 netbsd* | netbsdelf*-gnu) 9070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9071 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9072 wlarc= 9073 else 9074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9075 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9076 fi 9077 ;; 9078 9079 solaris*) 9080 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9081 ld_shlibs=no 9082 cat <<_LT_EOF 1>&2 9083 9084*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9085*** create shared libraries on Solaris systems. Therefore, libtool 9086*** is disabling shared libraries support. We urge you to upgrade GNU 9087*** binutils to release 2.9.1 or newer. Another option is to modify 9088*** your PATH or compiler configuration so that the native linker is 9089*** used, and then restart. 9090 9091_LT_EOF 9092 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9094 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9095 else 9096 ld_shlibs=no 9097 fi 9098 ;; 9099 9100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9101 case `$LD -v 2>&1` in 9102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9103 ld_shlibs=no 9104 cat <<_LT_EOF 1>&2 9105 9106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9107*** reliably create shared libraries on SCO systems. Therefore, libtool 9108*** is disabling shared libraries support. We urge you to upgrade GNU 9109*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9110*** your PATH or compiler configuration so that the native linker is 9111*** used, and then restart. 9112 9113_LT_EOF 9114 ;; 9115 *) 9116 # For security reasons, it is highly recommended that you always 9117 # use absolute paths for naming shared libraries, and exclude the 9118 # DT_RUNPATH tag from executables and libraries. But doing so 9119 # requires that you compile everything twice, which is a pain. 9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9124 else 9125 ld_shlibs=no 9126 fi 9127 ;; 9128 esac 9129 ;; 9130 9131 sunos4*) 9132 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9133 wlarc= 9134 hardcode_direct=yes 9135 hardcode_shlibpath_var=no 9136 ;; 9137 9138 *) 9139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9141 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9142 else 9143 ld_shlibs=no 9144 fi 9145 ;; 9146 esac 9147 9148 if test no = "$ld_shlibs"; then 9149 runpath_var= 9150 hardcode_libdir_flag_spec= 9151 export_dynamic_flag_spec= 9152 whole_archive_flag_spec= 9153 fi 9154 else 9155 # PORTME fill in a description of your system's linker (not GNU ld) 9156 case $host_os in 9157 aix3*) 9158 allow_undefined_flag=unsupported 9159 always_export_symbols=yes 9160 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' 9161 # Note: this linker hardcodes the directories in LIBPATH if there 9162 # are no directories specified by -L. 9163 hardcode_minus_L=yes 9164 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9165 # Neither direct hardcoding nor static linking is supported with a 9166 # broken collect2. 9167 hardcode_direct=unsupported 9168 fi 9169 ;; 9170 9171 aix[4-9]*) 9172 if test ia64 = "$host_cpu"; then 9173 # On IA64, the linker does run time linking by default, so we don't 9174 # have to do anything special. 9175 aix_use_runtimelinking=no 9176 exp_sym_flag='-Bexport' 9177 no_entry_flag= 9178 else 9179 # If we're using GNU nm, then we don't want the "-C" option. 9180 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9181 # Without the "-l" option, or with the "-B" option, AIX nm treats 9182 # weak defined symbols like other global defined symbols, whereas 9183 # GNU nm marks them as "W". 9184 # While the 'weak' keyword is ignored in the Export File, we need 9185 # it in the Import File for the 'aix-soname' feature, so we have 9186 # to replace the "-B" option with "-P" for AIX nm. 9187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9188 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9189 else 9190 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9191 fi 9192 aix_use_runtimelinking=no 9193 9194 # Test if we are trying to use run time linking or normal 9195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9196 # have runtime linking enabled, and use it for executables. 9197 # For shared libraries, we enable/disable runtime linking 9198 # depending on the kind of the shared library created - 9199 # when "with_aix_soname,aix_use_runtimelinking" is: 9200 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9201 # "aix,yes" lib.so shared, rtl:yes, for executables 9202 # lib.a static archive 9203 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9204 # lib.a(lib.so.V) shared, rtl:no, for executables 9205 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9206 # lib.a(lib.so.V) shared, rtl:no 9207 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9208 # lib.a static archive 9209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9210 for ld_flag in $LDFLAGS; do 9211 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9212 aix_use_runtimelinking=yes 9213 break 9214 fi 9215 done 9216 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9217 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9218 # so we don't have lib.a shared libs to link our executables. 9219 # We have to force runtime linking in this case. 9220 aix_use_runtimelinking=yes 9221 LDFLAGS="$LDFLAGS -Wl,-brtl" 9222 fi 9223 ;; 9224 esac 9225 9226 exp_sym_flag='-bexport' 9227 no_entry_flag='-bnoentry' 9228 fi 9229 9230 # When large executables or shared objects are built, AIX ld can 9231 # have problems creating the table of contents. If linking a library 9232 # or program results in "error TOC overflow" add -mminimal-toc to 9233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9235 9236 archive_cmds='' 9237 hardcode_direct=yes 9238 hardcode_direct_absolute=yes 9239 hardcode_libdir_separator=':' 9240 link_all_deplibs=yes 9241 file_list_spec='$wl-f,' 9242 case $with_aix_soname,$aix_use_runtimelinking in 9243 aix,*) ;; # traditional, no import file 9244 svr4,* | *,yes) # use import file 9245 # The Import File defines what to hardcode. 9246 hardcode_direct=no 9247 hardcode_direct_absolute=no 9248 ;; 9249 esac 9250 9251 if test yes = "$GCC"; then 9252 case $host_os in aix4.[012]|aix4.[012].*) 9253 # We only want to do this on AIX 4.2 and lower, the check 9254 # below for broken collect2 doesn't work under 4.3+ 9255 collect2name=`$CC -print-prog-name=collect2` 9256 if test -f "$collect2name" && 9257 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9258 then 9259 # We have reworked collect2 9260 : 9261 else 9262 # We have old collect2 9263 hardcode_direct=unsupported 9264 # It fails to find uninstalled libraries when the uninstalled 9265 # path is not listed in the libpath. Setting hardcode_minus_L 9266 # to unsupported forces relinking 9267 hardcode_minus_L=yes 9268 hardcode_libdir_flag_spec='-L$libdir' 9269 hardcode_libdir_separator= 9270 fi 9271 ;; 9272 esac 9273 shared_flag='-shared' 9274 if test yes = "$aix_use_runtimelinking"; then 9275 shared_flag="$shared_flag "'$wl-G' 9276 fi 9277 # Need to ensure runtime linking is disabled for the traditional 9278 # shared library, or the linker may eventually find shared libraries 9279 # /with/ Import File - we do not want to mix them. 9280 shared_flag_aix='-shared' 9281 shared_flag_svr4='-shared $wl-G' 9282 else 9283 # not using gcc 9284 if test ia64 = "$host_cpu"; then 9285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9286 # chokes on -Wl,-G. The following line is correct: 9287 shared_flag='-G' 9288 else 9289 if test yes = "$aix_use_runtimelinking"; then 9290 shared_flag='$wl-G' 9291 else 9292 shared_flag='$wl-bM:SRE' 9293 fi 9294 shared_flag_aix='$wl-bM:SRE' 9295 shared_flag_svr4='$wl-G' 9296 fi 9297 fi 9298 9299 export_dynamic_flag_spec='$wl-bexpall' 9300 # It seems that -bexpall does not export symbols beginning with 9301 # underscore (_), so it is better to generate a list of symbols to export. 9302 always_export_symbols=yes 9303 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9304 # Warning - without using the other runtime loading flags (-brtl), 9305 # -berok will link without error, but may produce a broken library. 9306 allow_undefined_flag='-berok' 9307 # Determine the default libpath from the value encoded in an 9308 # empty executable. 9309 if test set = "${lt_cv_aix_libpath+set}"; then 9310 aix_libpath=$lt_cv_aix_libpath 9311else 9312 if ${lt_cv_aix_libpath_+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317 9318int 9319main () 9320{ 9321 9322 ; 9323 return 0; 9324} 9325_ACEOF 9326if ac_fn_c_try_link "$LINENO"; then : 9327 9328 lt_aix_libpath_sed=' 9329 /Import File Strings/,/^$/ { 9330 /^0/ { 9331 s/^0 *\([^ ]*\) *$/\1/ 9332 p 9333 } 9334 }' 9335 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9336 # Check for a 64-bit object if we didn't find anything. 9337 if test -z "$lt_cv_aix_libpath_"; then 9338 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9339 fi 9340fi 9341rm -f core conftest.err conftest.$ac_objext \ 9342 conftest$ac_exeext conftest.$ac_ext 9343 if test -z "$lt_cv_aix_libpath_"; then 9344 lt_cv_aix_libpath_=/usr/lib:/lib 9345 fi 9346 9347fi 9348 9349 aix_libpath=$lt_cv_aix_libpath_ 9350fi 9351 9352 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9353 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9354 else 9355 if test ia64 = "$host_cpu"; then 9356 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9357 allow_undefined_flag="-z nodefs" 9358 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" 9359 else 9360 # Determine the default libpath from the value encoded in an 9361 # empty executable. 9362 if test set = "${lt_cv_aix_libpath+set}"; then 9363 aix_libpath=$lt_cv_aix_libpath 9364else 9365 if ${lt_cv_aix_libpath_+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370 9371int 9372main () 9373{ 9374 9375 ; 9376 return 0; 9377} 9378_ACEOF 9379if ac_fn_c_try_link "$LINENO"; then : 9380 9381 lt_aix_libpath_sed=' 9382 /Import File Strings/,/^$/ { 9383 /^0/ { 9384 s/^0 *\([^ ]*\) *$/\1/ 9385 p 9386 } 9387 }' 9388 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9389 # Check for a 64-bit object if we didn't find anything. 9390 if test -z "$lt_cv_aix_libpath_"; then 9391 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9392 fi 9393fi 9394rm -f core conftest.err conftest.$ac_objext \ 9395 conftest$ac_exeext conftest.$ac_ext 9396 if test -z "$lt_cv_aix_libpath_"; then 9397 lt_cv_aix_libpath_=/usr/lib:/lib 9398 fi 9399 9400fi 9401 9402 aix_libpath=$lt_cv_aix_libpath_ 9403fi 9404 9405 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9406 # Warning - without using the other run time loading flags, 9407 # -berok will link without error, but may produce a broken library. 9408 no_undefined_flag=' $wl-bernotok' 9409 allow_undefined_flag=' $wl-berok' 9410 if test yes = "$with_gnu_ld"; then 9411 # We only use this code for GNU lds that support --whole-archive. 9412 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9413 else 9414 # Exported symbols can be pulled into shared objects from archives 9415 whole_archive_flag_spec='$convenience' 9416 fi 9417 archive_cmds_need_lc=yes 9418 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9419 # -brtl affects multiple linker settings, -berok does not and is overridden later 9420 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9421 if test svr4 != "$with_aix_soname"; then 9422 # This is similar to how AIX traditionally builds its shared libraries. 9423 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9424 fi 9425 if test aix != "$with_aix_soname"; then 9426 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9427 else 9428 # used by -dlpreopen to get the symbols 9429 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9430 fi 9431 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9432 fi 9433 fi 9434 ;; 9435 9436 amigaos*) 9437 case $host_cpu in 9438 powerpc) 9439 # see comment about AmigaOS4 .so support 9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9441 archive_expsym_cmds='' 9442 ;; 9443 m68k) 9444 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)' 9445 hardcode_libdir_flag_spec='-L$libdir' 9446 hardcode_minus_L=yes 9447 ;; 9448 esac 9449 ;; 9450 9451 bsdi[45]*) 9452 export_dynamic_flag_spec=-rdynamic 9453 ;; 9454 9455 cygwin* | mingw* | pw32* | cegcc*) 9456 # When not using gcc, we currently assume that we are using 9457 # Microsoft Visual C++. 9458 # hardcode_libdir_flag_spec is actually meaningless, as there is 9459 # no search path for DLLs. 9460 case $cc_basename in 9461 cl*) 9462 # Native MSVC 9463 hardcode_libdir_flag_spec=' ' 9464 allow_undefined_flag=unsupported 9465 always_export_symbols=yes 9466 file_list_spec='@' 9467 # Tell ltmain to make .lib files, not .a files. 9468 libext=lib 9469 # Tell ltmain to make .dll files, not .so files. 9470 shrext_cmds=.dll 9471 # FIXME: Setting linknames here is a bad hack. 9472 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9473 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9474 cp "$export_symbols" "$output_objdir/$soname.def"; 9475 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9476 else 9477 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9478 fi~ 9479 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9480 linknames=' 9481 # The linker will not automatically build a static lib if we build a DLL. 9482 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9483 enable_shared_with_static_runtimes=yes 9484 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9486 # Don't use ranlib 9487 old_postinstall_cmds='chmod 644 $oldlib' 9488 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9489 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9490 case $lt_outputfile in 9491 *.exe|*.EXE) ;; 9492 *) 9493 lt_outputfile=$lt_outputfile.exe 9494 lt_tool_outputfile=$lt_tool_outputfile.exe 9495 ;; 9496 esac~ 9497 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9498 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9499 $RM "$lt_outputfile.manifest"; 9500 fi' 9501 ;; 9502 *) 9503 # Assume MSVC wrapper 9504 hardcode_libdir_flag_spec=' ' 9505 allow_undefined_flag=unsupported 9506 # Tell ltmain to make .lib files, not .a files. 9507 libext=lib 9508 # Tell ltmain to make .dll files, not .so files. 9509 shrext_cmds=.dll 9510 # FIXME: Setting linknames here is a bad hack. 9511 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9512 # The linker will automatically build a .lib file if we build a DLL. 9513 old_archive_from_new_cmds='true' 9514 # FIXME: Should let the user specify the lib program. 9515 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9516 enable_shared_with_static_runtimes=yes 9517 ;; 9518 esac 9519 ;; 9520 9521 darwin* | rhapsody*) 9522 9523 9524 archive_cmds_need_lc=no 9525 hardcode_direct=no 9526 hardcode_automatic=yes 9527 hardcode_shlibpath_var=unsupported 9528 if test yes = "$lt_cv_ld_force_load"; then 9529 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9530 9531 else 9532 whole_archive_flag_spec='' 9533 fi 9534 link_all_deplibs=yes 9535 allow_undefined_flag=$_lt_dar_allow_undefined 9536 case $cc_basename in 9537 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9538 *) _lt_dar_can_shared=$GCC ;; 9539 esac 9540 if test yes = "$_lt_dar_can_shared"; then 9541 output_verbose_link_cmd=func_echo_all 9542 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9543 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9544 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" 9545 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" 9546 9547 else 9548 ld_shlibs=no 9549 fi 9550 9551 ;; 9552 9553 dgux*) 9554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9555 hardcode_libdir_flag_spec='-L$libdir' 9556 hardcode_shlibpath_var=no 9557 ;; 9558 9559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9560 # support. Future versions do this automatically, but an explicit c++rt0.o 9561 # does not break anything, and helps significantly (at the cost of a little 9562 # extra space). 9563 freebsd2.2*) 9564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9565 hardcode_libdir_flag_spec='-R$libdir' 9566 hardcode_direct=yes 9567 hardcode_shlibpath_var=no 9568 ;; 9569 9570 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9571 freebsd2.*) 9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9573 hardcode_direct=yes 9574 hardcode_minus_L=yes 9575 hardcode_shlibpath_var=no 9576 ;; 9577 9578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9579 freebsd* | dragonfly*) 9580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9581 hardcode_libdir_flag_spec='-R$libdir' 9582 hardcode_direct=yes 9583 hardcode_shlibpath_var=no 9584 ;; 9585 9586 hpux9*) 9587 if test yes = "$GCC"; then 9588 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9589 else 9590 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9591 fi 9592 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9593 hardcode_libdir_separator=: 9594 hardcode_direct=yes 9595 9596 # hardcode_minus_L: Not really in the search PATH, 9597 # but as the default location of the library. 9598 hardcode_minus_L=yes 9599 export_dynamic_flag_spec='$wl-E' 9600 ;; 9601 9602 hpux10*) 9603 if test yes,no = "$GCC,$with_gnu_ld"; then 9604 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9605 else 9606 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9607 fi 9608 if test no = "$with_gnu_ld"; then 9609 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9610 hardcode_libdir_separator=: 9611 hardcode_direct=yes 9612 hardcode_direct_absolute=yes 9613 export_dynamic_flag_spec='$wl-E' 9614 # hardcode_minus_L: Not really in the search PATH, 9615 # but as the default location of the library. 9616 hardcode_minus_L=yes 9617 fi 9618 ;; 9619 9620 hpux11*) 9621 if test yes,no = "$GCC,$with_gnu_ld"; then 9622 case $host_cpu in 9623 hppa*64*) 9624 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9625 ;; 9626 ia64*) 9627 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9628 ;; 9629 *) 9630 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9631 ;; 9632 esac 9633 else 9634 case $host_cpu in 9635 hppa*64*) 9636 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 ;; 9638 ia64*) 9639 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9640 ;; 9641 *) 9642 9643 # Older versions of the 11.00 compiler do not understand -b yet 9644 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9646$as_echo_n "checking if $CC understands -b... " >&6; } 9647if ${lt_cv_prog_compiler__b+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 lt_cv_prog_compiler__b=no 9651 save_LDFLAGS=$LDFLAGS 9652 LDFLAGS="$LDFLAGS -b" 9653 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9655 # The linker can only warn and ignore the option if not recognized 9656 # So say no if there are warnings 9657 if test -s conftest.err; then 9658 # Append any errors to the config.log. 9659 cat conftest.err 1>&5 9660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9662 if diff conftest.exp conftest.er2 >/dev/null; then 9663 lt_cv_prog_compiler__b=yes 9664 fi 9665 else 9666 lt_cv_prog_compiler__b=yes 9667 fi 9668 fi 9669 $RM -r conftest* 9670 LDFLAGS=$save_LDFLAGS 9671 9672fi 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9674$as_echo "$lt_cv_prog_compiler__b" >&6; } 9675 9676if test yes = "$lt_cv_prog_compiler__b"; then 9677 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9678else 9679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9680fi 9681 9682 ;; 9683 esac 9684 fi 9685 if test no = "$with_gnu_ld"; then 9686 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9687 hardcode_libdir_separator=: 9688 9689 case $host_cpu in 9690 hppa*64*|ia64*) 9691 hardcode_direct=no 9692 hardcode_shlibpath_var=no 9693 ;; 9694 *) 9695 hardcode_direct=yes 9696 hardcode_direct_absolute=yes 9697 export_dynamic_flag_spec='$wl-E' 9698 9699 # hardcode_minus_L: Not really in the search PATH, 9700 # but as the default location of the library. 9701 hardcode_minus_L=yes 9702 ;; 9703 esac 9704 fi 9705 ;; 9706 9707 irix5* | irix6* | nonstopux*) 9708 if test yes = "$GCC"; then 9709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9710 # Try to use the -exported_symbol ld option, if it does not 9711 # work, assume that -exports_file does not work either and 9712 # implicitly export all symbols. 9713 # This should be the same for all languages, so no per-tag cache variable. 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9715$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9716if ${lt_cv_irix_exported_symbol+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 save_LDFLAGS=$LDFLAGS 9720 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int foo (void) { return 0; } 9724_ACEOF 9725if ac_fn_c_try_link "$LINENO"; then : 9726 lt_cv_irix_exported_symbol=yes 9727else 9728 lt_cv_irix_exported_symbol=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext \ 9731 conftest$ac_exeext conftest.$ac_ext 9732 LDFLAGS=$save_LDFLAGS 9733fi 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9735$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9736 if test yes = "$lt_cv_irix_exported_symbol"; then 9737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 9738 fi 9739 link_all_deplibs=no 9740 else 9741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 9743 fi 9744 archive_cmds_need_lc='no' 9745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9746 hardcode_libdir_separator=: 9747 inherit_rpath=yes 9748 link_all_deplibs=yes 9749 ;; 9750 9751 linux*) 9752 case $cc_basename in 9753 tcc*) 9754 # Fabrice Bellard et al's Tiny C Compiler 9755 ld_shlibs=yes 9756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9757 ;; 9758 esac 9759 ;; 9760 9761 netbsd* | netbsdelf*-gnu) 9762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9764 else 9765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9766 fi 9767 hardcode_libdir_flag_spec='-R$libdir' 9768 hardcode_direct=yes 9769 hardcode_shlibpath_var=no 9770 ;; 9771 9772 newsos6) 9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9774 hardcode_direct=yes 9775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9776 hardcode_libdir_separator=: 9777 hardcode_shlibpath_var=no 9778 ;; 9779 9780 *nto* | *qnx*) 9781 ;; 9782 9783 openbsd* | bitrig*) 9784 if test -f /usr/libexec/ld.so; then 9785 hardcode_direct=yes 9786 hardcode_shlibpath_var=no 9787 hardcode_direct_absolute=yes 9788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9791 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9792 export_dynamic_flag_spec='$wl-E' 9793 else 9794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9795 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9796 fi 9797 else 9798 ld_shlibs=no 9799 fi 9800 ;; 9801 9802 os2*) 9803 hardcode_libdir_flag_spec='-L$libdir' 9804 hardcode_minus_L=yes 9805 allow_undefined_flag=unsupported 9806 shrext_cmds=.dll 9807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9810 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9813 emximp -o $lib $output_objdir/$libname.def' 9814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9817 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9818 prefix_cmds="$SED"~ 9819 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9820 prefix_cmds="$prefix_cmds -e 1d"; 9821 fi~ 9822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9825 emximp -o $lib $output_objdir/$libname.def' 9826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9827 enable_shared_with_static_runtimes=yes 9828 ;; 9829 9830 osf3*) 9831 if test yes = "$GCC"; then 9832 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9833 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9834 else 9835 allow_undefined_flag=' -expect_unresolved \*' 9836 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9837 fi 9838 archive_cmds_need_lc='no' 9839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9840 hardcode_libdir_separator=: 9841 ;; 9842 9843 osf4* | osf5*) # as osf3* with the addition of -msym flag 9844 if test yes = "$GCC"; then 9845 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9846 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9848 else 9849 allow_undefined_flag=' -expect_unresolved \*' 9850 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9851 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9852 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 9853 9854 # Both c and cxx compiler support -rpath directly 9855 hardcode_libdir_flag_spec='-rpath $libdir' 9856 fi 9857 archive_cmds_need_lc='no' 9858 hardcode_libdir_separator=: 9859 ;; 9860 9861 solaris*) 9862 no_undefined_flag=' -z defs' 9863 if test yes = "$GCC"; then 9864 wlarc='$wl' 9865 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9867 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9868 else 9869 case `$CC -V 2>&1` in 9870 *"Compilers 5.0"*) 9871 wlarc='' 9872 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9874 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9875 ;; 9876 *) 9877 wlarc='$wl' 9878 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9880 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9881 ;; 9882 esac 9883 fi 9884 hardcode_libdir_flag_spec='-R$libdir' 9885 hardcode_shlibpath_var=no 9886 case $host_os in 9887 solaris2.[0-5] | solaris2.[0-5].*) ;; 9888 *) 9889 # The compiler driver will combine and reorder linker options, 9890 # but understands '-z linker_flag'. GCC discards it without '$wl', 9891 # but is careful enough not to reorder. 9892 # Supported since Solaris 2.6 (maybe 2.5.1?) 9893 if test yes = "$GCC"; then 9894 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9895 else 9896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9897 fi 9898 ;; 9899 esac 9900 link_all_deplibs=yes 9901 ;; 9902 9903 sunos4*) 9904 if test sequent = "$host_vendor"; then 9905 # Use $CC to link under sequent, because it throws in some extra .o 9906 # files that make .init and .fini sections work. 9907 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9908 else 9909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9910 fi 9911 hardcode_libdir_flag_spec='-L$libdir' 9912 hardcode_direct=yes 9913 hardcode_minus_L=yes 9914 hardcode_shlibpath_var=no 9915 ;; 9916 9917 sysv4) 9918 case $host_vendor in 9919 sni) 9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9921 hardcode_direct=yes # is this really true??? 9922 ;; 9923 siemens) 9924 ## LD is ld it makes a PLAMLIB 9925 ## CC just makes a GrossModule. 9926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9927 reload_cmds='$CC -r -o $output$reload_objs' 9928 hardcode_direct=no 9929 ;; 9930 motorola) 9931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9933 ;; 9934 esac 9935 runpath_var='LD_RUN_PATH' 9936 hardcode_shlibpath_var=no 9937 ;; 9938 9939 sysv4.3*) 9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9941 hardcode_shlibpath_var=no 9942 export_dynamic_flag_spec='-Bexport' 9943 ;; 9944 9945 sysv4*MP*) 9946 if test -d /usr/nec; then 9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948 hardcode_shlibpath_var=no 9949 runpath_var=LD_RUN_PATH 9950 hardcode_runpath_var=yes 9951 ld_shlibs=yes 9952 fi 9953 ;; 9954 9955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9956 no_undefined_flag='$wl-z,text' 9957 archive_cmds_need_lc=no 9958 hardcode_shlibpath_var=no 9959 runpath_var='LD_RUN_PATH' 9960 9961 if test yes = "$GCC"; then 9962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 else 9965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9967 fi 9968 ;; 9969 9970 sysv5* | sco3.2v5* | sco5v6*) 9971 # Note: We CANNOT use -z defs as we might desire, because we do not 9972 # link with -lc, and that would cause any symbols used from libc to 9973 # always be unresolved, which means just about no library would 9974 # ever link correctly. If we're not using GNU ld we use -z text 9975 # though, which does catch some bad symbols but isn't as heavy-handed 9976 # as -z defs. 9977 no_undefined_flag='$wl-z,text' 9978 allow_undefined_flag='$wl-z,nodefs' 9979 archive_cmds_need_lc=no 9980 hardcode_shlibpath_var=no 9981 hardcode_libdir_flag_spec='$wl-R,$libdir' 9982 hardcode_libdir_separator=':' 9983 link_all_deplibs=yes 9984 export_dynamic_flag_spec='$wl-Bexport' 9985 runpath_var='LD_RUN_PATH' 9986 9987 if test yes = "$GCC"; then 9988 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9989 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9990 else 9991 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9992 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9993 fi 9994 ;; 9995 9996 uts4*) 9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9998 hardcode_libdir_flag_spec='-L$libdir' 9999 hardcode_shlibpath_var=no 10000 ;; 10001 10002 *) 10003 ld_shlibs=no 10004 ;; 10005 esac 10006 10007 if test sni = "$host_vendor"; then 10008 case $host in 10009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10010 export_dynamic_flag_spec='$wl-Blargedynsym' 10011 ;; 10012 esac 10013 fi 10014 fi 10015 10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10017$as_echo "$ld_shlibs" >&6; } 10018test no = "$ld_shlibs" && can_build_shared=no 10019 10020with_gnu_ld=$with_gnu_ld 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036# 10037# Do we need to explicitly link libc? 10038# 10039case "x$archive_cmds_need_lc" in 10040x|xyes) 10041 # Assume -lc should be added 10042 archive_cmds_need_lc=yes 10043 10044 if test yes,yes = "$GCC,$enable_shared"; then 10045 case $archive_cmds in 10046 *'~'*) 10047 # FIXME: we may have to deal with multi-command sequences. 10048 ;; 10049 '$CC '*) 10050 # Test whether the compiler implicitly links with -lc since on some 10051 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10052 # to ld, don't add -lc before -lgcc. 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10054$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10055if ${lt_cv_archive_cmds_need_lc+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057else 10058 $RM conftest* 10059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10060 10061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10062 (eval $ac_compile) 2>&5 10063 ac_status=$? 10064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10065 test $ac_status = 0; } 2>conftest.err; then 10066 soname=conftest 10067 lib=conftest 10068 libobjs=conftest.$ac_objext 10069 deplibs= 10070 wl=$lt_prog_compiler_wl 10071 pic_flag=$lt_prog_compiler_pic 10072 compiler_flags=-v 10073 linker_flags=-v 10074 verstring= 10075 output_objdir=. 10076 libname=conftest 10077 lt_save_allow_undefined_flag=$allow_undefined_flag 10078 allow_undefined_flag= 10079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10080 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10081 ac_status=$? 10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10083 test $ac_status = 0; } 10084 then 10085 lt_cv_archive_cmds_need_lc=no 10086 else 10087 lt_cv_archive_cmds_need_lc=yes 10088 fi 10089 allow_undefined_flag=$lt_save_allow_undefined_flag 10090 else 10091 cat conftest.err 1>&5 10092 fi 10093 $RM conftest* 10094 10095fi 10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10097$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10098 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10099 ;; 10100 esac 10101 fi 10102 ;; 10103esac 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10257$as_echo_n "checking dynamic linker characteristics... " >&6; } 10258 10259if test yes = "$GCC"; then 10260 case $host_os in 10261 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10262 *) lt_awk_arg='/^libraries:/' ;; 10263 esac 10264 case $host_os in 10265 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10266 *) lt_sed_strip_eq='s|=/|/|g' ;; 10267 esac 10268 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10269 case $lt_search_path_spec in 10270 *\;*) 10271 # if the path contains ";" then we assume it to be the separator 10272 # otherwise default to the standard path separator (i.e. ":") - it is 10273 # assumed that no part of a normal pathname contains ";" but that should 10274 # okay in the real world where ";" in dirpaths is itself problematic. 10275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10276 ;; 10277 *) 10278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10279 ;; 10280 esac 10281 # Ok, now we have the path, separated by spaces, we can step through it 10282 # and add multilib dir if necessary... 10283 lt_tmp_lt_search_path_spec= 10284 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10285 # ...but if some path component already ends with the multilib dir we assume 10286 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10287 case "$lt_multi_os_dir; $lt_search_path_spec " in 10288 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10289 lt_multi_os_dir= 10290 ;; 10291 esac 10292 for lt_sys_path in $lt_search_path_spec; do 10293 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10295 elif test -n "$lt_multi_os_dir"; then 10296 test -d "$lt_sys_path" && \ 10297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10298 fi 10299 done 10300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10301BEGIN {RS = " "; FS = "/|\n";} { 10302 lt_foo = ""; 10303 lt_count = 0; 10304 for (lt_i = NF; lt_i > 0; lt_i--) { 10305 if ($lt_i != "" && $lt_i != ".") { 10306 if ($lt_i == "..") { 10307 lt_count++; 10308 } else { 10309 if (lt_count == 0) { 10310 lt_foo = "/" $lt_i lt_foo; 10311 } else { 10312 lt_count--; 10313 } 10314 } 10315 } 10316 } 10317 if (lt_foo != "") { lt_freq[lt_foo]++; } 10318 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10319}'` 10320 # AWK program above erroneously prepends '/' to C:/dos/paths 10321 # for these hosts. 10322 case $host_os in 10323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10324 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10325 esac 10326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10327else 10328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10329fi 10330library_names_spec= 10331libname_spec='lib$name' 10332soname_spec= 10333shrext_cmds=.so 10334postinstall_cmds= 10335postuninstall_cmds= 10336finish_cmds= 10337finish_eval= 10338shlibpath_var= 10339shlibpath_overrides_runpath=unknown 10340version_type=none 10341dynamic_linker="$host_os ld.so" 10342sys_lib_dlsearch_path_spec="/lib /usr/lib" 10343need_lib_prefix=unknown 10344hardcode_into_libs=no 10345 10346# when you set need_version to no, make sure it does not cause -set_version 10347# flags to be left without arguments 10348need_version=unknown 10349 10350 10351 10352case $host_os in 10353aix3*) 10354 version_type=linux # correct to gnu/linux during the next big refactor 10355 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10356 shlibpath_var=LIBPATH 10357 10358 # AIX 3 has no versioning support, so we append a major version to the name. 10359 soname_spec='$libname$release$shared_ext$major' 10360 ;; 10361 10362aix[4-9]*) 10363 version_type=linux # correct to gnu/linux during the next big refactor 10364 need_lib_prefix=no 10365 need_version=no 10366 hardcode_into_libs=yes 10367 if test ia64 = "$host_cpu"; then 10368 # AIX 5 supports IA64 10369 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10370 shlibpath_var=LD_LIBRARY_PATH 10371 else 10372 # With GCC up to 2.95.x, collect2 would create an import file 10373 # for dependence libraries. The import file would start with 10374 # the line '#! .'. This would cause the generated library to 10375 # depend on '.', always an invalid library. This was fixed in 10376 # development snapshots of GCC prior to 3.0. 10377 case $host_os in 10378 aix4 | aix4.[01] | aix4.[01].*) 10379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10380 echo ' yes ' 10381 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10382 : 10383 else 10384 can_build_shared=no 10385 fi 10386 ;; 10387 esac 10388 # Using Import Files as archive members, it is possible to support 10389 # filename-based versioning of shared library archives on AIX. While 10390 # this would work for both with and without runtime linking, it will 10391 # prevent static linking of such archives. So we do filename-based 10392 # shared library versioning with .so extension only, which is used 10393 # when both runtime linking and shared linking is enabled. 10394 # Unfortunately, runtime linking may impact performance, so we do 10395 # not want this to be the default eventually. Also, we use the 10396 # versioned .so libs for executables only if there is the -brtl 10397 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10398 # To allow for filename-based versioning support, we need to create 10399 # libNAME.so.V as an archive file, containing: 10400 # *) an Import File, referring to the versioned filename of the 10401 # archive as well as the shared archive member, telling the 10402 # bitwidth (32 or 64) of that shared object, and providing the 10403 # list of exported symbols of that shared object, eventually 10404 # decorated with the 'weak' keyword 10405 # *) the shared object with the F_LOADONLY flag set, to really avoid 10406 # it being seen by the linker. 10407 # At run time we better use the real file rather than another symlink, 10408 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10409 10410 case $with_aix_soname,$aix_use_runtimelinking in 10411 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10412 # soname into executable. Probably we can add versioning support to 10413 # collect2, so additional links can be useful in future. 10414 aix,yes) # traditional libtool 10415 dynamic_linker='AIX unversionable lib.so' 10416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10417 # instead of lib<name>.a to let people know that these are not 10418 # typical AIX shared libraries. 10419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10420 ;; 10421 aix,no) # traditional AIX only 10422 dynamic_linker='AIX lib.a(lib.so.V)' 10423 # We preserve .a as extension for shared libraries through AIX4.2 10424 # and later when we are not doing run time linking. 10425 library_names_spec='$libname$release.a $libname.a' 10426 soname_spec='$libname$release$shared_ext$major' 10427 ;; 10428 svr4,*) # full svr4 only 10429 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10430 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10431 # We do not specify a path in Import Files, so LIBPATH fires. 10432 shlibpath_overrides_runpath=yes 10433 ;; 10434 *,yes) # both, prefer svr4 10435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10437 # unpreferred sharedlib libNAME.a needs extra handling 10438 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10439 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10440 # We do not specify a path in Import Files, so LIBPATH fires. 10441 shlibpath_overrides_runpath=yes 10442 ;; 10443 *,no) # both, prefer aix 10444 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10445 library_names_spec='$libname$release.a $libname.a' 10446 soname_spec='$libname$release$shared_ext$major' 10447 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10448 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10449 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10450 ;; 10451 esac 10452 shlibpath_var=LIBPATH 10453 fi 10454 ;; 10455 10456amigaos*) 10457 case $host_cpu in 10458 powerpc) 10459 # Since July 2007 AmigaOS4 officially supports .so libraries. 10460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10462 ;; 10463 m68k) 10464 library_names_spec='$libname.ixlibrary $libname.a' 10465 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10466 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10467 ;; 10468 esac 10469 ;; 10470 10471beos*) 10472 library_names_spec='$libname$shared_ext' 10473 dynamic_linker="$host_os ld.so" 10474 shlibpath_var=LIBRARY_PATH 10475 ;; 10476 10477bsdi[45]*) 10478 version_type=linux # correct to gnu/linux during the next big refactor 10479 need_version=no 10480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10481 soname_spec='$libname$release$shared_ext$major' 10482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10483 shlibpath_var=LD_LIBRARY_PATH 10484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10486 # the default ld.so.conf also contains /usr/contrib/lib and 10487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10488 # libtool to hard-code these into programs 10489 ;; 10490 10491cygwin* | mingw* | pw32* | cegcc*) 10492 version_type=windows 10493 shrext_cmds=.dll 10494 need_version=no 10495 need_lib_prefix=no 10496 10497 case $GCC,$cc_basename in 10498 yes,*) 10499 # gcc 10500 library_names_spec='$libname.dll.a' 10501 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10502 postinstall_cmds='base_file=`basename \$file`~ 10503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10504 dldir=$destdir/`dirname \$dlpath`~ 10505 test -d \$dldir || mkdir -p \$dldir~ 10506 $install_prog $dir/$dlname \$dldir/$dlname~ 10507 chmod a+x \$dldir/$dlname~ 10508 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10509 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10510 fi' 10511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10512 dlpath=$dir/\$dldll~ 10513 $RM \$dlpath' 10514 shlibpath_overrides_runpath=yes 10515 10516 case $host_os in 10517 cygwin*) 10518 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10519 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10520 10521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10522 ;; 10523 mingw* | cegcc*) 10524 # MinGW DLLs use traditional 'lib' prefix 10525 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10526 ;; 10527 pw32*) 10528 # pw32 DLLs use 'pw' prefix rather than 'lib' 10529 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10530 ;; 10531 esac 10532 dynamic_linker='Win32 ld.exe' 10533 ;; 10534 10535 *,cl*) 10536 # Native MSVC 10537 libname_spec='$name' 10538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10539 library_names_spec='$libname.dll.lib' 10540 10541 case $build_os in 10542 mingw*) 10543 sys_lib_search_path_spec= 10544 lt_save_ifs=$IFS 10545 IFS=';' 10546 for lt_path in $LIB 10547 do 10548 IFS=$lt_save_ifs 10549 # Let DOS variable expansion print the short 8.3 style file name. 10550 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10551 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10552 done 10553 IFS=$lt_save_ifs 10554 # Convert to MSYS style. 10555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10556 ;; 10557 cygwin*) 10558 # Convert to unix form, then to dos form, then back to unix form 10559 # but this time dos style (no spaces!) so that the unix form looks 10560 # like /cygdrive/c/PROGRA~1:/cygdr... 10561 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10562 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10563 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10564 ;; 10565 *) 10566 sys_lib_search_path_spec=$LIB 10567 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10568 # It is most probably a Windows format PATH. 10569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10570 else 10571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10572 fi 10573 # FIXME: find the short name or the path components, as spaces are 10574 # common. (e.g. "Program Files" -> "PROGRA~1") 10575 ;; 10576 esac 10577 10578 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10579 postinstall_cmds='base_file=`basename \$file`~ 10580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10581 dldir=$destdir/`dirname \$dlpath`~ 10582 test -d \$dldir || mkdir -p \$dldir~ 10583 $install_prog $dir/$dlname \$dldir/$dlname' 10584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10585 dlpath=$dir/\$dldll~ 10586 $RM \$dlpath' 10587 shlibpath_overrides_runpath=yes 10588 dynamic_linker='Win32 link.exe' 10589 ;; 10590 10591 *) 10592 # Assume MSVC wrapper 10593 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10594 dynamic_linker='Win32 ld.exe' 10595 ;; 10596 esac 10597 # FIXME: first we should search . and the directory the executable is in 10598 shlibpath_var=PATH 10599 ;; 10600 10601darwin* | rhapsody*) 10602 dynamic_linker="$host_os dyld" 10603 version_type=darwin 10604 need_lib_prefix=no 10605 need_version=no 10606 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10607 soname_spec='$libname$release$major$shared_ext' 10608 shlibpath_overrides_runpath=yes 10609 shlibpath_var=DYLD_LIBRARY_PATH 10610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10611 10612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10614 ;; 10615 10616dgux*) 10617 version_type=linux # correct to gnu/linux during the next big refactor 10618 need_lib_prefix=no 10619 need_version=no 10620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10621 soname_spec='$libname$release$shared_ext$major' 10622 shlibpath_var=LD_LIBRARY_PATH 10623 ;; 10624 10625freebsd* | dragonfly*) 10626 # DragonFly does not have aout. When/if they implement a new 10627 # versioning mechanism, adjust this. 10628 if test -x /usr/bin/objformat; then 10629 objformat=`/usr/bin/objformat` 10630 else 10631 case $host_os in 10632 freebsd[23].*) objformat=aout ;; 10633 *) objformat=elf ;; 10634 esac 10635 fi 10636 version_type=freebsd-$objformat 10637 case $version_type in 10638 freebsd-elf*) 10639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10640 soname_spec='$libname$release$shared_ext$major' 10641 need_version=no 10642 need_lib_prefix=no 10643 ;; 10644 freebsd-*) 10645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10646 need_version=yes 10647 ;; 10648 esac 10649 shlibpath_var=LD_LIBRARY_PATH 10650 case $host_os in 10651 freebsd2.*) 10652 shlibpath_overrides_runpath=yes 10653 ;; 10654 freebsd3.[01]* | freebsdelf3.[01]*) 10655 shlibpath_overrides_runpath=yes 10656 hardcode_into_libs=yes 10657 ;; 10658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10660 shlibpath_overrides_runpath=no 10661 hardcode_into_libs=yes 10662 ;; 10663 *) # from 4.6 on, and DragonFly 10664 shlibpath_overrides_runpath=yes 10665 hardcode_into_libs=yes 10666 ;; 10667 esac 10668 ;; 10669 10670haiku*) 10671 version_type=linux # correct to gnu/linux during the next big refactor 10672 need_lib_prefix=no 10673 need_version=no 10674 dynamic_linker="$host_os runtime_loader" 10675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10676 soname_spec='$libname$release$shared_ext$major' 10677 shlibpath_var=LIBRARY_PATH 10678 shlibpath_overrides_runpath=no 10679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10680 hardcode_into_libs=yes 10681 ;; 10682 10683hpux9* | hpux10* | hpux11*) 10684 # Give a soname corresponding to the major version so that dld.sl refuses to 10685 # link against other versions. 10686 version_type=sunos 10687 need_lib_prefix=no 10688 need_version=no 10689 case $host_cpu in 10690 ia64*) 10691 shrext_cmds='.so' 10692 hardcode_into_libs=yes 10693 dynamic_linker="$host_os dld.so" 10694 shlibpath_var=LD_LIBRARY_PATH 10695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10697 soname_spec='$libname$release$shared_ext$major' 10698 if test 32 = "$HPUX_IA64_MODE"; then 10699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10700 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10701 else 10702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10703 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10704 fi 10705 ;; 10706 hppa*64*) 10707 shrext_cmds='.sl' 10708 hardcode_into_libs=yes 10709 dynamic_linker="$host_os dld.sl" 10710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10713 soname_spec='$libname$release$shared_ext$major' 10714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10716 ;; 10717 *) 10718 shrext_cmds='.sl' 10719 dynamic_linker="$host_os dld.sl" 10720 shlibpath_var=SHLIB_PATH 10721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10723 soname_spec='$libname$release$shared_ext$major' 10724 ;; 10725 esac 10726 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10727 postinstall_cmds='chmod 555 $lib' 10728 # or fails outright, so override atomically: 10729 install_override_mode=555 10730 ;; 10731 10732interix[3-9]*) 10733 version_type=linux # correct to gnu/linux during the next big refactor 10734 need_lib_prefix=no 10735 need_version=no 10736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10737 soname_spec='$libname$release$shared_ext$major' 10738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10739 shlibpath_var=LD_LIBRARY_PATH 10740 shlibpath_overrides_runpath=no 10741 hardcode_into_libs=yes 10742 ;; 10743 10744irix5* | irix6* | nonstopux*) 10745 case $host_os in 10746 nonstopux*) version_type=nonstopux ;; 10747 *) 10748 if test yes = "$lt_cv_prog_gnu_ld"; then 10749 version_type=linux # correct to gnu/linux during the next big refactor 10750 else 10751 version_type=irix 10752 fi ;; 10753 esac 10754 need_lib_prefix=no 10755 need_version=no 10756 soname_spec='$libname$release$shared_ext$major' 10757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10758 case $host_os in 10759 irix5* | nonstopux*) 10760 libsuff= shlibsuff= 10761 ;; 10762 *) 10763 case $LD in # libtool.m4 will add one of these switches to LD 10764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10765 libsuff= shlibsuff= libmagic=32-bit;; 10766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10767 libsuff=32 shlibsuff=N32 libmagic=N32;; 10768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10769 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10770 *) libsuff= shlibsuff= libmagic=never-match;; 10771 esac 10772 ;; 10773 esac 10774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10775 shlibpath_overrides_runpath=no 10776 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10777 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10778 hardcode_into_libs=yes 10779 ;; 10780 10781# No shared lib support for Linux oldld, aout, or coff. 10782linux*oldld* | linux*aout* | linux*coff*) 10783 dynamic_linker=no 10784 ;; 10785 10786linux*android*) 10787 version_type=none # Android doesn't support versioned libraries. 10788 need_lib_prefix=no 10789 need_version=no 10790 library_names_spec='$libname$release$shared_ext' 10791 soname_spec='$libname$release$shared_ext' 10792 finish_cmds= 10793 shlibpath_var=LD_LIBRARY_PATH 10794 shlibpath_overrides_runpath=yes 10795 10796 # This implies no fast_install, which is unacceptable. 10797 # Some rework will be needed to allow for fast_install 10798 # before this can be enabled. 10799 hardcode_into_libs=yes 10800 10801 dynamic_linker='Android linker' 10802 # Don't embed -rpath directories since the linker doesn't support them. 10803 hardcode_libdir_flag_spec='-L$libdir' 10804 ;; 10805 10806# This must be glibc/ELF. 10807linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10808 version_type=linux # correct to gnu/linux during the next big refactor 10809 need_lib_prefix=no 10810 need_version=no 10811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10812 soname_spec='$libname$release$shared_ext$major' 10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10814 shlibpath_var=LD_LIBRARY_PATH 10815 shlibpath_overrides_runpath=no 10816 10817 # Some binutils ld are patched to set DT_RUNPATH 10818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10819 $as_echo_n "(cached) " >&6 10820else 10821 lt_cv_shlibpath_overrides_runpath=no 10822 save_LDFLAGS=$LDFLAGS 10823 save_libdir=$libdir 10824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828 10829int 10830main () 10831{ 10832 10833 ; 10834 return 0; 10835} 10836_ACEOF 10837if ac_fn_c_try_link "$LINENO"; then : 10838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10839 lt_cv_shlibpath_overrides_runpath=yes 10840fi 10841fi 10842rm -f core conftest.err conftest.$ac_objext \ 10843 conftest$ac_exeext conftest.$ac_ext 10844 LDFLAGS=$save_LDFLAGS 10845 libdir=$save_libdir 10846 10847fi 10848 10849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10850 10851 # This implies no fast_install, which is unacceptable. 10852 # Some rework will be needed to allow for fast_install 10853 # before this can be enabled. 10854 hardcode_into_libs=yes 10855 10856 # Ideally, we could use ldconfig to report *all* directores which are 10857 # searched for libraries, however this is still not possible. Aside from not 10858 # being certain /sbin/ldconfig is available, command 10859 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10860 # even though it is searched at run-time. Try to do the best guess by 10861 # appending ld.so.conf contents (and includes) to the search path. 10862 if test -f /etc/ld.so.conf; then 10863 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10865 fi 10866 10867 # We used to test for /lib/ld.so.1 and disable shared libraries on 10868 # powerpc, because MkLinux only supported shared libraries with the 10869 # GNU dynamic linker. Since this was broken with cross compilers, 10870 # most powerpc-linux boxes support dynamic linking these days and 10871 # people can always --disable-shared, the test was removed, and we 10872 # assume the GNU/Linux dynamic linker is in use. 10873 dynamic_linker='GNU/Linux ld.so' 10874 ;; 10875 10876netbsdelf*-gnu) 10877 version_type=linux 10878 need_lib_prefix=no 10879 need_version=no 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 shlibpath_var=LD_LIBRARY_PATH 10883 shlibpath_overrides_runpath=no 10884 hardcode_into_libs=yes 10885 dynamic_linker='NetBSD ld.elf_so' 10886 ;; 10887 10888netbsd*) 10889 version_type=sunos 10890 need_lib_prefix=no 10891 need_version=no 10892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10895 dynamic_linker='NetBSD (a.out) ld.so' 10896 else 10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10898 soname_spec='$libname$release$shared_ext$major' 10899 dynamic_linker='NetBSD ld.elf_so' 10900 fi 10901 shlibpath_var=LD_LIBRARY_PATH 10902 shlibpath_overrides_runpath=yes 10903 hardcode_into_libs=yes 10904 ;; 10905 10906newsos6) 10907 version_type=linux # correct to gnu/linux during the next big refactor 10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10909 shlibpath_var=LD_LIBRARY_PATH 10910 shlibpath_overrides_runpath=yes 10911 ;; 10912 10913*nto* | *qnx*) 10914 version_type=qnx 10915 need_lib_prefix=no 10916 need_version=no 10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10918 soname_spec='$libname$release$shared_ext$major' 10919 shlibpath_var=LD_LIBRARY_PATH 10920 shlibpath_overrides_runpath=no 10921 hardcode_into_libs=yes 10922 dynamic_linker='ldqnx.so' 10923 ;; 10924 10925openbsd* | bitrig*) 10926 version_type=sunos 10927 sys_lib_dlsearch_path_spec=/usr/lib 10928 need_lib_prefix=no 10929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10930 need_version=no 10931 else 10932 need_version=yes 10933 fi 10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10936 shlibpath_var=LD_LIBRARY_PATH 10937 shlibpath_overrides_runpath=yes 10938 ;; 10939 10940os2*) 10941 libname_spec='$name' 10942 version_type=windows 10943 shrext_cmds=.dll 10944 need_version=no 10945 need_lib_prefix=no 10946 # OS/2 can only load a DLL with a base name of 8 characters or less. 10947 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10948 v=$($ECHO $release$versuffix | tr -d .-); 10949 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10950 $ECHO $n$v`$shared_ext' 10951 library_names_spec='${libname}_dll.$libext' 10952 dynamic_linker='OS/2 ld.exe' 10953 shlibpath_var=BEGINLIBPATH 10954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10956 postinstall_cmds='base_file=`basename \$file`~ 10957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10958 dldir=$destdir/`dirname \$dlpath`~ 10959 test -d \$dldir || mkdir -p \$dldir~ 10960 $install_prog $dir/$dlname \$dldir/$dlname~ 10961 chmod a+x \$dldir/$dlname~ 10962 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10963 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10964 fi' 10965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 10966 dlpath=$dir/\$dldll~ 10967 $RM \$dlpath' 10968 ;; 10969 10970osf3* | osf4* | osf5*) 10971 version_type=osf 10972 need_lib_prefix=no 10973 need_version=no 10974 soname_spec='$libname$release$shared_ext$major' 10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10976 shlibpath_var=LD_LIBRARY_PATH 10977 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10979 ;; 10980 10981rdos*) 10982 dynamic_linker=no 10983 ;; 10984 10985solaris*) 10986 version_type=linux # correct to gnu/linux during the next big refactor 10987 need_lib_prefix=no 10988 need_version=no 10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10990 soname_spec='$libname$release$shared_ext$major' 10991 shlibpath_var=LD_LIBRARY_PATH 10992 shlibpath_overrides_runpath=yes 10993 hardcode_into_libs=yes 10994 # ldd complains unless libraries are executable 10995 postinstall_cmds='chmod +x $lib' 10996 ;; 10997 10998sunos4*) 10999 version_type=sunos 11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11001 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11002 shlibpath_var=LD_LIBRARY_PATH 11003 shlibpath_overrides_runpath=yes 11004 if test yes = "$with_gnu_ld"; then 11005 need_lib_prefix=no 11006 fi 11007 need_version=yes 11008 ;; 11009 11010sysv4 | sysv4.3*) 11011 version_type=linux # correct to gnu/linux during the next big refactor 11012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11013 soname_spec='$libname$release$shared_ext$major' 11014 shlibpath_var=LD_LIBRARY_PATH 11015 case $host_vendor in 11016 sni) 11017 shlibpath_overrides_runpath=no 11018 need_lib_prefix=no 11019 runpath_var=LD_RUN_PATH 11020 ;; 11021 siemens) 11022 need_lib_prefix=no 11023 ;; 11024 motorola) 11025 need_lib_prefix=no 11026 need_version=no 11027 shlibpath_overrides_runpath=no 11028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11029 ;; 11030 esac 11031 ;; 11032 11033sysv4*MP*) 11034 if test -d /usr/nec; then 11035 version_type=linux # correct to gnu/linux during the next big refactor 11036 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11037 soname_spec='$libname$shared_ext.$major' 11038 shlibpath_var=LD_LIBRARY_PATH 11039 fi 11040 ;; 11041 11042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11043 version_type=sco 11044 need_lib_prefix=no 11045 need_version=no 11046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11047 soname_spec='$libname$release$shared_ext$major' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 shlibpath_overrides_runpath=yes 11050 hardcode_into_libs=yes 11051 if test yes = "$with_gnu_ld"; then 11052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11053 else 11054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11055 case $host_os in 11056 sco3.2v5*) 11057 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11058 ;; 11059 esac 11060 fi 11061 sys_lib_dlsearch_path_spec='/usr/lib' 11062 ;; 11063 11064tpf*) 11065 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11066 version_type=linux # correct to gnu/linux during the next big refactor 11067 need_lib_prefix=no 11068 need_version=no 11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11070 shlibpath_var=LD_LIBRARY_PATH 11071 shlibpath_overrides_runpath=no 11072 hardcode_into_libs=yes 11073 ;; 11074 11075uts4*) 11076 version_type=linux # correct to gnu/linux during the next big refactor 11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11078 soname_spec='$libname$release$shared_ext$major' 11079 shlibpath_var=LD_LIBRARY_PATH 11080 ;; 11081 11082*) 11083 dynamic_linker=no 11084 ;; 11085esac 11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11087$as_echo "$dynamic_linker" >&6; } 11088test no = "$dynamic_linker" && can_build_shared=no 11089 11090variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11091if test yes = "$GCC"; then 11092 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11093fi 11094 11095if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11096 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11097fi 11098 11099if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11100 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11101fi 11102 11103# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11104configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11105 11106# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11107func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11108 11109# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11110configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11209$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11210hardcode_action= 11211if test -n "$hardcode_libdir_flag_spec" || 11212 test -n "$runpath_var" || 11213 test yes = "$hardcode_automatic"; then 11214 11215 # We can hardcode non-existent directories. 11216 if test no != "$hardcode_direct" && 11217 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11218 # have to relink, otherwise we might link with an installed library 11219 # when we should be linking with a yet-to-be-installed one 11220 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11221 test no != "$hardcode_minus_L"; then 11222 # Linking always hardcodes the temporary library directory. 11223 hardcode_action=relink 11224 else 11225 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11226 hardcode_action=immediate 11227 fi 11228else 11229 # We cannot hardcode anything, or else we can only hardcode existing 11230 # directories. 11231 hardcode_action=unsupported 11232fi 11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11234$as_echo "$hardcode_action" >&6; } 11235 11236if test relink = "$hardcode_action" || 11237 test yes = "$inherit_rpath"; then 11238 # Fast installation is not supported 11239 enable_fast_install=no 11240elif test yes = "$shlibpath_overrides_runpath" || 11241 test no = "$enable_shared"; then 11242 # Fast installation is not necessary 11243 enable_fast_install=needless 11244fi 11245 11246 11247 11248 11249 11250 11251 if test yes != "$enable_dlopen"; then 11252 enable_dlopen=unknown 11253 enable_dlopen_self=unknown 11254 enable_dlopen_self_static=unknown 11255else 11256 lt_cv_dlopen=no 11257 lt_cv_dlopen_libs= 11258 11259 case $host_os in 11260 beos*) 11261 lt_cv_dlopen=load_add_on 11262 lt_cv_dlopen_libs= 11263 lt_cv_dlopen_self=yes 11264 ;; 11265 11266 mingw* | pw32* | cegcc*) 11267 lt_cv_dlopen=LoadLibrary 11268 lt_cv_dlopen_libs= 11269 ;; 11270 11271 cygwin*) 11272 lt_cv_dlopen=dlopen 11273 lt_cv_dlopen_libs= 11274 ;; 11275 11276 darwin*) 11277 # if libdl is installed we need to link against it 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11279$as_echo_n "checking for dlopen in -ldl... " >&6; } 11280if ${ac_cv_lib_dl_dlopen+:} false; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 ac_check_lib_save_LIBS=$LIBS 11284LIBS="-ldl $LIBS" 11285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11286/* end confdefs.h. */ 11287 11288/* Override any GCC internal prototype to avoid an error. 11289 Use char because int might match the return type of a GCC 11290 builtin and then its argument prototype would still apply. */ 11291#ifdef __cplusplus 11292extern "C" 11293#endif 11294char dlopen (); 11295int 11296main () 11297{ 11298return dlopen (); 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303if ac_fn_c_try_link "$LINENO"; then : 11304 ac_cv_lib_dl_dlopen=yes 11305else 11306 ac_cv_lib_dl_dlopen=no 11307fi 11308rm -f core conftest.err conftest.$ac_objext \ 11309 conftest$ac_exeext conftest.$ac_ext 11310LIBS=$ac_check_lib_save_LIBS 11311fi 11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11313$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11314if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11315 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11316else 11317 11318 lt_cv_dlopen=dyld 11319 lt_cv_dlopen_libs= 11320 lt_cv_dlopen_self=yes 11321 11322fi 11323 11324 ;; 11325 11326 tpf*) 11327 # Don't try to run any link tests for TPF. We know it's impossible 11328 # because TPF is a cross-compiler, and we know how we open DSOs. 11329 lt_cv_dlopen=dlopen 11330 lt_cv_dlopen_libs= 11331 lt_cv_dlopen_self=no 11332 ;; 11333 11334 *) 11335 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11336if test "x$ac_cv_func_shl_load" = xyes; then : 11337 lt_cv_dlopen=shl_load 11338else 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11340$as_echo_n "checking for shl_load in -ldld... " >&6; } 11341if ${ac_cv_lib_dld_shl_load+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 ac_check_lib_save_LIBS=$LIBS 11345LIBS="-ldld $LIBS" 11346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11347/* end confdefs.h. */ 11348 11349/* Override any GCC internal prototype to avoid an error. 11350 Use char because int might match the return type of a GCC 11351 builtin and then its argument prototype would still apply. */ 11352#ifdef __cplusplus 11353extern "C" 11354#endif 11355char shl_load (); 11356int 11357main () 11358{ 11359return shl_load (); 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364if ac_fn_c_try_link "$LINENO"; then : 11365 ac_cv_lib_dld_shl_load=yes 11366else 11367 ac_cv_lib_dld_shl_load=no 11368fi 11369rm -f core conftest.err conftest.$ac_objext \ 11370 conftest$ac_exeext conftest.$ac_ext 11371LIBS=$ac_check_lib_save_LIBS 11372fi 11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11374$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11375if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11376 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11377else 11378 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11379if test "x$ac_cv_func_dlopen" = xyes; then : 11380 lt_cv_dlopen=dlopen 11381else 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11383$as_echo_n "checking for dlopen in -ldl... " >&6; } 11384if ${ac_cv_lib_dl_dlopen+:} false; then : 11385 $as_echo_n "(cached) " >&6 11386else 11387 ac_check_lib_save_LIBS=$LIBS 11388LIBS="-ldl $LIBS" 11389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390/* end confdefs.h. */ 11391 11392/* Override any GCC internal prototype to avoid an error. 11393 Use char because int might match the return type of a GCC 11394 builtin and then its argument prototype would still apply. */ 11395#ifdef __cplusplus 11396extern "C" 11397#endif 11398char dlopen (); 11399int 11400main () 11401{ 11402return dlopen (); 11403 ; 11404 return 0; 11405} 11406_ACEOF 11407if ac_fn_c_try_link "$LINENO"; then : 11408 ac_cv_lib_dl_dlopen=yes 11409else 11410 ac_cv_lib_dl_dlopen=no 11411fi 11412rm -f core conftest.err conftest.$ac_objext \ 11413 conftest$ac_exeext conftest.$ac_ext 11414LIBS=$ac_check_lib_save_LIBS 11415fi 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11417$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11418if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11419 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11420else 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11422$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11423if ${ac_cv_lib_svld_dlopen+:} false; then : 11424 $as_echo_n "(cached) " >&6 11425else 11426 ac_check_lib_save_LIBS=$LIBS 11427LIBS="-lsvld $LIBS" 11428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429/* end confdefs.h. */ 11430 11431/* Override any GCC internal prototype to avoid an error. 11432 Use char because int might match the return type of a GCC 11433 builtin and then its argument prototype would still apply. */ 11434#ifdef __cplusplus 11435extern "C" 11436#endif 11437char dlopen (); 11438int 11439main () 11440{ 11441return dlopen (); 11442 ; 11443 return 0; 11444} 11445_ACEOF 11446if ac_fn_c_try_link "$LINENO"; then : 11447 ac_cv_lib_svld_dlopen=yes 11448else 11449 ac_cv_lib_svld_dlopen=no 11450fi 11451rm -f core conftest.err conftest.$ac_objext \ 11452 conftest$ac_exeext conftest.$ac_ext 11453LIBS=$ac_check_lib_save_LIBS 11454fi 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11456$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11457if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11458 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11459else 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11461$as_echo_n "checking for dld_link in -ldld... " >&6; } 11462if ${ac_cv_lib_dld_dld_link+:} false; then : 11463 $as_echo_n "(cached) " >&6 11464else 11465 ac_check_lib_save_LIBS=$LIBS 11466LIBS="-ldld $LIBS" 11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11468/* end confdefs.h. */ 11469 11470/* Override any GCC internal prototype to avoid an error. 11471 Use char because int might match the return type of a GCC 11472 builtin and then its argument prototype would still apply. */ 11473#ifdef __cplusplus 11474extern "C" 11475#endif 11476char dld_link (); 11477int 11478main () 11479{ 11480return dld_link (); 11481 ; 11482 return 0; 11483} 11484_ACEOF 11485if ac_fn_c_try_link "$LINENO"; then : 11486 ac_cv_lib_dld_dld_link=yes 11487else 11488 ac_cv_lib_dld_dld_link=no 11489fi 11490rm -f core conftest.err conftest.$ac_objext \ 11491 conftest$ac_exeext conftest.$ac_ext 11492LIBS=$ac_check_lib_save_LIBS 11493fi 11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11495$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11496if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11497 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11498fi 11499 11500 11501fi 11502 11503 11504fi 11505 11506 11507fi 11508 11509 11510fi 11511 11512 11513fi 11514 11515 ;; 11516 esac 11517 11518 if test no = "$lt_cv_dlopen"; then 11519 enable_dlopen=no 11520 else 11521 enable_dlopen=yes 11522 fi 11523 11524 case $lt_cv_dlopen in 11525 dlopen) 11526 save_CPPFLAGS=$CPPFLAGS 11527 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11528 11529 save_LDFLAGS=$LDFLAGS 11530 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11531 11532 save_LIBS=$LIBS 11533 LIBS="$lt_cv_dlopen_libs $LIBS" 11534 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11536$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11537if ${lt_cv_dlopen_self+:} false; then : 11538 $as_echo_n "(cached) " >&6 11539else 11540 if test yes = "$cross_compiling"; then : 11541 lt_cv_dlopen_self=cross 11542else 11543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11544 lt_status=$lt_dlunknown 11545 cat > conftest.$ac_ext <<_LT_EOF 11546#line $LINENO "configure" 11547#include "confdefs.h" 11548 11549#if HAVE_DLFCN_H 11550#include <dlfcn.h> 11551#endif 11552 11553#include <stdio.h> 11554 11555#ifdef RTLD_GLOBAL 11556# define LT_DLGLOBAL RTLD_GLOBAL 11557#else 11558# ifdef DL_GLOBAL 11559# define LT_DLGLOBAL DL_GLOBAL 11560# else 11561# define LT_DLGLOBAL 0 11562# endif 11563#endif 11564 11565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11566 find out it does not work in some platform. */ 11567#ifndef LT_DLLAZY_OR_NOW 11568# ifdef RTLD_LAZY 11569# define LT_DLLAZY_OR_NOW RTLD_LAZY 11570# else 11571# ifdef DL_LAZY 11572# define LT_DLLAZY_OR_NOW DL_LAZY 11573# else 11574# ifdef RTLD_NOW 11575# define LT_DLLAZY_OR_NOW RTLD_NOW 11576# else 11577# ifdef DL_NOW 11578# define LT_DLLAZY_OR_NOW DL_NOW 11579# else 11580# define LT_DLLAZY_OR_NOW 0 11581# endif 11582# endif 11583# endif 11584# endif 11585#endif 11586 11587/* When -fvisibility=hidden is used, assume the code has been annotated 11588 correspondingly for the symbols needed. */ 11589#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11590int fnord () __attribute__((visibility("default"))); 11591#endif 11592 11593int fnord () { return 42; } 11594int main () 11595{ 11596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11597 int status = $lt_dlunknown; 11598 11599 if (self) 11600 { 11601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11602 else 11603 { 11604 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11605 else puts (dlerror ()); 11606 } 11607 /* dlclose (self); */ 11608 } 11609 else 11610 puts (dlerror ()); 11611 11612 return status; 11613} 11614_LT_EOF 11615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11616 (eval $ac_link) 2>&5 11617 ac_status=$? 11618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11619 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11620 (./conftest; exit; ) >&5 2>/dev/null 11621 lt_status=$? 11622 case x$lt_status in 11623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11625 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11626 esac 11627 else : 11628 # compilation failed 11629 lt_cv_dlopen_self=no 11630 fi 11631fi 11632rm -fr conftest* 11633 11634 11635fi 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11637$as_echo "$lt_cv_dlopen_self" >&6; } 11638 11639 if test yes = "$lt_cv_dlopen_self"; then 11640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11642$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11643if ${lt_cv_dlopen_self_static+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645else 11646 if test yes = "$cross_compiling"; then : 11647 lt_cv_dlopen_self_static=cross 11648else 11649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11650 lt_status=$lt_dlunknown 11651 cat > conftest.$ac_ext <<_LT_EOF 11652#line $LINENO "configure" 11653#include "confdefs.h" 11654 11655#if HAVE_DLFCN_H 11656#include <dlfcn.h> 11657#endif 11658 11659#include <stdio.h> 11660 11661#ifdef RTLD_GLOBAL 11662# define LT_DLGLOBAL RTLD_GLOBAL 11663#else 11664# ifdef DL_GLOBAL 11665# define LT_DLGLOBAL DL_GLOBAL 11666# else 11667# define LT_DLGLOBAL 0 11668# endif 11669#endif 11670 11671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11672 find out it does not work in some platform. */ 11673#ifndef LT_DLLAZY_OR_NOW 11674# ifdef RTLD_LAZY 11675# define LT_DLLAZY_OR_NOW RTLD_LAZY 11676# else 11677# ifdef DL_LAZY 11678# define LT_DLLAZY_OR_NOW DL_LAZY 11679# else 11680# ifdef RTLD_NOW 11681# define LT_DLLAZY_OR_NOW RTLD_NOW 11682# else 11683# ifdef DL_NOW 11684# define LT_DLLAZY_OR_NOW DL_NOW 11685# else 11686# define LT_DLLAZY_OR_NOW 0 11687# endif 11688# endif 11689# endif 11690# endif 11691#endif 11692 11693/* When -fvisibility=hidden is used, assume the code has been annotated 11694 correspondingly for the symbols needed. */ 11695#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11696int fnord () __attribute__((visibility("default"))); 11697#endif 11698 11699int fnord () { return 42; } 11700int main () 11701{ 11702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11703 int status = $lt_dlunknown; 11704 11705 if (self) 11706 { 11707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11708 else 11709 { 11710 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11711 else puts (dlerror ()); 11712 } 11713 /* dlclose (self); */ 11714 } 11715 else 11716 puts (dlerror ()); 11717 11718 return status; 11719} 11720_LT_EOF 11721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11722 (eval $ac_link) 2>&5 11723 ac_status=$? 11724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11725 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11726 (./conftest; exit; ) >&5 2>/dev/null 11727 lt_status=$? 11728 case x$lt_status in 11729 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11730 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11731 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11732 esac 11733 else : 11734 # compilation failed 11735 lt_cv_dlopen_self_static=no 11736 fi 11737fi 11738rm -fr conftest* 11739 11740 11741fi 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11743$as_echo "$lt_cv_dlopen_self_static" >&6; } 11744 fi 11745 11746 CPPFLAGS=$save_CPPFLAGS 11747 LDFLAGS=$save_LDFLAGS 11748 LIBS=$save_LIBS 11749 ;; 11750 esac 11751 11752 case $lt_cv_dlopen_self in 11753 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11754 *) enable_dlopen_self=unknown ;; 11755 esac 11756 11757 case $lt_cv_dlopen_self_static in 11758 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11759 *) enable_dlopen_self_static=unknown ;; 11760 esac 11761fi 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779striplib= 11780old_striplib= 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11782$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11783if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11784 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11785 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11787$as_echo "yes" >&6; } 11788else 11789# FIXME - insert some real tests, host_os isn't really good enough 11790 case $host_os in 11791 darwin*) 11792 if test -n "$STRIP"; then 11793 striplib="$STRIP -x" 11794 old_striplib="$STRIP -S" 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11796$as_echo "yes" >&6; } 11797 else 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11799$as_echo "no" >&6; } 11800 fi 11801 ;; 11802 *) 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11804$as_echo "no" >&6; } 11805 ;; 11806 esac 11807fi 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 # Report what library types will actually be built 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11822$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11824$as_echo "$can_build_shared" >&6; } 11825 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11827$as_echo_n "checking whether to build shared libraries... " >&6; } 11828 test no = "$can_build_shared" && enable_shared=no 11829 11830 # On AIX, shared libraries and static libraries use the same namespace, and 11831 # are all built from PIC. 11832 case $host_os in 11833 aix3*) 11834 test yes = "$enable_shared" && enable_static=no 11835 if test -n "$RANLIB"; then 11836 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11837 postinstall_cmds='$RANLIB $lib' 11838 fi 11839 ;; 11840 11841 aix[4-9]*) 11842 if test ia64 != "$host_cpu"; then 11843 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11844 yes,aix,yes) ;; # shared object as lib.so file only 11845 yes,svr4,*) ;; # shared object as lib.so archive member only 11846 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11847 esac 11848 fi 11849 ;; 11850 esac 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11852$as_echo "$enable_shared" >&6; } 11853 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11855$as_echo_n "checking whether to build static libraries... " >&6; } 11856 # Make sure either enable_shared or enable_static is yes. 11857 test yes = "$enable_shared" || enable_static=yes 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11859$as_echo "$enable_static" >&6; } 11860 11861 11862 11863 11864fi 11865ac_ext=c 11866ac_cpp='$CPP $CPPFLAGS' 11867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11869ac_compiler_gnu=$ac_cv_c_compiler_gnu 11870 11871CC=$lt_save_CC 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 ac_config_commands="$ac_config_commands libtool" 11888 11889 11890 11891 11892# Only expand once: 11893 11894 11895# Find a good install program. We prefer a C program (faster), 11896# so one script is as good as another. But avoid the broken or 11897# incompatible versions: 11898# SysV /etc/install, /usr/sbin/install 11899# SunOS /usr/etc/install 11900# IRIX /sbin/install 11901# AIX /bin/install 11902# AmigaOS /C/install, which installs bootblocks on floppy discs 11903# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11904# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11905# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11906# OS/2's system install, which has a completely different semantic 11907# ./install, which can be erroneously created by make from ./install.sh. 11908# Reject install programs that cannot install multiple files. 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 11910$as_echo_n "checking for a BSD-compatible install... " >&6; } 11911if test -z "$INSTALL"; then 11912if ${ac_cv_path_install+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914else 11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11916for as_dir in $PATH 11917do 11918 IFS=$as_save_IFS 11919 test -z "$as_dir" && as_dir=. 11920 # Account for people who put trailing slashes in PATH elements. 11921case $as_dir/ in #(( 11922 ./ | .// | /[cC]/* | \ 11923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11924 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 11925 /usr/ucb/* ) ;; 11926 *) 11927 # OSF1 and SCO ODT 3.0 have their own names for install. 11928 # Don't use installbsd from OSF since it installs stuff as root 11929 # by default. 11930 for ac_prog in ginstall scoinst install; do 11931 for ac_exec_ext in '' $ac_executable_extensions; do 11932 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11933 if test $ac_prog = install && 11934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11935 # AIX install. It has an incompatible calling convention. 11936 : 11937 elif test $ac_prog = install && 11938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11939 # program-specific install script used by HP pwplus--don't use. 11940 : 11941 else 11942 rm -rf conftest.one conftest.two conftest.dir 11943 echo one > conftest.one 11944 echo two > conftest.two 11945 mkdir conftest.dir 11946 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 11947 test -s conftest.one && test -s conftest.two && 11948 test -s conftest.dir/conftest.one && 11949 test -s conftest.dir/conftest.two 11950 then 11951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11952 break 3 11953 fi 11954 fi 11955 fi 11956 done 11957 done 11958 ;; 11959esac 11960 11961 done 11962IFS=$as_save_IFS 11963 11964rm -rf conftest.one conftest.two conftest.dir 11965 11966fi 11967 if test "${ac_cv_path_install+set}" = set; then 11968 INSTALL=$ac_cv_path_install 11969 else 11970 # As a last resort, use the slow shell script. Don't cache a 11971 # value for INSTALL within a source directory, because that will 11972 # break other packages using the cache if that directory is 11973 # removed, or if the value is a relative name. 11974 INSTALL=$ac_install_sh 11975 fi 11976fi 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 11978$as_echo "$INSTALL" >&6; } 11979 11980# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11981# It thinks the first close brace ends the variable substitution. 11982test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11983 11984test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11985 11986test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11987 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11989$as_echo_n "checking whether ln -s works... " >&6; } 11990LN_S=$as_ln_s 11991if test "$LN_S" = "ln -s"; then 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11993$as_echo "yes" >&6; } 11994else 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11996$as_echo "no, using $LN_S" >&6; } 11997fi 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007# 12008# Use pkg-config 12009# 12010 12011 12012 12013 12014 12015 12016 12017 12018if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12019 if test -n "$ac_tool_prefix"; then 12020 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12021set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12023$as_echo_n "checking for $ac_word... " >&6; } 12024if ${ac_cv_path_PKG_CONFIG+:} false; then : 12025 $as_echo_n "(cached) " >&6 12026else 12027 case $PKG_CONFIG in 12028 [\\/]* | ?:[\\/]*) 12029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12030 ;; 12031 *) 12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12033for as_dir in $PATH 12034do 12035 IFS=$as_save_IFS 12036 test -z "$as_dir" && as_dir=. 12037 for ac_exec_ext in '' $ac_executable_extensions; do 12038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12041 break 2 12042 fi 12043done 12044 done 12045IFS=$as_save_IFS 12046 12047 ;; 12048esac 12049fi 12050PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12051if test -n "$PKG_CONFIG"; then 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12053$as_echo "$PKG_CONFIG" >&6; } 12054else 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12056$as_echo "no" >&6; } 12057fi 12058 12059 12060fi 12061if test -z "$ac_cv_path_PKG_CONFIG"; then 12062 ac_pt_PKG_CONFIG=$PKG_CONFIG 12063 # Extract the first word of "pkg-config", so it can be a program name with args. 12064set dummy pkg-config; ac_word=$2 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12066$as_echo_n "checking for $ac_word... " >&6; } 12067if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12068 $as_echo_n "(cached) " >&6 12069else 12070 case $ac_pt_PKG_CONFIG in 12071 [\\/]* | ?:[\\/]*) 12072 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12073 ;; 12074 *) 12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12076for as_dir in $PATH 12077do 12078 IFS=$as_save_IFS 12079 test -z "$as_dir" && as_dir=. 12080 for ac_exec_ext in '' $ac_executable_extensions; do 12081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12082 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12084 break 2 12085 fi 12086done 12087 done 12088IFS=$as_save_IFS 12089 12090 ;; 12091esac 12092fi 12093ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12094if test -n "$ac_pt_PKG_CONFIG"; then 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12096$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12097else 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12099$as_echo "no" >&6; } 12100fi 12101 12102 if test "x$ac_pt_PKG_CONFIG" = x; then 12103 PKG_CONFIG="" 12104 else 12105 case $cross_compiling:$ac_tool_warned in 12106yes:) 12107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12109ac_tool_warned=yes ;; 12110esac 12111 PKG_CONFIG=$ac_pt_PKG_CONFIG 12112 fi 12113else 12114 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12115fi 12116 12117fi 12118if test -n "$PKG_CONFIG"; then 12119 _pkg_min_version=0.9.0 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12121$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12122 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12124$as_echo "yes" >&6; } 12125 else 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12127$as_echo "no" >&6; } 12128 PKG_CONFIG="" 12129 fi 12130fi 12131 12132# Warn if the user specified libbind, which is now deprecated 12133# 12134# [pairwise: skip] 12135# Check whether --enable-libbind was given. 12136if test "${enable_libbind+set}" = set; then : 12137 enableval=$enable_libbind; 12138fi 12139 12140 12141case "$enable_libbind" in 12142 yes) 12143 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution. 12144It is available from http://www.isc.org as a separate download." "$LINENO" 5 12145 ;; 12146 no|'') 12147 ;; 12148esac 12149 12150# [pairwise: --enable-buffer-useinline, --disable-buffer-useinline] 12151# Check whether --enable-buffer_useinline was given. 12152if test "${enable_buffer_useinline+set}" = set; then : 12153 enableval=$enable_buffer_useinline; if test yes = "${enable}" 12154 then 12155 12156$as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h 12157 12158 fi 12159else 12160 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h 12161 12162fi 12163 12164 12165# [pairwise: --enable-warn-shadow, --disable-warn-shadow] 12166# Check whether --enable-warn_shadow was given. 12167if test "${enable_warn_shadow+set}" = set; then : 12168 enableval=$enable_warn_shadow; 12169fi 12170 12171 12172# [pairwise: --enable-warn-error, --disable-warn-error] 12173# Check whether --enable-warn_error was given. 12174if test "${enable_warn_error+set}" = set; then : 12175 enableval=$enable_warn_error; 12176fi 12177 12178 12179# [pairwise: --enable-developer, --disable-developer] 12180# Check whether --enable-developer was given. 12181if test "${enable_developer+set}" = set; then : 12182 enableval=$enable_developer; 12183fi 12184 12185XTARGETS= 12186case "$enable_developer" in 12187yes) 12188 STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1" 12189 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes 12190 test "${enable_querytrace+set}" = set || enable_querytrace=yes 12191 test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes 12192 test "${with_cmocka+set}" = set || with_cmocka=yes 12193 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes 12194 test "${enable_symtable+set}" = set || enable_symtable=all 12195 test "${enable_warn_error+set}" = set || enable_warn_error=yes 12196 test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes 12197 test "${with_zlib+set}" = set || with_zlib=yes 12198 XTARGETS='${XTARGETS}' 12199 ;; 12200esac 12201 12202 12203# American Fuzzy Lop is not included in pairwise testing as fuzzing 12204# tools are not present in the relevant Docker image. 12205# 12206# [pairwise: skip] 12207# Check whether --enable-afl was given. 12208if test "${enable_afl+set}" = set; then : 12209 enableval=$enable_afl; 12210$as_echo "#define ENABLE_AFL 1" >>confdefs.h 12211 12212fi 12213 12214case "$enable_afl" in 12215yes) 12216 LIBS="$LIBS -lpthread" 12217 ;; 12218esac 12219 12220 12221for ac_func in getrandom 12222do : 12223 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 12224if test "x$ac_cv_func_getrandom" = xyes; then : 12225 cat >>confdefs.h <<_ACEOF 12226#define HAVE_GETRANDOM 1 12227_ACEOF 12228 12229fi 12230done 12231 12232 12233# libseccomp sandboxing 12234# 12235# [pairwise: --enable-seccomp, --disable-seccomp] 12236# Check whether --enable-seccomp was given. 12237if test "${enable_seccomp+set}" = set; then : 12238 enableval=$enable_seccomp; 12239fi 12240 12241case "$enable_seccomp" in 12242 yes) 12243 case $host_os in 12244 linux*) 12245 ;; 12246 *) 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&5 12248$as_echo "$as_me: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&2;} 12249 enable_seccomp=no 12250 ;; 12251 esac 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 12253$as_echo_n "checking for library containing seccomp_init... " >&6; } 12254if ${ac_cv_search_seccomp_init+:} false; then : 12255 $as_echo_n "(cached) " >&6 12256else 12257 ac_func_search_save_LIBS=$LIBS 12258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12259/* end confdefs.h. */ 12260 12261/* Override any GCC internal prototype to avoid an error. 12262 Use char because int might match the return type of a GCC 12263 builtin and then its argument prototype would still apply. */ 12264#ifdef __cplusplus 12265extern "C" 12266#endif 12267char seccomp_init (); 12268int 12269main () 12270{ 12271return seccomp_init (); 12272 ; 12273 return 0; 12274} 12275_ACEOF 12276for ac_lib in '' seccomp; do 12277 if test -z "$ac_lib"; then 12278 ac_res="none required" 12279 else 12280 ac_res=-l$ac_lib 12281 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12282 fi 12283 if ac_fn_c_try_link "$LINENO"; then : 12284 ac_cv_search_seccomp_init=$ac_res 12285fi 12286rm -f core conftest.err conftest.$ac_objext \ 12287 conftest$ac_exeext 12288 if ${ac_cv_search_seccomp_init+:} false; then : 12289 break 12290fi 12291done 12292if ${ac_cv_search_seccomp_init+:} false; then : 12293 12294else 12295 ac_cv_search_seccomp_init=no 12296fi 12297rm conftest.$ac_ext 12298LIBS=$ac_func_search_save_LIBS 12299fi 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 12301$as_echo "$ac_cv_search_seccomp_init" >&6; } 12302ac_res=$ac_cv_search_seccomp_init 12303if test "$ac_res" != no; then : 12304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12305 12306fi 12307 12308 if test "X$ac_cv_search_seccomp_init" = "X-lseccomp" ; then 12309 if test "$cross_compiling" = yes; then : 12310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12312as_fn_error $? "cannot run test program while cross compiling 12313See \`config.log' for more details" "$LINENO" 5; } 12314else 12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12316/* end confdefs.h. */ 12317 12318 #include <stdio.h> 12319 #include <stdlib.h> 12320 #include <errno.h> 12321 #include <sys/prctl.h> 12322 #include <linux/seccomp.h> 12323 12324 int main(void) 12325 { 12326 int ret; 12327 12328 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); 12329 if (ret < 0) { 12330 switch (errno) { 12331 case ENOSYS: 12332 return 1; 12333 case EINVAL: 12334 return 1; 12335 default: 12336 return 1; 12337 } 12338 } 12339 ret = 12340 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 12341 if (ret < 0) { 12342 switch (errno) { 12343 case EINVAL: 12344 return 1; 12345 case EFAULT: 12346 return 0; 12347 default: 12348 return 1; 12349 } 12350 } 12351 return 1; 12352 } 12353 12354 12355_ACEOF 12356if ac_fn_c_try_run "$LINENO"; then : 12357 12358$as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h 12359 12360 12361fi 12362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12363 conftest.$ac_objext conftest.beam conftest.$ac_ext 12364fi 12365 12366 fi 12367 ;; 12368 *) 12369 ;; 12370esac 12371 12372# 12373# Make very sure that these are the first files processed by 12374# config.status, since we use the processed output as the input for 12375# AC_SUBST_FILE() substitutions in other files. 12376# 12377ac_config_files="$ac_config_files make/rules make/includes" 12378 12379 12380# Extract the first word of "ar", so it can be a program name with args. 12381set dummy ar; ac_word=$2 12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12383$as_echo_n "checking for $ac_word... " >&6; } 12384if ${ac_cv_path_AR+:} false; then : 12385 $as_echo_n "(cached) " >&6 12386else 12387 case $AR in 12388 [\\/]* | ?:[\\/]*) 12389 ac_cv_path_AR="$AR" # Let the user override the test with a path. 12390 ;; 12391 *) 12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12393for as_dir in $PATH 12394do 12395 IFS=$as_save_IFS 12396 test -z "$as_dir" && as_dir=. 12397 for ac_exec_ext in '' $ac_executable_extensions; do 12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12399 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12401 break 2 12402 fi 12403done 12404 done 12405IFS=$as_save_IFS 12406 12407 ;; 12408esac 12409fi 12410AR=$ac_cv_path_AR 12411if test -n "$AR"; then 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12413$as_echo "$AR" >&6; } 12414else 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12416$as_echo "no" >&6; } 12417fi 12418 12419 12420ARFLAGS="cruv" 12421 12422 12423 12424# The POSIX ln(1) program. Non-POSIX systems may substitute 12425# "copy" or something. 12426LN=ln 12427 12428 12429case "$AR" in 12430 "") 12431 as_fn_error $? " 12432ar program not found. Please fix your PATH to include the directory in 12433which ar resides, or set AR in the environment with the full path to ar. 12434" "$LINENO" 5 12435 12436 ;; 12437esac 12438 12439# 12440# Etags. 12441# 12442for ac_prog in etags emacs-etags 12443do 12444 # Extract the first word of "$ac_prog", so it can be a program name with args. 12445set dummy $ac_prog; ac_word=$2 12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12447$as_echo_n "checking for $ac_word... " >&6; } 12448if ${ac_cv_path_ETAGS+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 case $ETAGS in 12452 [\\/]* | ?:[\\/]*) 12453 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 12454 ;; 12455 *) 12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12457for as_dir in $PATH 12458do 12459 IFS=$as_save_IFS 12460 test -z "$as_dir" && as_dir=. 12461 for ac_exec_ext in '' $ac_executable_extensions; do 12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12463 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12465 break 2 12466 fi 12467done 12468 done 12469IFS=$as_save_IFS 12470 12471 ;; 12472esac 12473fi 12474ETAGS=$ac_cv_path_ETAGS 12475if test -n "$ETAGS"; then 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5 12477$as_echo "$ETAGS" >&6; } 12478else 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12480$as_echo "no" >&6; } 12481fi 12482 12483 12484 test -n "$ETAGS" && break 12485done 12486 12487 12488# 12489# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of 12490# GNU emacs etags, and it requires the -L flag. 12491# 12492if test "X$ETAGS" != "X"; then 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5 12494$as_echo_n "checking for Exuberant Ctags etags... " >&6; } 12495 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12497$as_echo "yes" >&6; } 12498 ETAGS="$ETAGS -L" 12499 else 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12501$as_echo "no" >&6; } 12502 fi 12503fi 12504 12505 12506# 12507# Perl is optional; it is used only by some of the system test scripts. 12508# Note: the backtrace feature (see below) uses perl to build the symbol table, 12509# but it still compiles without perl, in which case an empty table will be used. 12510# 12511for ac_prog in perl5 perl 12512do 12513 # Extract the first word of "$ac_prog", so it can be a program name with args. 12514set dummy $ac_prog; ac_word=$2 12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12516$as_echo_n "checking for $ac_word... " >&6; } 12517if ${ac_cv_path_PERL+:} false; then : 12518 $as_echo_n "(cached) " >&6 12519else 12520 case $PERL in 12521 [\\/]* | ?:[\\/]*) 12522 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 12523 ;; 12524 *) 12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12526for as_dir in $PATH 12527do 12528 IFS=$as_save_IFS 12529 test -z "$as_dir" && as_dir=. 12530 for ac_exec_ext in '' $ac_executable_extensions; do 12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12532 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12534 break 2 12535 fi 12536done 12537 done 12538IFS=$as_save_IFS 12539 12540 ;; 12541esac 12542fi 12543PERL=$ac_cv_path_PERL 12544if test -n "$PERL"; then 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12546$as_echo "$PERL" >&6; } 12547else 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12549$as_echo "no" >&6; } 12550fi 12551 12552 12553 test -n "$PERL" && break 12554done 12555 12556 12557 12558# 12559# Python is also optional but required by default so that dnssec-keymgr gets 12560# installed unless explicitly prevented by the user using --without-python. 12561# 12562testminvers='import sys 12563if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)): 12564 exit(1)' 12565 12566testargparse='try: import argparse 12567except: exit(1)' 12568 12569testply='try: import ply 12570except: exit(1)' 12571 12572testsetup='try: from distutils.core import setup 12573except: exit(1)' 12574 12575default_with_python="python python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7" 12576 12577 12578 12579# [pairwise: --with-python, --without-python] 12580 12581# Check whether --with-python was given. 12582if test "${with_python+set}" = set; then : 12583 withval=$with_python; 12584else 12585 with_python=$default_with_python 12586fi 12587 12588 12589# [pairwise: skip] 12590 12591# Check whether --with-python-install-dir was given. 12592if test "${with_python_install_dir+set}" = set; then : 12593 withval=$with_python_install_dir; 12594else 12595 with_python_install_dir="" 12596fi 12597 12598 12599if test "$with_python" = "yes"; then : 12600 with_python=$default_with_python 12601fi 12602 12603if test "$with_python" = "no"; then : 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5 12605$as_echo_n "checking for Python support... " >&6; } 12606 unset PYTHON 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12608$as_echo "disabled" >&6; } 12609else 12610 for p in $with_python 12611 do 12612 case $p in #( 12613 /*) : 12614 PYTHON="$p" ;; #( 12615 *) : 12616 ;; 12617esac 12618 12619 # Extract the first word of "$p", so it can be a program name with args. 12620set dummy $p; ac_word=$2 12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12622$as_echo_n "checking for $ac_word... " >&6; } 12623if ${ac_cv_path_PYTHON+:} false; then : 12624 $as_echo_n "(cached) " >&6 12625else 12626 case $PYTHON in 12627 [\\/]* | ?:[\\/]*) 12628 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 12629 ;; 12630 *) 12631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12632for as_dir in $PATH 12633do 12634 IFS=$as_save_IFS 12635 test -z "$as_dir" && as_dir=. 12636 for ac_exec_ext in '' $ac_executable_extensions; do 12637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12638 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12640 break 2 12641 fi 12642done 12643 done 12644IFS=$as_save_IFS 12645 12646 ;; 12647esac 12648fi 12649PYTHON=$ac_cv_path_PYTHON 12650if test -n "$PYTHON"; then 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 12652$as_echo "$PYTHON" >&6; } 12653else 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12655$as_echo "no" >&6; } 12656fi 12657 12658 12659 # Do not cache the result of the check from the previous line. If the 12660 # first found Python interpreter has missing module dependencies and 12661 # the result of the above check is cached, subsequent module checks 12662 # will erroneously keep on using the cached path to the first found 12663 # Python interpreter instead of different ones. 12664 unset ac_cv_path_PYTHON 12665 12666 if test -z "$PYTHON"; then : 12667 continue 12668fi 12669 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5 12671$as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; } 12672 if "$PYTHON" -c "$testminvers" 2>/dev/null; then : 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12674$as_echo "yes" >&6; } 12675else 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12677$as_echo "no" >&6; } 12678 unset PYTHON 12679 continue 12680fi 12681 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5 12683$as_echo_n "checking Python module 'argparse'... " >&6; } 12684 if "$PYTHON" -c "$testargparse" 2>/dev/null; then : 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12686$as_echo "yes" >&6; } 12687else 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12689$as_echo "no" >&6; } 12690 unset PYTHON 12691 continue 12692fi 12693 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5 12695$as_echo_n "checking Python module 'ply'... " >&6; } 12696 if "$PYTHON" -c "$testply" 2>/dev/null; then : 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12698$as_echo "yes" >&6; } 12699else 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12701$as_echo "no" >&6; } 12702 unset PYTHON 12703 continue 12704fi 12705 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5 12707$as_echo_n "checking Python module 'distutils.core setup'... " >&6; } 12708 if "$PYTHON" -c "$testsetup" 2>/dev/null; then : 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12710$as_echo "yes" >&6; } 12711else 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12713$as_echo "no" >&6; } 12714 unset PYTHON 12715 continue 12716fi 12717 12718 # Stop looking any further once we find a Python interpreter 12719 # satisfying all requirements. 12720 break 12721 done 12722 12723 if test "X$PYTHON" = "X"; then : 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5 12725$as_echo_n "checking for Python support... " >&6; } 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12727$as_echo "no" >&6; } 12728 as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5 12729fi 12730fi 12731 12732PYTHON_TOOLS='' 12733CHECKDS='' 12734COVERAGE='' 12735KEYMGR='' 12736if test "X$PYTHON" != "X"; then : 12737 PYTHON_TOOLS=python 12738 CHECKDS=checkds 12739 COVERAGE=coverage 12740 KEYMGR=keymgr 12741 PYTHON_INSTALL_DIR="$with_python_install_dir" 12742 if test -n "$with_python_install_dir"; then : 12743 PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir" 12744fi 12745fi 12746 12747 12748 12749 12750 12751 12752 12753# 12754# Special processing of paths depending on whether --prefix, 12755# --sysconfdir or --localstatedir arguments were given. What's 12756# desired is some compatibility with the way previous versions 12757# of BIND built; they defaulted to /usr/local for most parts of 12758# the installation, but named.boot/named.conf was in /etc 12759# and named.pid was in /var/run. 12760# 12761# So ... if none of --prefix, --sysconfdir or --localstatedir are 12762# specified, set things up that way. If --prefix is given, use 12763# it for sysconfdir and localstatedir the way configure normally 12764# would. To change the prefix for everything but leave named.conf 12765# in /etc or named.pid in /var/run, then do this the usual configure way: 12766# ./configure --prefix=/somewhere --sysconfdir=/etc 12767# ./configure --prefix=/somewhere --localstatedir=/var 12768# 12769# To put named.conf and named.pid in /usr/local with everything else, 12770# set the prefix explicitly to /usr/local even though that's the default: 12771# ./configure --prefix=/usr/local 12772# 12773case "$prefix" in 12774 NONE) 12775 case "$sysconfdir" in 12776 '${prefix}/etc') 12777 sysconfdir=/etc 12778 ;; 12779 esac 12780 case "$localstatedir" in 12781 '${prefix}/var') 12782 localstatedir=/var 12783 ;; 12784 esac 12785 ;; 12786esac 12787expanded_sysconfdir=`eval echo $sysconfdir` 12788 12789 12790# 12791# Make sure INSTALL uses an absolute path, else it will be wrong in all 12792# Makefiles, since they use make/rules.in and INSTALL will be adjusted by 12793# configure based on the location of the file where it is substituted. 12794# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate 12795# subdirectory of install-sh, This relative path will be wrong for all 12796# directories more than one level down from install-sh. 12797# 12798case "$INSTALL" in 12799 /*) 12800 ;; 12801 *) 12802 # 12803 # Not all systems have dirname. 12804 # 12805 12806 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`" 12807 12808 12809 ac_prog="`echo $INSTALL | sed 's%.*/%%'`" 12810 test "X$ac_dir" = "X$ac_prog" && ac_dir=. 12811 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`" 12812 INSTALL="$ac_dir/$ac_prog" 12813 ;; 12814esac 12815 12816ac_ext=c 12817ac_cpp='$CPP $CPPFLAGS' 12818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12820ac_compiler_gnu=$ac_cv_c_compiler_gnu 12821if test -n "$ac_tool_prefix"; then 12822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12823set dummy ${ac_tool_prefix}gcc; ac_word=$2 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12825$as_echo_n "checking for $ac_word... " >&6; } 12826if ${ac_cv_prog_CC+:} false; then : 12827 $as_echo_n "(cached) " >&6 12828else 12829 if test -n "$CC"; then 12830 ac_cv_prog_CC="$CC" # Let the user override the test. 12831else 12832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12833for as_dir in $PATH 12834do 12835 IFS=$as_save_IFS 12836 test -z "$as_dir" && as_dir=. 12837 for ac_exec_ext in '' $ac_executable_extensions; do 12838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12839 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12841 break 2 12842 fi 12843done 12844 done 12845IFS=$as_save_IFS 12846 12847fi 12848fi 12849CC=$ac_cv_prog_CC 12850if test -n "$CC"; then 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12852$as_echo "$CC" >&6; } 12853else 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12855$as_echo "no" >&6; } 12856fi 12857 12858 12859fi 12860if test -z "$ac_cv_prog_CC"; then 12861 ac_ct_CC=$CC 12862 # Extract the first word of "gcc", so it can be a program name with args. 12863set dummy gcc; ac_word=$2 12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12865$as_echo_n "checking for $ac_word... " >&6; } 12866if ${ac_cv_prog_ac_ct_CC+:} false; then : 12867 $as_echo_n "(cached) " >&6 12868else 12869 if test -n "$ac_ct_CC"; then 12870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12871else 12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12873for as_dir in $PATH 12874do 12875 IFS=$as_save_IFS 12876 test -z "$as_dir" && as_dir=. 12877 for ac_exec_ext in '' $ac_executable_extensions; do 12878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12879 ac_cv_prog_ac_ct_CC="gcc" 12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12881 break 2 12882 fi 12883done 12884 done 12885IFS=$as_save_IFS 12886 12887fi 12888fi 12889ac_ct_CC=$ac_cv_prog_ac_ct_CC 12890if test -n "$ac_ct_CC"; then 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12892$as_echo "$ac_ct_CC" >&6; } 12893else 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12895$as_echo "no" >&6; } 12896fi 12897 12898 if test "x$ac_ct_CC" = x; then 12899 CC="" 12900 else 12901 case $cross_compiling:$ac_tool_warned in 12902yes:) 12903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12905ac_tool_warned=yes ;; 12906esac 12907 CC=$ac_ct_CC 12908 fi 12909else 12910 CC="$ac_cv_prog_CC" 12911fi 12912 12913if test -z "$CC"; then 12914 if test -n "$ac_tool_prefix"; then 12915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12916set dummy ${ac_tool_prefix}cc; ac_word=$2 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12918$as_echo_n "checking for $ac_word... " >&6; } 12919if ${ac_cv_prog_CC+:} false; then : 12920 $as_echo_n "(cached) " >&6 12921else 12922 if test -n "$CC"; then 12923 ac_cv_prog_CC="$CC" # Let the user override the test. 12924else 12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12926for as_dir in $PATH 12927do 12928 IFS=$as_save_IFS 12929 test -z "$as_dir" && as_dir=. 12930 for ac_exec_ext in '' $ac_executable_extensions; do 12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12932 ac_cv_prog_CC="${ac_tool_prefix}cc" 12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12934 break 2 12935 fi 12936done 12937 done 12938IFS=$as_save_IFS 12939 12940fi 12941fi 12942CC=$ac_cv_prog_CC 12943if test -n "$CC"; then 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12945$as_echo "$CC" >&6; } 12946else 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12948$as_echo "no" >&6; } 12949fi 12950 12951 12952 fi 12953fi 12954if test -z "$CC"; then 12955 # Extract the first word of "cc", so it can be a program name with args. 12956set dummy cc; ac_word=$2 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12958$as_echo_n "checking for $ac_word... " >&6; } 12959if ${ac_cv_prog_CC+:} false; then : 12960 $as_echo_n "(cached) " >&6 12961else 12962 if test -n "$CC"; then 12963 ac_cv_prog_CC="$CC" # Let the user override the test. 12964else 12965 ac_prog_rejected=no 12966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12967for as_dir in $PATH 12968do 12969 IFS=$as_save_IFS 12970 test -z "$as_dir" && as_dir=. 12971 for ac_exec_ext in '' $ac_executable_extensions; do 12972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12974 ac_prog_rejected=yes 12975 continue 12976 fi 12977 ac_cv_prog_CC="cc" 12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12979 break 2 12980 fi 12981done 12982 done 12983IFS=$as_save_IFS 12984 12985if test $ac_prog_rejected = yes; then 12986 # We found a bogon in the path, so make sure we never use it. 12987 set dummy $ac_cv_prog_CC 12988 shift 12989 if test $# != 0; then 12990 # We chose a different compiler from the bogus one. 12991 # However, it has the same basename, so the bogon will be chosen 12992 # first if we set CC to just the basename; use the full file name. 12993 shift 12994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12995 fi 12996fi 12997fi 12998fi 12999CC=$ac_cv_prog_CC 13000if test -n "$CC"; then 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13002$as_echo "$CC" >&6; } 13003else 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13005$as_echo "no" >&6; } 13006fi 13007 13008 13009fi 13010if test -z "$CC"; then 13011 if test -n "$ac_tool_prefix"; then 13012 for ac_prog in cl.exe 13013 do 13014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13015set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13017$as_echo_n "checking for $ac_word... " >&6; } 13018if ${ac_cv_prog_CC+:} false; then : 13019 $as_echo_n "(cached) " >&6 13020else 13021 if test -n "$CC"; then 13022 ac_cv_prog_CC="$CC" # Let the user override the test. 13023else 13024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13025for as_dir in $PATH 13026do 13027 IFS=$as_save_IFS 13028 test -z "$as_dir" && as_dir=. 13029 for ac_exec_ext in '' $ac_executable_extensions; do 13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13033 break 2 13034 fi 13035done 13036 done 13037IFS=$as_save_IFS 13038 13039fi 13040fi 13041CC=$ac_cv_prog_CC 13042if test -n "$CC"; then 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13044$as_echo "$CC" >&6; } 13045else 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13047$as_echo "no" >&6; } 13048fi 13049 13050 13051 test -n "$CC" && break 13052 done 13053fi 13054if test -z "$CC"; then 13055 ac_ct_CC=$CC 13056 for ac_prog in cl.exe 13057do 13058 # Extract the first word of "$ac_prog", so it can be a program name with args. 13059set dummy $ac_prog; ac_word=$2 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13061$as_echo_n "checking for $ac_word... " >&6; } 13062if ${ac_cv_prog_ac_ct_CC+:} false; then : 13063 $as_echo_n "(cached) " >&6 13064else 13065 if test -n "$ac_ct_CC"; then 13066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13067else 13068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13069for as_dir in $PATH 13070do 13071 IFS=$as_save_IFS 13072 test -z "$as_dir" && as_dir=. 13073 for ac_exec_ext in '' $ac_executable_extensions; do 13074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13075 ac_cv_prog_ac_ct_CC="$ac_prog" 13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13077 break 2 13078 fi 13079done 13080 done 13081IFS=$as_save_IFS 13082 13083fi 13084fi 13085ac_ct_CC=$ac_cv_prog_ac_ct_CC 13086if test -n "$ac_ct_CC"; then 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13088$as_echo "$ac_ct_CC" >&6; } 13089else 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13091$as_echo "no" >&6; } 13092fi 13093 13094 13095 test -n "$ac_ct_CC" && break 13096done 13097 13098 if test "x$ac_ct_CC" = x; then 13099 CC="" 13100 else 13101 case $cross_compiling:$ac_tool_warned in 13102yes:) 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13105ac_tool_warned=yes ;; 13106esac 13107 CC=$ac_ct_CC 13108 fi 13109fi 13110 13111fi 13112 13113 13114test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13116as_fn_error $? "no acceptable C compiler found in \$PATH 13117See \`config.log' for more details" "$LINENO" 5; } 13118 13119# Provide some information about the compiler. 13120$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13121set X $ac_compile 13122ac_compiler=$2 13123for ac_option in --version -v -V -qversion; do 13124 { { ac_try="$ac_compiler $ac_option >&5" 13125case "(($ac_try" in 13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13127 *) ac_try_echo=$ac_try;; 13128esac 13129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13130$as_echo "$ac_try_echo"; } >&5 13131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13132 ac_status=$? 13133 if test -s conftest.err; then 13134 sed '10a\ 13135... rest of stderr output deleted ... 13136 10q' conftest.err >conftest.er1 13137 cat conftest.er1 >&5 13138 fi 13139 rm -f conftest.er1 conftest.err 13140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13141 test $ac_status = 0; } 13142done 13143 13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 13145$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 13146if ${ac_cv_c_compiler_gnu+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148else 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151 13152int 13153main () 13154{ 13155#ifndef __GNUC__ 13156 choke me 13157#endif 13158 13159 ; 13160 return 0; 13161} 13162_ACEOF 13163if ac_fn_c_try_compile "$LINENO"; then : 13164 ac_compiler_gnu=yes 13165else 13166 ac_compiler_gnu=no 13167fi 13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13169ac_cv_c_compiler_gnu=$ac_compiler_gnu 13170 13171fi 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13173$as_echo "$ac_cv_c_compiler_gnu" >&6; } 13174if test $ac_compiler_gnu = yes; then 13175 GCC=yes 13176else 13177 GCC= 13178fi 13179ac_test_CFLAGS=${CFLAGS+set} 13180ac_save_CFLAGS=$CFLAGS 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13182$as_echo_n "checking whether $CC accepts -g... " >&6; } 13183if ${ac_cv_prog_cc_g+:} false; then : 13184 $as_echo_n "(cached) " >&6 13185else 13186 ac_save_c_werror_flag=$ac_c_werror_flag 13187 ac_c_werror_flag=yes 13188 ac_cv_prog_cc_g=no 13189 CFLAGS="-g" 13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13191/* end confdefs.h. */ 13192 13193int 13194main () 13195{ 13196 13197 ; 13198 return 0; 13199} 13200_ACEOF 13201if ac_fn_c_try_compile "$LINENO"; then : 13202 ac_cv_prog_cc_g=yes 13203else 13204 CFLAGS="" 13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13206/* end confdefs.h. */ 13207 13208int 13209main () 13210{ 13211 13212 ; 13213 return 0; 13214} 13215_ACEOF 13216if ac_fn_c_try_compile "$LINENO"; then : 13217 13218else 13219 ac_c_werror_flag=$ac_save_c_werror_flag 13220 CFLAGS="-g" 13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13222/* end confdefs.h. */ 13223 13224int 13225main () 13226{ 13227 13228 ; 13229 return 0; 13230} 13231_ACEOF 13232if ac_fn_c_try_compile "$LINENO"; then : 13233 ac_cv_prog_cc_g=yes 13234fi 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13236fi 13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13238fi 13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13240 ac_c_werror_flag=$ac_save_c_werror_flag 13241fi 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13243$as_echo "$ac_cv_prog_cc_g" >&6; } 13244if test "$ac_test_CFLAGS" = set; then 13245 CFLAGS=$ac_save_CFLAGS 13246elif test $ac_cv_prog_cc_g = yes; then 13247 if test "$GCC" = yes; then 13248 CFLAGS="-g -O2" 13249 else 13250 CFLAGS="-g" 13251 fi 13252else 13253 if test "$GCC" = yes; then 13254 CFLAGS="-O2" 13255 else 13256 CFLAGS= 13257 fi 13258fi 13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13260$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13261if ${ac_cv_prog_cc_c89+:} false; then : 13262 $as_echo_n "(cached) " >&6 13263else 13264 ac_cv_prog_cc_c89=no 13265ac_save_CC=$CC 13266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13267/* end confdefs.h. */ 13268#include <stdarg.h> 13269#include <stdio.h> 13270struct stat; 13271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13272struct buf { int x; }; 13273FILE * (*rcsopen) (struct buf *, struct stat *, int); 13274static char *e (p, i) 13275 char **p; 13276 int i; 13277{ 13278 return p[i]; 13279} 13280static char *f (char * (*g) (char **, int), char **p, ...) 13281{ 13282 char *s; 13283 va_list v; 13284 va_start (v,p); 13285 s = g (p, va_arg (v,int)); 13286 va_end (v); 13287 return s; 13288} 13289 13290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13291 function prototypes and stuff, but not '\xHH' hex character constants. 13292 These don't provoke an error unfortunately, instead are silently treated 13293 as 'x'. The following induces an error, until -std is added to get 13294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13295 array size at least. It's necessary to write '\x00'==0 to get something 13296 that's true only with -std. */ 13297int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13298 13299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13300 inside strings and character constants. */ 13301#define FOO(x) 'x' 13302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13303 13304int test (int i, double x); 13305struct s1 {int (*f) (int a);}; 13306struct s2 {int (*f) (double a);}; 13307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13308int argc; 13309char **argv; 13310int 13311main () 13312{ 13313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13314 ; 13315 return 0; 13316} 13317_ACEOF 13318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13320do 13321 CC="$ac_save_CC $ac_arg" 13322 if ac_fn_c_try_compile "$LINENO"; then : 13323 ac_cv_prog_cc_c89=$ac_arg 13324fi 13325rm -f core conftest.err conftest.$ac_objext 13326 test "x$ac_cv_prog_cc_c89" != "xno" && break 13327done 13328rm -f conftest.$ac_ext 13329CC=$ac_save_CC 13330 13331fi 13332# AC_CACHE_VAL 13333case "x$ac_cv_prog_cc_c89" in 13334 x) 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13336$as_echo "none needed" >&6; } ;; 13337 xno) 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13339$as_echo "unsupported" >&6; } ;; 13340 *) 13341 CC="$CC $ac_cv_prog_cc_c89" 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13343$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13344esac 13345if test "x$ac_cv_prog_cc_c89" != xno; then : 13346 13347fi 13348 13349ac_ext=c 13350ac_cpp='$CPP $CPPFLAGS' 13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13353ac_compiler_gnu=$ac_cv_c_compiler_gnu 13354 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 13356$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 13357if ${ac_cv_prog_cc_c99+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359else 13360 ac_cv_prog_cc_c99=no 13361ac_save_CC=$CC 13362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13363/* end confdefs.h. */ 13364#include <stdarg.h> 13365#include <stdbool.h> 13366#include <stdlib.h> 13367#include <wchar.h> 13368#include <stdio.h> 13369 13370// Check varargs macros. These examples are taken from C99 6.10.3.5. 13371#define debug(...) fprintf (stderr, __VA_ARGS__) 13372#define showlist(...) puts (#__VA_ARGS__) 13373#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 13374static void 13375test_varargs_macros (void) 13376{ 13377 int x = 1234; 13378 int y = 5678; 13379 debug ("Flag"); 13380 debug ("X = %d\n", x); 13381 showlist (The first, second, and third items.); 13382 report (x>y, "x is %d but y is %d", x, y); 13383} 13384 13385// Check long long types. 13386#define BIG64 18446744073709551615ull 13387#define BIG32 4294967295ul 13388#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 13389#if !BIG_OK 13390 your preprocessor is broken; 13391#endif 13392#if BIG_OK 13393#else 13394 your preprocessor is broken; 13395#endif 13396static long long int bignum = -9223372036854775807LL; 13397static unsigned long long int ubignum = BIG64; 13398 13399struct incomplete_array 13400{ 13401 int datasize; 13402 double data[]; 13403}; 13404 13405struct named_init { 13406 int number; 13407 const wchar_t *name; 13408 double average; 13409}; 13410 13411typedef const char *ccp; 13412 13413static inline int 13414test_restrict (ccp restrict text) 13415{ 13416 // See if C++-style comments work. 13417 // Iterate through items via the restricted pointer. 13418 // Also check for declarations in for loops. 13419 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 13420 continue; 13421 return 0; 13422} 13423 13424// Check varargs and va_copy. 13425static void 13426test_varargs (const char *format, ...) 13427{ 13428 va_list args; 13429 va_start (args, format); 13430 va_list args_copy; 13431 va_copy (args_copy, args); 13432 13433 const char *str; 13434 int number; 13435 float fnumber; 13436 13437 while (*format) 13438 { 13439 switch (*format++) 13440 { 13441 case 's': // string 13442 str = va_arg (args_copy, const char *); 13443 break; 13444 case 'd': // int 13445 number = va_arg (args_copy, int); 13446 break; 13447 case 'f': // float 13448 fnumber = va_arg (args_copy, double); 13449 break; 13450 default: 13451 break; 13452 } 13453 } 13454 va_end (args_copy); 13455 va_end (args); 13456} 13457 13458int 13459main () 13460{ 13461 13462 // Check bool. 13463 _Bool success = false; 13464 13465 // Check restrict. 13466 if (test_restrict ("String literal") == 0) 13467 success = true; 13468 char *restrict newvar = "Another string"; 13469 13470 // Check varargs. 13471 test_varargs ("s, d' f .", "string", 65, 34.234); 13472 test_varargs_macros (); 13473 13474 // Check flexible array members. 13475 struct incomplete_array *ia = 13476 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 13477 ia->datasize = 10; 13478 for (int i = 0; i < ia->datasize; ++i) 13479 ia->data[i] = i * 1.234; 13480 13481 // Check named initializers. 13482 struct named_init ni = { 13483 .number = 34, 13484 .name = L"Test wide string", 13485 .average = 543.34343, 13486 }; 13487 13488 ni.number = 58; 13489 13490 int dynamic_array[ni.number]; 13491 dynamic_array[ni.number - 1] = 543; 13492 13493 // work around unused variable warnings 13494 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 13495 || dynamic_array[ni.number - 1] != 543); 13496 13497 ; 13498 return 0; 13499} 13500_ACEOF 13501for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 13502do 13503 CC="$ac_save_CC $ac_arg" 13504 if ac_fn_c_try_compile "$LINENO"; then : 13505 ac_cv_prog_cc_c99=$ac_arg 13506fi 13507rm -f core conftest.err conftest.$ac_objext 13508 test "x$ac_cv_prog_cc_c99" != "xno" && break 13509done 13510rm -f conftest.$ac_ext 13511CC=$ac_save_CC 13512 13513fi 13514# AC_CACHE_VAL 13515case "x$ac_cv_prog_cc_c99" in 13516 x) 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13518$as_echo "none needed" >&6; } ;; 13519 xno) 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13521$as_echo "unsupported" >&6; } ;; 13522 *) 13523 CC="$CC $ac_cv_prog_cc_c99" 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13525$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 13526esac 13527if test "x$ac_cv_prog_cc_c99" != xno; then : 13528 13529fi 13530 13531 13532 13533# 13534# OS dependent CC flags 13535# 13536case "$host" in 13537 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or 13538 # -D_XOPEN_SOURCE_EXTENDED. 13539 *-dec-osf*) 13540 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET" 13541 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET" 13542 ;; 13543 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros 13544 *-hp-hpux*) 13545 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED" 13546 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 13547 LIBS="-lxnet $LIBS" 13548 ;; 13549 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros 13550 *-solaris*) 13551 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__" 13552 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__" 13553 ;; 13554 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides 13555 # parts of the IPv6 Advanced Socket API as a result. This is stupid 13556 # as it breaks how the two halves (Basic and Advanced) of the IPv6 13557 # Socket API were designed to be used but we have to live with it. 13558 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. 13559 *-linux* | *-kfreebsd*-gnu*) 13560 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" 13561 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 13562 ;; 13563 # 13564 # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use. 13565 # Setting this is sufficient to select the correct behavior for BIND 9. 13566 # 13567 *-darwin*) 13568 STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542" 13569 CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542" 13570 ;; 13571esac 13572 13573# 13574# CCNOOPT defaults to -O0 on gcc and disables optimization when is last 13575# 13576if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then 13577 CCNOOPT="-O0" 13578fi 13579 13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13581$as_echo_n "checking for ANSI C header files... " >&6; } 13582if ${ac_cv_header_stdc+:} false; then : 13583 $as_echo_n "(cached) " >&6 13584else 13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13586/* end confdefs.h. */ 13587#include <stdlib.h> 13588#include <stdarg.h> 13589#include <string.h> 13590#include <float.h> 13591 13592int 13593main () 13594{ 13595 13596 ; 13597 return 0; 13598} 13599_ACEOF 13600if ac_fn_c_try_compile "$LINENO"; then : 13601 ac_cv_header_stdc=yes 13602else 13603 ac_cv_header_stdc=no 13604fi 13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13606 13607if test $ac_cv_header_stdc = yes; then 13608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13610/* end confdefs.h. */ 13611#include <string.h> 13612 13613_ACEOF 13614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13615 $EGREP "memchr" >/dev/null 2>&1; then : 13616 13617else 13618 ac_cv_header_stdc=no 13619fi 13620rm -f conftest* 13621 13622fi 13623 13624if test $ac_cv_header_stdc = yes; then 13625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628#include <stdlib.h> 13629 13630_ACEOF 13631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13632 $EGREP "free" >/dev/null 2>&1; then : 13633 13634else 13635 ac_cv_header_stdc=no 13636fi 13637rm -f conftest* 13638 13639fi 13640 13641if test $ac_cv_header_stdc = yes; then 13642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13643 if test "$cross_compiling" = yes; then : 13644 : 13645else 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648#include <ctype.h> 13649#include <stdlib.h> 13650#if ((' ' & 0x0FF) == 0x020) 13651# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13652# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13653#else 13654# define ISLOWER(c) \ 13655 (('a' <= (c) && (c) <= 'i') \ 13656 || ('j' <= (c) && (c) <= 'r') \ 13657 || ('s' <= (c) && (c) <= 'z')) 13658# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13659#endif 13660 13661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13662int 13663main () 13664{ 13665 int i; 13666 for (i = 0; i < 256; i++) 13667 if (XOR (islower (i), ISLOWER (i)) 13668 || toupper (i) != TOUPPER (i)) 13669 return 2; 13670 return 0; 13671} 13672_ACEOF 13673if ac_fn_c_try_run "$LINENO"; then : 13674 13675else 13676 ac_cv_header_stdc=no 13677fi 13678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13679 conftest.$ac_objext conftest.beam conftest.$ac_ext 13680fi 13681 13682fi 13683fi 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13685$as_echo "$ac_cv_header_stdc" >&6; } 13686if test $ac_cv_header_stdc = yes; then 13687 13688$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13689 13690fi 13691 13692 13693for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h 13694do : 13695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13697#ifdef HAVE_SYS_PARAM_H 13698# include <sys/param.h> 13699#endif 13700#ifdef HAVE_SYS_SOCKET_H 13701# include <sys/socket.h> 13702#endif 13703 13704" 13705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13706 cat >>confdefs.h <<_ACEOF 13707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13708_ACEOF 13709 13710fi 13711 13712done 13713 13714 13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13716$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13717if ${ac_cv_c_const+:} false; then : 13718 $as_echo_n "(cached) " >&6 13719else 13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13721/* end confdefs.h. */ 13722 13723int 13724main () 13725{ 13726 13727#ifndef __cplusplus 13728 /* Ultrix mips cc rejects this sort of thing. */ 13729 typedef int charset[2]; 13730 const charset cs = { 0, 0 }; 13731 /* SunOS 4.1.1 cc rejects this. */ 13732 char const *const *pcpcc; 13733 char **ppc; 13734 /* NEC SVR4.0.2 mips cc rejects this. */ 13735 struct point {int x, y;}; 13736 static struct point const zero = {0,0}; 13737 /* AIX XL C 1.02.0.0 rejects this. 13738 It does not let you subtract one const X* pointer from another in 13739 an arm of an if-expression whose if-part is not a constant 13740 expression */ 13741 const char *g = "string"; 13742 pcpcc = &g + (g ? g-g : 0); 13743 /* HPUX 7.0 cc rejects these. */ 13744 ++pcpcc; 13745 ppc = (char**) pcpcc; 13746 pcpcc = (char const *const *) ppc; 13747 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13748 char tx; 13749 char *t = &tx; 13750 char const *s = 0 ? (char *) 0 : (char const *) 0; 13751 13752 *t++ = 0; 13753 if (s) return 0; 13754 } 13755 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13756 int x[] = {25, 17}; 13757 const int *foo = &x[0]; 13758 ++foo; 13759 } 13760 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13761 typedef const int *iptr; 13762 iptr p = 0; 13763 ++p; 13764 } 13765 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13766 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13767 struct s { int j; const int *ap[3]; } bx; 13768 struct s *b = &bx; b->j = 5; 13769 } 13770 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13771 const int foo = 10; 13772 if (!foo) return 0; 13773 } 13774 return !cs[0] && !zero.x; 13775#endif 13776 13777 ; 13778 return 0; 13779} 13780_ACEOF 13781if ac_fn_c_try_compile "$LINENO"; then : 13782 ac_cv_c_const=yes 13783else 13784 ac_cv_c_const=no 13785fi 13786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13787fi 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13789$as_echo "$ac_cv_c_const" >&6; } 13790if test $ac_cv_c_const = no; then 13791 13792$as_echo "#define const /**/" >>confdefs.h 13793 13794fi 13795 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13797$as_echo_n "checking for inline... " >&6; } 13798if ${ac_cv_c_inline+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800else 13801 ac_cv_c_inline=no 13802for ac_kw in inline __inline__ __inline; do 13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13804/* end confdefs.h. */ 13805#ifndef __cplusplus 13806typedef int foo_t; 13807static $ac_kw foo_t static_foo () {return 0; } 13808$ac_kw foo_t foo () {return 0; } 13809#endif 13810 13811_ACEOF 13812if ac_fn_c_try_compile "$LINENO"; then : 13813 ac_cv_c_inline=$ac_kw 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13816 test "$ac_cv_c_inline" != no && break 13817done 13818 13819fi 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13821$as_echo "$ac_cv_c_inline" >&6; } 13822 13823case $ac_cv_c_inline in 13824 inline | yes) ;; 13825 *) 13826 case $ac_cv_c_inline in 13827 no) ac_val=;; 13828 *) ac_val=$ac_cv_c_inline;; 13829 esac 13830 cat >>confdefs.h <<_ACEOF 13831#ifndef __cplusplus 13832#define inline $ac_val 13833#endif 13834_ACEOF 13835 ;; 13836esac 13837 13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 13839$as_echo_n "checking for working volatile... " >&6; } 13840if ${ac_cv_c_volatile+:} false; then : 13841 $as_echo_n "(cached) " >&6 13842else 13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13844/* end confdefs.h. */ 13845 13846int 13847main () 13848{ 13849 13850volatile int x; 13851int * volatile y = (int *) 0; 13852return !x && !y; 13853 ; 13854 return 0; 13855} 13856_ACEOF 13857if ac_fn_c_try_compile "$LINENO"; then : 13858 ac_cv_c_volatile=yes 13859else 13860 ac_cv_c_volatile=no 13861fi 13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13863fi 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 13865$as_echo "$ac_cv_c_volatile" >&6; } 13866if test $ac_cv_c_volatile = no; then 13867 13868$as_echo "#define volatile /**/" >>confdefs.h 13869 13870fi 13871 13872ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" 13873if test "x$ac_cv_func_sysctlbyname" = xyes; then : 13874 $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 13875 13876fi 13877 13878 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 13880$as_echo_n "checking for flexible array members... " >&6; } 13881if ${ac_cv_c_flexmember+:} false; then : 13882 $as_echo_n "(cached) " >&6 13883else 13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13885/* end confdefs.h. */ 13886#include <stdlib.h> 13887 #include <stdio.h> 13888 #include <stddef.h> 13889 struct s { int n; double d[]; }; 13890int 13891main () 13892{ 13893int m = getchar (); 13894 struct s *p = malloc (offsetof (struct s, d) 13895 + m * sizeof (double)); 13896 p->d[0] = 0.0; 13897 return p->d != (double *) NULL; 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_c_try_compile "$LINENO"; then : 13903 ac_cv_c_flexmember=yes 13904else 13905 ac_cv_c_flexmember=no 13906fi 13907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13908fi 13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 13910$as_echo "$ac_cv_c_flexmember" >&6; } 13911 if test $ac_cv_c_flexmember = yes; then 13912 13913$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 13914 13915 else 13916 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 13917 13918 fi 13919 13920 13921# 13922# Check for the existence of mmap to enable the fast format zones 13923# 13924for ac_func in mmap 13925do : 13926 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 13927if test "x$ac_cv_func_mmap" = xyes; then : 13928 cat >>confdefs.h <<_ACEOF 13929#define HAVE_MMAP 1 13930_ACEOF 13931 13932fi 13933done 13934 13935 13936# 13937# Older versions of HP/UX don't define seteuid() and setegid() 13938# 13939for ac_func in seteuid setresuid 13940do : 13941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13943if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13944 cat >>confdefs.h <<_ACEOF 13945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13946_ACEOF 13947 13948fi 13949done 13950 13951for ac_func in setegid setresgid 13952do : 13953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13955if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13956 cat >>confdefs.h <<_ACEOF 13957#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13958_ACEOF 13959 13960fi 13961done 13962 13963 13964# BSDI doesn't have ftello fseeko 13965for ac_func in ftello fseeko 13966do : 13967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13969if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13970 cat >>confdefs.h <<_ACEOF 13971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13972_ACEOF 13973 13974fi 13975done 13976 13977 13978# 13979# UnixWare 7.1.1 with the feature supplement to the UDK compiler 13980# is reported to not support "static inline" (RT #1212). 13981# 13982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5 13983$as_echo_n "checking for static inline breakage... " >&6; } 13984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13985/* end confdefs.h. */ 13986 13987 static inline int foo1() { 13988 return 0; 13989 } 13990 13991 static inline int foo2() { 13992 return foo1(); 13993 } 13994 13995int 13996main () 13997{ 13998foo1(); 13999 ; 14000 return 0; 14001} 14002_ACEOF 14003if ac_fn_c_try_compile "$LINENO"; then : 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14005$as_echo "no" >&6; } 14006else 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14008$as_echo "yes" >&6; } 14009 14010$as_echo "#define inline /**/" >>confdefs.h 14011 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14014 14015ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14016if test "x$ac_cv_type_size_t" = xyes; then : 14017 14018else 14019 14020cat >>confdefs.h <<_ACEOF 14021#define size_t unsigned int 14022_ACEOF 14023 14024fi 14025 14026ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14027if test "x$ac_cv_type_ssize_t" = xyes; then : 14028 14029else 14030 14031cat >>confdefs.h <<_ACEOF 14032#define ssize_t int 14033_ACEOF 14034 14035fi 14036 14037 14038 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14039if test "x$ac_cv_type_uintptr_t" = xyes; then : 14040 14041$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 14042 14043else 14044 for ac_type in 'unsigned int' 'unsigned long int' \ 14045 'unsigned long long int'; do 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047/* end confdefs.h. */ 14048$ac_includes_default 14049int 14050main () 14051{ 14052static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 14053test_array [0] = 0; 14054return test_array [0]; 14055 14056 ; 14057 return 0; 14058} 14059_ACEOF 14060if ac_fn_c_try_compile "$LINENO"; then : 14061 14062cat >>confdefs.h <<_ACEOF 14063#define uintptr_t $ac_type 14064_ACEOF 14065 14066 ac_type= 14067fi 14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14069 test -z "$ac_type" && break 14070 done 14071fi 14072 14073 14074 14075ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 14076#include <sys/types.h> 14077#include <sys/socket.h> 14078 14079" 14080if test "x$ac_cv_type_socklen_t" = xyes; then : 14081 $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h 14082 14083else 14084 14085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14086/* end confdefs.h. */ 14087 14088#include <sys/types.h> 14089#include <sys/socket.h> 14090int getsockname(int, struct sockaddr *, size_t *); 14091 14092int 14093main () 14094{ 14095 14096 ; 14097 return 0; 14098} 14099_ACEOF 14100if ac_fn_c_try_compile "$LINENO"; then : 14101 $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h 14102 14103else 14104 $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h 14105 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108 14109fi 14110 14111 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14113$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14114if ${ac_cv_header_time+:} false; then : 14115 $as_echo_n "(cached) " >&6 14116else 14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14118/* end confdefs.h. */ 14119#include <sys/types.h> 14120#include <sys/time.h> 14121#include <time.h> 14122 14123int 14124main () 14125{ 14126if ((struct tm *) 0) 14127return 0; 14128 ; 14129 return 0; 14130} 14131_ACEOF 14132if ac_fn_c_try_compile "$LINENO"; then : 14133 ac_cv_header_time=yes 14134else 14135 ac_cv_header_time=no 14136fi 14137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14138fi 14139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14140$as_echo "$ac_cv_header_time" >&6; } 14141if test $ac_cv_header_time = yes; then 14142 14143$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14144 14145fi 14146 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 14148$as_echo_n "checking for long long... " >&6; } 14149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14150/* end confdefs.h. */ 14151 14152int 14153main () 14154{ 14155long long i = 0; return (0); 14156 ; 14157 return 0; 14158} 14159_ACEOF 14160if ac_fn_c_try_compile "$LINENO"; then : 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14162$as_echo "yes" >&6; } 14163 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1" 14164else 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14166$as_echo "no" >&6; } 14167 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG" 14168fi 14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14170 14171 14172# 14173# check for uname library routine 14174# 14175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5 14176$as_echo_n "checking for uname... " >&6; } 14177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14178/* end confdefs.h. */ 14179 14180#include <sys/utsname.h> 14181#include <stdio.h> 14182 14183int 14184main () 14185{ 14186 14187struct utsname uts; 14188uname(&uts); 14189printf("running on %s %s %s for %s\n", 14190 uts.sysname, uts.release, uts.version, uts.machine); 14191 14192 ; 14193 return 0; 14194} 14195_ACEOF 14196if ac_fn_c_try_compile "$LINENO"; then : 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14198$as_echo "yes" >&6; } 14199 $as_echo "#define HAVE_UNAME 1" >>confdefs.h 14200 14201else 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14203$as_echo "no" >&6; } 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5 14205$as_echo "$as_me: WARNING: uname is not correctly supported" >&2;} 14206fi 14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14208 14209# 14210# check for GCC noreturn attribute 14211# 14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5 14213$as_echo_n "checking for GCC noreturn attribute... " >&6; } 14214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14215/* end confdefs.h. */ 14216 14217int 14218main () 14219{ 14220void foo() __attribute__((noreturn)); 14221 ; 14222 return 0; 14223} 14224_ACEOF 14225if ac_fn_c_try_compile "$LINENO"; then : 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14227$as_echo "yes" >&6; } 14228 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" 14229 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))" 14230else 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14232$as_echo "no" >&6; } 14233 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" 14234 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST" 14235fi 14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14237 14238 14239 14240# 14241# check if we have lifconf 14242# 14243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5 14244$as_echo_n "checking for struct lifconf... " >&6; } 14245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14246/* end confdefs.h. */ 14247 14248#include <sys/types.h> 14249#include <sys/socket.h> 14250#include <net/if.h> 14251 14252int 14253main () 14254{ 14255 14256struct lifconf lifconf; 14257lifconf.lifc_len = 0; 14258 14259 14260 ; 14261 return 0; 14262} 14263_ACEOF 14264if ac_fn_c_try_compile "$LINENO"; then : 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14266$as_echo "yes" >&6; } 14267 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1" 14268else 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14270$as_echo "no" >&6; } 14271 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF" 14272fi 14273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14274 14275 14276# 14277# check if we have kqueue 14278# 14279# [pairwise: --enable-kqueue, --disable-kqueue] 14280# Check whether --enable-kqueue was given. 14281if test "${enable_kqueue+set}" = set; then : 14282 enableval=$enable_kqueue; want_kqueue="$enableval" 14283else 14284 want_kqueue="yes" 14285fi 14286 14287case $want_kqueue in 14288yes) 14289 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14290if test "x$ac_cv_func_kqueue" = xyes; then : 14291 ac_cv_have_kqueue=yes 14292else 14293 ac_cv_have_kqueue=no 14294fi 14295 14296 case $ac_cv_have_kqueue in 14297 yes) 14298 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1" 14299 ;; 14300 *) 14301 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE" 14302 ;; 14303 esac 14304 ;; 14305*) 14306 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE" 14307 ;; 14308esac 14309 14310 14311# 14312# check if we have epoll. Linux kernel 2.4 has epoll_create() which fails, 14313# so we need to try running the code, not just test its existence. 14314# 14315# [pairwise: --enable-epoll, --disable-epoll] 14316# Check whether --enable-epoll was given. 14317if test "${enable_epoll+set}" = set; then : 14318 enableval=$enable_epoll; want_epoll="$enableval" 14319else 14320 want_epoll="auto" 14321fi 14322 14323case $want_epoll in 14324auto) 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5 14326$as_echo_n "checking epoll support... " >&6; } 14327 if test "$cross_compiling" = yes; then : 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14329$as_echo "no" >&6; } 14330 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 14331else 14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14333/* end confdefs.h. */ 14334 14335#include <sys/epoll.h> 14336int main() { 14337 if (epoll_create(1) < 0) 14338 return (1); 14339 return (0); 14340} 14341 14342_ACEOF 14343if ac_fn_c_try_run "$LINENO"; then : 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14345$as_echo "yes" >&6; } 14346 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1" 14347else 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14349$as_echo "no" >&6; } 14350 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 14351fi 14352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14353 conftest.$ac_objext conftest.beam conftest.$ac_ext 14354fi 14355 14356 ;; 14357yes) 14358 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1" 14359 ;; 14360*) 14361 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 14362 ;; 14363esac 14364 14365 14366# 14367# check if we support /dev/poll 14368# 14369# [pairwise: --enable-devpoll, --disable-devpoll] 14370# Check whether --enable-devpoll was given. 14371if test "${enable_devpoll+set}" = set; then : 14372 enableval=$enable_devpoll; want_devpoll="$enableval" 14373else 14374 want_devpoll="yes" 14375fi 14376 14377case $want_devpoll in 14378yes) 14379 for ac_header in sys/devpoll.h devpoll.h 14380do : 14381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14382ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14383if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14384 cat >>confdefs.h <<_ACEOF 14385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14386_ACEOF 14387 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1" 14388 14389else 14390 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL" 14391 14392fi 14393 14394done 14395 14396 ;; 14397*) 14398 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL" 14399 ;; 14400esac 14401 14402 14403# 14404# check if we need to #include sys/select.h explicitly 14405# 14406case $ac_cv_header_unistd_h in 14407yes) 14408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5 14409$as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; } 14410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411/* end confdefs.h. */ 14412 14413#include <sys/types.h> /* Ultrix */ 14414#include <unistd.h> 14415int 14416main () 14417{ 14418fd_set read_set; return (0); 14419 ; 14420 return 0; 14421} 14422_ACEOF 14423if ac_fn_c_try_compile "$LINENO"; then : 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14425$as_echo "yes" >&6; } 14426 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 14427 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH" 14428else 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14430$as_echo "no" >&6; } 14431 case $ac_cv_header_sys_select_h in 14432 yes) 14433 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 14434 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1" 14435 ;; 14436 no) 14437 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5 14438 ;; 14439 esac 14440 14441fi 14442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14443 ;; 14444no) 14445 case $ac_cv_header_sys_select_h in 14446 yes) 14447 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 14448 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1" 14449 ;; 14450 no) 14451 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5 14452 ;; 14453 esac 14454 ;; 14455esac 14456 14457 14458 14459# 14460# Find the machine's endian flavor. 14461# 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14463$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14464if ${ac_cv_c_bigendian+:} false; then : 14465 $as_echo_n "(cached) " >&6 14466else 14467 ac_cv_c_bigendian=unknown 14468 # See if we're dealing with a universal compiler. 14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14470/* end confdefs.h. */ 14471#ifndef __APPLE_CC__ 14472 not a universal capable compiler 14473 #endif 14474 typedef int dummy; 14475 14476_ACEOF 14477if ac_fn_c_try_compile "$LINENO"; then : 14478 14479 # Check for potential -arch flags. It is not universal unless 14480 # there are at least two -arch flags with different values. 14481 ac_arch= 14482 ac_prev= 14483 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14484 if test -n "$ac_prev"; then 14485 case $ac_word in 14486 i?86 | x86_64 | ppc | ppc64) 14487 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14488 ac_arch=$ac_word 14489 else 14490 ac_cv_c_bigendian=universal 14491 break 14492 fi 14493 ;; 14494 esac 14495 ac_prev= 14496 elif test "x$ac_word" = "x-arch"; then 14497 ac_prev=arch 14498 fi 14499 done 14500fi 14501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14502 if test $ac_cv_c_bigendian = unknown; then 14503 # See if sys/param.h defines the BYTE_ORDER macro. 14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506#include <sys/types.h> 14507 #include <sys/param.h> 14508 14509int 14510main () 14511{ 14512#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14513 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14514 && LITTLE_ENDIAN) 14515 bogus endian macros 14516 #endif 14517 14518 ; 14519 return 0; 14520} 14521_ACEOF 14522if ac_fn_c_try_compile "$LINENO"; then : 14523 # It does; now see whether it defined to BIG_ENDIAN or not. 14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14525/* end confdefs.h. */ 14526#include <sys/types.h> 14527 #include <sys/param.h> 14528 14529int 14530main () 14531{ 14532#if BYTE_ORDER != BIG_ENDIAN 14533 not big endian 14534 #endif 14535 14536 ; 14537 return 0; 14538} 14539_ACEOF 14540if ac_fn_c_try_compile "$LINENO"; then : 14541 ac_cv_c_bigendian=yes 14542else 14543 ac_cv_c_bigendian=no 14544fi 14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14546fi 14547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14548 fi 14549 if test $ac_cv_c_bigendian = unknown; then 14550 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552/* end confdefs.h. */ 14553#include <limits.h> 14554 14555int 14556main () 14557{ 14558#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14559 bogus endian macros 14560 #endif 14561 14562 ; 14563 return 0; 14564} 14565_ACEOF 14566if ac_fn_c_try_compile "$LINENO"; then : 14567 # It does; now see whether it defined to _BIG_ENDIAN or not. 14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14569/* end confdefs.h. */ 14570#include <limits.h> 14571 14572int 14573main () 14574{ 14575#ifndef _BIG_ENDIAN 14576 not big endian 14577 #endif 14578 14579 ; 14580 return 0; 14581} 14582_ACEOF 14583if ac_fn_c_try_compile "$LINENO"; then : 14584 ac_cv_c_bigendian=yes 14585else 14586 ac_cv_c_bigendian=no 14587fi 14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14591 fi 14592 if test $ac_cv_c_bigendian = unknown; then 14593 # Compile a test program. 14594 if test "$cross_compiling" = yes; then : 14595 # Try to guess by grepping values from an object file. 14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598short int ascii_mm[] = 14599 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14600 short int ascii_ii[] = 14601 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14602 int use_ascii (int i) { 14603 return ascii_mm[i] + ascii_ii[i]; 14604 } 14605 short int ebcdic_ii[] = 14606 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14607 short int ebcdic_mm[] = 14608 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14609 int use_ebcdic (int i) { 14610 return ebcdic_mm[i] + ebcdic_ii[i]; 14611 } 14612 extern int foo; 14613 14614int 14615main () 14616{ 14617return use_ascii (foo) == use_ebcdic (foo); 14618 ; 14619 return 0; 14620} 14621_ACEOF 14622if ac_fn_c_try_compile "$LINENO"; then : 14623 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14624 ac_cv_c_bigendian=yes 14625 fi 14626 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14627 if test "$ac_cv_c_bigendian" = unknown; then 14628 ac_cv_c_bigendian=no 14629 else 14630 # finding both strings is unlikely to happen, but who knows? 14631 ac_cv_c_bigendian=unknown 14632 fi 14633 fi 14634fi 14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14636else 14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14638/* end confdefs.h. */ 14639$ac_includes_default 14640int 14641main () 14642{ 14643 14644 /* Are we little or big endian? From Harbison&Steele. */ 14645 union 14646 { 14647 long int l; 14648 char c[sizeof (long int)]; 14649 } u; 14650 u.l = 1; 14651 return u.c[sizeof (long int) - 1] == 1; 14652 14653 ; 14654 return 0; 14655} 14656_ACEOF 14657if ac_fn_c_try_run "$LINENO"; then : 14658 ac_cv_c_bigendian=no 14659else 14660 ac_cv_c_bigendian=yes 14661fi 14662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14663 conftest.$ac_objext conftest.beam conftest.$ac_ext 14664fi 14665 14666 fi 14667fi 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14669$as_echo "$ac_cv_c_bigendian" >&6; } 14670 case $ac_cv_c_bigendian in #( 14671 yes) 14672 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14673;; #( 14674 no) 14675 ;; #( 14676 universal) 14677 14678$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14679 14680 ;; #( 14681 *) 14682 as_fn_error $? "unknown endianness 14683 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14684 esac 14685 14686 14687# 14688# GeoIP support? 14689# 14690geoip2_default="no" 14691 14692# [pairwise: --with-geoip --without-geoip2, --without-geoip --with-geoip2=auto, --without-geoip --with-geoip2=yes, --without-geoip --without-geoip2] 14693 14694# Check whether --with-geoip was given. 14695if test "${with_geoip+set}" = set; then : 14696 withval=$with_geoip; 14697 use_geoip="$withval" 14698 geoip2_default="no" 14699 14700else 14701 use_geoip="no" 14702fi 14703 14704 14705# [pairwise: skip] 14706 14707# Check whether --with-geoip2 was given. 14708if test "${with_geoip2+set}" = set; then : 14709 withval=$with_geoip2; 14710else 14711 with_geoip2="$geoip2_default" 14712fi 14713 14714 14715# specifying both --with-geoip and --with-geoip2 is an error. 14716if test "no" != "$with_geoip2" && test "no" != "$use_geoip"; then : 14717 as_fn_error $? "--with-geoip and --with-geoip2 are incompatible" "$LINENO" 5 14718fi 14719 14720GEOIP2LINKSRCS= 14721GEOIP2LINKOBJS= 14722case $with_geoip2 in #( 14723 no) : 14724 ;; #( 14725 auto) : 14726 14727pkg_failed=no 14728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 14729$as_echo_n "checking for libmaxminddb... " >&6; } 14730 14731if test -n "$MAXMINDDB_CFLAGS"; then 14732 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS" 14733 elif test -n "$PKG_CONFIG"; then 14734 if test -n "$PKG_CONFIG" && \ 14735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 14736 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 14737 ac_status=$? 14738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14739 test $ac_status = 0; }; then 14740 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 14741 test "x$?" != "x0" && pkg_failed=yes 14742else 14743 pkg_failed=yes 14744fi 14745 else 14746 pkg_failed=untried 14747fi 14748if test -n "$MAXMINDDB_LIBS"; then 14749 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS" 14750 elif test -n "$PKG_CONFIG"; then 14751 if test -n "$PKG_CONFIG" && \ 14752 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 14753 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 14754 ac_status=$? 14755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14756 test $ac_status = 0; }; then 14757 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 14758 test "x$?" != "x0" && pkg_failed=yes 14759else 14760 pkg_failed=yes 14761fi 14762 else 14763 pkg_failed=untried 14764fi 14765 14766 14767 14768if test $pkg_failed = yes; then 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14770$as_echo "no" >&6; } 14771 14772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14773 _pkg_short_errors_supported=yes 14774else 14775 _pkg_short_errors_supported=no 14776fi 14777 if test $_pkg_short_errors_supported = yes; then 14778 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 14779 else 14780 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 14781 fi 14782 # Put the nasty error message in config.log where it belongs 14783 echo "$MAXMINDDB_PKG_ERRORS" >&5 14784 14785 : 14786elif test $pkg_failed = untried; then 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14788$as_echo "no" >&6; } 14789 : 14790else 14791 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS 14792 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14794$as_echo "yes" >&6; } 14795 14796$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h 14797 14798 14799if test -n "$MAXMINDDB_PREFIX"; then 14800 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX" 14801 elif test -n "$PKG_CONFIG"; then 14802 if test -n "$PKG_CONFIG" && \ 14803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 14804 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 14805 ac_status=$? 14806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14807 test $ac_status = 0; }; then 14808 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null` 14809 test "x$?" != "x0" && pkg_failed=yes 14810else 14811 pkg_failed=yes 14812fi 14813 else 14814 pkg_failed=untried 14815fi 14816MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX 14817 14818if test "x$MAXMINDDB_PREFIX" = x""; then : 14819 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5 14820fi 14821 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}' 14822 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}' 14823 14824fi ;; #( 14825 yes) : 14826 14827pkg_failed=no 14828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 14829$as_echo_n "checking for libmaxminddb... " >&6; } 14830 14831if test -n "$MAXMINDDB_CFLAGS"; then 14832 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS" 14833 elif test -n "$PKG_CONFIG"; then 14834 if test -n "$PKG_CONFIG" && \ 14835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 14836 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 14837 ac_status=$? 14838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14839 test $ac_status = 0; }; then 14840 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 14841 test "x$?" != "x0" && pkg_failed=yes 14842else 14843 pkg_failed=yes 14844fi 14845 else 14846 pkg_failed=untried 14847fi 14848if test -n "$MAXMINDDB_LIBS"; then 14849 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS" 14850 elif test -n "$PKG_CONFIG"; then 14851 if test -n "$PKG_CONFIG" && \ 14852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 14853 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 14854 ac_status=$? 14855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14856 test $ac_status = 0; }; then 14857 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 14858 test "x$?" != "x0" && pkg_failed=yes 14859else 14860 pkg_failed=yes 14861fi 14862 else 14863 pkg_failed=untried 14864fi 14865 14866 14867 14868if test $pkg_failed = yes; then 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14870$as_echo "no" >&6; } 14871 14872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14873 _pkg_short_errors_supported=yes 14874else 14875 _pkg_short_errors_supported=no 14876fi 14877 if test $_pkg_short_errors_supported = yes; then 14878 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 14879 else 14880 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 14881 fi 14882 # Put the nasty error message in config.log where it belongs 14883 echo "$MAXMINDDB_PKG_ERRORS" >&5 14884 14885 as_fn_error $? "Package requirements (libmaxminddb) were not met: 14886 14887$MAXMINDDB_PKG_ERRORS 14888 14889Consider adjusting the PKG_CONFIG_PATH environment variable if you 14890installed software in a non-standard prefix. 14891 14892Alternatively, you may set the environment variables MAXMINDDB_CFLAGS 14893and MAXMINDDB_LIBS to avoid the need to call pkg-config. 14894See the pkg-config man page for more details." "$LINENO" 5 14895elif test $pkg_failed = untried; then 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897$as_echo "no" >&6; } 14898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14900as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14901is in your PATH or set the PKG_CONFIG environment variable to the full 14902path to pkg-config. 14903 14904Alternatively, you may set the environment variables MAXMINDDB_CFLAGS 14905and MAXMINDDB_LIBS to avoid the need to call pkg-config. 14906See the pkg-config man page for more details. 14907 14908To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14909See \`config.log' for more details" "$LINENO" 5; } 14910else 14911 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS 14912 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14914$as_echo "yes" >&6; } 14915 14916$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h 14917 14918 14919if test -n "$MAXMINDDB_PREFIX"; then 14920 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX" 14921 elif test -n "$PKG_CONFIG"; then 14922 if test -n "$PKG_CONFIG" && \ 14923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 14924 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 14925 ac_status=$? 14926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14927 test $ac_status = 0; }; then 14928 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null` 14929 test "x$?" != "x0" && pkg_failed=yes 14930else 14931 pkg_failed=yes 14932fi 14933 else 14934 pkg_failed=untried 14935fi 14936MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX 14937 14938if test "x$MAXMINDDB_PREFIX" = x""; then : 14939 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5 14940fi 14941 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}' 14942 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}' 14943 14944fi ;; #( 14945 *) : 14946 # default 14947 14948 14949 CCASFLAGS_geoip2_ax_save_flags=$CCASFLAGS 14950 14951 14952 14953 CFLAGS_geoip2_ax_save_flags=$CFLAGS 14954 14955 14956 14957 CPPFLAGS_geoip2_ax_save_flags=$CPPFLAGS 14958 14959 14960 14961 CXXFLAGS_geoip2_ax_save_flags=$CXXFLAGS 14962 14963 14964 14965 ERLCFLAGS_geoip2_ax_save_flags=$ERLCFLAGS 14966 14967 14968 14969 FCFLAGS_geoip2_ax_save_flags=$FCFLAGS 14970 14971 14972 14973 FCLIBS_geoip2_ax_save_flags=$FCLIBS 14974 14975 14976 14977 FFLAGS_geoip2_ax_save_flags=$FFLAGS 14978 14979 14980 14981 FLIBS_geoip2_ax_save_flags=$FLIBS 14982 14983 14984 14985 GCJFLAGS_geoip2_ax_save_flags=$GCJFLAGS 14986 14987 14988 14989 JAVACFLAGS_geoip2_ax_save_flags=$JAVACFLAGS 14990 14991 14992 14993 LDFLAGS_geoip2_ax_save_flags=$LDFLAGS 14994 14995 14996 14997 LIBS_geoip2_ax_save_flags=$LIBS 14998 14999 15000 15001 OBJCFLAGS_geoip2_ax_save_flags=$OBJCFLAGS 15002 15003 15004 15005 OBJCXXFLAGS_geoip2_ax_save_flags=$OBJCXXFLAGS 15006 15007 15008 15009 UPCFLAGS_geoip2_ax_save_flags=$UPCFLAGS 15010 15011 15012 15013 VALAFLAGS_geoip2_ax_save_flags=$VALAFLAGS 15014 15015 15016 15017 MAXMINDDB_CFLAGS="-I$with_geoip2/include" 15018 MAXMINDDB_LIBS="-L$with_geoip2/lib" 15019 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS" 15020 LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS" 15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5 15022$as_echo_n "checking for library containing MMDB_open... " >&6; } 15023if ${ac_cv_search_MMDB_open+:} false; then : 15024 $as_echo_n "(cached) " >&6 15025else 15026 ac_func_search_save_LIBS=$LIBS 15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029 15030/* Override any GCC internal prototype to avoid an error. 15031 Use char because int might match the return type of a GCC 15032 builtin and then its argument prototype would still apply. */ 15033#ifdef __cplusplus 15034extern "C" 15035#endif 15036char MMDB_open (); 15037int 15038main () 15039{ 15040return MMDB_open (); 15041 ; 15042 return 0; 15043} 15044_ACEOF 15045for ac_lib in '' maxminddb; do 15046 if test -z "$ac_lib"; then 15047 ac_res="none required" 15048 else 15049 ac_res=-l$ac_lib 15050 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15051 fi 15052 if ac_fn_c_try_link "$LINENO"; then : 15053 ac_cv_search_MMDB_open=$ac_res 15054fi 15055rm -f core conftest.err conftest.$ac_objext \ 15056 conftest$ac_exeext 15057 if ${ac_cv_search_MMDB_open+:} false; then : 15058 break 15059fi 15060done 15061if ${ac_cv_search_MMDB_open+:} false; then : 15062 15063else 15064 ac_cv_search_MMDB_open=no 15065fi 15066rm conftest.$ac_ext 15067LIBS=$ac_func_search_save_LIBS 15068fi 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5 15070$as_echo "$ac_cv_search_MMDB_open" >&6; } 15071ac_res=$ac_cv_search_MMDB_open 15072if test "$ac_res" != no; then : 15073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15074 15075$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h 15076 15077 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}' 15078 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}' 15079 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open" 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&5 15081$as_echo "$as_me: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&6;} 15082 eval MAXMINDDB_PREFIX=\$$with_geoip2 15083 15084else 15085 as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5 15086fi 15087 15088 15089 CCASFLAGS=$CCASFLAGS_geoip2_ax_save_flags 15090 15091 15092 CFLAGS=$CFLAGS_geoip2_ax_save_flags 15093 15094 15095 CPPFLAGS=$CPPFLAGS_geoip2_ax_save_flags 15096 15097 15098 CXXFLAGS=$CXXFLAGS_geoip2_ax_save_flags 15099 15100 15101 ERLCFLAGS=$ERLCFLAGS_geoip2_ax_save_flags 15102 15103 15104 FCFLAGS=$FCFLAGS_geoip2_ax_save_flags 15105 15106 15107 FCLIBS=$FCLIBS_geoip2_ax_save_flags 15108 15109 15110 FFLAGS=$FFLAGS_geoip2_ax_save_flags 15111 15112 15113 FLIBS=$FLIBS_geoip2_ax_save_flags 15114 15115 15116 GCJFLAGS=$GCJFLAGS_geoip2_ax_save_flags 15117 15118 15119 JAVACFLAGS=$JAVACFLAGS_geoip2_ax_save_flags 15120 15121 15122 LDFLAGS=$LDFLAGS_geoip2_ax_save_flags 15123 15124 15125 LIBS=$LIBS_geoip2_ax_save_flags 15126 15127 15128 OBJCFLAGS=$OBJCFLAGS_geoip2_ax_save_flags 15129 15130 15131 OBJCXXFLAGS=$OBJCXXFLAGS_geoip2_ax_save_flags 15132 15133 15134 UPCFLAGS=$UPCFLAGS_geoip2_ax_save_flags 15135 15136 15137 VALAFLAGS=$VALAFLAGS_geoip2_ax_save_flags 15138 15139 15140 15141 ;; 15142esac 15143 15144 15145 15146 15147 15148 15149GEOIPLINKSRCS= 15150GEOIPLINKOBJS= 15151if test "yes" = "$use_geoip" 15152then 15153 for d in /usr /usr/local /opt/local 15154 do 15155 if test -f $d/include/GeoIP.h 15156 then 15157 use_geoip=$d 15158 break 15159 fi 15160 done 15161fi 15162 15163case "$use_geoip" in 15164 no|'') 15165 ;; 15166 *) 15167 if test -d "$use_geoip" -o -L "$use_geoip" 15168 then 15169 CFLAGS="$CFLAGS -I$use_geoip/include" 15170 CPPFLAGS="$CPPFLAGS -I$use_geoip/include" 15171 LIBS="$LIBS -L$use_geoip/lib" 15172 case "$host_os" in 15173 netbsd*|openbsd*|solaris*) 15174 LIBS="$LIBS -Wl,-rpath=$use_geoip/lib" 15175 ;; 15176 esac 15177 elif test "yes" = "$use_geoip" 15178 then 15179 as_fn_error $? "GeoIP path not found" "$LINENO" 5 15180 else 15181 as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5 15182 fi 15183 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" 15184if test "x$ac_cv_header_GeoIP_h" = xyes; then : 15185 15186else 15187 as_fn_error $? "GeoIP header file not found" "$LINENO" 5 15188 15189fi 15190 15191 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5 15193$as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; } 15194if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then : 15195 $as_echo_n "(cached) " >&6 15196else 15197 ac_func_search_save_LIBS=$LIBS 15198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199/* end confdefs.h. */ 15200 15201/* Override any GCC internal prototype to avoid an error. 15202 Use char because int might match the return type of a GCC 15203 builtin and then its argument prototype would still apply. */ 15204#ifdef __cplusplus 15205extern "C" 15206#endif 15207char GeoIP_id_by_addr_gl (); 15208int 15209main () 15210{ 15211return GeoIP_id_by_addr_gl (); 15212 ; 15213 return 0; 15214} 15215_ACEOF 15216for ac_lib in '' GeoIP; do 15217 if test -z "$ac_lib"; then 15218 ac_res="none required" 15219 else 15220 ac_res=-l$ac_lib 15221 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15222 fi 15223 if ac_fn_c_try_link "$LINENO"; then : 15224 ac_cv_search_GeoIP_id_by_addr_gl=$ac_res 15225fi 15226rm -f core conftest.err conftest.$ac_objext \ 15227 conftest$ac_exeext 15228 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then : 15229 break 15230fi 15231done 15232if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then : 15233 15234else 15235 ac_cv_search_GeoIP_id_by_addr_gl=no 15236fi 15237rm conftest.$ac_ext 15238LIBS=$ac_func_search_save_LIBS 15239fi 15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5 15241$as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; } 15242ac_res=$ac_cv_search_GeoIP_id_by_addr_gl 15243if test "$ac_res" != no; then : 15244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15245 15246else 15247 as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5 15248 15249fi 15250 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5 15252$as_echo_n "checking for library containing fabsf... " >&6; } 15253if ${ac_cv_search_fabsf+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 ac_func_search_save_LIBS=$LIBS 15257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15258/* end confdefs.h. */ 15259 15260/* Override any GCC internal prototype to avoid an error. 15261 Use char because int might match the return type of a GCC 15262 builtin and then its argument prototype would still apply. */ 15263#ifdef __cplusplus 15264extern "C" 15265#endif 15266char fabsf (); 15267int 15268main () 15269{ 15270return fabsf (); 15271 ; 15272 return 0; 15273} 15274_ACEOF 15275for ac_lib in '' m; do 15276 if test -z "$ac_lib"; then 15277 ac_res="none required" 15278 else 15279 ac_res=-l$ac_lib 15280 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15281 fi 15282 if ac_fn_c_try_link "$LINENO"; then : 15283 ac_cv_search_fabsf=$ac_res 15284fi 15285rm -f core conftest.err conftest.$ac_objext \ 15286 conftest$ac_exeext 15287 if ${ac_cv_search_fabsf+:} false; then : 15288 break 15289fi 15290done 15291if ${ac_cv_search_fabsf+:} false; then : 15292 15293else 15294 ac_cv_search_fabsf=no 15295fi 15296rm conftest.$ac_ext 15297LIBS=$ac_func_search_save_LIBS 15298fi 15299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5 15300$as_echo "$ac_cv_search_fabsf" >&6; } 15301ac_res=$ac_cv_search_fabsf 15302if test "$ac_res" != no; then : 15303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15304 15305else 15306 as_fn_error $? "Math library not found" "$LINENO" 5 15307 15308fi 15309 15310 15311$as_echo "#define HAVE_GEOIP 1" >>confdefs.h 15312 15313 GEOIPLINKSRCS='${GEOIPLINKSRCS}' 15314 GEOIPLINKOBJS='${GEOIPLINKOBJS}' 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5 15316$as_echo_n "checking for GeoIP support... " >&6; } 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15318$as_echo "yes" >&6; } 15319 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5 15321$as_echo_n "checking for GeoIP Country IPv6 support... " >&6; } 15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15323/* end confdefs.h. */ 15324 15325 #include <GeoIP.h> 15326 #include <netinet/in.h> 15327 15328int 15329main () 15330{ 15331 15332 struct in6_addr in6; 15333 GeoIP_country_name_by_ipnum_v6(NULL, in6); 15334 15335 ; 15336 return 0; 15337} 15338_ACEOF 15339if ac_fn_c_try_compile "$LINENO"; then : 15340 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15342$as_echo "yes" >&6; } 15343 15344$as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h 15345 15346 15347else 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15349$as_echo "no" >&6; } 15350 15351fi 15352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15353 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5 15355$as_echo_n "checking for GeoIP City IPv6 support... " >&6; } 15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15357/* end confdefs.h. */ 15358 15359 #include <GeoIP.h> 15360 #include <GeoIPCity.h> 15361 #include <netinet/in.h> 15362 15363int 15364main () 15365{ 15366 15367 struct in6_addr in6; 15368 int i = GEOIP_CITY_EDITION_REV0_V6; 15369 GeoIP_record_by_ipnum_v6(NULL, in6); 15370 15371 ; 15372 return 0; 15373} 15374_ACEOF 15375if ac_fn_c_try_compile "$LINENO"; then : 15376 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15378$as_echo "yes" >&6; } 15379 15380$as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h 15381 15382 15383else 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15385$as_echo "no" >&6; } 15386 15387fi 15388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15389 ;; 15390esac 15391 15392 15393 15394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5 15395$as_echo_n "checking for GSSAPI library... " >&6; } 15396 15397# [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi] 15398 15399# Check whether --with-gssapi was given. 15400if test "${with_gssapi+set}" = set; then : 15401 withval=$with_gssapi; use_gssapi="$withval" 15402else 15403 use_gssapi="auto" 15404fi 15405 15406 15407# first try using krb5-config, if that does not work then fall back to "yes" method. 15408 15409case "$use_gssapi" in 15410*/krb5-config|krb5-config) 15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5 15412$as_echo "trying $use_gssapi" >&6; } 15413 if test krb5-config = "$use_gssapi" 15414 then 15415 # Extract the first word of "$use_gssapi", so it can be a program name with args. 15416set dummy $use_gssapi; ac_word=$2 15417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15418$as_echo_n "checking for $ac_word... " >&6; } 15419if ${ac_cv_path_KRB5_CONFIG+:} false; then : 15420 $as_echo_n "(cached) " >&6 15421else 15422 case $KRB5_CONFIG in 15423 [\\/]* | ?:[\\/]*) 15424 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 15425 ;; 15426 *) 15427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15428for as_dir in $PATH 15429do 15430 IFS=$as_save_IFS 15431 test -z "$as_dir" && as_dir=. 15432 for ac_exec_ext in '' $ac_executable_extensions; do 15433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15434 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15436 break 2 15437 fi 15438done 15439 done 15440IFS=$as_save_IFS 15441 15442 ;; 15443esac 15444fi 15445KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 15446if test -n "$KRB5_CONFIG"; then 15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 15448$as_echo "$KRB5_CONFIG" >&6; } 15449else 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15451$as_echo "no" >&6; } 15452fi 15453 15454 15455 else 15456 KRB5_CONFIG="$use_gssapi" 15457 fi 15458 gssapi_cflags=`$KRB5_CONFIG --cflags gssapi` 15459 gssapi_libs=`$KRB5_CONFIG --libs gssapi` 15460 krb5_cflags=`$KRB5_CONFIG --cflags krb5` 15461 krb5_libs=`$KRB5_CONFIG --libs krb5` 15462 saved_cppflags="$CPPFLAGS" 15463 CPPFLAGS="$gssapi_cflags $krb5_cflags $CPPFLAGS" 15464 for ac_header in gssapi.h gssapi/gssapi.h 15465do : 15466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15467ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15468if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15469 cat >>confdefs.h <<_ACEOF 15470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15471_ACEOF 15472 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>" 15473fi 15474 15475done 15476 15477 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5 15479$as_echo "krb5-config: gssapi.h not found" >&6; } 15480 CPPFLAGS="$saved_cppflags" 15481 use_gssapi="yes" 15482 else 15483 for ac_header in krb5/krb5.h krb5.h 15484do : 15485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15486ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15487if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15488 cat >>confdefs.h <<_ACEOF 15489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15490_ACEOF 15491 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>" 15492fi 15493 15494done 15495 15496 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5 15498$as_echo "krb5-config: krb5.h not found" >&6; } 15499 CPPFLAGS="$saved_cppflags" 15500 use_gssapi="yes" 15501 else 15502 CPPFLAGS="$saved_cppflags" 15503 saved_libs="$LIBS" 15504 LIBS="$gssapi_libs $krb5_libs $LIBS" 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5 15506$as_echo_n "checking krb5-config linking as $LIBS... " >&6; } 15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508/* end confdefs.h. */ 15509 15510int 15511main () 15512{ 15513gss_acquire_cred();krb5_init_context() 15514 ; 15515 return 0; 15516} 15517_ACEOF 15518if ac_fn_c_try_link "$LINENO"; then : 15519 gssapi_linked=yes 15520else 15521 gssapi_linked=no 15522fi 15523rm -f core conftest.err conftest.$ac_objext \ 15524 conftest$ac_exeext conftest.$ac_ext 15525 case $gssapi_linked in 15526 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5 15527$as_echo "krb5-config: linked" >&6; };; 15528 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5 15529$as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; } 15530 use_gssapi="yes" 15531 ;; 15532 esac 15533 LIBS=$saved_libs 15534 fi 15535 fi 15536 if test "yes" = "$use_gssapi"; then 15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5 15538$as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; } 15539 fi 15540 ;; 15541esac 15542 15543case "$host" in 15544*darwin*) 15545 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi" 15546 then 15547 use_gssapi=framework 15548 fi 15549 ;; 15550esac 15551 15552# gssapi is just the framework, we really require kerberos v5, so 15553# look for those headers (the gssapi headers must be there, too) 15554# The problem with this implementation is that it doesn't allow 15555# for the specification of gssapi and krb5 headers in different locations, 15556# which probably ought to be fixed although fixing might raise the issue of 15557# trying to build with incompatible versions of gssapi and krb5. 15558if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi" 15559then 15560 # first, deal with the obvious 15561 if test \( -f /usr/include/kerberosv5/krb5.h -o \ 15562 -f /usr/include/krb5/krb5.h -o \ 15563 -f /usr/include/krb5.h \) -a \ 15564 \( -f /usr/include/gssapi.h -o \ 15565 -f /usr/include/gssapi/gssapi.h \) 15566 then 15567 use_gssapi=/usr 15568 else 15569 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr" 15570 for d in $krb5dirs 15571 do 15572 if test -f $d/include/gssapi/gssapi_krb5.h -o \ 15573 -f $d/include/krb5.h 15574 then 15575 if test -f $d/include/gssapi/gssapi.h -o \ 15576 -f $d/include/gssapi.h 15577 then 15578 use_gssapi=$d 15579 break 15580 fi 15581 fi 15582 done 15583 if test "auto" = "$use_gssapi" 15584 then 15585 use_gssapi="no" 15586 fi 15587 fi 15588fi 15589 15590case "$use_gssapi" in 15591 no) 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15593$as_echo "disabled" >&6; } 15594 USE_GSSAPI='' 15595 ;; 15596 yes) 15597 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5 15598 ;; 15599 */krb5-config|krb5-config) 15600 USE_GSSAPI='-DGSSAPI' 15601 DST_GSSAPI_INC="$gssapi_cflags $krb5_cflags" 15602 DNS_GSSAPI_LIBS="$gssapi_libs $krb5_libs" 15603 ;; 15604 framework) 15605 USE_GSSAPI='-DGSSAPI' 15606 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>" 15607 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>" 15608 DNS_GSSAPI_LIBS="-framework Kerberos" 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5 15610$as_echo "framework" >&6; } 15611 ;; 15612 15613 *) 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5 15615$as_echo "looking in $use_gssapi/lib" >&6; } 15616 USE_GSSAPI='-DGSSAPI' 15617 saved_cppflags="$CPPFLAGS" 15618 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS" 15619 for ac_header in gssapi.h gssapi/gssapi.h 15620do : 15621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15622ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15624 cat >>confdefs.h <<_ACEOF 15625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15626_ACEOF 15627 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>" 15628 gssapi_hack="#include <$ac_header>" 15629fi 15630 15631done 15632 15633 15634 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then 15635 as_fn_error $? "gssapi.h not found" "$LINENO" 5 15636 fi 15637 15638 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h 15639do : 15640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15641ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15643 cat >>confdefs.h <<_ACEOF 15644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15645_ACEOF 15646 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>" 15647 gssapi_krb5_hack="#include <$ac_header>" 15648fi 15649 15650done 15651 15652 15653 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h 15654do : 15655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15656ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15658 cat >>confdefs.h <<_ACEOF 15659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15660_ACEOF 15661 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>" 15662 krb5_hack="#include <$ac_header>" 15663fi 15664 15665done 15666 15667 15668 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then 15669 as_fn_error $? "krb5.h not found" "$LINENO" 5 15670 fi 15671 15672 # 15673 # XXXDCL This probably doesn't work right on all systems. 15674 # It will need to be worked on as problems become evident. 15675 # 15676 # Essentially the problems here relate to two different 15677 # areas. The first area is building with either KTH 15678 # or MIT Kerberos, particularly when both are present on 15679 # the machine. The other is static versus dynamic linking. 15680 # 15681 # On the KTH vs MIT issue, Both have libkrb5 that can mess 15682 # up the works if one implementation ends up trying to 15683 # use the other's krb. This is unfortunately a situation 15684 # that very easily arises. 15685 # 15686 # Dynamic linking when the dependency information is built 15687 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes 15688 # all such problems go away, but when that setup is not 15689 # present, because either the dynamic libraries lack 15690 # dependencies or static linking is being done, then the 15691 # problems start to show up. 15692 saved_libs="$LIBS" 15693 for TRY_LIBS in \ 15694 "$($KRB5CONFIG gssapi --libs)"; \ 15695 do 15696 LIBS="$TRY_LIBS" 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5 15698$as_echo_n "checking linking as $TRY_LIBS... " >&6; } 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701 15702#include <sys/types.h> 15703$gssapi_hack 15704$gssapi_krb5_hack 15705$krb5_hack 15706 15707int 15708main () 15709{ 15710gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL); 15711#if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H) 15712gsskrb5_register_acceptor_identity(NULL); 15713#endif 15714 ; 15715 return 0; 15716} 15717_ACEOF 15718if ac_fn_c_try_link "$LINENO"; then : 15719 gssapi_linked=yes 15720else 15721 gssapi_linked=no 15722fi 15723rm -f core conftest.err conftest.$ac_objext \ 15724 conftest$ac_exeext conftest.$ac_ext 15725 case $gssapi_linked in 15726 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15727$as_echo "yes" >&6; }; break ;; 15728 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15729$as_echo "no" >&6; } ;; 15730 esac 15731 done 15732 15733 CPPFLAGS="$saved_cppflags" 15734 15735 case $gssapi_linked in 15736 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;; 15737 esac 15738 15739 DST_GSSAPI_INC="$($KRB5CONFIG gssapi --cflags)" 15740 DNS_GSSAPI_LIBS="$LIBS" 15741 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5 15743$as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; } 15744 LIBS="$saved_libs" 15745 ;; 15746esac 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS" 15757 15758# 15759# Applications linking with libdns also need to link with these libraries. 15760# 15761 15762 15763 15764# 15765# was --with-randomdev specified? 15766# 15767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 15768$as_echo_n "checking for random device... " >&6; } 15769 15770# [pairwise: skip] 15771 15772# Check whether --with-randomdev was given. 15773if test "${with_randomdev+set}" = set; then : 15774 withval=$with_randomdev; use_randomdev="$withval" 15775else 15776 use_randomdev="unspec" 15777fi 15778 15779 15780case "$use_randomdev" in 15781 unspec) 15782 case "$cross_compiling" in 15783 yes) 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5 15785$as_echo "unspecified" >&6; } 15786 as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5 15787 esac 15788 case "$host" in 15789 *-openbsd*) 15790 devrandom=/dev/arandom 15791 ;; 15792 *) 15793 devrandom=/dev/random 15794 ;; 15795 esac 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5 15797$as_echo "$devrandom" >&6; } 15798 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh` 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5 15800$as_echo_n "checking for $devrandom... " >&6; } 15801if eval \${$as_ac_File+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 test "$cross_compiling" = yes && 15805 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 15806if test -r "$devrandom"; then 15807 eval "$as_ac_File=yes" 15808else 15809 eval "$as_ac_File=no" 15810fi 15811fi 15812eval ac_res=\$$as_ac_File 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15814$as_echo "$ac_res" >&6; } 15815if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 15816 cat >>confdefs.h <<_ACEOF 15817#define PATH_RANDOMDEV "$devrandom" 15818_ACEOF 15819 15820fi 15821 15822 15823 ;; 15824 yes) 15825 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5 15826 ;; 15827 no) 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15829$as_echo "disabled" >&6; } 15830 ;; 15831 *) 15832 cat >>confdefs.h <<_ACEOF 15833#define PATH_RANDOMDEV "$use_randomdev" 15834_ACEOF 15835 15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5 15837$as_echo "using \"$use_randomdev\"" >&6; } 15838 ;; 15839esac 15840 15841# 15842# Only check dsa signature generation on these platforms when performing 15843# system tests. 15844# 15845CHECK_DSA=0 15846if grep "#define PATH_RANDOMDEV " confdefs.h > /dev/null 15847then 15848 case "$host" in 15849 *darwin*|*freebsd*) 15850 CHECK_DSA=1 15851 ;; 15852 esac 15853fi 15854 15855 15856# 15857# Do we have arc4random(), etc ? 15858# Will use stir and if not exist addrandom 15859# 15860for ac_func in arc4random 15861do : 15862 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 15863if test "x$ac_cv_func_arc4random" = xyes; then : 15864 cat >>confdefs.h <<_ACEOF 15865#define HAVE_ARC4RANDOM 1 15866_ACEOF 15867 15868fi 15869done 15870 15871for ac_func in arc4random_stir 15872do : 15873 ac_fn_c_check_func "$LINENO" "arc4random_stir" "ac_cv_func_arc4random_stir" 15874if test "x$ac_cv_func_arc4random_stir" = xyes; then : 15875 cat >>confdefs.h <<_ACEOF 15876#define HAVE_ARC4RANDOM_STIR 1 15877_ACEOF 15878 15879fi 15880done 15881 15882for ac_func in arc4random_addrandom 15883do : 15884 ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom" 15885if test "x$ac_cv_func_arc4random_addrandom" = xyes; then : 15886 cat >>confdefs.h <<_ACEOF 15887#define HAVE_ARC4RANDOM_ADDRANDOM 1 15888_ACEOF 15889 15890fi 15891done 15892 15893 15894# 15895# Begin pthreads checking. 15896# 15897# First, decide whether to use multithreading or not. 15898# 15899# Enable multithreading by default on systems where it is known 15900# to work well, and where debugging of multithreaded programs 15901# is supported. 15902# 15903 15904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5 15905$as_echo_n "checking whether to build with thread support... " >&6; } 15906 15907case $host in 15908*-dec-osf*) 15909 use_threads=true ;; 15910*-solaris2.[0-6]) 15911 # Thread signals are broken on Solaris 2.6; they are sometimes 15912 # delivered to the wrong thread. 15913 use_threads=false ;; 15914*-solaris*) 15915 use_threads=true ;; 15916*-ibm-aix*) 15917 use_threads=true ;; 15918*-hp-hpux10*) 15919 use_threads=false ;; 15920*-hp-hpux11*) 15921 use_threads=true ;; 15922*-sgi-irix*) 15923 use_threads=true ;; 15924*-sco-sysv*uw*|*-*-sysv*UnixWare*) 15925 # UnixWare 15926 use_threads=false ;; 15927*-*-sysv*OpenUNIX*) 15928 # UnixWare 15929 use_threads=true ;; 15930*-netbsd[1234].*) 15931 # NetBSD earlier than NetBSD 5.0 has poor pthreads. 15932 # Don't use it by default. 15933 use_threads=false ;; 15934*-netbsd*) 15935 use_threads=true ;; 15936*-openbsd[12345].*|*-openbsd6.[01]) 15937 # OpenBSD users reported that named dumps core on 15938 # startup when built with threads. 15939 use_threads=false ;; 15940*-openbsd*) 15941 use_threads=true ;; 15942*-freebsd[1234567].*) 15943 # Threads are broken at least up to FreeBSD 4.11. 15944 # FreeBSD 5, 6 and 7 we have never officially supported threads 15945 # on. YMMV 15946 use_threads=false ;; 15947*-freebsd*) 15948 use_threads=true ;; 15949*-bsdi[234]*) 15950 # Thread signals do not work reliably on some versions of BSD/OS. 15951 use_threads=false ;; 15952*-bsdi5*) 15953 use_threads=true ;; 15954*-linux*) 15955 use_threads=true ;; 15956*-darwin[123456789].*) 15957 use_threads=false ;; 15958*-darwin*.*) 15959 use_threads=true ;; 15960*) 15961 use_threads=true ;; 15962esac 15963 15964# Check whether --enable-threads was given. 15965if test "${enable_threads+set}" = set; then : 15966 enableval=$enable_threads; 15967fi 15968 15969case "$enable_threads" in 15970 yes) 15971 use_threads=true 15972 ;; 15973 no) 15974 use_threads=false 15975 ;; 15976 '') 15977 # Use system-dependent default 15978 ;; 15979 *) 15980 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5 15981 ;; 15982esac 15983 15984if $use_threads 15985then 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15987$as_echo "yes" >&6; } 15988else 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15990$as_echo "no" >&6; } 15991fi 15992 15993if $use_threads 15994then 15995 # 15996 # Search for / configure pthreads in a system-dependent fashion. 15997 # 15998 case "$host" in 15999 *-freebsd*) 16000 # We don't want to set -lpthread as that break 16001 # the ability to choose threads library at final 16002 # link time and is not valid for all architectures. 16003 16004 PTHREAD= 16005 if test "X$GCC" = "Xyes"; then 16006 saved_cc="$CC" 16007 CC="$CC -pthread" 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5 16009$as_echo_n "checking for gcc -pthread support... " >&6; }; 16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16011/* end confdefs.h. */ 16012#include <pthread.h> 16013int 16014main () 16015{ 16016printf("%x\n", pthread_create); 16017 ; 16018 return 0; 16019} 16020_ACEOF 16021if ac_fn_c_try_link "$LINENO"; then : 16022 PTHREAD="yes" 16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16024$as_echo "yes" >&6; } 16025else 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16027$as_echo "no" >&6; } 16028fi 16029rm -f core conftest.err conftest.$ac_objext \ 16030 conftest$ac_exeext conftest.$ac_ext 16031 CC="$saved_cc" 16032 fi 16033 if test "X$PTHREAD" != "Xyes"; then 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 16035$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 16036if ${ac_cv_lib_pthread_pthread_create+:} false; then : 16037 $as_echo_n "(cached) " >&6 16038else 16039 ac_check_lib_save_LIBS=$LIBS 16040LIBS="-lpthread $LIBS" 16041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043 16044/* Override any GCC internal prototype to avoid an error. 16045 Use char because int might match the return type of a GCC 16046 builtin and then its argument prototype would still apply. */ 16047#ifdef __cplusplus 16048extern "C" 16049#endif 16050char pthread_create (); 16051int 16052main () 16053{ 16054return pthread_create (); 16055 ; 16056 return 0; 16057} 16058_ACEOF 16059if ac_fn_c_try_link "$LINENO"; then : 16060 ac_cv_lib_pthread_pthread_create=yes 16061else 16062 ac_cv_lib_pthread_pthread_create=no 16063fi 16064rm -f core conftest.err conftest.$ac_objext \ 16065 conftest$ac_exeext conftest.$ac_ext 16066LIBS=$ac_check_lib_save_LIBS 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 16069$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 16070if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 16071 cat >>confdefs.h <<_ACEOF 16072#define HAVE_LIBPTHREAD 1 16073_ACEOF 16074 16075 LIBS="-lpthread $LIBS" 16076 16077else 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5 16079$as_echo_n "checking for thread_create in -lthr... " >&6; } 16080if ${ac_cv_lib_thr_thread_create+:} false; then : 16081 $as_echo_n "(cached) " >&6 16082else 16083 ac_check_lib_save_LIBS=$LIBS 16084LIBS="-lthr $LIBS" 16085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087 16088/* Override any GCC internal prototype to avoid an error. 16089 Use char because int might match the return type of a GCC 16090 builtin and then its argument prototype would still apply. */ 16091#ifdef __cplusplus 16092extern "C" 16093#endif 16094char thread_create (); 16095int 16096main () 16097{ 16098return thread_create (); 16099 ; 16100 return 0; 16101} 16102_ACEOF 16103if ac_fn_c_try_link "$LINENO"; then : 16104 ac_cv_lib_thr_thread_create=yes 16105else 16106 ac_cv_lib_thr_thread_create=no 16107fi 16108rm -f core conftest.err conftest.$ac_objext \ 16109 conftest$ac_exeext conftest.$ac_ext 16110LIBS=$ac_check_lib_save_LIBS 16111fi 16112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5 16113$as_echo "$ac_cv_lib_thr_thread_create" >&6; } 16114if test "x$ac_cv_lib_thr_thread_create" = xyes; then : 16115 cat >>confdefs.h <<_ACEOF 16116#define HAVE_LIBTHR 1 16117_ACEOF 16118 16119 LIBS="-lthr $LIBS" 16120 16121else 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 16123$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 16124if ${ac_cv_lib_c_r_pthread_create+:} false; then : 16125 $as_echo_n "(cached) " >&6 16126else 16127 ac_check_lib_save_LIBS=$LIBS 16128LIBS="-lc_r $LIBS" 16129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16130/* end confdefs.h. */ 16131 16132/* Override any GCC internal prototype to avoid an error. 16133 Use char because int might match the return type of a GCC 16134 builtin and then its argument prototype would still apply. */ 16135#ifdef __cplusplus 16136extern "C" 16137#endif 16138char pthread_create (); 16139int 16140main () 16141{ 16142return pthread_create (); 16143 ; 16144 return 0; 16145} 16146_ACEOF 16147if ac_fn_c_try_link "$LINENO"; then : 16148 ac_cv_lib_c_r_pthread_create=yes 16149else 16150 ac_cv_lib_c_r_pthread_create=no 16151fi 16152rm -f core conftest.err conftest.$ac_objext \ 16153 conftest$ac_exeext conftest.$ac_ext 16154LIBS=$ac_check_lib_save_LIBS 16155fi 16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 16157$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 16158if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 16159 cat >>confdefs.h <<_ACEOF 16160#define HAVE_LIBC_R 1 16161_ACEOF 16162 16163 LIBS="-lc_r $LIBS" 16164 16165else 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 16167$as_echo_n "checking for pthread_create in -lc... " >&6; } 16168if ${ac_cv_lib_c_pthread_create+:} false; then : 16169 $as_echo_n "(cached) " >&6 16170else 16171 ac_check_lib_save_LIBS=$LIBS 16172LIBS="-lc $LIBS" 16173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16174/* end confdefs.h. */ 16175 16176/* Override any GCC internal prototype to avoid an error. 16177 Use char because int might match the return type of a GCC 16178 builtin and then its argument prototype would still apply. */ 16179#ifdef __cplusplus 16180extern "C" 16181#endif 16182char pthread_create (); 16183int 16184main () 16185{ 16186return pthread_create (); 16187 ; 16188 return 0; 16189} 16190_ACEOF 16191if ac_fn_c_try_link "$LINENO"; then : 16192 ac_cv_lib_c_pthread_create=yes 16193else 16194 ac_cv_lib_c_pthread_create=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext \ 16197 conftest$ac_exeext conftest.$ac_ext 16198LIBS=$ac_check_lib_save_LIBS 16199fi 16200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 16201$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 16202if test "x$ac_cv_lib_c_pthread_create" = xyes; then : 16203 cat >>confdefs.h <<_ACEOF 16204#define HAVE_LIBC 1 16205_ACEOF 16206 16207 LIBS="-lc $LIBS" 16208 16209else 16210 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5 16211fi 16212 16213fi 16214 16215fi 16216 16217fi 16218 16219 fi 16220 ;; 16221 *) 16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 16223$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 16224if ${ac_cv_lib_pthread_pthread_create+:} false; then : 16225 $as_echo_n "(cached) " >&6 16226else 16227 ac_check_lib_save_LIBS=$LIBS 16228LIBS="-lpthread $LIBS" 16229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16230/* end confdefs.h. */ 16231 16232/* Override any GCC internal prototype to avoid an error. 16233 Use char because int might match the return type of a GCC 16234 builtin and then its argument prototype would still apply. */ 16235#ifdef __cplusplus 16236extern "C" 16237#endif 16238char pthread_create (); 16239int 16240main () 16241{ 16242return pthread_create (); 16243 ; 16244 return 0; 16245} 16246_ACEOF 16247if ac_fn_c_try_link "$LINENO"; then : 16248 ac_cv_lib_pthread_pthread_create=yes 16249else 16250 ac_cv_lib_pthread_pthread_create=no 16251fi 16252rm -f core conftest.err conftest.$ac_objext \ 16253 conftest$ac_exeext conftest.$ac_ext 16254LIBS=$ac_check_lib_save_LIBS 16255fi 16256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 16257$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 16258if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 16259 cat >>confdefs.h <<_ACEOF 16260#define HAVE_LIBPTHREAD 1 16261_ACEOF 16262 16263 LIBS="-lpthread $LIBS" 16264 16265else 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5 16267$as_echo_n "checking for __pthread_create in -lpthread... " >&6; } 16268if ${ac_cv_lib_pthread___pthread_create+:} false; then : 16269 $as_echo_n "(cached) " >&6 16270else 16271 ac_check_lib_save_LIBS=$LIBS 16272LIBS="-lpthread $LIBS" 16273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16274/* end confdefs.h. */ 16275 16276/* Override any GCC internal prototype to avoid an error. 16277 Use char because int might match the return type of a GCC 16278 builtin and then its argument prototype would still apply. */ 16279#ifdef __cplusplus 16280extern "C" 16281#endif 16282char __pthread_create (); 16283int 16284main () 16285{ 16286return __pthread_create (); 16287 ; 16288 return 0; 16289} 16290_ACEOF 16291if ac_fn_c_try_link "$LINENO"; then : 16292 ac_cv_lib_pthread___pthread_create=yes 16293else 16294 ac_cv_lib_pthread___pthread_create=no 16295fi 16296rm -f core conftest.err conftest.$ac_objext \ 16297 conftest$ac_exeext conftest.$ac_ext 16298LIBS=$ac_check_lib_save_LIBS 16299fi 16300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5 16301$as_echo "$ac_cv_lib_pthread___pthread_create" >&6; } 16302if test "x$ac_cv_lib_pthread___pthread_create" = xyes; then : 16303 cat >>confdefs.h <<_ACEOF 16304#define HAVE_LIBPTHREAD 1 16305_ACEOF 16306 16307 LIBS="-lpthread $LIBS" 16308 16309else 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 16311$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 16312if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 16313 $as_echo_n "(cached) " >&6 16314else 16315 ac_check_lib_save_LIBS=$LIBS 16316LIBS="-lpthread $LIBS" 16317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16318/* end confdefs.h. */ 16319 16320/* Override any GCC internal prototype to avoid an error. 16321 Use char because int might match the return type of a GCC 16322 builtin and then its argument prototype would still apply. */ 16323#ifdef __cplusplus 16324extern "C" 16325#endif 16326char __pthread_create_system (); 16327int 16328main () 16329{ 16330return __pthread_create_system (); 16331 ; 16332 return 0; 16333} 16334_ACEOF 16335if ac_fn_c_try_link "$LINENO"; then : 16336 ac_cv_lib_pthread___pthread_create_system=yes 16337else 16338 ac_cv_lib_pthread___pthread_create_system=no 16339fi 16340rm -f core conftest.err conftest.$ac_objext \ 16341 conftest$ac_exeext conftest.$ac_ext 16342LIBS=$ac_check_lib_save_LIBS 16343fi 16344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 16345$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 16346if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 16347 cat >>confdefs.h <<_ACEOF 16348#define HAVE_LIBPTHREAD 1 16349_ACEOF 16350 16351 LIBS="-lpthread $LIBS" 16352 16353else 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 16355$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 16356if ${ac_cv_lib_c_r_pthread_create+:} false; then : 16357 $as_echo_n "(cached) " >&6 16358else 16359 ac_check_lib_save_LIBS=$LIBS 16360LIBS="-lc_r $LIBS" 16361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16362/* end confdefs.h. */ 16363 16364/* Override any GCC internal prototype to avoid an error. 16365 Use char because int might match the return type of a GCC 16366 builtin and then its argument prototype would still apply. */ 16367#ifdef __cplusplus 16368extern "C" 16369#endif 16370char pthread_create (); 16371int 16372main () 16373{ 16374return pthread_create (); 16375 ; 16376 return 0; 16377} 16378_ACEOF 16379if ac_fn_c_try_link "$LINENO"; then : 16380 ac_cv_lib_c_r_pthread_create=yes 16381else 16382 ac_cv_lib_c_r_pthread_create=no 16383fi 16384rm -f core conftest.err conftest.$ac_objext \ 16385 conftest$ac_exeext conftest.$ac_ext 16386LIBS=$ac_check_lib_save_LIBS 16387fi 16388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 16389$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 16390if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 16391 cat >>confdefs.h <<_ACEOF 16392#define HAVE_LIBC_R 1 16393_ACEOF 16394 16395 LIBS="-lc_r $LIBS" 16396 16397else 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 16399$as_echo_n "checking for pthread_create in -lc... " >&6; } 16400if ${ac_cv_lib_c_pthread_create+:} false; then : 16401 $as_echo_n "(cached) " >&6 16402else 16403 ac_check_lib_save_LIBS=$LIBS 16404LIBS="-lc $LIBS" 16405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16406/* end confdefs.h. */ 16407 16408/* Override any GCC internal prototype to avoid an error. 16409 Use char because int might match the return type of a GCC 16410 builtin and then its argument prototype would still apply. */ 16411#ifdef __cplusplus 16412extern "C" 16413#endif 16414char pthread_create (); 16415int 16416main () 16417{ 16418return pthread_create (); 16419 ; 16420 return 0; 16421} 16422_ACEOF 16423if ac_fn_c_try_link "$LINENO"; then : 16424 ac_cv_lib_c_pthread_create=yes 16425else 16426 ac_cv_lib_c_pthread_create=no 16427fi 16428rm -f core conftest.err conftest.$ac_objext \ 16429 conftest$ac_exeext conftest.$ac_ext 16430LIBS=$ac_check_lib_save_LIBS 16431fi 16432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 16433$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 16434if test "x$ac_cv_lib_c_pthread_create" = xyes; then : 16435 cat >>confdefs.h <<_ACEOF 16436#define HAVE_LIBC 1 16437_ACEOF 16438 16439 LIBS="-lc $LIBS" 16440 16441else 16442 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5 16443fi 16444 16445fi 16446 16447fi 16448 16449fi 16450 16451fi 16452 16453 ;; 16454 esac 16455fi 16456 16457if $use_threads 16458then 16459 if test "X$GCC" = "Xyes"; then 16460 case "$host" in 16461 *-freebsd*) 16462 CC="$CC -pthread" 16463 CCOPT="$CCOPT -pthread" 16464 CCNOOPT="$CCNOOPT -pthread" 16465 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 16466 ;; 16467 *-openbsd*) 16468 CC="$CC -pthread" 16469 CCOPT="$CCOPT -pthread" 16470 CCNOOPT="$CCNOOPT -pthread" 16471 ;; 16472 *-solaris*) 16473 LIBS="$LIBS -lthread" 16474 ;; 16475 *-ibm-aix*) 16476 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 16477 ;; 16478 esac 16479 else 16480 case $host in 16481 *-dec-osf*) 16482 CC="$CC -pthread" 16483 CCOPT="$CCOPT -pthread" 16484 CCNOOPT="$CCNOOPT -pthread" 16485 ;; 16486 *-solaris*) 16487 CC="$CC" 16488 CCOPT="$CCOPT -mt" 16489 CCNOOPT="$CCNOOPT -mt" 16490 ;; 16491 *-ibm-aix*) 16492 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 16493 ;; 16494 *-sco-sysv*uw*|*-*-sysv*UnixWare*) 16495 CC="$CC -Kthread" 16496 CCOPT="$CCOPT -Kthread" 16497 CCNOOPT="$CCNOOPT -Kthread" 16498 ;; 16499 *-*-sysv*OpenUNIX*) 16500 CC="$CC -Kpthread" 16501 CCOPT="$CCOPT -Kpthread" 16502 CCNOOPT="$CCNOOPT -Kpthread" 16503 ;; 16504 esac 16505 fi 16506 ALWAYS_DEFINES="-D_REENTRANT" 16507 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1" 16508 THREADOPTOBJS='${THREADOPTOBJS}' 16509 THREADOPTSRCS='${THREADOPTSRCS}' 16510 thread_dir=pthreads 16511 # 16512 # We'd like to use sigwait() too 16513 # 16514 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 16515if test "x$ac_cv_func_sigwait" = xyes; then : 16516 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 16517 16518else 16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 16520$as_echo_n "checking for sigwait in -lc... " >&6; } 16521if ${ac_cv_lib_c_sigwait+:} false; then : 16522 $as_echo_n "(cached) " >&6 16523else 16524 ac_check_lib_save_LIBS=$LIBS 16525LIBS="-lc $LIBS" 16526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16527/* end confdefs.h. */ 16528 16529/* Override any GCC internal prototype to avoid an error. 16530 Use char because int might match the return type of a GCC 16531 builtin and then its argument prototype would still apply. */ 16532#ifdef __cplusplus 16533extern "C" 16534#endif 16535char sigwait (); 16536int 16537main () 16538{ 16539return sigwait (); 16540 ; 16541 return 0; 16542} 16543_ACEOF 16544if ac_fn_c_try_link "$LINENO"; then : 16545 ac_cv_lib_c_sigwait=yes 16546else 16547 ac_cv_lib_c_sigwait=no 16548fi 16549rm -f core conftest.err conftest.$ac_objext \ 16550 conftest$ac_exeext conftest.$ac_ext 16551LIBS=$ac_check_lib_save_LIBS 16552fi 16553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 16554$as_echo "$ac_cv_lib_c_sigwait" >&6; } 16555if test "x$ac_cv_lib_c_sigwait" = xyes; then : 16556 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 16557 16558else 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 16560$as_echo_n "checking for sigwait in -lpthread... " >&6; } 16561if ${ac_cv_lib_pthread_sigwait+:} false; then : 16562 $as_echo_n "(cached) " >&6 16563else 16564 ac_check_lib_save_LIBS=$LIBS 16565LIBS="-lpthread $LIBS" 16566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16567/* end confdefs.h. */ 16568 16569/* Override any GCC internal prototype to avoid an error. 16570 Use char because int might match the return type of a GCC 16571 builtin and then its argument prototype would still apply. */ 16572#ifdef __cplusplus 16573extern "C" 16574#endif 16575char sigwait (); 16576int 16577main () 16578{ 16579return sigwait (); 16580 ; 16581 return 0; 16582} 16583_ACEOF 16584if ac_fn_c_try_link "$LINENO"; then : 16585 ac_cv_lib_pthread_sigwait=yes 16586else 16587 ac_cv_lib_pthread_sigwait=no 16588fi 16589rm -f core conftest.err conftest.$ac_objext \ 16590 conftest$ac_exeext conftest.$ac_ext 16591LIBS=$ac_check_lib_save_LIBS 16592fi 16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 16594$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 16595if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 16596 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 16597 16598else 16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 16600$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 16601if ${ac_cv_lib_pthread__Psigwait+:} false; then : 16602 $as_echo_n "(cached) " >&6 16603else 16604 ac_check_lib_save_LIBS=$LIBS 16605LIBS="-lpthread $LIBS" 16606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607/* end confdefs.h. */ 16608 16609/* Override any GCC internal prototype to avoid an error. 16610 Use char because int might match the return type of a GCC 16611 builtin and then its argument prototype would still apply. */ 16612#ifdef __cplusplus 16613extern "C" 16614#endif 16615char _Psigwait (); 16616int 16617main () 16618{ 16619return _Psigwait (); 16620 ; 16621 return 0; 16622} 16623_ACEOF 16624if ac_fn_c_try_link "$LINENO"; then : 16625 ac_cv_lib_pthread__Psigwait=yes 16626else 16627 ac_cv_lib_pthread__Psigwait=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext \ 16630 conftest$ac_exeext conftest.$ac_ext 16631LIBS=$ac_check_lib_save_LIBS 16632fi 16633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 16634$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 16635if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 16636 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 16637 16638fi 16639 16640fi 16641 16642fi 16643 16644fi 16645 16646 16647 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 16648if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 16649 $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h 16650 16651fi 16652 16653 16654 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 16655if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then : 16656 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 16657 16658fi 16659 16660 16661 # [pairwise: --with-locktype=adaptive, --with-locktype=standard] 16662 16663# Check whether --with-locktype was given. 16664if test "${with_locktype+set}" = set; then : 16665 withval=$with_locktype; locktype="$withval" 16666else 16667 locktype="adaptive" 16668fi 16669 16670 16671 case "$locktype" in 16672 adaptive) 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5 16674$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; } 16675 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677/* end confdefs.h. */ 16678 16679 #ifndef _GNU_SOURCE 16680 #define _GNU_SOURCE 16681 #endif 16682 #include <pthread.h> 16683 16684int 16685main () 16686{ 16687 16688 return (PTHREAD_MUTEX_ADAPTIVE_NP); 16689 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_compile "$LINENO"; then : 16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5 16696$as_echo "using adaptive lock type" >&6; } 16697 16698$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h 16699 16700else 16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5 16702$as_echo "using standard lock type" >&6; } 16703fi 16704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16705 ;; 16706 standard) 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5 16708$as_echo "using standard lock type" >&6; } 16709 ;; 16710 *) 16711 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5 16712 ;; 16713 esac 16714 16715 for ac_header in sched.h 16716do : 16717 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 16718if test "x$ac_cv_header_sched_h" = xyes; then : 16719 cat >>confdefs.h <<_ACEOF 16720#define HAVE_SCHED_H 1 16721_ACEOF 16722 16723fi 16724 16725done 16726 16727 16728 case "$host" in 16729 *solaris-*) 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 16731$as_echo_n "checking for sched_yield in -lrt... " >&6; } 16732if ${ac_cv_lib_rt_sched_yield+:} false; then : 16733 $as_echo_n "(cached) " >&6 16734else 16735 ac_check_lib_save_LIBS=$LIBS 16736LIBS="-lrt $LIBS" 16737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16738/* end confdefs.h. */ 16739 16740/* Override any GCC internal prototype to avoid an error. 16741 Use char because int might match the return type of a GCC 16742 builtin and then its argument prototype would still apply. */ 16743#ifdef __cplusplus 16744extern "C" 16745#endif 16746char sched_yield (); 16747int 16748main () 16749{ 16750return sched_yield (); 16751 ; 16752 return 0; 16753} 16754_ACEOF 16755if ac_fn_c_try_link "$LINENO"; then : 16756 ac_cv_lib_rt_sched_yield=yes 16757else 16758 ac_cv_lib_rt_sched_yield=no 16759fi 16760rm -f core conftest.err conftest.$ac_objext \ 16761 conftest$ac_exeext conftest.$ac_ext 16762LIBS=$ac_check_lib_save_LIBS 16763fi 16764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 16765$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 16766if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 16767 cat >>confdefs.h <<_ACEOF 16768#define HAVE_LIBRT 1 16769_ACEOF 16770 16771 LIBS="-lrt $LIBS" 16772 16773fi 16774 16775 ;; 16776 esac 16777 16778 for ac_func in sched_yield pthread_yield pthread_yield_np 16779do : 16780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16781ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16782if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16783 cat >>confdefs.h <<_ACEOF 16784#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16785_ACEOF 16786 16787fi 16788done 16789 16790 16791 # 16792 # Additional OS-specific issues related to pthreads and sigwait. 16793 # 16794 case "$host" in 16795 # 16796 # One more place to look for sigwait. 16797 # 16798 *-freebsd*) 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 16800$as_echo_n "checking for sigwait in -lc_r... " >&6; } 16801if ${ac_cv_lib_c_r_sigwait+:} false; then : 16802 $as_echo_n "(cached) " >&6 16803else 16804 ac_check_lib_save_LIBS=$LIBS 16805LIBS="-lc_r $LIBS" 16806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16807/* end confdefs.h. */ 16808 16809/* Override any GCC internal prototype to avoid an error. 16810 Use char because int might match the return type of a GCC 16811 builtin and then its argument prototype would still apply. */ 16812#ifdef __cplusplus 16813extern "C" 16814#endif 16815char sigwait (); 16816int 16817main () 16818{ 16819return sigwait (); 16820 ; 16821 return 0; 16822} 16823_ACEOF 16824if ac_fn_c_try_link "$LINENO"; then : 16825 ac_cv_lib_c_r_sigwait=yes 16826else 16827 ac_cv_lib_c_r_sigwait=no 16828fi 16829rm -f core conftest.err conftest.$ac_objext \ 16830 conftest$ac_exeext conftest.$ac_ext 16831LIBS=$ac_check_lib_save_LIBS 16832fi 16833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 16834$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 16835if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 16836 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 16837 16838fi 16839 16840 case $host in 16841 *-freebsd5.[012]|*-freebsd5.[012].*);; 16842 *-freebsd5.[3456789]|*-freebsd5.[3456789].*) 16843 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 16844 16845 ;; 16846 *-freebsd6.*) 16847 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 16848 16849 ;; 16850 esac 16851 ;; 16852 # 16853 # BSDI 3.0 through 4.0.1 needs pthread_init() to be 16854 # called before certain pthreads calls. This is deprecated 16855 # in BSD/OS 4.1. 16856 # 16857 *-bsdi3.*|*-bsdi4.0*) 16858 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 16859 16860 ;; 16861 # 16862 # LinuxThreads requires some changes to the way we 16863 # deal with signals. 16864 # 16865 *-linux*) 16866 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 16867 16868 ;; 16869 # 16870 # Ensure the right sigwait() semantics on Solaris and make 16871 # sure we call pthread_setconcurrency. 16872 # 16873 *-solaris*) 16874 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 16875 16876 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 16877if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 16878 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 16879 16880fi 16881 16882 ;; 16883 # 16884 # UnixWare does things its own way. 16885 # 16886 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 16887 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 16888 16889 ;; 16890 esac 16891 16892 # Look for functions relating to thread naming 16893 for ac_func in pthread_setname_np pthread_set_name_np 16894do : 16895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16896ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16897if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16898 cat >>confdefs.h <<_ACEOF 16899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16900_ACEOF 16901 16902fi 16903done 16904 16905 for ac_header in pthread_np.h 16906do : 16907 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h> 16908" 16909if test "x$ac_cv_header_pthread_np_h" = xyes; then : 16910 cat >>confdefs.h <<_ACEOF 16911#define HAVE_PTHREAD_NP_H 1 16912_ACEOF 16913 16914fi 16915 16916done 16917 16918 16919 # 16920 # Look for sysconf to allow detection of the number of processors. 16921 # 16922 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 16923if test "x$ac_cv_func_sysconf" = xyes; then : 16924 $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 16925 16926fi 16927 16928 16929else 16930 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS" 16931 thread_dir=nothreads 16932 THREADOPTOBJS="" 16933 THREADOPTSRCS="" 16934 ALWAYS_DEFINES="" 16935fi 16936 16937 16938 16939 16940 16941ISC_THREAD_DIR=$thread_dir 16942 16943 16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5 16945$as_echo_n "checking for libtool... " >&6; } 16946 16947# [pairwise: --with-libtool, --without-libtool] 16948 16949# Check whether --with-libtool was given. 16950if test "${with_libtool+set}" = set; then : 16951 withval=$with_libtool; use_libtool="$withval" 16952else 16953 use_libtool="no" 16954fi 16955 16956 16957case $use_libtool in 16958 yes) 16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16960$as_echo "yes" >&6; } 16961 16962 O=lo 16963 A=la 16964 LIBTOOL_MKDEP_SED='s;\.o;\.lo;' 16965 LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC' 16966 LIBTOOL_MODE_INSTALL='--mode=install --tag=CC' 16967 LIBTOOL_MODE_LINK='--mode=link --tag=CC' 16968 LIBTOOL_MODE_UNINSTALL='--mode=uninstall --tag=CC' 16969 INSTALL_LIBRARY='${INSTALL_PROGRAM}' 16970 case "$host" in 16971 *) LIBTOOL_ALLOW_UNDEFINED= ;; 16972 esac 16973 case "$host" in 16974 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;; 16975 *) LIBTOOL_IN_MAIN= ;; 16976 esac; 16977 ;; 16978 *) 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16980$as_echo "no" >&6; } 16981 O=o 16982 A=a 16983 LIBTOOL= 16984 16985 LIBTOOL_MKDEP_SED= 16986 LIBTOOL_MODE_COMPILE= 16987 LIBTOOL_MODE_INSTALL= 16988 LIBTOOL_MODE_LINK= 16989 LIBTOOL_MODE_UNINSTALL= 16990 LIBTOOL_ALLOW_UNDEFINED= 16991 LIBTOOL_IN_MAIN= 16992 INSTALL_LIBRARY='${INSTALL_DATA}' 16993 ;; 16994esac 16995 16996 16997# 16998# was --enable-native-pkcs11 specified? 16999# (note it implies both --without-openssl and --with-pkcs11) 17000# 17001# [pairwise: --enable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --without-dlopen] 17002# Check whether --enable-native-pkcs11 was given. 17003if test "${enable_native_pkcs11+set}" = set; then : 17004 enableval=$enable_native_pkcs11; want_native_pkcs11="$enableval" 17005else 17006 want_native_pkcs11="no" 17007fi 17008 17009 17010# 17011# was --with-openssl specified? 17012# 17013# "--enable-openssl-hash" is on purpose not being tested because it fails 17014# linking when either of --with-ecdsa, --with-gost, --with-eddsa, or --with-aes 17015# is used as well because it can't find f.e. HMAC_CTX_new() as "-lcrypto" is 17016# missing. 17017# 17018# [pairwise: --with-openssl, --with-openssl --disable-openssl-hash, --without-openssl] 17019 17020# Check whether --with-openssl was given. 17021if test "${with_openssl+set}" = set; then : 17022 withval=$with_openssl; use_openssl="$withval" 17023else 17024 use_openssl="auto" 17025fi 17026 17027 17028# 17029# was --with-pkcs11 specified? 17030# 17031# [pairwise: skip] 17032 17033# Check whether --with-pkcs11 was given. 17034if test "${with_pkcs11+set}" = set; then : 17035 withval=$with_pkcs11; use_pkcs11="$withval" 17036else 17037 use_pkcs11="auto" 17038fi 17039 17040 17041# 17042# were --with-ecdsa, --with-gost, --with-eddsa, --with-aes specified 17043# 17044 17045# [pairwise: --with-ecdsa, --without-ecdsa] 17046 17047# Check whether --with-ecdsa was given. 17048if test "${with_ecdsa+set}" = set; then : 17049 withval=$with_ecdsa; with_ecdsa="$withval" 17050else 17051 with_ecdsa="auto" 17052fi 17053 17054 17055# GOST is not included in pairwise testing as it is not supported by the 17056# OpenSSL version present in the relevant Docker image. 17057# 17058# [pairwise: skip] 17059 17060# Check whether --with-gost was given. 17061if test "${with_gost+set}" = set; then : 17062 withval=$with_gost; with_gost="$withval" 17063else 17064 with_gost="auto" 17065fi 17066 17067 17068# EdDSA is not included in pairwise testing as it is not supported by 17069# the SoftHSM version present in the relevant Docker image. 17070# 17071# [pairwise: skip] 17072 17073# Check whether --with-eddsa was given. 17074if test "${with_eddsa+set}" = set; then : 17075 withval=$with_eddsa; with_eddsa="$withval" 17076else 17077 with_eddsa="auto" 17078fi 17079 17080 17081# [pairwise: --with-aes, --without-aes] 17082 17083# Check whether --with-aes was given. 17084if test "${with_aes+set}" = set; then : 17085 withval=$with_aes; with_aes="$withval" 17086else 17087 with_aes="yes" 17088fi 17089 17090 17091# 17092# was --enable-openssl-hash specified? 17093# 17094# "--enable-openssl-hash" is not being tested, see the reasoning in 17095# "--with-openssl" pairwise section. 17096# 17097# [pairwise: skip] 17098# Check whether --enable-openssl-hash was given. 17099if test "${enable_openssl_hash+set}" = set; then : 17100 enableval=$enable_openssl_hash; want_openssl_hash="$enableval" 17101else 17102 want_openssl_hash="checkcc" 17103fi 17104 17105 17106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5 17107$as_echo_n "checking for OpenSSL library... " >&6; } 17108OPENSSL_WARNING= 17109openssldirs="/usr /usr/local /usr/local/ssl /opt/local /usr/pkg /usr/sfw" 17110if test "yes" = "$want_native_pkcs11" 17111then 17112 use_openssl="native_pkcs11" 17113 want_openssl_hash="no" 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use of native PKCS11 instead" >&5 17115$as_echo "use of native PKCS11 instead" >&6; } 17116fi 17117 17118if test "auto" = "$use_openssl" 17119then 17120 for d in $openssldirs 17121 do 17122 if test -f $d/include/openssl/opensslv.h 17123 then 17124 use_openssl=$d 17125 break 17126 fi 17127 done 17128fi 17129OPENSSL_ECDSA="" 17130OPENSSL_GOST="" 17131OPENSSL_ED25519="" 17132gosttype="raw" 17133case "$with_gost" in 17134 raw) 17135 with_gost="yes" 17136 ;; 17137 asn1) 17138 17139$as_echo "#define PREFER_GOSTASN1 1" >>confdefs.h 17140 17141 gosttype="asn1" 17142 with_gost="yes" 17143 ;; 17144 auto|yes|no) 17145 ;; 17146 *) 17147 as_fn_error $? "unknown GOST private key encoding" "$LINENO" 5 17148 ;; 17149esac 17150 17151case "$use_openssl" in 17152 native_pkcs11) 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled because of native PKCS11" >&5 17154$as_echo "disabled because of native PKCS11" >&6; } 17155 DST_OPENSSL_INC="" 17156 CRYPTO="-DPKCS11CRYPTO" 17157 OPENSSLECDSALINKOBJS="" 17158 OPENSSLECDSALINKSRCS="" 17159 OPENSSLEDDSALINKOBJS="" 17160 OPENSSLEDDSALINKSRCS="" 17161 OPENSSLGOSTLINKOBJS="" 17162 OPENSSLGOSTLINKSRCS="" 17163 OPENSSLLINKOBJS="" 17164 OPENSSLLINKSRCS="" 17165 ;; 17166 no) 17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17168$as_echo "no" >&6; } 17169 DST_OPENSSL_INC="" 17170 CRYPTO="" 17171 OPENSSLECDSALINKOBJS="" 17172 OPENSSLECDSALINKSRCS="" 17173 OPENSSLEDDSALINKOBJS="" 17174 OPENSSLEDDSALINKSRCS="" 17175 OPENSSLGOSTLINKOBJS="" 17176 OPENSSLGOSTLINKSRCS="" 17177 OPENSSLLINKOBJS="" 17178 OPENSSLLINKSRCS="" 17179 ;; 17180 auto) 17181 DST_OPENSSL_INC="" 17182 CRYPTO="" 17183 OPENSSLECDSALINKOBJS="" 17184 OPENSSLECDSALINKSRCS="" 17185 OPENSSLEDDSALINKOBJS="" 17186 OPENSSLEDDSALINKSRCS="" 17187 OPENSSLGOSTLINKOBJS="" 17188 OPENSSLGOSTLINKSRCS="" 17189 OPENSSLLINKOBJS="" 17190 OPENSSLLINKSRCS="" 17191 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path 17192If you don't want OpenSSL, use --without-openssl" "$LINENO" 5 17193 ;; 17194 *) 17195 if test "yes" = "$want_native_pkcs11" 17196 then 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17198$as_echo "" >&6; } 17199 as_fn_error $? "OpenSSL and native PKCS11 cannot be used together." "$LINENO" 5 17200 fi 17201 if test "yes" = "$use_openssl" 17202 then 17203 # User did not specify a path - guess it 17204 for d in $openssldirs 17205 do 17206 if test -f $d/include/openssl/opensslv.h 17207 then 17208 use_openssl=$d 17209 break 17210 fi 17211 done 17212 if test "yes" = "$use_openssl" 17213 then 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17215$as_echo "not found" >&6; } 17216 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5 17217 fi 17218 elif ! test -f "$use_openssl"/include/openssl/opensslv.h 17219 then 17220 as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5 17221 fi 17222 CRYPTO='-DOPENSSL' 17223 if test "/usr" = "$use_openssl" 17224 then 17225 DST_OPENSSL_INC="" 17226 DST_OPENSSL_LIBS="-lcrypto" 17227 else 17228 DST_OPENSSL_INC="-I$use_openssl/include" 17229 case $host in 17230 *-solaris*) 17231 DST_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto" 17232 ;; 17233 *-hp-hpux*) 17234 DST_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto" 17235 ;; 17236 *-apple-darwin*) 17237 # 17238 # Apple's ld seaches for serially for dynamic 17239 # then static libraries. This means you can't 17240 # use -L to override dynamic system libraries 17241 # with static ones when linking. Instead 17242 # we specify a absolute path. 17243 # 17244 if test -f "$use_openssl/lib/libcrypto.dylib" 17245 then 17246 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" 17247 else 17248 DST_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a" 17249 fi 17250 ;; 17251 *) 17252 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" 17253 ;; 17254 esac 17255 fi 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5 17257$as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; } 17258 17259 saved_cc="$CC" 17260 saved_cflags="$CFLAGS" 17261 saved_libs="$LIBS" 17262 CFLAGS="$DST_OPENSSL_INC $CFLAGS" 17263 LIBS="$DST_OPENSSL_LIBS $LIBS" 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5 17265$as_echo_n "checking whether linking with OpenSSL works... " >&6; } 17266 if test "$cross_compiling" = yes; then : 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5 17268$as_echo "assuming it does work on target platform" >&6; } 17269else 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272 17273#include <openssl/err.h> 17274int main() { 17275 ERR_clear_error(); 17276 return (0); 17277} 17278 17279_ACEOF 17280if ac_fn_c_try_run "$LINENO"; then : 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17282$as_echo "yes" >&6; } 17283else 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17285$as_echo "no" >&6; } 17286 as_fn_error $? "Could not run test program using OpenSSL from 17287$use_openssl/lib and $use_openssl/include. 17288Please check the argument to --with-openssl and your 17289shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5 17290fi 17291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17292 conftest.$ac_objext conftest.beam conftest.$ac_ext 17293fi 17294 17295 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5 17297$as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; } 17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17299/* end confdefs.h. */ 17300 17301#include <openssl/opensslv.h> 17302#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) 17303#include <openssl/crypto.h> 17304#else 17305#include <openssl/err.h> 17306#include <openssl/dso.h> 17307#endif 17308 17309int 17310main () 17311{ 17312 17313#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) 17314OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); 17315#else 17316DSO_METHOD_dlfcn(); 17317#endif 17318 17319 ; 17320 return 0; 17321} 17322_ACEOF 17323if ac_fn_c_try_link "$LINENO"; then : 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17325$as_echo "no" >&6; } 17326else 17327 LIBS="$LIBS -ldl" 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330 17331#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) 17332#include <openssl/crypto.h> 17333#else 17334#include <openssl/err.h> 17335#include <openssl/dso.h> 17336#endif 17337 17338int 17339main () 17340{ 17341 17342#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) 17343OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); 17344#else 17345DSO_METHOD_dlfcn(); 17346#endif 17347 17348 ; 17349 return 0; 17350} 17351_ACEOF 17352if ac_fn_c_try_link "$LINENO"; then : 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17354$as_echo "yes" >&6; } 17355 DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl" 17356 17357else 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 17359$as_echo "unknown" >&6; } 17360 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5 17361fi 17362rm -f core conftest.err conftest.$ac_objext \ 17363 conftest$ac_exeext conftest.$ac_ext 17364 17365fi 17366rm -f core conftest.err conftest.$ac_objext \ 17367 conftest$ac_exeext conftest.$ac_ext 17368 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL FIPS mode support" >&5 17370$as_echo_n "checking for OpenSSL FIPS mode support... " >&6; } 17371 have_fips_mode="" 17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17373/* end confdefs.h. */ 17374#include <openssl/crypto.h> 17375int 17376main () 17377{ 17378FIPS_mode(); 17379 ; 17380 return 0; 17381} 17382_ACEOF 17383if ac_fn_c_try_link "$LINENO"; then : 17384 have_fips_mode=yes 17385else 17386 have_fips_mode=no 17387fi 17388rm -f core conftest.err conftest.$ac_objext \ 17389 conftest$ac_exeext conftest.$ac_ext 17390 if test "x$have_fips_mode" = "xyes" 17391 then 17392 17393$as_echo "#define HAVE_FIPS_MODE 1" >>confdefs.h 17394 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17396$as_echo "yes" >&6; } 17397 else 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17399$as_echo "no" >&6; } 17400 fi 17401 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5 17403$as_echo_n "checking for OpenSSL DSA support... " >&6; } 17404 if test -f $use_openssl/include/openssl/dsa.h 17405 then 17406 $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h 17407 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17409$as_echo "yes" >&6; } 17410 else 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17412$as_echo "no" >&6; } 17413 fi 17414 17415 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512 17416do : 17417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17418ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17419if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17420 cat >>confdefs.h <<_ACEOF 17421#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17422_ACEOF 17423 17424fi 17425done 17426 17427 17428 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key DSA_get0_pqg 17429do : 17430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17431ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17432if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17433 cat >>confdefs.h <<_ACEOF 17434#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17435_ACEOF 17436 17437fi 17438done 17439 17440 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5 17442$as_echo_n "checking for OpenSSL ECDSA support... " >&6; } 17443 have_ecdsa="" 17444 if test "$cross_compiling" = yes; then : 17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-ecdsa" >&5 17446$as_echo "using --with-ecdsa" >&6; } 17447else 17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17449/* end confdefs.h. */ 17450 17451#include <openssl/ecdsa.h> 17452#include <openssl/objects.h> 17453int main() { 17454 EC_KEY *ec256, *ec384; 17455 17456#if !defined(HAVE_EVP_SHA256) || !defined(HAVE_EVP_SHA384) 17457 return (1); 17458#endif 17459 ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); 17460 ec384 = EC_KEY_new_by_curve_name(NID_secp384r1); 17461 if (ec256 == NULL || ec384 == NULL) 17462 return (2); 17463 if (ec256 != NULL) 17464 EC_KEY_free(ec256); 17465 if (ec384 != NULL) 17466 EC_KEY_free(ec384); 17467 return (0); 17468} 17469 17470_ACEOF 17471if ac_fn_c_try_run "$LINENO"; then : 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17473$as_echo "yes" >&6; } 17474 have_ecdsa="yes" 17475else 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17477$as_echo "no" >&6; } 17478 have_ecdsa="no" 17479fi 17480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17481 conftest.$ac_objext conftest.beam conftest.$ac_ext 17482fi 17483 17484 case "$with_ecdsa" in 17485 yes) 17486 case "$have_ecdsa" in 17487 no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;; 17488 *) have_ecdsa=yes ;; 17489 esac 17490 ;; 17491 no) 17492 have_ecdsa=no ;; 17493 *) 17494 case "$have_ecdsa" in 17495 yes|no) ;; 17496 *) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;; 17497 esac 17498 ;; 17499 esac 17500 case $have_ecdsa in 17501 yes) 17502 OPENSSL_ECDSA="yes" 17503 OPENSSLECDSALINKOBJS='${OPENSSLECDSALINKOBJS}' 17504 OPENSSLECDSALINKSRCS='${OPENSSLECDSALINKSRCS}' 17505 17506$as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h 17507 17508 ;; 17509 *) 17510 ;; 17511 esac 17512 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5 17514$as_echo_n "checking for OpenSSL GOST support... " >&6; } 17515 have_gost="" 17516 case "$use_pkcs11" in 17517 auto|no) 17518 ;; 17519 *) 17520 if $use_threads; then 17521 CC="$CC -pthread" 17522 fi 17523 ;; 17524 esac 17525 if test "$cross_compiling" = yes; then : 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5 17527$as_echo "using --with-gost" >&6; } 17528else 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531 17532#include <openssl/conf.h> 17533#include <openssl/engine.h> 17534int main() { 17535#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10000000L) 17536 ENGINE *e; 17537 EC_KEY *ek; 17538 17539 ek = NULL; 17540 OPENSSL_config(NULL); 17541 17542 e = ENGINE_by_id("gost"); 17543 if (e == NULL) 17544 return (1); 17545 if (ENGINE_init(e) <= 0) 17546 return (1); 17547 return (0); 17548#else 17549 return (1); 17550#endif 17551} 17552 17553_ACEOF 17554if ac_fn_c_try_run "$LINENO"; then : 17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17556$as_echo "yes" >&6; } 17557 have_gost="yes" 17558else 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17560$as_echo "no" >&6; } 17561 have_gost="no" 17562fi 17563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17564 conftest.$ac_objext conftest.beam conftest.$ac_ext 17565fi 17566 17567 case "$with_gost" in 17568 yes) 17569 case "$have_gost" in 17570 no) as_fn_error $? "gost not supported" "$LINENO" 5 ;; 17571 *) have_gost=yes ;; 17572 esac 17573 ;; 17574 no) 17575 have_gost=no ;; 17576 *) 17577 case "$have_gost" in 17578 yes|no) ;; 17579 *) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;; 17580 esac 17581 ;; 17582 esac 17583 case $have_gost in 17584 yes) 17585 OPENSSL_GOST="yes" 17586 OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}' 17587 OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}' 17588 17589$as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h 17590 17591 ;; 17592 *) 17593 ;; 17594 esac 17595 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Ed25519 support" >&5 17597$as_echo_n "checking for OpenSSL Ed25519 support... " >&6; } 17598 have_ed25519="" 17599 have_ed448="" 17600 if test "$cross_compiling" = yes; then : 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-eddsa" >&5 17602$as_echo "using --with-eddsa" >&6; } 17603else 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606 17607#include <openssl/evp.h> 17608#include <openssl/objects.h> 17609int main() { 17610 EVP_PKEY_CTX *ctx; 17611 17612 ctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL); 17613 if (ctx == NULL) { 17614 return (2); 17615 } 17616 EVP_PKEY_CTX_free(ctx); 17617 return (0); 17618} 17619 17620_ACEOF 17621if ac_fn_c_try_run "$LINENO"; then : 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17623$as_echo "yes" >&6; } 17624 have_ed25519="yes" 17625else 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17627$as_echo "no" >&6; } 17628 have_ed25519="no" 17629fi 17630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17631 conftest.$ac_objext conftest.beam conftest.$ac_ext 17632fi 17633 17634 case "$with_eddsa" in 17635 yes|all) 17636 case "$have_ed25519" in 17637 no) as_fn_error $? "eddsa not supported" "$LINENO" 5 ;; 17638 *) have_ed25519=yes ;; 17639 esac 17640 ;; 17641 no) 17642 have_ed25519=no ;; 17643 *) 17644 case "$have_ed25519" in 17645 yes|no) ;; 17646 *) as_fn_error $? "need --with-eddsa=[yes, all or no]" "$LINENO" 5 ;; 17647 esac 17648 ;; 17649 esac 17650 case $have_ed25519 in 17651 yes) 17652 OPENSSL_ED25519="yes" 17653 OPENSSLEDDSALINKOBJS='${OPENSSLEDDSALINKOBJS}' 17654 OPENSSLEDDSALINKSRCS='${OPENSSLEDDSALINKSRCS}' 17655 17656$as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h 17657 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Ed448 support" >&5 17659$as_echo_n "checking for OpenSSL Ed448 support... " >&6; } 17660 if test "$cross_compiling" = yes; then : 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-eddsa" >&5 17662$as_echo "using --with-eddsa" >&6; } 17663else 17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17665/* end confdefs.h. */ 17666 17667#include <openssl/evp.h> 17668#include <openssl/objects.h> 17669int main() { 17670 EVP_PKEY_CTX *ctx; 17671 17672 ctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL); 17673 if (ctx == NULL) { 17674 return (2); 17675 } 17676 EVP_PKEY_CTX_free(ctx); 17677 return (0); 17678} 17679 17680_ACEOF 17681if ac_fn_c_try_run "$LINENO"; then : 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17683$as_echo "yes" >&6; } 17684 have_ed448="yes" 17685else 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17687$as_echo "no" >&6; } 17688 have_ed448="no" 17689fi 17690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17691 conftest.$ac_objext conftest.beam conftest.$ac_ext 17692fi 17693 17694 case $with_eddsa in 17695 all) 17696 have_ed448=yes ;; 17697 *) 17698 ;; 17699 esac 17700 case $have_ed448 in 17701 yes) 17702 17703$as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h 17704 17705 ;; 17706 *) 17707 ;; 17708 esac 17709 ;; 17710 *) 17711 ;; 17712 esac 17713 17714 have_aes="no" 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL AES support" >&5 17716$as_echo_n "checking for OpenSSL AES support... " >&6; } 17717 if test "$cross_compiling" = yes; then : 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-aes" >&5 17719$as_echo "using --with-aes" >&6; } 17720 # Expect cross-compiling with a modern OpenSSL 17721 have_aes="evp" 17722else 17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17724/* end confdefs.h. */ 17725 17726#include <openssl/evp.h> 17727int main() { 17728 const EVP_CIPHER *aes128, *aes192, *aes256; 17729 17730 aes128 = EVP_aes_128_ecb(); 17731 aes192 = EVP_aes_192_ecb(); 17732 aes256 = EVP_aes_256_ecb(); 17733 if (aes128 == NULL || aes192 == NULL || aes256 == NULL) 17734 return (1); 17735 return (0); 17736} 17737 17738_ACEOF 17739if ac_fn_c_try_run "$LINENO"; then : 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17741$as_echo "yes" >&6; } 17742 have_aes="evp" 17743else 17744 ac_fn_c_check_func "$LINENO" "AES_encrypt" "ac_cv_func_AES_encrypt" 17745if test "x$ac_cv_func_AES_encrypt" = xyes; then : 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17747$as_echo "yes" >&6; } 17748 have_aes="yes" 17749else 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17751$as_echo "no" >&6; } 17752fi 17753 17754fi 17755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17756 conftest.$ac_objext conftest.beam conftest.$ac_ext 17757fi 17758 17759 17760 ISC_OPENSSL_INC="" 17761 ISC_OPENSSL_LIBS="" 17762 if test "yes" = "$with_aes" 17763 then 17764 case "$have_aes" in 17765 evp) 17766 17767$as_echo "#define HAVE_OPENSSL_EVP_AES 1" >>confdefs.h 17768 17769 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 17770 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS" 17771 ;; 17772 yes) 17773 17774$as_echo "#define HAVE_OPENSSL_AES 1" >>confdefs.h 17775 17776 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 17777 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS" 17778 ;; 17779 *) 17780 ;; 17781 esac 17782 fi 17783 17784 CC="$saved_cc" 17785 CFLAGS="$saved_cflags" 17786 LIBS="$saved_libs" 17787 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}' 17788 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}' 17789 17790 ;; 17791esac 17792 17793# 17794# This would include the system openssl path (and linker options to use 17795# it as needed) if it is found. 17796# 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DST_OPENSSL_LIBS" 17812 17813ISC_PLATFORM_WANTAES="#undef ISC_PLATFORM_WANTAES" 17814if test "yes" = "$with_aes" 17815then 17816 if test "X$CRYPTO" = "X" 17817 then 17818 with_aes="no" 17819 fi 17820fi 17821if test "yes" = "$with_aes" 17822then 17823 ISC_PLATFORM_WANTAES="#define ISC_PLATFORM_WANTAES 1" 17824fi 17825 17826 17827# 17828# Choose Client Cookie algorithm 17829# 17830# [pairwise: skip] 17831 17832# Check whether --with-cc-alg was given. 17833if test "${with_cc_alg+set}" = set; then : 17834 withval=$with_cc_alg; : 17835else 17836 with_cc_alg="siphash24" 17837fi 17838 17839 17840case $with_cc_alg in #( 17841 siphash24) : 17842 : ;; #( 17843 *) : 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The Client Cookie is always SipHash 2-4 based" >&5 17845$as_echo "$as_me: WARNING: The Client Cookie is always SipHash 2-4 based" >&2;} ;; 17846esac 17847 17848if test "checkcc" = "$want_openssl_hash" 17849then 17850 want_openssl_hash="no" 17851fi 17852 17853# 17854# Use OpenSSL for hash functions 17855# 17856 17857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for using OpenSSL for hash functions" >&5 17858$as_echo_n "checking for using OpenSSL for hash functions... " >&6; } 17859ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH" 17860case $want_openssl_hash in 17861 yes) 17862 if test "$CRYPTO" != "-DOPENSSL" 17863 then 17864 as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5 17865 fi 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17867$as_echo "yes" >&6; } 17868 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1" 17869 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 17870 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS" 17871 ;; 17872 no) 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17874$as_echo "no" >&6; } 17875 ;; 17876esac 17877 17878 17879 17880 17881# 17882# PKCS11 (aka crypto hardware) support (--with moved just after openssl) 17883# 17884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5 17885$as_echo_n "checking for PKCS11 support... " >&6; } 17886 17887if test "auto" = "$use_pkcs11" 17888then 17889 if test "yes" = "$want_native_pkcs11" 17890 then 17891 use_pkcs11="yes" 17892 else 17893 use_pkcs11="no" 17894 fi 17895fi 17896 17897case "$use_pkcs11" in 17898 no) 17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17900$as_echo "no" >&6; } 17901 USE_PKCS11="" 17902 PKCS11_TEST="" 17903 PKCS11_TOOLS="" 17904 ISC_PK11_C="" 17905 ISC_PK11_O="" 17906 ISC_PK11_API_C="" 17907 ISC_PK11_API_O="" 17908 ISC_PK11_RESULT_C="" 17909 ISC_PK11_RESULT_O="" 17910 ISC_ISCPK11_API_C="" 17911 ISC_ISCPK11_API_O="" 17912 ;; 17913 yes|*) 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17915$as_echo "yes" >&6; } 17916 if ! $use_threads; then 17917 as_fn_error $? "PKCS11 requires thread support" "$LINENO" 5 17918 fi 17919 if test "X$CRYPTO" = "X-DOPENSSL" 17920 then 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL with PKCS11 support" >&5 17922$as_echo_n "checking for OpenSSL with PKCS11 support... " >&6; } 17923 saved_cc="$CC" 17924 saved_cflags="$CFLAGS" 17925 saved_libs="$LIBS" 17926 CC="$CC -pthread" 17927 CFLAGS="$CFLAGS $DST_OPENSSL_INC" 17928 LIBS="$LIBS $DST_OPENSSL_LIBS" 17929 if test "$cross_compiling" = yes; then : 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile" >&5 17931$as_echo "cross compile" >&6; } 17932 PKCS11_TEST='' 17933 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL' 17934else 17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17936/* end confdefs.h. */ 17937 17938#include <openssl/conf.h> 17939#include <openssl/engine.h> 17940int main() { 17941 ENGINE *e; 17942 17943 OPENSSL_config(NULL); 17944 e = ENGINE_by_id("pkcs11"); 17945 if (e == NULL) 17946 return (1); 17947 if (ENGINE_init(e) <= 0) 17948 return (1); 17949 return (0); 17950} 17951 17952_ACEOF 17953if ac_fn_c_try_run "$LINENO"; then : 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17955$as_echo "yes" >&6; } 17956 PKCS11_TEST=pkcs11ssl 17957 PKCS11_ENGINE='-DPKCS11_ENGINE="\"pkcs11\""' 17958else 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17960$as_echo "no" >&6; } 17961 PKCS11_TEST='' 17962 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL' 17963fi 17964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17965 conftest.$ac_objext conftest.beam conftest.$ac_ext 17966fi 17967 17968 CC="$saved_cc" 17969 CFLAGS="$saved_cflags" 17970 LIBS="$saved_libs" 17971 else 17972 PKCS11_TEST='' 17973 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL' 17974 17975 fi 17976 USE_PKCS11='-DUSE_PKCS11' 17977 PKCS11_TOOLS=pkcs11 17978 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 17979if test "x$ac_cv_func_getpassphrase" = xyes; then : 17980 $as_echo "#define HAVE_GETPASSPHRASE 1" >>confdefs.h 17981 17982fi 17983 17984 ISC_PK11_C="pk11.c" 17985 ISC_PK11_O="pk11.$O" 17986 ISC_PK11_API_C="pk11_api.c" 17987 ISC_PK11_API_O="pk11_api.$O" 17988 ISC_PK11_RESULT_C="pk11_result.c" 17989 ISC_PK11_RESULT_O="pk11_result.$O" 17990 ISC_ISCPK11_API_C="unix/pk11_api.c" 17991 ISC_ISCPK11_API_O="unix/pk11_api.$O" 17992 ;; 17993esac 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5 18007$as_echo_n "checking for PKCS11 tools... " >&6; } 18008case "$use_pkcs11" in 18009 no) 18010 PKCS11_PROVIDER="undefined" 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18012$as_echo "disabled" >&6; } 18013 ;; 18014 yes|'') 18015 PKCS11_PROVIDER="undefined" 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18017$as_echo "enabled" >&6; } 18018 ;; 18019 *) 18020 PKCS11_PROVIDER="$use_pkcs11" 18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled, PKCS11 provider is $PKCS11_PROVIDER" >&5 18022$as_echo "enabled, PKCS11 provider is $PKCS11_PROVIDER" >&6; } 18023 ;; 18024esac 18025 18026 18027 18028PKCS11_ECDSA="" 18029PKCS11_GOST="" 18030PKCS11_ED25519="" 18031set_pk11_flavor="no" 18032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native PKCS11" >&5 18033$as_echo_n "checking for native PKCS11... " >&6; } 18034 18035case "$want_native_pkcs11" in 18036 yes) 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using native PKCS11 crypto" >&5 18038$as_echo "using native PKCS11 crypto" >&6; } 18039 PKCS11LINKOBJS='${PKCS11LINKOBJS}' 18040 PKCS11LINKSRCS='${PKCS11LINKSRCS}' 18041 PKCS11_TEST=pkcs11 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 ECDSA" >&5 18043$as_echo_n "checking for PKCS11 ECDSA... " >&6; } 18044 case "$with_ecdsa" in 18045 no) 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18047$as_echo "disabled" >&6; } 18048 ;; 18049 *) 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18051$as_echo "enabled" >&6; } 18052 PKCS11_ECDSA="yes" 18053 18054$as_echo "#define HAVE_PKCS11_ECDSA 1" >>confdefs.h 18055 18056 ;; 18057 esac 18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 GOST" >&5 18059$as_echo_n "checking for PKCS11 GOST... " >&6; } 18060 case "$with_gost" in 18061 yes) 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18063$as_echo "enabled" >&6; } 18064 PKCS11_GOST="yes" 18065 18066$as_echo "#define HAVE_PKCS11_GOST 1" >>confdefs.h 18067 18068 ;; 18069 *) 18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18071$as_echo "disabled" >&6; } 18072 ;; 18073 esac 18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 Ed25519" >&5 18075$as_echo_n "checking for PKCS11 Ed25519... " >&6; } 18076 case "$with_eddsa" in 18077 yes|all) 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18079$as_echo "enabled" >&6; } 18080 PKCS11_ED25519="yes" 18081 18082$as_echo "#define HAVE_PKCS11_ED25519 1" >>confdefs.h 18083 18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 Ed448" >&5 18085$as_echo_n "checking for PKCS11 Ed448... " >&6; } 18086 case "$with_eddsa" in 18087 all) 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18089$as_echo "enabled" >&6; } 18090 18091$as_echo "#define HAVE_PKCS11_ED448 1" >>confdefs.h 18092 18093 ;; 18094 *) 18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18096$as_echo "disabled" >&6; } 18097 ;; 18098 esac 18099 ;; 18100 *) 18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18102$as_echo "disabled" >&6; } 18103 ;; 18104 esac 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 flavor" >&5 18106$as_echo_n "checking for PKCS11 flavor... " >&6; } 18107 case "$PKCS11_PROVIDER" in 18108 *nfast*) 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Thales nCipher" >&5 18110$as_echo "Thales nCipher" >&6; } 18111 # default 18112 pk11_flavor="PK11_THALES_FLAVOR" 18113 set_pk11_flavor="yes" 18114 ;; 18115 *libsofthsm2*) 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SoftHSMv2" >&5 18117$as_echo "SoftHSMv2" >&6; } 18118 pk11_flavor="PK11_SOFTHSMV2_FLAVOR" 18119 set_pk11_flavor="yes" 18120 ;; 18121 *libsofthsm*) 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SoftHSM" >&5 18123$as_echo "SoftHSM" >&6; } 18124 pk11_flavor="PK11_SOFTHSMV1_FLAVOR" 18125 set_pk11_flavor="yes" 18126 ;; 18127 *cryptech*) 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cryptech" >&5 18129$as_echo "Cryptech" >&6; } 18130 pk11_flavor="PK11_CRYPTECH_FLAVOR" 18131 set_pk11_flavor="yes" 18132 ;; 18133 *Keyper*) 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AEP Keyper" >&5 18135$as_echo "AEP Keyper" >&6; } 18136 pk11_flavor="PK11_AEP_FLAVOR" 18137 set_pk11_flavor="yes" 18138 ;; 18139 *libcs*) 18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Utimaco HSM" >&5 18141$as_echo "Utimaco HSM" >&6; } 18142 pk11_flavor="PK11_UTIMACO_FLAVOR" 18143 set_pk11_flavor="yes" 18144 ;; 18145 undefined) 18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undefined provider?" >&5 18147$as_echo "undefined provider?" >&6; } 18148 ;; 18149 *) 18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown provider: tweaks are in lib/isc/include/pk11/site.h" >&5 18151$as_echo "unknown provider: tweaks are in lib/isc/include/pk11/site.h" >&6; } 18152 ;; 18153 esac 18154 if test "yes" = "$set_pk11_flavor" ; then 18155 CFLAGS="$CFLAGS -DPK11_FLAVOR=$pk11_flavor" 18156 fi 18157 ;; 18158 no|'') 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18160$as_echo "disabled" >&6; } 18161 ;; 18162esac 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172# for PKCS11 benchmarks 18173 18174have_clock_gt=no 18175ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 18176if test "x$ac_cv_func_clock_gettime" = xyes; then : 18177 have_clock_gt=yes 18178fi 18179 18180if test "no" = "$have_clock_gt"; then 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 18182$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 18183if ${ac_cv_lib_rt_clock_gettime+:} false; then : 18184 $as_echo_n "(cached) " >&6 18185else 18186 ac_check_lib_save_LIBS=$LIBS 18187LIBS="-lrt $LIBS" 18188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18189/* end confdefs.h. */ 18190 18191/* Override any GCC internal prototype to avoid an error. 18192 Use char because int might match the return type of a GCC 18193 builtin and then its argument prototype would still apply. */ 18194#ifdef __cplusplus 18195extern "C" 18196#endif 18197char clock_gettime (); 18198int 18199main () 18200{ 18201return clock_gettime (); 18202 ; 18203 return 0; 18204} 18205_ACEOF 18206if ac_fn_c_try_link "$LINENO"; then : 18207 ac_cv_lib_rt_clock_gettime=yes 18208else 18209 ac_cv_lib_rt_clock_gettime=no 18210fi 18211rm -f core conftest.err conftest.$ac_objext \ 18212 conftest$ac_exeext conftest.$ac_ext 18213LIBS=$ac_check_lib_save_LIBS 18214fi 18215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 18216$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 18217if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 18218 have_clock_gt=rt 18219fi 18220 18221fi 18222 18223if test "no" != "$have_clock_gt"; then 18224 18225$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 18226 18227fi 18228 18229if test "rt" = "$have_clock_gt"; then 18230 LIBS="-lrt $LIBS" 18231fi 18232 18233# 18234# was --with-lmdb specified? 18235# 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5 18237$as_echo_n "checking for lmdb library... " >&6; } 18238 18239# [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb] 18240 18241# Check whether --with-lmdb was given. 18242if test "${with_lmdb+set}" = set; then : 18243 withval=$with_lmdb; use_lmdb="$withval" 18244else 18245 use_lmdb="auto" 18246fi 18247 18248 18249have_lmdb="" 18250case "$use_lmdb" in 18251 no) 18252 lmdb_libs="" 18253 ;; 18254 auto|yes) 18255 for d in /usr /usr/local /opt/local 18256 do 18257 if test -f "${d}/include/lmdb.h" 18258 then 18259 if test ${d} != /usr 18260 then 18261 lmdb_cflags="-I ${d}/include" 18262 LIBS="$LIBS -L${d}/lib" 18263 fi 18264 have_lmdb="yes" 18265 fi 18266 done 18267 ;; 18268 *) 18269 if test -f "${use_lmdb}/include/lmdb.h" 18270 then 18271 lmdb_cflags="-I${use_lmdb}/include" 18272 LIBS="$LIBS -L${use_lmdb}/lib" 18273 have_lmdb="yes" 18274 else 18275 as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5 18276 fi 18277 ;; 18278esac 18279 18280if test "X${have_lmdb}" != "X" 18281then 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18283$as_echo "yes" >&6; } 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 18285$as_echo_n "checking for library containing mdb_env_create... " >&6; } 18286if ${ac_cv_search_mdb_env_create+:} false; then : 18287 $as_echo_n "(cached) " >&6 18288else 18289 ac_func_search_save_LIBS=$LIBS 18290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18291/* end confdefs.h. */ 18292 18293/* Override any GCC internal prototype to avoid an error. 18294 Use char because int might match the return type of a GCC 18295 builtin and then its argument prototype would still apply. */ 18296#ifdef __cplusplus 18297extern "C" 18298#endif 18299char mdb_env_create (); 18300int 18301main () 18302{ 18303return mdb_env_create (); 18304 ; 18305 return 0; 18306} 18307_ACEOF 18308for ac_lib in '' lmdb; do 18309 if test -z "$ac_lib"; then 18310 ac_res="none required" 18311 else 18312 ac_res=-l$ac_lib 18313 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18314 fi 18315 if ac_fn_c_try_link "$LINENO"; then : 18316 ac_cv_search_mdb_env_create=$ac_res 18317fi 18318rm -f core conftest.err conftest.$ac_objext \ 18319 conftest$ac_exeext 18320 if ${ac_cv_search_mdb_env_create+:} false; then : 18321 break 18322fi 18323done 18324if ${ac_cv_search_mdb_env_create+:} false; then : 18325 18326else 18327 ac_cv_search_mdb_env_create=no 18328fi 18329rm conftest.$ac_ext 18330LIBS=$ac_func_search_save_LIBS 18331fi 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 18333$as_echo "$ac_cv_search_mdb_env_create" >&6; } 18334ac_res=$ac_cv_search_mdb_env_create 18335if test "$ac_res" != no; then : 18336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18337 18338else 18339 as_fn_error $? "found lmdb include but not library." "$LINENO" 5 18340 have_lmdb="" 18341fi 18342 18343elif test "X$use_lmdb" = Xyes 18344then 18345 as_fn_error $? "include/lmdb.h not found." "$LINENO" 5 18346else 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18348$as_echo "no" >&6; } 18349fi 18350 18351NZD_TOOLS="" 18352NZDSRCS= 18353NZDTARGETS= 18354if test "X${have_lmdb}" != "X" 18355then 18356 CFLAGS="$CFLAGS $lmdb_cflags" 18357 18358$as_echo "#define HAVE_LMDB 1" >>confdefs.h 18359 18360 NZD_TOOLS="nzd" 18361 NZDSRCS='${NZDSRCS}' 18362 NZDTARGETS='${NZDTARGETS}' 18363fi 18364 18365 18366 18367 18368# 18369# was --with-libxml2 specified? 18370# 18371# [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2] 18372 18373# Check whether --with-libxml2 was given. 18374if test "${with_libxml2+set}" = set; then : 18375 withval=$with_libxml2; : 18376else 18377 with_libxml2="auto" 18378fi 18379 18380 18381LIBXML2_CFLAGS= 18382LIBXML2_LIBS= 18383case $with_libxml2 in #( 18384 no) : 18385 : ;; #( 18386 auto) : 18387 18388pkg_failed=no 18389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5 18390$as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; } 18391 18392if test -n "$LIBXML2_CFLAGS"; then 18393 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 18394 elif test -n "$PKG_CONFIG"; then 18395 if test -n "$PKG_CONFIG" && \ 18396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 18397 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 18398 ac_status=$? 18399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18400 test $ac_status = 0; }; then 18401 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` 18402 test "x$?" != "x0" && pkg_failed=yes 18403else 18404 pkg_failed=yes 18405fi 18406 else 18407 pkg_failed=untried 18408fi 18409if test -n "$LIBXML2_LIBS"; then 18410 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 18411 elif test -n "$PKG_CONFIG"; then 18412 if test -n "$PKG_CONFIG" && \ 18413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 18414 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 18415 ac_status=$? 18416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18417 test $ac_status = 0; }; then 18418 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` 18419 test "x$?" != "x0" && pkg_failed=yes 18420else 18421 pkg_failed=yes 18422fi 18423 else 18424 pkg_failed=untried 18425fi 18426 18427 18428 18429if test $pkg_failed = yes; then 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18431$as_echo "no" >&6; } 18432 18433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18434 _pkg_short_errors_supported=yes 18435else 18436 _pkg_short_errors_supported=no 18437fi 18438 if test $_pkg_short_errors_supported = yes; then 18439 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 18440 else 18441 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 18442 fi 18443 # Put the nasty error message in config.log where it belongs 18444 echo "$LIBXML2_PKG_ERRORS" >&5 18445 18446 : 18447elif test $pkg_failed = untried; then 18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18449$as_echo "no" >&6; } 18450 : 18451else 18452 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 18453 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18455$as_echo "yes" >&6; } 18456 : 18457fi ;; #( 18458 yes) : 18459 18460pkg_failed=no 18461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5 18462$as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; } 18463 18464if test -n "$LIBXML2_CFLAGS"; then 18465 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 18466 elif test -n "$PKG_CONFIG"; then 18467 if test -n "$PKG_CONFIG" && \ 18468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 18469 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 18470 ac_status=$? 18471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18472 test $ac_status = 0; }; then 18473 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` 18474 test "x$?" != "x0" && pkg_failed=yes 18475else 18476 pkg_failed=yes 18477fi 18478 else 18479 pkg_failed=untried 18480fi 18481if test -n "$LIBXML2_LIBS"; then 18482 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 18483 elif test -n "$PKG_CONFIG"; then 18484 if test -n "$PKG_CONFIG" && \ 18485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 18486 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 18487 ac_status=$? 18488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18489 test $ac_status = 0; }; then 18490 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` 18491 test "x$?" != "x0" && pkg_failed=yes 18492else 18493 pkg_failed=yes 18494fi 18495 else 18496 pkg_failed=untried 18497fi 18498 18499 18500 18501if test $pkg_failed = yes; then 18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18503$as_echo "no" >&6; } 18504 18505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18506 _pkg_short_errors_supported=yes 18507else 18508 _pkg_short_errors_supported=no 18509fi 18510 if test $_pkg_short_errors_supported = yes; then 18511 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 18512 else 18513 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 18514 fi 18515 # Put the nasty error message in config.log where it belongs 18516 echo "$LIBXML2_PKG_ERRORS" >&5 18517 18518 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met: 18519 18520$LIBXML2_PKG_ERRORS 18521 18522Consider adjusting the PKG_CONFIG_PATH environment variable if you 18523installed software in a non-standard prefix. 18524 18525Alternatively, you may set the environment variables LIBXML2_CFLAGS 18526and LIBXML2_LIBS to avoid the need to call pkg-config. 18527See the pkg-config man page for more details." "$LINENO" 5 18528elif test $pkg_failed = untried; then 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18530$as_echo "no" >&6; } 18531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18533as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18534is in your PATH or set the PKG_CONFIG environment variable to the full 18535path to pkg-config. 18536 18537Alternatively, you may set the environment variables LIBXML2_CFLAGS 18538and LIBXML2_LIBS to avoid the need to call pkg-config. 18539See the pkg-config man page for more details. 18540 18541To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18542See \`config.log' for more details" "$LINENO" 5; } 18543else 18544 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 18545 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18547$as_echo "yes" >&6; } 18548 18549fi ;; #( 18550 *) : 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library in $with_libxml2" >&5 18552$as_echo_n "checking for libxml2 library in $with_libxml2... " >&6; } 18553 if test -x "$with_libxml2/bin/xml2-config"; then : 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18555$as_echo "yes" >&6; } 18556 LIBXML2_LIBS=`$with_libxml2/bin/xml2-config --libs` 18557 LIBXML2_CFLAGS=`$with_libxml2/bin/xml2-config --cflags` 18558else 18559 as_fn_error $? "not found" "$LINENO" 5 18560fi ;; 18561esac 18562 18563if test -n "$LIBXML2_LIBS"; then : 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with libxml2 works" >&5 18565$as_echo_n "checking whether linking with libxml2 works... " >&6; } 18566 CFLAGS="$CFLAGS $LIBXML2_CFLAGS" 18567 LIBS="$LIBS $LIBXML2_LIBS" 18568 # 18569 # Sanity check xml2-config output. 18570 # 18571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18572/* end confdefs.h. */ 18573#include <libxml/xmlwriter.h> 18574int 18575main () 18576{ 18577return(xmlTextWriterStartElement(NULL, NULL)); 18578 ; 18579 return 0; 18580} 18581_ACEOF 18582if ac_fn_c_try_link "$LINENO"; then : 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18584$as_echo "yes" >&6; } 18585else 18586 as_fn_error $? "no" "$LINENO" 5 18587fi 18588rm -f core conftest.err conftest.$ac_objext \ 18589 conftest$ac_exeext conftest.$ac_ext 18590 18591$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h 18592 18593 XMLSTATS=1 18594fi 18595 18596 18597# 18598# was --with-libjson specified? 18599# 18600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5 18601$as_echo_n "checking for json library... " >&6; } 18602 18603# [pairwise: --with-libjson=auto, --with-libjson=yes, --without-libjson] 18604 18605# Check whether --with-libjson was given. 18606if test "${with_libjson+set}" = set; then : 18607 withval=$with_libjson; use_libjson="$withval" 18608else 18609 use_libjson="auto" 18610fi 18611 18612 18613have_libjson="" 18614have_libjson_c="" 18615case "$use_libjson" in 18616 no) 18617 libjson_libs="" 18618 ;; 18619 auto|yes) 18620 for d in /usr /usr/local /opt/local 18621 do 18622 if test -f "${d}/include/json-c/json.h" 18623 then 18624 if test ${d} != /usr 18625 then 18626 libjson_cflags="-I ${d}/include" 18627 LIBS="$LIBS -L${d}/lib" 18628 fi 18629 have_libjson="yes" 18630 have_libjson_c="yes" 18631 fi 18632 done 18633 ;; 18634 *) 18635 if test -f "${use_libjson}/include/json-c/json.h" 18636 then 18637 libjson_cflags="-I${use_libjson}/include" 18638 LIBS="$LIBS -L${use_libjson}/lib" 18639 have_libjson="yes" 18640 have_libjson_c="yes" 18641 else 18642 as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5 18643 fi 18644 ;; 18645esac 18646 18647if test "X${have_libjson}" != "X" 18648then 18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18650$as_echo "yes" >&6; } 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5 18652$as_echo_n "checking for library containing json_object_new_int64... " >&6; } 18653if ${ac_cv_search_json_object_new_int64+:} false; then : 18654 $as_echo_n "(cached) " >&6 18655else 18656 ac_func_search_save_LIBS=$LIBS 18657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658/* end confdefs.h. */ 18659 18660/* Override any GCC internal prototype to avoid an error. 18661 Use char because int might match the return type of a GCC 18662 builtin and then its argument prototype would still apply. */ 18663#ifdef __cplusplus 18664extern "C" 18665#endif 18666char json_object_new_int64 (); 18667int 18668main () 18669{ 18670return json_object_new_int64 (); 18671 ; 18672 return 0; 18673} 18674_ACEOF 18675for ac_lib in '' json json-c; do 18676 if test -z "$ac_lib"; then 18677 ac_res="none required" 18678 else 18679 ac_res=-l$ac_lib 18680 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18681 fi 18682 if ac_fn_c_try_link "$LINENO"; then : 18683 ac_cv_search_json_object_new_int64=$ac_res 18684fi 18685rm -f core conftest.err conftest.$ac_objext \ 18686 conftest$ac_exeext 18687 if ${ac_cv_search_json_object_new_int64+:} false; then : 18688 break 18689fi 18690done 18691if ${ac_cv_search_json_object_new_int64+:} false; then : 18692 18693else 18694 ac_cv_search_json_object_new_int64=no 18695fi 18696rm conftest.$ac_ext 18697LIBS=$ac_func_search_save_LIBS 18698fi 18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5 18700$as_echo "$ac_cv_search_json_object_new_int64" >&6; } 18701ac_res=$ac_cv_search_json_object_new_int64 18702if test "$ac_res" != no; then : 18703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18704 18705else 18706 as_fn_error $? "found libjson include but not library." "$LINENO" 5 18707 have_libjson="" 18708fi 18709 18710elif test "X$use_libjson" = Xyes 18711then 18712 as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5 18713else 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18715$as_echo "no" >&6; } 18716fi 18717 18718if test "X${have_libjson}" != "X" 18719then 18720 CFLAGS="$CFLAGS $libjson_cflags" 18721 18722$as_echo "#define HAVE_JSON 1" >>confdefs.h 18723 18724 if test "X${have_libjson_c}" = Xyes 18725 then 18726 18727$as_echo "#define HAVE_JSON_C 1" >>confdefs.h 18728 18729 fi 18730 JSONSTATS=1 18731fi 18732 18733 18734# 18735# was --with-zlib specified? 18736# 18737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5 18738$as_echo_n "checking for zlib library... " >&6; } 18739 18740# [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib] 18741 18742# Check whether --with-zlib was given. 18743if test "${with_zlib+set}" = set; then : 18744 withval=$with_zlib; with_zlib="$withval" 18745else 18746 with_zlib="auto" 18747fi 18748 18749 18750have_zlib="" 18751case "$with_zlib" in 18752 no) 18753 zlib_libs="" 18754 ;; 18755 auto|yes) 18756 for d in /usr /usr/local /opt/local 18757 do 18758 if test -f "${d}/include/zlib.h" 18759 then 18760 if test ${d} != /usr 18761 then 18762 zlib_cflags="-I ${d}/include" 18763 LIBS="$LIBS -L${d}/lib" 18764 fi 18765 have_zlib="yes" 18766 fi 18767 done 18768 ;; 18769 *) 18770 if test -f "${with_zlib}/include/zlib.h" 18771 then 18772 zlib_cflags="-I${with_zlib}/include" 18773 LIBS="$LIBS -L${with_zlib}/lib" 18774 have_zlib="yes" 18775 else 18776 as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5 18777 fi 18778 ;; 18779esac 18780 18781if test "X${have_zlib}" != "X" 18782then 18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18784$as_echo "yes" >&6; } 18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 18786$as_echo_n "checking for library containing deflate... " >&6; } 18787if ${ac_cv_search_deflate+:} false; then : 18788 $as_echo_n "(cached) " >&6 18789else 18790 ac_func_search_save_LIBS=$LIBS 18791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18792/* end confdefs.h. */ 18793 18794/* Override any GCC internal prototype to avoid an error. 18795 Use char because int might match the return type of a GCC 18796 builtin and then its argument prototype would still apply. */ 18797#ifdef __cplusplus 18798extern "C" 18799#endif 18800char deflate (); 18801int 18802main () 18803{ 18804return deflate (); 18805 ; 18806 return 0; 18807} 18808_ACEOF 18809for ac_lib in '' z; do 18810 if test -z "$ac_lib"; then 18811 ac_res="none required" 18812 else 18813 ac_res=-l$ac_lib 18814 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18815 fi 18816 if ac_fn_c_try_link "$LINENO"; then : 18817 ac_cv_search_deflate=$ac_res 18818fi 18819rm -f core conftest.err conftest.$ac_objext \ 18820 conftest$ac_exeext 18821 if ${ac_cv_search_deflate+:} false; then : 18822 break 18823fi 18824done 18825if ${ac_cv_search_deflate+:} false; then : 18826 18827else 18828 ac_cv_search_deflate=no 18829fi 18830rm conftest.$ac_ext 18831LIBS=$ac_func_search_save_LIBS 18832fi 18833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 18834$as_echo "$ac_cv_search_deflate" >&6; } 18835ac_res=$ac_cv_search_deflate 18836if test "$ac_res" != no; then : 18837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18838 18839else 18840 as_fn_error $? "found zlib include but not library." "$LINENO" 5 18841 have_zlib="" 18842fi 18843 18844elif test "X$with_zlib" = Xyes 18845then 18846 as_fn_error $? "include/zlib.h not found." "$LINENO" 5 18847else 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18849$as_echo "no" >&6; } 18850fi 18851 18852ZLIB= 18853if test "X${have_zlib}" != "X" 18854then 18855 CFLAGS="$CFLAGS $zlib_cflags" 18856 18857$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 18858 18859 ZLIB=1 18860fi 18861 18862 18863 18864# 18865# In solaris 10, SMF can manage named service 18866# 18867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5 18868$as_echo_n "checking for smf_enable_instance in -lscf... " >&6; } 18869if ${ac_cv_lib_scf_smf_enable_instance+:} false; then : 18870 $as_echo_n "(cached) " >&6 18871else 18872 ac_check_lib_save_LIBS=$LIBS 18873LIBS="-lscf $LIBS" 18874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18875/* end confdefs.h. */ 18876 18877/* Override any GCC internal prototype to avoid an error. 18878 Use char because int might match the return type of a GCC 18879 builtin and then its argument prototype would still apply. */ 18880#ifdef __cplusplus 18881extern "C" 18882#endif 18883char smf_enable_instance (); 18884int 18885main () 18886{ 18887return smf_enable_instance (); 18888 ; 18889 return 0; 18890} 18891_ACEOF 18892if ac_fn_c_try_link "$LINENO"; then : 18893 ac_cv_lib_scf_smf_enable_instance=yes 18894else 18895 ac_cv_lib_scf_smf_enable_instance=no 18896fi 18897rm -f core conftest.err conftest.$ac_objext \ 18898 conftest$ac_exeext conftest.$ac_ext 18899LIBS=$ac_check_lib_save_LIBS 18900fi 18901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5 18902$as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; } 18903if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then : 18904 cat >>confdefs.h <<_ACEOF 18905#define HAVE_LIBSCF 1 18906_ACEOF 18907 18908 LIBS="-lscf $LIBS" 18909 18910fi 18911 18912 18913# 18914# flockfile is usually provided by pthreads, but we may want to use it 18915# even if compiled with --disable-threads. getc_unlocked might also not 18916# be defined. 18917# 18918ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 18919if test "x$ac_cv_func_flockfile" = xyes; then : 18920 $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h 18921 18922fi 18923 18924ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 18925if test "x$ac_cv_func_getc_unlocked" = xyes; then : 18926 $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h 18927 18928fi 18929 18930 18931# 18932# Indicate what the final decision was regarding threads. 18933# 18934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5 18935$as_echo_n "checking whether to build with threads... " >&6; } 18936if $use_threads; then 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18938$as_echo "yes" >&6; } 18939else 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18941$as_echo "no" >&6; } 18942fi 18943 18944# 18945# End of pthreads stuff. 18946# 18947 18948# 18949# Large File 18950# 18951# [pairwise: --enable-largefile, --disable-largefile] 18952# Check whether --enable-largefile was given. 18953if test "${enable_largefile+set}" = set; then : 18954 enableval=$enable_largefile; want_largefile="yes" 18955else 18956 want_largefile="no" 18957fi 18958 18959case $want_largefile in 18960 yes) 18961 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 18962 ;; 18963 *) 18964 ;; 18965esac 18966 18967# 18968# Additional compiler settings. 18969# 18970MKDEPCC="$CC" 18971MKDEPCFLAGS="-M" 18972IRIX_DNSSEC_WARNINGS_HACK="" 18973 18974if test "X$GCC" = "Xyes"; then 18975 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5 18977$as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; } 18978 SAVE_CFLAGS="$CFLAGS" 18979 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing" 18980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18981/* end confdefs.h. */ 18982 18983int 18984main () 18985{ 18986 18987 ; 18988 return 0; 18989} 18990_ACEOF 18991if ac_fn_c_try_compile "$LINENO"; then : 18992 FNOSTRICTALIASING=yes 18993else 18994 FNOSTRICTALIASING=no 18995fi 18996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18997 CFLAGS="$SAVE_CFLAGS" 18998 if test "yes" = "$FNOSTRICTALIASING"; then 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19000$as_echo "yes" >&6; } 19001 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing" 19002 else 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19004$as_echo "no" >&6; } 19005 fi 19006 # 19007 # turn off delete null pointer checks 19008 # 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5 19010$as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; } 19011 SAVE_CFLAGS="$CFLAGS" 19012 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks" 19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19014/* end confdefs.h. */ 19015 19016int 19017main () 19018{ 19019 19020 ; 19021 return 0; 19022} 19023_ACEOF 19024if ac_fn_c_try_compile "$LINENO"; then : 19025 FNODELETENULLPOINTERCHECKS=yes 19026else 19027 FNODELETENULLPOINTERCHECKS=no 19028fi 19029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19030 CFLAGS="$SAVE_CFLAGS" 19031 if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19033$as_echo "yes" >&6; } 19034 STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks" 19035 else 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19037$as_echo "no" >&6; } 19038 fi 19039 case "$host" in 19040 *-hp-hpux*) 19041 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings" 19042 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings" 19043 ;; 19044 esac 19045 if test "X$enable_warn_shadow" = Xyes; then 19046 STD_CWARNINGS="$STD_CWARNINGS -Wshadow" 19047 fi 19048 if test "X$enable_warn_error" = Xyes; then 19049 STD_CWARNINGS="$STD_CWARNINGS -Werror" 19050 fi 19051else 19052 case $host in 19053 *-dec-osf*) 19054 CC="$CC -std" 19055 CCOPT="$CCOPT -std" 19056 CCNOOPT="$CCNOOPT -std" 19057 MKDEPCC="$CC" 19058 ;; 19059 *-hp-hpux*) 19060 CC="$CC -Ae -z" 19061 # The version of the C compiler that constantly warns about 19062 # 'const' as well as alignment issues is unfortunately not 19063 # able to be discerned via the version of the operating 19064 # system, nor does cc have a version flag. 19065 case "`$CC +W 123 2>&1`" in 19066 *Unknown?option*) 19067 STD_CWARNINGS="+w1" 19068 ;; 19069 *) 19070 # Turn off the pointlessly noisy warnings. 19071 STD_CWARNINGS="+w1 +W 474,530,2193,2236" 19072 ;; 19073 esac 19074 CCOPT="$CCOPT -Ae -z" 19075 CCNOOPT="$CCNOOPT -Ae -z" 19076 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings" 19077 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings" 19078 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' 19079 ;; 19080 *-sgi-irix*) 19081 STD_CWARNINGS="-fullwarn -woff 1209" 19082 # 19083 # Silence more than 250 instances of 19084 # "prototyped function redeclared without prototype" 19085 # and 11 instances of 19086 # "variable ... was set but never used" 19087 # from lib/dns/sec/openssl. 19088 # 19089 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552" 19090 ;; 19091 *-solaris*) 19092 MKDEPCFLAGS="-xM" 19093 ;; 19094 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 19095 # UnixWare 19096 CC="$CC -w" 19097 ;; 19098 esac 19099fi 19100 19101 19102 19103 19104 19105 19106# 19107# NLS 19108# 19109ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets" 19110if test "x$ac_cv_func_catgets" = xyes; then : 19111 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h 19112 19113fi 19114 19115 19116# 19117# -lxnet buys us one big porting headache... standards, gotta love 'em. 19118# 19119# AC_CHECK_LIB(xnet, socket, , 19120# AC_CHECK_LIB(socket, socket) 19121# ) 19122# 19123# Use this for now, instead: 19124# 19125case "$host" in 19126 mips-sgi-irix*) 19127 ;; 19128 *-linux*) 19129 ;; 19130 *) 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 19132$as_echo_n "checking for socket in -lsocket... " >&6; } 19133if ${ac_cv_lib_socket_socket+:} false; then : 19134 $as_echo_n "(cached) " >&6 19135else 19136 ac_check_lib_save_LIBS=$LIBS 19137LIBS="-lsocket $LIBS" 19138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19139/* end confdefs.h. */ 19140 19141/* Override any GCC internal prototype to avoid an error. 19142 Use char because int might match the return type of a GCC 19143 builtin and then its argument prototype would still apply. */ 19144#ifdef __cplusplus 19145extern "C" 19146#endif 19147char socket (); 19148int 19149main () 19150{ 19151return socket (); 19152 ; 19153 return 0; 19154} 19155_ACEOF 19156if ac_fn_c_try_link "$LINENO"; then : 19157 ac_cv_lib_socket_socket=yes 19158else 19159 ac_cv_lib_socket_socket=no 19160fi 19161rm -f core conftest.err conftest.$ac_objext \ 19162 conftest$ac_exeext conftest.$ac_ext 19163LIBS=$ac_check_lib_save_LIBS 19164fi 19165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 19166$as_echo "$ac_cv_lib_socket_socket" >&6; } 19167if test "x$ac_cv_lib_socket_socket" = xyes; then : 19168 cat >>confdefs.h <<_ACEOF 19169#define HAVE_LIBSOCKET 1 19170_ACEOF 19171 19172 LIBS="-lsocket $LIBS" 19173 19174fi 19175 19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 19177$as_echo_n "checking for inet_addr in -lnsl... " >&6; } 19178if ${ac_cv_lib_nsl_inet_addr+:} false; then : 19179 $as_echo_n "(cached) " >&6 19180else 19181 ac_check_lib_save_LIBS=$LIBS 19182LIBS="-lnsl $LIBS" 19183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19184/* end confdefs.h. */ 19185 19186/* Override any GCC internal prototype to avoid an error. 19187 Use char because int might match the return type of a GCC 19188 builtin and then its argument prototype would still apply. */ 19189#ifdef __cplusplus 19190extern "C" 19191#endif 19192char inet_addr (); 19193int 19194main () 19195{ 19196return inet_addr (); 19197 ; 19198 return 0; 19199} 19200_ACEOF 19201if ac_fn_c_try_link "$LINENO"; then : 19202 ac_cv_lib_nsl_inet_addr=yes 19203else 19204 ac_cv_lib_nsl_inet_addr=no 19205fi 19206rm -f core conftest.err conftest.$ac_objext \ 19207 conftest$ac_exeext conftest.$ac_ext 19208LIBS=$ac_check_lib_save_LIBS 19209fi 19210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 19211$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } 19212if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then : 19213 cat >>confdefs.h <<_ACEOF 19214#define HAVE_LIBNSL 1 19215_ACEOF 19216 19217 LIBS="-lnsl $LIBS" 19218 19219fi 19220 19221 ;; 19222esac 19223 19224# 19225# Work around Solaris's select() limitations. 19226# 19227case "$host" in 19228 *-solaris2.[89]|*-solaris2.1?) 19229 19230$as_echo "#define FD_SETSIZE 65536" >>confdefs.h 19231 19232 ;; 19233esac 19234 19235# 19236# Purify support 19237# 19238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5 19239$as_echo_n "checking whether to use purify... " >&6; } 19240 19241# Purify is not included in pairwise testing as that tool is not present 19242# in the relevant Docker image. 19243# 19244# [pairwise: skip] 19245 19246# Check whether --with-purify was given. 19247if test "${with_purify+set}" = set; then : 19248 withval=$with_purify; use_purify="$withval" 19249else 19250 use_purify="no" 19251fi 19252 19253 19254case "$use_purify" in 19255 no) 19256 ;; 19257 yes) 19258 # Extract the first word of "purify", so it can be a program name with args. 19259set dummy purify; ac_word=$2 19260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19261$as_echo_n "checking for $ac_word... " >&6; } 19262if ${ac_cv_path_purify_path+:} false; then : 19263 $as_echo_n "(cached) " >&6 19264else 19265 case $purify_path in 19266 [\\/]* | ?:[\\/]*) 19267 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path. 19268 ;; 19269 *) 19270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19271for as_dir in $PATH 19272do 19273 IFS=$as_save_IFS 19274 test -z "$as_dir" && as_dir=. 19275 for ac_exec_ext in '' $ac_executable_extensions; do 19276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19277 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext" 19278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19279 break 2 19280 fi 19281done 19282 done 19283IFS=$as_save_IFS 19284 19285 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify" 19286 ;; 19287esac 19288fi 19289purify_path=$ac_cv_path_purify_path 19290if test -n "$purify_path"; then 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5 19292$as_echo "$purify_path" >&6; } 19293else 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19295$as_echo "no" >&6; } 19296fi 19297 19298 19299 ;; 19300 *) 19301 purify_path="$use_purify" 19302 ;; 19303esac 19304 19305case "$use_purify" in 19306 no) 19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19308$as_echo "no" >&6; } 19309 PURIFY="" 19310 ;; 19311 *) 19312 if test -f "$purify_path" || test purify = "$purify_path"; then 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5 19314$as_echo "$purify_path" >&6; } 19315 PURIFYFLAGS="`echo $PURIFYOPTIONS`" 19316 PURIFY="$purify_path $PURIFYFLAGS" 19317 else 19318 as_fn_error $? "$purify_path not found. 19319 19320Please choose the proper path with the following command: 19321 19322 configure --with-purify=PATH 19323" "$LINENO" 5 19324 fi 19325 ;; 19326esac 19327 19328 19329 19330# 19331# Google/Great Performance Tools CPU Profiler 19332# 19333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5 19334$as_echo_n "checking whether to use gperftools profiler... " >&6; } 19335 19336# Google/Great Performance Tools CPU Profiler is not included in 19337# pairwise testing as that tool is not present in the relevant Docker 19338# image. 19339# 19340# [pairwise: skip] 19341 19342# Check whether --with-gperftools-profiler was given. 19343if test "${with_gperftools_profiler+set}" = set; then : 19344 withval=$with_gperftools_profiler; use_profiler="$withval" 19345else 19346 use_profiler="no" 19347fi 19348 19349 19350case $use_profiler in 19351 yes) 19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19353$as_echo "yes" >&6; } 19354 19355$as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h 19356 19357 LIBS="$LIBS -lprofiler" 19358 ;; 19359 *) 19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19361$as_echo "no" >&6; } 19362 ;; 19363esac 19364 19365# 19366# enable/disable dumping stack backtrace. Also check if the system supports 19367# glibc-compatible backtrace() function. 19368# 19369# [pairwise: --enable-backtrace, --disable-backtrace] 19370# Check whether --enable-backtrace was given. 19371if test "${enable_backtrace+set}" = set; then : 19372 enableval=$enable_backtrace; want_backtrace="$enableval" 19373else 19374 want_backtrace="yes" 19375fi 19376 19377case $want_backtrace in 19378yes) 19379 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1" 19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19381/* end confdefs.h. */ 19382#include <execinfo.h> 19383int 19384main () 19385{ 19386return (backtrace((void **)0, 0)); 19387 ; 19388 return 0; 19389} 19390_ACEOF 19391if ac_fn_c_try_link "$LINENO"; then : 19392 19393$as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h 19394 19395else 19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19397/* end confdefs.h. */ 19398#include <stddef.h> 19399int 19400main () 19401{ 19402return _Unwind_Backtrace(NULL, NULL); 19403 ; 19404 return 0; 19405} 19406_ACEOF 19407if ac_fn_c_try_link "$LINENO"; then : 19408 19409$as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h 19410 19411fi 19412rm -f core conftest.err conftest.$ac_objext \ 19413 conftest$ac_exeext conftest.$ac_ext 19414fi 19415rm -f core conftest.err conftest.$ac_objext \ 19416 conftest$ac_exeext conftest.$ac_ext 19417 ;; 19418*) 19419 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE" 19420 ;; 19421esac 19422 19423 19424# [pairwise: --enable-symtable, --disable-symtable] 19425# Check whether --enable-symtable was given. 19426if test "${enable_symtable+set}" = set; then : 19427 enableval=$enable_symtable; want_symtable="$enableval" 19428else 19429 want_symtable="minimal" 19430fi 19431 19432case $want_symtable in 19433yes|all|minimal) # "yes" is a hidden value equivalent to "minimal" 19434 if test "" = "$PERL" 19435 then 19436 as_fn_error $? "Internal symbol table requires perl but no perl is found. 19437Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5 19438 fi 19439 if test "yes" = "$use_libtool"; then 19440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5 19441$as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;} 19442 else 19443 # we generate the internal symbol table only for those systems 19444 # known to work to avoid unexpected build failure. Also, warn 19445 # about unsupported systems when the feature is enabled 19446 # manually. 19447 case $host_os in 19448 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*) 19449 MKSYMTBL_PROGRAM="$PERL" 19450 if test "all" = "$want_symtable"; then 19451 ALWAYS_MAKE_SYMTABLE="yes" 19452 fi 19453 ;; 19454 *) 19455 if test "yes" = "$want_symtable" -o "all" = "$want_symtable" 19456 then 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5 19458$as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;} 19459 fi 19460 esac 19461 fi 19462 ;; 19463*) 19464 ;; 19465esac 19466 19467 19468 19469# 19470# File name extension for static archive files, for those few places 19471# where they are treated differently from dynamic ones. 19472# 19473SA=a 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486BIND9_CO_RULE=".c.$O:" 19487 19488 19489# 19490# Here begins a very long section to determine the system's networking 19491# capabilities. The order of the tests is significant. 19492# 19493 19494# 19495# IPv6 19496# 19497# [pairwise: --enable-ipv6, --disable-ipv6] 19498# Check whether --enable-ipv6 was given. 19499if test "${enable_ipv6+set}" = set; then : 19500 enableval=$enable_ipv6; 19501fi 19502 19503 19504case "$enable_ipv6" in 19505 yes|''|autodetect) 19506 $as_echo "#define WANT_IPV6 1" >>confdefs.h 19507 19508 ;; 19509 no) 19510 ;; 19511esac 19512 19513# 19514# We do the IPv6 compilation checking after libtool so that we can put 19515# the right suffix on the files. 19516# 19517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 19518$as_echo_n "checking for IPv6 structures... " >&6; } 19519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19520/* end confdefs.h. */ 19521 19522#include <sys/types.h> 19523#include <sys/socket.h> 19524#include <netinet/in.h> 19525int 19526main () 19527{ 19528struct sockaddr_in6 sin6; return (0); 19529 ; 19530 return 0; 19531} 19532_ACEOF 19533if ac_fn_c_try_compile "$LINENO"; then : 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19535$as_echo "yes" >&6; } 19536 found_ipv6=yes 19537else 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19539$as_echo "no" >&6; } 19540 found_ipv6=no 19541fi 19542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19543 19544# 19545# See whether IPv6 support is provided via a Kame add-on. 19546# This is done before other IPv6 linking tests to LIBS is properly set. 19547# 19548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 19549$as_echo_n "checking for Kame IPv6 support... " >&6; } 19550 19551# Kame is not included in pairwise testing as it is not present in the 19552# relevant Docker image. 19553# 19554# [pairwise: skip] 19555 19556# Check whether --with-kame was given. 19557if test "${with_kame+set}" = set; then : 19558 withval=$with_kame; use_kame="$withval" 19559else 19560 use_kame="no" 19561fi 19562 19563 19564case "$use_kame" in 19565 no) 19566 ;; 19567 yes) 19568 kame_path=/usr/local/v6 19569 ;; 19570 *) 19571 kame_path="$use_kame" 19572 ;; 19573esac 19574 19575case "$use_kame" in 19576 no) 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19578$as_echo "no" >&6; } 19579 ;; 19580 *) 19581 if test -f $kame_path/lib/libinet6.a; then 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 19583$as_echo "$kame_path/lib/libinet6.a" >&6; } 19584 LIBS="-L$kame_path/lib -linet6 $LIBS" 19585 else 19586 as_fn_error $? "$kame_path/lib/libinet6.a not found. 19587 19588Please choose the proper path with the following command: 19589 19590 configure --with-kame=PATH 19591" "$LINENO" 5 19592 fi 19593 ;; 19594esac 19595 19596# 19597# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 19598# Including it on Kame-using platforms is very bad, though, because 19599# Kame uses #error against direct inclusion. So include it on only 19600# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 19601# This is done before the in6_pktinfo check because that's what 19602# netinet6/in6.h is needed for. 19603# 19604 19605case "$host" in 19606*-bsdi4.[01]*) 19607 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1" 19608 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" 19609 isc_netinet6in6_hack="#include <netinet6/in6.h>" 19610 ;; 19611*) 19612 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H" 19613 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H" 19614 isc_netinet6in6_hack="" 19615 ;; 19616esac 19617 19618 19619# 19620# This is similar to the netinet6/in6.h issue. 19621# 19622case "$host" in 19623*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 19624 # UnixWare 19625 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1" 19626 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1" 19627 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1" 19628 isc_netinetin6_hack="#include <netinet/in6.h>" 19629 ;; 19630*) 19631 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H" 19632 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H" 19633 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR" 19634 isc_netinetin6_hack="" 19635 ;; 19636esac 19637 19638# 19639# Now delve deeper into the suitability of the IPv6 support. 19640# 19641case "$found_ipv6" in 19642 yes) 19643 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1" 19644 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1" 19645 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5 19647$as_echo_n "checking for in6_addr... " >&6; } 19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19649/* end confdefs.h. */ 19650 19651#include <sys/types.h> 19652#include <sys/socket.h> 19653#include <netinet/in.h> 19654$isc_netinetin6_hack 19655$isc_netinet6in6_hack 19656 19657int 19658main () 19659{ 19660struct in6_addr in6; return (0); 19661 ; 19662 return 0; 19663} 19664_ACEOF 19665if ac_fn_c_try_compile "$LINENO"; then : 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19667$as_echo "yes" >&6; } 19668 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6" 19669 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6" 19670 isc_in_addr6_hack="" 19671else 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19673$as_echo "no" >&6; } 19674 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1" 19675 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1" 19676 isc_in_addr6_hack="#define in6_addr in_addr6" 19677fi 19678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19679 19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 19681$as_echo_n "checking for in6addr_any... " >&6; } 19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19683/* end confdefs.h. */ 19684 19685#include <sys/types.h> 19686#include <sys/socket.h> 19687#include <netinet/in.h> 19688$isc_netinetin6_hack 19689$isc_netinet6in6_hack 19690$isc_in_addr6_hack 19691 19692int 19693main () 19694{ 19695struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); 19696 ; 19697 return 0; 19698} 19699_ACEOF 19700if ac_fn_c_try_link "$LINENO"; then : 19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19702$as_echo "yes" >&6; } 19703 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 19704 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY" 19705else 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19707$as_echo "no" >&6; } 19708 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1" 19709 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1" 19710fi 19711rm -f core conftest.err conftest.$ac_objext \ 19712 conftest$ac_exeext conftest.$ac_ext 19713 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 19715$as_echo_n "checking for in6addr_loopback... " >&6; } 19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19717/* end confdefs.h. */ 19718 19719#include <sys/types.h> 19720#include <sys/socket.h> 19721#include <netinet/in.h> 19722$isc_netinetin6_hack 19723$isc_netinet6in6_hack 19724$isc_in_addr6_hack 19725 19726int 19727main () 19728{ 19729struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]); 19730 ; 19731 return 0; 19732} 19733_ACEOF 19734if ac_fn_c_try_link "$LINENO"; then : 19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19736$as_echo "yes" >&6; } 19737 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK" 19738 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK" 19739else 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19741$as_echo "no" >&6; } 19742 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1" 19743 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1" 19744fi 19745rm -f core conftest.err conftest.$ac_objext \ 19746 conftest$ac_exeext conftest.$ac_ext 19747 19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5 19749$as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; } 19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19751/* end confdefs.h. */ 19752 19753#include <sys/types.h> 19754#include <sys/socket.h> 19755#include <netinet/in.h> 19756$isc_netinetin6_hack 19757$isc_netinet6in6_hack 19758 19759int 19760main () 19761{ 19762struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 19763 ; 19764 return 0; 19765} 19766_ACEOF 19767if ac_fn_c_try_compile "$LINENO"; then : 19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19769$as_echo "yes" >&6; } 19770 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1" 19771 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 19772else 19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19774$as_echo "no" >&6; } 19775 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID" 19776 result="#undef LWRES_HAVE_SIN6_SCOPE_ID" 19777fi 19778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19779 LWRES_HAVE_SIN6_SCOPE_ID="$result" 19780 19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 19782$as_echo_n "checking for in6_pktinfo... " >&6; } 19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19784/* end confdefs.h. */ 19785 19786#include <sys/types.h> 19787#include <sys/socket.h> 19788#include <netinet/in.h> 19789$isc_netinetin6_hack 19790$isc_netinet6in6_hack 19791 19792int 19793main () 19794{ 19795struct in6_pktinfo xyzzy; return (0); 19796 ; 19797 return 0; 19798} 19799_ACEOF 19800if ac_fn_c_try_compile "$LINENO"; then : 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19802$as_echo "yes" >&6; } 19803 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 19804else 19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5 19806$as_echo "no -- disabling runtime ipv6 support" >&6; } 19807 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 19808fi 19809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19810 ;; 19811 no) 19812 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6" 19813 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6" 19814 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 19815 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY" 19816 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 19817 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 19818 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1" 19819 ISC_IPV6_H="ipv6.h" 19820 ISC_IPV6_O="ipv6.$O" 19821 ISC_ISCIPV6_O="unix/ipv6.$O" 19822 ISC_IPV6_C="ipv6.c" 19823 ;; 19824esac 19825 19826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 19827$as_echo_n "checking for struct sockaddr_storage... " >&6; } 19828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19829/* end confdefs.h. */ 19830 19831#include <sys/types.h> 19832#include <sys/socket.h> 19833$isc_netinetin6_hack 19834$isc_netinet6in6_hack 19835 19836int 19837main () 19838{ 19839struct sockaddr_storage storage; return (0); 19840 ; 19841 return 0; 19842} 19843_ACEOF 19844if ac_fn_c_try_compile "$LINENO"; then : 19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19846$as_echo "yes" >&6; } 19847ISC_PLATFORM_HAVESOCKADDRSTORAGE="#define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1" 19848else 19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19850$as_echo "no" >&6; } 19851ISC_PLATFORM_HAVESOCKADDRSTORAGE="#undef ISC_PLATFORM_HAVESOCKADDRSTORAGE" 19852fi 19853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 19878$as_echo_n "checking for struct if_laddrreq... " >&6; } 19879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19880/* end confdefs.h. */ 19881 19882#include <sys/types.h> 19883#include <net/if6.h> 19884 19885int 19886main () 19887{ 19888 struct if_laddrreq a; 19889 ; 19890 return 0; 19891} 19892_ACEOF 19893if ac_fn_c_try_link "$LINENO"; then : 19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19895$as_echo "yes" >&6; } 19896 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" 19897else 19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19899$as_echo "no" >&6; } 19900 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ" 19901fi 19902rm -f core conftest.err conftest.$ac_objext \ 19903 conftest$ac_exeext conftest.$ac_ext 19904 19905 19906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 19907$as_echo_n "checking for struct if_laddrconf... " >&6; } 19908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19909/* end confdefs.h. */ 19910 19911#include <sys/types.h> 19912#include <net/if6.h> 19913 19914int 19915main () 19916{ 19917 struct if_laddrconf a; 19918 ; 19919 return 0; 19920} 19921_ACEOF 19922if ac_fn_c_try_link "$LINENO"; then : 19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19924$as_echo "yes" >&6; } 19925 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" 19926else 19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19928$as_echo "no" >&6; } 19929 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF" 19930fi 19931rm -f core conftest.err conftest.$ac_objext \ 19932 conftest$ac_exeext conftest.$ac_ext 19933 19934 19935# 19936# Check for network functions that are often missing. We do this 19937# after the libtool checking, so we can put the right suffix on 19938# the files. It also needs to come after checking for a Kame add-on, 19939# which provides some (all?) of the desired functions. 19940# 19941 19942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5 19943$as_echo_n "checking for inet_ntop with IPv6 support... " >&6; } 19944if test "$cross_compiling" = yes; then : 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5 19946$as_echo "assuming inet_ntop not needed" >&6; } 19947 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 19948else 19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19950/* end confdefs.h. */ 19951 19952#include <sys/types.h> 19953#include <sys/socket.h> 19954#include <netinet/in.h> 19955#include <arpa/inet.h> 19956main() { 19957char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);} 19958_ACEOF 19959if ac_fn_c_try_run "$LINENO"; then : 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19961$as_echo "yes" >&6; } 19962 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 19963else 19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19965$as_echo "no" >&6; } 19966 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" 19967 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c" 19968 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1" 19969fi 19970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19971 conftest.$ac_objext conftest.beam conftest.$ac_ext 19972fi 19973 19974 19975 19976# On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts 19977# addresses with less than four octets, like "1.2.3". Also leading 19978# zeros should also be rejected. 19979 19980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5 19981$as_echo_n "checking for working inet_pton with IPv6 support... " >&6; } 19982if test "$cross_compiling" = yes; then : 19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5 19984$as_echo "assuming inet_pton needed" >&6; } 19985 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 19986 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 19987 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 19988else 19989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19990/* end confdefs.h. */ 19991 19992#include <sys/types.h> 19993#include <sys/socket.h> 19994#include <netinet/in.h> 19995#include <arpa/inet.h> 19996main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 : 19997 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 19998 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); } 19999_ACEOF 20000if ac_fn_c_try_run "$LINENO"; then : 20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20002$as_echo "yes" >&6; } 20003 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 20004else 20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20006$as_echo "no" >&6; } 20007 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 20008 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 20009 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 20010fi 20011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20012 conftest.$ac_objext conftest.beam conftest.$ac_ext 20013fi 20014 20015 20016 20017 20018 20019# 20020# Look for a 4.4BSD-style sa_len member in struct sockaddr. 20021# 20022case "$host" in 20023 *-dec-osf*) 20024 # Turn on 4.4BSD style sa_len support. 20025 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h 20026 20027 ;; 20028esac 20029 20030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 20031$as_echo_n "checking for sa_len in struct sockaddr... " >&6; } 20032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20033/* end confdefs.h. */ 20034 20035#include <sys/types.h> 20036#include <sys/socket.h> 20037int 20038main () 20039{ 20040struct sockaddr sa; sa.sa_len = 0; return (0); 20041 ; 20042 return 0; 20043} 20044_ACEOF 20045if ac_fn_c_try_compile "$LINENO"; then : 20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20047$as_echo "yes" >&6; } 20048 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1" 20049 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1" 20050else 20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20052$as_echo "no" >&6; } 20053 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN" 20054 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN" 20055fi 20056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20057 20058 20059 20060# 20061# Look for a 4.4BSD or 4.3BSD struct msghdr 20062# 20063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5 20064$as_echo_n "checking for struct msghdr flavor... " >&6; } 20065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20066/* end confdefs.h. */ 20067 20068#include <sys/types.h> 20069#include <sys/socket.h> 20070int 20071main () 20072{ 20073struct msghdr msg; msg.msg_flags = 0; return (0); 20074 ; 20075 return 0; 20076} 20077_ACEOF 20078if ac_fn_c_try_compile "$LINENO"; then : 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5 20080$as_echo "4.4BSD" >&6; } 20081 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 20082else 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5 20084$as_echo "4.3BSD" >&6; } 20085 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1" 20086fi 20087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20088 20089 20090# 20091# Look for in_port_t. 20092# 20093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5 20094$as_echo_n "checking for type in_port_t... " >&6; } 20095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20096/* end confdefs.h. */ 20097 20098#include <sys/types.h> 20099#include <netinet/in.h> 20100int 20101main () 20102{ 20103in_port_t port = 25; return (0); 20104 ; 20105 return 0; 20106} 20107_ACEOF 20108if ac_fn_c_try_compile "$LINENO"; then : 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20110$as_echo "yes" >&6; } 20111 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 20112else 20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20114$as_echo "no" >&6; } 20115 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1" 20116fi 20117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20118 20119 20120# 20121# Allow forcibly disabling TCP Fast Open support as autodetection might yield 20122# confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen() 20123# comment in lib/isc/unix/socket.c). 20124# 20125# [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen] 20126# Check whether --enable-tcp_fastopen was given. 20127if test "${enable_tcp_fastopen+set}" = set; then : 20128 enableval=$enable_tcp_fastopen; 20129fi 20130 20131 20132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_FASTOPEN socket option" >&5 20133$as_echo_n "checking for TCP_FASTOPEN socket option... " >&6; } 20134case "$enable_tcp_fastopen" in 20135yes|''|autodetect) 20136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137/* end confdefs.h. */ 20138 20139#include <sys/types.h> 20140#include <sys/socket.h> 20141#include <netinet/tcp.h> 20142#ifdef TCP_FASTOPEN 20143int has_tfo() { return (0); } 20144#endif 20145 20146_ACEOF 20147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20148 $EGREP "has_tfo" >/dev/null 2>&1; then : 20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20150$as_echo "yes" >&6; } 20151 ISC_PLATFORM_HAVETFO="#define ISC_PLATFORM_HAVETFO 1" 20152else 20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20154$as_echo "no" >&6; } 20155 ISC_PLATFORM_HAVETFO="#undef ISC_PLATFORM_HAVETFO" 20156fi 20157rm -f conftest* 20158 20159 20160 ;; 20161 no) 20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20163$as_echo "disabled" >&6; } 20164 ISC_PLATFORM_HAVETFO="#undef ISC_PLATFORM_HAVETFO" 20165 ;; 20166esac 20167 20168 20169# 20170# Check for addrinfo 20171# 20172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 20173$as_echo_n "checking for struct addrinfo... " >&6; } 20174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20175/* end confdefs.h. */ 20176 20177#include <netdb.h> 20178int 20179main () 20180{ 20181struct addrinfo a; return (0); 20182 ; 20183 return 0; 20184} 20185_ACEOF 20186if ac_fn_c_try_compile "$LINENO"; then : 20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20188$as_echo "yes" >&6; } 20189 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO" 20190 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO" 20191 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 20192 20193else 20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20195$as_echo "no" >&6; } 20196 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1" 20197 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1" 20198fi 20199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20200 20201 20202 20203# 20204# Check for rrsetinfo 20205# 20206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5 20207$as_echo_n "checking for struct rrsetinfo... " >&6; } 20208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20209/* end confdefs.h. */ 20210 20211#include <netdb.h> 20212int 20213main () 20214{ 20215struct rrsetinfo r; return (0); 20216 ; 20217 return 0; 20218} 20219_ACEOF 20220if ac_fn_c_try_compile "$LINENO"; then : 20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20222$as_echo "yes" >&6; } 20223 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO" 20224else 20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20226$as_echo "no" >&6; } 20227 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1" 20228fi 20229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20230 20231 20232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5 20233$as_echo_n "checking for int sethostent... " >&6; } 20234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20235/* end confdefs.h. */ 20236 20237#include <netdb.h> 20238int 20239main () 20240{ 20241int i = sethostent(0); return(0); 20242 ; 20243 return 0; 20244} 20245_ACEOF 20246if ac_fn_c_try_compile "$LINENO"; then : 20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20248$as_echo "yes" >&6; } 20249 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1" 20250else 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20252$as_echo "no" >&6; } 20253 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT" 20254fi 20255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20256 20257 20258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5 20259$as_echo_n "checking for int endhostent... " >&6; } 20260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20261/* end confdefs.h. */ 20262 20263#include <netdb.h> 20264int 20265main () 20266{ 20267int i = endhostent(); return(0); 20268 ; 20269 return 0; 20270} 20271_ACEOF 20272if ac_fn_c_try_compile "$LINENO"; then : 20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20274$as_echo "yes" >&6; } 20275 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 20276else 20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20278$as_echo "no" >&6; } 20279 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT" 20280fi 20281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20282 20283 20284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5 20285$as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; } 20286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20287/* end confdefs.h. */ 20288 20289#include <netdb.h> 20290struct netent *getnetbyaddr(in_addr_t, int); 20291int 20292main () 20293{ 20294 20295 ; 20296 return 0; 20297} 20298_ACEOF 20299if ac_fn_c_try_compile "$LINENO"; then : 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20301$as_echo "yes" >&6; } 20302 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1" 20303else 20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20305$as_echo "no" >&6; } 20306 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR" 20307fi 20308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20309 20310 20311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5 20312$as_echo_n "checking for int setnetent... " >&6; } 20313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20314/* end confdefs.h. */ 20315 20316#include <netdb.h> 20317int 20318main () 20319{ 20320int i = setnetent(0); return(0); 20321 ; 20322 return 0; 20323} 20324_ACEOF 20325if ac_fn_c_try_compile "$LINENO"; then : 20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20327$as_echo "yes" >&6; } 20328 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 20329else 20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20331$as_echo "no" >&6; } 20332 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT" 20333fi 20334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20335 20336 20337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5 20338$as_echo_n "checking for int endnetent... " >&6; } 20339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20340/* end confdefs.h. */ 20341 20342#include <netdb.h> 20343int 20344main () 20345{ 20346int i = endnetent(); return(0); 20347 ; 20348 return 0; 20349} 20350_ACEOF 20351if ac_fn_c_try_compile "$LINENO"; then : 20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20353$as_echo "yes" >&6; } 20354 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 20355else 20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20357$as_echo "no" >&6; } 20358 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT" 20359fi 20360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20361 20362 20363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5 20364$as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; } 20365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20366/* end confdefs.h. */ 20367 20368#include <netdb.h> 20369struct hostent *gethostbyaddr(const void *, size_t, int); 20370int 20371main () 20372{ 20373return(0); 20374 ; 20375 return 0; 20376} 20377_ACEOF 20378if ac_fn_c_try_compile "$LINENO"; then : 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20380$as_echo "yes" >&6; } 20381 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 20382else 20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20384$as_echo "no" >&6; } 20385 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID" 20386fi 20387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20388 20389 20390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5 20391$as_echo_n "checking for h_errno in netdb.h... " >&6; } 20392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20393/* end confdefs.h. */ 20394 20395#include <netdb.h> 20396int 20397main () 20398{ 20399h_errno = 1; return(0); 20400 ; 20401 return 0; 20402} 20403_ACEOF 20404if ac_fn_c_try_compile "$LINENO"; then : 20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20406$as_echo "yes" >&6; } 20407 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 20408else 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20410$as_echo "no" >&6; } 20411 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1" 20412fi 20413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20414 20415 20416# 20417# Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch 20418# known variations here: 20419# 20420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5 20421$as_echo_n "checking for getnameinfo prototype definitions... " >&6; } 20422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20423/* end confdefs.h. */ 20424 20425#include <sys/types.h> 20426#include <sys/socket.h> 20427#include <netdb.h> 20428int getnameinfo(const struct sockaddr *, socklen_t, char *, 20429 socklen_t, char *, socklen_t, int); 20430int 20431main () 20432{ 20433 return (0); 20434 ; 20435 return 0; 20436} 20437_ACEOF 20438if ac_fn_c_try_compile "$LINENO"; then : 20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; int for flags" >&5 20440$as_echo "socklen_t for buflen; int for flags" >&6; } 20441 20442$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h 20443 20444 20445$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h 20446 20447 20448$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 20449 20450else 20451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20452/* end confdefs.h. */ 20453 20454#include <sys/types.h> 20455#include <sys/socket.h> 20456#include <netdb.h> 20457int getnameinfo(const struct sockaddr *, socklen_t, char *, 20458 size_t, char *, size_t, int); 20459int 20460main () 20461{ 20462 return (0); 20463 ; 20464 return 0; 20465} 20466_ACEOF 20467if ac_fn_c_try_compile "$LINENO"; then : 20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5 20469$as_echo "size_t for buflen; int for flags" >&6; } 20470 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h 20471 20472 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h 20473 20474 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 20475 20476else 20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20478/* end confdefs.h. */ 20479 20480#include <sys/types.h> 20481#include <sys/socket.h> 20482#include <netdb.h> 20483int getnameinfo(const struct sockaddr *, size_t, char *, 20484 size_t, char *, size_t, int); 20485int 20486main () 20487{ 20488 return (0); 20489 ; 20490 return 0; 20491} 20492_ACEOF 20493if ac_fn_c_try_compile "$LINENO"; then : 20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5 20495$as_echo "size_t for buflen; int for flags" >&6; } 20496 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T size_t" >>confdefs.h 20497 20498 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h 20499 20500 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 20501 20502else 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; socklen_t for buflen; u_int for flags" >&5 20504$as_echo "not match any subspecies; socklen_t for buflen; u_int for flags" >&6; } 20505$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h 20506 20507$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h 20508 20509$as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h 20510 20511fi 20512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20513fi 20514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20515fi 20516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20517 20518# 20519# ...and same for gai_strerror(). 20520# 20521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5 20522$as_echo_n "checking for gai_strerror prototype definitions... " >&6; } 20523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20524/* end confdefs.h. */ 20525 20526#include <sys/types.h> 20527#include <sys/socket.h> 20528#include <netdb.h> 20529char *gai_strerror(int ecode); 20530int 20531main () 20532{ 20533 return (0); 20534 ; 20535 return 0; 20536} 20537_ACEOF 20538if ac_fn_c_try_compile "$LINENO"; then : 20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5 20540$as_echo "returning char *" >&6; } 20541 20542$as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h 20543 20544else 20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5 20546$as_echo "not match any subspecies; assume standard definition" >&6; } 20547$as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h 20548 20549fi 20550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20551 20552ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 20553if test "x$ac_cv_func_getipnodebyname" = xyes; then : 20554 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO" 20555else 20556 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1" 20557fi 20558 20559ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 20560if test "x$ac_cv_func_getnameinfo" = xyes; then : 20561 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO" 20562else 20563 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1" 20564fi 20565 20566ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20567if test "x$ac_cv_func_getaddrinfo" = xyes; then : 20568 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO" 20569 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 20570 20571else 20572 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1" 20573fi 20574 20575ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 20576if test "x$ac_cv_func_gai_strerror" = xyes; then : 20577 $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h 20578 20579fi 20580 20581 20582 20583 20584 20585 20586# [pairwise: --enable-getifaddrs, --disable-getifaddrs] 20587# Check whether --enable-getifaddrs was given. 20588if test "${enable_getifaddrs+set}" = set; then : 20589 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 20590else 20591 want_getifaddrs="yes" 20592fi 20593 20594 20595# 20596# This interface iteration code for getifaddrs() will fall back to using 20597# /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6 20598# addresses. 20599# 20600case $want_getifaddrs in 20601glibc) 20602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5 20603$as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;} 20604ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 20605if test "x$ac_cv_func_getifaddrs" = xyes; then : 20606 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 20607 20608fi 20609 20610;; 20611yes) 20612ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 20613if test "x$ac_cv_func_getifaddrs" = xyes; then : 20614 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 20615 20616fi 20617 20618;; 20619no) 20620;; 20621esac 20622 20623# 20624# Look for a sysctl call to get the list of network interfaces. 20625# 20626case $ac_cv_header_sys_sysctl_h in 20627yes) 20628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 20629$as_echo_n "checking for interface list sysctl... " >&6; } 20630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20631/* end confdefs.h. */ 20632 20633#include <sys/param.h> 20634#include <sys/sysctl.h> 20635#include <sys/socket.h> 20636#ifdef NET_RT_IFLIST 20637found_rt_iflist 20638#endif 20639 20640_ACEOF 20641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20642 $EGREP "found_rt_iflist" >/dev/null 2>&1; then : 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20644$as_echo "yes" >&6; } 20645 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 20646 20647else 20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20649$as_echo "no" >&6; } 20650fi 20651rm -f conftest* 20652 20653;; 20654esac 20655 20656# 20657# Check for some other useful functions that are not ever-present. 20658# 20659 20660# We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC 20661# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77 20662# reportedly defines strsep() without declaring it in <string.h> when 20663# -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and 20664# AC_CHECK_FUNC() incorrectly succeeds because it declares 20665# the function itself. 20666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5 20667$as_echo_n "checking for correctly declared strsep()... " >&6; } 20668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20669/* end confdefs.h. */ 20670#include <string.h> 20671int 20672main () 20673{ 20674char *sp; char *foo = strsep(&sp, "."); 20675 ; 20676 return 0; 20677} 20678_ACEOF 20679if ac_fn_c_try_link "$LINENO"; then : 20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20681$as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 20682else 20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20684$as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1" 20685fi 20686rm -f core conftest.err conftest.$ac_objext \ 20687 conftest$ac_exeext conftest.$ac_ext 20688 20689 20690ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20691if test "x$ac_cv_func_memmove" = xyes; then : 20692 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE" 20693else 20694 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1" 20695fi 20696 20697 20698 20699ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 20700if test "x$ac_cv_func_strtoul" = xyes; then : 20701 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL" 20702 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL" 20703 GENRANDOMLIB="" 20704else 20705 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1" 20706 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1" 20707 GENRANDOMLIB='${ISCLIBS}' 20708fi 20709 20710 20711 20712 20713 20714ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20715if test "x$ac_cv_func_strlcpy" = xyes; then : 20716 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY" 20717 LWRES_PLATFORM_NEEDSTRLCPY="#undef LWRES_PLATFORM_NEEDSTRLCPY" 20718else 20719 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1" 20720 LWRES_PLATFORM_NEEDSTRLCPY="#define LWRES_PLATFORM_NEEDSTRLCPY 1" 20721fi 20722 20723 20724 20725 20726ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20727if test "x$ac_cv_func_strlcat" = xyes; then : 20728 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT" 20729else 20730 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1" 20731fi 20732 20733 20734 20735ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 20736if test "x$ac_cv_func_strcasestr" = xyes; then : 20737 ISC_PLATFORM_NEEDSTRCASESTR="#undef ISC_PLATFORM_NEEDSTRCASESTR" 20738else 20739 ISC_PLATFORM_NEEDSTRCASESTR="#define ISC_PLATFORM_NEEDSTRCASESTR 1" 20740fi 20741 20742 20743 20744 20745 20746# [pairwise: --with-readline=auto, --with-readline=yes, --without-readline] 20747 20748# Check whether --with-readline was given. 20749if test "${with_readline+set}" = set; then : 20750 withval=$with_readline; use_readline="$withval" 20751else 20752 use_readline="auto" 20753fi 20754 20755case "$use_readline" in 20756no) ;; 20757*) 20758 saved_LIBS="$LIBS" 20759 case "$use_readline" in 20760 yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;; 20761 *) try_readline="$use_readline" 20762 esac 20763 for readline in "$try_readline" $or_readline 20764 do 20765 LIBS="$readline" 20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5 20767$as_echo "$as_me: checking for readline with $readline" >&6;} 20768 for ac_func in readline 20769do : 20770 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline" 20771if test "x$ac_cv_func_readline" = xyes; then : 20772 cat >>confdefs.h <<_ACEOF 20773#define HAVE_READLINE 1 20774_ACEOF 20775 20776fi 20777done 20778 20779 if test "yes" = "$ac_cv_func_readline" 20780 then 20781 READLINE_LIB="$readline" 20782 break 20783 fi 20784 for lib in -lterminfo -ltermcap -lncurses -lcurses 20785 do 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5 20787$as_echo "$as_me: checking for readline with $readline $lib" >&6;} 20788 unset ac_cv_func_readline 20789 LIBS="$readline $lib" 20790 for ac_func in readline 20791do : 20792 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline" 20793if test "x$ac_cv_func_readline" = xyes; then : 20794 cat >>confdefs.h <<_ACEOF 20795#define HAVE_READLINE 1 20796_ACEOF 20797 20798fi 20799done 20800 20801 if test "yes" = "$ac_cv_func_readline" 20802 then 20803 READLINE_LIB="$readline $lib" 20804 break 20805 fi 20806 done 20807 if test "yes" = "$ac_cv_func_readline" 20808 then 20809 break 20810 fi 20811 done 20812 if test "auto" != "$use_readline" && 20813 test "X$READLINE_LIB" = "X" 20814 then 20815 as_fn_error $? "The readline library was not found." "$LINENO" 5 20816 fi 20817 LIBS="$saved_LIBS" 20818 ;; 20819esac 20820if test "yes" = "$ac_cv_func_readline" 20821then 20822 case "$READLINE_LIB" in 20823 *edit*) 20824 for ac_header in editline/readline.h 20825do : 20826 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 20827if test "x$ac_cv_header_editline_readline_h" = xyes; then : 20828 cat >>confdefs.h <<_ACEOF 20829#define HAVE_EDITLINE_READLINE_H 1 20830_ACEOF 20831 20832fi 20833 20834done 20835 20836 for ac_header in edit/readline/readline.h 20837do : 20838 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default" 20839if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then : 20840 cat >>confdefs.h <<_ACEOF 20841#define HAVE_EDIT_READLINE_READLINE_H 1 20842_ACEOF 20843 20844fi 20845 20846done 20847 20848 for ac_header in edit/readline/history.h 20849do : 20850 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default" 20851if test "x$ac_cv_header_edit_readline_history_h" = xyes; then : 20852 cat >>confdefs.h <<_ACEOF 20853#define HAVE_EDIT_READLINE_HISTORY_H 1 20854_ACEOF 20855 20856fi 20857 20858done 20859 20860 ;; 20861 esac 20862 for ac_header in readline/readline.h 20863do : 20864 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 20865if test "x$ac_cv_header_readline_readline_h" = xyes; then : 20866 cat >>confdefs.h <<_ACEOF 20867#define HAVE_READLINE_READLINE_H 1 20868_ACEOF 20869 20870fi 20871 20872done 20873 20874 for ac_header in readline/history.h 20875do : 20876 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 20877if test "x$ac_cv_header_readline_history_h" = xyes; then : 20878 cat >>confdefs.h <<_ACEOF 20879#define HAVE_READLINE_HISTORY_H 1 20880_ACEOF 20881 20882fi 20883 20884done 20885 20886fi 20887 20888ISC_PRINT_OBJS= 20889ISC_PRINT_SRCS= 20890ISC_PLATFORM_NEEDPRINTF='#undef ISC_PLATFORM_NEEDPRINTF' 20891ISC_PLATFORM_NEEDFPRINTF='#undef ISC_PLATFORM_NEEDFPRINTF' 20892ISC_PLATFORM_NEEDSPRINTF='#undef ISC_PLATFORM_NEEDSPRINTF' 20893ISC_PLATFORM_NEEDVSNPRINTF='#undef ISC_PLATFORM_NEEDVSNPRINTF' 20894LWRES_PLATFORM_NEEDVSNPRINTF='#undef LWRES_PLATFORM_NEEDVSNPRINTF' 20895 20896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf return type" >&5 20897$as_echo_n "checking sprintf return type... " >&6; } 20898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20899/* end confdefs.h. */ 20900 20901#include <stdio.h> 20902 20903int 20904main () 20905{ 20906 char buf[2]; return(*sprintf(buf,"x")); 20907 ; 20908 return 0; 20909} 20910_ACEOF 20911if ac_fn_c_try_compile "$LINENO"; then : 20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5 20913$as_echo "char *" >&6; } 20914ISC_PRINT_OBJS="print.$O" 20915ISC_PRINT_SRCS="print.c" 20916ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF" 20917LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF" 20918 20919else 20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 20921$as_echo "int" >&6; } 20922fi 20923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20924 20925ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 20926if test "x$ac_cv_func_vsnprintf" = xyes; then : 20927 20928else 20929 ISC_PRINT_OBJS="print.$O" 20930 ISC_PRINT_SRCS="print.c" 20931 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1" 20932 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1" 20933fi 20934 20935 20936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf for %z support" >&5 20937$as_echo_n "checking printf for %z support... " >&6; } 20938if test "$cross_compiling" = yes; then : 20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform supports %z" >&5 20940$as_echo "assuming target platform supports %z" >&6; } 20941else 20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20943/* end confdefs.h. */ 20944 20945#include <stdio.h> 20946 20947int 20948main() { 20949 size_t j = 0; 20950 char buf[100]; 20951 buf[0] = 0; 20952 sprintf(buf, "%zu", j); 20953 return ((buf[0] == '0' && buf[1] == '\0') ? 0 : 1); 20954} 20955 20956_ACEOF 20957if ac_fn_c_try_run "$LINENO"; then : 20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20959$as_echo "yes" >&6; } 20960else 20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20962$as_echo "no" >&6; } 20963 ISC_PRINT_OBJS="print.$O" 20964 ISC_PRINT_SRCS="print.c" 20965 ISC_PLATFORM_NEEDPRINTF='#define ISC_PLATFORM_NEEDPRINTF 1' 20966 ISC_PLATFORM_NEEDFPRINTF='#define ISC_PLATFORM_NEEDFPRINTF 1' 20967 ISC_PLATFORM_NEEDFSRINTF='#define ISC_PLATFORM_NEEDSPRINTF 1' 20968 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1" 20969 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1" 20970fi 20971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20972 conftest.$ac_objext conftest.beam conftest.$ac_ext 20973fi 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS" 20984ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS" 20985 20986 20987 20988ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 20989if test "x$ac_cv_func_strerror" = xyes; then : 20990 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 20991 20992fi 20993 20994 20995 20996 20997 20998# 20999# Security Stuff 21000# 21001# Note it is very recommended to *not* disable chroot(), 21002# this is only because chroot() was made obsolete by Posix. 21003# 21004# [pairwise: --enable-chroot, --disable-chroot] 21005# Check whether --enable-chroot was given. 21006if test "${enable_chroot+set}" = set; then : 21007 enableval=$enable_chroot; 21008fi 21009 21010case "$enable_chroot" in 21011 yes|'') 21012 for ac_func in chroot 21013do : 21014 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 21015if test "x$ac_cv_func_chroot" = xyes; then : 21016 cat >>confdefs.h <<_ACEOF 21017#define HAVE_CHROOT 1 21018_ACEOF 21019 21020fi 21021done 21022 21023 ;; 21024 no) 21025 ;; 21026esac 21027 21028# [pairwise: --enable-linux-caps, --disable-linux-caps] 21029# Check whether --enable-linux-caps was given. 21030if test "${enable_linux_caps+set}" = set; then : 21031 enableval=$enable_linux_caps; 21032fi 21033 21034case "$enable_linux_caps" in 21035 yes|'') 21036 for ac_header in linux/types.h 21037do : 21038 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" 21039if test "x$ac_cv_header_linux_types_h" = xyes; then : 21040 cat >>confdefs.h <<_ACEOF 21041#define HAVE_LINUX_TYPES_H 1 21042_ACEOF 21043 21044fi 21045 21046done 21047 21048 for ac_header in sys/capability.h 21049do : 21050 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 21051if test "x$ac_cv_header_sys_capability_h" = xyes; then : 21052 cat >>confdefs.h <<_ACEOF 21053#define HAVE_SYS_CAPABILITY_H 1 21054_ACEOF 21055 21056fi 21057 21058done 21059 21060 for ac_header in linux/capability.h 21061do : 21062 ac_fn_c_check_header_compile "$LINENO" "linux/capability.h" "ac_cv_header_linux_capability_h" "#ifdef HAVE_LINUX_TYPES_H 21063 #include <linux/types.h> 21064 #endif 21065 21066" 21067if test "x$ac_cv_header_linux_capability_h" = xyes; then : 21068 cat >>confdefs.h <<_ACEOF 21069#define HAVE_LINUX_CAPABILITY_H 1 21070_ACEOF 21071 21072fi 21073 21074done 21075 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5 21077$as_echo_n "checking for cap_set_proc in -lcap... " >&6; } 21078if ${ac_cv_lib_cap_cap_set_proc+:} false; then : 21079 $as_echo_n "(cached) " >&6 21080else 21081 ac_check_lib_save_LIBS=$LIBS 21082LIBS="-lcap $LIBS" 21083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21084/* end confdefs.h. */ 21085 21086/* Override any GCC internal prototype to avoid an error. 21087 Use char because int might match the return type of a GCC 21088 builtin and then its argument prototype would still apply. */ 21089#ifdef __cplusplus 21090extern "C" 21091#endif 21092char cap_set_proc (); 21093int 21094main () 21095{ 21096return cap_set_proc (); 21097 ; 21098 return 0; 21099} 21100_ACEOF 21101if ac_fn_c_try_link "$LINENO"; then : 21102 ac_cv_lib_cap_cap_set_proc=yes 21103else 21104 ac_cv_lib_cap_cap_set_proc=no 21105fi 21106rm -f core conftest.err conftest.$ac_objext \ 21107 conftest$ac_exeext conftest.$ac_ext 21108LIBS=$ac_check_lib_save_LIBS 21109fi 21110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5 21111$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; } 21112if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then : 21113 cat >>confdefs.h <<_ACEOF 21114#define HAVE_LIBCAP 1 21115_ACEOF 21116 21117 LIBS="-lcap $LIBS" 21118 21119fi 21120 21121 ;; 21122 no) 21123 ;; 21124esac 21125for ac_header in sys/prctl.h 21126do : 21127 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 21128if test "x$ac_cv_header_sys_prctl_h" = xyes; then : 21129 cat >>confdefs.h <<_ACEOF 21130#define HAVE_SYS_PRCTL_H 1 21131_ACEOF 21132 21133fi 21134 21135done 21136 21137 21138for ac_header in sys/un.h 21139do : 21140 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 21141if test "x$ac_cv_header_sys_un_h" = xyes; then : 21142 cat >>confdefs.h <<_ACEOF 21143#define HAVE_SYS_UN_H 1 21144_ACEOF 21145 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1" 21146 21147else 21148 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH" 21149 21150fi 21151 21152done 21153 21154 21155 21156case "$host" in 21157*-solaris*) 21158 21159$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 21160 21161 ;; 21162*-sunos*) 21163 21164$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 21165 21166 ;; 21167esac 21168 21169# 21170# Time Zone Stuff 21171# 21172ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 21173if test "x$ac_cv_func_tzset" = xyes; then : 21174 $as_echo "#define HAVE_TZSET 1" >>confdefs.h 21175 21176fi 21177 21178 21179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5 21180$as_echo_n "checking for optarg declaration... " >&6; } 21181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21182/* end confdefs.h. */ 21183 21184#include <unistd.h> 21185 21186int 21187main () 21188{ 21189optarg = 0; 21190 ; 21191 return 0; 21192} 21193_ACEOF 21194if ac_fn_c_try_compile "$LINENO"; then : 21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21196$as_echo "yes" >&6; } 21197else 21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21199$as_echo "no" >&6; } 21200GEN_NEED_OPTARG="-DNEED_OPTARG=1" 21201 21202$as_echo "#define NEED_OPTARG 1" >>confdefs.h 21203 21204fi 21205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21206 21207# 21208# Check for nanoseconds in file stats 21209# 21210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking st_mtim.tv_nsec" >&5 21211$as_echo_n "checking st_mtim.tv_nsec... " >&6; } 21212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21213/* end confdefs.h. */ 21214#include <sys/fcntl.h> 21215int 21216main () 21217{ 21218struct stat s; return(s.st_mtim.tv_nsec); 21219 ; 21220 return 0; 21221} 21222_ACEOF 21223if ac_fn_c_try_compile "$LINENO"; then : 21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21225$as_echo "yes" >&6; } 21226 ISC_PLATFORM_HAVESTATNSEC="#define ISC_PLATFORM_HAVESTATNSEC 1" 21227else 21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21229$as_echo "no" >&6; } 21230 ISC_PLATFORM_HAVESTATNSEC="#undef ISC_PLATFORM_HAVESTATNSEC" 21231fi 21232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21233 21234 21235# 21236# BSD/OS, and perhaps some others, don't define rlim_t. 21237# 21238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5 21239$as_echo_n "checking for type rlim_t... " >&6; } 21240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21241/* end confdefs.h. */ 21242 21243#include <sys/types.h> 21244#include <sys/time.h> 21245#include <sys/resource.h> 21246int 21247main () 21248{ 21249rlim_t rl = 19671212; return (0); 21250 ; 21251 return 0; 21252} 21253_ACEOF 21254if ac_fn_c_try_compile "$LINENO"; then : 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21256$as_echo "yes" >&6; } 21257 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t" 21258else 21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21260$as_echo "no" >&6; } 21261 21262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5 21263$as_echo_n "checking type of rlim_cur... " >&6; } 21264if test "$cross_compiling" = yes; then : 21265 21266 21267# [pairwise: skip] 21268 21269# Check whether --with-rlimtype was given. 21270if test "${with_rlimtype+set}" = set; then : 21271 withval=$with_rlimtype; rlimtype="$withval" 21272else 21273 rlimtype="long long int" 21274fi 21275 21276ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype" 21277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5 21278$as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; } 21279else 21280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21281/* end confdefs.h. */ 21282 21283#include <sys/types.h> 21284#include <sys/time.h> 21285#include <sys/resource.h> 21286main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));} 21287_ACEOF 21288if ac_fn_c_try_run "$LINENO"; then : 21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 21290$as_echo "int" >&6; } 21291ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int" 21292else 21293 21294if test "$cross_compiling" = yes; then : 21295 as_fn_error $? "this cannot happen" "$LINENO" 5 21296else 21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21298/* end confdefs.h. */ 21299 21300#include <sys/types.h> 21301#include <sys/time.h> 21302#include <sys/resource.h> 21303main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));} 21304_ACEOF 21305if ac_fn_c_try_run "$LINENO"; then : 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5 21307$as_echo "long int" >&6; } 21308ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int" 21309else 21310 21311if test "$cross_compiling" = yes; then : 21312 as_fn_error $? "this cannot happen" "$LINENO" 5 21313else 21314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21315/* end confdefs.h. */ 21316 21317#include <sys/types.h> 21318#include <sys/time.h> 21319#include <sys/resource.h> 21320main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));} 21321_ACEOF 21322if ac_fn_c_try_run "$LINENO"; then : 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5 21324$as_echo "long long int" >&6; } 21325ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int" 21326else 21327 as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5 21328 21329fi 21330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21331 conftest.$ac_objext conftest.beam conftest.$ac_ext 21332fi 21333 21334 21335fi 21336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21337 conftest.$ac_objext conftest.beam conftest.$ac_ext 21338fi 21339 21340 21341fi 21342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21343 conftest.$ac_objext conftest.beam conftest.$ac_ext 21344fi 21345 21346 21347fi 21348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21349 21350 21351# 21352# Older HP-UX doesn't have gettune 21353# 21354case "$host" in 21355 *-hp-hpux*) 21356 for ac_header in sys/dyntune.h 21357do : 21358 ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default" 21359if test "x$ac_cv_header_sys_dyntune_h" = xyes; then : 21360 cat >>confdefs.h <<_ACEOF 21361#define HAVE_SYS_DYNTUNE_H 1 21362_ACEOF 21363 21364fi 21365 21366done 21367 21368 ;; 21369 *) 21370 ;; 21371esac 21372 21373 21374# 21375# Compaq TruCluster requires more code for handling cluster IP aliases 21376# 21377case "$host" in 21378 *-dec-osf*) 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5 21380$as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; } 21381if ${ac_cv_lib_clua_clua_getaliasaddress+:} false; then : 21382 $as_echo_n "(cached) " >&6 21383else 21384 ac_check_lib_save_LIBS=$LIBS 21385LIBS="-lclua $LIBS" 21386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21387/* end confdefs.h. */ 21388 21389/* Override any GCC internal prototype to avoid an error. 21390 Use char because int might match the return type of a GCC 21391 builtin and then its argument prototype would still apply. */ 21392#ifdef __cplusplus 21393extern "C" 21394#endif 21395char clua_getaliasaddress (); 21396int 21397main () 21398{ 21399return clua_getaliasaddress (); 21400 ; 21401 return 0; 21402} 21403_ACEOF 21404if ac_fn_c_try_link "$LINENO"; then : 21405 ac_cv_lib_clua_clua_getaliasaddress=yes 21406else 21407 ac_cv_lib_clua_clua_getaliasaddress=no 21408fi 21409rm -f core conftest.err conftest.$ac_objext \ 21410 conftest$ac_exeext conftest.$ac_ext 21411LIBS=$ac_check_lib_save_LIBS 21412fi 21413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5 21414$as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; } 21415if test "x$ac_cv_lib_clua_clua_getaliasaddress" = xyes; then : 21416 LIBS="-lclua $LIBS" 21417fi 21418 21419 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress" 21420if test "x$ac_cv_func_clua_getaliasaddress" = xyes; then : 21421 21422$as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h 21423 21424fi 21425 21426 ;; 21427 *) 21428 ;; 21429esac 21430 21431# 21432# Some hosts need msg_namelen to match the size of the socket structure. 21433# Some hosts don't set msg_namelen appropriately on return from recvmsg(). 21434# 21435case $host in 21436*os2*|*hp-mpeix*) 21437 21438$as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h 21439 21440 ;; 21441esac 21442 21443# 21444# Microsoft has their own way of handling shared libraries that requires 21445# additional qualifiers on extern variables. Unix systems don't need it. 21446# 21447 21448ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC" 21449 21450LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC" 21451 21452IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC" 21453 21454# 21455# Random remaining OS-specific issues involving compiler warnings. 21456# XXXDCL print messages to indicate some compensation is being done? 21457# 21458 21459ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT" 21460 21461case "$host" in 21462 *-aix5.[123].*) 21463 hack_shutup_pthreadonceinit=yes 21464 ;; 21465 *-bsdi3.1*) 21466 hack_shutup_sputaux=yes 21467 ;; 21468 *-bsdi4.0*) 21469 hack_shutup_sigwait=yes 21470 hack_shutup_sputaux=yes 21471 ;; 21472 *-bsdi4.[12]*) 21473 hack_shutup_stdargcast=yes 21474 ;; 21475 *-solaris2.[89]) 21476 hack_shutup_pthreadonceinit=yes 21477 ;; 21478 *-solaris2.1[0-9]) 21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21480/* end confdefs.h. */ 21481 #include <pthread.h> 21482int 21483main () 21484{ 21485 static pthread_once_t once_test = { PTHREAD_ONCE_INIT }; 21486 ; 21487 return 0; 21488} 21489_ACEOF 21490if ac_fn_c_try_compile "$LINENO"; then : 21491 hack_shutup_pthreadonceinit=yes 21492fi 21493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21494 ;; 21495esac 21496 21497case "$hack_shutup_pthreadonceinit" in 21498 yes) 21499 # 21500 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings. 21501 # 21502 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" 21503 ;; 21504esac 21505 21506case "$hack_shutup_sigwait" in 21507 yes) 21508 # 21509 # Shut up a -Wmissing-prototypes warning for sigwait(). 21510 # 21511 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h 21512 21513 ;; 21514esac 21515 21516case "$hack_shutup_sputaux" in 21517 yes) 21518 # 21519 # Shut up a -Wmissing-prototypes warning from <stdio.h>. 21520 # 21521 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h 21522 21523 ;; 21524esac 21525 21526case "$hack_shutup_stdargcast" in 21527 yes) 21528 # 21529 # Shut up a -Wcast-qual warning from va_start(). 21530 # 21531 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h 21532 21533 ;; 21534esac 21535 21536for ac_header in strings.h 21537do : 21538 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 21539if test "x$ac_cv_header_strings_h" = xyes; then : 21540 cat >>confdefs.h <<_ACEOF 21541#define HAVE_STRINGS_H 1 21542_ACEOF 21543 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1" 21544 21545else 21546 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH" 21547 21548fi 21549 21550done 21551 21552 21553 21554# 21555# Check for if_nametoindex() for IPv6 scoped addresses support 21556# 21557ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 21558if test "x$ac_cv_func_if_nametoindex" = xyes; then : 21559 ac_cv_have_if_nametoindex=yes 21560else 21561 ac_cv_have_if_nametoindex=no 21562fi 21563 21564case $ac_cv_have_if_nametoindex in 21565no) 21566 case "$host" in 21567 *-hp-hpux*) 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5 21569$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; } 21570if ${ac_cv_lib_ipv6_if_nametoindex+:} false; then : 21571 $as_echo_n "(cached) " >&6 21572else 21573 ac_check_lib_save_LIBS=$LIBS 21574LIBS="-lipv6 $LIBS" 21575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21576/* end confdefs.h. */ 21577 21578/* Override any GCC internal prototype to avoid an error. 21579 Use char because int might match the return type of a GCC 21580 builtin and then its argument prototype would still apply. */ 21581#ifdef __cplusplus 21582extern "C" 21583#endif 21584char if_nametoindex (); 21585int 21586main () 21587{ 21588return if_nametoindex (); 21589 ; 21590 return 0; 21591} 21592_ACEOF 21593if ac_fn_c_try_link "$LINENO"; then : 21594 ac_cv_lib_ipv6_if_nametoindex=yes 21595else 21596 ac_cv_lib_ipv6_if_nametoindex=no 21597fi 21598rm -f core conftest.err conftest.$ac_objext \ 21599 conftest$ac_exeext conftest.$ac_ext 21600LIBS=$ac_check_lib_save_LIBS 21601fi 21602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5 21603$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; } 21604if test "x$ac_cv_lib_ipv6_if_nametoindex" = xyes; then : 21605 ac_cv_have_if_nametoindex=yes 21606 LIBS="-lipv6 $LIBS" 21607fi 21608 21609 ;; 21610 esac 21611esac 21612case $ac_cv_have_if_nametoindex in 21613yes) 21614 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" 21615 21616$as_echo "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 21617 21618 ;; 21619*) 21620 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX" 21621 ;; 21622esac 21623 21624 21625for ac_func in nanosleep usleep explicit_bzero 21626do : 21627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21628ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21629if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21630 cat >>confdefs.h <<_ACEOF 21631#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21632_ACEOF 21633 21634fi 21635done 21636 21637 21638# 21639# Machine architecture dependent features 21640# 21641have_stdatomic=no 21642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable stdatomic.h" >&5 21643$as_echo_n "checking for usable stdatomic.h... " >&6; } 21644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21645/* end confdefs.h. */ 21646 21647#include <stdio.h> 21648#include <stdatomic.h> 21649 21650int 21651main () 21652{ 21653 21654 #if ATOMIC_INT_LOCK_FREE == 2 && ATOMIC_LONG_LOCK_FREE == 2 21655 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 21656 #else 21657 #error stdatomic not lock free 21658 #endif 21659 21660 ; 21661 return 0; 21662} 21663_ACEOF 21664if ac_fn_c_try_compile "$LINENO"; then : 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21666$as_echo "yes" >&6; } 21667 have_stdatomic=yes 21668 ISC_PLATFORM_HAVESTDATOMIC="#define ISC_PLATFORM_HAVESTDATOMIC 1" 21669else 21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21671$as_echo "no" >&6; } 21672 have_stdatomic=no 21673 ISC_PLATFORM_HAVESTDATOMIC="#undef ISC_PLATFORM_HAVESTDATOMIC" 21674fi 21675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21676 21677# [pairwise: --enable-atomic, --disable-atomic] 21678# Check whether --enable-atomic was given. 21679if test "${enable_atomic+set}" = set; then : 21680 enableval=$enable_atomic; enable_atomic="$enableval" 21681else 21682 enable_atomic="autodetect" 21683fi 21684 21685case "$enable_atomic" in 21686 yes|''|autodetect) 21687 case "$host" in 21688 powerpc-ibm-aix*) 21689 if test "X$GCC" = "Xyes"; then 21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"ics\"); works" >&5 21691$as_echo_n "checking if asm(\"ics\"); works... " >&6; } 21692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21693/* end confdefs.h. */ 21694 21695int 21696main () 21697{ 21698 21699 main() { asm("ics"); exit(0); } 21700 21701 ; 21702 return 0; 21703} 21704_ACEOF 21705if ac_fn_c_try_compile "$LINENO"; then : 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21707$as_echo "yes" >&6; } 21708 use_atomic=yes 21709else 21710 21711 saved_cflags="$CFLAGS" 21712 CFLAGS="$CFLAGS -Wa,-many" 21713 if test "$cross_compiling" = yes; then : 21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5 21715$as_echo "cross compile, assume yes" >&6; } 21716 CFLAGS="$saved_cflags" 21717 use_atomic=yes 21718else 21719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21720/* end confdefs.h. */ 21721 21722 main() { asm("ics"); exit(0); } 21723 21724_ACEOF 21725if ac_fn_c_try_run "$LINENO"; then : 21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5 21727$as_echo "yes, required -Wa,-many" >&6; } 21728 use_atomic=yes 21729else 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5 21731$as_echo "no, use_atomic disabled" >&6; } 21732 CFLAGS="$saved_cflags" 21733 use_atomic=no 21734fi 21735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21736 conftest.$ac_objext conftest.beam conftest.$ac_ext 21737fi 21738 21739 21740 21741fi 21742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21743 else 21744 use_atomic=yes 21745 fi 21746 ;; 21747 *) 21748 use_atomic=yes 21749 ;; 21750 esac 21751 ;; 21752 no) 21753 have_stdatomic=no 21754 ISC_PLATFORM_HAVESTDATOMIC="#undef ISC_PLATFORM_HAVESTDATOMIC" 21755 use_atomic=no 21756 arch=noatomic 21757 ;; 21758esac 21759 21760if test "X$have_stdatomic" = "Xyes"; then 21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -latomic is needed to use 64-bit stdatomic.h primitives" >&5 21762$as_echo_n "checking if -latomic is needed to use 64-bit stdatomic.h primitives... " >&6; } 21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21764/* end confdefs.h. */ 21765#include <stdatomic.h> 21766int 21767main () 21768{ 21769atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 21770 ; 21771 return 0; 21772} 21773_ACEOF 21774if ac_fn_c_try_link "$LINENO"; then : 21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21776$as_echo "no" >&6; } 21777 ISC_ATOMIC_LIBS="" 21778else 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21780$as_echo "yes" >&6; } 21781 ISC_ATOMIC_LIBS="-latomic" 21782 21783fi 21784rm -f core conftest.err conftest.$ac_objext \ 21785 conftest$ac_exeext conftest.$ac_ext 21786 LIBS="$LIBS $ISC_ATOMIC_LIBS" 21787fi 21788 21789 21790 21791ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM" 21792ISC_PLATFORM_USEGCCASM="#undef ISC_PLATFORM_USEGCCASM" 21793ISC_PLATFORM_USESTDASM="#undef ISC_PLATFORM_USESTDASM" 21794ISC_PLATFORM_USEMACASM="#undef ISC_PLATFORM_USEMACASM" 21795if test "yes" = "$use_atomic"; then 21796 have_atomic=yes # set default 21797 case "$host" in 21798 i[3456]86-*) 21799 # XXX: some old x86 architectures actually do not support 21800 # (some of) these operations. Do we need stricter checks? 21801 # The cast to long int works around a bug in the HP C Compiler 21802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21804# This bug is HP SR number 8606223364. 21805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 21806$as_echo_n "checking size of void *... " >&6; } 21807if ${ac_cv_sizeof_void_p+:} false; then : 21808 $as_echo_n "(cached) " >&6 21809else 21810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 21811 21812else 21813 if test "$ac_cv_type_void_p" = yes; then 21814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21816as_fn_error 77 "cannot compute sizeof (void *) 21817See \`config.log' for more details" "$LINENO" 5; } 21818 else 21819 ac_cv_sizeof_void_p=0 21820 fi 21821fi 21822 21823fi 21824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 21825$as_echo "$ac_cv_sizeof_void_p" >&6; } 21826 21827 21828 21829cat >>confdefs.h <<_ACEOF 21830#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 21831_ACEOF 21832 21833 21834 if test $ac_cv_sizeof_void_p = 8; then 21835 arch=x86_64 21836 have_xaddq=yes 21837 else 21838 arch=x86_32 21839 fi 21840 ;; 21841 x86_64-*|amd64-*) 21842 # The cast to long int works around a bug in the HP C Compiler 21843# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21844# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21845# This bug is HP SR number 8606223364. 21846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 21847$as_echo_n "checking size of void *... " >&6; } 21848if ${ac_cv_sizeof_void_p+:} false; then : 21849 $as_echo_n "(cached) " >&6 21850else 21851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 21852 21853else 21854 if test "$ac_cv_type_void_p" = yes; then 21855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21857as_fn_error 77 "cannot compute sizeof (void *) 21858See \`config.log' for more details" "$LINENO" 5; } 21859 else 21860 ac_cv_sizeof_void_p=0 21861 fi 21862fi 21863 21864fi 21865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 21866$as_echo "$ac_cv_sizeof_void_p" >&6; } 21867 21868 21869 21870cat >>confdefs.h <<_ACEOF 21871#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 21872_ACEOF 21873 21874 21875 if test $ac_cv_sizeof_void_p = 8; then 21876 arch=x86_64 21877 have_xaddq=yes 21878 else 21879 arch=x86_32 21880 fi 21881 ;; 21882 alpha*-*) 21883 arch=alpha 21884 ;; 21885 powerpc-*|powerpc64*-*|powerpc64el-*) 21886 arch=powerpc 21887 ;; 21888 mips-*|mipsel-*|mips64-*|mips64el-*) 21889 arch=mips 21890 ;; 21891 ia64-*) 21892 arch=ia64 21893 ;; 21894 *) 21895 have_atomic=no 21896 arch=noatomic 21897 ;; 21898 esac 21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5 21900$as_echo_n "checking architecture type for atomic operations... " >&6; } 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5 21902$as_echo "$arch" >&6; } 21903fi 21904 21905if test "yes" = "$have_atomic"; then 21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5 21907$as_echo_n "checking compiler support for inline assembly code... " >&6; } 21908 21909 compiler=generic 21910 # Check whether the compiler supports the assembly syntax we provide. 21911 if test "X$GCC" = "Xyes"; then 21912 # GCC's ASM extension always works 21913 compiler=gcc 21914 if test $arch = "x86_64"; then 21915 # We can share the same code for gcc with x86_32 21916 arch=x86_32 21917 fi 21918 if test $arch = "powerpc"; then 21919 # 21920 # The MacOS (and maybe others) uses "r0" for register 21921 # zero. Under linux/ibm it is "0" for register 0. 21922 # Probe to see if we have a MacOS style assembler. 21923 # 21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5 21925$as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; } 21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21927/* end confdefs.h. */ 21928 21929int 21930main () 21931{ 21932 21933 __asm__ volatile ("li r0, 0x0\n"::); 21934 21935 ; 21936 return 0; 21937} 21938_ACEOF 21939if ac_fn_c_try_compile "$LINENO"; then : 21940 21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21942$as_echo "yes" >&6; } 21943 compiler="mac" 21944 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1" 21945 21946else 21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21948$as_echo "no" >&6; } 21949fi 21950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21951 fi 21952 else 21953 case "$host" in 21954 alpha*-dec-osf*) 21955 # Tru64 compiler has its own syntax for inline 21956 # assembly. 21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21958/* end confdefs.h. */ 21959 21960int 21961main () 21962{ 21963 21964#ifndef __DECC 21965#error "unexpected compiler" 21966#endif 21967 return (0); 21968 ; 21969 return 0; 21970} 21971_ACEOF 21972if ac_fn_c_try_compile "$LINENO"; then : 21973 compiler=osf 21974fi 21975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21976 ;; 21977 powerpc-ibm-aix*) 21978 compiler=aix 21979 ;; 21980 esac 21981 fi 21982 case "$compiler" in 21983 gcc) 21984 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1" 21985 ;; 21986 osf) 21987 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1" 21988 ;; 21989 aix) 21990 ;; 21991 mac) 21992 ;; 21993 *) 21994 # See if the generic __asm function works. If not, 21995 # we need to disable the atomic operations. 21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21997/* end confdefs.h. */ 21998 21999int 22000main () 22001{ 22002 22003 __asm("nop") 22004 22005 ; 22006 return 0; 22007} 22008_ACEOF 22009if ac_fn_c_try_link "$LINENO"; then : 22010 compiler="standard" 22011 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1" 22012else 22013 compiler="not supported (atomic operations disabled)" 22014 have_atomic=no 22015 arch=noatomic 22016fi 22017rm -f core conftest.err conftest.$ac_objext \ 22018 conftest$ac_exeext conftest.$ac_ext; 22019 ;; 22020 esac 22021 22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5 22023$as_echo "$compiler" >&6; } 22024fi 22025 22026if test "yes" = "$have_atomic"; then 22027 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1" 22028 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1" 22029 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1" 22030 if test "yes" = "$have_xaddq"; then 22031 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1" 22032 ISC_PLATFORM_HAVEATOMICSTOREQ="#define ISC_PLATFORM_HAVEATOMICSTOREQ 1" 22033 else 22034 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ" 22035 ISC_PLATFORM_HAVEATOMICSTOREQ="#undef ISC_PLATFORM_HAVEATOMICSTOREQ" 22036 fi 22037else 22038 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD" 22039 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG" 22040 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE" 22041 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ" 22042 ISC_PLATFORM_HAVEATOMICSTOREQ="#undef ISC_PLATFORM_HAVEATOMICSTOREQ" 22043fi 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056ISC_ARCH_DIR=$arch 22057 22058 22059# 22060# Check for __builtin_unreachable 22061# 22062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5 22063$as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; } 22064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22065/* end confdefs.h. */ 22066 22067int 22068main () 22069{ 22070__builtin_unreachable(); 22071 22072 ; 22073 return 0; 22074} 22075_ACEOF 22076if ac_fn_c_try_link "$LINENO"; then : 22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22078$as_echo "yes" >&6; } 22079 22080$as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h 22081 22082 22083else 22084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22085$as_echo "no" >&6; } 22086 22087fi 22088rm -f core conftest.err conftest.$ac_objext \ 22089 conftest$ac_exeext conftest.$ac_ext 22090 22091# 22092# Check for __builtin_expect 22093# 22094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5 22095$as_echo_n "checking compiler support for __builtin_expect... " >&6; } 22096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22097/* end confdefs.h. */ 22098 22099int 22100main () 22101{ 22102 22103 return (__builtin_expect(1, 1) ? 1 : 0); 22104 22105 ; 22106 return 0; 22107} 22108_ACEOF 22109if ac_fn_c_try_link "$LINENO"; then : 22110 22111 have_builtin_expect=yes 22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22113$as_echo "yes" >&6; } 22114 22115else 22116 22117 have_builtin_expect=no 22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22119$as_echo "no" >&6; } 22120 22121fi 22122rm -f core conftest.err conftest.$ac_objext \ 22123 conftest$ac_exeext conftest.$ac_ext 22124if test "yes" = "$have_builtin_expect"; then 22125 22126$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 22127 22128fi 22129 22130# 22131# Check for __builtin_clz 22132# 22133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5 22134$as_echo_n "checking compiler support for __builtin_clz... " >&6; } 22135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22136/* end confdefs.h. */ 22137 22138int 22139main () 22140{ 22141 22142 return (__builtin_clz(0xff) == 24 ? 1 : 0); 22143 22144 ; 22145 return 0; 22146} 22147_ACEOF 22148if ac_fn_c_try_link "$LINENO"; then : 22149 22150 have_builtin_clz=yes 22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22152$as_echo "yes" >&6; } 22153 22154else 22155 22156 have_builtin_clz=no 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22158$as_echo "no" >&6; } 22159 22160fi 22161rm -f core conftest.err conftest.$ac_objext \ 22162 conftest$ac_exeext conftest.$ac_ext 22163if test "yes" = "$have_builtin_clz"; then 22164 22165$as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h 22166 22167fi 22168 22169# 22170# CPU relax (for spin locks) 22171# 22172if $use_threads 22173then 22174 case "$host" in 22175 i[3456]86-*) 22176 # x86_32 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"rep; nop\"); works" >&5 22178$as_echo_n "checking if asm(\"rep; nop\"); works... " >&6; } 22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22180/* end confdefs.h. */ 22181 22182int 22183main () 22184{ 22185asm("rep; nop"); 22186 ; 22187 return 0; 22188} 22189_ACEOF 22190if ac_fn_c_try_compile "$LINENO"; then : 22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22192$as_echo "yes" >&6; } 22193 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"rep; nop\")" 22194else 22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22196$as_echo "no" >&6; } 22197fi 22198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22199 ;; 22200 x86_64-*|amd64-*) 22201 # x86_64 22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"rep; nop\"); works" >&5 22203$as_echo_n "checking if asm(\"rep; nop\"); works... " >&6; } 22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22205/* end confdefs.h. */ 22206 22207int 22208main () 22209{ 22210asm("rep; nop"); 22211 ; 22212 return 0; 22213} 22214_ACEOF 22215if ac_fn_c_try_compile "$LINENO"; then : 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22217$as_echo "yes" >&6; } 22218 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"rep; nop\")" 22219else 22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22221$as_echo "no" >&6; } 22222fi 22223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22224 ;; 22225 ia64-*) 22226 # ia64 22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"hint @pause\"); works" >&5 22228$as_echo_n "checking if asm(\"hint @pause\"); works... " >&6; } 22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22230/* end confdefs.h. */ 22231 22232int 22233main () 22234{ 22235asm("hint @pause"); 22236 ; 22237 return 0; 22238} 22239_ACEOF 22240if ac_fn_c_try_compile "$LINENO"; then : 22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22242$as_echo "yes" >&6; } 22243 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP asm(\"hint @pause\")" 22244else 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22246$as_echo "no" >&6; } 22247fi 22248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22249 ;; 22250 sparc-*) 22251 # sparc 22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpu_relax(); or __cpu_relax(); works" >&5 22253$as_echo_n "checking if cpu_relax(); or __cpu_relax(); works... " >&6; } 22254 ac_fn_c_check_func "$LINENO" "cpu_relax" "ac_cv_func_cpu_relax" 22255if test "x$ac_cv_func_cpu_relax" = xyes; then : 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22257$as_echo "yes" >&6; } 22258 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP cpu_relax()" 22259else 22260 ac_fn_c_check_func "$LINENO" "__cpu_relax" "ac_cv_func___cpu_relax" 22261if test "x$ac_cv_func___cpu_relax" = xyes; then : 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22263$as_echo "yes" >&6; } 22264 ISC_PLATFORM_BUSYWAITNOP="#define ISC_PLATFORM_BUSYWAITNOP __cpu_relax()" 22265else 22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22267$as_echo "no" >&6; } 22268fi 22269 22270fi 22271 22272 ;; 22273 esac 22274fi 22275 22276 22277 22278# 22279# Activate "rrset-order fixed" or not? 22280# 22281# [pairwise: --enable-fixed-rrset, --disable-fixed-rrset] 22282# Check whether --enable-fixed-rrset was given. 22283if test "${enable_fixed_rrset+set}" = set; then : 22284 enableval=$enable_fixed_rrset; enable_fixed="$enableval" 22285else 22286 enable_fixed="no" 22287fi 22288 22289case "$enable_fixed" in 22290 yes) 22291 22292$as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h 22293 22294 ;; 22295 no) 22296 ;; 22297 *) 22298 ;; 22299esac 22300 22301# 22302# Enable response policy rewriting using NS IP addresses 22303# 22304# [pairwise: --enable-rpz-nsip, --disable-rpz-nsip] 22305# Check whether --enable-rpz-nsip was given. 22306if test "${enable_rpz_nsip+set}" = set; then : 22307 enableval=$enable_rpz_nsip; enable_nsip="$enableval" 22308else 22309 enable_nsip="yes" 22310fi 22311 22312case "$enable_nsip" in 22313 yes) 22314 22315$as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h 22316 22317 ;; 22318 no) 22319 ;; 22320 *) 22321 ;; 22322esac 22323 22324# 22325# Enable response policy rewriting using NS name 22326# 22327# [pairwise: --enable-rpz-nsdname, --disable-rpz-nsdname] 22328# Check whether --enable-rpz-nsdname was given. 22329if test "${enable_rpz_nsdname+set}" = set; then : 22330 enableval=$enable_rpz_nsdname; enable_nsdname="$enableval" 22331else 22332 enable_nsdname="yes" 22333fi 22334 22335case "$enable_nsdname" in 22336 yes) 22337 22338$as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h 22339 22340 ;; 22341 no) 22342 ;; 22343 *) 22344 ;; 22345esac 22346 22347# 22348# Activate "filter-aaaa-on-v4/v6" or not? 22349# 22350# [pairwise: --enable-filter-aaaa, --disable-filter-aaaa] 22351# Check whether --enable-filter-aaaa was given. 22352if test "${enable_filter_aaaa+set}" = set; then : 22353 enableval=$enable_filter_aaaa; enable_filter="$enableval" 22354else 22355 enable_filter="no" 22356fi 22357 22358case "$enable_filter" in 22359 yes) 22360 22361$as_echo "#define ALLOW_FILTER_AAAA 1" >>confdefs.h 22362 22363 ;; 22364 no) 22365 ;; 22366 *) 22367 ;; 22368esac 22369 22370# 22371# Activate dnstap? 22372# 22373# [pairwise: --enable-dnstap, --disable-dnstap] 22374# Check whether --enable-dnstap was given. 22375if test "${enable_dnstap+set}" = set; then : 22376 enableval=$enable_dnstap; use_dnstap=$enableval 22377else 22378 use_dnstap=no 22379fi 22380 22381 22382DNSTAP= 22383DNSTAPSRCS= 22384DNSTAPOBJS= 22385DNSTAPTARGETS= 22386if test "x$use_dnstap" != "xno"; then 22387 if ! $use_threads; then 22388 as_fn_error $? "Dnstap requires threads." "$LINENO" 5 22389 fi 22390 22391 # [pairwise: skip] 22392 22393# Check whether --with-protobuf-c was given. 22394if test "${with_protobuf_c+set}" = set; then : 22395 withval=$with_protobuf_c; 22396 # workaround for protobuf-c includes at old dir 22397 # before protobuf-c-1.0.0 22398 if test -f $withval/include/google/protobuf-c/protobuf-c.h 22399 then 22400 CFLAGS="$CFLAGS -I$withval/include/google" 22401 else 22402 CFLAGS="$CFLAGS -I$withval/include" 22403 fi 22404 LDFLAGS="$LDFLAGS -L$withval/lib" 22405 # Extract the first word of "protoc-c", so it can be a program name with args. 22406set dummy protoc-c; ac_word=$2 22407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22408$as_echo_n "checking for $ac_word... " >&6; } 22409if ${ac_cv_path_PROTOC_C+:} false; then : 22410 $as_echo_n "(cached) " >&6 22411else 22412 case $PROTOC_C in 22413 [\\/]* | ?:[\\/]*) 22414 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 22415 ;; 22416 *) 22417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22418for as_dir in $PATH$PATH_SEPARATOR$withval/bin 22419do 22420 IFS=$as_save_IFS 22421 test -z "$as_dir" && as_dir=. 22422 for ac_exec_ext in '' $ac_executable_extensions; do 22423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22424 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 22425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22426 break 2 22427 fi 22428done 22429 done 22430IFS=$as_save_IFS 22431 22432 ;; 22433esac 22434fi 22435PROTOC_C=$ac_cv_path_PROTOC_C 22436if test -n "$PROTOC_C"; then 22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 22438$as_echo "$PROTOC_C" >&6; } 22439else 22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22441$as_echo "no" >&6; } 22442fi 22443 22444 22445 22446else 22447 22448 # workaround for protobuf-c includes at old dir 22449 # before protobuf-c-1.0.0 22450 if test -f /usr/include/google/protobuf-c/protobuf-c.h 22451 then 22452 CFLAGS="$CFLAGS -I/usr/include/google" 22453 else 22454 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h 22455 then 22456 CFLAGS="$CFLAGS -I/usr/local/include/google" 22457 LDFLAGS="$LDFLAGS -L/usr/local/lib" 22458 fi 22459 fi 22460 # Extract the first word of "protoc-c", so it can be a program name with args. 22461set dummy protoc-c; ac_word=$2 22462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22463$as_echo_n "checking for $ac_word... " >&6; } 22464if ${ac_cv_path_PROTOC_C+:} false; then : 22465 $as_echo_n "(cached) " >&6 22466else 22467 case $PROTOC_C in 22468 [\\/]* | ?:[\\/]*) 22469 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 22470 ;; 22471 *) 22472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22473for as_dir in $PATH 22474do 22475 IFS=$as_save_IFS 22476 test -z "$as_dir" && as_dir=. 22477 for ac_exec_ext in '' $ac_executable_extensions; do 22478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22479 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 22480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22481 break 2 22482 fi 22483done 22484 done 22485IFS=$as_save_IFS 22486 22487 ;; 22488esac 22489fi 22490PROTOC_C=$ac_cv_path_PROTOC_C 22491if test -n "$PROTOC_C"; then 22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 22493$as_echo "$PROTOC_C" >&6; } 22494else 22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22496$as_echo "no" >&6; } 22497fi 22498 22499 22500 22501fi 22502 22503 if test -z "$PROTOC_C"; then 22504 as_fn_error $? "The protoc-c program was not found." "$LINENO" 5 22505 fi 22506 22507 # [pairwise: skip] 22508 22509# Check whether --with-libfstrm was given. 22510if test "${with_libfstrm+set}" = set; then : 22511 withval=$with_libfstrm; 22512 CFLAGS="$CFLAGS -I$withval/include" 22513 LDFLAGS="$LDFLAGS -L$withval/lib" 22514 # Extract the first word of "fstrm_capture", so it can be a program name with args. 22515set dummy fstrm_capture; ac_word=$2 22516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22517$as_echo_n "checking for $ac_word... " >&6; } 22518if ${ac_cv_path_FSTRM_CAPTURE+:} false; then : 22519 $as_echo_n "(cached) " >&6 22520else 22521 case $FSTRM_CAPTURE in 22522 [\\/]* | ?:[\\/]*) 22523 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path. 22524 ;; 22525 *) 22526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22527for as_dir in $PATH$PATH_SEPARATOR$withval/bin 22528do 22529 IFS=$as_save_IFS 22530 test -z "$as_dir" && as_dir=. 22531 for ac_exec_ext in '' $ac_executable_extensions; do 22532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22533 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext" 22534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22535 break 2 22536 fi 22537done 22538 done 22539IFS=$as_save_IFS 22540 22541 ;; 22542esac 22543fi 22544FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE 22545if test -n "$FSTRM_CAPTURE"; then 22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5 22547$as_echo "$FSTRM_CAPTURE" >&6; } 22548else 22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22550$as_echo "no" >&6; } 22551fi 22552 22553 22554 22555else 22556 22557 # Extract the first word of "fstrm_capture", so it can be a program name with args. 22558set dummy fstrm_capture; ac_word=$2 22559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22560$as_echo_n "checking for $ac_word... " >&6; } 22561if ${ac_cv_path_FSTRM_CAPTURE+:} false; then : 22562 $as_echo_n "(cached) " >&6 22563else 22564 case $FSTRM_CAPTURE in 22565 [\\/]* | ?:[\\/]*) 22566 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path. 22567 ;; 22568 *) 22569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22570for as_dir in $PATH 22571do 22572 IFS=$as_save_IFS 22573 test -z "$as_dir" && as_dir=. 22574 for ac_exec_ext in '' $ac_executable_extensions; do 22575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22576 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext" 22577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22578 break 2 22579 fi 22580done 22581 done 22582IFS=$as_save_IFS 22583 22584 ;; 22585esac 22586fi 22587FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE 22588if test -n "$FSTRM_CAPTURE"; then 22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5 22590$as_echo "$FSTRM_CAPTURE" >&6; } 22591else 22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22593$as_echo "no" >&6; } 22594fi 22595 22596 22597 22598fi 22599 22600 22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 22602$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; } 22603if ${ac_cv_search_fstrm_iothr_init+:} false; then : 22604 $as_echo_n "(cached) " >&6 22605else 22606 ac_func_search_save_LIBS=$LIBS 22607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22608/* end confdefs.h. */ 22609 22610/* Override any GCC internal prototype to avoid an error. 22611 Use char because int might match the return type of a GCC 22612 builtin and then its argument prototype would still apply. */ 22613#ifdef __cplusplus 22614extern "C" 22615#endif 22616char fstrm_iothr_init (); 22617int 22618main () 22619{ 22620return fstrm_iothr_init (); 22621 ; 22622 return 0; 22623} 22624_ACEOF 22625for ac_lib in '' fstrm; do 22626 if test -z "$ac_lib"; then 22627 ac_res="none required" 22628 else 22629 ac_res=-l$ac_lib 22630 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22631 fi 22632 if ac_fn_c_try_link "$LINENO"; then : 22633 ac_cv_search_fstrm_iothr_init=$ac_res 22634fi 22635rm -f core conftest.err conftest.$ac_objext \ 22636 conftest$ac_exeext 22637 if ${ac_cv_search_fstrm_iothr_init+:} false; then : 22638 break 22639fi 22640done 22641if ${ac_cv_search_fstrm_iothr_init+:} false; then : 22642 22643else 22644 ac_cv_search_fstrm_iothr_init=no 22645fi 22646rm conftest.$ac_ext 22647LIBS=$ac_func_search_save_LIBS 22648fi 22649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 22650$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; } 22651ac_res=$ac_cv_search_fstrm_iothr_init 22652if test "$ac_res" != no; then : 22653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22654 22655else 22656 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 22657fi 22658 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 22660$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 22661if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 22662 $as_echo_n "(cached) " >&6 22663else 22664 ac_func_search_save_LIBS=$LIBS 22665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22666/* end confdefs.h. */ 22667 22668/* Override any GCC internal prototype to avoid an error. 22669 Use char because int might match the return type of a GCC 22670 builtin and then its argument prototype would still apply. */ 22671#ifdef __cplusplus 22672extern "C" 22673#endif 22674char protobuf_c_message_pack (); 22675int 22676main () 22677{ 22678return protobuf_c_message_pack (); 22679 ; 22680 return 0; 22681} 22682_ACEOF 22683for ac_lib in '' protobuf-c; do 22684 if test -z "$ac_lib"; then 22685 ac_res="none required" 22686 else 22687 ac_res=-l$ac_lib 22688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22689 fi 22690 if ac_fn_c_try_link "$LINENO"; then : 22691 ac_cv_search_protobuf_c_message_pack=$ac_res 22692fi 22693rm -f core conftest.err conftest.$ac_objext \ 22694 conftest$ac_exeext 22695 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 22696 break 22697fi 22698done 22699if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 22700 22701else 22702 ac_cv_search_protobuf_c_message_pack=no 22703fi 22704rm conftest.$ac_ext 22705LIBS=$ac_func_search_save_LIBS 22706fi 22707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 22708$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 22709ac_res=$ac_cv_search_protobuf_c_message_pack 22710if test "$ac_res" != no; then : 22711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22712 22713else 22714 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 22715fi 22716 22717 22718 22719$as_echo "#define HAVE_DNSTAP 1" >>confdefs.h 22720 22721 DNSTAP=dnstap 22722 DNSTAPSRCS='${DNSTAPSRCS}' 22723 DNSTAPOBJS='${DNSTAPOBJS}' 22724 DNSTAPTARGETS='${DNSTAPTARGETS}' 22725fi 22726 22727 22728 22729 22730 22731# 22732# The following sets up how non-blocking i/o is established. 22733# Sunos, cygwin and solaris 2.x (x<5) require special handling. 22734# 22735case "$host" in 22736*-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h 22737;; 22738*-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h 22739;; 22740*-solaris2.[01234]) 22741 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h 22742 22743 22744$as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h 22745 22746 ;; 22747*) 22748$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h 22749 22750 ;; 22751esac 22752# 22753# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket. 22754# This prevents the source address being set. 22755# 22756case "$host" in 22757*-solaris2.[012345]|*-solaris2.5.1) 22758 22759$as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h 22760 22761 ;; 22762esac 22763# 22764# The following sections deal with tools used for formatting 22765# the documentation. They are all optional, unless you are 22766# a developer editing the documentation source. 22767# 22768 22769# 22770# Look for TeX. 22771# 22772 22773for ac_prog in latex 22774do 22775 # Extract the first word of "$ac_prog", so it can be a program name with args. 22776set dummy $ac_prog; ac_word=$2 22777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22778$as_echo_n "checking for $ac_word... " >&6; } 22779if ${ac_cv_path_LATEX+:} false; then : 22780 $as_echo_n "(cached) " >&6 22781else 22782 case $LATEX in 22783 [\\/]* | ?:[\\/]*) 22784 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. 22785 ;; 22786 *) 22787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22788for as_dir in $PATH 22789do 22790 IFS=$as_save_IFS 22791 test -z "$as_dir" && as_dir=. 22792 for ac_exec_ext in '' $ac_executable_extensions; do 22793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22794 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" 22795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22796 break 2 22797 fi 22798done 22799 done 22800IFS=$as_save_IFS 22801 22802 ;; 22803esac 22804fi 22805LATEX=$ac_cv_path_LATEX 22806if test -n "$LATEX"; then 22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 22808$as_echo "$LATEX" >&6; } 22809else 22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22811$as_echo "no" >&6; } 22812fi 22813 22814 22815 test -n "$LATEX" && break 22816done 22817test -n "$LATEX" || LATEX="latex" 22818 22819 22820 22821for ac_prog in pdflatex 22822do 22823 # Extract the first word of "$ac_prog", so it can be a program name with args. 22824set dummy $ac_prog; ac_word=$2 22825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22826$as_echo_n "checking for $ac_word... " >&6; } 22827if ${ac_cv_path_PDFLATEX+:} false; then : 22828 $as_echo_n "(cached) " >&6 22829else 22830 case $PDFLATEX in 22831 [\\/]* | ?:[\\/]*) 22832 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. 22833 ;; 22834 *) 22835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22836for as_dir in $PATH 22837do 22838 IFS=$as_save_IFS 22839 test -z "$as_dir" && as_dir=. 22840 for ac_exec_ext in '' $ac_executable_extensions; do 22841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22842 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 22843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22844 break 2 22845 fi 22846done 22847 done 22848IFS=$as_save_IFS 22849 22850 ;; 22851esac 22852fi 22853PDFLATEX=$ac_cv_path_PDFLATEX 22854if test -n "$PDFLATEX"; then 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 22856$as_echo "$PDFLATEX" >&6; } 22857else 22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22859$as_echo "no" >&6; } 22860fi 22861 22862 22863 test -n "$PDFLATEX" && break 22864done 22865test -n "$PDFLATEX" || PDFLATEX="pdflatex" 22866 22867 22868 22869for ac_prog in dblatex 22870do 22871 # Extract the first word of "$ac_prog", so it can be a program name with args. 22872set dummy $ac_prog; ac_word=$2 22873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22874$as_echo_n "checking for $ac_word... " >&6; } 22875if ${ac_cv_path_DBLATEX+:} false; then : 22876 $as_echo_n "(cached) " >&6 22877else 22878 case $DBLATEX in 22879 [\\/]* | ?:[\\/]*) 22880 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path. 22881 ;; 22882 *) 22883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22884for as_dir in $PATH 22885do 22886 IFS=$as_save_IFS 22887 test -z "$as_dir" && as_dir=. 22888 for ac_exec_ext in '' $ac_executable_extensions; do 22889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22890 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext" 22891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22892 break 2 22893 fi 22894done 22895 done 22896IFS=$as_save_IFS 22897 22898 ;; 22899esac 22900fi 22901DBLATEX=$ac_cv_path_DBLATEX 22902if test -n "$DBLATEX"; then 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5 22904$as_echo "$DBLATEX" >&6; } 22905else 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22907$as_echo "no" >&6; } 22908fi 22909 22910 22911 test -n "$DBLATEX" && break 22912done 22913test -n "$DBLATEX" || DBLATEX="dblatex" 22914 22915 22916 22917# 22918# Look for w3m 22919# 22920 22921for ac_prog in w3m 22922do 22923 # Extract the first word of "$ac_prog", so it can be a program name with args. 22924set dummy $ac_prog; ac_word=$2 22925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22926$as_echo_n "checking for $ac_word... " >&6; } 22927if ${ac_cv_path_W3M+:} false; then : 22928 $as_echo_n "(cached) " >&6 22929else 22930 case $W3M in 22931 [\\/]* | ?:[\\/]*) 22932 ac_cv_path_W3M="$W3M" # Let the user override the test with a path. 22933 ;; 22934 *) 22935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22936for as_dir in $PATH 22937do 22938 IFS=$as_save_IFS 22939 test -z "$as_dir" && as_dir=. 22940 for ac_exec_ext in '' $ac_executable_extensions; do 22941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22942 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext" 22943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22944 break 2 22945 fi 22946done 22947 done 22948IFS=$as_save_IFS 22949 22950 ;; 22951esac 22952fi 22953W3M=$ac_cv_path_W3M 22954if test -n "$W3M"; then 22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5 22956$as_echo "$W3M" >&6; } 22957else 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22959$as_echo "no" >&6; } 22960fi 22961 22962 22963 test -n "$W3M" && break 22964done 22965test -n "$W3M" || W3M="w3m" 22966 22967 22968 22969# 22970# Look for pandoc 22971# 22972# Extract the first word of "pandoc", so it can be a program name with args. 22973set dummy pandoc; ac_word=$2 22974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22975$as_echo_n "checking for $ac_word... " >&6; } 22976if ${ac_cv_path_PANDOC+:} false; then : 22977 $as_echo_n "(cached) " >&6 22978else 22979 case $PANDOC in 22980 [\\/]* | ?:[\\/]*) 22981 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 22982 ;; 22983 *) 22984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22985for as_dir in $PATH 22986do 22987 IFS=$as_save_IFS 22988 test -z "$as_dir" && as_dir=. 22989 for ac_exec_ext in '' $ac_executable_extensions; do 22990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22991 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 22992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22993 break 2 22994 fi 22995done 22996 done 22997IFS=$as_save_IFS 22998 22999 test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc" 23000 ;; 23001esac 23002fi 23003PANDOC=$ac_cv_path_PANDOC 23004if test -n "$PANDOC"; then 23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 23006$as_echo "$PANDOC" >&6; } 23007else 23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23009$as_echo "no" >&6; } 23010fi 23011 23012 23013 23014 23015 23016# 23017# Look for xsltproc (libxslt) 23018# 23019 23020# Extract the first word of "xsltproc", so it can be a program name with args. 23021set dummy xsltproc; ac_word=$2 23022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23023$as_echo_n "checking for $ac_word... " >&6; } 23024if ${ac_cv_path_XSLTPROC+:} false; then : 23025 $as_echo_n "(cached) " >&6 23026else 23027 case $XSLTPROC in 23028 [\\/]* | ?:[\\/]*) 23029 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 23030 ;; 23031 *) 23032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23033for as_dir in $PATH 23034do 23035 IFS=$as_save_IFS 23036 test -z "$as_dir" && as_dir=. 23037 for ac_exec_ext in '' $ac_executable_extensions; do 23038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23039 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 23040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23041 break 2 23042 fi 23043done 23044 done 23045IFS=$as_save_IFS 23046 23047 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc" 23048 ;; 23049esac 23050fi 23051XSLTPROC=$ac_cv_path_XSLTPROC 23052if test -n "$XSLTPROC"; then 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 23054$as_echo "$XSLTPROC" >&6; } 23055else 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23057$as_echo "no" >&6; } 23058fi 23059 23060 23061 23062 23063# 23064# Look for xmllint (libxml2) 23065# 23066 23067# Extract the first word of "xmllint", so it can be a program name with args. 23068set dummy xmllint; ac_word=$2 23069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23070$as_echo_n "checking for $ac_word... " >&6; } 23071if ${ac_cv_path_XMLLINT+:} false; then : 23072 $as_echo_n "(cached) " >&6 23073else 23074 case $XMLLINT in 23075 [\\/]* | ?:[\\/]*) 23076 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 23077 ;; 23078 *) 23079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23080for as_dir in $PATH 23081do 23082 IFS=$as_save_IFS 23083 test -z "$as_dir" && as_dir=. 23084 for ac_exec_ext in '' $ac_executable_extensions; do 23085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23086 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext" 23087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23088 break 2 23089 fi 23090done 23091 done 23092IFS=$as_save_IFS 23093 23094 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint" 23095 ;; 23096esac 23097fi 23098XMLLINT=$ac_cv_path_XMLLINT 23099if test -n "$XMLLINT"; then 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 23101$as_echo "$XMLLINT" >&6; } 23102else 23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23104$as_echo "no" >&6; } 23105fi 23106 23107 23108 23109 23110# 23111# Look for Doxygen 23112# 23113 23114# Extract the first word of "doxygen", so it can be a program name with args. 23115set dummy doxygen; ac_word=$2 23116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23117$as_echo_n "checking for $ac_word... " >&6; } 23118if ${ac_cv_path_DOXYGEN+:} false; then : 23119 $as_echo_n "(cached) " >&6 23120else 23121 case $DOXYGEN in 23122 [\\/]* | ?:[\\/]*) 23123 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 23124 ;; 23125 *) 23126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23127for as_dir in $PATH 23128do 23129 IFS=$as_save_IFS 23130 test -z "$as_dir" && as_dir=. 23131 for ac_exec_ext in '' $ac_executable_extensions; do 23132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23133 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 23134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23135 break 2 23136 fi 23137done 23138 done 23139IFS=$as_save_IFS 23140 23141 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen" 23142 ;; 23143esac 23144fi 23145DOXYGEN=$ac_cv_path_DOXYGEN 23146if test -n "$DOXYGEN"; then 23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 23148$as_echo "$DOXYGEN" >&6; } 23149else 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23151$as_echo "no" >&6; } 23152fi 23153 23154 23155 23156 23157# 23158# Look for curl 23159# 23160 23161# Extract the first word of "curl", so it can be a program name with args. 23162set dummy curl; ac_word=$2 23163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23164$as_echo_n "checking for $ac_word... " >&6; } 23165if ${ac_cv_path_CURL+:} false; then : 23166 $as_echo_n "(cached) " >&6 23167else 23168 case $CURL in 23169 [\\/]* | ?:[\\/]*) 23170 ac_cv_path_CURL="$CURL" # Let the user override the test with a path. 23171 ;; 23172 *) 23173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23174for as_dir in $PATH 23175do 23176 IFS=$as_save_IFS 23177 test -z "$as_dir" && as_dir=. 23178 for ac_exec_ext in '' $ac_executable_extensions; do 23179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23180 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext" 23181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23182 break 2 23183 fi 23184done 23185 done 23186IFS=$as_save_IFS 23187 23188 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl" 23189 ;; 23190esac 23191fi 23192CURL=$ac_cv_path_CURL 23193if test -n "$CURL"; then 23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5 23195$as_echo "$CURL" >&6; } 23196else 23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23198$as_echo "no" >&6; } 23199fi 23200 23201 23202 23203 23204# 23205# Subroutine for searching for an ordinary file (e.g., a stylesheet) 23206# in a number of directories: 23207# 23208# NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES) 23209# 23210# If the file FILENAME is found in one of the DIRECTORIES, the shell 23211# variable VARIABLE is defined to its absolute pathname. Otherwise, 23212# it is set to FILENAME, with no directory prefix (that's not terribly 23213# useful, but looks less confusing in substitutions than leaving it 23214# empty). The variable VARIABLE will be substituted into output files. 23215# 23216 23217 23218 23219# 23220# Look for Docbook-XSL stylesheets. Location probably varies by system. 23221# If it's not explicitly specified, guess where it might be found, based on 23222# where SGML stuff lives on some systems (FreeBSD is the only one we're sure 23223# of at the moment). 23224# 23225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5 23226$as_echo_n "checking for Docbook-XSL path... " >&6; } 23227 23228# [pairwise: skip] 23229 23230# Check whether --with-docbook-xsl was given. 23231if test "${with_docbook_xsl+set}" = set; then : 23232 withval=$with_docbook_xsl; docbook_path="$withval" 23233else 23234 docbook_path="auto" 23235fi 23236 23237case "$docbook_path" in 23238auto) 23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 23240$as_echo "auto" >&6; } 23241 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /usr/share/sgml/docbook/xsl-stylesheets /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl" 23242 ;; 23243*) 23244 docbook_xsl_trees="$withval" 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5 23246$as_echo "$docbook_xsl_trees" >&6; } 23247 ;; 23248esac 23249 23250# 23251# Look for stylesheets we need. 23252# 23253 23254 23255XSLT_DOCBOOK_STYLE_HTML="" 23256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5 23257$as_echo_n "checking for html/docbook.xsl... " >&6; } 23258for d in $docbook_xsl_trees 23259do 23260 f=$d/html/docbook.xsl 23261 if test -f $f 23262 then 23263 XSLT_DOCBOOK_STYLE_HTML=$f 23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23265$as_echo "$f" >&6; } 23266 break 23267 fi 23268done 23269if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X" 23270then 23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23272$as_echo "\"not found\"" >&6; }; 23273 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl 23274fi 23275 23276 23277 23278XSLT_DOCBOOK_STYLE_XHTML="" 23279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5 23280$as_echo_n "checking for xhtml/docbook.xsl... " >&6; } 23281for d in $docbook_xsl_trees 23282do 23283 f=$d/xhtml/docbook.xsl 23284 if test -f $f 23285 then 23286 XSLT_DOCBOOK_STYLE_XHTML=$f 23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23288$as_echo "$f" >&6; } 23289 break 23290 fi 23291done 23292if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X" 23293then 23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23295$as_echo "\"not found\"" >&6; }; 23296 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl 23297fi 23298 23299 23300 23301XSLT_DOCBOOK_STYLE_MAN="" 23302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5 23303$as_echo_n "checking for manpages/docbook.xsl... " >&6; } 23304for d in $docbook_xsl_trees 23305do 23306 f=$d/manpages/docbook.xsl 23307 if test -f $f 23308 then 23309 XSLT_DOCBOOK_STYLE_MAN=$f 23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23311$as_echo "$f" >&6; } 23312 break 23313 fi 23314done 23315if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X" 23316then 23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23318$as_echo "\"not found\"" >&6; }; 23319 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl 23320fi 23321 23322 23323 23324XSLT_DOCBOOK_CHUNK_HTML="" 23325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5 23326$as_echo_n "checking for html/chunk.xsl... " >&6; } 23327for d in $docbook_xsl_trees 23328do 23329 f=$d/html/chunk.xsl 23330 if test -f $f 23331 then 23332 XSLT_DOCBOOK_CHUNK_HTML=$f 23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23334$as_echo "$f" >&6; } 23335 break 23336 fi 23337done 23338if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X" 23339then 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23341$as_echo "\"not found\"" >&6; }; 23342 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl 23343fi 23344 23345 23346 23347XSLT_DOCBOOK_CHUNK_XHTML="" 23348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5 23349$as_echo_n "checking for xhtml/chunk.xsl... " >&6; } 23350for d in $docbook_xsl_trees 23351do 23352 f=$d/xhtml/chunk.xsl 23353 if test -f $f 23354 then 23355 XSLT_DOCBOOK_CHUNK_XHTML=$f 23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23357$as_echo "$f" >&6; } 23358 break 23359 fi 23360done 23361if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X" 23362then 23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23364$as_echo "\"not found\"" >&6; }; 23365 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl 23366fi 23367 23368 23369 23370XSLT_DOCBOOK_CHUNKTOC_HTML="" 23371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5 23372$as_echo_n "checking for html/chunktoc.xsl... " >&6; } 23373for d in $docbook_xsl_trees 23374do 23375 f=$d/html/chunktoc.xsl 23376 if test -f $f 23377 then 23378 XSLT_DOCBOOK_CHUNKTOC_HTML=$f 23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23380$as_echo "$f" >&6; } 23381 break 23382 fi 23383done 23384if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X" 23385then 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23387$as_echo "\"not found\"" >&6; }; 23388 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl 23389fi 23390 23391 23392 23393XSLT_DOCBOOK_CHUNKTOC_XHTML="" 23394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5 23395$as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; } 23396for d in $docbook_xsl_trees 23397do 23398 f=$d/xhtml/chunktoc.xsl 23399 if test -f $f 23400 then 23401 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f 23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23403$as_echo "$f" >&6; } 23404 break 23405 fi 23406done 23407if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X" 23408then 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23410$as_echo "\"not found\"" >&6; }; 23411 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl 23412fi 23413 23414 23415 23416XSLT_DOCBOOK_MAKETOC_HTML="" 23417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5 23418$as_echo_n "checking for html/maketoc.xsl... " >&6; } 23419for d in $docbook_xsl_trees 23420do 23421 f=$d/html/maketoc.xsl 23422 if test -f $f 23423 then 23424 XSLT_DOCBOOK_MAKETOC_HTML=$f 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23426$as_echo "$f" >&6; } 23427 break 23428 fi 23429done 23430if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X" 23431then 23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23433$as_echo "\"not found\"" >&6; }; 23434 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl 23435fi 23436 23437 23438 23439XSLT_DOCBOOK_MAKETOC_XHTML="" 23440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5 23441$as_echo_n "checking for xhtml/maketoc.xsl... " >&6; } 23442for d in $docbook_xsl_trees 23443do 23444 f=$d/xhtml/maketoc.xsl 23445 if test -f $f 23446 then 23447 XSLT_DOCBOOK_MAKETOC_XHTML=$f 23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 23449$as_echo "$f" >&6; } 23450 break 23451 fi 23452done 23453if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X" 23454then 23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 23456$as_echo "\"not found\"" >&6; }; 23457 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl 23458fi 23459 23460 23461 23462# 23463# IDN support using idnkit 23464# 23465# idnkit is not included in pairwise testing as it is not present in the 23466# relevant Docker image. 23467# 23468# [pairwise: skip] 23469 23470# Check whether --with-idnkit was given. 23471if test "${with_idnkit+set}" = set; then : 23472 withval=$with_idnkit; use_idnkit="$withval" 23473else 23474 use_idnkit="no" 23475fi 23476 23477case "$use_idnkit" in 23478yes) 23479 if test X$prefix = XNONE ; then 23480 idnkit_path=/usr/local 23481 else 23482 idnkit_path=$prefix 23483 fi 23484 ;; 23485no) 23486 ;; 23487*) 23488 idnkit_path="$use_idnkit" 23489 ;; 23490esac 23491 23492iconvinc= 23493iconvlib= 23494 23495# [pairwise: --with-libiconv, --without-libiconv] 23496 23497# Check whether --with-libiconv was given. 23498if test "${with_libiconv+set}" = set; then : 23499 withval=$with_libiconv; use_libiconv="$withval" 23500else 23501 use_libiconv="no" 23502fi 23503 23504case "$use_libiconv" in 23505yes) 23506 if test X$prefix = XNONE ; then 23507 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv" 23508 else 23509 iconvlib="-L$prefix/lib -R$prefix/lib -liconv" 23510 fi 23511 ;; 23512no) 23513 iconvlib= 23514 ;; 23515*) 23516 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv" 23517 ;; 23518esac 23519 23520# [pairwise: --with-iconv, --without-iconv] 23521 23522# Check whether --with-iconv was given. 23523if test "${with_iconv+set}" = set; then : 23524 withval=$with_iconv; iconvlib="$withval" 23525fi 23526 23527case "$iconvlib" in 23528no) 23529 iconvlib= 23530 ;; 23531yes) 23532 iconvlib=-liconv 23533 ;; 23534esac 23535 23536# [pairwise: skip] 23537 23538# Check whether --with-idnlib was given. 23539if test "${with_idnlib+set}" = set; then : 23540 withval=$with_idnlib; idnlib="$withval" 23541else 23542 idnlib="no" 23543fi 23544 23545if test "yes" = "$idnlib"; then 23546 as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5 23547fi 23548 23549IDNKIT_LIBS= 23550if test "no" != "$use_idnkit"; then 23551 23552$as_echo "#define WITH_IDNKIT 1" >>confdefs.h 23553 23554 STD_CINCLUDES="$STD_CINCLUDES -I$idnkit_path/include" 23555 if test "no" != "$idnlib"; then 23556 IDNKIT_LIBS="$idnlib $iconvlib" 23557 else 23558 IDNKIT_LIBS="-L$idnkit_path/lib -lidnkit $iconvlib" 23559 fi 23560fi 23561 23562 23563# 23564# IDN support using libidn2 23565# 23566 23567LIBIDN2_CFLAGS= 23568LIBIDN2_LDFLAGS= 23569LIBIDN2_LIBS= 23570 23571# [pairwise: --with-libidn2=yes, --without-libidn2] 23572 23573# Check whether --with-libidn2 was given. 23574if test "${with_libidn2+set}" = set; then : 23575 withval=$with_libidn2; use_libidn2="$withval" 23576else 23577 use_libidn2="no" 23578fi 23579 23580case $use_libidn2 in #( 23581 no) : 23582 : ;; #( 23583 yes) : 23584 : ;; #( 23585 *) : 23586 23587 LIBIDN2_CFLAGS="-I$use_libidn2/include" 23588 LIBIDN2_LDFLAGS="-L$use_libidn2/lib" 23589 ;; #( 23590 *) : 23591 ;; 23592esac 23593 23594if test "$use_libidn2" != "no"; then : 23595 save_CFLAGS="$CFLAGS" 23596 save_LIBS="$LIBS" 23597 save_LDFLAGS="$LDFLAGS" 23598 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS" 23599 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS" 23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_8z" >&5 23601$as_echo_n "checking for library containing idn2_to_ascii_8z... " >&6; } 23602if ${ac_cv_search_idn2_to_ascii_8z+:} false; then : 23603 $as_echo_n "(cached) " >&6 23604else 23605 ac_func_search_save_LIBS=$LIBS 23606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23607/* end confdefs.h. */ 23608 23609/* Override any GCC internal prototype to avoid an error. 23610 Use char because int might match the return type of a GCC 23611 builtin and then its argument prototype would still apply. */ 23612#ifdef __cplusplus 23613extern "C" 23614#endif 23615char idn2_to_ascii_8z (); 23616int 23617main () 23618{ 23619return idn2_to_ascii_8z (); 23620 ; 23621 return 0; 23622} 23623_ACEOF 23624for ac_lib in '' idn2; do 23625 if test -z "$ac_lib"; then 23626 ac_res="none required" 23627 else 23628 ac_res=-l$ac_lib 23629 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23630 fi 23631 if ac_fn_c_try_link "$LINENO"; then : 23632 ac_cv_search_idn2_to_ascii_8z=$ac_res 23633fi 23634rm -f core conftest.err conftest.$ac_objext \ 23635 conftest$ac_exeext 23636 if ${ac_cv_search_idn2_to_ascii_8z+:} false; then : 23637 break 23638fi 23639done 23640if ${ac_cv_search_idn2_to_ascii_8z+:} false; then : 23641 23642else 23643 ac_cv_search_idn2_to_ascii_8z=no 23644fi 23645rm conftest.$ac_ext 23646LIBS=$ac_func_search_save_LIBS 23647fi 23648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_8z" >&5 23649$as_echo "$ac_cv_search_idn2_to_ascii_8z" >&6; } 23650ac_res=$ac_cv_search_idn2_to_ascii_8z 23651if test "$ac_res" != no; then : 23652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23653 23654$as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h 23655 23656 23657$as_echo "#define WITH_LIBIDN2 1" >>confdefs.h 23658 23659 LIBIDN2_LIBS="$LIBIDN2_LDFLAGS -lidn2" 23660else 23661 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5 23662fi 23663 23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23665/* end confdefs.h. */ 23666#include <idn2.h> 23667int 23668main () 23669{ 23670idn2_to_unicode_8zlz(".", NULL, IDN2_NONTRANSITIONAL|IDN2_NFC_INPUT); 23671 ; 23672 return 0; 23673} 23674_ACEOF 23675if ac_fn_c_try_link "$LINENO"; then : 23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23677$as_echo "yes" >&6; } 23678 23679$as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h 23680 23681else 23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23683$as_echo "no" >&6; } 23684fi 23685rm -f core conftest.err conftest.$ac_objext \ 23686 conftest$ac_exeext conftest.$ac_ext 23687 CFLAGS="$save_CFLAGS" 23688 LIBS="$save_LIBS" 23689 LDFLAGS="$save_LDFLAGS" 23690 23691fi 23692 23693 23694 23695# 23696# IDN support in general 23697# 23698 23699# check if idnkit and libidn2 are not used at the same time 23700if test "$use_idnkit" != no && test "$use_libidn2" != no; then 23701 as_fn_error $? "idnkit and libidn2 cannot be used at the same time." "$LINENO" 5 23702fi 23703# the IDN support is on 23704if test "$use_idnkit" != no || test "$use_libidn2" != no; then 23705 23706$as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h 23707 23708 if test "$use_libidn2" = no || test "$use_libidn2_out" != no; then 23709 23710$as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h 23711 23712 fi 23713fi 23714 23715# 23716# Check whether to build with cmocka unit testing framework 23717# 23718# [pairwise: --with-cmocka, --without-cmocka] 23719 23720# Check whether --with-cmocka was given. 23721if test "${with_cmocka+set}" = set; then : 23722 withval=$with_cmocka; : 23723else 23724 with_cmocka=no 23725fi 23726 23727 23728case $with_cmocka in #( 23729 no) : 23730 : ;; #( 23731 yes) : 23732 23733 23734pkg_failed=no 23735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5 23736$as_echo_n "checking for cmocka >= 1.0.0... " >&6; } 23737 23738if test -n "$CMOCKA_CFLAGS"; then 23739 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS" 23740 elif test -n "$PKG_CONFIG"; then 23741 if test -n "$PKG_CONFIG" && \ 23742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5 23743 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5 23744 ac_status=$? 23745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23746 test $ac_status = 0; }; then 23747 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null` 23748 test "x$?" != "x0" && pkg_failed=yes 23749else 23750 pkg_failed=yes 23751fi 23752 else 23753 pkg_failed=untried 23754fi 23755if test -n "$CMOCKA_LIBS"; then 23756 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS" 23757 elif test -n "$PKG_CONFIG"; then 23758 if test -n "$PKG_CONFIG" && \ 23759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5 23760 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5 23761 ac_status=$? 23762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23763 test $ac_status = 0; }; then 23764 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null` 23765 test "x$?" != "x0" && pkg_failed=yes 23766else 23767 pkg_failed=yes 23768fi 23769 else 23770 pkg_failed=untried 23771fi 23772 23773 23774 23775if test $pkg_failed = yes; then 23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23777$as_echo "no" >&6; } 23778 23779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23780 _pkg_short_errors_supported=yes 23781else 23782 _pkg_short_errors_supported=no 23783fi 23784 if test $_pkg_short_errors_supported = yes; then 23785 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1` 23786 else 23787 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1` 23788 fi 23789 # Put the nasty error message in config.log where it belongs 23790 echo "$CMOCKA_PKG_ERRORS" >&5 23791 23792 as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met: 23793 23794$CMOCKA_PKG_ERRORS 23795 23796Consider adjusting the PKG_CONFIG_PATH environment variable if you 23797installed software in a non-standard prefix. 23798 23799Alternatively, you may set the environment variables CMOCKA_CFLAGS 23800and CMOCKA_LIBS to avoid the need to call pkg-config. 23801See the pkg-config man page for more details." "$LINENO" 5 23802elif test $pkg_failed = untried; then 23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23804$as_echo "no" >&6; } 23805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23807as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23808is in your PATH or set the PKG_CONFIG environment variable to the full 23809path to pkg-config. 23810 23811Alternatively, you may set the environment variables CMOCKA_CFLAGS 23812and CMOCKA_LIBS to avoid the need to call pkg-config. 23813See the pkg-config man page for more details. 23814 23815To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23816See \`config.log' for more details" "$LINENO" 5; } 23817else 23818 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS 23819 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS 23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23821$as_echo "yes" >&6; } 23822 23823$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h 23824 23825fi 23826 ;; #( 23827 *) : 23828 23829 save_CFLAGS="$CFLAGS" 23830 save_LIBS="$LIBS" 23831 CFLAGS="$CFLAGS -I$with_cmocka/include" 23832 LIBS="$LIBS -L$with_cmocka/lib" 23833 for ac_header in cmocka.h 23834do : 23835 ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "#include <stdarg.h> 23836 #include <stddef.h> 23837 #include <setjmp.h> 23838 23839" 23840if test "x$ac_cv_header_cmocka_h" = xyes; then : 23841 cat >>confdefs.h <<_ACEOF 23842#define HAVE_CMOCKA_H 1 23843_ACEOF 23844 : 23845else 23846 as_fn_error $? "cmocka.h not found" "$LINENO" 5 23847fi 23848 23849done 23850 23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_set_message_output" >&5 23852$as_echo_n "checking for library containing cmocka_set_message_output... " >&6; } 23853if ${ac_cv_search_cmocka_set_message_output+:} false; then : 23854 $as_echo_n "(cached) " >&6 23855else 23856 ac_func_search_save_LIBS=$LIBS 23857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23858/* end confdefs.h. */ 23859 23860/* Override any GCC internal prototype to avoid an error. 23861 Use char because int might match the return type of a GCC 23862 builtin and then its argument prototype would still apply. */ 23863#ifdef __cplusplus 23864extern "C" 23865#endif 23866char cmocka_set_message_output (); 23867int 23868main () 23869{ 23870return cmocka_set_message_output (); 23871 ; 23872 return 0; 23873} 23874_ACEOF 23875for ac_lib in '' cmocka; do 23876 if test -z "$ac_lib"; then 23877 ac_res="none required" 23878 else 23879 ac_res=-l$ac_lib 23880 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23881 fi 23882 if ac_fn_c_try_link "$LINENO"; then : 23883 ac_cv_search_cmocka_set_message_output=$ac_res 23884fi 23885rm -f core conftest.err conftest.$ac_objext \ 23886 conftest$ac_exeext 23887 if ${ac_cv_search_cmocka_set_message_output+:} false; then : 23888 break 23889fi 23890done 23891if ${ac_cv_search_cmocka_set_message_output+:} false; then : 23892 23893else 23894 ac_cv_search_cmocka_set_message_output=no 23895fi 23896rm conftest.$ac_ext 23897LIBS=$ac_func_search_save_LIBS 23898fi 23899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_set_message_output" >&5 23900$as_echo "$ac_cv_search_cmocka_set_message_output" >&6; } 23901ac_res=$ac_cv_search_cmocka_set_message_output 23902if test "$ac_res" != no; then : 23903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23904 23905 CMOCKA_CFLAGS="-Iwith_cmocka/include" 23906 CMOCKA_LIBS="-L$with_cmocka/lib -lcmocka" 23907 23908$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h 23909 23910 23911else 23912 as_fn_error $? "cmocka unit testing framework not found in $with_cmocka path" "$LINENO" 5 23913fi 23914 23915 ;; #( 23916 *) : 23917 ;; 23918esac 23919 23920 23921 23922# 23923# Check for kyua execution engine if CMocka was requested 23924# and bail out if execution engine was not found 23925# 23926 23927if test "$with_cmocka" != "no"; then : 23928 for ac_prog in kyua 23929do 23930 # Extract the first word of "$ac_prog", so it can be a program name with args. 23931set dummy $ac_prog; ac_word=$2 23932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23933$as_echo_n "checking for $ac_word... " >&6; } 23934if ${ac_cv_path_KYUA+:} false; then : 23935 $as_echo_n "(cached) " >&6 23936else 23937 case $KYUA in 23938 [\\/]* | ?:[\\/]*) 23939 ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path. 23940 ;; 23941 *) 23942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23943for as_dir in $PATH 23944do 23945 IFS=$as_save_IFS 23946 test -z "$as_dir" && as_dir=. 23947 for ac_exec_ext in '' $ac_executable_extensions; do 23948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23949 ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext" 23950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23951 break 2 23952 fi 23953done 23954 done 23955IFS=$as_save_IFS 23956 23957 ;; 23958esac 23959fi 23960KYUA=$ac_cv_path_KYUA 23961if test -n "$KYUA"; then 23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5 23963$as_echo "$KYUA" >&6; } 23964else 23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23966$as_echo "no" >&6; } 23967fi 23968 23969 23970 test -n "$KYUA" && break 23971done 23972 23973 if test -z "$KYUA"; then : 23974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5 23975$as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;} 23976else 23977 UNITTESTS=tests 23978fi 23979fi 23980 23981 23982 23983# 23984# Check for -Wl,--wrap= support 23985# 23986 23987save_LDFLAGS=$LDFLAGS 23988LDFLAGS="--wrap=printf" 23989 23990LD_WRAP_TESTS=false 23991enable_ld_wrap=no 23992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5 23993$as_echo_n "checking for linker support for --wrap option... " >&6; } 23994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23995/* end confdefs.h. */ 23996#include <stdio.h> 23997int 23998main () 23999{ 24000__wrap_printf("success"); return (0); 24001 ; 24002 return 0; 24003} 24004_ACEOF 24005if ac_fn_c_try_link "$LINENO"; then : 24006 enable_ld_wrap=yes 24007 LD_WRAP_TESTS=true 24008 24009$as_echo "#define LD_WRAP 1" >>confdefs.h 24010 24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24012$as_echo "yes" >&6; } 24013else 24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24015$as_echo "no" >&6; } 24016fi 24017rm -f core conftest.err conftest.$ac_objext \ 24018 conftest$ac_exeext conftest.$ac_ext 24019# AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes]) 24020 24021 24022LDFLAGS=$save_LDFLAGS 24023 24024# 24025# Check for i18n 24026# 24027for ac_header in locale.h 24028do : 24029 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 24030if test "x$ac_cv_header_locale_h" = xyes; then : 24031 cat >>confdefs.h <<_ACEOF 24032#define HAVE_LOCALE_H 1 24033_ACEOF 24034 24035fi 24036 24037done 24038 24039for ac_func in setlocale 24040do : 24041 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 24042if test "x$ac_cv_func_setlocale" = xyes; then : 24043 cat >>confdefs.h <<_ACEOF 24044#define HAVE_SETLOCALE 1 24045_ACEOF 24046 24047fi 24048done 24049 24050 24051# 24052# was --with-tuning specified? 24053# 24054# [pairwise: --with-tuning=large, --without-tuning] 24055 24056# Check whether --with-tuning was given. 24057if test "${with_tuning+set}" = set; then : 24058 withval=$with_tuning; use_tuning="$withval" 24059else 24060 use_tuning="no" 24061fi 24062 24063 24064case "$use_tuning" in 24065 large) 24066 if ! $use_threads; then 24067 as_fn_error $? "Large-system tuning requires threads." "$LINENO" 5 24068 fi 24069 24070$as_echo "#define TUNE_LARGE 1" >>confdefs.h 24071 24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5 24073$as_echo "using large-system tuning" >&6; } 24074 ;; 24075 no|default) 24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5 24077$as_echo "using default tuning" >&6; } 24078 ;; 24079 yes|*) 24080 as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5 24081 ;; 24082esac 24083 24084# 24085# was --enable-querytrace specified? 24086# 24087# [pairwise: --enable-querytrace, --disable-querytrace] 24088# Check whether --enable-querytrace was given. 24089if test "${enable_querytrace+set}" = set; then : 24090 enableval=$enable_querytrace; want_querytrace="$enableval" 24091else 24092 want_querytrace="no" 24093fi 24094 24095 24096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5 24097$as_echo_n "checking whether to enable query trace logging... " >&6; } 24098case "$want_querytrace" in 24099yes) 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24101$as_echo "yes" >&6; } 24102 24103$as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h 24104 24105 ;; 24106no) 24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24108$as_echo "no" >&6; } 24109 ;; 24110*) 24111 as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5 24112 ;; 24113esac 24114 24115# 24116# Substitutions 24117# 24118 24119BIND9_TOP_BUILDDIR=`pwd` 24120 24121 24122 24123 24124 24125 24126 24127 24128if test "X$srcdir" != "X"; then 24129 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include" 24130 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include" 24131 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include" 24132 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include" 24133 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include" 24134 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include" 24135 BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include" 24136else 24137 BIND9_ISC_BUILDINCLUDE="" 24138 BIND9_ISCCC_BUILDINCLUDE="" 24139 BIND9_ISCCFG_BUILDINCLUDE="" 24140 BIND9_DNS_BUILDINCLUDE="" 24141 BIND9_LWRES_BUILDINCLUDE="" 24142 BIND9_BIND9_BUILDINCLUDE="" 24143 BIND9_IRS_BUILDINCLUDE="" 24144fi 24145 24146 24147BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes 24148 24149 24150BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules 24151 24152. "$srcdir/version" 24153BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\"" 24154 24155BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\"" 24156 24157BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}" 24158 24159BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}" 24160 24161BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}" 24162 24163BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}" 24164 24165 24166BIND9_SRCID="SRCID=unset_id" 24167if test -f "${srcdir}/srcid"; then 24168 . "${srcdir}/srcid" 24169 BIND9_SRCID="SRCID=$SRCID" 24170elif test -d "${srcdir}/.git"; then 24171 BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)` 24172fi 24173 24174 24175 24176if test -z "$ac_configure_args"; then 24177 BIND9_CONFIGARGS="defaults" 24178else 24179 for a in $ac_configure_args 24180 do 24181 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a" 24182 done 24183fi 24184BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`" 24185BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}" 24186 24187 24188 24189LIBISC_API="$srcdir/lib/isc/api" 24190 24191 24192LIBISCCC_API="$srcdir/lib/isccc/api" 24193 24194 24195LIBISCCFG_API="$srcdir/lib/isccfg/api" 24196 24197 24198LIBDNS_API="$srcdir/lib/dns/api" 24199 24200 24201LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi" 24202 24203 24204LIBBIND9_API="$srcdir/lib/bind9/api" 24205 24206 24207LIBLWRES_API="$srcdir/lib/lwres/api" 24208 24209 24210LIBIRS_API="$srcdir/lib/irs/api" 24211 24212# 24213# Configure any DLZ drivers. 24214# 24215# If config.dlz.in selects one or more DLZ drivers, it will set 24216# CONTRIB_DLZ to a non-empty value, which will be our clue to 24217# build DLZ drivers in contrib. 24218# 24219# This section has to come after the libtool stuff because it needs to 24220# know how to name the driver object files. 24221# 24222 24223CONTRIB_DLZ="" 24224DLZ_DRIVER_INCLUDES="" 24225DLZ_DRIVER_LIBS="" 24226DLZ_DRIVER_SRCS="" 24227DLZ_DRIVER_OBJS="" 24228DLZ_SYSTEM_TEST="" 24229DLZ_DRIVER_MYSQL_INCLUDES="" 24230DLZ_DRIVER_MYSQL_LIBS="" 24231 24232# 24233# Configure support for building a shared library object 24234# 24235# Even when libtool is available it can't always be relied upon 24236# to build an object that can be dlopen()'ed, but this is necessary 24237# for building the dlzexternal system test, so we'll try it the 24238# old-fashioned way. 24239# 24240SO="so" 24241SO_CFLAGS="" 24242SO_LDFLAGS="" 24243SO_LD="" 24244SO_TARGETS="" 24245SO_STRIP="cat" 24246 24247# [pairwise: skip] 24248 24249# Check whether --with-dlopen was given. 24250if test "${with_dlopen+set}" = set; then : 24251 withval=$with_dlopen; 24252else 24253 with_dlopen="auto" 24254fi 24255 24256 24257# 24258# Disable for SunOS 24259# 24260case $host in #( 24261 *-sunos*) : 24262 with_dlopen="no" ;; #( 24263 *) : 24264 ;; 24265esac 24266 24267# 24268# If PIC is disabled, dlopen must also be 24269# 24270if test "$pic_mode" = "no"; then : 24271 case $with_dlopen in #( 24272 auto) : 24273 with_dlopen="no" ;; #( 24274 yes) : 24275 as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #( 24276 *) : 24277 ;; 24278esac 24279fi 24280 24281case $with_dlopen in #( 24282 auto|yes) : 24283 24284 # -fsanitize=thread hijacks dlopen and dlclose so use dlsym. 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 24286$as_echo_n "checking for library containing dlsym... " >&6; } 24287if ${ac_cv_search_dlsym+:} false; then : 24288 $as_echo_n "(cached) " >&6 24289else 24290 ac_func_search_save_LIBS=$LIBS 24291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24292/* end confdefs.h. */ 24293 24294/* Override any GCC internal prototype to avoid an error. 24295 Use char because int might match the return type of a GCC 24296 builtin and then its argument prototype would still apply. */ 24297#ifdef __cplusplus 24298extern "C" 24299#endif 24300char dlsym (); 24301int 24302main () 24303{ 24304return dlsym (); 24305 ; 24306 return 0; 24307} 24308_ACEOF 24309for ac_lib in '' dl; do 24310 if test -z "$ac_lib"; then 24311 ac_res="none required" 24312 else 24313 ac_res=-l$ac_lib 24314 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24315 fi 24316 if ac_fn_c_try_link "$LINENO"; then : 24317 ac_cv_search_dlsym=$ac_res 24318fi 24319rm -f core conftest.err conftest.$ac_objext \ 24320 conftest$ac_exeext 24321 if ${ac_cv_search_dlsym+:} false; then : 24322 break 24323fi 24324done 24325if ${ac_cv_search_dlsym+:} false; then : 24326 24327else 24328 ac_cv_search_dlsym=no 24329fi 24330rm conftest.$ac_ext 24331LIBS=$ac_func_search_save_LIBS 24332fi 24333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 24334$as_echo "$ac_cv_search_dlsym" >&6; } 24335ac_res=$ac_cv_search_dlsym 24336if test "$ac_res" != no; then : 24337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24338 24339fi 24340 24341 for ac_func in dlopen dlclose dlsym 24342do : 24343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24344ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24345if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24346 cat >>confdefs.h <<_ACEOF 24347#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24348_ACEOF 24349 with_dlopen="yes" 24350else 24351 with_dlopen="no" 24352fi 24353done 24354 24355 ;; #( 24356 *) : 24357 ;; 24358esac 24359 24360if test "$with_dlopen" = "yes"; then : 24361 case $host in #( 24362 *-linux*|*-gnu*) : 24363 24364 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic" 24365 SO_CFLAGS="-fPIC" 24366 SO_LDFLAGS="" 24367 if test "$use_libtool" = "yes"; then : 24368 24369 SO_LDFLAGS="-Xcompiler -shared" 24370 SO_LD="${CC}" 24371 24372else 24373 24374 SO_LDFLAGS="-shared" 24375 SO_LD="${CC}" 24376 24377fi 24378 ;; #( 24379 *-freebsd*|*-openbsd*|*-netbsd*) : 24380 24381 LDFLAGS="${LDFLAGS} -Wl,-E" 24382 SO_CFLAGS="-fpic" 24383 if test "$use_libtool" = "yes"; then : 24384 24385 SO_LDFLAGS="-Xcompiler -shared" 24386 SO_LD="${CC}" 24387 24388else 24389 24390 SO_LDFLAGS="-shared" 24391 SO_LD="${CC}" 24392 24393fi 24394 ;; #( 24395 *-darwin*) : 24396 24397 SO_CFLAGS="-fPIC" 24398 SO_LD="${CC}" 24399 if test "$use_libtool" = "yes"; then : 24400 24401 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup" 24402 24403else 24404 24405 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup" 24406 24407fi 24408 ;; #( 24409 *-solaris*) : 24410 24411 SO_CFLAGS="-KPIC" 24412 SO_LDFLAGS="-G -z text" 24413 SO_LD="ld" 24414 ;; #( 24415 ia64-hp-hpux*) : 24416 24417 SO_CFLAGS="+z" 24418 SO_LDFLAGS="-b" 24419 SO_LD="${CC}" 24420 ;; #( 24421 *) : 24422 24423 SO_CFLAGS="-fPIC" 24424 ;; 24425esac 24426 if test "$GCC" = "yes"; then : 24427 24428 SO_CFLAGS="-fPIC" 24429 if test -z "$SO_LD"; then : 24430 if test "$use_libtool" = "yes"; then : 24431 24432 SO_LDFLAGS="-Xcompiler -shared" 24433 SO_LD="${CC}" 24434 24435else 24436 24437 SO_LDFLAGS="-shared" 24438 SO_LD="${CC}" 24439 24440fi 24441 24442fi 24443 24444fi 24445 # If we still don't know how to make shared objects, don't make any. 24446 if test -n "$SO_LD"; then : 24447 SO_TARGETS="\${SO_TARGETS}" 24448 24449$as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h 24450 24451 24452fi 24453 24454fi 24455 24456if test "$with_dlopen" = "no" -a "$want_native_pkcs11" = "yes"; then : 24457 as_fn_error $? "PKCS11 requires dlopen() support" "$LINENO" 5 24458fi 24459 24460CFLAGS="$CFLAGS $SO_CFLAGS" 24461 24462 24463 24464 24465 24466 24467 24468# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC") 24469# 24470# Permission to use, copy, modify, and distribute this software for any 24471# purpose with or without fee is hereby granted, provided that the above 24472# copyright notice and this permission notice appear in all copies. 24473# 24474# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 24475# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 24476# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 24477# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 24478# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 24479# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 24480# PERFORMANCE OF THIS SOFTWARE. 24481 24482# 24483# Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here. 24484# 24485dlzdir='${DLZ_DRIVER_DIR}' 24486 24487# 24488# Private autoconf macro to simplify configuring drivers: 24489# 24490# DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS) 24491# 24492# where: 24493# DEFINE is FOO (to define -DDLZ_FOO) 24494# DRIVER is dlz_foo_driver (sources without the .c) 24495# INCLUDES is any necessary include definitions 24496# LIBS is any necessary library definitions 24497# 24498 24499 24500# 24501# Check for the various DLZ drivers 24502# 24503 24504# 24505# Was --with-dlz-postgres specified? 24506# 24507 24508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5 24509$as_echo_n "checking for Postgres DLZ driver... " >&6; } 24510 24511# Check whether --with-dlz_postgres was given. 24512if test "${with_dlz_postgres+set}" = set; then : 24513 withval=$with_dlz_postgres; use_dlz_postgres="$withval" 24514else 24515 use_dlz_postgres="no" 24516fi 24517 24518 24519if test "$use_dlz_postgres" != "no" 24520then 24521 if test "$use_dlz_postgres" != "yes" 24522 then 24523 for ac_prog in pg_config 24524do 24525 # Extract the first word of "$ac_prog", so it can be a program name with args. 24526set dummy $ac_prog; ac_word=$2 24527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24528$as_echo_n "checking for $ac_word... " >&6; } 24529if ${ac_cv_path_PG_CONFIG+:} false; then : 24530 $as_echo_n "(cached) " >&6 24531else 24532 case $PG_CONFIG in 24533 [\\/]* | ?:[\\/]*) 24534 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 24535 ;; 24536 *) 24537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24538for as_dir in $use_dlz_postgres/bin 24539do 24540 IFS=$as_save_IFS 24541 test -z "$as_dir" && as_dir=. 24542 for ac_exec_ext in '' $ac_executable_extensions; do 24543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24544 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24546 break 2 24547 fi 24548done 24549 done 24550IFS=$as_save_IFS 24551 24552 ;; 24553esac 24554fi 24555PG_CONFIG=$ac_cv_path_PG_CONFIG 24556if test -n "$PG_CONFIG"; then 24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 24558$as_echo "$PG_CONFIG" >&6; } 24559else 24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24561$as_echo "no" >&6; } 24562fi 24563 24564 24565 test -n "$PG_CONFIG" && break 24566done 24567test -n "$PG_CONFIG" || PG_CONFIG="not found" 24568 24569 else 24570 for ac_prog in pg_config 24571do 24572 # Extract the first word of "$ac_prog", so it can be a program name with args. 24573set dummy $ac_prog; ac_word=$2 24574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24575$as_echo_n "checking for $ac_word... " >&6; } 24576if ${ac_cv_path_PG_CONFIG+:} false; then : 24577 $as_echo_n "(cached) " >&6 24578else 24579 case $PG_CONFIG in 24580 [\\/]* | ?:[\\/]*) 24581 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 24582 ;; 24583 *) 24584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24585for as_dir in $PATH 24586do 24587 IFS=$as_save_IFS 24588 test -z "$as_dir" && as_dir=. 24589 for ac_exec_ext in '' $ac_executable_extensions; do 24590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24591 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24593 break 2 24594 fi 24595done 24596 done 24597IFS=$as_save_IFS 24598 24599 ;; 24600esac 24601fi 24602PG_CONFIG=$ac_cv_path_PG_CONFIG 24603if test -n "$PG_CONFIG"; then 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 24605$as_echo "$PG_CONFIG" >&6; } 24606else 24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24608$as_echo "no" >&6; } 24609fi 24610 24611 24612 test -n "$PG_CONFIG" && break 24613done 24614test -n "$PG_CONFIG" || PG_CONFIG="not found" 24615 24616 fi 24617 24618 if test "$PG_CONFIG" != "not found" 24619 then 24620 use_dlz_postgres=`$PG_CONFIG --includedir` 24621 use_dlz_postgres_lib=`$PG_CONFIG --libdir` 24622 else 24623 pgprefix="$use_dlz_postgres" 24624 use_dlz_postgres="$pgprefix/include" 24625 use_dlz_postgres_lib="$pgprefix/lib" 24626 fi 24627fi 24628 24629if test "$use_dlz_postgres" = "yes/include" 24630then 24631 # User did not specify path and Postgres didn't say - guess it 24632 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg" 24633 for d in $pgdirs 24634 do 24635 if test -f $d/include/libpq-fe.h 24636 then 24637 use_dlz_postgres=$d/include 24638 use_dlz_postgres_lib=$d/lib 24639 break 24640 fi 24641 done 24642fi 24643 24644if test "$use_dlz_postgres" = "yes/include" 24645then 24646 # Still no joy, give up 24647 24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24649$as_echo "not found" >&6; } 24650 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 24651fi 24652 24653case "$use_dlz_postgres" in 24654 no) 24655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24656$as_echo "no" >&6; } 24657 ;; 24658 *) 24659 24660 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES" 24661 for i in dlz_postgres_driver 24662 do 24663 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 24664 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 24665 done 24666 if test -n "-I$use_dlz_postgres" 24667 then 24668 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres" 24669 DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres" 24670 fi 24671 if test -n "-L$use_dlz_postgres_lib -lpq" 24672 then 24673 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq" 24674 DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq" 24675 fi 24676 24677 24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5 24679$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; } 24680 ;; 24681esac 24682 24683 24684# 24685# Was --with-dlz-mysql specified? 24686# 24687 24688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5 24689$as_echo_n "checking for MySQL DLZ driver... " >&6; } 24690 24691# Check whether --with-dlz_mysql was given. 24692if test "${with_dlz_mysql+set}" = set; then : 24693 withval=$with_dlz_mysql; use_dlz_mysql="$withval" 24694else 24695 use_dlz_mysql="no" 24696fi 24697 24698 24699mysql_include="" 24700mysql_lib="" 24701if test "$use_dlz_mysql" = "yes" 24702then 24703 for ac_prog in mysql_config 24704do 24705 # Extract the first word of "$ac_prog", so it can be a program name with args. 24706set dummy $ac_prog; ac_word=$2 24707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24708$as_echo_n "checking for $ac_word... " >&6; } 24709if ${ac_cv_prog_MYSQL_CONFIG+:} false; then : 24710 $as_echo_n "(cached) " >&6 24711else 24712 if test -n "$MYSQL_CONFIG"; then 24713 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test. 24714else 24715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24716for as_dir in $PATH 24717do 24718 IFS=$as_save_IFS 24719 test -z "$as_dir" && as_dir=. 24720 for ac_exec_ext in '' $ac_executable_extensions; do 24721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24722 ac_cv_prog_MYSQL_CONFIG="$ac_prog" 24723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24724 break 2 24725 fi 24726done 24727 done 24728IFS=$as_save_IFS 24729 24730fi 24731fi 24732MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG 24733if test -n "$MYSQL_CONFIG"; then 24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 24735$as_echo "$MYSQL_CONFIG" >&6; } 24736else 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24738$as_echo "no" >&6; } 24739fi 24740 24741 24742 test -n "$MYSQL_CONFIG" && break 24743done 24744 24745 if test -n "$MYSQL_CONFIG" 24746 then 24747 mysql_include=`${MYSQL_CONFIG} --include` 24748 mysql_lib=`${MYSQL_CONFIG} --libs` 24749 use_dlz_mysql="config" 24750 24751 else 24752 # User did not specify a path - guess it 24753 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg" 24754 for d in $mysqldirs 24755 do 24756 if test -f $d/include/mysql/mysql.h 24757 then 24758 use_dlz_mysql=$d 24759 mysql_include=$d/include/mysql 24760 break 24761 elif test -f $d/include/mysql.h 24762 then 24763 use_dlz_mysql=$d 24764 mysql_include=$d/include 24765 break 24766 fi 24767 done 24768 fi 24769elif test "$use_dlz_mysql" != "no" 24770then 24771 d=$use_dlz_mysql 24772 if test -f $d/include/mysql/mysql.h 24773 then 24774 mysql_include=$d/include/mysql 24775 elif test -f $d/include/mysql.h 24776 then 24777 mysql_include=$d/include 24778 fi 24779fi 24780 24781if test "$use_dlz_mysql" = "yes" 24782then 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24784$as_echo "not found" >&6; } 24785 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5 24786fi 24787 24788case "$use_dlz_mysql" in 24789 no) 24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24791$as_echo "no" >&6; } 24792 ;; 24793 config) 24794 24795 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL" 24796 for i in dlz_mysql_driver 24797 do 24798 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 24799 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 24800 done 24801 if test -n "${mysql_include}" 24802 then 24803 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}" 24804 DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}" 24805 fi 24806 if test -n "${mysql_lib}" 24807 then 24808 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}" 24809 DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}" 24810 fi 24811 24812 24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5 24814$as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; } 24815 ;; 24816 *) 24817 if test -d "$use_dlz_mysql/lib/mysql" 24818 then 24819 mysql_lib="$use_dlz_mysql/lib/mysql" 24820 else 24821 mysql_lib="$use_dlz_mysql/lib" 24822 fi 24823 24824 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL" 24825 for i in dlz_mysql_driver 24826 do 24827 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 24828 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 24829 done 24830 if test -n "-I${mysql_include}" 24831 then 24832 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}" 24833 DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}" 24834 fi 24835 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 24836 then 24837 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 24838 DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 24839 fi 24840 24841 24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5 24843$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; } 24844 ;; 24845esac 24846 24847 24848# 24849# Was --with-dlz-bdb specified? 24850# 24851 24852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5 24853$as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; } 24854 24855# Check whether --with-dlz_bdb was given. 24856if test "${with_dlz_bdb+set}" = set; then : 24857 withval=$with_dlz_bdb; use_dlz_bdb="$withval" 24858else 24859 use_dlz_bdb="no" 24860fi 24861 24862 24863case "$use_dlz_bdb" in 24864 no) 24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24866$as_echo "no" >&6; } 24867 ;; 24868 *) 24869 if test "$use_dlz_bdb" = "yes" 24870 then 24871 # User did not specify a path - guess directories 24872 bdbdirs="/usr/local /usr/pkg /usr" 24873 elif test -d "$use_dlz_bdb" 24874 then 24875 # User specified directory and it exists 24876 bdbdirs="$use_dlz_bdb" 24877 else 24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24879$as_echo "not found" >&6; } 24880 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5 24881 bdbdirs="" 24882 fi 24883 24884 # Use path we were given or guessed. This is insanely 24885 # complicated because we have to search for a bunch of 24886 # platform-specific variations and have to check 24887 # separately for include and library directories. 24888 24889 # Set both to yes, so we can check them later 24890 dlz_bdb_inc="yes" 24891 dlz_bdb_libs="yes" 24892 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 24894$as_echo "" >&6; } 24895 for dd in $bdbdirs 24896 do 24897 # Skip nonexistent directories 24898 if test ! -d "$dd" 24899 then 24900 continue 24901 fi 24902 24903 # Check other locations for includes. 24904 # Order is important (sigh). 24905 24906 bdb_incdirs="/db6 /db5 /db48" 24907 # include a blank element first 24908 for d in "" $bdb_incdirs 24909 do 24910 if test -f "$dd/include${d}/db.h" 24911 then 24912 dlz_bdb_inc="-I$dd/include${d}" 24913 break 24914 fi 24915 done 24916 24917 # Give up on this directory if we couldn't 24918 # find the include subdir 24919 24920 if test "$dlz_bdb_inc" = "yes" 24921 then 24922 continue 24923 fi 24924 24925 # Look for libname other than libdb.so. 24926 # Order is important (sigh). 24927 24928 bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db" 24929 for d in $bdb_libnames 24930 do 24931 if test "$dd" = "/usr" 24932 then 24933 as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh` 24934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5 24935$as_echo_n "checking for db_create in -l$d... " >&6; } 24936if eval \${$as_ac_Lib+:} false; then : 24937 $as_echo_n "(cached) " >&6 24938else 24939 ac_check_lib_save_LIBS=$LIBS 24940LIBS="-l$d $LIBS" 24941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24942/* end confdefs.h. */ 24943 24944/* Override any GCC internal prototype to avoid an error. 24945 Use char because int might match the return type of a GCC 24946 builtin and then its argument prototype would still apply. */ 24947#ifdef __cplusplus 24948extern "C" 24949#endif 24950char db_create (); 24951int 24952main () 24953{ 24954return db_create (); 24955 ; 24956 return 0; 24957} 24958_ACEOF 24959if ac_fn_c_try_link "$LINENO"; then : 24960 eval "$as_ac_Lib=yes" 24961else 24962 eval "$as_ac_Lib=no" 24963fi 24964rm -f core conftest.err conftest.$ac_objext \ 24965 conftest$ac_exeext conftest.$ac_ext 24966LIBS=$ac_check_lib_save_LIBS 24967fi 24968eval ac_res=\$$as_ac_Lib 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24970$as_echo "$ac_res" >&6; } 24971if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 24972 dlz_bdb_libs="-l${d}" 24973fi 24974 24975 if test $dlz_bdb_libs != "yes" 24976 then 24977 break 24978 fi 24979 elif test -f "$dd/lib/lib${d}.so" 24980 then 24981 dlz_bdb_libs="-L${dd}/lib -l${d}" 24982 break 24983 fi 24984 done 24985 24986 # If we found both incdir and lib, we're done 24987 if test "$dlz_bdb_libs" != "yes" 24988 then 24989 break 24990 fi 24991 24992 # Otherwise, we're starting over 24993 24994 dlz_bdb_inc="yes" 24995 dlz_bdb_libs="yes" 24996 done 24997 24998 # Done searching, now make sure we got everything. 24999 25000 if test "$dlz_bdb_inc" = "yes" 25001 then 25002 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5 25003 fi 25004 25005 if test "$dlz_bdb_libs" = "yes" 25006 then 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25008$as_echo "not found" >&6; } 25009 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5 25010 fi 25011 25012 25013 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB" 25014 for i in dlz_bdb_driver dlz_bdbhpt_driver 25015 do 25016 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 25017 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 25018 done 25019 if test -n "$dlz_bdb_inc" 25020 then 25021 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc" 25022 DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc" 25023 fi 25024 if test -n "$dlz_bdb_libs" 25025 then 25026 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs" 25027 DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs" 25028 fi 25029 25030 25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5 25032$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; } 25033 25034 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile" 25035 25036 ;; 25037esac 25038 25039 25040# 25041# Was --with-dlz-filesystem specified? 25042# 25043 25044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5 25045$as_echo_n "checking for file system DLZ driver... " >&6; } 25046 25047# Check whether --with-dlz_filesystem was given. 25048if test "${with_dlz_filesystem+set}" = set; then : 25049 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval" 25050else 25051 use_dlz_filesystem="no" 25052fi 25053 25054 25055case "$use_dlz_filesystem" in 25056 no) 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25058$as_echo "no" >&6; } 25059 ;; 25060 *) 25061 25062 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM" 25063 for i in dlz_filesystem_driver 25064 do 25065 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 25066 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 25067 done 25068 if test -n "" 25069 then 25070 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES " 25071 DLZ_DRIVER_FILESYSTEM_INCLUDES="" 25072 fi 25073 if test -n "" 25074 then 25075 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS " 25076 DLZ_DRIVER_FILESYSTEM_LIBS="" 25077 fi 25078 25079 DLZ_SYSTEM_TEST=filesystem 25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25081$as_echo "yes" >&6; } 25082 ;; 25083esac 25084 25085 25086# 25087# Was --with-dlz-ldap specified? 25088# 25089 25090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5 25091$as_echo_n "checking for LDAP DLZ driver... " >&6; } 25092 25093# Check whether --with-dlz_ldap was given. 25094if test "${with_dlz_ldap+set}" = set; then : 25095 withval=$with_dlz_ldap; use_dlz_ldap="$withval" 25096else 25097 use_dlz_ldap="no" 25098fi 25099 25100 25101if test "$use_dlz_ldap" = "yes" 25102then 25103 # User did not specify a path - guess it 25104 ldapdirs="/usr /usr/local /usr/pkg" 25105 for d in $ldapdirs 25106 do 25107 if test -f $d/include/ldap.h 25108 then 25109 use_dlz_ldap=$d 25110 break 25111 fi 25112 done 25113fi 25114 25115if test "$use_dlz_ldap" = "yes" 25116then 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25118$as_echo "not found" >&6; } 25119 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5 25120fi 25121 25122case "$use_dlz_ldap" in 25123 no) 25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25125$as_echo "no" >&6; } 25126 ;; 25127 *) 25128 25129 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP" 25130 for i in dlz_ldap_driver 25131 do 25132 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 25133 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 25134 done 25135 if test -n "-I$use_dlz_ldap/include" 25136 then 25137 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include" 25138 DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include" 25139 fi 25140 if test -n "-L$use_dlz_ldap/lib -lldap -llber" 25141 then 25142 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber" 25143 DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber" 25144 fi 25145 25146 25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5 25148$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; } 25149 ;; 25150esac 25151 25152 25153# 25154# Was --with-dlz-odbc specified? 25155# 25156 25157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5 25158$as_echo_n "checking for ODBC DLZ driver... " >&6; } 25159 25160# Check whether --with-dlz_odbc was given. 25161if test "${with_dlz_odbc+set}" = set; then : 25162 withval=$with_dlz_odbc; use_dlz_odbc="$withval" 25163else 25164 use_dlz_odbc="no" 25165fi 25166 25167 25168if test "$use_dlz_odbc" = "yes" 25169then 25170 # User did not specify a path - guess it 25171 libodbc_found=no 25172 sql_h_found=no 25173 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 25174if test "x$ac_cv_header_sql_h" = xyes; then : 25175 sql_h_found=yes 25176fi 25177 25178 25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5 25180$as_echo_n "checking for SQLConnect in -lodbc... " >&6; } 25181if ${ac_cv_lib_odbc_SQLConnect+:} false; then : 25182 $as_echo_n "(cached) " >&6 25183else 25184 ac_check_lib_save_LIBS=$LIBS 25185LIBS="-lodbc $LIBS" 25186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25187/* end confdefs.h. */ 25188 25189/* Override any GCC internal prototype to avoid an error. 25190 Use char because int might match the return type of a GCC 25191 builtin and then its argument prototype would still apply. */ 25192#ifdef __cplusplus 25193extern "C" 25194#endif 25195char SQLConnect (); 25196int 25197main () 25198{ 25199return SQLConnect (); 25200 ; 25201 return 0; 25202} 25203_ACEOF 25204if ac_fn_c_try_link "$LINENO"; then : 25205 ac_cv_lib_odbc_SQLConnect=yes 25206else 25207 ac_cv_lib_odbc_SQLConnect=no 25208fi 25209rm -f core conftest.err conftest.$ac_objext \ 25210 conftest$ac_exeext conftest.$ac_ext 25211LIBS=$ac_check_lib_save_LIBS 25212fi 25213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5 25214$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; } 25215if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then : 25216 libodbc_found=yes 25217fi 25218 25219 25220 if test $libodbc_found = "yes" -o $sql_h_found = "yes" 25221 then 25222 use_dlz_odbc=system 25223 dlz_odbc_include="" 25224 dlz_odbc_libs="-lodbc" 25225 else 25226 odbcdirs="/usr /usr/local /usr/pkg" 25227 for d in $odbcdirs 25228 do 25229 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a 25230 then 25231 use_dlz_odbc=$d 25232 dlz_odbc_include="-I$use_dlz_odbc/include" 25233 dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc" 25234 break 25235 fi 25236 done 25237 fi 25238fi 25239 25240case "$use_dlz_odbc" in 25241 no) 25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25243$as_echo "no" >&6; } 25244 ;; 25245 yes) 25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25247$as_echo "not found" >&6; } 25248 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5 25249 ;; 25250 *) 25251 25252 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC" 25253 for i in dlz_odbc_driver 25254 do 25255 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 25256 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 25257 done 25258 if test -n "$dlz_odbc_include" 25259 then 25260 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include" 25261 DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include" 25262 fi 25263 if test -n "$dlz_odbc_libs" 25264 then 25265 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs" 25266 DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs" 25267 fi 25268 25269 25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5 25271$as_echo "using ODBC from $use_dlz_odbc" >&6; } 25272 ;; 25273esac 25274 25275 25276# 25277# Was --with-dlz-stub specified? 25278# 25279 25280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5 25281$as_echo_n "checking for stub DLZ driver... " >&6; } 25282 25283# Check whether --with-dlz_stub was given. 25284if test "${with_dlz_stub+set}" = set; then : 25285 withval=$with_dlz_stub; use_dlz_stub="$withval" 25286else 25287 use_dlz_stub="no" 25288fi 25289 25290 25291case "$use_dlz_stub" in 25292 no) 25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25294$as_echo "no" >&6; } 25295 ;; 25296 *) 25297 25298 25299 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB" 25300 for i in dlz_stub_driver 25301 do 25302 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 25303 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 25304 done 25305 if test -n "" 25306 then 25307 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES " 25308 DLZ_DRIVER_STUB_INCLUDES="" 25309 fi 25310 if test -n "" 25311 then 25312 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS " 25313 DLZ_DRIVER_STUB_LIBS="" 25314 fi 25315 25316 25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25318$as_echo "yes" >&6; } 25319 ;; 25320esac 25321 25322# Add any additional DLZ drivers here. 25323 25324# 25325# Finally, some generic stuff that applies to all drivers, assuming 25326# we're compiling contrib DLZ drivers at all. 25327# 25328if test -n "$CONTRIB_DLZ" 25329then 25330 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ" 25331 25332 # 25333 # Where to find DLZ driver header files. 25334 # 25335 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES" 25336 25337 # 25338 # Initialization and shutdown wrappers, helper functions. 25339 # 25340 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS" 25341 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS" 25342fi 25343 25344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5 25345$as_echo_n "checking contributed DLZ drivers... " >&6; } 25346 25347if test -n "$CONTRIB_DLZ" 25348then 25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25350$as_echo "yes" >&6; } 25351 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules 25352 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile" 25353 25354else 25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25356$as_echo "no" >&6; } 25357 DLZ_DRIVER_RULES=/dev/null 25358fi 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370if test "yes" = "$cross_compiling"; then 25371 if test -z "$BUILD_CC"; then 25372 as_fn_error $? "BUILD_CC not set" "$LINENO" 5 25373 fi 25374 BUILD_CFLAGS="$BUILD_CFLAGS" 25375 BUILD_CPPFLAGS="$BUILD_CPPFLAGS" 25376 BUILD_LDFLAGS="$BUILD_LDFLAGS" 25377 BUILD_LIBS="$BUILD_LIBS" 25378else 25379 BUILD_CC="$CC" 25380 BUILD_CFLAGS="$CFLAGS" 25381 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG" 25382 BUILD_LDFLAGS="$LDFLAGS" 25383 BUILD_LIBS="$LIBS" 25384fi 25385 25386NEWFLAGS="" 25387for e in $BUILD_LDFLAGS ; do 25388 case $e in 25389 -L*) 25390 case $host_os in 25391 netbsd*) 25392 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25393 NEWFLAGS="$NEWFLAGS $e $ee" 25394 ;; 25395 freebsd*) 25396 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25397 NEWFLAGS="$NEWFLAGS $e $ee" 25398 ;; 25399 solaris*) 25400 ee=`echo $e | sed -e 's%^-L%-R%'` 25401 NEWFLAGS="$NEWFLAGS $e $ee" 25402 ;; 25403 *) 25404 NEWFLAGS="$NEWFLAGS $e" 25405 ;; 25406 esac 25407 ;; 25408 *) 25409 NEWFLAGS="$NEWFLAGS $e" 25410 ;; 25411 esac 25412done 25413BUILD_LDFLAGS="$NEWFLAGS" 25414 25415NEWFLAGS="" 25416for e in $DNS_GSSAPI_LIBS ; do 25417 case $e in 25418 -L*) 25419 case $host_os in 25420 netbsd*) 25421 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25422 NEWFLAGS="$NEWFLAGS $e $ee" 25423 ;; 25424 freebsd*) 25425 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25426 NEWFLAGS="$NEWFLAGS $e $ee" 25427 ;; 25428 solaris*) 25429 ee=`echo $e | sed -e 's%^-L%-R%'` 25430 NEWFLAGS="$NEWFLAGS $e $ee" 25431 ;; 25432 *) 25433 NEWFLAGS="$NEWFLAGS $e" 25434 ;; 25435 esac 25436 ;; 25437 *) 25438 NEWFLAGS="$NEWFLAGS $e" 25439 ;; 25440 esac 25441done 25442DNS_GSSAPI_LIBS="$NEWFLAGS" 25443 25444NEWFLAGS="" 25445for e in $ISC_OPENSSL_LIBS ; do 25446 case $e in 25447 -L*) 25448 case $host_os in 25449 netbsd*) 25450 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25451 NEWFLAGS="$NEWFLAGS $e $ee" 25452 ;; 25453 freebsd*) 25454 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25455 NEWFLAGS="$NEWFLAGS $e $ee" 25456 ;; 25457 solaris*) 25458 ee=`echo $e | sed -e 's%^-L%-R%'` 25459 NEWFLAGS="$NEWFLAGS $e $ee" 25460 ;; 25461 *) 25462 NEWFLAGS="$NEWFLAGS $e" 25463 ;; 25464 esac 25465 ;; 25466 *) 25467 NEWFLAGS="$NEWFLAGS $e" 25468 ;; 25469 esac 25470done 25471ISC_OPENSSL_LIBS="$NEWFLAGS" 25472 25473NEWFLAGS="" 25474for e in $DNS_CRYPTO_LIBS ; do 25475 case $e in 25476 -L*) 25477 case $host_os in 25478 netbsd*) 25479 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25480 NEWFLAGS="$NEWFLAGS $e $ee" 25481 ;; 25482 freebsd*) 25483 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 25484 NEWFLAGS="$NEWFLAGS $e $ee" 25485 ;; 25486 solaris*) 25487 ee=`echo $e | sed -e 's%^-L%-R%'` 25488 NEWFLAGS="$NEWFLAGS $e $ee" 25489 ;; 25490 *) 25491 NEWFLAGS="$NEWFLAGS $e" 25492 ;; 25493 esac 25494 ;; 25495 *) 25496 NEWFLAGS="$NEWFLAGS $e" 25497 ;; 25498 esac 25499done 25500DNS_CRYPTO_LIBS="$NEWFLAGS" 25501 25502 25503 25504 25505 25506 25507 25508# 25509# Commands to run at the end of config.status. 25510# Don't just put these into configure, it won't work right if somebody 25511# runs config.status directly (which autoconf allows). 25512# 25513 25514ac_config_commands="$ac_config_commands chmod" 25515 25516 25517# 25518# Files to configure. These are listed here because we used to 25519# specify them as arguments to AC_OUTPUT. It's (now) ok to move these 25520# elsewhere if there's a good reason for doing so. 25521# 25522 25523ac_config_files="$ac_config_files Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/Makefile bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/Makefile bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/python/isc/utils.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/inline/checkdsa.sh bin/tests/system/lwresd/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/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/irs/tests/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/nls/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/isccfg/tests/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/tests/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall make/Makefile make/mkdep unit/unittest.sh util/check-make-install" 25524 25525 25526# 25527# Do it 25528# 25529 25530cat >confcache <<\_ACEOF 25531# This file is a shell script that caches the results of configure 25532# tests run on this system so they can be shared between configure 25533# scripts and configure runs, see configure's option --config-cache. 25534# It is not useful on other systems. If it contains results you don't 25535# want to keep, you may remove or edit it. 25536# 25537# config.status only pays attention to the cache file if you give it 25538# the --recheck option to rerun configure. 25539# 25540# `ac_cv_env_foo' variables (set or unset) will be overridden when 25541# loading this file, other *unset* `ac_cv_foo' will be assigned the 25542# following values. 25543 25544_ACEOF 25545 25546# The following way of writing the cache mishandles newlines in values, 25547# but we know of no workaround that is simple, portable, and efficient. 25548# So, we kill variables containing newlines. 25549# Ultrix sh set writes to stderr and can't be redirected directly, 25550# and sets the high bit in the cache file unless we assign to the vars. 25551( 25552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25553 eval ac_val=\$$ac_var 25554 case $ac_val in #( 25555 *${as_nl}*) 25556 case $ac_var in #( 25557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25558$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25559 esac 25560 case $ac_var in #( 25561 _ | IFS | as_nl) ;; #( 25562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25563 *) { eval $ac_var=; unset $ac_var;} ;; 25564 esac ;; 25565 esac 25566 done 25567 25568 (set) 2>&1 | 25569 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25570 *${as_nl}ac_space=\ *) 25571 # `set' does not quote correctly, so add quotes: double-quote 25572 # substitution turns \\\\ into \\, and sed turns \\ into \. 25573 sed -n \ 25574 "s/'/'\\\\''/g; 25575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25576 ;; #( 25577 *) 25578 # `set' quotes correctly as required by POSIX, so do not add quotes. 25579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25580 ;; 25581 esac | 25582 sort 25583) | 25584 sed ' 25585 /^ac_cv_env_/b end 25586 t clear 25587 :clear 25588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25589 t end 25590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25591 :end' >>confcache 25592if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25593 if test -w "$cache_file"; then 25594 if test "x$cache_file" != "x/dev/null"; then 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25596$as_echo "$as_me: updating cache $cache_file" >&6;} 25597 if test ! -f "$cache_file" || test -h "$cache_file"; then 25598 cat confcache >"$cache_file" 25599 else 25600 case $cache_file in #( 25601 */* | ?:*) 25602 mv -f confcache "$cache_file"$$ && 25603 mv -f "$cache_file"$$ "$cache_file" ;; #( 25604 *) 25605 mv -f confcache "$cache_file" ;; 25606 esac 25607 fi 25608 fi 25609 else 25610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25611$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 25612 fi 25613fi 25614rm -f confcache 25615 25616test "x$prefix" = xNONE && prefix=$ac_default_prefix 25617# Let make expand exec_prefix. 25618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25619 25620DEFS=-DHAVE_CONFIG_H 25621 25622ac_libobjs= 25623ac_ltlibobjs= 25624U= 25625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25626 # 1. Remove the extension, and $U if already installed. 25627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 25629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25630 # will be set to the directory where LIBOBJS objects are built. 25631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25633done 25634LIBOBJS=$ac_libobjs 25635 25636LTLIBOBJS=$ac_ltlibobjs 25637 25638 25639 25640 25641: "${CONFIG_STATUS=./config.status}" 25642ac_write_fail=0 25643ac_clean_files_save=$ac_clean_files 25644ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25645{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25646$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 25647as_write_fail=0 25648cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25649#! $SHELL 25650# Generated by $as_me. 25651# Run this file to recreate the current configuration. 25652# Compiler output produced by configure, useful for debugging 25653# configure, is in config.log if it exists. 25654 25655debug=false 25656ac_cs_recheck=false 25657ac_cs_silent=false 25658 25659SHELL=\${CONFIG_SHELL-$SHELL} 25660export SHELL 25661_ASEOF 25662cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25663## -------------------- ## 25664## M4sh Initialization. ## 25665## -------------------- ## 25666 25667# Be more Bourne compatible 25668DUALCASE=1; export DUALCASE # for MKS sh 25669if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 25670 emulate sh 25671 NULLCMD=: 25672 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25673 # is contrary to our usage. Disable this feature. 25674 alias -g '${1+"$@"}'='"$@"' 25675 setopt NO_GLOB_SUBST 25676else 25677 case `(set -o) 2>/dev/null` in #( 25678 *posix*) : 25679 set -o posix ;; #( 25680 *) : 25681 ;; 25682esac 25683fi 25684 25685 25686as_nl=' 25687' 25688export as_nl 25689# Printing a long string crashes Solaris 7 /usr/bin/printf. 25690as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 25691as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 25692as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 25693# Prefer a ksh shell builtin over an external printf program on Solaris, 25694# but without wasting forks for bash or zsh. 25695if test -z "$BASH_VERSION$ZSH_VERSION" \ 25696 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 25697 as_echo='print -r --' 25698 as_echo_n='print -rn --' 25699elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 25700 as_echo='printf %s\n' 25701 as_echo_n='printf %s' 25702else 25703 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 25704 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 25705 as_echo_n='/usr/ucb/echo -n' 25706 else 25707 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 25708 as_echo_n_body='eval 25709 arg=$1; 25710 case $arg in #( 25711 *"$as_nl"*) 25712 expr "X$arg" : "X\\(.*\\)$as_nl"; 25713 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25714 esac; 25715 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25716 ' 25717 export as_echo_n_body 25718 as_echo_n='sh -c $as_echo_n_body as_echo' 25719 fi 25720 export as_echo_body 25721 as_echo='sh -c $as_echo_body as_echo' 25722fi 25723 25724# The user is always right. 25725if test "${PATH_SEPARATOR+set}" != set; then 25726 PATH_SEPARATOR=: 25727 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25728 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25729 PATH_SEPARATOR=';' 25730 } 25731fi 25732 25733 25734# IFS 25735# We need space, tab and new line, in precisely that order. Quoting is 25736# there to prevent editors from complaining about space-tab. 25737# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25738# splitting by setting IFS to empty value.) 25739IFS=" "" $as_nl" 25740 25741# Find who we are. Look in the path if we contain no directory separator. 25742as_myself= 25743case $0 in #(( 25744 *[\\/]* ) as_myself=$0 ;; 25745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25746for as_dir in $PATH 25747do 25748 IFS=$as_save_IFS 25749 test -z "$as_dir" && as_dir=. 25750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25751 done 25752IFS=$as_save_IFS 25753 25754 ;; 25755esac 25756# We did not find ourselves, most probably we were run as `sh COMMAND' 25757# in which case we are not to be found in the path. 25758if test "x$as_myself" = x; then 25759 as_myself=$0 25760fi 25761if test ! -f "$as_myself"; then 25762 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25763 exit 1 25764fi 25765 25766# Unset variables that we do not need and which cause bugs (e.g. in 25767# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 25768# suppresses any "Segmentation fault" message there. '((' could 25769# trigger a bug in pdksh 5.2.14. 25770for as_var in BASH_ENV ENV MAIL MAILPATH 25771do eval test x\${$as_var+set} = xset \ 25772 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25773done 25774PS1='$ ' 25775PS2='> ' 25776PS4='+ ' 25777 25778# NLS nuisances. 25779LC_ALL=C 25780export LC_ALL 25781LANGUAGE=C 25782export LANGUAGE 25783 25784# CDPATH. 25785(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25786 25787 25788# as_fn_error STATUS ERROR [LINENO LOG_FD] 25789# ---------------------------------------- 25790# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25791# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25792# script with STATUS, using 1 if that was 0. 25793as_fn_error () 25794{ 25795 as_status=$1; test $as_status -eq 0 && as_status=1 25796 if test "$4"; then 25797 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25798 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25799 fi 25800 $as_echo "$as_me: error: $2" >&2 25801 as_fn_exit $as_status 25802} # as_fn_error 25803 25804 25805# as_fn_set_status STATUS 25806# ----------------------- 25807# Set $? to STATUS, without forking. 25808as_fn_set_status () 25809{ 25810 return $1 25811} # as_fn_set_status 25812 25813# as_fn_exit STATUS 25814# ----------------- 25815# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25816as_fn_exit () 25817{ 25818 set +e 25819 as_fn_set_status $1 25820 exit $1 25821} # as_fn_exit 25822 25823# as_fn_unset VAR 25824# --------------- 25825# Portably unset VAR. 25826as_fn_unset () 25827{ 25828 { eval $1=; unset $1;} 25829} 25830as_unset=as_fn_unset 25831# as_fn_append VAR VALUE 25832# ---------------------- 25833# Append the text in VALUE to the end of the definition contained in VAR. Take 25834# advantage of any shell optimizations that allow amortized linear growth over 25835# repeated appends, instead of the typical quadratic growth present in naive 25836# implementations. 25837if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25838 eval 'as_fn_append () 25839 { 25840 eval $1+=\$2 25841 }' 25842else 25843 as_fn_append () 25844 { 25845 eval $1=\$$1\$2 25846 } 25847fi # as_fn_append 25848 25849# as_fn_arith ARG... 25850# ------------------ 25851# Perform arithmetic evaluation on the ARGs, and store the result in the 25852# global $as_val. Take advantage of shells that can avoid forks. The arguments 25853# must be portable across $(()) and expr. 25854if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25855 eval 'as_fn_arith () 25856 { 25857 as_val=$(( $* )) 25858 }' 25859else 25860 as_fn_arith () 25861 { 25862 as_val=`expr "$@" || test $? -eq 1` 25863 } 25864fi # as_fn_arith 25865 25866 25867if expr a : '\(a\)' >/dev/null 2>&1 && 25868 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25869 as_expr=expr 25870else 25871 as_expr=false 25872fi 25873 25874if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25875 as_basename=basename 25876else 25877 as_basename=false 25878fi 25879 25880if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25881 as_dirname=dirname 25882else 25883 as_dirname=false 25884fi 25885 25886as_me=`$as_basename -- "$0" || 25887$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25888 X"$0" : 'X\(//\)$' \| \ 25889 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25890$as_echo X/"$0" | 25891 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25892 s//\1/ 25893 q 25894 } 25895 /^X\/\(\/\/\)$/{ 25896 s//\1/ 25897 q 25898 } 25899 /^X\/\(\/\).*/{ 25900 s//\1/ 25901 q 25902 } 25903 s/.*/./; q'` 25904 25905# Avoid depending upon Character Ranges. 25906as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25907as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25908as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25909as_cr_digits='0123456789' 25910as_cr_alnum=$as_cr_Letters$as_cr_digits 25911 25912ECHO_C= ECHO_N= ECHO_T= 25913case `echo -n x` in #((((( 25914-n*) 25915 case `echo 'xy\c'` in 25916 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25917 xy) ECHO_C='\c';; 25918 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25919 ECHO_T=' ';; 25920 esac;; 25921*) 25922 ECHO_N='-n';; 25923esac 25924 25925rm -f conf$$ conf$$.exe conf$$.file 25926if test -d conf$$.dir; then 25927 rm -f conf$$.dir/conf$$.file 25928else 25929 rm -f conf$$.dir 25930 mkdir conf$$.dir 2>/dev/null 25931fi 25932if (echo >conf$$.file) 2>/dev/null; then 25933 if ln -s conf$$.file conf$$ 2>/dev/null; then 25934 as_ln_s='ln -s' 25935 # ... but there are two gotchas: 25936 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25937 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25938 # In both cases, we have to default to `cp -pR'. 25939 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25940 as_ln_s='cp -pR' 25941 elif ln conf$$.file conf$$ 2>/dev/null; then 25942 as_ln_s=ln 25943 else 25944 as_ln_s='cp -pR' 25945 fi 25946else 25947 as_ln_s='cp -pR' 25948fi 25949rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25950rmdir conf$$.dir 2>/dev/null 25951 25952 25953# as_fn_mkdir_p 25954# ------------- 25955# Create "$as_dir" as a directory, including parents if necessary. 25956as_fn_mkdir_p () 25957{ 25958 25959 case $as_dir in #( 25960 -*) as_dir=./$as_dir;; 25961 esac 25962 test -d "$as_dir" || eval $as_mkdir_p || { 25963 as_dirs= 25964 while :; do 25965 case $as_dir in #( 25966 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25967 *) as_qdir=$as_dir;; 25968 esac 25969 as_dirs="'$as_qdir' $as_dirs" 25970 as_dir=`$as_dirname -- "$as_dir" || 25971$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25972 X"$as_dir" : 'X\(//\)[^/]' \| \ 25973 X"$as_dir" : 'X\(//\)$' \| \ 25974 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25975$as_echo X"$as_dir" | 25976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25977 s//\1/ 25978 q 25979 } 25980 /^X\(\/\/\)[^/].*/{ 25981 s//\1/ 25982 q 25983 } 25984 /^X\(\/\/\)$/{ 25985 s//\1/ 25986 q 25987 } 25988 /^X\(\/\).*/{ 25989 s//\1/ 25990 q 25991 } 25992 s/.*/./; q'` 25993 test -d "$as_dir" && break 25994 done 25995 test -z "$as_dirs" || eval "mkdir $as_dirs" 25996 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25997 25998 25999} # as_fn_mkdir_p 26000if mkdir -p . 2>/dev/null; then 26001 as_mkdir_p='mkdir -p "$as_dir"' 26002else 26003 test -d ./-p && rmdir ./-p 26004 as_mkdir_p=false 26005fi 26006 26007 26008# as_fn_executable_p FILE 26009# ----------------------- 26010# Test if FILE is an executable regular file. 26011as_fn_executable_p () 26012{ 26013 test -f "$1" && test -x "$1" 26014} # as_fn_executable_p 26015as_test_x='test -x' 26016as_executable_p=as_fn_executable_p 26017 26018# Sed expression to map a string onto a valid CPP name. 26019as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26020 26021# Sed expression to map a string onto a valid variable name. 26022as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26023 26024 26025exec 6>&1 26026## ----------------------------------- ## 26027## Main body of $CONFIG_STATUS script. ## 26028## ----------------------------------- ## 26029_ASEOF 26030test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 26031 26032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26033# Save the log message, to keep $0 and so on meaningful, and to 26034# report actual input values of CONFIG_FILES etc. instead of their 26035# values after options handling. 26036ac_log=" 26037This file was extended by BIND $as_me 9.11, which was 26038generated by GNU Autoconf 2.69. Invocation command line was 26039 26040 CONFIG_FILES = $CONFIG_FILES 26041 CONFIG_HEADERS = $CONFIG_HEADERS 26042 CONFIG_LINKS = $CONFIG_LINKS 26043 CONFIG_COMMANDS = $CONFIG_COMMANDS 26044 $ $0 $@ 26045 26046on `(hostname || uname -n) 2>/dev/null | sed 1q` 26047" 26048 26049_ACEOF 26050 26051case $ac_config_files in *" 26052"*) set x $ac_config_files; shift; ac_config_files=$*;; 26053esac 26054 26055case $ac_config_headers in *" 26056"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 26057esac 26058 26059 26060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26061# Files that config.status was made for. 26062config_files="$ac_config_files" 26063config_headers="$ac_config_headers" 26064config_commands="$ac_config_commands" 26065 26066_ACEOF 26067 26068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26069ac_cs_usage="\ 26070\`$as_me' instantiates files and other configuration actions 26071from templates according to the current configuration. Unless the files 26072and actions are specified as TAGs, all are instantiated by default. 26073 26074Usage: $0 [OPTION]... [TAG]... 26075 26076 -h, --help print this help, then exit 26077 -V, --version print version number and configuration settings, then exit 26078 --config print configuration, then exit 26079 -q, --quiet, --silent 26080 do not print progress messages 26081 -d, --debug don't remove temporary files 26082 --recheck update $as_me by reconfiguring in the same conditions 26083 --file=FILE[:TEMPLATE] 26084 instantiate the configuration file FILE 26085 --header=FILE[:TEMPLATE] 26086 instantiate the configuration header FILE 26087 26088Configuration files: 26089$config_files 26090 26091Configuration headers: 26092$config_headers 26093 26094Configuration commands: 26095$config_commands 26096 26097Report bugs to <info@isc.org>. 26098BIND home page: <https://www.isc.org/downloads/BIND/>." 26099 26100_ACEOF 26101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26102ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 26103ac_cs_version="\\ 26104BIND config.status 9.11 26105configured by $0, generated by GNU Autoconf 2.69, 26106 with options \\"\$ac_cs_config\\" 26107 26108Copyright (C) 2012 Free Software Foundation, Inc. 26109This config.status script is free software; the Free Software Foundation 26110gives unlimited permission to copy, distribute and modify it." 26111 26112ac_pwd='$ac_pwd' 26113srcdir='$srcdir' 26114INSTALL='$INSTALL' 26115AWK='$AWK' 26116test -n "\$AWK" || AWK=awk 26117_ACEOF 26118 26119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26120# The default lists apply if the user does not specify any file. 26121ac_need_defaults=: 26122while test $# != 0 26123do 26124 case $1 in 26125 --*=?*) 26126 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26127 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 26128 ac_shift=: 26129 ;; 26130 --*=) 26131 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26132 ac_optarg= 26133 ac_shift=: 26134 ;; 26135 *) 26136 ac_option=$1 26137 ac_optarg=$2 26138 ac_shift=shift 26139 ;; 26140 esac 26141 26142 case $ac_option in 26143 # Handling of the options. 26144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26145 ac_cs_recheck=: ;; 26146 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26147 $as_echo "$ac_cs_version"; exit ;; 26148 --config | --confi | --conf | --con | --co | --c ) 26149 $as_echo "$ac_cs_config"; exit ;; 26150 --debug | --debu | --deb | --de | --d | -d ) 26151 debug=: ;; 26152 --file | --fil | --fi | --f ) 26153 $ac_shift 26154 case $ac_optarg in 26155 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26156 '') as_fn_error $? "missing file argument" ;; 26157 esac 26158 as_fn_append CONFIG_FILES " '$ac_optarg'" 26159 ac_need_defaults=false;; 26160 --header | --heade | --head | --hea ) 26161 $ac_shift 26162 case $ac_optarg in 26163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26164 esac 26165 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26166 ac_need_defaults=false;; 26167 --he | --h) 26168 # Conflict between --help and --header 26169 as_fn_error $? "ambiguous option: \`$1' 26170Try \`$0 --help' for more information.";; 26171 --help | --hel | -h ) 26172 $as_echo "$ac_cs_usage"; exit ;; 26173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26174 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26175 ac_cs_silent=: ;; 26176 26177 # This is an error. 26178 -*) as_fn_error $? "unrecognized option: \`$1' 26179Try \`$0 --help' for more information." ;; 26180 26181 *) as_fn_append ac_config_targets " $1" 26182 ac_need_defaults=false ;; 26183 26184 esac 26185 shift 26186done 26187 26188ac_configure_extra_args= 26189 26190if $ac_cs_silent; then 26191 exec 6>/dev/null 26192 ac_configure_extra_args="$ac_configure_extra_args --silent" 26193fi 26194 26195_ACEOF 26196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26197if \$ac_cs_recheck; then 26198 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26199 shift 26200 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 26201 CONFIG_SHELL='$SHELL' 26202 export CONFIG_SHELL 26203 exec "\$@" 26204fi 26205 26206_ACEOF 26207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26208exec 5>>config.log 26209{ 26210 echo 26211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26212## Running $as_me. ## 26213_ASBOX 26214 $as_echo "$ac_log" 26215} >&5 26216 26217_ACEOF 26218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26219# 26220# INIT-COMMANDS 26221# 26222 26223 26224# The HP-UX ksh and POSIX shell print the target directory to stdout 26225# if CDPATH is set. 26226(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26227 26228sed_quote_subst='$sed_quote_subst' 26229double_quote_subst='$double_quote_subst' 26230delay_variable_subst='$delay_variable_subst' 26231macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 26232macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 26233enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 26234enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 26235pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 26236enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 26237shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 26238SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 26239ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 26240PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 26241host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 26242host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 26243host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 26244build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 26245build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 26246build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 26247SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 26248Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 26249GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 26250EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 26251FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 26252LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 26253NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 26254LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 26255max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 26256ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 26257exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 26258lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 26259lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 26260lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 26261lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 26262lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 26263reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 26264reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 26265OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 26266deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 26267file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 26268file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 26269want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 26270DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 26271sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 26272AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 26273AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 26274archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 26275STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 26276RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 26277old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26278old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26279old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 26280lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 26281CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 26282CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 26283compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 26284GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 26285lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 26286lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 26287lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 26288lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 26289lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 26290lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 26291nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 26292lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 26293lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 26294objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 26295MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 26296lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 26297lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 26298lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 26299lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 26300lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 26301need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 26302MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 26303DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 26304NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 26305LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 26306OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 26307OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 26308libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 26309shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 26310extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26311archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 26312enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 26313export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 26314whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 26315compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 26316old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 26317old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26318archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 26319archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26320module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 26321module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26322with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 26323allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 26324no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26325hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26326hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26327hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 26328hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 26329hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 26330hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 26331hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 26332inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 26333link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 26334always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 26335export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 26336exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 26337include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 26338prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 26339postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 26340file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 26341variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 26342need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 26343need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 26344version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 26345runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 26346shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 26347shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 26348libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 26349library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 26350soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 26351install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 26352postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26353postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26354finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 26355finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 26356hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26357sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26358configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 26359configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 26360hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26361enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 26362enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 26363enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 26364old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 26365striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 26366 26367LTCC='$LTCC' 26368LTCFLAGS='$LTCFLAGS' 26369compiler='$compiler_DEFAULT' 26370 26371# A function that is used when there is no print builtin or printf. 26372func_fallback_echo () 26373{ 26374 eval 'cat <<_LTECHO_EOF 26375\$1 26376_LTECHO_EOF' 26377} 26378 26379# Quote evaled strings. 26380for var in SHELL \ 26381ECHO \ 26382PATH_SEPARATOR \ 26383SED \ 26384GREP \ 26385EGREP \ 26386FGREP \ 26387LD \ 26388NM \ 26389LN_S \ 26390lt_SP2NL \ 26391lt_NL2SP \ 26392reload_flag \ 26393OBJDUMP \ 26394deplibs_check_method \ 26395file_magic_cmd \ 26396file_magic_glob \ 26397want_nocaseglob \ 26398DLLTOOL \ 26399sharedlib_from_linklib_cmd \ 26400AR \ 26401AR_FLAGS \ 26402archiver_list_spec \ 26403STRIP \ 26404RANLIB \ 26405CC \ 26406CFLAGS \ 26407compiler \ 26408lt_cv_sys_global_symbol_pipe \ 26409lt_cv_sys_global_symbol_to_cdecl \ 26410lt_cv_sys_global_symbol_to_import \ 26411lt_cv_sys_global_symbol_to_c_name_address \ 26412lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 26413lt_cv_nm_interface \ 26414nm_file_list_spec \ 26415lt_cv_truncate_bin \ 26416lt_prog_compiler_no_builtin_flag \ 26417lt_prog_compiler_pic \ 26418lt_prog_compiler_wl \ 26419lt_prog_compiler_static \ 26420lt_cv_prog_compiler_c_o \ 26421need_locks \ 26422MANIFEST_TOOL \ 26423DSYMUTIL \ 26424NMEDIT \ 26425LIPO \ 26426OTOOL \ 26427OTOOL64 \ 26428shrext_cmds \ 26429export_dynamic_flag_spec \ 26430whole_archive_flag_spec \ 26431compiler_needs_object \ 26432with_gnu_ld \ 26433allow_undefined_flag \ 26434no_undefined_flag \ 26435hardcode_libdir_flag_spec \ 26436hardcode_libdir_separator \ 26437exclude_expsyms \ 26438include_expsyms \ 26439file_list_spec \ 26440variables_saved_for_relink \ 26441libname_spec \ 26442library_names_spec \ 26443soname_spec \ 26444install_override_mode \ 26445finish_eval \ 26446old_striplib \ 26447striplib; do 26448 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26449 *[\\\\\\\`\\"\\\$]*) 26450 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26451 ;; 26452 *) 26453 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26454 ;; 26455 esac 26456done 26457 26458# Double-quote double-evaled strings. 26459for var in reload_cmds \ 26460old_postinstall_cmds \ 26461old_postuninstall_cmds \ 26462old_archive_cmds \ 26463extract_expsyms_cmds \ 26464old_archive_from_new_cmds \ 26465old_archive_from_expsyms_cmds \ 26466archive_cmds \ 26467archive_expsym_cmds \ 26468module_cmds \ 26469module_expsym_cmds \ 26470export_symbols_cmds \ 26471prelink_cmds \ 26472postlink_cmds \ 26473postinstall_cmds \ 26474postuninstall_cmds \ 26475finish_cmds \ 26476sys_lib_search_path_spec \ 26477configure_time_dlsearch_path \ 26478configure_time_lt_sys_library_path; do 26479 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26480 *[\\\\\\\`\\"\\\$]*) 26481 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26482 ;; 26483 *) 26484 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26485 ;; 26486 esac 26487done 26488 26489ac_aux_dir='$ac_aux_dir' 26490 26491# See if we are running on zsh, and set the options that allow our 26492# commands through without removal of \ escapes INIT. 26493if test -n "\${ZSH_VERSION+set}"; then 26494 setopt NO_GLOB_SUBST 26495fi 26496 26497 26498 PACKAGE='$PACKAGE' 26499 VERSION='$VERSION' 26500 RM='$RM' 26501 ofile='$ofile' 26502 26503 26504 26505 26506_ACEOF 26507 26508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26509 26510# Handling of arguments. 26511for ac_config_target in $ac_config_targets 26512do 26513 case $ac_config_target in 26514 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 26515 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26516 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;; 26517 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;; 26518 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;; 26519 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;; 26520 "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;; 26521 "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;; 26522 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;; 26523 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26524 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 26525 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;; 26526 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;; 26527 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;; 26528 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;; 26529 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;; 26530 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;; 26531 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;; 26532 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;; 26533 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;; 26534 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;; 26535 "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;; 26536 "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;; 26537 "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;; 26538 "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;; 26539 "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;; 26540 "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;; 26541 "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;; 26542 "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;; 26543 "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;; 26544 "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;; 26545 "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;; 26546 "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;; 26547 "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;; 26548 "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;; 26549 "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;; 26550 "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;; 26551 "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;; 26552 "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;; 26553 "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;; 26554 "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;; 26555 "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;; 26556 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;; 26557 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;; 26558 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;; 26559 "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;; 26560 "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;; 26561 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;; 26562 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;; 26563 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;; 26564 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;; 26565 "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;; 26566 "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;; 26567 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;; 26568 "bin/tests/system/inline/checkdsa.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/inline/checkdsa.sh" ;; 26569 "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;; 26570 "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;; 26571 "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;; 26572 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;; 26573 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;; 26574 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;; 26575 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;; 26576 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;; 26577 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;; 26578 "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;; 26579 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 26580 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;; 26581 "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;; 26582 "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;; 26583 "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;; 26584 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;; 26585 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; 26586 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;; 26587 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 26588 "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;; 26589 "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;; 26590 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;; 26591 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;; 26592 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;; 26593 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;; 26594 "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;; 26595 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;; 26596 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 26597 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;; 26598 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;; 26599 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;; 26600 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;; 26601 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;; 26602 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;; 26603 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;; 26604 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;; 26605 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;; 26606 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;; 26607 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;; 26608 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;; 26609 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;; 26610 "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;; 26611 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;; 26612 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;; 26613 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;; 26614 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;; 26615 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;; 26616 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;; 26617 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;; 26618 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;; 26619 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;; 26620 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;; 26621 "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;; 26622 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;; 26623 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;; 26624 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;; 26625 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;; 26626 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;; 26627 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;; 26628 "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;; 26629 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;; 26630 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;; 26631 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;; 26632 "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;; 26633 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;; 26634 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;; 26635 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;; 26636 "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;; 26637 "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;; 26638 "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;; 26639 "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;; 26640 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;; 26641 "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;; 26642 "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;; 26643 "lib/lwres/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/tests/Makefile" ;; 26644 "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;; 26645 "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;; 26646 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;; 26647 "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;; 26648 "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;; 26649 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; 26650 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;; 26651 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;; 26652 "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;; 26653 26654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26655 esac 26656done 26657 26658 26659# If the user did not use the arguments to specify the items to instantiate, 26660# then the envvar interface is used. Set only those that are not. 26661# We use the long form for the default assignment because of an extremely 26662# bizarre bug on SunOS 4.1.3. 26663if $ac_need_defaults; then 26664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26667fi 26668 26669# Have a temporary directory for convenience. Make it in the build tree 26670# simply because there is no reason against having it here, and in addition, 26671# creating and moving files from /tmp can sometimes cause problems. 26672# Hook for its removal unless debugging. 26673# Note that there is a small window in which the directory will not be cleaned: 26674# after its creation but before its name has been assigned to `$tmp'. 26675$debug || 26676{ 26677 tmp= ac_tmp= 26678 trap 'exit_status=$? 26679 : "${ac_tmp:=$tmp}" 26680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26681' 0 26682 trap 'as_fn_exit 1' 1 2 13 15 26683} 26684# Create a (secure) tmp directory for tmp files. 26685 26686{ 26687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26688 test -d "$tmp" 26689} || 26690{ 26691 tmp=./conf$$-$RANDOM 26692 (umask 077 && mkdir "$tmp") 26693} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26694ac_tmp=$tmp 26695 26696# Set up the scripts for CONFIG_FILES section. 26697# No need to generate them if there are no CONFIG_FILES. 26698# This happens for instance with `./config.status config.h'. 26699if test -n "$CONFIG_FILES"; then 26700 26701if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 26702 ac_cs_awk_getline=: 26703 ac_cs_awk_pipe_init= 26704 ac_cs_awk_read_file=' 26705 while ((getline aline < (F[key])) > 0) 26706 print(aline) 26707 close(F[key])' 26708 ac_cs_awk_pipe_fini= 26709else 26710 ac_cs_awk_getline=false 26711 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 26712 ac_cs_awk_read_file=' 26713 print "|#_!!_#|" 26714 print "cat " F[key] " &&" 26715 '$ac_cs_awk_pipe_init 26716 # The final `:' finishes the AND list. 26717 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 26718fi 26719ac_cr=`echo X | tr X '\015'` 26720# On cygwin, bash can eat \r inside `` if the user requested igncr. 26721# But we know of no other shell where ac_cr would be empty at this 26722# point, so we can use a bashism as a fallback. 26723if test "x$ac_cr" = x; then 26724 eval ac_cr=\$\'\\r\' 26725fi 26726ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26727if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26728 ac_cs_awk_cr='\\r' 26729else 26730 ac_cs_awk_cr=$ac_cr 26731fi 26732 26733echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26734_ACEOF 26735 26736# Create commands to substitute file output variables. 26737{ 26738 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 26739 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 26740 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 26741 echo "_ACAWK" && 26742 echo "_ACEOF" 26743} >conf$$files.sh && 26744. ./conf$$files.sh || 26745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26746rm -f conf$$files.sh 26747 26748{ 26749 echo "cat >conf$$subs.awk <<_ACEOF" && 26750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26751 echo "_ACEOF" 26752} >conf$$subs.sh || 26753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26754ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26755ac_delim='%!_!# ' 26756for ac_last_try in false false false false false :; do 26757 . ./conf$$subs.sh || 26758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26759 26760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26761 if test $ac_delim_n = $ac_delim_num; then 26762 break 26763 elif $ac_last_try; then 26764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26765 else 26766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26767 fi 26768done 26769rm -f conf$$subs.sh 26770 26771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26772cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26773_ACEOF 26774sed -n ' 26775h 26776s/^/S["/; s/!.*/"]=/ 26777p 26778g 26779s/^[^!]*!// 26780:repl 26781t repl 26782s/'"$ac_delim"'$// 26783t delim 26784:nl 26785h 26786s/\(.\{148\}\)..*/\1/ 26787t more1 26788s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26789p 26790n 26791b repl 26792:more1 26793s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26794p 26795g 26796s/.\{148\}// 26797t nl 26798:delim 26799h 26800s/\(.\{148\}\)..*/\1/ 26801t more2 26802s/["\\]/\\&/g; s/^/"/; s/$/"/ 26803p 26804b 26805:more2 26806s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26807p 26808g 26809s/.\{148\}// 26810t delim 26811' <conf$$subs.awk | sed ' 26812/^[^""]/{ 26813 N 26814 s/\n// 26815} 26816' >>$CONFIG_STATUS || ac_write_fail=1 26817rm -f conf$$subs.awk 26818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26819_ACAWK 26820cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26821 for (key in S) S_is_set[key] = 1 26822 FS = "" 26823 \$ac_cs_awk_pipe_init 26824} 26825{ 26826 line = $ 0 26827 nfields = split(line, field, "@") 26828 substed = 0 26829 len = length(field[1]) 26830 for (i = 2; i < nfields; i++) { 26831 key = field[i] 26832 keylen = length(key) 26833 if (S_is_set[key]) { 26834 value = S[key] 26835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26836 len += length(value) + length(field[++i]) 26837 substed = 1 26838 } else 26839 len += 1 + keylen 26840 } 26841 if (nfields == 3 && !substed) { 26842 key = field[2] 26843 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 26844 \$ac_cs_awk_read_file 26845 next 26846 } 26847 } 26848 print line 26849} 26850\$ac_cs_awk_pipe_fini 26851_ACAWK 26852_ACEOF 26853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26854if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26856else 26857 cat 26858fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26860_ACEOF 26861 26862# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26863# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26864# trailing colons and then remove the whole line if VPATH becomes empty 26865# (actually we leave an empty line to preserve line numbers). 26866if test "x$srcdir" = x.; then 26867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26868h 26869s/// 26870s/^/:/ 26871s/[ ]*$/:/ 26872s/:\$(srcdir):/:/g 26873s/:\${srcdir}:/:/g 26874s/:@srcdir@:/:/g 26875s/^:*// 26876s/:*$// 26877x 26878s/\(=[ ]*\).*/\1/ 26879G 26880s/\n// 26881s/^[^=]*=[ ]*$// 26882}' 26883fi 26884 26885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26886fi # test -n "$CONFIG_FILES" 26887 26888# Set up the scripts for CONFIG_HEADERS section. 26889# No need to generate them if there are no CONFIG_HEADERS. 26890# This happens for instance with `./config.status Makefile'. 26891if test -n "$CONFIG_HEADERS"; then 26892cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26893BEGIN { 26894_ACEOF 26895 26896# Transform confdefs.h into an awk script `defines.awk', embedded as 26897# here-document in config.status, that substitutes the proper values into 26898# config.h.in to produce config.h. 26899 26900# Create a delimiter string that does not exist in confdefs.h, to ease 26901# handling of long lines. 26902ac_delim='%!_!# ' 26903for ac_last_try in false false :; do 26904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26905 if test -z "$ac_tt"; then 26906 break 26907 elif $ac_last_try; then 26908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26909 else 26910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26911 fi 26912done 26913 26914# For the awk script, D is an array of macro values keyed by name, 26915# likewise P contains macro parameters if any. Preserve backslash 26916# newline sequences. 26917 26918ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26919sed -n ' 26920s/.\{148\}/&'"$ac_delim"'/g 26921t rset 26922:rset 26923s/^[ ]*#[ ]*define[ ][ ]*/ / 26924t def 26925d 26926:def 26927s/\\$// 26928t bsnl 26929s/["\\]/\\&/g 26930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26931D["\1"]=" \3"/p 26932s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26933d 26934:bsnl 26935s/["\\]/\\&/g 26936s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26937D["\1"]=" \3\\\\\\n"\\/p 26938t cont 26939s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26940t cont 26941d 26942:cont 26943n 26944s/.\{148\}/&'"$ac_delim"'/g 26945t clear 26946:clear 26947s/\\$// 26948t bsnlc 26949s/["\\]/\\&/g; s/^/"/; s/$/"/p 26950d 26951:bsnlc 26952s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26953b cont 26954' <confdefs.h | sed ' 26955s/'"$ac_delim"'/"\\\ 26956"/g' >>$CONFIG_STATUS || ac_write_fail=1 26957 26958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26959 for (key in D) D_is_set[key] = 1 26960 FS = "" 26961} 26962/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26963 line = \$ 0 26964 split(line, arg, " ") 26965 if (arg[1] == "#") { 26966 defundef = arg[2] 26967 mac1 = arg[3] 26968 } else { 26969 defundef = substr(arg[1], 2) 26970 mac1 = arg[2] 26971 } 26972 split(mac1, mac2, "(") #) 26973 macro = mac2[1] 26974 prefix = substr(line, 1, index(line, defundef) - 1) 26975 if (D_is_set[macro]) { 26976 # Preserve the white space surrounding the "#". 26977 print prefix "define", macro P[macro] D[macro] 26978 next 26979 } else { 26980 # Replace #undef with comments. This is necessary, for example, 26981 # in the case of _POSIX_SOURCE, which is predefined and required 26982 # on some systems where configure will not decide to define it. 26983 if (defundef == "undef") { 26984 print "/*", prefix defundef, macro, "*/" 26985 next 26986 } 26987 } 26988} 26989{ print } 26990_ACAWK 26991_ACEOF 26992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26994fi # test -n "$CONFIG_HEADERS" 26995 26996 26997eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26998shift 26999for ac_tag 27000do 27001 case $ac_tag in 27002 :[FHLC]) ac_mode=$ac_tag; continue;; 27003 esac 27004 case $ac_mode$ac_tag in 27005 :[FHL]*:*);; 27006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 27007 :[FH]-) ac_tag=-:-;; 27008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27009 esac 27010 ac_save_IFS=$IFS 27011 IFS=: 27012 set x $ac_tag 27013 IFS=$ac_save_IFS 27014 shift 27015 ac_file=$1 27016 shift 27017 27018 case $ac_mode in 27019 :L) ac_source=$1;; 27020 :[FH]) 27021 ac_file_inputs= 27022 for ac_f 27023 do 27024 case $ac_f in 27025 -) ac_f="$ac_tmp/stdin";; 27026 *) # Look for the file first in the build tree, then in the source tree 27027 # (if the path is not absolute). The absolute path cannot be DOS-style, 27028 # because $ac_f cannot contain `:'. 27029 test -f "$ac_f" || 27030 case $ac_f in 27031 [\\/$]*) false;; 27032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27033 esac || 27034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27035 esac 27036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27037 as_fn_append ac_file_inputs " '$ac_f'" 27038 done 27039 27040 # Let's still pretend it is `configure' which instantiates (i.e., don't 27041 # use $as_me), people would be surprised to read: 27042 # /* config.h. Generated by config.status. */ 27043 configure_input='Generated from '` 27044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27045 `' by configure.' 27046 if test x"$ac_file" != x-; then 27047 configure_input="$ac_file. $configure_input" 27048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27049$as_echo "$as_me: creating $ac_file" >&6;} 27050 fi 27051 # Neutralize special characters interpreted by sed in replacement strings. 27052 case $configure_input in #( 27053 *\&* | *\|* | *\\* ) 27054 ac_sed_conf_input=`$as_echo "$configure_input" | 27055 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27056 *) ac_sed_conf_input=$configure_input;; 27057 esac 27058 27059 case $ac_tag in 27060 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 27061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 27062 esac 27063 ;; 27064 esac 27065 27066 ac_dir=`$as_dirname -- "$ac_file" || 27067$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27068 X"$ac_file" : 'X\(//\)[^/]' \| \ 27069 X"$ac_file" : 'X\(//\)$' \| \ 27070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27071$as_echo X"$ac_file" | 27072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27073 s//\1/ 27074 q 27075 } 27076 /^X\(\/\/\)[^/].*/{ 27077 s//\1/ 27078 q 27079 } 27080 /^X\(\/\/\)$/{ 27081 s//\1/ 27082 q 27083 } 27084 /^X\(\/\).*/{ 27085 s//\1/ 27086 q 27087 } 27088 s/.*/./; q'` 27089 as_dir="$ac_dir"; as_fn_mkdir_p 27090 ac_builddir=. 27091 27092case "$ac_dir" in 27093.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27094*) 27095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 27096 # A ".." for each directory in $ac_dir_suffix. 27097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27098 case $ac_top_builddir_sub in 27099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27101 esac ;; 27102esac 27103ac_abs_top_builddir=$ac_pwd 27104ac_abs_builddir=$ac_pwd$ac_dir_suffix 27105# for backward compatibility: 27106ac_top_builddir=$ac_top_build_prefix 27107 27108case $srcdir in 27109 .) # We are building in place. 27110 ac_srcdir=. 27111 ac_top_srcdir=$ac_top_builddir_sub 27112 ac_abs_top_srcdir=$ac_pwd ;; 27113 [\\/]* | ?:[\\/]* ) # Absolute name. 27114 ac_srcdir=$srcdir$ac_dir_suffix; 27115 ac_top_srcdir=$srcdir 27116 ac_abs_top_srcdir=$srcdir ;; 27117 *) # Relative name. 27118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27119 ac_top_srcdir=$ac_top_build_prefix$srcdir 27120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27121esac 27122ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27123 27124 27125 case $ac_mode in 27126 :F) 27127 # 27128 # CONFIG_FILE 27129 # 27130 27131 case $INSTALL in 27132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 27133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 27134 esac 27135_ACEOF 27136 27137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27138# If the template does not know about datarootdir, expand it. 27139# FIXME: This hack should be removed a few years after 2.60. 27140ac_datarootdir_hack=; ac_datarootdir_seen= 27141ac_sed_dataroot=' 27142/datarootdir/ { 27143 p 27144 q 27145} 27146/@datadir@/p 27147/@docdir@/p 27148/@infodir@/p 27149/@localedir@/p 27150/@mandir@/p' 27151case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27152*datarootdir*) ac_datarootdir_seen=yes;; 27153*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27155$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27156_ACEOF 27157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27158 ac_datarootdir_hack=' 27159 s&@datadir@&$datadir&g 27160 s&@docdir@&$docdir&g 27161 s&@infodir@&$infodir&g 27162 s&@localedir@&$localedir&g 27163 s&@mandir@&$mandir&g 27164 s&\\\${datarootdir}&$datarootdir&g' ;; 27165esac 27166_ACEOF 27167 27168# Neutralize VPATH when `$srcdir' = `.'. 27169# Shell code in configure.ac might set extrasub. 27170# FIXME: do we really want to maintain this feature? 27171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27172ac_sed_extra="$ac_vpsub 27173$extrasub 27174_ACEOF 27175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27176:t 27177/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27178s|@configure_input@|$ac_sed_conf_input|;t t 27179s&@top_builddir@&$ac_top_builddir_sub&;t t 27180s&@top_build_prefix@&$ac_top_build_prefix&;t t 27181s&@srcdir@&$ac_srcdir&;t t 27182s&@abs_srcdir@&$ac_abs_srcdir&;t t 27183s&@top_srcdir@&$ac_top_srcdir&;t t 27184s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27185s&@builddir@&$ac_builddir&;t t 27186s&@abs_builddir@&$ac_abs_builddir&;t t 27187s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27188s&@INSTALL@&$ac_INSTALL&;t t 27189$ac_datarootdir_hack 27190" 27191eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 27192if $ac_cs_awk_getline; then 27193 $AWK -f "$ac_tmp/subs.awk" 27194else 27195 $AWK -f "$ac_tmp/subs.awk" | $SHELL 27196fi \ 27197 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27198 27199test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27200 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 27201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 27202 "$ac_tmp/out"`; test -z "$ac_out"; } && 27203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27204which seems to be undefined. Please make sure it is defined" >&5 27205$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27206which seems to be undefined. Please make sure it is defined" >&2;} 27207 27208 rm -f "$ac_tmp/stdin" 27209 case $ac_file in 27210 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 27211 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 27212 esac \ 27213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27214 ;; 27215 :H) 27216 # 27217 # CONFIG_HEADER 27218 # 27219 if test x"$ac_file" != x-; then 27220 { 27221 $as_echo "/* $configure_input */" \ 27222 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 27223 } >"$ac_tmp/config.h" \ 27224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27225 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 27226 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27227$as_echo "$as_me: $ac_file is unchanged" >&6;} 27228 else 27229 rm -f "$ac_file" 27230 mv "$ac_tmp/config.h" "$ac_file" \ 27231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27232 fi 27233 else 27234 $as_echo "/* $configure_input */" \ 27235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 27236 || as_fn_error $? "could not create -" "$LINENO" 5 27237 fi 27238 ;; 27239 27240 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27241$as_echo "$as_me: executing $ac_file commands" >&6;} 27242 ;; 27243 esac 27244 27245 27246 case $ac_file$ac_mode in 27247 "libtool":C) 27248 27249 # See if we are running on zsh, and set the options that allow our 27250 # commands through without removal of \ escapes. 27251 if test -n "${ZSH_VERSION+set}"; then 27252 setopt NO_GLOB_SUBST 27253 fi 27254 27255 cfgfile=${ofile}T 27256 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 27257 $RM "$cfgfile" 27258 27259 cat <<_LT_EOF >> "$cfgfile" 27260#! $SHELL 27261# Generated automatically by $as_me ($PACKAGE) $VERSION 27262# NOTE: Changes made to this file will be lost: look at ltmain.sh. 27263 27264# Provide generalized library-building support services. 27265# Written by Gordon Matzigkeit, 1996 27266 27267# Copyright (C) 2014 Free Software Foundation, Inc. 27268# This is free software; see the source for copying conditions. There is NO 27269# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27270 27271# GNU Libtool is free software; you can redistribute it and/or modify 27272# it under the terms of the GNU General Public License as published by 27273# the Free Software Foundation; either version 2 of of the License, or 27274# (at your option) any later version. 27275# 27276# As a special exception to the GNU General Public License, if you 27277# distribute this file as part of a program or library that is built 27278# using GNU Libtool, you may include this file under the same 27279# distribution terms that you use for the rest of that program. 27280# 27281# GNU Libtool is distributed in the hope that it will be useful, but 27282# WITHOUT ANY WARRANTY; without even the implied warranty of 27283# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27284# GNU General Public License for more details. 27285# 27286# You should have received a copy of the GNU General Public License 27287# along with this program. If not, see <http://www.gnu.org/licenses/>. 27288 27289 27290# The names of the tagged configurations supported by this script. 27291available_tags='' 27292 27293# Configured defaults for sys_lib_dlsearch_path munging. 27294: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 27295 27296# ### BEGIN LIBTOOL CONFIG 27297 27298# Which release of libtool.m4 was used? 27299macro_version=$macro_version 27300macro_revision=$macro_revision 27301 27302# Whether or not to build shared libraries. 27303build_libtool_libs=$enable_shared 27304 27305# Whether or not to build static libraries. 27306build_old_libs=$enable_static 27307 27308# What type of objects to build. 27309pic_mode=$pic_mode 27310 27311# Whether or not to optimize for fast installation. 27312fast_install=$enable_fast_install 27313 27314# Shared archive member basename,for filename based shared library versioning on AIX. 27315shared_archive_member_spec=$shared_archive_member_spec 27316 27317# Shell to use when invoking shell scripts. 27318SHELL=$lt_SHELL 27319 27320# An echo program that protects backslashes. 27321ECHO=$lt_ECHO 27322 27323# The PATH separator for the build system. 27324PATH_SEPARATOR=$lt_PATH_SEPARATOR 27325 27326# The host system. 27327host_alias=$host_alias 27328host=$host 27329host_os=$host_os 27330 27331# The build system. 27332build_alias=$build_alias 27333build=$build 27334build_os=$build_os 27335 27336# A sed program that does not truncate output. 27337SED=$lt_SED 27338 27339# Sed that helps us avoid accidentally triggering echo(1) options like -n. 27340Xsed="\$SED -e 1s/^X//" 27341 27342# A grep program that handles long lines. 27343GREP=$lt_GREP 27344 27345# An ERE matcher. 27346EGREP=$lt_EGREP 27347 27348# A literal string matcher. 27349FGREP=$lt_FGREP 27350 27351# A BSD- or MS-compatible name lister. 27352NM=$lt_NM 27353 27354# Whether we need soft or hard links. 27355LN_S=$lt_LN_S 27356 27357# What is the maximum length of a command? 27358max_cmd_len=$max_cmd_len 27359 27360# Object file suffix (normally "o"). 27361objext=$ac_objext 27362 27363# Executable file suffix (normally ""). 27364exeext=$exeext 27365 27366# whether the shell understands "unset". 27367lt_unset=$lt_unset 27368 27369# turn spaces into newlines. 27370SP2NL=$lt_lt_SP2NL 27371 27372# turn newlines into spaces. 27373NL2SP=$lt_lt_NL2SP 27374 27375# convert \$build file names to \$host format. 27376to_host_file_cmd=$lt_cv_to_host_file_cmd 27377 27378# convert \$build files to toolchain format. 27379to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27380 27381# An object symbol dumper. 27382OBJDUMP=$lt_OBJDUMP 27383 27384# Method to check whether dependent libraries are shared objects. 27385deplibs_check_method=$lt_deplibs_check_method 27386 27387# Command to use when deplibs_check_method = "file_magic". 27388file_magic_cmd=$lt_file_magic_cmd 27389 27390# How to find potential files when deplibs_check_method = "file_magic". 27391file_magic_glob=$lt_file_magic_glob 27392 27393# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27394want_nocaseglob=$lt_want_nocaseglob 27395 27396# DLL creation program. 27397DLLTOOL=$lt_DLLTOOL 27398 27399# Command to associate shared and link libraries. 27400sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27401 27402# The archiver. 27403AR=$lt_AR 27404 27405# Flags to create an archive. 27406AR_FLAGS=$lt_AR_FLAGS 27407 27408# How to feed a file listing to the archiver. 27409archiver_list_spec=$lt_archiver_list_spec 27410 27411# A symbol stripping program. 27412STRIP=$lt_STRIP 27413 27414# Commands used to install an old-style archive. 27415RANLIB=$lt_RANLIB 27416old_postinstall_cmds=$lt_old_postinstall_cmds 27417old_postuninstall_cmds=$lt_old_postuninstall_cmds 27418 27419# Whether to use a lock for old archive extraction. 27420lock_old_archive_extraction=$lock_old_archive_extraction 27421 27422# A C compiler. 27423LTCC=$lt_CC 27424 27425# LTCC compiler flags. 27426LTCFLAGS=$lt_CFLAGS 27427 27428# Take the output of nm and produce a listing of raw symbols and C names. 27429global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27430 27431# Transform the output of nm in a proper C declaration. 27432global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27433 27434# Transform the output of nm into a list of symbols to manually relocate. 27435global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 27436 27437# Transform the output of nm in a C name address pair. 27438global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27439 27440# Transform the output of nm in a C name address pair when lib prefix is needed. 27441global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27442 27443# The name lister interface. 27444nm_interface=$lt_lt_cv_nm_interface 27445 27446# Specify filename containing input files for \$NM. 27447nm_file_list_spec=$lt_nm_file_list_spec 27448 27449# The root where to search for dependent libraries,and where our libraries should be installed. 27450lt_sysroot=$lt_sysroot 27451 27452# Command to truncate a binary pipe. 27453lt_truncate_bin=$lt_lt_cv_truncate_bin 27454 27455# The name of the directory that contains temporary libtool files. 27456objdir=$objdir 27457 27458# Used to examine libraries when file_magic_cmd begins with "file". 27459MAGIC_CMD=$MAGIC_CMD 27460 27461# Must we lock files when doing compilation? 27462need_locks=$lt_need_locks 27463 27464# Manifest tool. 27465MANIFEST_TOOL=$lt_MANIFEST_TOOL 27466 27467# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27468DSYMUTIL=$lt_DSYMUTIL 27469 27470# Tool to change global to local symbols on Mac OS X. 27471NMEDIT=$lt_NMEDIT 27472 27473# Tool to manipulate fat objects and archives on Mac OS X. 27474LIPO=$lt_LIPO 27475 27476# ldd/readelf like tool for Mach-O binaries on Mac OS X. 27477OTOOL=$lt_OTOOL 27478 27479# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27480OTOOL64=$lt_OTOOL64 27481 27482# Old archive suffix (normally "a"). 27483libext=$libext 27484 27485# Shared library suffix (normally ".so"). 27486shrext_cmds=$lt_shrext_cmds 27487 27488# The commands to extract the exported symbol list from a shared archive. 27489extract_expsyms_cmds=$lt_extract_expsyms_cmds 27490 27491# Variables whose values should be saved in libtool wrapper scripts and 27492# restored at link time. 27493variables_saved_for_relink=$lt_variables_saved_for_relink 27494 27495# Do we need the "lib" prefix for modules? 27496need_lib_prefix=$need_lib_prefix 27497 27498# Do we need a version for libraries? 27499need_version=$need_version 27500 27501# Library versioning type. 27502version_type=$version_type 27503 27504# Shared library runtime path variable. 27505runpath_var=$runpath_var 27506 27507# Shared library path variable. 27508shlibpath_var=$shlibpath_var 27509 27510# Is shlibpath searched before the hard-coded library search path? 27511shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27512 27513# Format of library name prefix. 27514libname_spec=$lt_libname_spec 27515 27516# List of archive names. First name is the real one, the rest are links. 27517# The last name is the one that the linker finds with -lNAME 27518library_names_spec=$lt_library_names_spec 27519 27520# The coded name of the library, if different from the real name. 27521soname_spec=$lt_soname_spec 27522 27523# Permission mode override for installation of shared libraries. 27524install_override_mode=$lt_install_override_mode 27525 27526# Command to use after installation of a shared archive. 27527postinstall_cmds=$lt_postinstall_cmds 27528 27529# Command to use after uninstallation of a shared archive. 27530postuninstall_cmds=$lt_postuninstall_cmds 27531 27532# Commands used to finish a libtool library installation in a directory. 27533finish_cmds=$lt_finish_cmds 27534 27535# As "finish_cmds", except a single script fragment to be evaled but 27536# not shown. 27537finish_eval=$lt_finish_eval 27538 27539# Whether we should hardcode library paths into libraries. 27540hardcode_into_libs=$hardcode_into_libs 27541 27542# Compile-time system search path for libraries. 27543sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27544 27545# Detected run-time system search path for libraries. 27546sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 27547 27548# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 27549configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 27550 27551# Whether dlopen is supported. 27552dlopen_support=$enable_dlopen 27553 27554# Whether dlopen of programs is supported. 27555dlopen_self=$enable_dlopen_self 27556 27557# Whether dlopen of statically linked programs is supported. 27558dlopen_self_static=$enable_dlopen_self_static 27559 27560# Commands to strip libraries. 27561old_striplib=$lt_old_striplib 27562striplib=$lt_striplib 27563 27564 27565# The linker used to build libraries. 27566LD=$lt_LD 27567 27568# How to create reloadable object files. 27569reload_flag=$lt_reload_flag 27570reload_cmds=$lt_reload_cmds 27571 27572# Commands used to build an old-style archive. 27573old_archive_cmds=$lt_old_archive_cmds 27574 27575# A language specific compiler. 27576CC=$lt_compiler 27577 27578# Is the compiler the GNU compiler? 27579with_gcc=$GCC 27580 27581# Compiler flag to turn off builtin functions. 27582no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27583 27584# Additional compiler flags for building library objects. 27585pic_flag=$lt_lt_prog_compiler_pic 27586 27587# How to pass a linker flag through the compiler. 27588wl=$lt_lt_prog_compiler_wl 27589 27590# Compiler flag to prevent dynamic linking. 27591link_static_flag=$lt_lt_prog_compiler_static 27592 27593# Does compiler simultaneously support -c and -o options? 27594compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27595 27596# Whether or not to add -lc for building shared libraries. 27597build_libtool_need_lc=$archive_cmds_need_lc 27598 27599# Whether or not to disallow shared libs when runtime libs are static. 27600allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27601 27602# Compiler flag to allow reflexive dlopens. 27603export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27604 27605# Compiler flag to generate shared objects directly from archives. 27606whole_archive_flag_spec=$lt_whole_archive_flag_spec 27607 27608# Whether the compiler copes with passing no objects directly. 27609compiler_needs_object=$lt_compiler_needs_object 27610 27611# Create an old-style archive from a shared archive. 27612old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27613 27614# Create a temporary old-style archive to link instead of a shared archive. 27615old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27616 27617# Commands used to build a shared archive. 27618archive_cmds=$lt_archive_cmds 27619archive_expsym_cmds=$lt_archive_expsym_cmds 27620 27621# Commands used to build a loadable module if different from building 27622# a shared archive. 27623module_cmds=$lt_module_cmds 27624module_expsym_cmds=$lt_module_expsym_cmds 27625 27626# Whether we are building with GNU ld or not. 27627with_gnu_ld=$lt_with_gnu_ld 27628 27629# Flag that allows shared libraries with undefined symbols to be built. 27630allow_undefined_flag=$lt_allow_undefined_flag 27631 27632# Flag that enforces no undefined symbols. 27633no_undefined_flag=$lt_no_undefined_flag 27634 27635# Flag to hardcode \$libdir into a binary during linking. 27636# This must work even if \$libdir does not exist 27637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27638 27639# Whether we need a single "-rpath" flag with a separated argument. 27640hardcode_libdir_separator=$lt_hardcode_libdir_separator 27641 27642# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27643# DIR into the resulting binary. 27644hardcode_direct=$hardcode_direct 27645 27646# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27647# DIR into the resulting binary and the resulting library dependency is 27648# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27649# library is relocated. 27650hardcode_direct_absolute=$hardcode_direct_absolute 27651 27652# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27653# into the resulting binary. 27654hardcode_minus_L=$hardcode_minus_L 27655 27656# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27657# into the resulting binary. 27658hardcode_shlibpath_var=$hardcode_shlibpath_var 27659 27660# Set to "yes" if building a shared library automatically hardcodes DIR 27661# into the library and all subsequent libraries and executables linked 27662# against it. 27663hardcode_automatic=$hardcode_automatic 27664 27665# Set to yes if linker adds runtime paths of dependent libraries 27666# to runtime path list. 27667inherit_rpath=$inherit_rpath 27668 27669# Whether libtool must link a program against all its dependency libraries. 27670link_all_deplibs=$link_all_deplibs 27671 27672# Set to "yes" if exported symbols are required. 27673always_export_symbols=$always_export_symbols 27674 27675# The commands to list exported symbols. 27676export_symbols_cmds=$lt_export_symbols_cmds 27677 27678# Symbols that should not be listed in the preloaded symbols. 27679exclude_expsyms=$lt_exclude_expsyms 27680 27681# Symbols that must always be exported. 27682include_expsyms=$lt_include_expsyms 27683 27684# Commands necessary for linking programs (against libraries) with templates. 27685prelink_cmds=$lt_prelink_cmds 27686 27687# Commands necessary for finishing linking programs. 27688postlink_cmds=$lt_postlink_cmds 27689 27690# Specify filename containing input files. 27691file_list_spec=$lt_file_list_spec 27692 27693# How to hardcode a shared library path into an executable. 27694hardcode_action=$hardcode_action 27695 27696# ### END LIBTOOL CONFIG 27697 27698_LT_EOF 27699 27700 cat <<'_LT_EOF' >> "$cfgfile" 27701 27702# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 27703 27704# func_munge_path_list VARIABLE PATH 27705# ----------------------------------- 27706# VARIABLE is name of variable containing _space_ separated list of 27707# directories to be munged by the contents of PATH, which is string 27708# having a format: 27709# "DIR[:DIR]:" 27710# string "DIR[ DIR]" will be prepended to VARIABLE 27711# ":DIR[:DIR]" 27712# string "DIR[ DIR]" will be appended to VARIABLE 27713# "DIRP[:DIRP]::[DIRA:]DIRA" 27714# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 27715# "DIRA[ DIRA]" will be appended to VARIABLE 27716# "DIR[:DIR]" 27717# VARIABLE will be replaced by "DIR[ DIR]" 27718func_munge_path_list () 27719{ 27720 case x$2 in 27721 x) 27722 ;; 27723 *:) 27724 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 27725 ;; 27726 x:*) 27727 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 27728 ;; 27729 *::*) 27730 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 27731 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 27732 ;; 27733 *) 27734 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 27735 ;; 27736 esac 27737} 27738 27739 27740# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 27741func_cc_basename () 27742{ 27743 for cc_temp in $*""; do 27744 case $cc_temp in 27745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 27746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 27747 \-*) ;; 27748 *) break;; 27749 esac 27750 done 27751 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 27752} 27753 27754 27755# ### END FUNCTIONS SHARED WITH CONFIGURE 27756 27757_LT_EOF 27758 27759 case $host_os in 27760 aix3*) 27761 cat <<\_LT_EOF >> "$cfgfile" 27762# AIX sometimes has problems with the GCC collect2 program. For some 27763# reason, if we set the COLLECT_NAMES environment variable, the problems 27764# vanish in a puff of smoke. 27765if test set != "${COLLECT_NAMES+set}"; then 27766 COLLECT_NAMES= 27767 export COLLECT_NAMES 27768fi 27769_LT_EOF 27770 ;; 27771 esac 27772 27773 27774ltmain=$ac_aux_dir/ltmain.sh 27775 27776 27777 # We use sed instead of cat because bash on DJGPP gets confused if 27778 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27779 # text mode, it properly converts lines to CR/LF. This bash problem 27780 # is reportedly fixed, but why not run on old versions too? 27781 sed '$q' "$ltmain" >> "$cfgfile" \ 27782 || (rm -f "$cfgfile"; exit 1) 27783 27784 mv -f "$cfgfile" "$ofile" || 27785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27786 chmod +x "$ofile" 27787 27788 ;; 27789 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;; 27790 27791 esac 27792done # for ac_tag 27793 27794 27795as_fn_exit 0 27796_ACEOF 27797ac_clean_files=$ac_clean_files_save 27798 27799test $ac_write_fail = 0 || 27800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27801 27802 27803# configure is writing to config.log, and then calls config.status. 27804# config.status does its own redirection, appending to config.log. 27805# Unfortunately, on DOS this fails, as config.log is still kept open 27806# by configure, so config.status won't be able to write to it; its 27807# output is simply discarded. So we exec the FD to /dev/null, 27808# effectively closing config.log, so it can be properly (re)opened and 27809# appended to by config.status. When coming back to configure, we 27810# need to make the FD available again. 27811if test "$no_create" != yes; then 27812 ac_cs_success=: 27813 ac_config_status_args= 27814 test "$silent" = yes && 27815 ac_config_status_args="$ac_config_status_args --quiet" 27816 exec 5>/dev/null 27817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27818 exec 5>>config.log 27819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27820 # would make configure fail if this is the last instruction. 27821 $ac_cs_success || as_fn_exit 1 27822fi 27823if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27825$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27826fi 27827 27828 27829# 27830# Now that the Makefiles exist we can ensure that everything is rebuilt. 27831# 27832# [pairwise: --with-make-clean, --without-make-clean] 27833 27834# Check whether --with-make-clean was given. 27835if test "${with_make_clean+set}" = set; then : 27836 withval=$with_make_clean; make_clean="$withval" 27837else 27838 make_clean="yes" 27839fi 27840 27841case "$make_clean" in 27842yes) 27843 if test "yes" != "$no_create" 27844 then 27845 if test "yes" = "$silent" 27846 then 27847 make clean > /dev/null 27848 else 27849 make clean 27850 fi 27851 fi 27852 ;; 27853esac 27854 27855# [pairwise: --enable-full-report, --disable-full-report] 27856# Check whether --enable-full-report was given. 27857if test "${enable_full_report+set}" = set; then : 27858 enableval=$enable_full_report; 27859fi 27860 27861 27862report() { 27863 echo "===============================================================================" 27864 echo "Configuration summary:" 27865 echo "-------------------------------------------------------------------------------" 27866 echo "Optional features enabled:" 27867 if $use_threads; then 27868 echo " Multiprocessing support (--enable-threads)" 27869 if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then 27870 echo " Mutex lock type: $locktype" 27871 fi 27872 fi 27873 test "large" = "$use_tuning" && echo " Large-system tuning (--with-tuning)" 27874 test "no" = "$use_dnstap" || \ 27875 echo " Allow 'dnstap' packet logging (--enable-dnstap)" 27876 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--with-geoip2)" 27877 test "no" = "$use_geoip" || echo " Legacy GeoIP access control (--with-geoip)" 27878 test "no" = "$use_gssapi" || echo " GSS-API (--with-gssapi)" 27879 27880 # these lines are only printed if run with --enable-full-report 27881 if test "yes" = "$enable_full_report"; then 27882 test "no" = "$enable_ipv6" -o "no" = "$found_ipv6" || \ 27883 echo " IPv6 support (--enable-ipv6)" 27884 test "X$CRYPTO" = "X" -o "yes" = "$want_native_pkcs11" || \ 27885 echo " OpenSSL cryptography/DNSSEC (--with-openssl)" 27886 test "X$PYTHON" = "X" || echo " Python tools (--with-python)" 27887 test "X$XMLSTATS" = "X" || echo " XML statistics (--with-libxml2)" 27888 test "X$JSONSTATS" = "X" || echo " JSON statistics (--with-libjson)" 27889 test "X$ZLIB" = "X" || echo " HTTP zlib compression (--with-zlib)" 27890 test "X$NZD_TOOLS" = "X" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)" 27891 test "no" = "$use_libidn2" || echo " IDN support (--with-libidn2)" 27892 fi 27893 27894 if test "no" != "$use_pkcs11"; then 27895 if test "yes" = "$want_native_pkcs11"; then 27896 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)" 27897 else 27898 echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)" 27899 fi 27900 echo " Provider library: $PKCS11_PROVIDER" 27901 fi 27902 if test "yes" = "$OPENSSL_GOST" -o "yes" = "$PKCS11_GOST"; then 27903 echo " GOST algorithm support (encoding: $gosttype) (--with-gost)" 27904 fi 27905 test "yes" = "$OPENSSL_ECDSA" -o "$PKCS11_ECDSA" && \ 27906 echo " ECDSA algorithm support (--with-ecdsa)" 27907 test "yes" = "$OPENSSL_ED25519" -o "$PKCS11_ED25519" && \ 27908 echo " EDDSA algorithm support (--with-eddsa)" 27909 test "yes" = "$enable_fixed" && \ 27910 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 27911 test "yes" = "$enable_filter" && \ 27912 echo " AAAA filtering (--enable-filter-aaaa)" 27913 test "yes" = "$enable_seccomp" && \ 27914 echo " Use libseccomp system call filtering (--enable-seccomp)" 27915 test "yes" = "$want_backtrace" && \ 27916 echo " Print backtrace on crash (--enable-backtrace)" 27917 test "minimal" = "$want_symtable" && \ 27918 echo " Use symbol table for backtrace, named only (--enable-symtable)" 27919 test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \ 27920 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)" 27921 test "no" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)" 27922 test "yes" = "$want_querytrace" && \ 27923 echo " Very verbose query trace logging (--enable-querytrace)" 27924 test "no" = "$with_cmocka" || echo " CMocka Unit Testing Framework (--with-cmocka)" 27925 27926 echo " Dynamically loadable zone (DLZ) drivers:" 27927 test "no" = "$use_dlz_bdb" || \ 27928 echo " Berkeley DB (--with-dlz-bdb)" 27929 test "no" = "$use_dlz_ldap" || \ 27930 echo " LDAP (--with-dlz-ldap)" 27931 test "no" = "$use_dlz_mysql" || \ 27932 echo " MySQL (--with-dlz-mysql)" 27933 test "no" = "$use_dlz_odbc" || \ 27934 echo " ODBC (--with-dlz-odbc)" 27935 test "no" = "$use_dlz_postgres" || \ 27936 echo " Postgres (--with-dlz-postgres)" 27937 test "no" = "$use_dlz_filesystem" || \ 27938 echo " Filesystem (--with-dlz-filesystem)" 27939 test "no" = "$use_dlz_stub" || \ 27940 echo " Stub (--with-dlz-stub)" 27941 test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo " None" 27942 27943 echo "-------------------------------------------------------------------------------" 27944 27945 echo "Features disabled or unavailable on this platform:" 27946 $use_threads || echo " Multiprocessing support (--enable-threads)" 27947 test "no" = "$enable_ipv6" -o "no" = "$found_ipv6" && \ 27948 echo " IPv6 support (--enable-ipv6)" 27949 test "large" = "$use_tuning" || echo " Large-system tuning (--with-tuning)" 27950 27951 test "no" = "$use_dnstap" && \ 27952 echo " Allow 'dnstap' packet logging (--enable-dnstap)" 27953 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--with-geoip2)" 27954 test "no" = "$use_gssapi" && echo " GSS-API (--with-gssapi)" 27955 27956 test "yes" = "$enable_fixed" || \ 27957 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 27958 27959 if test "X$CRYPTO" = "X" -o "yes" = "$want_native_pkcs11" 27960 then 27961 echo " OpenSSL cryptography/DNSSEC (--with-openssl)" 27962 elif test "no" = "$use_pkcs11"; then 27963 echo " PKCS#11/Cryptoki support (--with-pkcs11)" 27964 fi 27965 test "yes" = "$want_native_pkcs11" || 27966 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)" 27967 test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_GOST" -o "yes" = "$PKCS11_GOST" || \ 27968 echo " GOST algorithm support (--with-gost)" 27969 test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_ECDSA" -o "yes" = "$PKCS11_ECDSA" || \ 27970 echo " ECDSA algorithm support (--with-ecdsa)" 27971 test "X$CRYPTO" = "X" -o "yes" = "$OPENSSL_ED25519" -o "yes" = "$PKCS11_ED25519" || \ 27972 echo " EDDSA algorithm support (--with-eddsa)" 27973 27974 test "yes" = "$enable_seccomp" || \ 27975 echo " Use libseccomp system call filtering (--enable-seccomp)" 27976 test "yes" = "$want_backtrace" || \ 27977 echo " Print backtrace on crash (--enable-backtrace)" 27978 test "yes" = "$want_querytrace" || \ 27979 echo " Very verbose query trace logging (--enable-querytrace)" 27980 27981 test "yes" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)" 27982 test "no" = "$with_cmocka" && echo " CMocka Unit Testng Framework (--with-cmocka)" 27983 27984 test "X$PYTHON" = "X" && echo " Python tools (--with-python)" 27985 test "X$XMLSTATS" = "X" && echo " XML statistics (--with-libxml2)" 27986 test "X$JSONSTATS" = "X" && echo " JSON statistics (--with-libjson)" 27987 test "X$ZLIB" = "X" && echo " HTTP zlib compression (--with-zlib)" 27988 test "X$NZD_TOOLS" = "X" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)" 27989 test "no" = "$use_libidn2" && echo " IDN support (--with-libidn2)" 27990 27991 echo "-------------------------------------------------------------------------------" 27992 echo "Configured paths:" 27993 echo " prefix: $prefix" 27994 echo " sysconfdir: $sysconfdir" 27995 echo " localstatedir: $localstatedir" 27996 echo "-------------------------------------------------------------------------------" 27997 echo "Compiler: $CC" 27998 if test "yes" = "$GCC"; then 27999 $CC --version 2>&1 | sed 's/^/ /' 28000 else 28001 case "$host_os" in 28002 solaris*) 28003 $CC -V 2>&1 | sed 's/^/ /' 28004 ;; 28005 *) 28006 $CC --version 2>&1 | sed 's/^/ /' 28007 esac 28008 fi 28009 if test "X$ac_unrecognized_opts" != "X"; then 28010 echo "Unrecognized options:" 28011 echo " $ac_unrecognized_opts" 28012 fi 28013 28014 if test "yes" != "$enable_full_report"; then 28015 echo "-------------------------------------------------------------------------------" 28016 echo "For more detail, use --enable-full-report." 28017 fi 28018 echo "===============================================================================" 28019} 28020 28021if test "yes" != "$silent"; then 28022 report 28023fi 28024 28025if test "X$CRYPTO" = "X"; then 28026cat << \EOF 28027BIND 9 is being built without cryptography support. This means it will 28028not have DNSSEC support. Use --with-openssl, or --with-pkcs11 and 28029--enable-native-pkcs11 to enable cryptography. 28030EOF 28031fi 28032 28033# Tell Emacs to edit this file in shell mode. 28034# Local Variables: 28035# mode: sh 28036# End: 28037