1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.14.0rc1. 4# 5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: unbound-bugs@nlnetlabs.nl or 279$0: https://github.com/NLnetLabs/unbound/issues about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='unbound' 593PACKAGE_TARNAME='unbound' 594PACKAGE_VERSION='1.14.0rc1' 595PACKAGE_STRING='unbound 1.14.0rc1' 596PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='LTLIBOBJS 636date 637version 638INSTALLTARGET 639ALLTARGET 640SOURCEFILE 641SOURCEDETERMINE 642IPSET_OBJ 643IPSET_SRC 644IPSECMOD_HEADER 645IPSECMOD_OBJ 646CACHEDB_OBJ 647CACHEDB_SRC 648DNSCRYPT_OBJ 649DNSCRYPT_SRC 650ENABLE_DNSCRYPT 651ENABLE_DNSCRYPT_XCHACHA20 652DNSTAP_OBJ 653DNSTAP_SRC 654DNSTAP_SOCKET_TESTBIN 655DNSTAP_SOCKET_PATH 656opt_dnstap_socket_path 657ENABLE_DNSTAP 658PROTOC_C 659UBSYMS 660EXTRALINK 661COMMON_OBJ_ALL_SYMBOLS 662LIBOBJ_WITHOUT_CTIME 663LIBOBJ_WITHOUT_CTIMEARC4 664WIN_CHECKCONF_OBJ_LINK 665WIN_CONTROL_OBJ_LINK 666WIN_UBANCHOR_OBJ_LINK 667WIN_HOST_OBJ_LINK 668WIN_DAEMON_OBJ_LINK 669WIN_DAEMON_OBJ 670WIN_DAEMON_SRC 671WINAPPS 672WINDRES 673CHECKLOCK_OBJ 674staticexe 675PC_LIBEVENT_DEPENDENCY 676UNBOUND_EVENT_UNINSTALL 677UNBOUND_EVENT_INSTALL 678SUBNET_HEADER 679SUBNET_OBJ 680PC_LIBBSD_DEPENDENCY 681SSLLIB 682HAVE_SSL 683PC_CRYPTO_DEPENDENCY 684CONFIG_DATE 685GCC_DOCKER_LINTFLAGS 686NETBSD_LINTFLAGS 687PYUNBOUND_UNINSTALL 688PYUNBOUND_INSTALL 689PYUNBOUND_TARGET 690PYUNBOUND_OBJ 691WITH_PYUNBOUND 692PYTHONMOD_UNINSTALL 693PYTHONMOD_INSTALL 694PYTHONMOD_HEADER 695PYTHONMOD_OBJ 696WITH_PYTHONMODULE 697swig 698SWIG_LIB 699SWIG 700PC_PY_DEPENDENCY 701PYTHON_LIBS 702PY_MAJOR_VERSION 703PYTHON_SITE_PKG 704PYTHON_LDFLAGS 705PYTHON_CPPFLAGS 706PYTHON 707PYTHON_VERSION 708DYNLIBMOD_EXTRALIBS 709DYNLIBMOD_HEADER 710DYNLIBMOD_OBJ 711WITH_DYNLIBMODULE 712PTHREAD_CFLAGS_ONLY 713PTHREAD_CFLAGS 714PTHREAD_LIBS 715PTHREAD_CC 716ax_pthread_config 717ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 718SLDNS_ALLOCCHECK_EXTRA_OBJ 719USE_SYSTEMD_FALSE 720USE_SYSTEMD_TRUE 721SYSTEMD_DAEMON_LIBS 722SYSTEMD_DAEMON_CFLAGS 723SYSTEMD_LIBS 724SYSTEMD_CFLAGS 725RUNTIME_PATH 726LIBOBJS 727PKG_CONFIG_LIBDIR 728PKG_CONFIG_PATH 729PKG_CONFIG 730LT_SYS_LIBRARY_PATH 731OTOOL64 732OTOOL 733LIPO 734NMEDIT 735DSYMUTIL 736MANIFEST_TOOL 737AWK 738RANLIB 739ac_ct_AR 740DLLTOOL 741OBJDUMP 742LN_S 743NM 744ac_ct_DUMPBIN 745DUMPBIN 746LD 747FGREP 748SED 749LIBTOOL 750AR 751host_os 752host_vendor 753host_cpu 754host 755build_os 756build_vendor 757build_cpu 758build 759libtool 760STRIP 761doxygen 762YFLAGS 763YACC 764LEXLIB 765LEX_OUTPUT_ROOT 766LEX 767debug_enabled 768DEPFLAG 769UNBOUND_USERNAME 770UNBOUND_ROOTCERT_FILE 771UNBOUND_ROOTKEY_FILE 772UNBOUND_PIDFILE 773UNBOUND_SHARE_DIR 774UNBOUND_CHROOT_DIR 775UNBOUND_RUN_DIR 776ub_conf_dir 777ub_conf_file 778UNBOUND_LOCALSTATE_DIR 779UNBOUND_SYSCONF_DIR 780UNBOUND_SBIN_DIR 781EGREP 782GREP 783CPP 784OBJEXT 785EXEEXT 786ac_ct_CC 787CPPFLAGS 788LDFLAGS 789CFLAGS 790CC 791LIBUNBOUND_AGE 792LIBUNBOUND_REVISION 793LIBUNBOUND_CURRENT 794UNBOUND_VERSION_MICRO 795UNBOUND_VERSION_MINOR 796UNBOUND_VERSION_MAJOR 797target_alias 798host_alias 799build_alias 800LIBS 801ECHO_T 802ECHO_N 803ECHO_C 804DEFS 805mandir 806localedir 807libdir 808psdir 809pdfdir 810dvidir 811htmldir 812infodir 813docdir 814oldincludedir 815includedir 816localstatedir 817sharedstatedir 818sysconfdir 819datadir 820datarootdir 821libexecdir 822sbindir 823bindir 824program_transform_name 825prefix 826exec_prefix 827PACKAGE_URL 828PACKAGE_BUGREPORT 829PACKAGE_STRING 830PACKAGE_VERSION 831PACKAGE_TARNAME 832PACKAGE_NAME 833PATH_SEPARATOR 834SHELL' 835ac_subst_files='' 836ac_user_opts=' 837enable_option_checking 838with_conf_file 839with_run_dir 840with_chroot_dir 841with_share_dir 842with_pidfile 843with_rootkey_file 844with_rootcert_file 845with_username 846enable_checking 847enable_debug 848enable_flto 849enable_pie 850enable_relro_now 851enable_shared 852enable_static 853with_pic 854enable_fast_install 855with_aix_soname 856with_gnu_ld 857with_sysroot 858enable_libtool_lock 859enable_rpath 860enable_largefile 861enable_systemd 862enable_alloc_checks 863enable_alloc_lite 864enable_alloc_nonregional 865with_pthreads 866with_solaris_threads 867with_syslog_facility 868with_dynlibmodule 869with_pyunbound 870with_pythonmodule 871enable_swig_version_check 872with_nss 873with_nettle 874with_ssl 875with_libbsd 876enable_sha1 877enable_sha2 878enable_subnet 879enable_gost 880enable_ecdsa 881enable_dsa 882with_deprecate_rsa_1024 883enable_ed25519 884enable_ed448 885enable_event_api 886enable_tfo_client 887enable_tfo_server 888with_libevent 889with_libexpat 890with_libhiredis 891with_libnghttp2 892enable_static_exe 893enable_fully_static 894enable_lock_checks 895enable_allsymbols 896enable_dnstap 897with_dnstap_socket_path 898with_protobuf_c 899enable_dnscrypt 900with_libsodium 901enable_cachedb 902enable_ipsecmod 903enable_ipset 904with_libmnl 905enable_explicit_port_randomisation 906enable_linux_ip_local_port_range 907with_libunbound_only 908' 909 ac_precious_vars='build_alias 910host_alias 911target_alias 912CC 913CFLAGS 914LDFLAGS 915LIBS 916CPPFLAGS 917CPP 918YACC 919YFLAGS 920LT_SYS_LIBRARY_PATH 921PKG_CONFIG 922PKG_CONFIG_PATH 923PKG_CONFIG_LIBDIR 924SYSTEMD_CFLAGS 925SYSTEMD_LIBS 926SYSTEMD_DAEMON_CFLAGS 927SYSTEMD_DAEMON_LIBS 928PYTHON_VERSION' 929 930 931# Initialize some variables set by options. 932ac_init_help= 933ac_init_version=false 934ac_unrecognized_opts= 935ac_unrecognized_sep= 936# The variables have the same names as the options, with 937# dashes changed to underlines. 938cache_file=/dev/null 939exec_prefix=NONE 940no_create= 941no_recursion= 942prefix=NONE 943program_prefix=NONE 944program_suffix=NONE 945program_transform_name=s,x,x, 946silent= 947site= 948srcdir= 949verbose= 950x_includes=NONE 951x_libraries=NONE 952 953# Installation directory options. 954# These are left unexpanded so users can "make install exec_prefix=/foo" 955# and all the variables that are supposed to be based on exec_prefix 956# by default will actually change. 957# Use braces instead of parens because sh, perl, etc. also accept them. 958# (The list follows the same order as the GNU Coding Standards.) 959bindir='${exec_prefix}/bin' 960sbindir='${exec_prefix}/sbin' 961libexecdir='${exec_prefix}/libexec' 962datarootdir='${prefix}/share' 963datadir='${datarootdir}' 964sysconfdir='${prefix}/etc' 965sharedstatedir='${prefix}/com' 966localstatedir='${prefix}/var' 967includedir='${prefix}/include' 968oldincludedir='/usr/include' 969docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 970infodir='${datarootdir}/info' 971htmldir='${docdir}' 972dvidir='${docdir}' 973pdfdir='${docdir}' 974psdir='${docdir}' 975libdir='${exec_prefix}/lib' 976localedir='${datarootdir}/locale' 977mandir='${datarootdir}/man' 978 979ac_prev= 980ac_dashdash= 981for ac_option 982do 983 # If the previous option needs an argument, assign it. 984 if test -n "$ac_prev"; then 985 eval $ac_prev=\$ac_option 986 ac_prev= 987 continue 988 fi 989 990 case $ac_option in 991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 992 *=) ac_optarg= ;; 993 *) ac_optarg=yes ;; 994 esac 995 996 # Accept the important Cygnus configure options, so we can diagnose typos. 997 998 case $ac_dashdash$ac_option in 999 --) 1000 ac_dashdash=yes ;; 1001 1002 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1003 ac_prev=bindir ;; 1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1005 bindir=$ac_optarg ;; 1006 1007 -build | --build | --buil | --bui | --bu) 1008 ac_prev=build_alias ;; 1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1010 build_alias=$ac_optarg ;; 1011 1012 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1014 ac_prev=cache_file ;; 1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1017 cache_file=$ac_optarg ;; 1018 1019 --config-cache | -C) 1020 cache_file=config.cache ;; 1021 1022 -datadir | --datadir | --datadi | --datad) 1023 ac_prev=datadir ;; 1024 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1025 datadir=$ac_optarg ;; 1026 1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1028 | --dataroo | --dataro | --datar) 1029 ac_prev=datarootdir ;; 1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1032 datarootdir=$ac_optarg ;; 1033 1034 -disable-* | --disable-*) 1035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1038 as_fn_error $? "invalid feature name: $ac_useropt" 1039 ac_useropt_orig=$ac_useropt 1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1041 case $ac_user_opts in 1042 *" 1043"enable_$ac_useropt" 1044"*) ;; 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1046 ac_unrecognized_sep=', ';; 1047 esac 1048 eval enable_$ac_useropt=no ;; 1049 1050 -docdir | --docdir | --docdi | --doc | --do) 1051 ac_prev=docdir ;; 1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1053 docdir=$ac_optarg ;; 1054 1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1056 ac_prev=dvidir ;; 1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1058 dvidir=$ac_optarg ;; 1059 1060 -enable-* | --enable-*) 1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1064 as_fn_error $? "invalid feature name: $ac_useropt" 1065 ac_useropt_orig=$ac_useropt 1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1067 case $ac_user_opts in 1068 *" 1069"enable_$ac_useropt" 1070"*) ;; 1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1072 ac_unrecognized_sep=', ';; 1073 esac 1074 eval enable_$ac_useropt=\$ac_optarg ;; 1075 1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1078 | --exec | --exe | --ex) 1079 ac_prev=exec_prefix ;; 1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1082 | --exec=* | --exe=* | --ex=*) 1083 exec_prefix=$ac_optarg ;; 1084 1085 -gas | --gas | --ga | --g) 1086 # Obsolete; use --with-gas. 1087 with_gas=yes ;; 1088 1089 -help | --help | --hel | --he | -h) 1090 ac_init_help=long ;; 1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1092 ac_init_help=recursive ;; 1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1094 ac_init_help=short ;; 1095 1096 -host | --host | --hos | --ho) 1097 ac_prev=host_alias ;; 1098 -host=* | --host=* | --hos=* | --ho=*) 1099 host_alias=$ac_optarg ;; 1100 1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1102 ac_prev=htmldir ;; 1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1104 | --ht=*) 1105 htmldir=$ac_optarg ;; 1106 1107 -includedir | --includedir | --includedi | --included | --include \ 1108 | --includ | --inclu | --incl | --inc) 1109 ac_prev=includedir ;; 1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1111 | --includ=* | --inclu=* | --incl=* | --inc=*) 1112 includedir=$ac_optarg ;; 1113 1114 -infodir | --infodir | --infodi | --infod | --info | --inf) 1115 ac_prev=infodir ;; 1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1117 infodir=$ac_optarg ;; 1118 1119 -libdir | --libdir | --libdi | --libd) 1120 ac_prev=libdir ;; 1121 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1122 libdir=$ac_optarg ;; 1123 1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1125 | --libexe | --libex | --libe) 1126 ac_prev=libexecdir ;; 1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1128 | --libexe=* | --libex=* | --libe=*) 1129 libexecdir=$ac_optarg ;; 1130 1131 -localedir | --localedir | --localedi | --localed | --locale) 1132 ac_prev=localedir ;; 1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1134 localedir=$ac_optarg ;; 1135 1136 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1137 | --localstate | --localstat | --localsta | --localst | --locals) 1138 ac_prev=localstatedir ;; 1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1141 localstatedir=$ac_optarg ;; 1142 1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1144 ac_prev=mandir ;; 1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1146 mandir=$ac_optarg ;; 1147 1148 -nfp | --nfp | --nf) 1149 # Obsolete; use --without-fp. 1150 with_fp=no ;; 1151 1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1153 | --no-cr | --no-c | -n) 1154 no_create=yes ;; 1155 1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1158 no_recursion=yes ;; 1159 1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1162 | --oldin | --oldi | --old | --ol | --o) 1163 ac_prev=oldincludedir ;; 1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1167 oldincludedir=$ac_optarg ;; 1168 1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1170 ac_prev=prefix ;; 1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1172 prefix=$ac_optarg ;; 1173 1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1175 | --program-pre | --program-pr | --program-p) 1176 ac_prev=program_prefix ;; 1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1179 program_prefix=$ac_optarg ;; 1180 1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1182 | --program-suf | --program-su | --program-s) 1183 ac_prev=program_suffix ;; 1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1186 program_suffix=$ac_optarg ;; 1187 1188 -program-transform-name | --program-transform-name \ 1189 | --program-transform-nam | --program-transform-na \ 1190 | --program-transform-n | --program-transform- \ 1191 | --program-transform | --program-transfor \ 1192 | --program-transfo | --program-transf \ 1193 | --program-trans | --program-tran \ 1194 | --progr-tra | --program-tr | --program-t) 1195 ac_prev=program_transform_name ;; 1196 -program-transform-name=* | --program-transform-name=* \ 1197 | --program-transform-nam=* | --program-transform-na=* \ 1198 | --program-transform-n=* | --program-transform-=* \ 1199 | --program-transform=* | --program-transfor=* \ 1200 | --program-transfo=* | --program-transf=* \ 1201 | --program-trans=* | --program-tran=* \ 1202 | --progr-tra=* | --program-tr=* | --program-t=*) 1203 program_transform_name=$ac_optarg ;; 1204 1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1206 ac_prev=pdfdir ;; 1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1208 pdfdir=$ac_optarg ;; 1209 1210 -psdir | --psdir | --psdi | --psd | --ps) 1211 ac_prev=psdir ;; 1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1213 psdir=$ac_optarg ;; 1214 1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1216 | -silent | --silent | --silen | --sile | --sil) 1217 silent=yes ;; 1218 1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1220 ac_prev=sbindir ;; 1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1222 | --sbi=* | --sb=*) 1223 sbindir=$ac_optarg ;; 1224 1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1227 | --sharedst | --shareds | --shared | --share | --shar \ 1228 | --sha | --sh) 1229 ac_prev=sharedstatedir ;; 1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1233 | --sha=* | --sh=*) 1234 sharedstatedir=$ac_optarg ;; 1235 1236 -site | --site | --sit) 1237 ac_prev=site ;; 1238 -site=* | --site=* | --sit=*) 1239 site=$ac_optarg ;; 1240 1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1242 ac_prev=srcdir ;; 1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1244 srcdir=$ac_optarg ;; 1245 1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1247 | --syscon | --sysco | --sysc | --sys | --sy) 1248 ac_prev=sysconfdir ;; 1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1251 sysconfdir=$ac_optarg ;; 1252 1253 -target | --target | --targe | --targ | --tar | --ta | --t) 1254 ac_prev=target_alias ;; 1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1256 target_alias=$ac_optarg ;; 1257 1258 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1259 verbose=yes ;; 1260 1261 -version | --version | --versio | --versi | --vers | -V) 1262 ac_init_version=: ;; 1263 1264 -with-* | --with-*) 1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1266 # Reject names that are not valid shell variable names. 1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1268 as_fn_error $? "invalid package name: $ac_useropt" 1269 ac_useropt_orig=$ac_useropt 1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1271 case $ac_user_opts in 1272 *" 1273"with_$ac_useropt" 1274"*) ;; 1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1276 ac_unrecognized_sep=', ';; 1277 esac 1278 eval with_$ac_useropt=\$ac_optarg ;; 1279 1280 -without-* | --without-*) 1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1282 # Reject names that are not valid shell variable names. 1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1284 as_fn_error $? "invalid package name: $ac_useropt" 1285 ac_useropt_orig=$ac_useropt 1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1287 case $ac_user_opts in 1288 *" 1289"with_$ac_useropt" 1290"*) ;; 1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1292 ac_unrecognized_sep=', ';; 1293 esac 1294 eval with_$ac_useropt=no ;; 1295 1296 --x) 1297 # Obsolete; use --with-x. 1298 with_x=yes ;; 1299 1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1301 | --x-incl | --x-inc | --x-in | --x-i) 1302 ac_prev=x_includes ;; 1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1305 x_includes=$ac_optarg ;; 1306 1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1309 ac_prev=x_libraries ;; 1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1312 x_libraries=$ac_optarg ;; 1313 1314 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1315Try \`$0 --help' for more information" 1316 ;; 1317 1318 *=*) 1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1320 # Reject names that are not valid shell variable names. 1321 case $ac_envvar in #( 1322 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1324 esac 1325 eval $ac_envvar=\$ac_optarg 1326 export $ac_envvar ;; 1327 1328 *) 1329 # FIXME: should be removed in autoconf 3.0. 1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1334 ;; 1335 1336 esac 1337done 1338 1339if test -n "$ac_prev"; then 1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1341 as_fn_error $? "missing argument to $ac_option" 1342fi 1343 1344if test -n "$ac_unrecognized_opts"; then 1345 case $enable_option_checking in 1346 no) ;; 1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1349 esac 1350fi 1351 1352# Check all directory arguments for consistency. 1353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1354 datadir sysconfdir sharedstatedir localstatedir includedir \ 1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1356 libdir localedir mandir 1357do 1358 eval ac_val=\$$ac_var 1359 # Remove trailing slashes. 1360 case $ac_val in 1361 */ ) 1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1363 eval $ac_var=\$ac_val;; 1364 esac 1365 # Be sure to have absolute directory names. 1366 case $ac_val in 1367 [\\/$]* | ?:[\\/]* ) continue;; 1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1369 esac 1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1371done 1372 1373# There might be people who depend on the old broken behavior: `$host' 1374# used to hold the argument of --host etc. 1375# FIXME: To remove some day. 1376build=$build_alias 1377host=$host_alias 1378target=$target_alias 1379 1380# FIXME: To remove some day. 1381if test "x$host_alias" != x; then 1382 if test "x$build_alias" = x; then 1383 cross_compiling=maybe 1384 elif test "x$build_alias" != "x$host_alias"; then 1385 cross_compiling=yes 1386 fi 1387fi 1388 1389ac_tool_prefix= 1390test -n "$host_alias" && ac_tool_prefix=$host_alias- 1391 1392test "$silent" = yes && exec 6>/dev/null 1393 1394 1395ac_pwd=`pwd` && test -n "$ac_pwd" && 1396ac_ls_di=`ls -di .` && 1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1398 as_fn_error $? "working directory cannot be determined" 1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1400 as_fn_error $? "pwd does not report name of working directory" 1401 1402 1403# Find the source files, if location was not specified. 1404if test -z "$srcdir"; then 1405 ac_srcdir_defaulted=yes 1406 # Try the directory containing this script, then the parent directory. 1407 ac_confdir=`$as_dirname -- "$as_myself" || 1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1409 X"$as_myself" : 'X\(//\)[^/]' \| \ 1410 X"$as_myself" : 'X\(//\)$' \| \ 1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1412$as_echo X"$as_myself" | 1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\/\)[^/].*/{ 1418 s//\1/ 1419 q 1420 } 1421 /^X\(\/\/\)$/{ 1422 s//\1/ 1423 q 1424 } 1425 /^X\(\/\).*/{ 1426 s//\1/ 1427 q 1428 } 1429 s/.*/./; q'` 1430 srcdir=$ac_confdir 1431 if test ! -r "$srcdir/$ac_unique_file"; then 1432 srcdir=.. 1433 fi 1434else 1435 ac_srcdir_defaulted=no 1436fi 1437if test ! -r "$srcdir/$ac_unique_file"; then 1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1440fi 1441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1442ac_abs_confdir=`( 1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1444 pwd)` 1445# When building in place, set srcdir=. 1446if test "$ac_abs_confdir" = "$ac_pwd"; then 1447 srcdir=. 1448fi 1449# Remove unnecessary trailing slashes from srcdir. 1450# Double slashes in file names in object file debugging info 1451# mess up M-x gdb in Emacs. 1452case $srcdir in 1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1454esac 1455for ac_var in $ac_precious_vars; do 1456 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1457 eval ac_env_${ac_var}_value=\$${ac_var} 1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1459 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1460done 1461 1462# 1463# Report the --help message. 1464# 1465if test "$ac_init_help" = "long"; then 1466 # Omit some internal or obsolete options to make the list less imposing. 1467 # This message is too long to be a string in the A/UX 3.1 sh. 1468 cat <<_ACEOF 1469\`configure' configures unbound 1.14.0rc1 to adapt to many kinds of systems. 1470 1471Usage: $0 [OPTION]... [VAR=VALUE]... 1472 1473To assign environment variables (e.g., CC, CFLAGS...), specify them as 1474VAR=VALUE. See below for descriptions of some of the useful variables. 1475 1476Defaults for the options are specified in brackets. 1477 1478Configuration: 1479 -h, --help display this help and exit 1480 --help=short display options specific to this package 1481 --help=recursive display the short help of all the included packages 1482 -V, --version display version information and exit 1483 -q, --quiet, --silent do not print \`checking ...' messages 1484 --cache-file=FILE cache test results in FILE [disabled] 1485 -C, --config-cache alias for \`--cache-file=config.cache' 1486 -n, --no-create do not create output files 1487 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1488 1489Installation directories: 1490 --prefix=PREFIX install architecture-independent files in PREFIX 1491 [$ac_default_prefix] 1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1493 [PREFIX] 1494 1495By default, \`make install' will install all the files in 1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1497an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1498for instance \`--prefix=\$HOME'. 1499 1500For better control, use the options below. 1501 1502Fine tuning of the installation directories: 1503 --bindir=DIR user executables [EPREFIX/bin] 1504 --sbindir=DIR system admin executables [EPREFIX/sbin] 1505 --libexecdir=DIR program executables [EPREFIX/libexec] 1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1509 --libdir=DIR object code libraries [EPREFIX/lib] 1510 --includedir=DIR C header files [PREFIX/include] 1511 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1514 --infodir=DIR info documentation [DATAROOTDIR/info] 1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1516 --mandir=DIR man documentation [DATAROOTDIR/man] 1517 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1518 --htmldir=DIR html documentation [DOCDIR] 1519 --dvidir=DIR dvi documentation [DOCDIR] 1520 --pdfdir=DIR pdf documentation [DOCDIR] 1521 --psdir=DIR ps documentation [DOCDIR] 1522_ACEOF 1523 1524 cat <<\_ACEOF 1525 1526System types: 1527 --build=BUILD configure for building on BUILD [guessed] 1528 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1529_ACEOF 1530fi 1531 1532if test -n "$ac_init_help"; then 1533 case $ac_init_help in 1534 short | recursive ) echo "Configuration of unbound 1.14.0rc1:";; 1535 esac 1536 cat <<\_ACEOF 1537 1538Optional Features: 1539 --disable-option-checking ignore unrecognized --enable/--with options 1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1542 --enable-checking Enable warnings, asserts, makefile-dependencies 1543 --enable-debug same as enable-checking 1544 --disable-flto Disable link-time optimization (gcc specific option) 1545 --enable-pie Enable Position-Independent Executable (eg. to fully 1546 benefit from ASLR, small performance penalty) 1547 --enable-relro-now Enable full relocation binding at load-time (RELRO 1548 NOW, to protect GOT and .dtor areas) 1549 --enable-shared[=PKGS] build shared libraries [default=yes] 1550 --enable-static[=PKGS] build static libraries [default=yes] 1551 --enable-fast-install[=PKGS] 1552 optimize for fast installation [default=yes] 1553 --disable-libtool-lock avoid locking (might break parallel builds) 1554 --disable-rpath disable hardcoded rpath (default=enabled) 1555 --disable-largefile omit support for large files 1556 --enable-systemd compile with systemd support 1557 --enable-alloc-checks enable to memory allocation statistics, for debug 1558 purposes 1559 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1560 purposes 1561 --enable-alloc-nonregional 1562 enable nonregional allocs, slow but exposes regional 1563 allocations to other memory purifiers, for debug 1564 purposes 1565 --disable-swig-version-check 1566 Disable swig version check to build python modules 1567 with older swig even though that is unreliable 1568 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1569 support 1570 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1571 --enable-subnet Enable client subnet 1572 --disable-gost Disable GOST support 1573 --disable-ecdsa Disable ECDSA support 1574 --disable-dsa Disable DSA support 1575 --disable-ed25519 Disable ED25519 support 1576 --disable-ed448 Disable ED448 support 1577 --enable-event-api Enable (experimental) pluggable event base 1578 libunbound API installed to unbound-event.h 1579 --enable-tfo-client Enable TCP Fast Open for client mode 1580 --enable-tfo-server Enable TCP Fast Open for server mode 1581 --enable-static-exe enable to compile executables statically against 1582 (event) uninstalled libs, for debug purposes 1583 --enable-fully-static enable to compile fully static 1584 --enable-lock-checks enable to check lock and unlock calls, for debug 1585 purposes 1586 --enable-allsymbols export all symbols from libunbound and link binaries 1587 to it, smaller install size but libunbound export 1588 table is polluted by internal symbols 1589 --enable-dnstap Enable dnstap support (requires protobuf-c) 1590 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1591 --enable-cachedb enable cachedb module that can use external cache 1592 storage 1593 --enable-ipsecmod Enable ipsecmod module that facilitates 1594 opportunistic IPsec 1595 --enable-ipset enable ipset module 1596 --disable-explicit-port-randomisation 1597 disable explicit source port randomisation and rely 1598 on the kernel to provide random source ports 1599 --enable-linux-ip-local-port-range 1600 Define this to enable use of 1601 /proc/sys/net/ipv4/ip_local_port_range as a default 1602 outgoing port range. This is only for the libunbound 1603 on Linux and does not affect unbound resolving 1604 daemon itself. This may severely limit the number of 1605 available outgoing ports and thus decrease 1606 randomness. Define this only when the target system 1607 restricts (e.g. some of SELinux enabled 1608 distributions) the use of non-ephemeral ports. 1609 1610Optional Packages: 1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1613 --with-conf-file=path Pathname to the Unbound configuration file 1614 --with-run-dir=path set default directory to chdir to (by default dir 1615 part of cfg file) 1616 --with-chroot-dir=path set default directory to chroot to (by default same 1617 as run-dir) 1618 --with-share-dir=path set default directory with shared data (by default 1619 same as share/unbound) 1620 --with-pidfile=filename set default pathname to unbound pidfile (default 1621 run-dir/unbound.pid) 1622 --with-rootkey-file=filename 1623 set default pathname to root key file (default 1624 run-dir/root.key). This file is read and written. 1625 --with-rootcert-file=filename 1626 set default pathname to root update certificate file 1627 (default run-dir/icannbundle.pem). This file need 1628 not exist if you are content with the builtin. 1629 --with-username=user set default user that unbound changes to (default 1630 user is unbound) 1631 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1632 both] 1633 --with-aix-soname=aix|svr4|both 1634 shared library versioning (aka "SONAME") variant to 1635 provide on AIX, [default=aix]. 1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1637 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1638 compiler's sysroot if not specified). 1639 --with-pthreads use pthreads library, or --without-pthreads to 1640 disable threading support. 1641 --with-solaris-threads use solaris native thread library. 1642 --with-syslog-facility=LOCAL0 - LOCAL7 1643 set SYSLOG_FACILITY, default DAEMON 1644 --with-dynlibmodule build dynamic library module, or 1645 --without-dynlibmodule to disable it. (default=no) 1646 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1647 (default=no) 1648 --with-pythonmodule build Python module, or --without-pythonmodule to 1649 disable script engine. (default=no) 1650 --with-nss=path use libnss instead of openssl, installed at path. 1651 --with-nettle=path use libnettle as crypto library, installed at path. 1652 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1653 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1654 /usr or specify like /usr/include/openssl11) 1655 --with-libbsd Use portable libbsd functions 1656 --with-deprecate-rsa-1024 1657 Deprecate RSA 1024 bit length, makes that an 1658 unsupported key, for use when OpenSSL FIPS refuses 1659 1024 bit verification 1660 --with-libevent=pathname 1661 use libevent (will check /usr/local /opt/local 1662 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1663 an explicit path). Slower, but allows use of large 1664 outgoing port ranges. 1665 --with-libexpat=path specify explicit path for libexpat. 1666 --with-libhiredis=path specify explicit path for libhiredis. 1667 --with-libnghttp2=path specify explicit path for libnghttp2. 1668 --with-dnstap-socket-path=pathname 1669 set default dnstap socket path 1670 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1671 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1672 --with-libmnl=path specify explicit path for libmnl. 1673 --with-libunbound-only do not build daemon and tool programs 1674 1675Some influential environment variables: 1676 CC C compiler command 1677 CFLAGS C compiler flags 1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1679 nonstandard directory <lib dir> 1680 LIBS libraries to pass to the linker, e.g. -l<library> 1681 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1682 you have headers in a nonstandard directory <include dir> 1683 CPP C preprocessor 1684 YACC The `Yet Another Compiler Compiler' implementation to use. 1685 Defaults to the first program found out of: `bison -y', `byacc', 1686 `yacc'. 1687 YFLAGS The list of arguments that will be passed by default to $YACC. 1688 This script will default YFLAGS to the empty string to avoid a 1689 default value of `-d' given by some make applications. 1690 LT_SYS_LIBRARY_PATH 1691 User-defined run-time library search path. 1692 PKG_CONFIG path to pkg-config utility 1693 PKG_CONFIG_PATH 1694 directories to add to pkg-config's search path 1695 PKG_CONFIG_LIBDIR 1696 path overriding pkg-config's built-in search path 1697 SYSTEMD_CFLAGS 1698 C compiler flags for SYSTEMD, overriding pkg-config 1699 SYSTEMD_LIBS 1700 linker flags for SYSTEMD, overriding pkg-config 1701 SYSTEMD_DAEMON_CFLAGS 1702 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1703 SYSTEMD_DAEMON_LIBS 1704 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1705 PYTHON_VERSION 1706 The installed Python version to use, for example '2.3'. This 1707 string will be appended to the Python interpreter canonical 1708 name. 1709 1710Use these variables to override the choices made by `configure' or to help 1711it to find libraries and programs with nonstandard names/locations. 1712 1713Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1714_ACEOF 1715ac_status=$? 1716fi 1717 1718if test "$ac_init_help" = "recursive"; then 1719 # If there are subdirs, report their specific --help. 1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1721 test -d "$ac_dir" || 1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1723 continue 1724 ac_builddir=. 1725 1726case "$ac_dir" in 1727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1728*) 1729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1730 # A ".." for each directory in $ac_dir_suffix. 1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1732 case $ac_top_builddir_sub in 1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1735 esac ;; 1736esac 1737ac_abs_top_builddir=$ac_pwd 1738ac_abs_builddir=$ac_pwd$ac_dir_suffix 1739# for backward compatibility: 1740ac_top_builddir=$ac_top_build_prefix 1741 1742case $srcdir in 1743 .) # We are building in place. 1744 ac_srcdir=. 1745 ac_top_srcdir=$ac_top_builddir_sub 1746 ac_abs_top_srcdir=$ac_pwd ;; 1747 [\\/]* | ?:[\\/]* ) # Absolute name. 1748 ac_srcdir=$srcdir$ac_dir_suffix; 1749 ac_top_srcdir=$srcdir 1750 ac_abs_top_srcdir=$srcdir ;; 1751 *) # Relative name. 1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1753 ac_top_srcdir=$ac_top_build_prefix$srcdir 1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1755esac 1756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1757 1758 cd "$ac_dir" || { ac_status=$?; continue; } 1759 # Check for guested configure. 1760 if test -f "$ac_srcdir/configure.gnu"; then 1761 echo && 1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1763 elif test -f "$ac_srcdir/configure"; then 1764 echo && 1765 $SHELL "$ac_srcdir/configure" --help=recursive 1766 else 1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1768 fi || ac_status=$? 1769 cd "$ac_pwd" || { ac_status=$?; break; } 1770 done 1771fi 1772 1773test -n "$ac_init_help" && exit $ac_status 1774if $ac_init_version; then 1775 cat <<\_ACEOF 1776unbound configure 1.14.0rc1 1777generated by GNU Autoconf 2.69 1778 1779Copyright (C) 2012 Free Software Foundation, Inc. 1780This configure script is free software; the Free Software Foundation 1781gives unlimited permission to copy, distribute and modify it. 1782_ACEOF 1783 exit 1784fi 1785 1786## ------------------------ ## 1787## Autoconf initialization. ## 1788## ------------------------ ## 1789 1790# ac_fn_c_try_compile LINENO 1791# -------------------------- 1792# Try to compile conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_c_try_compile () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 rm -f conftest.$ac_objext 1797 if { { ac_try="$ac_compile" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_compile") 2>conftest.err 1805 ac_status=$? 1806 if test -s conftest.err; then 1807 grep -v '^ *+' conftest.err >conftest.er1 1808 cat conftest.er1 >&5 1809 mv -f conftest.er1 conftest.err 1810 fi 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { 1813 test -z "$ac_c_werror_flag" || 1814 test ! -s conftest.err 1815 } && test -s conftest.$ac_objext; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: failed program was:" >&5 1819sed 's/^/| /' conftest.$ac_ext >&5 1820 1821 ac_retval=1 1822fi 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 as_fn_set_status $ac_retval 1825 1826} # ac_fn_c_try_compile 1827 1828# ac_fn_c_try_cpp LINENO 1829# ---------------------- 1830# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1831ac_fn_c_try_cpp () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 if { { ac_try="$ac_cpp conftest.$ac_ext" 1835case "(($ac_try" in 1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1837 *) ac_try_echo=$ac_try;; 1838esac 1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1840$as_echo "$ac_try_echo"; } >&5 1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1842 ac_status=$? 1843 if test -s conftest.err; then 1844 grep -v '^ *+' conftest.err >conftest.er1 1845 cat conftest.er1 >&5 1846 mv -f conftest.er1 conftest.err 1847 fi 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; } > conftest.i && { 1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1851 test ! -s conftest.err 1852 }; then : 1853 ac_retval=0 1854else 1855 $as_echo "$as_me: failed program was:" >&5 1856sed 's/^/| /' conftest.$ac_ext >&5 1857 1858 ac_retval=1 1859fi 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 as_fn_set_status $ac_retval 1862 1863} # ac_fn_c_try_cpp 1864 1865# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1866# ------------------------------------------------------- 1867# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1868# the include files in INCLUDES and setting the cache variable VAR 1869# accordingly. 1870ac_fn_c_check_header_mongrel () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 if eval \${$3+:} false; then : 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875$as_echo_n "checking for $2... " >&6; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878fi 1879eval ac_res=\$$3 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1881$as_echo "$ac_res" >&6; } 1882else 1883 # Is the header compilable? 1884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1885$as_echo_n "checking $2 usability... " >&6; } 1886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1887/* end confdefs.h. */ 1888$4 1889#include <$2> 1890_ACEOF 1891if ac_fn_c_try_compile "$LINENO"; then : 1892 ac_header_compiler=yes 1893else 1894 ac_header_compiler=no 1895fi 1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1898$as_echo "$ac_header_compiler" >&6; } 1899 1900# Is the header present? 1901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1902$as_echo_n "checking $2 presence... " >&6; } 1903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905#include <$2> 1906_ACEOF 1907if ac_fn_c_try_cpp "$LINENO"; then : 1908 ac_header_preproc=yes 1909else 1910 ac_header_preproc=no 1911fi 1912rm -f conftest.err conftest.i conftest.$ac_ext 1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1914$as_echo "$ac_header_preproc" >&6; } 1915 1916# So? What about this header? 1917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1918 yes:no: ) 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1920$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1923 ;; 1924 no:yes:* ) 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1926$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1928$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1930$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1932$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1935( $as_echo "## --------------------------------------------------------------------------------------- ## 1936## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ## 1937## --------------------------------------------------------------------------------------- ##" 1938 ) | sed "s/^/$as_me: WARNING: /" >&2 1939 ;; 1940esac 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1942$as_echo_n "checking for $2... " >&6; } 1943if eval \${$3+:} false; then : 1944 $as_echo_n "(cached) " >&6 1945else 1946 eval "$3=\$ac_header_compiler" 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951fi 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 1954} # ac_fn_c_check_header_mongrel 1955 1956# ac_fn_c_try_run LINENO 1957# ---------------------- 1958# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1959# that executables *can* be run. 1960ac_fn_c_try_run () 1961{ 1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1963 if { { ac_try="$ac_link" 1964case "(($ac_try" in 1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1966 *) ac_try_echo=$ac_try;; 1967esac 1968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1969$as_echo "$ac_try_echo"; } >&5 1970 (eval "$ac_link") 2>&5 1971 ac_status=$? 1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1973 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1974 { { case "(($ac_try" in 1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1976 *) ac_try_echo=$ac_try;; 1977esac 1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1979$as_echo "$ac_try_echo"; } >&5 1980 (eval "$ac_try") 2>&5 1981 ac_status=$? 1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1983 test $ac_status = 0; }; }; then : 1984 ac_retval=0 1985else 1986 $as_echo "$as_me: program exited with status $ac_status" >&5 1987 $as_echo "$as_me: failed program was:" >&5 1988sed 's/^/| /' conftest.$ac_ext >&5 1989 1990 ac_retval=$ac_status 1991fi 1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1994 as_fn_set_status $ac_retval 1995 1996} # ac_fn_c_try_run 1997 1998# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1999# ------------------------------------------------------- 2000# Tests whether HEADER exists and can be compiled using the include files in 2001# INCLUDES, setting the cache variable VAR accordingly. 2002ac_fn_c_check_header_compile () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2006$as_echo_n "checking for $2... " >&6; } 2007if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009else 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013#include <$2> 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 eval "$3=yes" 2017else 2018 eval "$3=no" 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021fi 2022eval ac_res=\$$3 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024$as_echo "$ac_res" >&6; } 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 2027} # ac_fn_c_check_header_compile 2028 2029# ac_fn_c_try_link LINENO 2030# ----------------------- 2031# Try to link conftest.$ac_ext, and return whether this succeeded. 2032ac_fn_c_try_link () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 rm -f conftest.$ac_objext conftest$ac_exeext 2036 if { { ac_try="$ac_link" 2037case "(($ac_try" in 2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2039 *) ac_try_echo=$ac_try;; 2040esac 2041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2042$as_echo "$ac_try_echo"; } >&5 2043 (eval "$ac_link") 2>conftest.err 2044 ac_status=$? 2045 if test -s conftest.err; then 2046 grep -v '^ *+' conftest.err >conftest.er1 2047 cat conftest.er1 >&5 2048 mv -f conftest.er1 conftest.err 2049 fi 2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2051 test $ac_status = 0; } && { 2052 test -z "$ac_c_werror_flag" || 2053 test ! -s conftest.err 2054 } && test -s conftest$ac_exeext && { 2055 test "$cross_compiling" = yes || 2056 test -x conftest$ac_exeext 2057 }; then : 2058 ac_retval=0 2059else 2060 $as_echo "$as_me: failed program was:" >&5 2061sed 's/^/| /' conftest.$ac_ext >&5 2062 2063 ac_retval=1 2064fi 2065 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2066 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2067 # interfere with the next link command; also delete a directory that is 2068 # left behind by Apple's compiler. We do this before executing the actions. 2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2071 as_fn_set_status $ac_retval 2072 2073} # ac_fn_c_try_link 2074 2075# ac_fn_c_check_func LINENO FUNC VAR 2076# ---------------------------------- 2077# Tests whether FUNC exists, setting the cache variable VAR accordingly 2078ac_fn_c_check_func () 2079{ 2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2082$as_echo_n "checking for $2... " >&6; } 2083if eval \${$3+:} false; then : 2084 $as_echo_n "(cached) " >&6 2085else 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2090#define $2 innocuous_$2 2091 2092/* System header to define __stub macros and hopefully few prototypes, 2093 which can conflict with char $2 (); below. 2094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2095 <limits.h> exists even on freestanding compilers. */ 2096 2097#ifdef __STDC__ 2098# include <limits.h> 2099#else 2100# include <assert.h> 2101#endif 2102 2103#undef $2 2104 2105/* Override any GCC internal prototype to avoid an error. 2106 Use char because int might match the return type of a GCC 2107 builtin and then its argument prototype would still apply. */ 2108#ifdef __cplusplus 2109extern "C" 2110#endif 2111char $2 (); 2112/* The GNU C library defines this for functions which it implements 2113 to always fail with ENOSYS. Some functions are actually named 2114 something starting with __ and the normal name is an alias. */ 2115#if defined __stub_$2 || defined __stub___$2 2116choke me 2117#endif 2118 2119int 2120main () 2121{ 2122return $2 (); 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127if ac_fn_c_try_link "$LINENO"; then : 2128 eval "$3=yes" 2129else 2130 eval "$3=no" 2131fi 2132rm -f core conftest.err conftest.$ac_objext \ 2133 conftest$ac_exeext conftest.$ac_ext 2134fi 2135eval ac_res=\$$3 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2137$as_echo "$ac_res" >&6; } 2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2139 2140} # ac_fn_c_check_func 2141 2142# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2143# ------------------------------------------- 2144# Tests whether TYPE exists after having included INCLUDES, setting cache 2145# variable VAR accordingly. 2146ac_fn_c_check_type () 2147{ 2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2150$as_echo_n "checking for $2... " >&6; } 2151if eval \${$3+:} false; then : 2152 $as_echo_n "(cached) " >&6 2153else 2154 eval "$3=no" 2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2156/* end confdefs.h. */ 2157$4 2158int 2159main () 2160{ 2161if (sizeof ($2)) 2162 return 0; 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_compile "$LINENO"; then : 2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2169/* end confdefs.h. */ 2170$4 2171int 2172main () 2173{ 2174if (sizeof (($2))) 2175 return 0; 2176 ; 2177 return 0; 2178} 2179_ACEOF 2180if ac_fn_c_try_compile "$LINENO"; then : 2181 2182else 2183 eval "$3=yes" 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186fi 2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2188fi 2189eval ac_res=\$$3 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2191$as_echo "$ac_res" >&6; } 2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2193 2194} # ac_fn_c_check_type 2195 2196# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2197# -------------------------------------------- 2198# Tries to find the compile-time value of EXPR in a program that includes 2199# INCLUDES, setting VAR accordingly. Returns whether the value could be 2200# computed 2201ac_fn_c_compute_int () 2202{ 2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2204 if test "$cross_compiling" = yes; then 2205 # Depending upon the size, compute the lo and hi bounds. 2206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2207/* end confdefs.h. */ 2208$4 2209int 2210main () 2211{ 2212static int test_array [1 - 2 * !(($2) >= 0)]; 2213test_array [0] = 0; 2214return test_array [0]; 2215 2216 ; 2217 return 0; 2218} 2219_ACEOF 2220if ac_fn_c_try_compile "$LINENO"; then : 2221 ac_lo=0 ac_mid=0 2222 while :; do 2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2224/* end confdefs.h. */ 2225$4 2226int 2227main () 2228{ 2229static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2230test_array [0] = 0; 2231return test_array [0]; 2232 2233 ; 2234 return 0; 2235} 2236_ACEOF 2237if ac_fn_c_try_compile "$LINENO"; then : 2238 ac_hi=$ac_mid; break 2239else 2240 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2241 if test $ac_lo -le $ac_mid; then 2242 ac_lo= ac_hi= 2243 break 2244 fi 2245 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2246fi 2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2248 done 2249else 2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2251/* end confdefs.h. */ 2252$4 2253int 2254main () 2255{ 2256static int test_array [1 - 2 * !(($2) < 0)]; 2257test_array [0] = 0; 2258return test_array [0]; 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_compile "$LINENO"; then : 2265 ac_hi=-1 ac_mid=-1 2266 while :; do 2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2268/* end confdefs.h. */ 2269$4 2270int 2271main () 2272{ 2273static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2274test_array [0] = 0; 2275return test_array [0]; 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281if ac_fn_c_try_compile "$LINENO"; then : 2282 ac_lo=$ac_mid; break 2283else 2284 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2285 if test $ac_mid -le $ac_hi; then 2286 ac_lo= ac_hi= 2287 break 2288 fi 2289 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2290fi 2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2292 done 2293else 2294 ac_lo= ac_hi= 2295fi 2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297fi 2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2299# Binary search between lo and hi bounds. 2300while test "x$ac_lo" != "x$ac_hi"; do 2301 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2303/* end confdefs.h. */ 2304$4 2305int 2306main () 2307{ 2308static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2309test_array [0] = 0; 2310return test_array [0]; 2311 2312 ; 2313 return 0; 2314} 2315_ACEOF 2316if ac_fn_c_try_compile "$LINENO"; then : 2317 ac_hi=$ac_mid 2318else 2319 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2320fi 2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2322done 2323case $ac_lo in #(( 2324?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2325'') ac_retval=1 ;; 2326esac 2327 else 2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2329/* end confdefs.h. */ 2330$4 2331static long int longval () { return $2; } 2332static unsigned long int ulongval () { return $2; } 2333#include <stdio.h> 2334#include <stdlib.h> 2335int 2336main () 2337{ 2338 2339 FILE *f = fopen ("conftest.val", "w"); 2340 if (! f) 2341 return 1; 2342 if (($2) < 0) 2343 { 2344 long int i = longval (); 2345 if (i != ($2)) 2346 return 1; 2347 fprintf (f, "%ld", i); 2348 } 2349 else 2350 { 2351 unsigned long int i = ulongval (); 2352 if (i != ($2)) 2353 return 1; 2354 fprintf (f, "%lu", i); 2355 } 2356 /* Do not output a trailing newline, as this causes \r\n confusion 2357 on some platforms. */ 2358 return ferror (f) || fclose (f) != 0; 2359 2360 ; 2361 return 0; 2362} 2363_ACEOF 2364if ac_fn_c_try_run "$LINENO"; then : 2365 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2366else 2367 ac_retval=1 2368fi 2369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2370 conftest.$ac_objext conftest.beam conftest.$ac_ext 2371rm -f conftest.val 2372 2373 fi 2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2375 as_fn_set_status $ac_retval 2376 2377} # ac_fn_c_compute_int 2378 2379# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2380# --------------------------------------------- 2381# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2382# accordingly. 2383ac_fn_c_check_decl () 2384{ 2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2386 as_decl_name=`echo $2|sed 's/ *(.*//'` 2387 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2389$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2390if eval \${$3+:} false; then : 2391 $as_echo_n "(cached) " >&6 2392else 2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2394/* end confdefs.h. */ 2395$4 2396int 2397main () 2398{ 2399#ifndef $as_decl_name 2400#ifdef __cplusplus 2401 (void) $as_decl_use; 2402#else 2403 (void) $as_decl_name; 2404#endif 2405#endif 2406 2407 ; 2408 return 0; 2409} 2410_ACEOF 2411if ac_fn_c_try_compile "$LINENO"; then : 2412 eval "$3=yes" 2413else 2414 eval "$3=no" 2415fi 2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2417fi 2418eval ac_res=\$$3 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2420$as_echo "$ac_res" >&6; } 2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2422 2423} # ac_fn_c_check_decl 2424 2425# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2426# ---------------------------------------------------- 2427# Tries to find if the field MEMBER exists in type AGGR, after including 2428# INCLUDES, setting cache variable VAR accordingly. 2429ac_fn_c_check_member () 2430{ 2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2433$as_echo_n "checking for $2.$3... " >&6; } 2434if eval \${$4+:} false; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438/* end confdefs.h. */ 2439$5 2440int 2441main () 2442{ 2443static $2 ac_aggr; 2444if (ac_aggr.$3) 2445return 0; 2446 ; 2447 return 0; 2448} 2449_ACEOF 2450if ac_fn_c_try_compile "$LINENO"; then : 2451 eval "$4=yes" 2452else 2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2454/* end confdefs.h. */ 2455$5 2456int 2457main () 2458{ 2459static $2 ac_aggr; 2460if (sizeof ac_aggr.$3) 2461return 0; 2462 ; 2463 return 0; 2464} 2465_ACEOF 2466if ac_fn_c_try_compile "$LINENO"; then : 2467 eval "$4=yes" 2468else 2469 eval "$4=no" 2470fi 2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2472fi 2473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2474fi 2475eval ac_res=\$$4 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2477$as_echo "$ac_res" >&6; } 2478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2479 2480} # ac_fn_c_check_member 2481cat >config.log <<_ACEOF 2482This file contains any messages produced by compilers while 2483running configure, to aid debugging if configure makes a mistake. 2484 2485It was created by unbound $as_me 1.14.0rc1, which was 2486generated by GNU Autoconf 2.69. Invocation command line was 2487 2488 $ $0 $@ 2489 2490_ACEOF 2491exec 5>>config.log 2492{ 2493cat <<_ASUNAME 2494## --------- ## 2495## Platform. ## 2496## --------- ## 2497 2498hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2499uname -m = `(uname -m) 2>/dev/null || echo unknown` 2500uname -r = `(uname -r) 2>/dev/null || echo unknown` 2501uname -s = `(uname -s) 2>/dev/null || echo unknown` 2502uname -v = `(uname -v) 2>/dev/null || echo unknown` 2503 2504/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2505/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2506 2507/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2509/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2510/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2511/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2512/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2513/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2514 2515_ASUNAME 2516 2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2518for as_dir in $PATH 2519do 2520 IFS=$as_save_IFS 2521 test -z "$as_dir" && as_dir=. 2522 $as_echo "PATH: $as_dir" 2523 done 2524IFS=$as_save_IFS 2525 2526} >&5 2527 2528cat >&5 <<_ACEOF 2529 2530 2531## ----------- ## 2532## Core tests. ## 2533## ----------- ## 2534 2535_ACEOF 2536 2537 2538# Keep a trace of the command line. 2539# Strip out --no-create and --no-recursion so they do not pile up. 2540# Strip out --silent because we don't want to record it for future runs. 2541# Also quote any args containing shell meta-characters. 2542# Make two passes to allow for proper duplicate-argument suppression. 2543ac_configure_args= 2544ac_configure_args0= 2545ac_configure_args1= 2546ac_must_keep_next=false 2547for ac_pass in 1 2 2548do 2549 for ac_arg 2550 do 2551 case $ac_arg in 2552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2554 | -silent | --silent | --silen | --sile | --sil) 2555 continue ;; 2556 *\'*) 2557 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2558 esac 2559 case $ac_pass in 2560 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2561 2) 2562 as_fn_append ac_configure_args1 " '$ac_arg'" 2563 if test $ac_must_keep_next = true; then 2564 ac_must_keep_next=false # Got value, back to normal. 2565 else 2566 case $ac_arg in 2567 *=* | --config-cache | -C | -disable-* | --disable-* \ 2568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2570 | -with-* | --with-* | -without-* | --without-* | --x) 2571 case "$ac_configure_args0 " in 2572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2573 esac 2574 ;; 2575 -* ) ac_must_keep_next=true ;; 2576 esac 2577 fi 2578 as_fn_append ac_configure_args " '$ac_arg'" 2579 ;; 2580 esac 2581 done 2582done 2583{ ac_configure_args0=; unset ac_configure_args0;} 2584{ ac_configure_args1=; unset ac_configure_args1;} 2585 2586# When interrupted or exit'd, cleanup temporary files, and complete 2587# config.log. We remove comments because anyway the quotes in there 2588# would cause problems or look ugly. 2589# WARNING: Use '\'' to represent an apostrophe within the trap. 2590# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2591trap 'exit_status=$? 2592 # Save into config.log some information that might help in debugging. 2593 { 2594 echo 2595 2596 $as_echo "## ---------------- ## 2597## Cache variables. ## 2598## ---------------- ##" 2599 echo 2600 # The following way of writing the cache mishandles newlines in values, 2601( 2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2603 eval ac_val=\$$ac_var 2604 case $ac_val in #( 2605 *${as_nl}*) 2606 case $ac_var in #( 2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2609 esac 2610 case $ac_var in #( 2611 _ | IFS | as_nl) ;; #( 2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2613 *) { eval $ac_var=; unset $ac_var;} ;; 2614 esac ;; 2615 esac 2616 done 2617 (set) 2>&1 | 2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2619 *${as_nl}ac_space=\ *) 2620 sed -n \ 2621 "s/'\''/'\''\\\\'\'''\''/g; 2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2623 ;; #( 2624 *) 2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2626 ;; 2627 esac | 2628 sort 2629) 2630 echo 2631 2632 $as_echo "## ----------------- ## 2633## Output variables. ## 2634## ----------------- ##" 2635 echo 2636 for ac_var in $ac_subst_vars 2637 do 2638 eval ac_val=\$$ac_var 2639 case $ac_val in 2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2641 esac 2642 $as_echo "$ac_var='\''$ac_val'\''" 2643 done | sort 2644 echo 2645 2646 if test -n "$ac_subst_files"; then 2647 $as_echo "## ------------------- ## 2648## File substitutions. ## 2649## ------------------- ##" 2650 echo 2651 for ac_var in $ac_subst_files 2652 do 2653 eval ac_val=\$$ac_var 2654 case $ac_val in 2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2656 esac 2657 $as_echo "$ac_var='\''$ac_val'\''" 2658 done | sort 2659 echo 2660 fi 2661 2662 if test -s confdefs.h; then 2663 $as_echo "## ----------- ## 2664## confdefs.h. ## 2665## ----------- ##" 2666 echo 2667 cat confdefs.h 2668 echo 2669 fi 2670 test "$ac_signal" != 0 && 2671 $as_echo "$as_me: caught signal $ac_signal" 2672 $as_echo "$as_me: exit $exit_status" 2673 } >&5 2674 rm -f core *.core core.conftest.* && 2675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2676 exit $exit_status 2677' 0 2678for ac_signal in 1 2 13 15; do 2679 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2680done 2681ac_signal=0 2682 2683# confdefs.h avoids OS command line length limits that DEFS can exceed. 2684rm -f -r conftest* confdefs.h 2685 2686$as_echo "/* confdefs.h */" > confdefs.h 2687 2688# Predefined preprocessor variables. 2689 2690cat >>confdefs.h <<_ACEOF 2691#define PACKAGE_NAME "$PACKAGE_NAME" 2692_ACEOF 2693 2694cat >>confdefs.h <<_ACEOF 2695#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2696_ACEOF 2697 2698cat >>confdefs.h <<_ACEOF 2699#define PACKAGE_VERSION "$PACKAGE_VERSION" 2700_ACEOF 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE_STRING "$PACKAGE_STRING" 2704_ACEOF 2705 2706cat >>confdefs.h <<_ACEOF 2707#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2708_ACEOF 2709 2710cat >>confdefs.h <<_ACEOF 2711#define PACKAGE_URL "$PACKAGE_URL" 2712_ACEOF 2713 2714 2715# Let the site file select an alternate cache file if it wants to. 2716# Prefer an explicitly selected file to automatically selected ones. 2717ac_site_file1=NONE 2718ac_site_file2=NONE 2719if test -n "$CONFIG_SITE"; then 2720 # We do not want a PATH search for config.site. 2721 case $CONFIG_SITE in #(( 2722 -*) ac_site_file1=./$CONFIG_SITE;; 2723 */*) ac_site_file1=$CONFIG_SITE;; 2724 *) ac_site_file1=./$CONFIG_SITE;; 2725 esac 2726elif test "x$prefix" != xNONE; then 2727 ac_site_file1=$prefix/share/config.site 2728 ac_site_file2=$prefix/etc/config.site 2729else 2730 ac_site_file1=$ac_default_prefix/share/config.site 2731 ac_site_file2=$ac_default_prefix/etc/config.site 2732fi 2733for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2734do 2735 test "x$ac_site_file" = xNONE && continue 2736 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2738$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2739 sed 's/^/| /' "$ac_site_file" >&5 2740 . "$ac_site_file" \ 2741 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2743as_fn_error $? "failed to load site script $ac_site_file 2744See \`config.log' for more details" "$LINENO" 5; } 2745 fi 2746done 2747 2748if test -r "$cache_file"; then 2749 # Some versions of bash will fail to source /dev/null (special files 2750 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2751 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2753$as_echo "$as_me: loading cache $cache_file" >&6;} 2754 case $cache_file in 2755 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2756 *) . "./$cache_file";; 2757 esac 2758 fi 2759else 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2761$as_echo "$as_me: creating cache $cache_file" >&6;} 2762 >$cache_file 2763fi 2764 2765# Check that the precious variables saved in the cache have kept the same 2766# value. 2767ac_cache_corrupted=false 2768for ac_var in $ac_precious_vars; do 2769 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2770 eval ac_new_set=\$ac_env_${ac_var}_set 2771 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2772 eval ac_new_val=\$ac_env_${ac_var}_value 2773 case $ac_old_set,$ac_new_set in 2774 set,) 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2776$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2777 ac_cache_corrupted=: ;; 2778 ,set) 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2780$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2781 ac_cache_corrupted=: ;; 2782 ,);; 2783 *) 2784 if test "x$ac_old_val" != "x$ac_new_val"; then 2785 # differences in whitespace do not lead to failure. 2786 ac_old_val_w=`echo x $ac_old_val` 2787 ac_new_val_w=`echo x $ac_new_val` 2788 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2790$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2791 ac_cache_corrupted=: 2792 else 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2794$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2795 eval $ac_var=\$ac_old_val 2796 fi 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2798$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2800$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2801 fi;; 2802 esac 2803 # Pass precious variables to config.status. 2804 if test "$ac_new_set" = set; then 2805 case $ac_new_val in 2806 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2807 *) ac_arg=$ac_var=$ac_new_val ;; 2808 esac 2809 case " $ac_configure_args " in 2810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2811 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2812 esac 2813 fi 2814done 2815if $ac_cache_corrupted; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2819$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2820 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2821fi 2822## -------------------- ## 2823## Main body of script. ## 2824## -------------------- ## 2825 2826ac_ext=c 2827ac_cpp='$CPP $CPPFLAGS' 2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2830ac_compiler_gnu=$ac_cv_c_compiler_gnu 2831 2832 2833UNBOUND_VERSION_MAJOR=1 2834 2835UNBOUND_VERSION_MINOR=14 2836 2837UNBOUND_VERSION_MICRO=0rc1 2838 2839 2840LIBUNBOUND_CURRENT=9 2841LIBUNBOUND_REVISION=14 2842LIBUNBOUND_AGE=1 2843# 1.0.0 had 0:12:0 2844# 1.0.1 had 0:13:0 2845# 1.0.2 had 0:14:0 2846# 1.1.0 had 0:15:0 2847# 1.1.1 had 0:16:0 2848# 1.2.0 had 0:17:0 2849# 1.2.1 had 0:18:0 2850# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2851# 1.3.1 had 1:1:0 2852# 1.3.2 had 1:2:0 2853# 1.3.3 had 1:3:0 2854# 1.3.4 had 1:4:0 2855# 1.4.0-snapshots had 1:5:0 2856# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2857# 1.4.1 had 2:1:0 2858# 1.4.2 had 2:2:0 2859# 1.4.3 had 2:3:0 2860# 1.4.4 had 2:4:0 2861# 1.4.5 had 2:5:0 2862# 1.4.6 had 2:6:0 2863# 1.4.7 had 2:7:0 2864# 1.4.8 had 2:8:0 2865# 1.4.9 had 2:9:0 2866# 1.4.10 had 2:10:0 2867# 1.4.11 had 2:11:0 2868# 1.4.12 had 2:12:0 2869# 1.4.13 had 2:13:0 2870# and 1.4.13p1 and 1.4.13.p2 2871# 1.4.14 had 2:14:0 2872# 1.4.15 had 3:0:1 # adds ub_version() 2873# 1.4.16 had 3:1:1 2874# 1.4.17 had 3:2:1 2875# 1.4.18 had 3:3:1 2876# 1.4.19 had 3:4:1 2877# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2878# 1.4.21 had 4:1:2 2879# 1.4.22 had 4:1:2 2880# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2881# 1.5.1 had 5:3:3 2882# 1.5.2 had 5:5:3 2883# 1.5.3 had 5:6:3 2884# 1.5.4 had 5:7:3 2885# 1.5.5 had 5:8:3 2886# 1.5.6 had 5:9:3 2887# 1.5.7 had 5:10:3 2888# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 2889# 1.5.9 had 6:1:4 2890# 1.5.10 had 6:2:4 2891# 1.6.0 had 6:3:4 2892# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 2893# 1.6.2 had 7:1:5 2894# 1.6.3 had 7:2:5 2895# 1.6.4 had 7:3:5 2896# 1.6.5 had 7:4:5 2897# 1.6.6 had 7:5:5 2898# 1.6.7 had 7:6:5 2899# 1.6.8 had 7:7:5 2900# 1.7.0 had 7:8:5 2901# 1.7.1 had 7:9:5 2902# 1.7.2 had 7:10:5 2903# 1.7.3 had 7:11:5 2904# 1.8.0 had 8:0:0 # changes the event callback function signature 2905# 1.8.1 had 8:1:0 2906# 1.8.2 had 8:2:0 2907# 1.8.3 had 8:3:0 2908# 1.9.0 had 9:0:1 # add ub_ctx_set_tls 2909# 1.9.1 had 9:1:1 2910# 1.9.2 had 9:2:1 2911# 1.9.3 had 9:3:1 2912# 1.9.4 had 9:4:1 2913# 1.9.5 had 9:5:1 2914# 1.9.6 had 9:6:1 2915# 1.10.0 had 9:7:1 2916# 1.10.1 had 9:8:1 2917# 1.11.0 had 9:9:1 2918# 1.12.0 had 9:10:1 2919# 1.13.0 had 9:11:1 2920# 1.13.1 had 9:12:1 2921# 1.13.2 had 9:13:1 2922# 1.14.0 had 9:14:1 2923 2924# Current -- the number of the binary API that we're implementing 2925# Revision -- which iteration of the implementation of the binary 2926# API are we supplying? 2927# Age -- How many previous binary API versions do we also 2928# support? 2929# 2930# If we release a new version that does not change the binary API, 2931# increment Revision. 2932# 2933# If we release a new version that changes the binary API, but does 2934# not break programs compiled against the old binary API, increment 2935# Current and Age. Set Revision to 0, since this is the first 2936# implementation of the new API. 2937# 2938# Otherwise, we're changing the binary API and breaking backward 2939# compatibility with old binaries. Increment Current. Set Age to 0, 2940# since we're backward compatible with no previous APIs. Set Revision 2941# to 0 too. 2942 2943 2944 2945 2946 2947cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 2948 2949cat >>confdefs.h <<_ACEOF 2950#define CONFCMDLINE "$cmdln" 2951_ACEOF 2952 2953 2954CFLAGS="$CFLAGS" 2955ac_ext=c 2956ac_cpp='$CPP $CPPFLAGS' 2957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2959ac_compiler_gnu=$ac_cv_c_compiler_gnu 2960if test -n "$ac_tool_prefix"; then 2961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2962set dummy ${ac_tool_prefix}gcc; ac_word=$2 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2964$as_echo_n "checking for $ac_word... " >&6; } 2965if ${ac_cv_prog_CC+:} false; then : 2966 $as_echo_n "(cached) " >&6 2967else 2968 if test -n "$CC"; then 2969 ac_cv_prog_CC="$CC" # Let the user override the test. 2970else 2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972for as_dir in $PATH 2973do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2978 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987fi 2988CC=$ac_cv_prog_CC 2989if test -n "$CC"; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2991$as_echo "$CC" >&6; } 2992else 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994$as_echo "no" >&6; } 2995fi 2996 2997 2998fi 2999if test -z "$ac_cv_prog_CC"; then 3000 ac_ct_CC=$CC 3001 # Extract the first word of "gcc", so it can be a program name with args. 3002set dummy gcc; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_prog_ac_ct_CC+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$ac_ct_CC"; then 3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 ac_cv_prog_ac_ct_CC="gcc" 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023 done 3024IFS=$as_save_IFS 3025 3026fi 3027fi 3028ac_ct_CC=$ac_cv_prog_ac_ct_CC 3029if test -n "$ac_ct_CC"; then 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3031$as_echo "$ac_ct_CC" >&6; } 3032else 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 if test "x$ac_ct_CC" = x; then 3038 CC="" 3039 else 3040 case $cross_compiling:$ac_tool_warned in 3041yes:) 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3044ac_tool_warned=yes ;; 3045esac 3046 CC=$ac_ct_CC 3047 fi 3048else 3049 CC="$ac_cv_prog_CC" 3050fi 3051 3052if test -z "$CC"; then 3053 if test -n "$ac_tool_prefix"; then 3054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3055set dummy ${ac_tool_prefix}cc; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if ${ac_cv_prog_CC+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063else 3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3071 ac_cv_prog_CC="${ac_tool_prefix}cc" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079fi 3080fi 3081CC=$ac_cv_prog_CC 3082if test -n "$CC"; then 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3084$as_echo "$CC" >&6; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087$as_echo "no" >&6; } 3088fi 3089 3090 3091 fi 3092fi 3093if test -z "$CC"; then 3094 # Extract the first word of "cc", so it can be a program name with args. 3095set dummy cc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$CC"; then 3102 ac_cv_prog_CC="$CC" # Let the user override the test. 3103else 3104 ac_prog_rejected=no 3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106for as_dir in $PATH 3107do 3108 IFS=$as_save_IFS 3109 test -z "$as_dir" && as_dir=. 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3113 ac_prog_rejected=yes 3114 continue 3115 fi 3116 ac_cv_prog_CC="cc" 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3118 break 2 3119 fi 3120done 3121 done 3122IFS=$as_save_IFS 3123 3124if test $ac_prog_rejected = yes; then 3125 # We found a bogon in the path, so make sure we never use it. 3126 set dummy $ac_cv_prog_CC 3127 shift 3128 if test $# != 0; then 3129 # We chose a different compiler from the bogus one. 3130 # However, it has the same basename, so the bogon will be chosen 3131 # first if we set CC to just the basename; use the full file name. 3132 shift 3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3134 fi 3135fi 3136fi 3137fi 3138CC=$ac_cv_prog_CC 3139if test -n "$CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3141$as_echo "$CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148fi 3149if test -z "$CC"; then 3150 if test -n "$ac_tool_prefix"; then 3151 for ac_prog in cl.exe 3152 do 3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3154set dummy $ac_tool_prefix$ac_prog; 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$ac_prog" 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 3190 test -n "$CC" && break 3191 done 3192fi 3193if test -z "$CC"; then 3194 ac_ct_CC=$CC 3195 for ac_prog in cl.exe 3196do 3197 # Extract the first word of "$ac_prog", so it can be a program name with args. 3198set dummy $ac_prog; ac_word=$2 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3200$as_echo_n "checking for $ac_word... " >&6; } 3201if ${ac_cv_prog_ac_ct_CC+:} false; then : 3202 $as_echo_n "(cached) " >&6 3203else 3204 if test -n "$ac_ct_CC"; then 3205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3206else 3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3208for as_dir in $PATH 3209do 3210 IFS=$as_save_IFS 3211 test -z "$as_dir" && as_dir=. 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3214 ac_cv_prog_ac_ct_CC="$ac_prog" 3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3216 break 2 3217 fi 3218done 3219 done 3220IFS=$as_save_IFS 3221 3222fi 3223fi 3224ac_ct_CC=$ac_cv_prog_ac_ct_CC 3225if test -n "$ac_ct_CC"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3227$as_echo "$ac_ct_CC" >&6; } 3228else 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230$as_echo "no" >&6; } 3231fi 3232 3233 3234 test -n "$ac_ct_CC" && break 3235done 3236 3237 if test "x$ac_ct_CC" = x; then 3238 CC="" 3239 else 3240 case $cross_compiling:$ac_tool_warned in 3241yes:) 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3244ac_tool_warned=yes ;; 3245esac 3246 CC=$ac_ct_CC 3247 fi 3248fi 3249 3250fi 3251 3252 3253test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3255as_fn_error $? "no acceptable C compiler found in \$PATH 3256See \`config.log' for more details" "$LINENO" 5; } 3257 3258# Provide some information about the compiler. 3259$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3260set X $ac_compile 3261ac_compiler=$2 3262for ac_option in --version -v -V -qversion; do 3263 { { ac_try="$ac_compiler $ac_option >&5" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3269$as_echo "$ac_try_echo"; } >&5 3270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3271 ac_status=$? 3272 if test -s conftest.err; then 3273 sed '10a\ 3274... rest of stderr output deleted ... 3275 10q' conftest.err >conftest.er1 3276 cat conftest.er1 >&5 3277 fi 3278 rm -f conftest.er1 conftest.err 3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280 test $ac_status = 0; } 3281done 3282 3283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294ac_clean_files_save=$ac_clean_files 3295ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3296# Try to create an executable without -o first, disregard a.out. 3297# It will help us diagnose broken compilers, and finding out an intuition 3298# of exeext. 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3300$as_echo_n "checking whether the C compiler works... " >&6; } 3301ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3302 3303# The possible output files: 3304ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3305 3306ac_rmfiles= 3307for ac_file in $ac_files 3308do 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3312 esac 3313done 3314rm -f $ac_rmfiles 3315 3316if { { ac_try="$ac_link_default" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322$as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_link_default") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3328# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3329# in a Makefile. We should not override ac_cv_exeext if it was cached, 3330# so that the user can short-circuit this test for compilers unknown to 3331# Autoconf. 3332for ac_file in $ac_files '' 3333do 3334 test -f "$ac_file" || continue 3335 case $ac_file in 3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3337 ;; 3338 [ab].out ) 3339 # We found the default executable, but exeext='' is most 3340 # certainly right. 3341 break;; 3342 *.* ) 3343 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3344 then :; else 3345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3346 fi 3347 # We set ac_cv_exeext here because the later test for it is not 3348 # safe: cross compilers may not add the suffix if given an `-o' 3349 # argument, so we may need to know it at that point already. 3350 # Even if this section looks crufty: it has the advantage of 3351 # actually working. 3352 break;; 3353 * ) 3354 break;; 3355 esac 3356done 3357test "$ac_cv_exeext" = no && ac_cv_exeext= 3358 3359else 3360 ac_file='' 3361fi 3362if test -z "$ac_file"; then : 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364$as_echo "no" >&6; } 3365$as_echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3370as_fn_error 77 "C compiler cannot create executables 3371See \`config.log' for more details" "$LINENO" 5; } 3372else 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3374$as_echo "yes" >&6; } 3375fi 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3377$as_echo_n "checking for C compiler default output file name... " >&6; } 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3379$as_echo "$ac_file" >&6; } 3380ac_exeext=$ac_cv_exeext 3381 3382rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3383ac_clean_files=$ac_clean_files_save 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3385$as_echo_n "checking for suffix of executables... " >&6; } 3386if { { ac_try="$ac_link" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392$as_echo "$ac_try_echo"; } >&5 3393 (eval "$ac_link") 2>&5 3394 ac_status=$? 3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; }; then : 3397 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3398# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3399# work properly (i.e., refer to `conftest.exe'), while it won't with 3400# `rm'. 3401for ac_file in conftest.exe conftest conftest.*; do 3402 test -f "$ac_file" || continue 3403 case $ac_file in 3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3405 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3406 break;; 3407 * ) break;; 3408 esac 3409done 3410else 3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3413as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3414See \`config.log' for more details" "$LINENO" 5; } 3415fi 3416rm -f conftest conftest$ac_cv_exeext 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3418$as_echo "$ac_cv_exeext" >&6; } 3419 3420rm -f conftest.$ac_ext 3421EXEEXT=$ac_cv_exeext 3422ac_exeext=$EXEEXT 3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425#include <stdio.h> 3426int 3427main () 3428{ 3429FILE *f = fopen ("conftest.out", "w"); 3430 return ferror (f) || fclose (f) != 0; 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436ac_clean_files="$ac_clean_files conftest.out" 3437# Check that the compiler produces executables we can run. If not, either 3438# the compiler is broken, or we cross compile. 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3440$as_echo_n "checking whether we are cross compiling... " >&6; } 3441if test "$cross_compiling" != yes; then 3442 { { ac_try="$ac_link" 3443case "(($ac_try" in 3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3445 *) ac_try_echo=$ac_try;; 3446esac 3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3448$as_echo "$ac_try_echo"; } >&5 3449 (eval "$ac_link") 2>&5 3450 ac_status=$? 3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3452 test $ac_status = 0; } 3453 if { ac_try='./conftest$ac_cv_exeext' 3454 { { case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459$as_echo "$ac_try_echo"; } >&5 3460 (eval "$ac_try") 2>&5 3461 ac_status=$? 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 test $ac_status = 0; }; }; then 3464 cross_compiling=no 3465 else 3466 if test "$cross_compiling" = maybe; then 3467 cross_compiling=yes 3468 else 3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3471as_fn_error $? "cannot run C compiled programs. 3472If you meant to cross compile, use \`--host'. 3473See \`config.log' for more details" "$LINENO" 5; } 3474 fi 3475 fi 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3478$as_echo "$cross_compiling" >&6; } 3479 3480rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3481ac_clean_files=$ac_clean_files_save 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3483$as_echo_n "checking for suffix of object files... " >&6; } 3484if ${ac_cv_objext+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498rm -f conftest.o conftest.obj 3499if { { ac_try="$ac_compile" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505$as_echo "$ac_try_echo"; } >&5 3506 (eval "$ac_compile") 2>&5 3507 ac_status=$? 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; }; then : 3510 for ac_file in conftest.o conftest.obj conftest.*; do 3511 test -f "$ac_file" || continue; 3512 case $ac_file in 3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3515 break;; 3516 esac 3517done 3518else 3519 $as_echo "$as_me: failed program was:" >&5 3520sed 's/^/| /' conftest.$ac_ext >&5 3521 3522{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3524as_fn_error $? "cannot compute suffix of object files: cannot compile 3525See \`config.log' for more details" "$LINENO" 5; } 3526fi 3527rm -f conftest.$ac_cv_objext conftest.$ac_ext 3528fi 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3530$as_echo "$ac_cv_objext" >&6; } 3531OBJEXT=$ac_cv_objext 3532ac_objext=$OBJEXT 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3534$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3535if ${ac_cv_c_compiler_gnu+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537else 3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3539/* end confdefs.h. */ 3540 3541int 3542main () 3543{ 3544#ifndef __GNUC__ 3545 choke me 3546#endif 3547 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552if ac_fn_c_try_compile "$LINENO"; then : 3553 ac_compiler_gnu=yes 3554else 3555 ac_compiler_gnu=no 3556fi 3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3558ac_cv_c_compiler_gnu=$ac_compiler_gnu 3559 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3562$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3563if test $ac_compiler_gnu = yes; then 3564 GCC=yes 3565else 3566 GCC= 3567fi 3568ac_test_CFLAGS=${CFLAGS+set} 3569ac_save_CFLAGS=$CFLAGS 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3571$as_echo_n "checking whether $CC accepts -g... " >&6; } 3572if ${ac_cv_prog_cc_g+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 ac_save_c_werror_flag=$ac_c_werror_flag 3576 ac_c_werror_flag=yes 3577 ac_cv_prog_cc_g=no 3578 CFLAGS="-g" 3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581 3582int 3583main () 3584{ 3585 3586 ; 3587 return 0; 3588} 3589_ACEOF 3590if ac_fn_c_try_compile "$LINENO"; then : 3591 ac_cv_prog_cc_g=yes 3592else 3593 CFLAGS="" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO"; then : 3606 3607else 3608 ac_c_werror_flag=$ac_save_c_werror_flag 3609 CFLAGS="-g" 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612 3613int 3614main () 3615{ 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621if ac_fn_c_try_compile "$LINENO"; then : 3622 ac_cv_prog_cc_g=yes 3623fi 3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3625fi 3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3627fi 3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3629 ac_c_werror_flag=$ac_save_c_werror_flag 3630fi 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3632$as_echo "$ac_cv_prog_cc_g" >&6; } 3633if test "$ac_test_CFLAGS" = set; then 3634 CFLAGS=$ac_save_CFLAGS 3635elif test $ac_cv_prog_cc_g = yes; then 3636 if test "$GCC" = yes; then 3637 CFLAGS="-g -O2" 3638 else 3639 CFLAGS="-g" 3640 fi 3641else 3642 if test "$GCC" = yes; then 3643 CFLAGS="-O2" 3644 else 3645 CFLAGS= 3646 fi 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3649$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3650if ${ac_cv_prog_cc_c89+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 ac_cv_prog_cc_c89=no 3654ac_save_CC=$CC 3655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657#include <stdarg.h> 3658#include <stdio.h> 3659struct stat; 3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3661struct buf { int x; }; 3662FILE * (*rcsopen) (struct buf *, struct stat *, int); 3663static char *e (p, i) 3664 char **p; 3665 int i; 3666{ 3667 return p[i]; 3668} 3669static char *f (char * (*g) (char **, int), char **p, ...) 3670{ 3671 char *s; 3672 va_list v; 3673 va_start (v,p); 3674 s = g (p, va_arg (v,int)); 3675 va_end (v); 3676 return s; 3677} 3678 3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3680 function prototypes and stuff, but not '\xHH' hex character constants. 3681 These don't provoke an error unfortunately, instead are silently treated 3682 as 'x'. The following induces an error, until -std is added to get 3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3684 array size at least. It's necessary to write '\x00'==0 to get something 3685 that's true only with -std. */ 3686int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3687 3688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3689 inside strings and character constants. */ 3690#define FOO(x) 'x' 3691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3692 3693int test (int i, double x); 3694struct s1 {int (*f) (int a);}; 3695struct s2 {int (*f) (double a);}; 3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3697int argc; 3698char **argv; 3699int 3700main () 3701{ 3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3709do 3710 CC="$ac_save_CC $ac_arg" 3711 if ac_fn_c_try_compile "$LINENO"; then : 3712 ac_cv_prog_cc_c89=$ac_arg 3713fi 3714rm -f core conftest.err conftest.$ac_objext 3715 test "x$ac_cv_prog_cc_c89" != "xno" && break 3716done 3717rm -f conftest.$ac_ext 3718CC=$ac_save_CC 3719 3720fi 3721# AC_CACHE_VAL 3722case "x$ac_cv_prog_cc_c89" in 3723 x) 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3725$as_echo "none needed" >&6; } ;; 3726 xno) 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3728$as_echo "unsupported" >&6; } ;; 3729 *) 3730 CC="$CC $ac_cv_prog_cc_c89" 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3733esac 3734if test "x$ac_cv_prog_cc_c89" != xno; then : 3735 3736fi 3737 3738ac_ext=c 3739ac_cpp='$CPP $CPPFLAGS' 3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_c_compiler_gnu 3743 3744 3745ac_ext=c 3746ac_cpp='$CPP $CPPFLAGS' 3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3749ac_compiler_gnu=$ac_cv_c_compiler_gnu 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3751$as_echo_n "checking how to run the C preprocessor... " >&6; } 3752# On Suns, sometimes $CPP names a directory. 3753if test -n "$CPP" && test -d "$CPP"; then 3754 CPP= 3755fi 3756if test -z "$CPP"; then 3757 if ${ac_cv_prog_CPP+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 # Double quotes because CPP needs to be expanded 3761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3762 do 3763 ac_preproc_ok=false 3764for ac_c_preproc_warn_flag in '' yes 3765do 3766 # Use a header file that comes with gcc, so configuring glibc 3767 # with a fresh cross-compiler works. 3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3769 # <limits.h> exists even on freestanding compilers. 3770 # On the NeXT, cc -E runs the code through the compiler's parser, 3771 # not just through cpp. "Syntax error" is here to catch this case. 3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774#ifdef __STDC__ 3775# include <limits.h> 3776#else 3777# include <assert.h> 3778#endif 3779 Syntax error 3780_ACEOF 3781if ac_fn_c_try_cpp "$LINENO"; then : 3782 3783else 3784 # Broken: fails on valid input. 3785continue 3786fi 3787rm -f conftest.err conftest.i conftest.$ac_ext 3788 3789 # OK, works on sane cases. Now check whether nonexistent headers 3790 # can be detected and how. 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793#include <ac_nonexistent.h> 3794_ACEOF 3795if ac_fn_c_try_cpp "$LINENO"; then : 3796 # Broken: success on invalid input. 3797continue 3798else 3799 # Passes both tests. 3800ac_preproc_ok=: 3801break 3802fi 3803rm -f conftest.err conftest.i conftest.$ac_ext 3804 3805done 3806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3807rm -f conftest.i conftest.err conftest.$ac_ext 3808if $ac_preproc_ok; then : 3809 break 3810fi 3811 3812 done 3813 ac_cv_prog_CPP=$CPP 3814 3815fi 3816 CPP=$ac_cv_prog_CPP 3817else 3818 ac_cv_prog_CPP=$CPP 3819fi 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3821$as_echo "$CPP" >&6; } 3822ac_preproc_ok=false 3823for ac_c_preproc_warn_flag in '' yes 3824do 3825 # Use a header file that comes with gcc, so configuring glibc 3826 # with a fresh cross-compiler works. 3827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3828 # <limits.h> exists even on freestanding compilers. 3829 # On the NeXT, cc -E runs the code through the compiler's parser, 3830 # not just through cpp. "Syntax error" is here to catch this case. 3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832/* end confdefs.h. */ 3833#ifdef __STDC__ 3834# include <limits.h> 3835#else 3836# include <assert.h> 3837#endif 3838 Syntax error 3839_ACEOF 3840if ac_fn_c_try_cpp "$LINENO"; then : 3841 3842else 3843 # Broken: fails on valid input. 3844continue 3845fi 3846rm -f conftest.err conftest.i conftest.$ac_ext 3847 3848 # OK, works on sane cases. Now check whether nonexistent headers 3849 # can be detected and how. 3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852#include <ac_nonexistent.h> 3853_ACEOF 3854if ac_fn_c_try_cpp "$LINENO"; then : 3855 # Broken: success on invalid input. 3856continue 3857else 3858 # Passes both tests. 3859ac_preproc_ok=: 3860break 3861fi 3862rm -f conftest.err conftest.i conftest.$ac_ext 3863 3864done 3865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3866rm -f conftest.i conftest.err conftest.$ac_ext 3867if $ac_preproc_ok; then : 3868 3869else 3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3872as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3873See \`config.log' for more details" "$LINENO" 5; } 3874fi 3875 3876ac_ext=c 3877ac_cpp='$CPP $CPPFLAGS' 3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881 3882 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3884$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3885if ${ac_cv_path_GREP+:} false; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 if test -z "$GREP"; then 3889 ac_path_GREP_found=false 3890 # Loop through the user's path and test for each of PROGNAME-LIST 3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3893do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_prog in grep ggrep; do 3897 for ac_exec_ext in '' $ac_executable_extensions; do 3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3899 as_fn_executable_p "$ac_path_GREP" || continue 3900# Check for GNU ac_path_GREP and select it if it is found. 3901 # Check for GNU $ac_path_GREP 3902case `"$ac_path_GREP" --version 2>&1` in 3903*GNU*) 3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3905*) 3906 ac_count=0 3907 $as_echo_n 0123456789 >"conftest.in" 3908 while : 3909 do 3910 cat "conftest.in" "conftest.in" >"conftest.tmp" 3911 mv "conftest.tmp" "conftest.in" 3912 cp "conftest.in" "conftest.nl" 3913 $as_echo 'GREP' >> "conftest.nl" 3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3916 as_fn_arith $ac_count + 1 && ac_count=$as_val 3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3918 # Best one so far, save it but keep looking for a better one 3919 ac_cv_path_GREP="$ac_path_GREP" 3920 ac_path_GREP_max=$ac_count 3921 fi 3922 # 10*(2^10) chars as input seems more than enough 3923 test $ac_count -gt 10 && break 3924 done 3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3926esac 3927 3928 $ac_path_GREP_found && break 3 3929 done 3930 done 3931 done 3932IFS=$as_save_IFS 3933 if test -z "$ac_cv_path_GREP"; then 3934 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3935 fi 3936else 3937 ac_cv_path_GREP=$GREP 3938fi 3939 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3942$as_echo "$ac_cv_path_GREP" >&6; } 3943 GREP="$ac_cv_path_GREP" 3944 3945 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3947$as_echo_n "checking for egrep... " >&6; } 3948if ${ac_cv_path_EGREP+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3952 then ac_cv_path_EGREP="$GREP -E" 3953 else 3954 if test -z "$EGREP"; then 3955 ac_path_EGREP_found=false 3956 # Loop through the user's path and test for each of PROGNAME-LIST 3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3959do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_prog in egrep; do 3963 for ac_exec_ext in '' $ac_executable_extensions; do 3964 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3965 as_fn_executable_p "$ac_path_EGREP" || continue 3966# Check for GNU ac_path_EGREP and select it if it is found. 3967 # Check for GNU $ac_path_EGREP 3968case `"$ac_path_EGREP" --version 2>&1` in 3969*GNU*) 3970 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3971*) 3972 ac_count=0 3973 $as_echo_n 0123456789 >"conftest.in" 3974 while : 3975 do 3976 cat "conftest.in" "conftest.in" >"conftest.tmp" 3977 mv "conftest.tmp" "conftest.in" 3978 cp "conftest.in" "conftest.nl" 3979 $as_echo 'EGREP' >> "conftest.nl" 3980 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3982 as_fn_arith $ac_count + 1 && ac_count=$as_val 3983 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3984 # Best one so far, save it but keep looking for a better one 3985 ac_cv_path_EGREP="$ac_path_EGREP" 3986 ac_path_EGREP_max=$ac_count 3987 fi 3988 # 10*(2^10) chars as input seems more than enough 3989 test $ac_count -gt 10 && break 3990 done 3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3992esac 3993 3994 $ac_path_EGREP_found && break 3 3995 done 3996 done 3997 done 3998IFS=$as_save_IFS 3999 if test -z "$ac_cv_path_EGREP"; then 4000 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4001 fi 4002else 4003 ac_cv_path_EGREP=$EGREP 4004fi 4005 4006 fi 4007fi 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4009$as_echo "$ac_cv_path_EGREP" >&6; } 4010 EGREP="$ac_cv_path_EGREP" 4011 4012 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4014$as_echo_n "checking for ANSI C header files... " >&6; } 4015if ${ac_cv_header_stdc+:} false; then : 4016 $as_echo_n "(cached) " >&6 4017else 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020#include <stdlib.h> 4021#include <stdarg.h> 4022#include <string.h> 4023#include <float.h> 4024 4025int 4026main () 4027{ 4028 4029 ; 4030 return 0; 4031} 4032_ACEOF 4033if ac_fn_c_try_compile "$LINENO"; then : 4034 ac_cv_header_stdc=yes 4035else 4036 ac_cv_header_stdc=no 4037fi 4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4039 4040if test $ac_cv_header_stdc = yes; then 4041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044#include <string.h> 4045 4046_ACEOF 4047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4048 $EGREP "memchr" >/dev/null 2>&1; then : 4049 4050else 4051 ac_cv_header_stdc=no 4052fi 4053rm -f conftest* 4054 4055fi 4056 4057if test $ac_cv_header_stdc = yes; then 4058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061#include <stdlib.h> 4062 4063_ACEOF 4064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4065 $EGREP "free" >/dev/null 2>&1; then : 4066 4067else 4068 ac_cv_header_stdc=no 4069fi 4070rm -f conftest* 4071 4072fi 4073 4074if test $ac_cv_header_stdc = yes; then 4075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4076 if test "$cross_compiling" = yes; then : 4077 : 4078else 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4080/* end confdefs.h. */ 4081#include <ctype.h> 4082#include <stdlib.h> 4083#if ((' ' & 0x0FF) == 0x020) 4084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4086#else 4087# define ISLOWER(c) \ 4088 (('a' <= (c) && (c) <= 'i') \ 4089 || ('j' <= (c) && (c) <= 'r') \ 4090 || ('s' <= (c) && (c) <= 'z')) 4091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4092#endif 4093 4094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4095int 4096main () 4097{ 4098 int i; 4099 for (i = 0; i < 256; i++) 4100 if (XOR (islower (i), ISLOWER (i)) 4101 || toupper (i) != TOUPPER (i)) 4102 return 2; 4103 return 0; 4104} 4105_ACEOF 4106if ac_fn_c_try_run "$LINENO"; then : 4107 4108else 4109 ac_cv_header_stdc=no 4110fi 4111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4112 conftest.$ac_objext conftest.beam conftest.$ac_ext 4113fi 4114 4115fi 4116fi 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4118$as_echo "$ac_cv_header_stdc" >&6; } 4119if test $ac_cv_header_stdc = yes; then 4120 4121$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4122 4123fi 4124 4125# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4126for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4127 inttypes.h stdint.h unistd.h 4128do : 4129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4130ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4131" 4132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4133 cat >>confdefs.h <<_ACEOF 4134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4135_ACEOF 4136 4137fi 4138 4139done 4140 4141 4142 4143 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4144if test "x$ac_cv_header_minix_config_h" = xyes; then : 4145 MINIX=yes 4146else 4147 MINIX= 4148fi 4149 4150 4151 if test "$MINIX" = yes; then 4152 4153$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4154 4155 4156$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4157 4158 4159$as_echo "#define _MINIX 1" >>confdefs.h 4160 4161 fi 4162 4163 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4165$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4166if ${ac_cv_safe_to_define___extensions__+:} false; then : 4167 $as_echo_n "(cached) " >&6 4168else 4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4170/* end confdefs.h. */ 4171 4172# define __EXTENSIONS__ 1 4173 $ac_includes_default 4174int 4175main () 4176{ 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182if ac_fn_c_try_compile "$LINENO"; then : 4183 ac_cv_safe_to_define___extensions__=yes 4184else 4185 ac_cv_safe_to_define___extensions__=no 4186fi 4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4190$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4191 test $ac_cv_safe_to_define___extensions__ = yes && 4192 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4193 4194 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4195 4196 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4197 4198 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4199 4200 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4201 4202 4203if test "$ac_cv_header_minix_config_h" = "yes"; then 4204 4205$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4206 4207fi 4208 4209case "$prefix" in 4210 NONE) 4211 prefix="/usr/local" 4212 ;; 4213esac 4214case "$exec_prefix" in 4215 NONE) 4216 exec_prefix="$prefix" 4217 ;; 4218esac 4219 4220# are we on MinGW? 4221if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes" 4222else 4223 if echo $host | grep mingw >/dev/null; then on_mingw="yes" 4224 else on_mingw="no"; fi 4225fi 4226 4227# 4228# Determine configuration file 4229# the eval is to evaluate shell expansion twice 4230UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4231 4232UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4233 4234UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4235 4236if test $on_mingw = "no"; then 4237 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4238else 4239 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4240fi 4241 4242# Check whether --with-conf_file was given. 4243if test "${with_conf_file+set}" = set; then : 4244 withval=$with_conf_file; ub_conf_file="$withval" 4245fi 4246 4247 4248hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4249 4250 4251cat >>confdefs.h <<_ACEOF 4252#define CONFIGFILE "$hdr_config" 4253_ACEOF 4254 4255ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4256$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4257 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4258 X"$ub_conf_file" : 'X\(//\)$' \| \ 4259 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4260$as_echo X"$ub_conf_file" | 4261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4262 s//\1/ 4263 q 4264 } 4265 /^X\(\/\/\)[^/].*/{ 4266 s//\1/ 4267 q 4268 } 4269 /^X\(\/\/\)$/{ 4270 s//\1/ 4271 q 4272 } 4273 /^X\(\/\).*/{ 4274 s//\1/ 4275 q 4276 } 4277 s/.*/./; q'` 4278 4279 4280# Determine run, chroot directory and pidfile locations 4281 4282# Check whether --with-run-dir was given. 4283if test "${with_run_dir+set}" = set; then : 4284 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4285else 4286 if test $on_mingw = no; then 4287 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4288else 4289 UNBOUND_RUN_DIR="" 4290fi 4291 4292fi 4293 4294 4295hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4296 4297 4298cat >>confdefs.h <<_ACEOF 4299#define RUN_DIR "$hdr_run" 4300_ACEOF 4301 4302 4303 4304# Check whether --with-chroot-dir was given. 4305if test "${with_chroot_dir+set}" = set; then : 4306 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4307else 4308 if test $on_mingw = no; then 4309 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4310else 4311 UNBOUND_CHROOT_DIR="" 4312fi 4313 4314fi 4315 4316 4317hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4318 4319 4320cat >>confdefs.h <<_ACEOF 4321#define CHROOT_DIR "$hdr_chroot" 4322_ACEOF 4323 4324 4325 4326# Check whether --with-share-dir was given. 4327if test "${with_share_dir+set}" = set; then : 4328 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4329else 4330 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4331fi 4332 4333 4334 4335cat >>confdefs.h <<_ACEOF 4336#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4337_ACEOF 4338 4339 4340 4341# Check whether --with-pidfile was given. 4342if test "${with_pidfile+set}" = set; then : 4343 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4344else 4345 if test $on_mingw = no; then 4346 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4347else 4348 UNBOUND_PIDFILE="" 4349fi 4350 4351fi 4352 4353 4354hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4355 4356 4357cat >>confdefs.h <<_ACEOF 4358#define PIDFILE "$hdr_pid" 4359_ACEOF 4360 4361 4362 4363# Check whether --with-rootkey-file was given. 4364if test "${with_rootkey_file+set}" = set; then : 4365 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4366else 4367 if test $on_mingw = no; then 4368 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4369else 4370 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4371fi 4372 4373fi 4374 4375 4376hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4377 4378 4379cat >>confdefs.h <<_ACEOF 4380#define ROOT_ANCHOR_FILE "$hdr_rkey" 4381_ACEOF 4382 4383 4384 4385# Check whether --with-rootcert-file was given. 4386if test "${with_rootcert_file+set}" = set; then : 4387 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4388else 4389 if test $on_mingw = no; then 4390 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4391else 4392 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4393fi 4394 4395fi 4396 4397 4398hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4399 4400 4401cat >>confdefs.h <<_ACEOF 4402#define ROOT_CERT_FILE "$hdr_rpem" 4403_ACEOF 4404 4405 4406 4407# Check whether --with-username was given. 4408if test "${with_username+set}" = set; then : 4409 withval=$with_username; UNBOUND_USERNAME="$withval" 4410else 4411 UNBOUND_USERNAME="unbound" 4412fi 4413 4414 4415 4416cat >>confdefs.h <<_ACEOF 4417#define UB_USERNAME "$UNBOUND_USERNAME" 4418_ACEOF 4419 4420 4421 4422$as_echo "#define WINVER 0x0502" >>confdefs.h 4423 4424wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' ` 4425 4426 4427cat >>confdefs.h <<_ACEOF 4428#define RSRC_PACKAGE_VERSION $wnvs 4429_ACEOF 4430 4431 4432# Checks for typedefs, structures, and compiler characteristics. 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4434$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4435if ${ac_cv_c_const+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440 4441int 4442main () 4443{ 4444 4445#ifndef __cplusplus 4446 /* Ultrix mips cc rejects this sort of thing. */ 4447 typedef int charset[2]; 4448 const charset cs = { 0, 0 }; 4449 /* SunOS 4.1.1 cc rejects this. */ 4450 char const *const *pcpcc; 4451 char **ppc; 4452 /* NEC SVR4.0.2 mips cc rejects this. */ 4453 struct point {int x, y;}; 4454 static struct point const zero = {0,0}; 4455 /* AIX XL C 1.02.0.0 rejects this. 4456 It does not let you subtract one const X* pointer from another in 4457 an arm of an if-expression whose if-part is not a constant 4458 expression */ 4459 const char *g = "string"; 4460 pcpcc = &g + (g ? g-g : 0); 4461 /* HPUX 7.0 cc rejects these. */ 4462 ++pcpcc; 4463 ppc = (char**) pcpcc; 4464 pcpcc = (char const *const *) ppc; 4465 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4466 char tx; 4467 char *t = &tx; 4468 char const *s = 0 ? (char *) 0 : (char const *) 0; 4469 4470 *t++ = 0; 4471 if (s) return 0; 4472 } 4473 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4474 int x[] = {25, 17}; 4475 const int *foo = &x[0]; 4476 ++foo; 4477 } 4478 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4479 typedef const int *iptr; 4480 iptr p = 0; 4481 ++p; 4482 } 4483 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4484 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4485 struct s { int j; const int *ap[3]; } bx; 4486 struct s *b = &bx; b->j = 5; 4487 } 4488 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4489 const int foo = 10; 4490 if (!foo) return 0; 4491 } 4492 return !cs[0] && !zero.x; 4493#endif 4494 4495 ; 4496 return 0; 4497} 4498_ACEOF 4499if ac_fn_c_try_compile "$LINENO"; then : 4500 ac_cv_c_const=yes 4501else 4502 ac_cv_c_const=no 4503fi 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505fi 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4507$as_echo "$ac_cv_c_const" >&6; } 4508if test $ac_cv_c_const = no; then 4509 4510$as_echo "#define const /**/" >>confdefs.h 4511 4512fi 4513 4514ac_ext=c 4515ac_cpp='$CPP $CPPFLAGS' 4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4518ac_compiler_gnu=$ac_cv_c_compiler_gnu 4519 4520# allow user to override the -g -O2 flags. 4521default_cflags=no 4522if test "x$CFLAGS" = "x" ; then 4523 4524 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4526$as_echo_n "checking whether $CC supports -g... " >&6; } 4527cache=`echo g | sed 'y%.=/+-%___p_%'` 4528if eval \${cv_prog_cc_flag_$cache+:} false; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 4532echo 'void f(void){}' >conftest.c 4533if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4534eval "cv_prog_cc_flag_$cache=yes" 4535else 4536eval "cv_prog_cc_flag_$cache=no" 4537fi 4538rm -f conftest conftest.o conftest.c 4539 4540fi 4541 4542if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4544$as_echo "yes" >&6; } 4545: 4546CFLAGS="$CFLAGS -g" 4547else 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550: 4551 4552fi 4553 4554 4555 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4557$as_echo_n "checking whether $CC supports -O2... " >&6; } 4558cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4559if eval \${cv_prog_cc_flag_$cache+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 4563echo 'void f(void){}' >conftest.c 4564if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4565eval "cv_prog_cc_flag_$cache=yes" 4566else 4567eval "cv_prog_cc_flag_$cache=no" 4568fi 4569rm -f conftest conftest.o conftest.c 4570 4571fi 4572 4573if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4575$as_echo "yes" >&6; } 4576: 4577CFLAGS="$CFLAGS -O2" 4578else 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4580$as_echo "no" >&6; } 4581: 4582 4583fi 4584 4585default_cflags=yes 4586fi 4587ac_ext=c 4588ac_cpp='$CPP $CPPFLAGS' 4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4591ac_compiler_gnu=$ac_cv_c_compiler_gnu 4592if test -n "$ac_tool_prefix"; then 4593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4594set dummy ${ac_tool_prefix}gcc; ac_word=$2 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4596$as_echo_n "checking for $ac_word... " >&6; } 4597if ${ac_cv_prog_CC+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 if test -n "$CC"; then 4601 ac_cv_prog_CC="$CC" # Let the user override the test. 4602else 4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH 4605do 4606 IFS=$as_save_IFS 4607 test -z "$as_dir" && as_dir=. 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4610 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4612 break 2 4613 fi 4614done 4615 done 4616IFS=$as_save_IFS 4617 4618fi 4619fi 4620CC=$ac_cv_prog_CC 4621if test -n "$CC"; then 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4623$as_echo "$CC" >&6; } 4624else 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626$as_echo "no" >&6; } 4627fi 4628 4629 4630fi 4631if test -z "$ac_cv_prog_CC"; then 4632 ac_ct_CC=$CC 4633 # Extract the first word of "gcc", so it can be a program name with args. 4634set dummy gcc; ac_word=$2 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4636$as_echo_n "checking for $ac_word... " >&6; } 4637if ${ac_cv_prog_ac_ct_CC+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 if test -n "$ac_ct_CC"; then 4641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4642else 4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4644for as_dir in $PATH 4645do 4646 IFS=$as_save_IFS 4647 test -z "$as_dir" && as_dir=. 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4650 ac_cv_prog_ac_ct_CC="gcc" 4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4652 break 2 4653 fi 4654done 4655 done 4656IFS=$as_save_IFS 4657 4658fi 4659fi 4660ac_ct_CC=$ac_cv_prog_ac_ct_CC 4661if test -n "$ac_ct_CC"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4663$as_echo "$ac_ct_CC" >&6; } 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4666$as_echo "no" >&6; } 4667fi 4668 4669 if test "x$ac_ct_CC" = x; then 4670 CC="" 4671 else 4672 case $cross_compiling:$ac_tool_warned in 4673yes:) 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4676ac_tool_warned=yes ;; 4677esac 4678 CC=$ac_ct_CC 4679 fi 4680else 4681 CC="$ac_cv_prog_CC" 4682fi 4683 4684if test -z "$CC"; then 4685 if test -n "$ac_tool_prefix"; then 4686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4687set dummy ${ac_tool_prefix}cc; ac_word=$2 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4689$as_echo_n "checking for $ac_word... " >&6; } 4690if ${ac_cv_prog_CC+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 if test -n "$CC"; then 4694 ac_cv_prog_CC="$CC" # Let the user override the test. 4695else 4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4697for as_dir in $PATH 4698do 4699 IFS=$as_save_IFS 4700 test -z "$as_dir" && as_dir=. 4701 for ac_exec_ext in '' $ac_executable_extensions; do 4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4703 ac_cv_prog_CC="${ac_tool_prefix}cc" 4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4705 break 2 4706 fi 4707done 4708 done 4709IFS=$as_save_IFS 4710 4711fi 4712fi 4713CC=$ac_cv_prog_CC 4714if test -n "$CC"; then 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4716$as_echo "$CC" >&6; } 4717else 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4719$as_echo "no" >&6; } 4720fi 4721 4722 4723 fi 4724fi 4725if test -z "$CC"; then 4726 # Extract the first word of "cc", so it can be a program name with args. 4727set dummy cc; ac_word=$2 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4729$as_echo_n "checking for $ac_word... " >&6; } 4730if ${ac_cv_prog_CC+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 if test -n "$CC"; then 4734 ac_cv_prog_CC="$CC" # Let the user override the test. 4735else 4736 ac_prog_rejected=no 4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4738for as_dir in $PATH 4739do 4740 IFS=$as_save_IFS 4741 test -z "$as_dir" && as_dir=. 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4745 ac_prog_rejected=yes 4746 continue 4747 fi 4748 ac_cv_prog_CC="cc" 4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4750 break 2 4751 fi 4752done 4753 done 4754IFS=$as_save_IFS 4755 4756if test $ac_prog_rejected = yes; then 4757 # We found a bogon in the path, so make sure we never use it. 4758 set dummy $ac_cv_prog_CC 4759 shift 4760 if test $# != 0; then 4761 # We chose a different compiler from the bogus one. 4762 # However, it has the same basename, so the bogon will be chosen 4763 # first if we set CC to just the basename; use the full file name. 4764 shift 4765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4766 fi 4767fi 4768fi 4769fi 4770CC=$ac_cv_prog_CC 4771if test -n "$CC"; then 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4773$as_echo "$CC" >&6; } 4774else 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4776$as_echo "no" >&6; } 4777fi 4778 4779 4780fi 4781if test -z "$CC"; then 4782 if test -n "$ac_tool_prefix"; then 4783 for ac_prog in cl.exe 4784 do 4785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4786set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4788$as_echo_n "checking for $ac_word... " >&6; } 4789if ${ac_cv_prog_CC+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 if test -n "$CC"; then 4793 ac_cv_prog_CC="$CC" # Let the user override the test. 4794else 4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4796for as_dir in $PATH 4797do 4798 IFS=$as_save_IFS 4799 test -z "$as_dir" && as_dir=. 4800 for ac_exec_ext in '' $ac_executable_extensions; do 4801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4804 break 2 4805 fi 4806done 4807 done 4808IFS=$as_save_IFS 4809 4810fi 4811fi 4812CC=$ac_cv_prog_CC 4813if test -n "$CC"; then 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4815$as_echo "$CC" >&6; } 4816else 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4818$as_echo "no" >&6; } 4819fi 4820 4821 4822 test -n "$CC" && break 4823 done 4824fi 4825if test -z "$CC"; then 4826 ac_ct_CC=$CC 4827 for ac_prog in cl.exe 4828do 4829 # Extract the first word of "$ac_prog", so it can be a program name with args. 4830set dummy $ac_prog; ac_word=$2 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4832$as_echo_n "checking for $ac_word... " >&6; } 4833if ${ac_cv_prog_ac_ct_CC+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 if test -n "$ac_ct_CC"; then 4837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4838else 4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4840for as_dir in $PATH 4841do 4842 IFS=$as_save_IFS 4843 test -z "$as_dir" && as_dir=. 4844 for ac_exec_ext in '' $ac_executable_extensions; do 4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4846 ac_cv_prog_ac_ct_CC="$ac_prog" 4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4848 break 2 4849 fi 4850done 4851 done 4852IFS=$as_save_IFS 4853 4854fi 4855fi 4856ac_ct_CC=$ac_cv_prog_ac_ct_CC 4857if test -n "$ac_ct_CC"; then 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4859$as_echo "$ac_ct_CC" >&6; } 4860else 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4862$as_echo "no" >&6; } 4863fi 4864 4865 4866 test -n "$ac_ct_CC" && break 4867done 4868 4869 if test "x$ac_ct_CC" = x; then 4870 CC="" 4871 else 4872 case $cross_compiling:$ac_tool_warned in 4873yes:) 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4876ac_tool_warned=yes ;; 4877esac 4878 CC=$ac_ct_CC 4879 fi 4880fi 4881 4882fi 4883 4884 4885test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4887as_fn_error $? "no acceptable C compiler found in \$PATH 4888See \`config.log' for more details" "$LINENO" 5; } 4889 4890# Provide some information about the compiler. 4891$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4892set X $ac_compile 4893ac_compiler=$2 4894for ac_option in --version -v -V -qversion; do 4895 { { ac_try="$ac_compiler $ac_option >&5" 4896case "(($ac_try" in 4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4898 *) ac_try_echo=$ac_try;; 4899esac 4900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4901$as_echo "$ac_try_echo"; } >&5 4902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4903 ac_status=$? 4904 if test -s conftest.err; then 4905 sed '10a\ 4906... rest of stderr output deleted ... 4907 10q' conftest.err >conftest.er1 4908 cat conftest.er1 >&5 4909 fi 4910 rm -f conftest.er1 conftest.err 4911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4912 test $ac_status = 0; } 4913done 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4916$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4917if ${ac_cv_c_compiler_gnu+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921/* end confdefs.h. */ 4922 4923int 4924main () 4925{ 4926#ifndef __GNUC__ 4927 choke me 4928#endif 4929 4930 ; 4931 return 0; 4932} 4933_ACEOF 4934if ac_fn_c_try_compile "$LINENO"; then : 4935 ac_compiler_gnu=yes 4936else 4937 ac_compiler_gnu=no 4938fi 4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4940ac_cv_c_compiler_gnu=$ac_compiler_gnu 4941 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4944$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4945if test $ac_compiler_gnu = yes; then 4946 GCC=yes 4947else 4948 GCC= 4949fi 4950ac_test_CFLAGS=${CFLAGS+set} 4951ac_save_CFLAGS=$CFLAGS 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4953$as_echo_n "checking whether $CC accepts -g... " >&6; } 4954if ${ac_cv_prog_cc_g+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 ac_save_c_werror_flag=$ac_c_werror_flag 4958 ac_c_werror_flag=yes 4959 ac_cv_prog_cc_g=no 4960 CFLAGS="-g" 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963 4964int 4965main () 4966{ 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972if ac_fn_c_try_compile "$LINENO"; then : 4973 ac_cv_prog_cc_g=yes 4974else 4975 CFLAGS="" 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978 4979int 4980main () 4981{ 4982 4983 ; 4984 return 0; 4985} 4986_ACEOF 4987if ac_fn_c_try_compile "$LINENO"; then : 4988 4989else 4990 ac_c_werror_flag=$ac_save_c_werror_flag 4991 CFLAGS="-g" 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994 4995int 4996main () 4997{ 4998 4999 ; 5000 return 0; 5001} 5002_ACEOF 5003if ac_fn_c_try_compile "$LINENO"; then : 5004 ac_cv_prog_cc_g=yes 5005fi 5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5007fi 5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5009fi 5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5011 ac_c_werror_flag=$ac_save_c_werror_flag 5012fi 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5014$as_echo "$ac_cv_prog_cc_g" >&6; } 5015if test "$ac_test_CFLAGS" = set; then 5016 CFLAGS=$ac_save_CFLAGS 5017elif test $ac_cv_prog_cc_g = yes; then 5018 if test "$GCC" = yes; then 5019 CFLAGS="-g -O2" 5020 else 5021 CFLAGS="-g" 5022 fi 5023else 5024 if test "$GCC" = yes; then 5025 CFLAGS="-O2" 5026 else 5027 CFLAGS= 5028 fi 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5031$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5032if ${ac_cv_prog_cc_c89+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 ac_cv_prog_cc_c89=no 5036ac_save_CC=$CC 5037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038/* end confdefs.h. */ 5039#include <stdarg.h> 5040#include <stdio.h> 5041struct stat; 5042/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5043struct buf { int x; }; 5044FILE * (*rcsopen) (struct buf *, struct stat *, int); 5045static char *e (p, i) 5046 char **p; 5047 int i; 5048{ 5049 return p[i]; 5050} 5051static char *f (char * (*g) (char **, int), char **p, ...) 5052{ 5053 char *s; 5054 va_list v; 5055 va_start (v,p); 5056 s = g (p, va_arg (v,int)); 5057 va_end (v); 5058 return s; 5059} 5060 5061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5062 function prototypes and stuff, but not '\xHH' hex character constants. 5063 These don't provoke an error unfortunately, instead are silently treated 5064 as 'x'. The following induces an error, until -std is added to get 5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5066 array size at least. It's necessary to write '\x00'==0 to get something 5067 that's true only with -std. */ 5068int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5069 5070/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5071 inside strings and character constants. */ 5072#define FOO(x) 'x' 5073int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5074 5075int test (int i, double x); 5076struct s1 {int (*f) (int a);}; 5077struct s2 {int (*f) (double a);}; 5078int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5079int argc; 5080char **argv; 5081int 5082main () 5083{ 5084return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5085 ; 5086 return 0; 5087} 5088_ACEOF 5089for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5091do 5092 CC="$ac_save_CC $ac_arg" 5093 if ac_fn_c_try_compile "$LINENO"; then : 5094 ac_cv_prog_cc_c89=$ac_arg 5095fi 5096rm -f core conftest.err conftest.$ac_objext 5097 test "x$ac_cv_prog_cc_c89" != "xno" && break 5098done 5099rm -f conftest.$ac_ext 5100CC=$ac_save_CC 5101 5102fi 5103# AC_CACHE_VAL 5104case "x$ac_cv_prog_cc_c89" in 5105 x) 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5107$as_echo "none needed" >&6; } ;; 5108 xno) 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5110$as_echo "unsupported" >&6; } ;; 5111 *) 5112 CC="$CC $ac_cv_prog_cc_c89" 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5114$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5115esac 5116if test "x$ac_cv_prog_cc_c89" != xno; then : 5117 5118fi 5119 5120ac_ext=c 5121ac_cpp='$CPP $CPPFLAGS' 5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5124ac_compiler_gnu=$ac_cv_c_compiler_gnu 5125 5126 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5128$as_echo_n "checking $CC dependency flag... " >&6; } 5129echo 'void f(){}' >conftest.c 5130if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5131 DEPFLAG="-MM" 5132else 5133 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5134 DEPFLAG="-xM1" 5135 else 5136 DEPFLAG="-MM" # dunno do something 5137 fi 5138fi 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5140$as_echo "$DEPFLAG" >&6; } 5141rm -f conftest.c 5142 5143 5144 5145 5146 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5148$as_echo_n "checking whether $CC supports -Werror... " >&6; } 5149cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5150if eval \${cv_prog_cc_flag_$cache+:} false; then : 5151 $as_echo_n "(cached) " >&6 5152else 5153 5154echo 'void f(void){}' >conftest.c 5155if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5156eval "cv_prog_cc_flag_$cache=yes" 5157else 5158eval "cv_prog_cc_flag_$cache=no" 5159fi 5160rm -f conftest conftest.o conftest.c 5161 5162fi 5163 5164if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5166$as_echo "yes" >&6; } 5167: 5168ERRFLAG="-Werror" 5169else 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5171$as_echo "no" >&6; } 5172: 5173ERRFLAG="-errwarn" 5174fi 5175 5176 5177 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5179$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5180cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5181if eval \${cv_prog_cc_flag_$cache+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 5185echo 'void f(void){}' >conftest.c 5186if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5187eval "cv_prog_cc_flag_$cache=yes" 5188else 5189eval "cv_prog_cc_flag_$cache=no" 5190fi 5191rm -f conftest conftest.o conftest.c 5192 5193fi 5194 5195if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5197$as_echo "yes" >&6; } 5198: 5199ERRFLAG="$ERRFLAG -Wall" 5200else 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202$as_echo "no" >&6; } 5203: 5204ERRFLAG="$ERRFLAG -errfmt" 5205fi 5206 5207 5208 5209 5210 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5212$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5213cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5214if eval \${cv_prog_cc_flag_$cache+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 5218echo 'void f(void){}' >conftest.c 5219if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5220eval "cv_prog_cc_flag_$cache=yes" 5221else 5222eval "cv_prog_cc_flag_$cache=no" 5223fi 5224rm -f conftest conftest.o conftest.c 5225 5226fi 5227 5228if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5230$as_echo "yes" >&6; } 5231: 5232C99FLAG="-std=c99" 5233else 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5235$as_echo "no" >&6; } 5236: 5237 5238fi 5239 5240 5241 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5243$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5244cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5245if eval \${cv_prog_cc_flag_$cache+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 5249echo 'void f(void){}' >conftest.c 5250if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5251eval "cv_prog_cc_flag_$cache=yes" 5252else 5253eval "cv_prog_cc_flag_$cache=no" 5254fi 5255rm -f conftest conftest.o conftest.c 5256 5257fi 5258 5259if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5261$as_echo "yes" >&6; } 5262: 5263C99FLAG="-xc99" 5264else 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5266$as_echo "no" >&6; } 5267: 5268 5269fi 5270 5271 5272for ac_header in getopt.h time.h 5273do : 5274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5275ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5276" 5277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5278 cat >>confdefs.h <<_ACEOF 5279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5280_ACEOF 5281 5282fi 5283 5284done 5285 5286 5287 5288 5289 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5291$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5292cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5293if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295else 5296 5297echo ' 5298#include "confdefs.h" 5299#include <stdlib.h> 5300#include <ctype.h> 5301#include <sys/time.h> 5302#ifdef HAVE_TIME_H 5303#include <time.h> 5304#endif 5305#include <unistd.h> 5306#include <netdb.h> 5307#ifdef HAVE_GETOPT_H 5308#include <getopt.h> 5309#endif 5310 5311int test() { 5312 int a; 5313 char **opts = NULL; 5314 struct timeval tv; 5315 char *t; 5316 time_t time = 0; 5317 char *buf = NULL; 5318 const char* str = NULL; 5319 struct msghdr msg; 5320 msg.msg_control = 0; 5321 t = ctime_r(&time, buf); 5322 tv.tv_usec = 10; 5323 srandom(32); 5324 a = getopt(2, opts, "a"); 5325 a = isascii(32); 5326 str = gai_strerror(0); 5327 if(str && t && tv.tv_usec && msg.msg_control) 5328 a = 0; 5329 return a; 5330} 5331' > conftest.c 5332echo 'void f(){}' >>conftest.c 5333if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5334eval "cv_prog_cc_flag_needed_$cache=no" 5335else 5336 5337if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5338eval "cv_prog_cc_flag_needed_$cache=yes" 5339else 5340eval "cv_prog_cc_flag_needed_$cache=fail" 5341#echo 'Test with flag fails too!' 5342#cat conftest.c 5343#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5344#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5345#exit 1 5346fi 5347 5348fi 5349rm -f conftest conftest.c conftest.o 5350 5351fi 5352 5353if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5355$as_echo "yes" >&6; } 5356: 5357CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5358else 5359if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5361$as_echo "no" >&6; } 5362#echo 'Test with flag is no!' 5363#cat conftest.c 5364#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5365#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5366#exit 1 5367: 5368 5369else 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5371$as_echo "failed" >&6; } 5372: 5373 5374fi 5375fi 5376 5377 5378 5379 5380 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5382$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5383cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5384if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 5388echo ' 5389#include "confdefs.h" 5390#include <stdlib.h> 5391#include <ctype.h> 5392#include <sys/time.h> 5393#ifdef HAVE_TIME_H 5394#include <time.h> 5395#endif 5396#include <unistd.h> 5397#include <netdb.h> 5398#ifdef HAVE_GETOPT_H 5399#include <getopt.h> 5400#endif 5401 5402int test() { 5403 int a; 5404 char **opts = NULL; 5405 struct timeval tv; 5406 char *t; 5407 time_t time = 0; 5408 char *buf = NULL; 5409 const char* str = NULL; 5410 struct msghdr msg; 5411 msg.msg_control = 0; 5412 t = ctime_r(&time, buf); 5413 tv.tv_usec = 10; 5414 srandom(32); 5415 a = getopt(2, opts, "a"); 5416 a = isascii(32); 5417 str = gai_strerror(0); 5418 if(str && t && tv.tv_usec && msg.msg_control) 5419 a = 0; 5420 return a; 5421} 5422' > conftest.c 5423echo 'void f(){}' >>conftest.c 5424if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5425eval "cv_prog_cc_flag_needed_$cache=no" 5426else 5427 5428if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5429eval "cv_prog_cc_flag_needed_$cache=yes" 5430else 5431eval "cv_prog_cc_flag_needed_$cache=fail" 5432#echo 'Test with flag fails too!' 5433#cat conftest.c 5434#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5435#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5436#exit 1 5437fi 5438 5439fi 5440rm -f conftest conftest.c conftest.o 5441 5442fi 5443 5444if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5446$as_echo "yes" >&6; } 5447: 5448CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5449else 5450if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5452$as_echo "no" >&6; } 5453#echo 'Test with flag is no!' 5454#cat conftest.c 5455#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5456#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5457#exit 1 5458: 5459 5460else 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5462$as_echo "failed" >&6; } 5463: 5464 5465fi 5466fi 5467 5468 5469 5470 5471 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5473$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5474cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5475if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 5479echo ' 5480#include <stdbool.h> 5481#include <ctype.h> 5482int test() { 5483 int a = 0; 5484 return a; 5485} 5486' > conftest.c 5487echo 'void f(){}' >>conftest.c 5488if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5489eval "cv_prog_cc_flag_needed_$cache=no" 5490else 5491 5492if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5493eval "cv_prog_cc_flag_needed_$cache=yes" 5494else 5495eval "cv_prog_cc_flag_needed_$cache=fail" 5496#echo 'Test with flag fails too!' 5497#cat conftest.c 5498#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5499#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5500#exit 1 5501fi 5502 5503fi 5504rm -f conftest conftest.c conftest.o 5505 5506fi 5507 5508if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5510$as_echo "yes" >&6; } 5511: 5512CFLAGS="$CFLAGS $C99FLAG" 5513else 5514if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516$as_echo "no" >&6; } 5517#echo 'Test with flag is no!' 5518#cat conftest.c 5519#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5520#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5521#exit 1 5522: 5523 5524else 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5526$as_echo "failed" >&6; } 5527: 5528 5529fi 5530fi 5531 5532 5533 5534 5535 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 5537$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 5538cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 5539if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 5543echo ' 5544#include <ctype.h> 5545 5546int test() { 5547 int a; 5548 a = isascii(32); 5549 return a; 5550} 5551' > conftest.c 5552echo 'void f(){}' >>conftest.c 5553if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5554eval "cv_prog_cc_flag_needed_$cache=no" 5555else 5556 5557if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5558eval "cv_prog_cc_flag_needed_$cache=yes" 5559else 5560eval "cv_prog_cc_flag_needed_$cache=fail" 5561#echo 'Test with flag fails too!' 5562#cat conftest.c 5563#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5564#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5565#exit 1 5566fi 5567 5568fi 5569rm -f conftest conftest.c conftest.o 5570 5571fi 5572 5573if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5575$as_echo "yes" >&6; } 5576: 5577CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 5578else 5579if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5581$as_echo "no" >&6; } 5582#echo 'Test with flag is no!' 5583#cat conftest.c 5584#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5585#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5586#exit 1 5587: 5588 5589else 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5591$as_echo "failed" >&6; } 5592: 5593 5594fi 5595fi 5596 5597 5598 5599 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5602$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5603cache=_D_GNU_SOURCE 5604if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5605 $as_echo_n "(cached) " >&6 5606else 5607 5608echo ' 5609#include <netinet/in.h> 5610 5611int test() { 5612 struct in6_pktinfo inf; 5613 int a = (int)sizeof(inf); 5614 return a; 5615} 5616' > conftest.c 5617echo 'void f(){}' >>conftest.c 5618if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5619eval "cv_prog_cc_flag_needed_$cache=no" 5620else 5621 5622if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5623eval "cv_prog_cc_flag_needed_$cache=yes" 5624else 5625eval "cv_prog_cc_flag_needed_$cache=fail" 5626#echo 'Test with flag fails too!' 5627#cat conftest.c 5628#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5629#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5630#exit 1 5631fi 5632 5633fi 5634rm -f conftest conftest.c conftest.o 5635 5636fi 5637 5638if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5640$as_echo "yes" >&6; } 5641: 5642CFLAGS="$CFLAGS -D_GNU_SOURCE" 5643else 5644if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5646$as_echo "no" >&6; } 5647#echo 'Test with flag is no!' 5648#cat conftest.c 5649#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5650#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5651#exit 1 5652: 5653 5654else 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5656$as_echo "failed" >&6; } 5657: 5658 5659fi 5660fi 5661 5662 5663# check again for GNU_SOURCE for setresgid. May fail if setresgid 5664# is not available at all. -D_FRSRESGID is to make this check unique. 5665# otherwise we would get the previous cached result. 5666 5667 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5670$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5671cache=_D_GNU_SOURCE__D_FRSRESGID 5672if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674else 5675 5676echo ' 5677#include <unistd.h> 5678 5679int test() { 5680 int a = setresgid(0,0,0); 5681 a = setresuid(0,0,0); 5682 return a; 5683} 5684' > conftest.c 5685echo 'void f(){}' >>conftest.c 5686if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5687eval "cv_prog_cc_flag_needed_$cache=no" 5688else 5689 5690if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5691eval "cv_prog_cc_flag_needed_$cache=yes" 5692else 5693eval "cv_prog_cc_flag_needed_$cache=fail" 5694#echo 'Test with flag fails too!' 5695#cat conftest.c 5696#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5697#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5698#exit 1 5699fi 5700 5701fi 5702rm -f conftest conftest.c conftest.o 5703 5704fi 5705 5706if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5708$as_echo "yes" >&6; } 5709: 5710CFLAGS="$CFLAGS -D_GNU_SOURCE" 5711else 5712if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5714$as_echo "no" >&6; } 5715#echo 'Test with flag is no!' 5716#cat conftest.c 5717#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5718#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5719#exit 1 5720: 5721 5722else 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5724$as_echo "failed" >&6; } 5725: 5726 5727fi 5728fi 5729 5730 5731 5732 5733 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5735$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5736cache=_D_POSIX_C_SOURCE_200112 5737if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739else 5740 5741echo ' 5742#include "confdefs.h" 5743#ifdef HAVE_TIME_H 5744#include <time.h> 5745#endif 5746#include <netdb.h> 5747 5748int test() { 5749 int a = 0; 5750 char *t; 5751 time_t time = 0; 5752 char *buf = NULL; 5753 const char* str = NULL; 5754 t = ctime_r(&time, buf); 5755 str = gai_strerror(0); 5756 if(t && str) 5757 a = 0; 5758 return a; 5759} 5760' > conftest.c 5761echo 'void f(){}' >>conftest.c 5762if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5763eval "cv_prog_cc_flag_needed_$cache=no" 5764else 5765 5766if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5767eval "cv_prog_cc_flag_needed_$cache=yes" 5768else 5769eval "cv_prog_cc_flag_needed_$cache=fail" 5770#echo 'Test with flag fails too!' 5771#cat conftest.c 5772#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5773#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5774#exit 1 5775fi 5776 5777fi 5778rm -f conftest conftest.c conftest.o 5779 5780fi 5781 5782if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5784$as_echo "yes" >&6; } 5785: 5786CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5787else 5788if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791#echo 'Test with flag is no!' 5792#cat conftest.c 5793#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5794#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5795#exit 1 5796: 5797 5798else 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5800$as_echo "failed" >&6; } 5801: 5802 5803fi 5804fi 5805 5806 5807 5808 5809 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5811$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5812cache=_D__EXTENSIONS__ 5813if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 5817echo ' 5818#include "confdefs.h" 5819#include <stdlib.h> 5820#include <ctype.h> 5821#include <sys/time.h> 5822#ifdef HAVE_TIME_H 5823#include <time.h> 5824#endif 5825#include <unistd.h> 5826#ifdef HAVE_GETOPT_H 5827#include <getopt.h> 5828#endif 5829 5830int test() { 5831 int a; 5832 char **opts = NULL; 5833 struct timeval tv; 5834 tv.tv_usec = 10; 5835 srandom(32); 5836 a = getopt(2, opts, "a"); 5837 a = isascii(32); 5838 if(tv.tv_usec) 5839 a = 0; 5840 return a; 5841} 5842' > conftest.c 5843echo 'void f(){}' >>conftest.c 5844if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5845eval "cv_prog_cc_flag_needed_$cache=no" 5846else 5847 5848if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5849eval "cv_prog_cc_flag_needed_$cache=yes" 5850else 5851eval "cv_prog_cc_flag_needed_$cache=fail" 5852#echo 'Test with flag fails too!' 5853#cat conftest.c 5854#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5855#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5856#exit 1 5857fi 5858 5859fi 5860rm -f conftest conftest.c conftest.o 5861 5862fi 5863 5864if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5866$as_echo "yes" >&6; } 5867: 5868CFLAGS="$CFLAGS -D__EXTENSIONS__" 5869else 5870if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872$as_echo "no" >&6; } 5873#echo 'Test with flag is no!' 5874#cat conftest.c 5875#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5876#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5877#exit 1 5878: 5879 5880else 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5882$as_echo "failed" >&6; } 5883: 5884 5885fi 5886fi 5887 5888 5889 5890 5891# debug mode flags warnings 5892# Check whether --enable-checking was given. 5893if test "${enable_checking+set}" = set; then : 5894 enableval=$enable_checking; 5895fi 5896 5897# Check whether --enable-debug was given. 5898if test "${enable_debug+set}" = set; then : 5899 enableval=$enable_debug; 5900fi 5901 5902if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5903else debug_enabled="$enable_checking"; fi 5904 5905case "$debug_enabled" in 5906 yes) 5907 5908 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5910$as_echo_n "checking whether $CC supports -W... " >&6; } 5911cache=`echo W | sed 'y%.=/+-%___p_%'` 5912if eval \${cv_prog_cc_flag_$cache+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914else 5915 5916echo 'void f(void){}' >conftest.c 5917if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5918eval "cv_prog_cc_flag_$cache=yes" 5919else 5920eval "cv_prog_cc_flag_$cache=no" 5921fi 5922rm -f conftest conftest.o conftest.c 5923 5924fi 5925 5926if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5928$as_echo "yes" >&6; } 5929: 5930CFLAGS="$CFLAGS -W" 5931else 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5933$as_echo "no" >&6; } 5934: 5935 5936fi 5937 5938 5939 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5941$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5942cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5943if eval \${cv_prog_cc_flag_$cache+:} false; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 5947echo 'void f(void){}' >conftest.c 5948if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5949eval "cv_prog_cc_flag_$cache=yes" 5950else 5951eval "cv_prog_cc_flag_$cache=no" 5952fi 5953rm -f conftest conftest.o conftest.c 5954 5955fi 5956 5957if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5959$as_echo "yes" >&6; } 5960: 5961CFLAGS="$CFLAGS -Wall" 5962else 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964$as_echo "no" >&6; } 5965: 5966 5967fi 5968 5969 5970 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5972$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5973cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5974if eval \${cv_prog_cc_flag_$cache+:} false; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 5978echo 'void f(void){}' >conftest.c 5979if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5980eval "cv_prog_cc_flag_$cache=yes" 5981else 5982eval "cv_prog_cc_flag_$cache=no" 5983fi 5984rm -f conftest conftest.o conftest.c 5985 5986fi 5987 5988if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5990$as_echo "yes" >&6; } 5991: 5992CFLAGS="$CFLAGS -Wextra" 5993else 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995$as_echo "no" >&6; } 5996: 5997 5998fi 5999 6000 6001 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 6003$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 6004cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 6005if eval \${cv_prog_cc_flag_$cache+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 6009echo 'void f(void){}' >conftest.c 6010if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 6011eval "cv_prog_cc_flag_$cache=yes" 6012else 6013eval "cv_prog_cc_flag_$cache=no" 6014fi 6015rm -f conftest conftest.o conftest.c 6016 6017fi 6018 6019if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6021$as_echo "yes" >&6; } 6022: 6023CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6024else 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026$as_echo "no" >&6; } 6027: 6028 6029fi 6030 6031 6032$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 6033 6034 ;; 6035 no|*) 6036 # nothing to do. 6037 ;; 6038esac 6039if test "$default_cflags" = "yes"; then 6040 # only when CFLAGS was "" at the start, if the users wants to 6041 # override we shouldn't add default cflags, because they wouldn't 6042 # be able to turn off these options and set the CFLAGS wanted. 6043 6044 # Check whether --enable-flto was given. 6045if test "${enable_flto+set}" = set; then : 6046 enableval=$enable_flto; 6047fi 6048 6049 if test "x$enable_flto" != "xno"; then : 6050 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6052$as_echo_n "checking if $CC supports -flto... " >&6; } 6053 BAKCFLAGS="$CFLAGS" 6054 CFLAGS="$CFLAGS -flto" 6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056/* end confdefs.h. */ 6057 6058int 6059main () 6060{ 6061 6062 ; 6063 return 0; 6064} 6065_ACEOF 6066if ac_fn_c_try_link "$LINENO"; then : 6067 6068 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6069 CFLAGS="$BAKCFLAGS" 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6071$as_echo "no" >&6; } 6072 else 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6074$as_echo "yes" >&6; } 6075 fi 6076 rm -f conftest conftest.c conftest.o 6077 6078else 6079 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080$as_echo "no" >&6; } 6081fi 6082rm -f core conftest.err conftest.$ac_objext \ 6083 conftest$ac_exeext conftest.$ac_ext 6084 6085fi 6086 6087 6088 # Check whether --enable-pie was given. 6089if test "${enable_pie+set}" = set; then : 6090 enableval=$enable_pie; 6091fi 6092 6093 if test "x$enable_pie" = "xyes"; then : 6094 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6096$as_echo_n "checking if $CC supports PIE... " >&6; } 6097 BAKLDFLAGS="$LDFLAGS" 6098 BAKCFLAGS="$CFLAGS" 6099 LDFLAGS="$LDFLAGS -pie" 6100 CFLAGS="$CFLAGS -fPIE" 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102/* end confdefs.h. */ 6103 6104int 6105main () 6106{ 6107 6108 ; 6109 return 0; 6110} 6111_ACEOF 6112if ac_fn_c_try_link "$LINENO"; then : 6113 6114 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6115 LDFLAGS="$BAKLDFLAGS" 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117$as_echo "no" >&6; } 6118 else 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6120$as_echo "yes" >&6; } 6121 fi 6122 rm -f conftest conftest.c conftest.o 6123 6124else 6125 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128rm -f core conftest.err conftest.$ac_objext \ 6129 conftest$ac_exeext conftest.$ac_ext 6130 6131fi 6132 6133 6134 # Check whether --enable-relro_now was given. 6135if test "${enable_relro_now+set}" = set; then : 6136 enableval=$enable_relro_now; 6137fi 6138 6139 if test "x$enable_relro_now" = "xyes"; then : 6140 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6142$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6143 BAKLDFLAGS="$LDFLAGS" 6144 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147 6148int 6149main () 6150{ 6151 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 6158 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6159 LDFLAGS="$BAKLDFLAGS" 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6161$as_echo "no" >&6; } 6162 else 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6164$as_echo "yes" >&6; } 6165 fi 6166 rm -f conftest conftest.c conftest.o 6167 6168else 6169 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6170$as_echo "no" >&6; } 6171fi 6172rm -f core conftest.err conftest.$ac_objext \ 6173 conftest$ac_exeext conftest.$ac_ext 6174 6175fi 6176 6177fi 6178 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6180$as_echo_n "checking for inline... " >&6; } 6181if ${ac_cv_c_inline+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 ac_cv_c_inline=no 6185for ac_kw in inline __inline__ __inline; do 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188#ifndef __cplusplus 6189typedef int foo_t; 6190static $ac_kw foo_t static_foo () {return 0; } 6191$ac_kw foo_t foo () {return 0; } 6192#endif 6193 6194_ACEOF 6195if ac_fn_c_try_compile "$LINENO"; then : 6196 ac_cv_c_inline=$ac_kw 6197fi 6198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6199 test "$ac_cv_c_inline" != no && break 6200done 6201 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6204$as_echo "$ac_cv_c_inline" >&6; } 6205 6206case $ac_cv_c_inline in 6207 inline | yes) ;; 6208 *) 6209 case $ac_cv_c_inline in 6210 no) ac_val=;; 6211 *) ac_val=$ac_cv_c_inline;; 6212 esac 6213 cat >>confdefs.h <<_ACEOF 6214#ifndef __cplusplus 6215#define inline $ac_val 6216#endif 6217_ACEOF 6218 ;; 6219esac 6220 6221 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6223$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6224if ${ac_cv_c_format_attribute+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 ac_cv_c_format_attribute=no 6228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230#include <stdio.h> 6231void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6232void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6233 6234int 6235main () 6236{ 6237 6238 f ("%s", "str"); 6239 6240 ; 6241 return 0; 6242} 6243_ACEOF 6244if ac_fn_c_try_compile "$LINENO"; then : 6245 ac_cv_c_format_attribute="yes" 6246else 6247 ac_cv_c_format_attribute="no" 6248fi 6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6250 6251fi 6252 6253 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6255$as_echo "$ac_cv_c_format_attribute" >&6; } 6256if test $ac_cv_c_format_attribute = yes; then 6257 6258$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6259 6260fi 6261 6262 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6264$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6265if ${ac_cv_c_unused_attribute+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 ac_cv_c_unused_attribute=no 6269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271#include <stdio.h> 6272void f (char *u __attribute__((unused))); 6273 6274int 6275main () 6276{ 6277 6278 f ("x"); 6279 6280 ; 6281 return 0; 6282} 6283_ACEOF 6284if ac_fn_c_try_compile "$LINENO"; then : 6285 ac_cv_c_unused_attribute="yes" 6286else 6287 ac_cv_c_unused_attribute="no" 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6290 6291fi 6292 6293 6294 6295 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6297$as_echo "$ac_cv_c_unused_attribute" >&6; } 6298if test $ac_cv_c_unused_attribute = yes; then 6299 6300$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6301 6302fi 6303 6304 6305 6306 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6308$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6309if ${ac_cv_c_weak_attribute+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 ac_cv_c_weak_attribute=no 6313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314/* end confdefs.h. */ 6315 #include <stdio.h> 6316__attribute__((weak)) void f(int x) { printf("%d", x); } 6317 6318int 6319main () 6320{ 6321 6322 f(1); 6323 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328if ac_fn_c_try_compile "$LINENO"; then : 6329 ac_cv_c_weak_attribute="yes" 6330else 6331 ac_cv_c_weak_attribute="no" 6332fi 6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6334 6335fi 6336 6337 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6339$as_echo "$ac_cv_c_weak_attribute" >&6; } 6340if test $ac_cv_c_weak_attribute = yes; then 6341 6342$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6343 6344 6345$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6346 6347fi 6348 6349 6350 6351 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6353$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6354if ${ac_cv_c_noreturn_attribute+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 ac_cv_c_noreturn_attribute=no 6358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360 #include <stdio.h> 6361__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6362 6363int 6364main () 6365{ 6366 6367 f(1); 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO"; then : 6374 ac_cv_c_noreturn_attribute="yes" 6375else 6376 ac_cv_c_noreturn_attribute="no" 6377fi 6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6379 6380fi 6381 6382 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6384$as_echo "$ac_cv_c_noreturn_attribute" >&6; } 6385if test $ac_cv_c_noreturn_attribute = yes; then 6386 6387$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6388 6389 6390$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6391 6392fi 6393 6394 6395if test "$srcdir" != "."; then 6396 CPPFLAGS="$CPPFLAGS -I$srcdir" 6397fi 6398 6399 6400 6401 6402 6403for ac_prog in flex lex 6404do 6405 # Extract the first word of "$ac_prog", so it can be a program name with args. 6406set dummy $ac_prog; ac_word=$2 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6408$as_echo_n "checking for $ac_word... " >&6; } 6409if ${ac_cv_prog_LEX+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 if test -n "$LEX"; then 6413 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6414else 6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6416for as_dir in $PATH 6417do 6418 IFS=$as_save_IFS 6419 test -z "$as_dir" && as_dir=. 6420 for ac_exec_ext in '' $ac_executable_extensions; do 6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6422 ac_cv_prog_LEX="$ac_prog" 6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6424 break 2 6425 fi 6426done 6427 done 6428IFS=$as_save_IFS 6429 6430fi 6431fi 6432LEX=$ac_cv_prog_LEX 6433if test -n "$LEX"; then 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6435$as_echo "$LEX" >&6; } 6436else 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6438$as_echo "no" >&6; } 6439fi 6440 6441 6442 test -n "$LEX" && break 6443done 6444test -n "$LEX" || LEX=":" 6445 6446if test "x$LEX" != "x:"; then 6447 cat >conftest.l <<_ACEOF 6448%% 6449a { ECHO; } 6450b { REJECT; } 6451c { yymore (); } 6452d { yyless (1); } 6453e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6454 yyless ((input () != 0)); } 6455f { unput (yytext[0]); } 6456. { BEGIN INITIAL; } 6457%% 6458#ifdef YYTEXT_POINTER 6459extern char *yytext; 6460#endif 6461int 6462main (void) 6463{ 6464 return ! yylex () + ! yywrap (); 6465} 6466_ACEOF 6467{ { ac_try="$LEX conftest.l" 6468case "(($ac_try" in 6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6470 *) ac_try_echo=$ac_try;; 6471esac 6472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6473$as_echo "$ac_try_echo"; } >&5 6474 (eval "$LEX conftest.l") 2>&5 6475 ac_status=$? 6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6477 test $ac_status = 0; } 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6479$as_echo_n "checking lex output file root... " >&6; } 6480if ${ac_cv_prog_lex_root+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 6484if test -f lex.yy.c; then 6485 ac_cv_prog_lex_root=lex.yy 6486elif test -f lexyy.c; then 6487 ac_cv_prog_lex_root=lexyy 6488else 6489 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6490fi 6491fi 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6493$as_echo "$ac_cv_prog_lex_root" >&6; } 6494LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6495 6496if test -z "${LEXLIB+set}"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6498$as_echo_n "checking lex library... " >&6; } 6499if ${ac_cv_lib_lex+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 6503 ac_save_LIBS=$LIBS 6504 ac_cv_lib_lex='none needed' 6505 for ac_lib in '' -lfl -ll; do 6506 LIBS="$ac_lib $ac_save_LIBS" 6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508/* end confdefs.h. */ 6509`cat $LEX_OUTPUT_ROOT.c` 6510_ACEOF 6511if ac_fn_c_try_link "$LINENO"; then : 6512 ac_cv_lib_lex=$ac_lib 6513fi 6514rm -f core conftest.err conftest.$ac_objext \ 6515 conftest$ac_exeext conftest.$ac_ext 6516 test "$ac_cv_lib_lex" != 'none needed' && break 6517 done 6518 LIBS=$ac_save_LIBS 6519 6520fi 6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6522$as_echo "$ac_cv_lib_lex" >&6; } 6523 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6524fi 6525 6526 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6528$as_echo_n "checking whether yytext is a pointer... " >&6; } 6529if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 # POSIX says lex can declare yytext either as a pointer or an array; the 6533# default is implementation-dependent. Figure out which it is, since 6534# not all implementations provide the %pointer and %array declarations. 6535ac_cv_prog_lex_yytext_pointer=no 6536ac_save_LIBS=$LIBS 6537LIBS="$LEXLIB $ac_save_LIBS" 6538cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540 6541 #define YYTEXT_POINTER 1 6542`cat $LEX_OUTPUT_ROOT.c` 6543_ACEOF 6544if ac_fn_c_try_link "$LINENO"; then : 6545 ac_cv_prog_lex_yytext_pointer=yes 6546fi 6547rm -f core conftest.err conftest.$ac_objext \ 6548 conftest$ac_exeext conftest.$ac_ext 6549LIBS=$ac_save_LIBS 6550 6551fi 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6553$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6554if test $ac_cv_prog_lex_yytext_pointer = yes; then 6555 6556$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6557 6558fi 6559rm -f conftest.l $LEX_OUTPUT_ROOT.c 6560 6561fi 6562if test "$LEX" != "" -a "$LEX" != ":"; then 6563 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6565$as_echo_n "checking for yylex_destroy... " >&6; } 6566 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6567 6568$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6569 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6571$as_echo "yes" >&6; } 6572 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6573$as_echo "no" >&6; }; 6574 LEX=":" 6575 fi 6576 6577fi 6578if test "$LEX" != "" -a "$LEX" != ":"; then 6579 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 6581$as_echo_n "checking for lex %option... " >&6; } 6582 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 6583%option nounput 6584%% 6585EOF 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6587$as_echo "yes" >&6; } 6588 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6589$as_echo "no" >&6; }; 6590 LEX=":" 6591 fi 6592 6593fi 6594for ac_prog in 'bison -y' byacc 6595do 6596 # Extract the first word of "$ac_prog", so it can be a program name with args. 6597set dummy $ac_prog; ac_word=$2 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6599$as_echo_n "checking for $ac_word... " >&6; } 6600if ${ac_cv_prog_YACC+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 if test -n "$YACC"; then 6604 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6605else 6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6607for as_dir in $PATH 6608do 6609 IFS=$as_save_IFS 6610 test -z "$as_dir" && as_dir=. 6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6613 ac_cv_prog_YACC="$ac_prog" 6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6615 break 2 6616 fi 6617done 6618 done 6619IFS=$as_save_IFS 6620 6621fi 6622fi 6623YACC=$ac_cv_prog_YACC 6624if test -n "$YACC"; then 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6626$as_echo "$YACC" >&6; } 6627else 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6629$as_echo "no" >&6; } 6630fi 6631 6632 6633 test -n "$YACC" && break 6634done 6635test -n "$YACC" || YACC="yacc" 6636 6637# Extract the first word of "doxygen", so it can be a program name with args. 6638set dummy doxygen; ac_word=$2 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6640$as_echo_n "checking for $ac_word... " >&6; } 6641if ${ac_cv_prog_doxygen+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 if test -n "$doxygen"; then 6645 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6646else 6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648for as_dir in $PATH 6649do 6650 IFS=$as_save_IFS 6651 test -z "$as_dir" && as_dir=. 6652 for ac_exec_ext in '' $ac_executable_extensions; do 6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6654 ac_cv_prog_doxygen="doxygen" 6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6656 break 2 6657 fi 6658done 6659 done 6660IFS=$as_save_IFS 6661 6662fi 6663fi 6664doxygen=$ac_cv_prog_doxygen 6665if test -n "$doxygen"; then 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6667$as_echo "$doxygen" >&6; } 6668else 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6670$as_echo "no" >&6; } 6671fi 6672 6673 6674if test -n "$ac_tool_prefix"; then 6675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6676set dummy ${ac_tool_prefix}strip; ac_word=$2 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6678$as_echo_n "checking for $ac_word... " >&6; } 6679if ${ac_cv_prog_STRIP+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 if test -n "$STRIP"; then 6683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6684else 6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6686for as_dir in $PATH 6687do 6688 IFS=$as_save_IFS 6689 test -z "$as_dir" && as_dir=. 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6692 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6694 break 2 6695 fi 6696done 6697 done 6698IFS=$as_save_IFS 6699 6700fi 6701fi 6702STRIP=$ac_cv_prog_STRIP 6703if test -n "$STRIP"; then 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6705$as_echo "$STRIP" >&6; } 6706else 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6708$as_echo "no" >&6; } 6709fi 6710 6711 6712fi 6713if test -z "$ac_cv_prog_STRIP"; then 6714 ac_ct_STRIP=$STRIP 6715 # Extract the first word of "strip", so it can be a program name with args. 6716set dummy strip; ac_word=$2 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6718$as_echo_n "checking for $ac_word... " >&6; } 6719if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 if test -n "$ac_ct_STRIP"; then 6723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6724else 6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6726for as_dir in $PATH 6727do 6728 IFS=$as_save_IFS 6729 test -z "$as_dir" && as_dir=. 6730 for ac_exec_ext in '' $ac_executable_extensions; do 6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6732 ac_cv_prog_ac_ct_STRIP="strip" 6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6734 break 2 6735 fi 6736done 6737 done 6738IFS=$as_save_IFS 6739 6740fi 6741fi 6742ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6743if test -n "$ac_ct_STRIP"; then 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6745$as_echo "$ac_ct_STRIP" >&6; } 6746else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; } 6749fi 6750 6751 if test "x$ac_ct_STRIP" = x; then 6752 STRIP="" 6753 else 6754 case $cross_compiling:$ac_tool_warned in 6755yes:) 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6758ac_tool_warned=yes ;; 6759esac 6760 STRIP=$ac_ct_STRIP 6761 fi 6762else 6763 STRIP="$ac_cv_prog_STRIP" 6764fi 6765 6766ac_aux_dir= 6767for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6768 if test -f "$ac_dir/install-sh"; then 6769 ac_aux_dir=$ac_dir 6770 ac_install_sh="$ac_aux_dir/install-sh -c" 6771 break 6772 elif test -f "$ac_dir/install.sh"; then 6773 ac_aux_dir=$ac_dir 6774 ac_install_sh="$ac_aux_dir/install.sh -c" 6775 break 6776 elif test -f "$ac_dir/shtool"; then 6777 ac_aux_dir=$ac_dir 6778 ac_install_sh="$ac_aux_dir/shtool install -c" 6779 break 6780 fi 6781done 6782if test -z "$ac_aux_dir"; then 6783 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6784fi 6785 6786# These three variables are undocumented and unsupported, 6787# and are intended to be withdrawn in a future Autoconf release. 6788# They can cause serious problems if a builder's source tree is in a directory 6789# whose full name contains unusual characters. 6790ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6791ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6792ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6793 6794 6795# Make sure we can run config.sub. 6796$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6797 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6798 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6800$as_echo_n "checking build system type... " >&6; } 6801if ${ac_cv_build+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 ac_build_alias=$build_alias 6805test "x$ac_build_alias" = x && 6806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6807test "x$ac_build_alias" = x && 6808 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6809ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6811 6812fi 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6814$as_echo "$ac_cv_build" >&6; } 6815case $ac_cv_build in 6816*-*-*) ;; 6817*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6818esac 6819build=$ac_cv_build 6820ac_save_IFS=$IFS; IFS='-' 6821set x $ac_cv_build 6822shift 6823build_cpu=$1 6824build_vendor=$2 6825shift; shift 6826# Remember, the first character of IFS is used to create $*, 6827# except with old shells: 6828build_os=$* 6829IFS=$ac_save_IFS 6830case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6831 6832 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6834$as_echo_n "checking host system type... " >&6; } 6835if ${ac_cv_host+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 if test "x$host_alias" = x; then 6839 ac_cv_host=$ac_cv_build 6840else 6841 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6843fi 6844 6845fi 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6847$as_echo "$ac_cv_host" >&6; } 6848case $ac_cv_host in 6849*-*-*) ;; 6850*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6851esac 6852host=$ac_cv_host 6853ac_save_IFS=$IFS; IFS='-' 6854set x $ac_cv_host 6855shift 6856host_cpu=$1 6857host_vendor=$2 6858shift; shift 6859# Remember, the first character of IFS is used to create $*, 6860# except with old shells: 6861host_os=$* 6862IFS=$ac_save_IFS 6863case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6864 6865 6866 6867# skip these tests, we do not need them. 6868 6869 6870 6871 6872 6873 6874 6875 6876# always use ./libtool unless override from commandline (libtool=mylibtool) 6877if test -z "$libtool"; then 6878 libtool="./libtool" 6879fi 6880 6881# avoid libtool max commandline length test on systems that fork slowly. 6882 6883if echo "$host_os" | grep "sunos4" >/dev/null; then 6884 lt_cv_sys_max_cmd_len=32750; 6885fi 6886if test -n "$ac_tool_prefix"; then 6887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6888set dummy ${ac_tool_prefix}ar; ac_word=$2 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890$as_echo_n "checking for $ac_word... " >&6; } 6891if ${ac_cv_path_AR+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 case $AR in 6895 [\\/]* | ?:[\\/]*) 6896 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6897 ;; 6898 *) 6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6900for as_dir in $PATH 6901do 6902 IFS=$as_save_IFS 6903 test -z "$as_dir" && as_dir=. 6904 for ac_exec_ext in '' $ac_executable_extensions; do 6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6906 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6908 break 2 6909 fi 6910done 6911 done 6912IFS=$as_save_IFS 6913 6914 ;; 6915esac 6916fi 6917AR=$ac_cv_path_AR 6918if test -n "$AR"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6920$as_echo "$AR" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 6927fi 6928if test -z "$ac_cv_path_AR"; then 6929 ac_pt_AR=$AR 6930 # Extract the first word of "ar", so it can be a program name with args. 6931set dummy ar; ac_word=$2 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if ${ac_cv_path_ac_pt_AR+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 case $ac_pt_AR in 6938 [\\/]* | ?:[\\/]*) 6939 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6940 ;; 6941 *) 6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6949 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957 ;; 6958esac 6959fi 6960ac_pt_AR=$ac_cv_path_ac_pt_AR 6961if test -n "$ac_pt_AR"; then 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6963$as_echo "$ac_pt_AR" >&6; } 6964else 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6966$as_echo "no" >&6; } 6967fi 6968 6969 if test "x$ac_pt_AR" = x; then 6970 AR="false" 6971 else 6972 case $cross_compiling:$ac_tool_warned in 6973yes:) 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6976ac_tool_warned=yes ;; 6977esac 6978 AR=$ac_pt_AR 6979 fi 6980else 6981 AR="$ac_cv_path_AR" 6982fi 6983 6984if test $AR = false; then 6985 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6986fi 6987 6988case `pwd` in 6989 *\ * | *\ *) 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6991$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6992esac 6993 6994 6995 6996macro_version='2.4.6' 6997macro_revision='2.4.6' 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011ltmain=$ac_aux_dir/ltmain.sh 7012 7013# Backslashify metacharacters that are still active within 7014# double-quoted strings. 7015sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7016 7017# Same as above, but do not quote variable references. 7018double_quote_subst='s/\(["`\\]\)/\\\1/g' 7019 7020# Sed substitution to delay expansion of an escaped shell variable in a 7021# double_quote_subst'ed string. 7022delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7023 7024# Sed substitution to delay expansion of an escaped single quote. 7025delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7026 7027# Sed substitution to avoid accidental globbing in evaled expressions 7028no_glob_subst='s/\*/\\\*/g' 7029 7030ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7031ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7032ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7033 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7035$as_echo_n "checking how to print strings... " >&6; } 7036# Test print first, because it will be a builtin if present. 7037if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7038 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7039 ECHO='print -r --' 7040elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7041 ECHO='printf %s\n' 7042else 7043 # Use this function as a fallback that always works. 7044 func_fallback_echo () 7045 { 7046 eval 'cat <<_LTECHO_EOF 7047$1 7048_LTECHO_EOF' 7049 } 7050 ECHO='func_fallback_echo' 7051fi 7052 7053# func_echo_all arg... 7054# Invoke $ECHO with all args, space-separated. 7055func_echo_all () 7056{ 7057 $ECHO "" 7058} 7059 7060case $ECHO in 7061 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7062$as_echo "printf" >&6; } ;; 7063 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7064$as_echo "print -r" >&6; } ;; 7065 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7066$as_echo "cat" >&6; } ;; 7067esac 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7083$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7084if ${ac_cv_path_SED+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7088 for ac_i in 1 2 3 4 5 6 7; do 7089 ac_script="$ac_script$as_nl$ac_script" 7090 done 7091 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7092 { ac_script=; unset ac_script;} 7093 if test -z "$SED"; then 7094 ac_path_SED_found=false 7095 # Loop through the user's path and test for each of PROGNAME-LIST 7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7097for as_dir in $PATH 7098do 7099 IFS=$as_save_IFS 7100 test -z "$as_dir" && as_dir=. 7101 for ac_prog in sed gsed; do 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7104 as_fn_executable_p "$ac_path_SED" || continue 7105# Check for GNU ac_path_SED and select it if it is found. 7106 # Check for GNU $ac_path_SED 7107case `"$ac_path_SED" --version 2>&1` in 7108*GNU*) 7109 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7110*) 7111 ac_count=0 7112 $as_echo_n 0123456789 >"conftest.in" 7113 while : 7114 do 7115 cat "conftest.in" "conftest.in" >"conftest.tmp" 7116 mv "conftest.tmp" "conftest.in" 7117 cp "conftest.in" "conftest.nl" 7118 $as_echo '' >> "conftest.nl" 7119 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7121 as_fn_arith $ac_count + 1 && ac_count=$as_val 7122 if test $ac_count -gt ${ac_path_SED_max-0}; then 7123 # Best one so far, save it but keep looking for a better one 7124 ac_cv_path_SED="$ac_path_SED" 7125 ac_path_SED_max=$ac_count 7126 fi 7127 # 10*(2^10) chars as input seems more than enough 7128 test $ac_count -gt 10 && break 7129 done 7130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7131esac 7132 7133 $ac_path_SED_found && break 3 7134 done 7135 done 7136 done 7137IFS=$as_save_IFS 7138 if test -z "$ac_cv_path_SED"; then 7139 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7140 fi 7141else 7142 ac_cv_path_SED=$SED 7143fi 7144 7145fi 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7147$as_echo "$ac_cv_path_SED" >&6; } 7148 SED="$ac_cv_path_SED" 7149 rm -f conftest.sed 7150 7151test -z "$SED" && SED=sed 7152Xsed="$SED -e 1s/^X//" 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7165$as_echo_n "checking for fgrep... " >&6; } 7166if ${ac_cv_path_FGREP+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7170 then ac_cv_path_FGREP="$GREP -F" 7171 else 7172 if test -z "$FGREP"; then 7173 ac_path_FGREP_found=false 7174 # Loop through the user's path and test for each of PROGNAME-LIST 7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7177do 7178 IFS=$as_save_IFS 7179 test -z "$as_dir" && as_dir=. 7180 for ac_prog in fgrep; do 7181 for ac_exec_ext in '' $ac_executable_extensions; do 7182 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7183 as_fn_executable_p "$ac_path_FGREP" || continue 7184# Check for GNU ac_path_FGREP and select it if it is found. 7185 # Check for GNU $ac_path_FGREP 7186case `"$ac_path_FGREP" --version 2>&1` in 7187*GNU*) 7188 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7189*) 7190 ac_count=0 7191 $as_echo_n 0123456789 >"conftest.in" 7192 while : 7193 do 7194 cat "conftest.in" "conftest.in" >"conftest.tmp" 7195 mv "conftest.tmp" "conftest.in" 7196 cp "conftest.in" "conftest.nl" 7197 $as_echo 'FGREP' >> "conftest.nl" 7198 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7200 as_fn_arith $ac_count + 1 && ac_count=$as_val 7201 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7202 # Best one so far, save it but keep looking for a better one 7203 ac_cv_path_FGREP="$ac_path_FGREP" 7204 ac_path_FGREP_max=$ac_count 7205 fi 7206 # 10*(2^10) chars as input seems more than enough 7207 test $ac_count -gt 10 && break 7208 done 7209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7210esac 7211 7212 $ac_path_FGREP_found && break 3 7213 done 7214 done 7215 done 7216IFS=$as_save_IFS 7217 if test -z "$ac_cv_path_FGREP"; then 7218 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7219 fi 7220else 7221 ac_cv_path_FGREP=$FGREP 7222fi 7223 7224 fi 7225fi 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7227$as_echo "$ac_cv_path_FGREP" >&6; } 7228 FGREP="$ac_cv_path_FGREP" 7229 7230 7231test -z "$GREP" && GREP=grep 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251# Check whether --with-gnu-ld was given. 7252if test "${with_gnu_ld+set}" = set; then : 7253 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7254else 7255 with_gnu_ld=no 7256fi 7257 7258ac_prog=ld 7259if test yes = "$GCC"; then 7260 # Check if gcc -print-prog-name=ld gives a path. 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7262$as_echo_n "checking for ld used by $CC... " >&6; } 7263 case $host in 7264 *-*-mingw*) 7265 # gcc leaves a trailing carriage return, which upsets mingw 7266 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7267 *) 7268 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7269 esac 7270 case $ac_prog in 7271 # Accept absolute paths. 7272 [\\/]* | ?:[\\/]*) 7273 re_direlt='/[^/][^/]*/\.\./' 7274 # Canonicalize the pathname of ld 7275 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7276 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7277 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7278 done 7279 test -z "$LD" && LD=$ac_prog 7280 ;; 7281 "") 7282 # If it fails, then pretend we aren't using GCC. 7283 ac_prog=ld 7284 ;; 7285 *) 7286 # If it is relative, then search for the first ld in PATH. 7287 with_gnu_ld=unknown 7288 ;; 7289 esac 7290elif test yes = "$with_gnu_ld"; then 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7292$as_echo_n "checking for GNU ld... " >&6; } 7293else 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7295$as_echo_n "checking for non-GNU ld... " >&6; } 7296fi 7297if ${lt_cv_path_LD+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -z "$LD"; then 7301 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7302 for ac_dir in $PATH; do 7303 IFS=$lt_save_ifs 7304 test -z "$ac_dir" && ac_dir=. 7305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7306 lt_cv_path_LD=$ac_dir/$ac_prog 7307 # Check to see if the program is GNU ld. I'd rather use --version, 7308 # but apparently some variants of GNU ld only accept -v. 7309 # Break only if it was the GNU/non-GNU ld that we prefer. 7310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7311 *GNU* | *'with BFD'*) 7312 test no != "$with_gnu_ld" && break 7313 ;; 7314 *) 7315 test yes != "$with_gnu_ld" && break 7316 ;; 7317 esac 7318 fi 7319 done 7320 IFS=$lt_save_ifs 7321else 7322 lt_cv_path_LD=$LD # Let the user override the test with a path. 7323fi 7324fi 7325 7326LD=$lt_cv_path_LD 7327if test -n "$LD"; then 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7329$as_echo "$LD" >&6; } 7330else 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7332$as_echo "no" >&6; } 7333fi 7334test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7336$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7337if ${lt_cv_prog_gnu_ld+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7341case `$LD -v 2>&1 </dev/null` in 7342*GNU* | *'with BFD'*) 7343 lt_cv_prog_gnu_ld=yes 7344 ;; 7345*) 7346 lt_cv_prog_gnu_ld=no 7347 ;; 7348esac 7349fi 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7351$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7352with_gnu_ld=$lt_cv_prog_gnu_ld 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7363$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7364if ${lt_cv_path_NM+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 if test -n "$NM"; then 7368 # Let the user override the test. 7369 lt_cv_path_NM=$NM 7370else 7371 lt_nm_to_check=${ac_tool_prefix}nm 7372 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7373 lt_nm_to_check="$lt_nm_to_check nm" 7374 fi 7375 for lt_tmp_nm in $lt_nm_to_check; do 7376 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7377 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7378 IFS=$lt_save_ifs 7379 test -z "$ac_dir" && ac_dir=. 7380 tmp_nm=$ac_dir/$lt_tmp_nm 7381 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7382 # Check to see if the nm accepts a BSD-compat flag. 7383 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7384 # nm: unknown option "B" ignored 7385 # Tru64's nm complains that /dev/null is an invalid object file 7386 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7387 case $build_os in 7388 mingw*) lt_bad_file=conftest.nm/nofile ;; 7389 *) lt_bad_file=/dev/null ;; 7390 esac 7391 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7392 *$lt_bad_file* | *'Invalid file or object type'*) 7393 lt_cv_path_NM="$tmp_nm -B" 7394 break 2 7395 ;; 7396 *) 7397 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7398 */dev/null*) 7399 lt_cv_path_NM="$tmp_nm -p" 7400 break 2 7401 ;; 7402 *) 7403 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7404 continue # so that we can try to find one that supports BSD flags 7405 ;; 7406 esac 7407 ;; 7408 esac 7409 fi 7410 done 7411 IFS=$lt_save_ifs 7412 done 7413 : ${lt_cv_path_NM=no} 7414fi 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7417$as_echo "$lt_cv_path_NM" >&6; } 7418if test no != "$lt_cv_path_NM"; then 7419 NM=$lt_cv_path_NM 7420else 7421 # Didn't find any BSD compatible name lister, look for dumpbin. 7422 if test -n "$DUMPBIN"; then : 7423 # Let the user override the test. 7424 else 7425 if test -n "$ac_tool_prefix"; then 7426 for ac_prog in dumpbin "link -dump" 7427 do 7428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7429set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7431$as_echo_n "checking for $ac_word... " >&6; } 7432if ${ac_cv_prog_DUMPBIN+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 if test -n "$DUMPBIN"; then 7436 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7437else 7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439for as_dir in $PATH 7440do 7441 IFS=$as_save_IFS 7442 test -z "$as_dir" && as_dir=. 7443 for ac_exec_ext in '' $ac_executable_extensions; do 7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7445 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7447 break 2 7448 fi 7449done 7450 done 7451IFS=$as_save_IFS 7452 7453fi 7454fi 7455DUMPBIN=$ac_cv_prog_DUMPBIN 7456if test -n "$DUMPBIN"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7458$as_echo "$DUMPBIN" >&6; } 7459else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461$as_echo "no" >&6; } 7462fi 7463 7464 7465 test -n "$DUMPBIN" && break 7466 done 7467fi 7468if test -z "$DUMPBIN"; then 7469 ac_ct_DUMPBIN=$DUMPBIN 7470 for ac_prog in dumpbin "link -dump" 7471do 7472 # Extract the first word of "$ac_prog", so it can be a program name with args. 7473set dummy $ac_prog; ac_word=$2 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7475$as_echo_n "checking for $ac_word... " >&6; } 7476if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 if test -n "$ac_ct_DUMPBIN"; then 7480 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7481else 7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7483for as_dir in $PATH 7484do 7485 IFS=$as_save_IFS 7486 test -z "$as_dir" && as_dir=. 7487 for ac_exec_ext in '' $ac_executable_extensions; do 7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7489 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7491 break 2 7492 fi 7493done 7494 done 7495IFS=$as_save_IFS 7496 7497fi 7498fi 7499ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7500if test -n "$ac_ct_DUMPBIN"; then 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7502$as_echo "$ac_ct_DUMPBIN" >&6; } 7503else 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7505$as_echo "no" >&6; } 7506fi 7507 7508 7509 test -n "$ac_ct_DUMPBIN" && break 7510done 7511 7512 if test "x$ac_ct_DUMPBIN" = x; then 7513 DUMPBIN=":" 7514 else 7515 case $cross_compiling:$ac_tool_warned in 7516yes:) 7517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7519ac_tool_warned=yes ;; 7520esac 7521 DUMPBIN=$ac_ct_DUMPBIN 7522 fi 7523fi 7524 7525 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7526 *COFF*) 7527 DUMPBIN="$DUMPBIN -symbols -headers" 7528 ;; 7529 *) 7530 DUMPBIN=: 7531 ;; 7532 esac 7533 fi 7534 7535 if test : != "$DUMPBIN"; then 7536 NM=$DUMPBIN 7537 fi 7538fi 7539test -z "$NM" && NM=nm 7540 7541 7542 7543 7544 7545 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7547$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7548if ${lt_cv_nm_interface+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 lt_cv_nm_interface="BSD nm" 7552 echo "int some_variable = 0;" > conftest.$ac_ext 7553 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7554 (eval "$ac_compile" 2>conftest.err) 7555 cat conftest.err >&5 7556 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7557 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7558 cat conftest.err >&5 7559 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7560 cat conftest.out >&5 7561 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7562 lt_cv_nm_interface="MS dumpbin" 7563 fi 7564 rm -f conftest* 7565fi 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7567$as_echo "$lt_cv_nm_interface" >&6; } 7568 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7570$as_echo_n "checking whether ln -s works... " >&6; } 7571LN_S=$as_ln_s 7572if test "$LN_S" = "ln -s"; then 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7574$as_echo "yes" >&6; } 7575else 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7577$as_echo "no, using $LN_S" >&6; } 7578fi 7579 7580# find the maximum length of command line arguments 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7582$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7583if ${lt_cv_sys_max_cmd_len+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 i=0 7587 teststring=ABCD 7588 7589 case $build_os in 7590 msdosdjgpp*) 7591 # On DJGPP, this test can blow up pretty badly due to problems in libc 7592 # (any single argument exceeding 2000 bytes causes a buffer overrun 7593 # during glob expansion). Even if it were fixed, the result of this 7594 # check would be larger than it should be. 7595 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7596 ;; 7597 7598 gnu*) 7599 # Under GNU Hurd, this test is not required because there is 7600 # no limit to the length of command line arguments. 7601 # Libtool will interpret -1 as no limit whatsoever 7602 lt_cv_sys_max_cmd_len=-1; 7603 ;; 7604 7605 cygwin* | mingw* | cegcc*) 7606 # On Win9x/ME, this test blows up -- it succeeds, but takes 7607 # about 5 minutes as the teststring grows exponentially. 7608 # Worse, since 9x/ME are not pre-emptively multitasking, 7609 # you end up with a "frozen" computer, even though with patience 7610 # the test eventually succeeds (with a max line length of 256k). 7611 # Instead, let's just punt: use the minimum linelength reported by 7612 # all of the supported platforms: 8192 (on NT/2K/XP). 7613 lt_cv_sys_max_cmd_len=8192; 7614 ;; 7615 7616 mint*) 7617 # On MiNT this can take a long time and run out of memory. 7618 lt_cv_sys_max_cmd_len=8192; 7619 ;; 7620 7621 amigaos*) 7622 # On AmigaOS with pdksh, this test takes hours, literally. 7623 # So we just punt and use a minimum line length of 8192. 7624 lt_cv_sys_max_cmd_len=8192; 7625 ;; 7626 7627 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7628 # This has been around since 386BSD, at least. Likely further. 7629 if test -x /sbin/sysctl; then 7630 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7631 elif test -x /usr/sbin/sysctl; then 7632 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7633 else 7634 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7635 fi 7636 # And add a safety zone 7637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7639 ;; 7640 7641 interix*) 7642 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7643 lt_cv_sys_max_cmd_len=196608 7644 ;; 7645 7646 os2*) 7647 # The test takes a long time on OS/2. 7648 lt_cv_sys_max_cmd_len=8192 7649 ;; 7650 7651 osf*) 7652 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7653 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7654 # nice to cause kernel panics so lets avoid the loop below. 7655 # First set a reasonable default. 7656 lt_cv_sys_max_cmd_len=16384 7657 # 7658 if test -x /sbin/sysconfig; then 7659 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7660 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7661 esac 7662 fi 7663 ;; 7664 sco3.2v5*) 7665 lt_cv_sys_max_cmd_len=102400 7666 ;; 7667 sysv5* | sco5v6* | sysv4.2uw2*) 7668 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7669 if test -n "$kargmax"; then 7670 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7671 else 7672 lt_cv_sys_max_cmd_len=32768 7673 fi 7674 ;; 7675 *) 7676 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7677 if test -n "$lt_cv_sys_max_cmd_len" && \ 7678 test undefined != "$lt_cv_sys_max_cmd_len"; then 7679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7681 else 7682 # Make teststring a little bigger before we do anything with it. 7683 # a 1K string should be a reasonable start. 7684 for i in 1 2 3 4 5 6 7 8; do 7685 teststring=$teststring$teststring 7686 done 7687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7688 # If test is not a shell built-in, we'll probably end up computing a 7689 # maximum length that is only half of the actual maximum length, but 7690 # we can't tell. 7691 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7692 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7693 test 17 != "$i" # 1/2 MB should be enough 7694 do 7695 i=`expr $i + 1` 7696 teststring=$teststring$teststring 7697 done 7698 # Only check the string length outside the loop. 7699 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7700 teststring= 7701 # Add a significant safety factor because C++ compilers can tack on 7702 # massive amounts of additional arguments before passing them to the 7703 # linker. It appears as though 1/2 is a usable value. 7704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7705 fi 7706 ;; 7707 esac 7708 7709fi 7710 7711if test -n "$lt_cv_sys_max_cmd_len"; then 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7713$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7714else 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7716$as_echo "none" >&6; } 7717fi 7718max_cmd_len=$lt_cv_sys_max_cmd_len 7719 7720 7721 7722 7723 7724 7725: ${CP="cp -f"} 7726: ${MV="mv -f"} 7727: ${RM="rm -f"} 7728 7729if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7730 lt_unset=unset 7731else 7732 lt_unset=false 7733fi 7734 7735 7736 7737 7738 7739# test EBCDIC or ASCII 7740case `echo X|tr X '\101'` in 7741 A) # ASCII based system 7742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7743 lt_SP2NL='tr \040 \012' 7744 lt_NL2SP='tr \015\012 \040\040' 7745 ;; 7746 *) # EBCDIC based system 7747 lt_SP2NL='tr \100 \n' 7748 lt_NL2SP='tr \r\n \100\100' 7749 ;; 7750esac 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7761$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7762if ${lt_cv_to_host_file_cmd+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 case $host in 7766 *-*-mingw* ) 7767 case $build in 7768 *-*-mingw* ) # actually msys 7769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7770 ;; 7771 *-*-cygwin* ) 7772 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7773 ;; 7774 * ) # otherwise, assume *nix 7775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7776 ;; 7777 esac 7778 ;; 7779 *-*-cygwin* ) 7780 case $build in 7781 *-*-mingw* ) # actually msys 7782 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7783 ;; 7784 *-*-cygwin* ) 7785 lt_cv_to_host_file_cmd=func_convert_file_noop 7786 ;; 7787 * ) # otherwise, assume *nix 7788 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7789 ;; 7790 esac 7791 ;; 7792 * ) # unhandled hosts (and "normal" native builds) 7793 lt_cv_to_host_file_cmd=func_convert_file_noop 7794 ;; 7795esac 7796 7797fi 7798 7799to_host_file_cmd=$lt_cv_to_host_file_cmd 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7801$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7802 7803 7804 7805 7806 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7808$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7809if ${lt_cv_to_tool_file_cmd+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 #assume ordinary cross tools, or native build. 7813lt_cv_to_tool_file_cmd=func_convert_file_noop 7814case $host in 7815 *-*-mingw* ) 7816 case $build in 7817 *-*-mingw* ) # actually msys 7818 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7819 ;; 7820 esac 7821 ;; 7822esac 7823 7824fi 7825 7826to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7828$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7829 7830 7831 7832 7833 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7835$as_echo_n "checking for $LD option to reload object files... " >&6; } 7836if ${lt_cv_ld_reload_flag+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 lt_cv_ld_reload_flag='-r' 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7842$as_echo "$lt_cv_ld_reload_flag" >&6; } 7843reload_flag=$lt_cv_ld_reload_flag 7844case $reload_flag in 7845"" | " "*) ;; 7846*) reload_flag=" $reload_flag" ;; 7847esac 7848reload_cmds='$LD$reload_flag -o $output$reload_objs' 7849case $host_os in 7850 cygwin* | mingw* | pw32* | cegcc*) 7851 if test yes != "$GCC"; then 7852 reload_cmds=false 7853 fi 7854 ;; 7855 darwin*) 7856 if test yes = "$GCC"; then 7857 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7858 else 7859 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7860 fi 7861 ;; 7862esac 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872if test -n "$ac_tool_prefix"; then 7873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7874set dummy ${ac_tool_prefix}objdump; ac_word=$2 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7876$as_echo_n "checking for $ac_word... " >&6; } 7877if ${ac_cv_prog_OBJDUMP+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 if test -n "$OBJDUMP"; then 7881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 test -z "$as_dir" && as_dir=. 7888 for ac_exec_ext in '' $ac_executable_extensions; do 7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7892 break 2 7893 fi 7894done 7895 done 7896IFS=$as_save_IFS 7897 7898fi 7899fi 7900OBJDUMP=$ac_cv_prog_OBJDUMP 7901if test -n "$OBJDUMP"; then 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7903$as_echo "$OBJDUMP" >&6; } 7904else 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7906$as_echo "no" >&6; } 7907fi 7908 7909 7910fi 7911if test -z "$ac_cv_prog_OBJDUMP"; then 7912 ac_ct_OBJDUMP=$OBJDUMP 7913 # Extract the first word of "objdump", so it can be a program name with args. 7914set dummy objdump; ac_word=$2 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7916$as_echo_n "checking for $ac_word... " >&6; } 7917if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7918 $as_echo_n "(cached) " >&6 7919else 7920 if test -n "$ac_ct_OBJDUMP"; then 7921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7922else 7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7924for as_dir in $PATH 7925do 7926 IFS=$as_save_IFS 7927 test -z "$as_dir" && as_dir=. 7928 for ac_exec_ext in '' $ac_executable_extensions; do 7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7930 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7932 break 2 7933 fi 7934done 7935 done 7936IFS=$as_save_IFS 7937 7938fi 7939fi 7940ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7941if test -n "$ac_ct_OBJDUMP"; then 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7943$as_echo "$ac_ct_OBJDUMP" >&6; } 7944else 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7946$as_echo "no" >&6; } 7947fi 7948 7949 if test "x$ac_ct_OBJDUMP" = x; then 7950 OBJDUMP="false" 7951 else 7952 case $cross_compiling:$ac_tool_warned in 7953yes:) 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7956ac_tool_warned=yes ;; 7957esac 7958 OBJDUMP=$ac_ct_OBJDUMP 7959 fi 7960else 7961 OBJDUMP="$ac_cv_prog_OBJDUMP" 7962fi 7963 7964test -z "$OBJDUMP" && OBJDUMP=objdump 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7975$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7976if ${lt_cv_deplibs_check_method+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 lt_cv_file_magic_cmd='$MAGIC_CMD' 7980lt_cv_file_magic_test_file= 7981lt_cv_deplibs_check_method='unknown' 7982# Need to set the preceding variable on all platforms that support 7983# interlibrary dependencies. 7984# 'none' -- dependencies not supported. 7985# 'unknown' -- same as none, but documents that we really don't know. 7986# 'pass_all' -- all dependencies passed with no checks. 7987# 'test_compile' -- check by making test program. 7988# 'file_magic [[regex]]' -- check by looking for files in library path 7989# that responds to the $file_magic_cmd with a given extended regex. 7990# If you have 'file' or equivalent on your system and you're not sure 7991# whether 'pass_all' will *always* work, you probably want this one. 7992 7993case $host_os in 7994aix[4-9]*) 7995 lt_cv_deplibs_check_method=pass_all 7996 ;; 7997 7998beos*) 7999 lt_cv_deplibs_check_method=pass_all 8000 ;; 8001 8002bsdi[45]*) 8003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8004 lt_cv_file_magic_cmd='/usr/bin/file -L' 8005 lt_cv_file_magic_test_file=/shlib/libc.so 8006 ;; 8007 8008cygwin*) 8009 # func_win32_libid is a shell function defined in ltmain.sh 8010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8011 lt_cv_file_magic_cmd='func_win32_libid' 8012 ;; 8013 8014mingw* | pw32*) 8015 # Base MSYS/MinGW do not provide the 'file' command needed by 8016 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8017 # unless we find 'file', for example because we are cross-compiling. 8018 if ( file / ) >/dev/null 2>&1; then 8019 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8020 lt_cv_file_magic_cmd='func_win32_libid' 8021 else 8022 # Keep this pattern in sync with the one in func_win32_libid. 8023 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8024 lt_cv_file_magic_cmd='$OBJDUMP -f' 8025 fi 8026 ;; 8027 8028cegcc*) 8029 # use the weaker test based on 'objdump'. See mingw*. 8030 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8031 lt_cv_file_magic_cmd='$OBJDUMP -f' 8032 ;; 8033 8034darwin* | rhapsody*) 8035 lt_cv_deplibs_check_method=pass_all 8036 ;; 8037 8038freebsd* | dragonfly*) 8039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8040 case $host_cpu in 8041 i*86 ) 8042 # Not sure whether the presence of OpenBSD here was a mistake. 8043 # Let's accept both of them until this is cleared up. 8044 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8045 lt_cv_file_magic_cmd=/usr/bin/file 8046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8047 ;; 8048 esac 8049 else 8050 lt_cv_deplibs_check_method=pass_all 8051 fi 8052 ;; 8053 8054haiku*) 8055 lt_cv_deplibs_check_method=pass_all 8056 ;; 8057 8058hpux10.20* | hpux11*) 8059 lt_cv_file_magic_cmd=/usr/bin/file 8060 case $host_cpu in 8061 ia64*) 8062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8063 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8064 ;; 8065 hppa*64*) 8066 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]' 8067 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8068 ;; 8069 *) 8070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8071 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8072 ;; 8073 esac 8074 ;; 8075 8076interix[3-9]*) 8077 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8079 ;; 8080 8081irix5* | irix6* | nonstopux*) 8082 case $LD in 8083 *-32|*"-32 ") libmagic=32-bit;; 8084 *-n32|*"-n32 ") libmagic=N32;; 8085 *-64|*"-64 ") libmagic=64-bit;; 8086 *) libmagic=never-match;; 8087 esac 8088 lt_cv_deplibs_check_method=pass_all 8089 ;; 8090 8091# This must be glibc/ELF. 8092linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8093 lt_cv_deplibs_check_method=pass_all 8094 ;; 8095 8096netbsd*) 8097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8099 else 8100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8101 fi 8102 ;; 8103 8104newos6*) 8105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8106 lt_cv_file_magic_cmd=/usr/bin/file 8107 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8108 ;; 8109 8110*nto* | *qnx*) 8111 lt_cv_deplibs_check_method=pass_all 8112 ;; 8113 8114openbsd* | bitrig*) 8115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8117 else 8118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8119 fi 8120 ;; 8121 8122osf3* | osf4* | osf5*) 8123 lt_cv_deplibs_check_method=pass_all 8124 ;; 8125 8126rdos*) 8127 lt_cv_deplibs_check_method=pass_all 8128 ;; 8129 8130solaris*) 8131 lt_cv_deplibs_check_method=pass_all 8132 ;; 8133 8134sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8135 lt_cv_deplibs_check_method=pass_all 8136 ;; 8137 8138sysv4 | sysv4.3*) 8139 case $host_vendor in 8140 motorola) 8141 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]' 8142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8143 ;; 8144 ncr) 8145 lt_cv_deplibs_check_method=pass_all 8146 ;; 8147 sequent) 8148 lt_cv_file_magic_cmd='/bin/file' 8149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8150 ;; 8151 sni) 8152 lt_cv_file_magic_cmd='/bin/file' 8153 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8154 lt_cv_file_magic_test_file=/lib/libc.so 8155 ;; 8156 siemens) 8157 lt_cv_deplibs_check_method=pass_all 8158 ;; 8159 pc) 8160 lt_cv_deplibs_check_method=pass_all 8161 ;; 8162 esac 8163 ;; 8164 8165tpf*) 8166 lt_cv_deplibs_check_method=pass_all 8167 ;; 8168os2*) 8169 lt_cv_deplibs_check_method=pass_all 8170 ;; 8171esac 8172 8173fi 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8175$as_echo "$lt_cv_deplibs_check_method" >&6; } 8176 8177file_magic_glob= 8178want_nocaseglob=no 8179if test "$build" = "$host"; then 8180 case $host_os in 8181 mingw* | pw32*) 8182 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8183 want_nocaseglob=yes 8184 else 8185 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8186 fi 8187 ;; 8188 esac 8189fi 8190 8191file_magic_cmd=$lt_cv_file_magic_cmd 8192deplibs_check_method=$lt_cv_deplibs_check_method 8193test -z "$deplibs_check_method" && deplibs_check_method=unknown 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216if test -n "$ac_tool_prefix"; then 8217 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8218set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8220$as_echo_n "checking for $ac_word... " >&6; } 8221if ${ac_cv_prog_DLLTOOL+:} false; then : 8222 $as_echo_n "(cached) " >&6 8223else 8224 if test -n "$DLLTOOL"; then 8225 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8226else 8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8228for as_dir in $PATH 8229do 8230 IFS=$as_save_IFS 8231 test -z "$as_dir" && as_dir=. 8232 for ac_exec_ext in '' $ac_executable_extensions; do 8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8234 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8236 break 2 8237 fi 8238done 8239 done 8240IFS=$as_save_IFS 8241 8242fi 8243fi 8244DLLTOOL=$ac_cv_prog_DLLTOOL 8245if test -n "$DLLTOOL"; then 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8247$as_echo "$DLLTOOL" >&6; } 8248else 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8250$as_echo "no" >&6; } 8251fi 8252 8253 8254fi 8255if test -z "$ac_cv_prog_DLLTOOL"; then 8256 ac_ct_DLLTOOL=$DLLTOOL 8257 # Extract the first word of "dlltool", so it can be a program name with args. 8258set dummy dlltool; ac_word=$2 8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8260$as_echo_n "checking for $ac_word... " >&6; } 8261if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 if test -n "$ac_ct_DLLTOOL"; then 8265 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8266else 8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8268for as_dir in $PATH 8269do 8270 IFS=$as_save_IFS 8271 test -z "$as_dir" && as_dir=. 8272 for ac_exec_ext in '' $ac_executable_extensions; do 8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8274 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8276 break 2 8277 fi 8278done 8279 done 8280IFS=$as_save_IFS 8281 8282fi 8283fi 8284ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8285if test -n "$ac_ct_DLLTOOL"; then 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8287$as_echo "$ac_ct_DLLTOOL" >&6; } 8288else 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8290$as_echo "no" >&6; } 8291fi 8292 8293 if test "x$ac_ct_DLLTOOL" = x; then 8294 DLLTOOL="false" 8295 else 8296 case $cross_compiling:$ac_tool_warned in 8297yes:) 8298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8300ac_tool_warned=yes ;; 8301esac 8302 DLLTOOL=$ac_ct_DLLTOOL 8303 fi 8304else 8305 DLLTOOL="$ac_cv_prog_DLLTOOL" 8306fi 8307 8308test -z "$DLLTOOL" && DLLTOOL=dlltool 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8320$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8321if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 lt_cv_sharedlib_from_linklib_cmd='unknown' 8325 8326case $host_os in 8327cygwin* | mingw* | pw32* | cegcc*) 8328 # two different shell functions defined in ltmain.sh; 8329 # decide which one to use based on capabilities of $DLLTOOL 8330 case `$DLLTOOL --help 2>&1` in 8331 *--identify-strict*) 8332 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8333 ;; 8334 *) 8335 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8336 ;; 8337 esac 8338 ;; 8339*) 8340 # fallback: assume linklib IS sharedlib 8341 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8342 ;; 8343esac 8344 8345fi 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8347$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8348sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8349test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8350 8351 8352 8353 8354 8355 8356 8357if test -n "$ac_tool_prefix"; then 8358 for ac_prog in ar 8359 do 8360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8361set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8363$as_echo_n "checking for $ac_word... " >&6; } 8364if ${ac_cv_prog_AR+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 if test -n "$AR"; then 8368 ac_cv_prog_AR="$AR" # Let the user override the test. 8369else 8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8371for as_dir in $PATH 8372do 8373 IFS=$as_save_IFS 8374 test -z "$as_dir" && as_dir=. 8375 for ac_exec_ext in '' $ac_executable_extensions; do 8376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8377 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8379 break 2 8380 fi 8381done 8382 done 8383IFS=$as_save_IFS 8384 8385fi 8386fi 8387AR=$ac_cv_prog_AR 8388if test -n "$AR"; then 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8390$as_echo "$AR" >&6; } 8391else 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8393$as_echo "no" >&6; } 8394fi 8395 8396 8397 test -n "$AR" && break 8398 done 8399fi 8400if test -z "$AR"; then 8401 ac_ct_AR=$AR 8402 for ac_prog in ar 8403do 8404 # Extract the first word of "$ac_prog", so it can be a program name with args. 8405set dummy $ac_prog; ac_word=$2 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8407$as_echo_n "checking for $ac_word... " >&6; } 8408if ${ac_cv_prog_ac_ct_AR+:} false; then : 8409 $as_echo_n "(cached) " >&6 8410else 8411 if test -n "$ac_ct_AR"; then 8412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8413else 8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8415for as_dir in $PATH 8416do 8417 IFS=$as_save_IFS 8418 test -z "$as_dir" && as_dir=. 8419 for ac_exec_ext in '' $ac_executable_extensions; do 8420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8421 ac_cv_prog_ac_ct_AR="$ac_prog" 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8423 break 2 8424 fi 8425done 8426 done 8427IFS=$as_save_IFS 8428 8429fi 8430fi 8431ac_ct_AR=$ac_cv_prog_ac_ct_AR 8432if test -n "$ac_ct_AR"; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8434$as_echo "$ac_ct_AR" >&6; } 8435else 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8437$as_echo "no" >&6; } 8438fi 8439 8440 8441 test -n "$ac_ct_AR" && break 8442done 8443 8444 if test "x$ac_ct_AR" = x; then 8445 AR="false" 8446 else 8447 case $cross_compiling:$ac_tool_warned in 8448yes:) 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8451ac_tool_warned=yes ;; 8452esac 8453 AR=$ac_ct_AR 8454 fi 8455fi 8456 8457: ${AR=ar} 8458: ${AR_FLAGS=cru} 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8471$as_echo_n "checking for archiver @FILE support... " >&6; } 8472if ${lt_cv_ar_at_file+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 lt_cv_ar_at_file=no 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478 8479int 8480main () 8481{ 8482 8483 ; 8484 return 0; 8485} 8486_ACEOF 8487if ac_fn_c_try_compile "$LINENO"; then : 8488 echo conftest.$ac_objext > conftest.lst 8489 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8491 (eval $lt_ar_try) 2>&5 8492 ac_status=$? 8493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8494 test $ac_status = 0; } 8495 if test 0 -eq "$ac_status"; then 8496 # Ensure the archiver fails upon bogus file names. 8497 rm -f conftest.$ac_objext libconftest.a 8498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8499 (eval $lt_ar_try) 2>&5 8500 ac_status=$? 8501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8502 test $ac_status = 0; } 8503 if test 0 -ne "$ac_status"; then 8504 lt_cv_ar_at_file=@ 8505 fi 8506 fi 8507 rm -f conftest.* libconftest.a 8508 8509fi 8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8511 8512fi 8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8514$as_echo "$lt_cv_ar_at_file" >&6; } 8515 8516if test no = "$lt_cv_ar_at_file"; then 8517 archiver_list_spec= 8518else 8519 archiver_list_spec=$lt_cv_ar_at_file 8520fi 8521 8522 8523 8524 8525 8526 8527 8528if test -n "$ac_tool_prefix"; then 8529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8530set dummy ${ac_tool_prefix}strip; ac_word=$2 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8532$as_echo_n "checking for $ac_word... " >&6; } 8533if ${ac_cv_prog_STRIP+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 if test -n "$STRIP"; then 8537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8538else 8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8540for as_dir in $PATH 8541do 8542 IFS=$as_save_IFS 8543 test -z "$as_dir" && as_dir=. 8544 for ac_exec_ext in '' $ac_executable_extensions; do 8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8546 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8548 break 2 8549 fi 8550done 8551 done 8552IFS=$as_save_IFS 8553 8554fi 8555fi 8556STRIP=$ac_cv_prog_STRIP 8557if test -n "$STRIP"; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8559$as_echo "$STRIP" >&6; } 8560else 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8562$as_echo "no" >&6; } 8563fi 8564 8565 8566fi 8567if test -z "$ac_cv_prog_STRIP"; then 8568 ac_ct_STRIP=$STRIP 8569 # Extract the first word of "strip", so it can be a program name with args. 8570set dummy strip; ac_word=$2 8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8572$as_echo_n "checking for $ac_word... " >&6; } 8573if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 if test -n "$ac_ct_STRIP"; then 8577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8578else 8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8580for as_dir in $PATH 8581do 8582 IFS=$as_save_IFS 8583 test -z "$as_dir" && as_dir=. 8584 for ac_exec_ext in '' $ac_executable_extensions; do 8585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8586 ac_cv_prog_ac_ct_STRIP="strip" 8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8588 break 2 8589 fi 8590done 8591 done 8592IFS=$as_save_IFS 8593 8594fi 8595fi 8596ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8597if test -n "$ac_ct_STRIP"; then 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8599$as_echo "$ac_ct_STRIP" >&6; } 8600else 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8602$as_echo "no" >&6; } 8603fi 8604 8605 if test "x$ac_ct_STRIP" = x; then 8606 STRIP=":" 8607 else 8608 case $cross_compiling:$ac_tool_warned in 8609yes:) 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8612ac_tool_warned=yes ;; 8613esac 8614 STRIP=$ac_ct_STRIP 8615 fi 8616else 8617 STRIP="$ac_cv_prog_STRIP" 8618fi 8619 8620test -z "$STRIP" && STRIP=: 8621 8622 8623 8624 8625 8626 8627if test -n "$ac_tool_prefix"; then 8628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8629set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8631$as_echo_n "checking for $ac_word... " >&6; } 8632if ${ac_cv_prog_RANLIB+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 if test -n "$RANLIB"; then 8636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8637else 8638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8639for as_dir in $PATH 8640do 8641 IFS=$as_save_IFS 8642 test -z "$as_dir" && as_dir=. 8643 for ac_exec_ext in '' $ac_executable_extensions; do 8644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8647 break 2 8648 fi 8649done 8650 done 8651IFS=$as_save_IFS 8652 8653fi 8654fi 8655RANLIB=$ac_cv_prog_RANLIB 8656if test -n "$RANLIB"; then 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8658$as_echo "$RANLIB" >&6; } 8659else 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8661$as_echo "no" >&6; } 8662fi 8663 8664 8665fi 8666if test -z "$ac_cv_prog_RANLIB"; then 8667 ac_ct_RANLIB=$RANLIB 8668 # Extract the first word of "ranlib", so it can be a program name with args. 8669set dummy ranlib; ac_word=$2 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8671$as_echo_n "checking for $ac_word... " >&6; } 8672if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8673 $as_echo_n "(cached) " >&6 8674else 8675 if test -n "$ac_ct_RANLIB"; then 8676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8677else 8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8679for as_dir in $PATH 8680do 8681 IFS=$as_save_IFS 8682 test -z "$as_dir" && as_dir=. 8683 for ac_exec_ext in '' $ac_executable_extensions; do 8684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8685 ac_cv_prog_ac_ct_RANLIB="ranlib" 8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8687 break 2 8688 fi 8689done 8690 done 8691IFS=$as_save_IFS 8692 8693fi 8694fi 8695ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8696if test -n "$ac_ct_RANLIB"; then 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8698$as_echo "$ac_ct_RANLIB" >&6; } 8699else 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8701$as_echo "no" >&6; } 8702fi 8703 8704 if test "x$ac_ct_RANLIB" = x; then 8705 RANLIB=":" 8706 else 8707 case $cross_compiling:$ac_tool_warned in 8708yes:) 8709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8711ac_tool_warned=yes ;; 8712esac 8713 RANLIB=$ac_ct_RANLIB 8714 fi 8715else 8716 RANLIB="$ac_cv_prog_RANLIB" 8717fi 8718 8719test -z "$RANLIB" && RANLIB=: 8720 8721 8722 8723 8724 8725 8726# Determine commands to create old-style static archives. 8727old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8728old_postinstall_cmds='chmod 644 $oldlib' 8729old_postuninstall_cmds= 8730 8731if test -n "$RANLIB"; then 8732 case $host_os in 8733 bitrig* | openbsd*) 8734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8735 ;; 8736 *) 8737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8738 ;; 8739 esac 8740 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8741fi 8742 8743case $host_os in 8744 darwin*) 8745 lock_old_archive_extraction=yes ;; 8746 *) 8747 lock_old_archive_extraction=no ;; 8748esac 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770for ac_prog in gawk mawk nawk awk 8771do 8772 # Extract the first word of "$ac_prog", so it can be a program name with args. 8773set dummy $ac_prog; ac_word=$2 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8775$as_echo_n "checking for $ac_word... " >&6; } 8776if ${ac_cv_prog_AWK+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778else 8779 if test -n "$AWK"; then 8780 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8781else 8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8783for as_dir in $PATH 8784do 8785 IFS=$as_save_IFS 8786 test -z "$as_dir" && as_dir=. 8787 for ac_exec_ext in '' $ac_executable_extensions; do 8788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8789 ac_cv_prog_AWK="$ac_prog" 8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8791 break 2 8792 fi 8793done 8794 done 8795IFS=$as_save_IFS 8796 8797fi 8798fi 8799AWK=$ac_cv_prog_AWK 8800if test -n "$AWK"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8802$as_echo "$AWK" >&6; } 8803else 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805$as_echo "no" >&6; } 8806fi 8807 8808 8809 test -n "$AWK" && break 8810done 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830# If no C compiler was specified, use CC. 8831LTCC=${LTCC-"$CC"} 8832 8833# If no C compiler flags were specified, use CFLAGS. 8834LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8835 8836# Allow CC to be a program name with arguments. 8837compiler=$CC 8838 8839 8840# Check for command to grab the raw symbol name followed by C symbol from nm. 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8842$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8843if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 8847# These are sane defaults that work on at least a few old systems. 8848# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8849 8850# Character class describing NM global symbol codes. 8851symcode='[BCDEGRST]' 8852 8853# Regexp to match symbols that can be accessed directly from C. 8854sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8855 8856# Define system-specific variables. 8857case $host_os in 8858aix*) 8859 symcode='[BCDT]' 8860 ;; 8861cygwin* | mingw* | pw32* | cegcc*) 8862 symcode='[ABCDGISTW]' 8863 ;; 8864hpux*) 8865 if test ia64 = "$host_cpu"; then 8866 symcode='[ABCDEGRST]' 8867 fi 8868 ;; 8869irix* | nonstopux*) 8870 symcode='[BCDEGRST]' 8871 ;; 8872osf*) 8873 symcode='[BCDEGQRST]' 8874 ;; 8875solaris*) 8876 symcode='[BDRT]' 8877 ;; 8878sco3.2v5*) 8879 symcode='[DT]' 8880 ;; 8881sysv4.2uw2*) 8882 symcode='[DT]' 8883 ;; 8884sysv5* | sco5v6* | unixware* | OpenUNIX*) 8885 symcode='[ABDT]' 8886 ;; 8887sysv4) 8888 symcode='[DFNSTU]' 8889 ;; 8890esac 8891 8892# If we're using GNU nm, then use its standard symbol codes. 8893case `$NM -V 2>&1` in 8894*GNU* | *'with BFD'*) 8895 symcode='[ABCDGIRSTW]' ;; 8896esac 8897 8898if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8899 # Gets list of data symbols to import. 8900 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8901 # Adjust the below global symbol transforms to fixup imported variables. 8902 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8903 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8904 lt_c_name_lib_hook="\ 8905 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8906 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8907else 8908 # Disable hooks by default. 8909 lt_cv_sys_global_symbol_to_import= 8910 lt_cdecl_hook= 8911 lt_c_name_hook= 8912 lt_c_name_lib_hook= 8913fi 8914 8915# Transform an extracted symbol line into a proper C declaration. 8916# Some systems (esp. on ia64) link data and code symbols differently, 8917# so use this general approach. 8918lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8919$lt_cdecl_hook\ 8920" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8921" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8922 8923# Transform an extracted symbol line into symbol name and symbol address 8924lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8925$lt_c_name_hook\ 8926" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8927" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8928 8929# Transform an extracted symbol line into symbol name with lib prefix and 8930# symbol address. 8931lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8932$lt_c_name_lib_hook\ 8933" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8934" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8935" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8936 8937# Handle CRLF in mingw tool chain 8938opt_cr= 8939case $build_os in 8940mingw*) 8941 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8942 ;; 8943esac 8944 8945# Try without a prefix underscore, then with it. 8946for ac_symprfx in "" "_"; do 8947 8948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8949 symxfrm="\\1 $ac_symprfx\\2 \\2" 8950 8951 # Write the raw and C identifiers. 8952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8953 # Fake it for dumpbin and say T for any non-static function, 8954 # D for any global variable and I for any imported variable. 8955 # Also find C++ and __fastcall symbols from MSVC++, 8956 # which start with @ or ?. 8957 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8958" {last_section=section; section=\$ 3};"\ 8959" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8960" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8961" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8962" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8963" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8964" \$ 0!~/External *\|/{next};"\ 8965" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8966" {if(hide[section]) next};"\ 8967" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8968" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8969" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8970" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8971" ' prfx=^$ac_symprfx" 8972 else 8973 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8974 fi 8975 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8976 8977 # Check to see that the pipe works correctly. 8978 pipe_works=no 8979 8980 rm -f conftest* 8981 cat > conftest.$ac_ext <<_LT_EOF 8982#ifdef __cplusplus 8983extern "C" { 8984#endif 8985char nm_test_var; 8986void nm_test_func(void); 8987void nm_test_func(void){} 8988#ifdef __cplusplus 8989} 8990#endif 8991int main(){nm_test_var='a';nm_test_func();return(0);} 8992_LT_EOF 8993 8994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8995 (eval $ac_compile) 2>&5 8996 ac_status=$? 8997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8998 test $ac_status = 0; }; then 8999 # Now try to grab the symbols. 9000 nlist=conftest.nm 9001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9002 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9003 ac_status=$? 9004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9005 test $ac_status = 0; } && test -s "$nlist"; then 9006 # Try sorting and uniquifying the output. 9007 if sort "$nlist" | uniq > "$nlist"T; then 9008 mv -f "$nlist"T "$nlist" 9009 else 9010 rm -f "$nlist"T 9011 fi 9012 9013 # Make sure that we snagged all the symbols we need. 9014 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9015 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9016 cat <<_LT_EOF > conftest.$ac_ext 9017/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9018#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9019/* DATA imports from DLLs on WIN32 can't be const, because runtime 9020 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9021# define LT_DLSYM_CONST 9022#elif defined __osf__ 9023/* This system does not cope well with relocations in const data. */ 9024# define LT_DLSYM_CONST 9025#else 9026# define LT_DLSYM_CONST const 9027#endif 9028 9029#ifdef __cplusplus 9030extern "C" { 9031#endif 9032 9033_LT_EOF 9034 # Now generate the symbol file. 9035 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9036 9037 cat <<_LT_EOF >> conftest.$ac_ext 9038 9039/* The mapping between symbol names and symbols. */ 9040LT_DLSYM_CONST struct { 9041 const char *name; 9042 void *address; 9043} 9044lt__PROGRAM__LTX_preloaded_symbols[] = 9045{ 9046 { "@PROGRAM@", (void *) 0 }, 9047_LT_EOF 9048 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9049 cat <<\_LT_EOF >> conftest.$ac_ext 9050 {0, (void *) 0} 9051}; 9052 9053/* This works around a problem in FreeBSD linker */ 9054#ifdef FREEBSD_WORKAROUND 9055static const void *lt_preloaded_setup() { 9056 return lt__PROGRAM__LTX_preloaded_symbols; 9057} 9058#endif 9059 9060#ifdef __cplusplus 9061} 9062#endif 9063_LT_EOF 9064 # Now try linking the two files. 9065 mv conftest.$ac_objext conftstm.$ac_objext 9066 lt_globsym_save_LIBS=$LIBS 9067 lt_globsym_save_CFLAGS=$CFLAGS 9068 LIBS=conftstm.$ac_objext 9069 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9071 (eval $ac_link) 2>&5 9072 ac_status=$? 9073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9074 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9075 pipe_works=yes 9076 fi 9077 LIBS=$lt_globsym_save_LIBS 9078 CFLAGS=$lt_globsym_save_CFLAGS 9079 else 9080 echo "cannot find nm_test_func in $nlist" >&5 9081 fi 9082 else 9083 echo "cannot find nm_test_var in $nlist" >&5 9084 fi 9085 else 9086 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9087 fi 9088 else 9089 echo "$progname: failed program was:" >&5 9090 cat conftest.$ac_ext >&5 9091 fi 9092 rm -rf conftest* conftst* 9093 9094 # Do not use the global_symbol_pipe unless it works. 9095 if test yes = "$pipe_works"; then 9096 break 9097 else 9098 lt_cv_sys_global_symbol_pipe= 9099 fi 9100done 9101 9102fi 9103 9104if test -z "$lt_cv_sys_global_symbol_pipe"; then 9105 lt_cv_sys_global_symbol_to_cdecl= 9106fi 9107if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9109$as_echo "failed" >&6; } 9110else 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9112$as_echo "ok" >&6; } 9113fi 9114 9115# Response file support. 9116if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9117 nm_file_list_spec='@' 9118elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9119 nm_file_list_spec='@' 9120fi 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9159$as_echo_n "checking for sysroot... " >&6; } 9160 9161# Check whether --with-sysroot was given. 9162if test "${with_sysroot+set}" = set; then : 9163 withval=$with_sysroot; 9164else 9165 with_sysroot=no 9166fi 9167 9168 9169lt_sysroot= 9170case $with_sysroot in #( 9171 yes) 9172 if test yes = "$GCC"; then 9173 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9174 fi 9175 ;; #( 9176 /*) 9177 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9178 ;; #( 9179 no|'') 9180 ;; #( 9181 *) 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9183$as_echo "$with_sysroot" >&6; } 9184 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9185 ;; 9186esac 9187 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9189$as_echo "${lt_sysroot:-no}" >&6; } 9190 9191 9192 9193 9194 9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9196$as_echo_n "checking for a working dd... " >&6; } 9197if ${ac_cv_path_lt_DD+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 printf 0123456789abcdef0123456789abcdef >conftest.i 9201cat conftest.i conftest.i >conftest2.i 9202: ${lt_DD:=$DD} 9203if test -z "$lt_DD"; then 9204 ac_path_lt_DD_found=false 9205 # Loop through the user's path and test for each of PROGNAME-LIST 9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9207for as_dir in $PATH 9208do 9209 IFS=$as_save_IFS 9210 test -z "$as_dir" && as_dir=. 9211 for ac_prog in dd; do 9212 for ac_exec_ext in '' $ac_executable_extensions; do 9213 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9214 as_fn_executable_p "$ac_path_lt_DD" || continue 9215if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9216 cmp -s conftest.i conftest.out \ 9217 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9218fi 9219 $ac_path_lt_DD_found && break 3 9220 done 9221 done 9222 done 9223IFS=$as_save_IFS 9224 if test -z "$ac_cv_path_lt_DD"; then 9225 : 9226 fi 9227else 9228 ac_cv_path_lt_DD=$lt_DD 9229fi 9230 9231rm -f conftest.i conftest2.i conftest.out 9232fi 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9234$as_echo "$ac_cv_path_lt_DD" >&6; } 9235 9236 9237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9238$as_echo_n "checking how to truncate binary pipes... " >&6; } 9239if ${lt_cv_truncate_bin+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241else 9242 printf 0123456789abcdef0123456789abcdef >conftest.i 9243cat conftest.i conftest.i >conftest2.i 9244lt_cv_truncate_bin= 9245if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9246 cmp -s conftest.i conftest.out \ 9247 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9248fi 9249rm -f conftest.i conftest2.i conftest.out 9250test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9251fi 9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9253$as_echo "$lt_cv_truncate_bin" >&6; } 9254 9255 9256 9257 9258 9259 9260 9261# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9262func_cc_basename () 9263{ 9264 for cc_temp in $*""; do 9265 case $cc_temp in 9266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9268 \-*) ;; 9269 *) break;; 9270 esac 9271 done 9272 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9273} 9274 9275# Check whether --enable-libtool-lock was given. 9276if test "${enable_libtool_lock+set}" = set; then : 9277 enableval=$enable_libtool_lock; 9278fi 9279 9280test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9281 9282# Some flags need to be propagated to the compiler or linker for good 9283# libtool support. 9284case $host in 9285ia64-*-hpux*) 9286 # Find out what ABI is being produced by ac_compile, and set mode 9287 # options accordingly. 9288 echo 'int i;' > conftest.$ac_ext 9289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9290 (eval $ac_compile) 2>&5 9291 ac_status=$? 9292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9293 test $ac_status = 0; }; then 9294 case `/usr/bin/file conftest.$ac_objext` in 9295 *ELF-32*) 9296 HPUX_IA64_MODE=32 9297 ;; 9298 *ELF-64*) 9299 HPUX_IA64_MODE=64 9300 ;; 9301 esac 9302 fi 9303 rm -rf conftest* 9304 ;; 9305*-*-irix6*) 9306 # Find out what ABI is being produced by ac_compile, and set linker 9307 # options accordingly. 9308 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9310 (eval $ac_compile) 2>&5 9311 ac_status=$? 9312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9313 test $ac_status = 0; }; then 9314 if test yes = "$lt_cv_prog_gnu_ld"; then 9315 case `/usr/bin/file conftest.$ac_objext` in 9316 *32-bit*) 9317 LD="${LD-ld} -melf32bsmip" 9318 ;; 9319 *N32*) 9320 LD="${LD-ld} -melf32bmipn32" 9321 ;; 9322 *64-bit*) 9323 LD="${LD-ld} -melf64bmip" 9324 ;; 9325 esac 9326 else 9327 case `/usr/bin/file conftest.$ac_objext` in 9328 *32-bit*) 9329 LD="${LD-ld} -32" 9330 ;; 9331 *N32*) 9332 LD="${LD-ld} -n32" 9333 ;; 9334 *64-bit*) 9335 LD="${LD-ld} -64" 9336 ;; 9337 esac 9338 fi 9339 fi 9340 rm -rf conftest* 9341 ;; 9342 9343mips64*-*linux*) 9344 # Find out what ABI is being produced by ac_compile, and set linker 9345 # options accordingly. 9346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9348 (eval $ac_compile) 2>&5 9349 ac_status=$? 9350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9351 test $ac_status = 0; }; then 9352 emul=elf 9353 case `/usr/bin/file conftest.$ac_objext` in 9354 *32-bit*) 9355 emul="${emul}32" 9356 ;; 9357 *64-bit*) 9358 emul="${emul}64" 9359 ;; 9360 esac 9361 case `/usr/bin/file conftest.$ac_objext` in 9362 *MSB*) 9363 emul="${emul}btsmip" 9364 ;; 9365 *LSB*) 9366 emul="${emul}ltsmip" 9367 ;; 9368 esac 9369 case `/usr/bin/file conftest.$ac_objext` in 9370 *N32*) 9371 emul="${emul}n32" 9372 ;; 9373 esac 9374 LD="${LD-ld} -m $emul" 9375 fi 9376 rm -rf conftest* 9377 ;; 9378 9379x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9380s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9381 # Find out what ABI is being produced by ac_compile, and set linker 9382 # options accordingly. Note that the listed cases only cover the 9383 # situations where additional linker options are needed (such as when 9384 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9385 # vice versa); the common cases where no linker options are needed do 9386 # not appear in the list. 9387 echo 'int i;' > conftest.$ac_ext 9388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9389 (eval $ac_compile) 2>&5 9390 ac_status=$? 9391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9392 test $ac_status = 0; }; then 9393 case `/usr/bin/file conftest.o` in 9394 *32-bit*) 9395 case $host in 9396 x86_64-*kfreebsd*-gnu) 9397 LD="${LD-ld} -m elf_i386_fbsd" 9398 ;; 9399 x86_64-*linux*) 9400 case `/usr/bin/file conftest.o` in 9401 *x86-64*) 9402 LD="${LD-ld} -m elf32_x86_64" 9403 ;; 9404 *) 9405 LD="${LD-ld} -m elf_i386" 9406 ;; 9407 esac 9408 ;; 9409 powerpc64le-*linux*) 9410 LD="${LD-ld} -m elf32lppclinux" 9411 ;; 9412 powerpc64-*linux*) 9413 LD="${LD-ld} -m elf32ppclinux" 9414 ;; 9415 s390x-*linux*) 9416 LD="${LD-ld} -m elf_s390" 9417 ;; 9418 sparc64-*linux*) 9419 LD="${LD-ld} -m elf32_sparc" 9420 ;; 9421 esac 9422 ;; 9423 *64-bit*) 9424 case $host in 9425 x86_64-*kfreebsd*-gnu) 9426 LD="${LD-ld} -m elf_x86_64_fbsd" 9427 ;; 9428 x86_64-*linux*) 9429 LD="${LD-ld} -m elf_x86_64" 9430 ;; 9431 powerpcle-*linux*) 9432 LD="${LD-ld} -m elf64lppc" 9433 ;; 9434 powerpc-*linux*) 9435 LD="${LD-ld} -m elf64ppc" 9436 ;; 9437 s390*-*linux*|s390*-*tpf*) 9438 LD="${LD-ld} -m elf64_s390" 9439 ;; 9440 sparc*-*linux*) 9441 LD="${LD-ld} -m elf64_sparc" 9442 ;; 9443 esac 9444 ;; 9445 esac 9446 fi 9447 rm -rf conftest* 9448 ;; 9449 9450*-*-sco3.2v5*) 9451 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9452 SAVE_CFLAGS=$CFLAGS 9453 CFLAGS="$CFLAGS -belf" 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9455$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9456if ${lt_cv_cc_needs_belf+:} false; then : 9457 $as_echo_n "(cached) " >&6 9458else 9459 ac_ext=c 9460ac_cpp='$CPP $CPPFLAGS' 9461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9463ac_compiler_gnu=$ac_cv_c_compiler_gnu 9464 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467 9468int 9469main () 9470{ 9471 9472 ; 9473 return 0; 9474} 9475_ACEOF 9476if ac_fn_c_try_link "$LINENO"; then : 9477 lt_cv_cc_needs_belf=yes 9478else 9479 lt_cv_cc_needs_belf=no 9480fi 9481rm -f core conftest.err conftest.$ac_objext \ 9482 conftest$ac_exeext conftest.$ac_ext 9483 ac_ext=c 9484ac_cpp='$CPP $CPPFLAGS' 9485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9487ac_compiler_gnu=$ac_cv_c_compiler_gnu 9488 9489fi 9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9491$as_echo "$lt_cv_cc_needs_belf" >&6; } 9492 if test yes != "$lt_cv_cc_needs_belf"; then 9493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9494 CFLAGS=$SAVE_CFLAGS 9495 fi 9496 ;; 9497*-*solaris*) 9498 # Find out what ABI is being produced by ac_compile, and set linker 9499 # options accordingly. 9500 echo 'int i;' > conftest.$ac_ext 9501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9502 (eval $ac_compile) 2>&5 9503 ac_status=$? 9504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9505 test $ac_status = 0; }; then 9506 case `/usr/bin/file conftest.o` in 9507 *64-bit*) 9508 case $lt_cv_prog_gnu_ld in 9509 yes*) 9510 case $host in 9511 i?86-*-solaris*|x86_64-*-solaris*) 9512 LD="${LD-ld} -m elf_x86_64" 9513 ;; 9514 sparc*-*-solaris*) 9515 LD="${LD-ld} -m elf64_sparc" 9516 ;; 9517 esac 9518 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9519 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9520 LD=${LD-ld}_sol2 9521 fi 9522 ;; 9523 *) 9524 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9525 LD="${LD-ld} -64" 9526 fi 9527 ;; 9528 esac 9529 ;; 9530 esac 9531 fi 9532 rm -rf conftest* 9533 ;; 9534esac 9535 9536need_locks=$enable_libtool_lock 9537 9538if test -n "$ac_tool_prefix"; then 9539 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9540set dummy ${ac_tool_prefix}mt; ac_word=$2 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9542$as_echo_n "checking for $ac_word... " >&6; } 9543if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545else 9546 if test -n "$MANIFEST_TOOL"; then 9547 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9548else 9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9550for as_dir in $PATH 9551do 9552 IFS=$as_save_IFS 9553 test -z "$as_dir" && as_dir=. 9554 for ac_exec_ext in '' $ac_executable_extensions; do 9555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9556 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9558 break 2 9559 fi 9560done 9561 done 9562IFS=$as_save_IFS 9563 9564fi 9565fi 9566MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9567if test -n "$MANIFEST_TOOL"; then 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9569$as_echo "$MANIFEST_TOOL" >&6; } 9570else 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9572$as_echo "no" >&6; } 9573fi 9574 9575 9576fi 9577if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9578 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9579 # Extract the first word of "mt", so it can be a program name with args. 9580set dummy mt; ac_word=$2 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9582$as_echo_n "checking for $ac_word... " >&6; } 9583if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585else 9586 if test -n "$ac_ct_MANIFEST_TOOL"; then 9587 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9588else 9589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9590for as_dir in $PATH 9591do 9592 IFS=$as_save_IFS 9593 test -z "$as_dir" && as_dir=. 9594 for ac_exec_ext in '' $ac_executable_extensions; do 9595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9596 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9598 break 2 9599 fi 9600done 9601 done 9602IFS=$as_save_IFS 9603 9604fi 9605fi 9606ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9607if test -n "$ac_ct_MANIFEST_TOOL"; then 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9609$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9610else 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9612$as_echo "no" >&6; } 9613fi 9614 9615 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9616 MANIFEST_TOOL=":" 9617 else 9618 case $cross_compiling:$ac_tool_warned in 9619yes:) 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9622ac_tool_warned=yes ;; 9623esac 9624 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9625 fi 9626else 9627 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9628fi 9629 9630test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9632$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9633if ${lt_cv_path_mainfest_tool+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 lt_cv_path_mainfest_tool=no 9637 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9638 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9639 cat conftest.err >&5 9640 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9641 lt_cv_path_mainfest_tool=yes 9642 fi 9643 rm -f conftest* 9644fi 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9646$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9647if test yes != "$lt_cv_path_mainfest_tool"; then 9648 MANIFEST_TOOL=: 9649fi 9650 9651 9652 9653 9654 9655 9656 case $host_os in 9657 rhapsody* | darwin*) 9658 if test -n "$ac_tool_prefix"; then 9659 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9660set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9662$as_echo_n "checking for $ac_word... " >&6; } 9663if ${ac_cv_prog_DSYMUTIL+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 if test -n "$DSYMUTIL"; then 9667 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9668else 9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9670for as_dir in $PATH 9671do 9672 IFS=$as_save_IFS 9673 test -z "$as_dir" && as_dir=. 9674 for ac_exec_ext in '' $ac_executable_extensions; do 9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9676 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9678 break 2 9679 fi 9680done 9681 done 9682IFS=$as_save_IFS 9683 9684fi 9685fi 9686DSYMUTIL=$ac_cv_prog_DSYMUTIL 9687if test -n "$DSYMUTIL"; then 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9689$as_echo "$DSYMUTIL" >&6; } 9690else 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9692$as_echo "no" >&6; } 9693fi 9694 9695 9696fi 9697if test -z "$ac_cv_prog_DSYMUTIL"; then 9698 ac_ct_DSYMUTIL=$DSYMUTIL 9699 # Extract the first word of "dsymutil", so it can be a program name with args. 9700set dummy dsymutil; ac_word=$2 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9702$as_echo_n "checking for $ac_word... " >&6; } 9703if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9704 $as_echo_n "(cached) " >&6 9705else 9706 if test -n "$ac_ct_DSYMUTIL"; then 9707 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9708else 9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9710for as_dir in $PATH 9711do 9712 IFS=$as_save_IFS 9713 test -z "$as_dir" && as_dir=. 9714 for ac_exec_ext in '' $ac_executable_extensions; do 9715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9716 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9718 break 2 9719 fi 9720done 9721 done 9722IFS=$as_save_IFS 9723 9724fi 9725fi 9726ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9727if test -n "$ac_ct_DSYMUTIL"; then 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9729$as_echo "$ac_ct_DSYMUTIL" >&6; } 9730else 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9732$as_echo "no" >&6; } 9733fi 9734 9735 if test "x$ac_ct_DSYMUTIL" = x; then 9736 DSYMUTIL=":" 9737 else 9738 case $cross_compiling:$ac_tool_warned in 9739yes:) 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9742ac_tool_warned=yes ;; 9743esac 9744 DSYMUTIL=$ac_ct_DSYMUTIL 9745 fi 9746else 9747 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9748fi 9749 9750 if test -n "$ac_tool_prefix"; then 9751 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9752set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9754$as_echo_n "checking for $ac_word... " >&6; } 9755if ${ac_cv_prog_NMEDIT+:} false; then : 9756 $as_echo_n "(cached) " >&6 9757else 9758 if test -n "$NMEDIT"; then 9759 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9760else 9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9762for as_dir in $PATH 9763do 9764 IFS=$as_save_IFS 9765 test -z "$as_dir" && as_dir=. 9766 for ac_exec_ext in '' $ac_executable_extensions; do 9767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9768 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9770 break 2 9771 fi 9772done 9773 done 9774IFS=$as_save_IFS 9775 9776fi 9777fi 9778NMEDIT=$ac_cv_prog_NMEDIT 9779if test -n "$NMEDIT"; then 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9781$as_echo "$NMEDIT" >&6; } 9782else 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9784$as_echo "no" >&6; } 9785fi 9786 9787 9788fi 9789if test -z "$ac_cv_prog_NMEDIT"; then 9790 ac_ct_NMEDIT=$NMEDIT 9791 # Extract the first word of "nmedit", so it can be a program name with args. 9792set dummy nmedit; ac_word=$2 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9794$as_echo_n "checking for $ac_word... " >&6; } 9795if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797else 9798 if test -n "$ac_ct_NMEDIT"; then 9799 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9800else 9801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9802for as_dir in $PATH 9803do 9804 IFS=$as_save_IFS 9805 test -z "$as_dir" && as_dir=. 9806 for ac_exec_ext in '' $ac_executable_extensions; do 9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9808 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9810 break 2 9811 fi 9812done 9813 done 9814IFS=$as_save_IFS 9815 9816fi 9817fi 9818ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9819if test -n "$ac_ct_NMEDIT"; then 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9821$as_echo "$ac_ct_NMEDIT" >&6; } 9822else 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9824$as_echo "no" >&6; } 9825fi 9826 9827 if test "x$ac_ct_NMEDIT" = x; then 9828 NMEDIT=":" 9829 else 9830 case $cross_compiling:$ac_tool_warned in 9831yes:) 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9834ac_tool_warned=yes ;; 9835esac 9836 NMEDIT=$ac_ct_NMEDIT 9837 fi 9838else 9839 NMEDIT="$ac_cv_prog_NMEDIT" 9840fi 9841 9842 if test -n "$ac_tool_prefix"; then 9843 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9844set dummy ${ac_tool_prefix}lipo; ac_word=$2 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9846$as_echo_n "checking for $ac_word... " >&6; } 9847if ${ac_cv_prog_LIPO+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 if test -n "$LIPO"; then 9851 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9852else 9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9854for as_dir in $PATH 9855do 9856 IFS=$as_save_IFS 9857 test -z "$as_dir" && as_dir=. 9858 for ac_exec_ext in '' $ac_executable_extensions; do 9859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9860 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9862 break 2 9863 fi 9864done 9865 done 9866IFS=$as_save_IFS 9867 9868fi 9869fi 9870LIPO=$ac_cv_prog_LIPO 9871if test -n "$LIPO"; then 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9873$as_echo "$LIPO" >&6; } 9874else 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9876$as_echo "no" >&6; } 9877fi 9878 9879 9880fi 9881if test -z "$ac_cv_prog_LIPO"; then 9882 ac_ct_LIPO=$LIPO 9883 # Extract the first word of "lipo", so it can be a program name with args. 9884set dummy lipo; ac_word=$2 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9886$as_echo_n "checking for $ac_word... " >&6; } 9887if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9888 $as_echo_n "(cached) " >&6 9889else 9890 if test -n "$ac_ct_LIPO"; then 9891 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9892else 9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9894for as_dir in $PATH 9895do 9896 IFS=$as_save_IFS 9897 test -z "$as_dir" && as_dir=. 9898 for ac_exec_ext in '' $ac_executable_extensions; do 9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9900 ac_cv_prog_ac_ct_LIPO="lipo" 9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9902 break 2 9903 fi 9904done 9905 done 9906IFS=$as_save_IFS 9907 9908fi 9909fi 9910ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9911if test -n "$ac_ct_LIPO"; then 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9913$as_echo "$ac_ct_LIPO" >&6; } 9914else 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9916$as_echo "no" >&6; } 9917fi 9918 9919 if test "x$ac_ct_LIPO" = x; then 9920 LIPO=":" 9921 else 9922 case $cross_compiling:$ac_tool_warned in 9923yes:) 9924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9926ac_tool_warned=yes ;; 9927esac 9928 LIPO=$ac_ct_LIPO 9929 fi 9930else 9931 LIPO="$ac_cv_prog_LIPO" 9932fi 9933 9934 if test -n "$ac_tool_prefix"; then 9935 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9936set dummy ${ac_tool_prefix}otool; ac_word=$2 9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9938$as_echo_n "checking for $ac_word... " >&6; } 9939if ${ac_cv_prog_OTOOL+:} false; then : 9940 $as_echo_n "(cached) " >&6 9941else 9942 if test -n "$OTOOL"; then 9943 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9944else 9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9946for as_dir in $PATH 9947do 9948 IFS=$as_save_IFS 9949 test -z "$as_dir" && as_dir=. 9950 for ac_exec_ext in '' $ac_executable_extensions; do 9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9952 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9954 break 2 9955 fi 9956done 9957 done 9958IFS=$as_save_IFS 9959 9960fi 9961fi 9962OTOOL=$ac_cv_prog_OTOOL 9963if test -n "$OTOOL"; then 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9965$as_echo "$OTOOL" >&6; } 9966else 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9968$as_echo "no" >&6; } 9969fi 9970 9971 9972fi 9973if test -z "$ac_cv_prog_OTOOL"; then 9974 ac_ct_OTOOL=$OTOOL 9975 # Extract the first word of "otool", so it can be a program name with args. 9976set dummy otool; ac_word=$2 9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9978$as_echo_n "checking for $ac_word... " >&6; } 9979if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981else 9982 if test -n "$ac_ct_OTOOL"; then 9983 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9984else 9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9986for as_dir in $PATH 9987do 9988 IFS=$as_save_IFS 9989 test -z "$as_dir" && as_dir=. 9990 for ac_exec_ext in '' $ac_executable_extensions; do 9991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9992 ac_cv_prog_ac_ct_OTOOL="otool" 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9994 break 2 9995 fi 9996done 9997 done 9998IFS=$as_save_IFS 9999 10000fi 10001fi 10002ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10003if test -n "$ac_ct_OTOOL"; then 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10005$as_echo "$ac_ct_OTOOL" >&6; } 10006else 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10008$as_echo "no" >&6; } 10009fi 10010 10011 if test "x$ac_ct_OTOOL" = x; then 10012 OTOOL=":" 10013 else 10014 case $cross_compiling:$ac_tool_warned in 10015yes:) 10016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10018ac_tool_warned=yes ;; 10019esac 10020 OTOOL=$ac_ct_OTOOL 10021 fi 10022else 10023 OTOOL="$ac_cv_prog_OTOOL" 10024fi 10025 10026 if test -n "$ac_tool_prefix"; then 10027 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10028set dummy ${ac_tool_prefix}otool64; ac_word=$2 10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10030$as_echo_n "checking for $ac_word... " >&6; } 10031if ${ac_cv_prog_OTOOL64+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 if test -n "$OTOOL64"; then 10035 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10036else 10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10038for as_dir in $PATH 10039do 10040 IFS=$as_save_IFS 10041 test -z "$as_dir" && as_dir=. 10042 for ac_exec_ext in '' $ac_executable_extensions; do 10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10044 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10046 break 2 10047 fi 10048done 10049 done 10050IFS=$as_save_IFS 10051 10052fi 10053fi 10054OTOOL64=$ac_cv_prog_OTOOL64 10055if test -n "$OTOOL64"; then 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10057$as_echo "$OTOOL64" >&6; } 10058else 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10060$as_echo "no" >&6; } 10061fi 10062 10063 10064fi 10065if test -z "$ac_cv_prog_OTOOL64"; then 10066 ac_ct_OTOOL64=$OTOOL64 10067 # Extract the first word of "otool64", so it can be a program name with args. 10068set dummy otool64; ac_word=$2 10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10070$as_echo_n "checking for $ac_word... " >&6; } 10071if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 if test -n "$ac_ct_OTOOL64"; then 10075 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10076else 10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10078for as_dir in $PATH 10079do 10080 IFS=$as_save_IFS 10081 test -z "$as_dir" && as_dir=. 10082 for ac_exec_ext in '' $ac_executable_extensions; do 10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10084 ac_cv_prog_ac_ct_OTOOL64="otool64" 10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10086 break 2 10087 fi 10088done 10089 done 10090IFS=$as_save_IFS 10091 10092fi 10093fi 10094ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10095if test -n "$ac_ct_OTOOL64"; then 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10097$as_echo "$ac_ct_OTOOL64" >&6; } 10098else 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10100$as_echo "no" >&6; } 10101fi 10102 10103 if test "x$ac_ct_OTOOL64" = x; then 10104 OTOOL64=":" 10105 else 10106 case $cross_compiling:$ac_tool_warned in 10107yes:) 10108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10110ac_tool_warned=yes ;; 10111esac 10112 OTOOL64=$ac_ct_OTOOL64 10113 fi 10114else 10115 OTOOL64="$ac_cv_prog_OTOOL64" 10116fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10145$as_echo_n "checking for -single_module linker flag... " >&6; } 10146if ${lt_cv_apple_cc_single_mod+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 lt_cv_apple_cc_single_mod=no 10150 if test -z "$LT_MULTI_MODULE"; then 10151 # By default we will add the -single_module flag. You can override 10152 # by either setting the environment variable LT_MULTI_MODULE 10153 # non-empty at configure time, or by adding -multi_module to the 10154 # link flags. 10155 rm -rf libconftest.dylib* 10156 echo "int foo(void){return 1;}" > conftest.c 10157 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10158-dynamiclib -Wl,-single_module conftest.c" >&5 10159 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10160 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10161 _lt_result=$? 10162 # If there is a non-empty error log, and "single_module" 10163 # appears in it, assume the flag caused a linker warning 10164 if test -s conftest.err && $GREP single_module conftest.err; then 10165 cat conftest.err >&5 10166 # Otherwise, if the output was created with a 0 exit code from 10167 # the compiler, it worked. 10168 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10169 lt_cv_apple_cc_single_mod=yes 10170 else 10171 cat conftest.err >&5 10172 fi 10173 rm -rf libconftest.dylib* 10174 rm -f conftest.* 10175 fi 10176fi 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10178$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10179 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10181$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10182if ${lt_cv_ld_exported_symbols_list+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 lt_cv_ld_exported_symbols_list=no 10186 save_LDFLAGS=$LDFLAGS 10187 echo "_main" > conftest.sym 10188 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190/* end confdefs.h. */ 10191 10192int 10193main () 10194{ 10195 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200if ac_fn_c_try_link "$LINENO"; then : 10201 lt_cv_ld_exported_symbols_list=yes 10202else 10203 lt_cv_ld_exported_symbols_list=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207 LDFLAGS=$save_LDFLAGS 10208 10209fi 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10211$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10212 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10214$as_echo_n "checking for -force_load linker flag... " >&6; } 10215if ${lt_cv_ld_force_load+:} false; then : 10216 $as_echo_n "(cached) " >&6 10217else 10218 lt_cv_ld_force_load=no 10219 cat > conftest.c << _LT_EOF 10220int forced_loaded() { return 2;} 10221_LT_EOF 10222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10224 echo "$AR cru libconftest.a conftest.o" >&5 10225 $AR cru libconftest.a conftest.o 2>&5 10226 echo "$RANLIB libconftest.a" >&5 10227 $RANLIB libconftest.a 2>&5 10228 cat > conftest.c << _LT_EOF 10229int main() { return 0;} 10230_LT_EOF 10231 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10232 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10233 _lt_result=$? 10234 if test -s conftest.err && $GREP force_load conftest.err; then 10235 cat conftest.err >&5 10236 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10237 lt_cv_ld_force_load=yes 10238 else 10239 cat conftest.err >&5 10240 fi 10241 rm -f conftest.err libconftest.a conftest conftest.c 10242 rm -rf conftest.dSYM 10243 10244fi 10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10246$as_echo "$lt_cv_ld_force_load" >&6; } 10247 case $host_os in 10248 rhapsody* | darwin1.[012]) 10249 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10250 darwin1.*) 10251 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10252 darwin*) # darwin 5.x on 10253 # if running on 10.5 or later, the deployment target defaults 10254 # to the OS version, if on x86, and 10.4, the deployment 10255 # target defaults to 10.4. Don't you love it? 10256 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10257 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10258 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10259 10.[012][,.]*) 10260 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10261 10.*) 10262 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10263 esac 10264 ;; 10265 esac 10266 if test yes = "$lt_cv_apple_cc_single_mod"; then 10267 _lt_dar_single_mod='$single_module' 10268 fi 10269 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10270 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10271 else 10272 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10273 fi 10274 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10275 _lt_dsymutil='~$DSYMUTIL $lib || :' 10276 else 10277 _lt_dsymutil= 10278 fi 10279 ;; 10280 esac 10281 10282# func_munge_path_list VARIABLE PATH 10283# ----------------------------------- 10284# VARIABLE is name of variable containing _space_ separated list of 10285# directories to be munged by the contents of PATH, which is string 10286# having a format: 10287# "DIR[:DIR]:" 10288# string "DIR[ DIR]" will be prepended to VARIABLE 10289# ":DIR[:DIR]" 10290# string "DIR[ DIR]" will be appended to VARIABLE 10291# "DIRP[:DIRP]::[DIRA:]DIRA" 10292# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10293# "DIRA[ DIRA]" will be appended to VARIABLE 10294# "DIR[:DIR]" 10295# VARIABLE will be replaced by "DIR[ DIR]" 10296func_munge_path_list () 10297{ 10298 case x$2 in 10299 x) 10300 ;; 10301 *:) 10302 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10303 ;; 10304 x:*) 10305 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10306 ;; 10307 *::*) 10308 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10309 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10310 ;; 10311 *) 10312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10313 ;; 10314 esac 10315} 10316 10317for ac_header in dlfcn.h 10318do : 10319 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10320" 10321if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10322 cat >>confdefs.h <<_ACEOF 10323#define HAVE_DLFCN_H 1 10324_ACEOF 10325 10326fi 10327 10328done 10329 10330 10331 10332 10333 10334 10335 10336# Set options 10337 10338 10339 10340 enable_dlopen=no 10341 10342 10343 enable_win32_dll=no 10344 10345 10346 # Check whether --enable-shared was given. 10347if test "${enable_shared+set}" = set; then : 10348 enableval=$enable_shared; p=${PACKAGE-default} 10349 case $enableval in 10350 yes) enable_shared=yes ;; 10351 no) enable_shared=no ;; 10352 *) 10353 enable_shared=no 10354 # Look at the argument we got. We use all the common list separators. 10355 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10356 for pkg in $enableval; do 10357 IFS=$lt_save_ifs 10358 if test "X$pkg" = "X$p"; then 10359 enable_shared=yes 10360 fi 10361 done 10362 IFS=$lt_save_ifs 10363 ;; 10364 esac 10365else 10366 enable_shared=yes 10367fi 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 # Check whether --enable-static was given. 10378if test "${enable_static+set}" = set; then : 10379 enableval=$enable_static; p=${PACKAGE-default} 10380 case $enableval in 10381 yes) enable_static=yes ;; 10382 no) enable_static=no ;; 10383 *) 10384 enable_static=no 10385 # Look at the argument we got. We use all the common list separators. 10386 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10387 for pkg in $enableval; do 10388 IFS=$lt_save_ifs 10389 if test "X$pkg" = "X$p"; then 10390 enable_static=yes 10391 fi 10392 done 10393 IFS=$lt_save_ifs 10394 ;; 10395 esac 10396else 10397 enable_static=yes 10398fi 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409# Check whether --with-pic was given. 10410if test "${with_pic+set}" = set; then : 10411 withval=$with_pic; lt_p=${PACKAGE-default} 10412 case $withval in 10413 yes|no) pic_mode=$withval ;; 10414 *) 10415 pic_mode=default 10416 # Look at the argument we got. We use all the common list separators. 10417 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10418 for lt_pkg in $withval; do 10419 IFS=$lt_save_ifs 10420 if test "X$lt_pkg" = "X$lt_p"; then 10421 pic_mode=yes 10422 fi 10423 done 10424 IFS=$lt_save_ifs 10425 ;; 10426 esac 10427else 10428 pic_mode=default 10429fi 10430 10431 10432 10433 10434 10435 10436 10437 10438 # Check whether --enable-fast-install was given. 10439if test "${enable_fast_install+set}" = set; then : 10440 enableval=$enable_fast_install; p=${PACKAGE-default} 10441 case $enableval in 10442 yes) enable_fast_install=yes ;; 10443 no) enable_fast_install=no ;; 10444 *) 10445 enable_fast_install=no 10446 # Look at the argument we got. We use all the common list separators. 10447 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10448 for pkg in $enableval; do 10449 IFS=$lt_save_ifs 10450 if test "X$pkg" = "X$p"; then 10451 enable_fast_install=yes 10452 fi 10453 done 10454 IFS=$lt_save_ifs 10455 ;; 10456 esac 10457else 10458 enable_fast_install=yes 10459fi 10460 10461 10462 10463 10464 10465 10466 10467 10468 shared_archive_member_spec= 10469case $host,$enable_shared in 10470power*-*-aix[5-9]*,yes) 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10472$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10473 10474# Check whether --with-aix-soname was given. 10475if test "${with_aix_soname+set}" = set; then : 10476 withval=$with_aix_soname; case $withval in 10477 aix|svr4|both) 10478 ;; 10479 *) 10480 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10481 ;; 10482 esac 10483 lt_cv_with_aix_soname=$with_aix_soname 10484else 10485 if ${lt_cv_with_aix_soname+:} false; then : 10486 $as_echo_n "(cached) " >&6 10487else 10488 lt_cv_with_aix_soname=aix 10489fi 10490 10491 with_aix_soname=$lt_cv_with_aix_soname 10492fi 10493 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10495$as_echo "$with_aix_soname" >&6; } 10496 if test aix != "$with_aix_soname"; then 10497 # For the AIX way of multilib, we name the shared archive member 10498 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10499 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10500 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10501 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10502 if test 64 = "${OBJECT_MODE-32}"; then 10503 shared_archive_member_spec=shr_64 10504 else 10505 shared_archive_member_spec=shr 10506 fi 10507 fi 10508 ;; 10509*) 10510 with_aix_soname=aix 10511 ;; 10512esac 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523# This can be used to rebuild libtool when needed 10524LIBTOOL_DEPS=$ltmain 10525 10526# Always use our own libtool. 10527LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558test -z "$LN_S" && LN_S="ln -s" 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573if test -n "${ZSH_VERSION+set}"; then 10574 setopt NO_GLOB_SUBST 10575fi 10576 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10578$as_echo_n "checking for objdir... " >&6; } 10579if ${lt_cv_objdir+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 rm -f .libs 2>/dev/null 10583mkdir .libs 2>/dev/null 10584if test -d .libs; then 10585 lt_cv_objdir=.libs 10586else 10587 # MS-DOS does not allow filenames that begin with a dot. 10588 lt_cv_objdir=_libs 10589fi 10590rmdir .libs 2>/dev/null 10591fi 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10593$as_echo "$lt_cv_objdir" >&6; } 10594objdir=$lt_cv_objdir 10595 10596 10597 10598 10599 10600cat >>confdefs.h <<_ACEOF 10601#define LT_OBJDIR "$lt_cv_objdir/" 10602_ACEOF 10603 10604 10605 10606 10607case $host_os in 10608aix3*) 10609 # AIX sometimes has problems with the GCC collect2 program. For some 10610 # reason, if we set the COLLECT_NAMES environment variable, the problems 10611 # vanish in a puff of smoke. 10612 if test set != "${COLLECT_NAMES+set}"; then 10613 COLLECT_NAMES= 10614 export COLLECT_NAMES 10615 fi 10616 ;; 10617esac 10618 10619# Global variables: 10620ofile=libtool 10621can_build_shared=yes 10622 10623# All known linkers require a '.a' archive for static linking (except MSVC, 10624# which needs '.lib'). 10625libext=a 10626 10627with_gnu_ld=$lt_cv_prog_gnu_ld 10628 10629old_CC=$CC 10630old_CFLAGS=$CFLAGS 10631 10632# Set sane defaults for various variables 10633test -z "$CC" && CC=cc 10634test -z "$LTCC" && LTCC=$CC 10635test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10636test -z "$LD" && LD=ld 10637test -z "$ac_objext" && ac_objext=o 10638 10639func_cc_basename $compiler 10640cc_basename=$func_cc_basename_result 10641 10642 10643# Only perform the check for file, if the check method requires it 10644test -z "$MAGIC_CMD" && MAGIC_CMD=file 10645case $deplibs_check_method in 10646file_magic*) 10647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10649$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10650if ${lt_cv_path_MAGIC_CMD+:} false; then : 10651 $as_echo_n "(cached) " >&6 10652else 10653 case $MAGIC_CMD in 10654[\\/*] | ?:[\\/]*) 10655 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10656 ;; 10657*) 10658 lt_save_MAGIC_CMD=$MAGIC_CMD 10659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10661 for ac_dir in $ac_dummy; do 10662 IFS=$lt_save_ifs 10663 test -z "$ac_dir" && ac_dir=. 10664 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10665 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10666 if test -n "$file_magic_test_file"; then 10667 case $deplibs_check_method in 10668 "file_magic "*) 10669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10670 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10672 $EGREP "$file_magic_regex" > /dev/null; then 10673 : 10674 else 10675 cat <<_LT_EOF 1>&2 10676 10677*** Warning: the command libtool uses to detect shared libraries, 10678*** $file_magic_cmd, produces output that libtool cannot recognize. 10679*** The result is that libtool may fail to recognize shared libraries 10680*** as such. This will affect the creation of libtool libraries that 10681*** depend on shared libraries, but programs linked with such libtool 10682*** libraries will work regardless of this problem. Nevertheless, you 10683*** may want to report the problem to your system manager and/or to 10684*** bug-libtool@gnu.org 10685 10686_LT_EOF 10687 fi ;; 10688 esac 10689 fi 10690 break 10691 fi 10692 done 10693 IFS=$lt_save_ifs 10694 MAGIC_CMD=$lt_save_MAGIC_CMD 10695 ;; 10696esac 10697fi 10698 10699MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10700if test -n "$MAGIC_CMD"; then 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10702$as_echo "$MAGIC_CMD" >&6; } 10703else 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10705$as_echo "no" >&6; } 10706fi 10707 10708 10709 10710 10711 10712if test -z "$lt_cv_path_MAGIC_CMD"; then 10713 if test -n "$ac_tool_prefix"; then 10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10715$as_echo_n "checking for file... " >&6; } 10716if ${lt_cv_path_MAGIC_CMD+:} false; then : 10717 $as_echo_n "(cached) " >&6 10718else 10719 case $MAGIC_CMD in 10720[\\/*] | ?:[\\/]*) 10721 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10722 ;; 10723*) 10724 lt_save_MAGIC_CMD=$MAGIC_CMD 10725 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10727 for ac_dir in $ac_dummy; do 10728 IFS=$lt_save_ifs 10729 test -z "$ac_dir" && ac_dir=. 10730 if test -f "$ac_dir/file"; then 10731 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10732 if test -n "$file_magic_test_file"; then 10733 case $deplibs_check_method in 10734 "file_magic "*) 10735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10736 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10738 $EGREP "$file_magic_regex" > /dev/null; then 10739 : 10740 else 10741 cat <<_LT_EOF 1>&2 10742 10743*** Warning: the command libtool uses to detect shared libraries, 10744*** $file_magic_cmd, produces output that libtool cannot recognize. 10745*** The result is that libtool may fail to recognize shared libraries 10746*** as such. This will affect the creation of libtool libraries that 10747*** depend on shared libraries, but programs linked with such libtool 10748*** libraries will work regardless of this problem. Nevertheless, you 10749*** may want to report the problem to your system manager and/or to 10750*** bug-libtool@gnu.org 10751 10752_LT_EOF 10753 fi ;; 10754 esac 10755 fi 10756 break 10757 fi 10758 done 10759 IFS=$lt_save_ifs 10760 MAGIC_CMD=$lt_save_MAGIC_CMD 10761 ;; 10762esac 10763fi 10764 10765MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10766if test -n "$MAGIC_CMD"; then 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10768$as_echo "$MAGIC_CMD" >&6; } 10769else 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10771$as_echo "no" >&6; } 10772fi 10773 10774 10775 else 10776 MAGIC_CMD=: 10777 fi 10778fi 10779 10780 fi 10781 ;; 10782esac 10783 10784# Use C for the default configuration in the libtool script 10785 10786lt_save_CC=$CC 10787ac_ext=c 10788ac_cpp='$CPP $CPPFLAGS' 10789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10791ac_compiler_gnu=$ac_cv_c_compiler_gnu 10792 10793 10794# Source file extension for C test sources. 10795ac_ext=c 10796 10797# Object file extension for compiled C test sources. 10798objext=o 10799objext=$objext 10800 10801# Code to be used in simple compile tests 10802lt_simple_compile_test_code="int some_variable = 0;" 10803 10804# Code to be used in simple link tests 10805lt_simple_link_test_code='int main(){return(0);}' 10806 10807 10808 10809 10810 10811 10812 10813# If no C compiler was specified, use CC. 10814LTCC=${LTCC-"$CC"} 10815 10816# If no C compiler flags were specified, use CFLAGS. 10817LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10818 10819# Allow CC to be a program name with arguments. 10820compiler=$CC 10821 10822# Save the default compiler, since it gets overwritten when the other 10823# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10824compiler_DEFAULT=$CC 10825 10826# save warnings/boilerplate of simple test code 10827ac_outfile=conftest.$ac_objext 10828echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10829eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10830_lt_compiler_boilerplate=`cat conftest.err` 10831$RM conftest* 10832 10833ac_outfile=conftest.$ac_objext 10834echo "$lt_simple_link_test_code" >conftest.$ac_ext 10835eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10836_lt_linker_boilerplate=`cat conftest.err` 10837$RM -r conftest* 10838 10839 10840if test -n "$compiler"; then 10841 10842lt_prog_compiler_no_builtin_flag= 10843 10844if test yes = "$GCC"; then 10845 case $cc_basename in 10846 nvcc*) 10847 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10848 *) 10849 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10850 esac 10851 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10853$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10854if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10855 $as_echo_n "(cached) " >&6 10856else 10857 lt_cv_prog_compiler_rtti_exceptions=no 10858 ac_outfile=conftest.$ac_objext 10859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10860 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10861 # Insert the option either (1) after the last *FLAGS variable, or 10862 # (2) before a word containing "conftest.", or (3) at the end. 10863 # Note that $ac_compile itself does not contain backslashes and begins 10864 # with a dollar sign (not a hyphen), so the echo should work correctly. 10865 # The option is referenced via a variable to avoid confusing sed. 10866 lt_compile=`echo "$ac_compile" | $SED \ 10867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10869 -e 's:$: $lt_compiler_flag:'` 10870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10871 (eval "$lt_compile" 2>conftest.err) 10872 ac_status=$? 10873 cat conftest.err >&5 10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10875 if (exit $ac_status) && test -s "$ac_outfile"; then 10876 # The compiler can only warn and ignore the option if not recognized 10877 # So say no if there are warnings other than the usual output. 10878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10881 lt_cv_prog_compiler_rtti_exceptions=yes 10882 fi 10883 fi 10884 $RM conftest* 10885 10886fi 10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10888$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10889 10890if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10891 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10892else 10893 : 10894fi 10895 10896fi 10897 10898 10899 10900 10901 10902 10903 lt_prog_compiler_wl= 10904lt_prog_compiler_pic= 10905lt_prog_compiler_static= 10906 10907 10908 if test yes = "$GCC"; then 10909 lt_prog_compiler_wl='-Wl,' 10910 lt_prog_compiler_static='-static' 10911 10912 case $host_os in 10913 aix*) 10914 # All AIX code is PIC. 10915 if test ia64 = "$host_cpu"; then 10916 # AIX 5 now supports IA64 processor 10917 lt_prog_compiler_static='-Bstatic' 10918 fi 10919 lt_prog_compiler_pic='-fPIC' 10920 ;; 10921 10922 amigaos*) 10923 case $host_cpu in 10924 powerpc) 10925 # see comment about AmigaOS4 .so support 10926 lt_prog_compiler_pic='-fPIC' 10927 ;; 10928 m68k) 10929 # FIXME: we need at least 68020 code to build shared libraries, but 10930 # adding the '-m68020' flag to GCC prevents building anything better, 10931 # like '-m68040'. 10932 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10933 ;; 10934 esac 10935 ;; 10936 10937 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10938 # PIC is the default for these OSes. 10939 ;; 10940 10941 mingw* | cygwin* | pw32* | os2* | cegcc*) 10942 # This hack is so that the source file can tell whether it is being 10943 # built for inclusion in a dll (and should export symbols for example). 10944 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10945 # (--disable-auto-import) libraries 10946 lt_prog_compiler_pic='-DDLL_EXPORT' 10947 case $host_os in 10948 os2*) 10949 lt_prog_compiler_static='$wl-static' 10950 ;; 10951 esac 10952 ;; 10953 10954 darwin* | rhapsody*) 10955 # PIC is the default on this platform 10956 # Common symbols not allowed in MH_DYLIB files 10957 lt_prog_compiler_pic='-fno-common' 10958 ;; 10959 10960 haiku*) 10961 # PIC is the default for Haiku. 10962 # The "-static" flag exists, but is broken. 10963 lt_prog_compiler_static= 10964 ;; 10965 10966 hpux*) 10967 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10968 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10969 # sets the default TLS model and affects inlining. 10970 case $host_cpu in 10971 hppa*64*) 10972 # +Z the default 10973 ;; 10974 *) 10975 lt_prog_compiler_pic='-fPIC' 10976 ;; 10977 esac 10978 ;; 10979 10980 interix[3-9]*) 10981 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10982 # Instead, we relocate shared libraries at runtime. 10983 ;; 10984 10985 msdosdjgpp*) 10986 # Just because we use GCC doesn't mean we suddenly get shared libraries 10987 # on systems that don't support them. 10988 lt_prog_compiler_can_build_shared=no 10989 enable_shared=no 10990 ;; 10991 10992 *nto* | *qnx*) 10993 # QNX uses GNU C++, but need to define -shared option too, otherwise 10994 # it will coredump. 10995 lt_prog_compiler_pic='-fPIC -shared' 10996 ;; 10997 10998 sysv4*MP*) 10999 if test -d /usr/nec; then 11000 lt_prog_compiler_pic=-Kconform_pic 11001 fi 11002 ;; 11003 11004 *) 11005 lt_prog_compiler_pic='-fPIC' 11006 ;; 11007 esac 11008 11009 case $cc_basename in 11010 nvcc*) # Cuda Compiler Driver 2.2 11011 lt_prog_compiler_wl='-Xlinker ' 11012 if test -n "$lt_prog_compiler_pic"; then 11013 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11014 fi 11015 ;; 11016 esac 11017 else 11018 # PORTME Check for flag to pass linker flags through the system compiler. 11019 case $host_os in 11020 aix*) 11021 lt_prog_compiler_wl='-Wl,' 11022 if test ia64 = "$host_cpu"; then 11023 # AIX 5 now supports IA64 processor 11024 lt_prog_compiler_static='-Bstatic' 11025 else 11026 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11027 fi 11028 ;; 11029 11030 darwin* | rhapsody*) 11031 # PIC is the default on this platform 11032 # Common symbols not allowed in MH_DYLIB files 11033 lt_prog_compiler_pic='-fno-common' 11034 case $cc_basename in 11035 nagfor*) 11036 # NAG Fortran compiler 11037 lt_prog_compiler_wl='-Wl,-Wl,,' 11038 lt_prog_compiler_pic='-PIC' 11039 lt_prog_compiler_static='-Bstatic' 11040 ;; 11041 esac 11042 ;; 11043 11044 mingw* | cygwin* | pw32* | os2* | cegcc*) 11045 # This hack is so that the source file can tell whether it is being 11046 # built for inclusion in a dll (and should export symbols for example). 11047 lt_prog_compiler_pic='-DDLL_EXPORT' 11048 case $host_os in 11049 os2*) 11050 lt_prog_compiler_static='$wl-static' 11051 ;; 11052 esac 11053 ;; 11054 11055 hpux9* | hpux10* | hpux11*) 11056 lt_prog_compiler_wl='-Wl,' 11057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11058 # not for PA HP-UX. 11059 case $host_cpu in 11060 hppa*64*|ia64*) 11061 # +Z the default 11062 ;; 11063 *) 11064 lt_prog_compiler_pic='+Z' 11065 ;; 11066 esac 11067 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11068 lt_prog_compiler_static='$wl-a ${wl}archive' 11069 ;; 11070 11071 irix5* | irix6* | nonstopux*) 11072 lt_prog_compiler_wl='-Wl,' 11073 # PIC (with -KPIC) is the default. 11074 lt_prog_compiler_static='-non_shared' 11075 ;; 11076 11077 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11078 case $cc_basename in 11079 # old Intel for x86_64, which still supported -KPIC. 11080 ecc*) 11081 lt_prog_compiler_wl='-Wl,' 11082 lt_prog_compiler_pic='-KPIC' 11083 lt_prog_compiler_static='-static' 11084 ;; 11085 # icc used to be incompatible with GCC. 11086 # ICC 10 doesn't accept -KPIC any more. 11087 icc* | ifort*) 11088 lt_prog_compiler_wl='-Wl,' 11089 lt_prog_compiler_pic='-fPIC' 11090 lt_prog_compiler_static='-static' 11091 ;; 11092 # Lahey Fortran 8.1. 11093 lf95*) 11094 lt_prog_compiler_wl='-Wl,' 11095 lt_prog_compiler_pic='--shared' 11096 lt_prog_compiler_static='--static' 11097 ;; 11098 nagfor*) 11099 # NAG Fortran compiler 11100 lt_prog_compiler_wl='-Wl,-Wl,,' 11101 lt_prog_compiler_pic='-PIC' 11102 lt_prog_compiler_static='-Bstatic' 11103 ;; 11104 tcc*) 11105 # Fabrice Bellard et al's Tiny C Compiler 11106 lt_prog_compiler_wl='-Wl,' 11107 lt_prog_compiler_pic='-fPIC' 11108 lt_prog_compiler_static='-static' 11109 ;; 11110 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11111 # Portland Group compilers (*not* the Pentium gcc compiler, 11112 # which looks to be a dead project) 11113 lt_prog_compiler_wl='-Wl,' 11114 lt_prog_compiler_pic='-fpic' 11115 lt_prog_compiler_static='-Bstatic' 11116 ;; 11117 ccc*) 11118 lt_prog_compiler_wl='-Wl,' 11119 # All Alpha code is PIC. 11120 lt_prog_compiler_static='-non_shared' 11121 ;; 11122 xl* | bgxl* | bgf* | mpixl*) 11123 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11124 lt_prog_compiler_wl='-Wl,' 11125 lt_prog_compiler_pic='-qpic' 11126 lt_prog_compiler_static='-qstaticlink' 11127 ;; 11128 *) 11129 case `$CC -V 2>&1 | sed 5q` in 11130 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11131 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11132 lt_prog_compiler_pic='-KPIC' 11133 lt_prog_compiler_static='-Bstatic' 11134 lt_prog_compiler_wl='' 11135 ;; 11136 *Sun\ F* | *Sun*Fortran*) 11137 lt_prog_compiler_pic='-KPIC' 11138 lt_prog_compiler_static='-Bstatic' 11139 lt_prog_compiler_wl='-Qoption ld ' 11140 ;; 11141 *Sun\ C*) 11142 # Sun C 5.9 11143 lt_prog_compiler_pic='-KPIC' 11144 lt_prog_compiler_static='-Bstatic' 11145 lt_prog_compiler_wl='-Wl,' 11146 ;; 11147 *Intel*\ [CF]*Compiler*) 11148 lt_prog_compiler_wl='-Wl,' 11149 lt_prog_compiler_pic='-fPIC' 11150 lt_prog_compiler_static='-static' 11151 ;; 11152 *Portland\ Group*) 11153 lt_prog_compiler_wl='-Wl,' 11154 lt_prog_compiler_pic='-fpic' 11155 lt_prog_compiler_static='-Bstatic' 11156 ;; 11157 esac 11158 ;; 11159 esac 11160 ;; 11161 11162 newsos6) 11163 lt_prog_compiler_pic='-KPIC' 11164 lt_prog_compiler_static='-Bstatic' 11165 ;; 11166 11167 *nto* | *qnx*) 11168 # QNX uses GNU C++, but need to define -shared option too, otherwise 11169 # it will coredump. 11170 lt_prog_compiler_pic='-fPIC -shared' 11171 ;; 11172 11173 osf3* | osf4* | osf5*) 11174 lt_prog_compiler_wl='-Wl,' 11175 # All OSF/1 code is PIC. 11176 lt_prog_compiler_static='-non_shared' 11177 ;; 11178 11179 rdos*) 11180 lt_prog_compiler_static='-non_shared' 11181 ;; 11182 11183 solaris*) 11184 lt_prog_compiler_pic='-KPIC' 11185 lt_prog_compiler_static='-Bstatic' 11186 case $cc_basename in 11187 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11188 lt_prog_compiler_wl='-Qoption ld ';; 11189 *) 11190 lt_prog_compiler_wl='-Wl,';; 11191 esac 11192 ;; 11193 11194 sunos4*) 11195 lt_prog_compiler_wl='-Qoption ld ' 11196 lt_prog_compiler_pic='-PIC' 11197 lt_prog_compiler_static='-Bstatic' 11198 ;; 11199 11200 sysv4 | sysv4.2uw2* | sysv4.3*) 11201 lt_prog_compiler_wl='-Wl,' 11202 lt_prog_compiler_pic='-KPIC' 11203 lt_prog_compiler_static='-Bstatic' 11204 ;; 11205 11206 sysv4*MP*) 11207 if test -d /usr/nec; then 11208 lt_prog_compiler_pic='-Kconform_pic' 11209 lt_prog_compiler_static='-Bstatic' 11210 fi 11211 ;; 11212 11213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11214 lt_prog_compiler_wl='-Wl,' 11215 lt_prog_compiler_pic='-KPIC' 11216 lt_prog_compiler_static='-Bstatic' 11217 ;; 11218 11219 unicos*) 11220 lt_prog_compiler_wl='-Wl,' 11221 lt_prog_compiler_can_build_shared=no 11222 ;; 11223 11224 uts4*) 11225 lt_prog_compiler_pic='-pic' 11226 lt_prog_compiler_static='-Bstatic' 11227 ;; 11228 11229 *) 11230 lt_prog_compiler_can_build_shared=no 11231 ;; 11232 esac 11233 fi 11234 11235case $host_os in 11236 # For platforms that do not support PIC, -DPIC is meaningless: 11237 *djgpp*) 11238 lt_prog_compiler_pic= 11239 ;; 11240 *) 11241 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11242 ;; 11243esac 11244 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11246$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11247if ${lt_cv_prog_compiler_pic+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249else 11250 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11251fi 11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11253$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11254lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11255 11256# 11257# Check to make sure the PIC flag actually works. 11258# 11259if test -n "$lt_prog_compiler_pic"; then 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11261$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11262if ${lt_cv_prog_compiler_pic_works+:} false; then : 11263 $as_echo_n "(cached) " >&6 11264else 11265 lt_cv_prog_compiler_pic_works=no 11266 ac_outfile=conftest.$ac_objext 11267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11268 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11269 # Insert the option either (1) after the last *FLAGS variable, or 11270 # (2) before a word containing "conftest.", or (3) at the end. 11271 # Note that $ac_compile itself does not contain backslashes and begins 11272 # with a dollar sign (not a hyphen), so the echo should work correctly. 11273 # The option is referenced via a variable to avoid confusing sed. 11274 lt_compile=`echo "$ac_compile" | $SED \ 11275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11277 -e 's:$: $lt_compiler_flag:'` 11278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11279 (eval "$lt_compile" 2>conftest.err) 11280 ac_status=$? 11281 cat conftest.err >&5 11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11283 if (exit $ac_status) && test -s "$ac_outfile"; then 11284 # The compiler can only warn and ignore the option if not recognized 11285 # So say no if there are warnings other than the usual output. 11286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11289 lt_cv_prog_compiler_pic_works=yes 11290 fi 11291 fi 11292 $RM conftest* 11293 11294fi 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11296$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11297 11298if test yes = "$lt_cv_prog_compiler_pic_works"; then 11299 case $lt_prog_compiler_pic in 11300 "" | " "*) ;; 11301 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11302 esac 11303else 11304 lt_prog_compiler_pic= 11305 lt_prog_compiler_can_build_shared=no 11306fi 11307 11308fi 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320# 11321# Check to make sure the static flag actually works. 11322# 11323wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11325$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11326if ${lt_cv_prog_compiler_static_works+:} false; then : 11327 $as_echo_n "(cached) " >&6 11328else 11329 lt_cv_prog_compiler_static_works=no 11330 save_LDFLAGS=$LDFLAGS 11331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11332 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11334 # The linker can only warn and ignore the option if not recognized 11335 # So say no if there are warnings 11336 if test -s conftest.err; then 11337 # Append any errors to the config.log. 11338 cat conftest.err 1>&5 11339 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11341 if diff conftest.exp conftest.er2 >/dev/null; then 11342 lt_cv_prog_compiler_static_works=yes 11343 fi 11344 else 11345 lt_cv_prog_compiler_static_works=yes 11346 fi 11347 fi 11348 $RM -r conftest* 11349 LDFLAGS=$save_LDFLAGS 11350 11351fi 11352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11353$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11354 11355if test yes = "$lt_cv_prog_compiler_static_works"; then 11356 : 11357else 11358 lt_prog_compiler_static= 11359fi 11360 11361 11362 11363 11364 11365 11366 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11368$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11369if ${lt_cv_prog_compiler_c_o+:} false; then : 11370 $as_echo_n "(cached) " >&6 11371else 11372 lt_cv_prog_compiler_c_o=no 11373 $RM -r conftest 2>/dev/null 11374 mkdir conftest 11375 cd conftest 11376 mkdir out 11377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11378 11379 lt_compiler_flag="-o out/conftest2.$ac_objext" 11380 # Insert the option either (1) after the last *FLAGS variable, or 11381 # (2) before a word containing "conftest.", or (3) at the end. 11382 # Note that $ac_compile itself does not contain backslashes and begins 11383 # with a dollar sign (not a hyphen), so the echo should work correctly. 11384 lt_compile=`echo "$ac_compile" | $SED \ 11385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11387 -e 's:$: $lt_compiler_flag:'` 11388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11389 (eval "$lt_compile" 2>out/conftest.err) 11390 ac_status=$? 11391 cat out/conftest.err >&5 11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11393 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11394 then 11395 # The compiler can only warn and ignore the option if not recognized 11396 # So say no if there are warnings 11397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11400 lt_cv_prog_compiler_c_o=yes 11401 fi 11402 fi 11403 chmod u+w . 2>&5 11404 $RM conftest* 11405 # SGI C++ compiler will create directory out/ii_files/ for 11406 # template instantiation 11407 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11408 $RM out/* && rmdir out 11409 cd .. 11410 $RM -r conftest 11411 $RM conftest* 11412 11413fi 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11415$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11416 11417 11418 11419 11420 11421 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11423$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11424if ${lt_cv_prog_compiler_c_o+:} false; then : 11425 $as_echo_n "(cached) " >&6 11426else 11427 lt_cv_prog_compiler_c_o=no 11428 $RM -r conftest 2>/dev/null 11429 mkdir conftest 11430 cd conftest 11431 mkdir out 11432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11433 11434 lt_compiler_flag="-o out/conftest2.$ac_objext" 11435 # Insert the option either (1) after the last *FLAGS variable, or 11436 # (2) before a word containing "conftest.", or (3) at the end. 11437 # Note that $ac_compile itself does not contain backslashes and begins 11438 # with a dollar sign (not a hyphen), so the echo should work correctly. 11439 lt_compile=`echo "$ac_compile" | $SED \ 11440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11442 -e 's:$: $lt_compiler_flag:'` 11443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11444 (eval "$lt_compile" 2>out/conftest.err) 11445 ac_status=$? 11446 cat out/conftest.err >&5 11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11448 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11449 then 11450 # The compiler can only warn and ignore the option if not recognized 11451 # So say no if there are warnings 11452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11455 lt_cv_prog_compiler_c_o=yes 11456 fi 11457 fi 11458 chmod u+w . 2>&5 11459 $RM conftest* 11460 # SGI C++ compiler will create directory out/ii_files/ for 11461 # template instantiation 11462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11463 $RM out/* && rmdir out 11464 cd .. 11465 $RM -r conftest 11466 $RM conftest* 11467 11468fi 11469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11470$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11471 11472 11473 11474 11475hard_links=nottested 11476if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11477 # do not overwrite the value of need_locks provided by the user 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11479$as_echo_n "checking if we can lock with hard links... " >&6; } 11480 hard_links=yes 11481 $RM conftest* 11482 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11483 touch conftest.a 11484 ln conftest.a conftest.b 2>&5 || hard_links=no 11485 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11487$as_echo "$hard_links" >&6; } 11488 if test no = "$hard_links"; then 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11490$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11491 need_locks=warn 11492 fi 11493else 11494 need_locks=no 11495fi 11496 11497 11498 11499 11500 11501 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11503$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11504 11505 runpath_var= 11506 allow_undefined_flag= 11507 always_export_symbols=no 11508 archive_cmds= 11509 archive_expsym_cmds= 11510 compiler_needs_object=no 11511 enable_shared_with_static_runtimes=no 11512 export_dynamic_flag_spec= 11513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11514 hardcode_automatic=no 11515 hardcode_direct=no 11516 hardcode_direct_absolute=no 11517 hardcode_libdir_flag_spec= 11518 hardcode_libdir_separator= 11519 hardcode_minus_L=no 11520 hardcode_shlibpath_var=unsupported 11521 inherit_rpath=no 11522 link_all_deplibs=unknown 11523 module_cmds= 11524 module_expsym_cmds= 11525 old_archive_from_new_cmds= 11526 old_archive_from_expsyms_cmds= 11527 thread_safe_flag_spec= 11528 whole_archive_flag_spec= 11529 # include_expsyms should be a list of space-separated symbols to be *always* 11530 # included in the symbol list 11531 include_expsyms= 11532 # exclude_expsyms can be an extended regexp of symbols to exclude 11533 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11534 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11535 # as well as any symbol that contains 'd'. 11536 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11537 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11538 # platforms (ab)use it in PIC code, but their linkers get confused if 11539 # the symbol is explicitly referenced. Since portable code cannot 11540 # rely on this symbol name, it's probably fine to never include it in 11541 # preloaded symbol tables. 11542 # Exclude shared library initialization/finalization symbols. 11543 extract_expsyms_cmds= 11544 11545 case $host_os in 11546 cygwin* | mingw* | pw32* | cegcc*) 11547 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11548 # When not using gcc, we currently assume that we are using 11549 # Microsoft Visual C++. 11550 if test yes != "$GCC"; then 11551 with_gnu_ld=no 11552 fi 11553 ;; 11554 interix*) 11555 # we just hope/assume this is gcc and not c89 (= MSVC++) 11556 with_gnu_ld=yes 11557 ;; 11558 openbsd* | bitrig*) 11559 with_gnu_ld=no 11560 ;; 11561 esac 11562 11563 ld_shlibs=yes 11564 11565 # On some targets, GNU ld is compatible enough with the native linker 11566 # that we're better off using the native interface for both. 11567 lt_use_gnu_ld_interface=no 11568 if test yes = "$with_gnu_ld"; then 11569 case $host_os in 11570 aix*) 11571 # The AIX port of GNU ld has always aspired to compatibility 11572 # with the native linker. However, as the warning in the GNU ld 11573 # block says, versions before 2.19.5* couldn't really create working 11574 # shared libraries, regardless of the interface used. 11575 case `$LD -v 2>&1` in 11576 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11577 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11578 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11579 *) 11580 lt_use_gnu_ld_interface=yes 11581 ;; 11582 esac 11583 ;; 11584 *) 11585 lt_use_gnu_ld_interface=yes 11586 ;; 11587 esac 11588 fi 11589 11590 if test yes = "$lt_use_gnu_ld_interface"; then 11591 # If archive_cmds runs LD, not CC, wlarc should be empty 11592 wlarc='$wl' 11593 11594 # Set some defaults for GNU ld with shared library support. These 11595 # are reset later if shared libraries are not supported. Putting them 11596 # here allows them to be overridden if necessary. 11597 runpath_var=LD_RUN_PATH 11598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11599 export_dynamic_flag_spec='$wl--export-dynamic' 11600 # ancient GNU ld didn't support --whole-archive et. al. 11601 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11602 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11603 else 11604 whole_archive_flag_spec= 11605 fi 11606 supports_anon_versioning=no 11607 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11608 *GNU\ gold*) supports_anon_versioning=yes ;; 11609 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11610 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11611 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11612 *\ 2.11.*) ;; # other 2.11 versions 11613 *) supports_anon_versioning=yes ;; 11614 esac 11615 11616 # See if GNU ld supports shared libraries. 11617 case $host_os in 11618 aix[3-9]*) 11619 # On AIX/PPC, the GNU linker is very broken 11620 if test ia64 != "$host_cpu"; then 11621 ld_shlibs=no 11622 cat <<_LT_EOF 1>&2 11623 11624*** Warning: the GNU linker, at least up to release 2.19, is reported 11625*** to be unable to reliably create shared libraries on AIX. 11626*** Therefore, libtool is disabling shared libraries support. If you 11627*** really care for shared libraries, you may want to install binutils 11628*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11629*** You will then need to restart the configuration process. 11630 11631_LT_EOF 11632 fi 11633 ;; 11634 11635 amigaos*) 11636 case $host_cpu in 11637 powerpc) 11638 # see comment about AmigaOS4 .so support 11639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11640 archive_expsym_cmds='' 11641 ;; 11642 m68k) 11643 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)' 11644 hardcode_libdir_flag_spec='-L$libdir' 11645 hardcode_minus_L=yes 11646 ;; 11647 esac 11648 ;; 11649 11650 beos*) 11651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11652 allow_undefined_flag=unsupported 11653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11654 # support --undefined. This deserves some investigation. FIXME 11655 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11656 else 11657 ld_shlibs=no 11658 fi 11659 ;; 11660 11661 cygwin* | mingw* | pw32* | cegcc*) 11662 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11663 # as there is no search path for DLLs. 11664 hardcode_libdir_flag_spec='-L$libdir' 11665 export_dynamic_flag_spec='$wl--export-all-symbols' 11666 allow_undefined_flag=unsupported 11667 always_export_symbols=no 11668 enable_shared_with_static_runtimes=yes 11669 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' 11670 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11671 11672 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11674 # If the export-symbols file already is a .def file, use it as 11675 # is; otherwise, prepend EXPORTS... 11676 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11677 cp $export_symbols $output_objdir/$soname.def; 11678 else 11679 echo EXPORTS > $output_objdir/$soname.def; 11680 cat $export_symbols >> $output_objdir/$soname.def; 11681 fi~ 11682 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11683 else 11684 ld_shlibs=no 11685 fi 11686 ;; 11687 11688 haiku*) 11689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11690 link_all_deplibs=yes 11691 ;; 11692 11693 os2*) 11694 hardcode_libdir_flag_spec='-L$libdir' 11695 hardcode_minus_L=yes 11696 allow_undefined_flag=unsupported 11697 shrext_cmds=.dll 11698 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11699 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11700 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11701 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11702 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11703 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11704 emximp -o $lib $output_objdir/$libname.def' 11705 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11706 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11707 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11708 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11709 prefix_cmds="$SED"~ 11710 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11711 prefix_cmds="$prefix_cmds -e 1d"; 11712 fi~ 11713 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11714 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11715 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11716 emximp -o $lib $output_objdir/$libname.def' 11717 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11718 enable_shared_with_static_runtimes=yes 11719 ;; 11720 11721 interix[3-9]*) 11722 hardcode_direct=no 11723 hardcode_shlibpath_var=no 11724 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11725 export_dynamic_flag_spec='$wl-E' 11726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11727 # Instead, shared libraries are loaded at an image base (0x10000000 by 11728 # default) and relocated if they conflict, which is a slow very memory 11729 # consuming and fragmenting process. To avoid this, we pick a random, 11730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11731 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11733 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' 11734 ;; 11735 11736 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11737 tmp_diet=no 11738 if test linux-dietlibc = "$host_os"; then 11739 case $cc_basename in 11740 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11741 esac 11742 fi 11743 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11744 && test no = "$tmp_diet" 11745 then 11746 tmp_addflag=' $pic_flag' 11747 tmp_sharedflag='-shared' 11748 case $cc_basename,$host_cpu in 11749 pgcc*) # Portland Group C compiler 11750 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' 11751 tmp_addflag=' $pic_flag' 11752 ;; 11753 pgf77* | pgf90* | pgf95* | pgfortran*) 11754 # Portland Group f77 and f90 compilers 11755 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' 11756 tmp_addflag=' $pic_flag -Mnomain' ;; 11757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11758 tmp_addflag=' -i_dynamic' ;; 11759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11760 tmp_addflag=' -i_dynamic -nofor_main' ;; 11761 ifc* | ifort*) # Intel Fortran compiler 11762 tmp_addflag=' -nofor_main' ;; 11763 lf95*) # Lahey Fortran 8.1 11764 whole_archive_flag_spec= 11765 tmp_sharedflag='--shared' ;; 11766 nagfor*) # NAGFOR 5.3 11767 tmp_sharedflag='-Wl,-shared' ;; 11768 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11769 tmp_sharedflag='-qmkshrobj' 11770 tmp_addflag= ;; 11771 nvcc*) # Cuda Compiler Driver 2.2 11772 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' 11773 compiler_needs_object=yes 11774 ;; 11775 esac 11776 case `$CC -V 2>&1 | sed 5q` in 11777 *Sun\ C*) # Sun C 5.9 11778 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' 11779 compiler_needs_object=yes 11780 tmp_sharedflag='-G' ;; 11781 *Sun\ F*) # Sun Fortran 8.3 11782 tmp_sharedflag='-G' ;; 11783 esac 11784 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11785 11786 if test yes = "$supports_anon_versioning"; then 11787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11789 echo "local: *; };" >> $output_objdir/$libname.ver~ 11790 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11791 fi 11792 11793 case $cc_basename in 11794 tcc*) 11795 export_dynamic_flag_spec='-rdynamic' 11796 ;; 11797 xlf* | bgf* | bgxlf* | mpixlf*) 11798 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11799 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11801 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11802 if test yes = "$supports_anon_versioning"; then 11803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11805 echo "local: *; };" >> $output_objdir/$libname.ver~ 11806 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11807 fi 11808 ;; 11809 esac 11810 else 11811 ld_shlibs=no 11812 fi 11813 ;; 11814 11815 netbsd*) 11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11817 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11818 wlarc= 11819 else 11820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11821 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11822 fi 11823 ;; 11824 11825 solaris*) 11826 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11827 ld_shlibs=no 11828 cat <<_LT_EOF 1>&2 11829 11830*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11831*** create shared libraries on Solaris systems. Therefore, libtool 11832*** is disabling shared libraries support. We urge you to upgrade GNU 11833*** binutils to release 2.9.1 or newer. Another option is to modify 11834*** your PATH or compiler configuration so that the native linker is 11835*** used, and then restart. 11836 11837_LT_EOF 11838 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11841 else 11842 ld_shlibs=no 11843 fi 11844 ;; 11845 11846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11847 case `$LD -v 2>&1` in 11848 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11849 ld_shlibs=no 11850 cat <<_LT_EOF 1>&2 11851 11852*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11853*** reliably create shared libraries on SCO systems. Therefore, libtool 11854*** is disabling shared libraries support. We urge you to upgrade GNU 11855*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11856*** your PATH or compiler configuration so that the native linker is 11857*** used, and then restart. 11858 11859_LT_EOF 11860 ;; 11861 *) 11862 # For security reasons, it is highly recommended that you always 11863 # use absolute paths for naming shared libraries, and exclude the 11864 # DT_RUNPATH tag from executables and libraries. But doing so 11865 # requires that you compile everything twice, which is a pain. 11866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11870 else 11871 ld_shlibs=no 11872 fi 11873 ;; 11874 esac 11875 ;; 11876 11877 sunos4*) 11878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11879 wlarc= 11880 hardcode_direct=yes 11881 hardcode_shlibpath_var=no 11882 ;; 11883 11884 *) 11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11888 else 11889 ld_shlibs=no 11890 fi 11891 ;; 11892 esac 11893 11894 if test no = "$ld_shlibs"; then 11895 runpath_var= 11896 hardcode_libdir_flag_spec= 11897 export_dynamic_flag_spec= 11898 whole_archive_flag_spec= 11899 fi 11900 else 11901 # PORTME fill in a description of your system's linker (not GNU ld) 11902 case $host_os in 11903 aix3*) 11904 allow_undefined_flag=unsupported 11905 always_export_symbols=yes 11906 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' 11907 # Note: this linker hardcodes the directories in LIBPATH if there 11908 # are no directories specified by -L. 11909 hardcode_minus_L=yes 11910 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11911 # Neither direct hardcoding nor static linking is supported with a 11912 # broken collect2. 11913 hardcode_direct=unsupported 11914 fi 11915 ;; 11916 11917 aix[4-9]*) 11918 if test ia64 = "$host_cpu"; then 11919 # On IA64, the linker does run time linking by default, so we don't 11920 # have to do anything special. 11921 aix_use_runtimelinking=no 11922 exp_sym_flag='-Bexport' 11923 no_entry_flag= 11924 else 11925 # If we're using GNU nm, then we don't want the "-C" option. 11926 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11927 # Without the "-l" option, or with the "-B" option, AIX nm treats 11928 # weak defined symbols like other global defined symbols, whereas 11929 # GNU nm marks them as "W". 11930 # While the 'weak' keyword is ignored in the Export File, we need 11931 # it in the Import File for the 'aix-soname' feature, so we have 11932 # to replace the "-B" option with "-P" for AIX nm. 11933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11934 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' 11935 else 11936 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' 11937 fi 11938 aix_use_runtimelinking=no 11939 11940 # Test if we are trying to use run time linking or normal 11941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11942 # have runtime linking enabled, and use it for executables. 11943 # For shared libraries, we enable/disable runtime linking 11944 # depending on the kind of the shared library created - 11945 # when "with_aix_soname,aix_use_runtimelinking" is: 11946 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11947 # "aix,yes" lib.so shared, rtl:yes, for executables 11948 # lib.a static archive 11949 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11950 # lib.a(lib.so.V) shared, rtl:no, for executables 11951 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11952 # lib.a(lib.so.V) shared, rtl:no 11953 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11954 # lib.a static archive 11955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11956 for ld_flag in $LDFLAGS; do 11957 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11958 aix_use_runtimelinking=yes 11959 break 11960 fi 11961 done 11962 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11963 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11964 # so we don't have lib.a shared libs to link our executables. 11965 # We have to force runtime linking in this case. 11966 aix_use_runtimelinking=yes 11967 LDFLAGS="$LDFLAGS -Wl,-brtl" 11968 fi 11969 ;; 11970 esac 11971 11972 exp_sym_flag='-bexport' 11973 no_entry_flag='-bnoentry' 11974 fi 11975 11976 # When large executables or shared objects are built, AIX ld can 11977 # have problems creating the table of contents. If linking a library 11978 # or program results in "error TOC overflow" add -mminimal-toc to 11979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11981 11982 archive_cmds='' 11983 hardcode_direct=yes 11984 hardcode_direct_absolute=yes 11985 hardcode_libdir_separator=':' 11986 link_all_deplibs=yes 11987 file_list_spec='$wl-f,' 11988 case $with_aix_soname,$aix_use_runtimelinking in 11989 aix,*) ;; # traditional, no import file 11990 svr4,* | *,yes) # use import file 11991 # The Import File defines what to hardcode. 11992 hardcode_direct=no 11993 hardcode_direct_absolute=no 11994 ;; 11995 esac 11996 11997 if test yes = "$GCC"; then 11998 case $host_os in aix4.[012]|aix4.[012].*) 11999 # We only want to do this on AIX 4.2 and lower, the check 12000 # below for broken collect2 doesn't work under 4.3+ 12001 collect2name=`$CC -print-prog-name=collect2` 12002 if test -f "$collect2name" && 12003 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12004 then 12005 # We have reworked collect2 12006 : 12007 else 12008 # We have old collect2 12009 hardcode_direct=unsupported 12010 # It fails to find uninstalled libraries when the uninstalled 12011 # path is not listed in the libpath. Setting hardcode_minus_L 12012 # to unsupported forces relinking 12013 hardcode_minus_L=yes 12014 hardcode_libdir_flag_spec='-L$libdir' 12015 hardcode_libdir_separator= 12016 fi 12017 ;; 12018 esac 12019 shared_flag='-shared' 12020 if test yes = "$aix_use_runtimelinking"; then 12021 shared_flag="$shared_flag "'$wl-G' 12022 fi 12023 # Need to ensure runtime linking is disabled for the traditional 12024 # shared library, or the linker may eventually find shared libraries 12025 # /with/ Import File - we do not want to mix them. 12026 shared_flag_aix='-shared' 12027 shared_flag_svr4='-shared $wl-G' 12028 else 12029 # not using gcc 12030 if test ia64 = "$host_cpu"; then 12031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12032 # chokes on -Wl,-G. The following line is correct: 12033 shared_flag='-G' 12034 else 12035 if test yes = "$aix_use_runtimelinking"; then 12036 shared_flag='$wl-G' 12037 else 12038 shared_flag='$wl-bM:SRE' 12039 fi 12040 shared_flag_aix='$wl-bM:SRE' 12041 shared_flag_svr4='$wl-G' 12042 fi 12043 fi 12044 12045 export_dynamic_flag_spec='$wl-bexpall' 12046 # It seems that -bexpall does not export symbols beginning with 12047 # underscore (_), so it is better to generate a list of symbols to export. 12048 always_export_symbols=yes 12049 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12050 # Warning - without using the other runtime loading flags (-brtl), 12051 # -berok will link without error, but may produce a broken library. 12052 allow_undefined_flag='-berok' 12053 # Determine the default libpath from the value encoded in an 12054 # empty executable. 12055 if test set = "${lt_cv_aix_libpath+set}"; then 12056 aix_libpath=$lt_cv_aix_libpath 12057else 12058 if ${lt_cv_aix_libpath_+:} false; then : 12059 $as_echo_n "(cached) " >&6 12060else 12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12062/* end confdefs.h. */ 12063 12064int 12065main () 12066{ 12067 12068 ; 12069 return 0; 12070} 12071_ACEOF 12072if ac_fn_c_try_link "$LINENO"; then : 12073 12074 lt_aix_libpath_sed=' 12075 /Import File Strings/,/^$/ { 12076 /^0/ { 12077 s/^0 *\([^ ]*\) *$/\1/ 12078 p 12079 } 12080 }' 12081 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12082 # Check for a 64-bit object if we didn't find anything. 12083 if test -z "$lt_cv_aix_libpath_"; then 12084 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12085 fi 12086fi 12087rm -f core conftest.err conftest.$ac_objext \ 12088 conftest$ac_exeext conftest.$ac_ext 12089 if test -z "$lt_cv_aix_libpath_"; then 12090 lt_cv_aix_libpath_=/usr/lib:/lib 12091 fi 12092 12093fi 12094 12095 aix_libpath=$lt_cv_aix_libpath_ 12096fi 12097 12098 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12099 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 12100 else 12101 if test ia64 = "$host_cpu"; then 12102 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12103 allow_undefined_flag="-z nodefs" 12104 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" 12105 else 12106 # Determine the default libpath from the value encoded in an 12107 # empty executable. 12108 if test set = "${lt_cv_aix_libpath+set}"; then 12109 aix_libpath=$lt_cv_aix_libpath 12110else 12111 if ${lt_cv_aix_libpath_+:} false; then : 12112 $as_echo_n "(cached) " >&6 12113else 12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116 12117int 12118main () 12119{ 12120 12121 ; 12122 return 0; 12123} 12124_ACEOF 12125if ac_fn_c_try_link "$LINENO"; then : 12126 12127 lt_aix_libpath_sed=' 12128 /Import File Strings/,/^$/ { 12129 /^0/ { 12130 s/^0 *\([^ ]*\) *$/\1/ 12131 p 12132 } 12133 }' 12134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12135 # Check for a 64-bit object if we didn't find anything. 12136 if test -z "$lt_cv_aix_libpath_"; then 12137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12138 fi 12139fi 12140rm -f core conftest.err conftest.$ac_objext \ 12141 conftest$ac_exeext conftest.$ac_ext 12142 if test -z "$lt_cv_aix_libpath_"; then 12143 lt_cv_aix_libpath_=/usr/lib:/lib 12144 fi 12145 12146fi 12147 12148 aix_libpath=$lt_cv_aix_libpath_ 12149fi 12150 12151 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12152 # Warning - without using the other run time loading flags, 12153 # -berok will link without error, but may produce a broken library. 12154 no_undefined_flag=' $wl-bernotok' 12155 allow_undefined_flag=' $wl-berok' 12156 if test yes = "$with_gnu_ld"; then 12157 # We only use this code for GNU lds that support --whole-archive. 12158 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12159 else 12160 # Exported symbols can be pulled into shared objects from archives 12161 whole_archive_flag_spec='$convenience' 12162 fi 12163 archive_cmds_need_lc=yes 12164 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12165 # -brtl affects multiple linker settings, -berok does not and is overridden later 12166 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12167 if test svr4 != "$with_aix_soname"; then 12168 # This is similar to how AIX traditionally builds its shared libraries. 12169 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' 12170 fi 12171 if test aix != "$with_aix_soname"; then 12172 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' 12173 else 12174 # used by -dlpreopen to get the symbols 12175 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12176 fi 12177 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12178 fi 12179 fi 12180 ;; 12181 12182 amigaos*) 12183 case $host_cpu in 12184 powerpc) 12185 # see comment about AmigaOS4 .so support 12186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12187 archive_expsym_cmds='' 12188 ;; 12189 m68k) 12190 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)' 12191 hardcode_libdir_flag_spec='-L$libdir' 12192 hardcode_minus_L=yes 12193 ;; 12194 esac 12195 ;; 12196 12197 bsdi[45]*) 12198 export_dynamic_flag_spec=-rdynamic 12199 ;; 12200 12201 cygwin* | mingw* | pw32* | cegcc*) 12202 # When not using gcc, we currently assume that we are using 12203 # Microsoft Visual C++. 12204 # hardcode_libdir_flag_spec is actually meaningless, as there is 12205 # no search path for DLLs. 12206 case $cc_basename in 12207 cl*) 12208 # Native MSVC 12209 hardcode_libdir_flag_spec=' ' 12210 allow_undefined_flag=unsupported 12211 always_export_symbols=yes 12212 file_list_spec='@' 12213 # Tell ltmain to make .lib files, not .a files. 12214 libext=lib 12215 # Tell ltmain to make .dll files, not .so files. 12216 shrext_cmds=.dll 12217 # FIXME: Setting linknames here is a bad hack. 12218 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12219 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12220 cp "$export_symbols" "$output_objdir/$soname.def"; 12221 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12222 else 12223 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12224 fi~ 12225 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12226 linknames=' 12227 # The linker will not automatically build a static lib if we build a DLL. 12228 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12229 enable_shared_with_static_runtimes=yes 12230 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12232 # Don't use ranlib 12233 old_postinstall_cmds='chmod 644 $oldlib' 12234 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12235 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12236 case $lt_outputfile in 12237 *.exe|*.EXE) ;; 12238 *) 12239 lt_outputfile=$lt_outputfile.exe 12240 lt_tool_outputfile=$lt_tool_outputfile.exe 12241 ;; 12242 esac~ 12243 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12244 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12245 $RM "$lt_outputfile.manifest"; 12246 fi' 12247 ;; 12248 *) 12249 # Assume MSVC wrapper 12250 hardcode_libdir_flag_spec=' ' 12251 allow_undefined_flag=unsupported 12252 # Tell ltmain to make .lib files, not .a files. 12253 libext=lib 12254 # Tell ltmain to make .dll files, not .so files. 12255 shrext_cmds=.dll 12256 # FIXME: Setting linknames here is a bad hack. 12257 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12258 # The linker will automatically build a .lib file if we build a DLL. 12259 old_archive_from_new_cmds='true' 12260 # FIXME: Should let the user specify the lib program. 12261 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12262 enable_shared_with_static_runtimes=yes 12263 ;; 12264 esac 12265 ;; 12266 12267 darwin* | rhapsody*) 12268 12269 12270 archive_cmds_need_lc=no 12271 hardcode_direct=no 12272 hardcode_automatic=yes 12273 hardcode_shlibpath_var=unsupported 12274 if test yes = "$lt_cv_ld_force_load"; then 12275 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\"`' 12276 12277 else 12278 whole_archive_flag_spec='' 12279 fi 12280 link_all_deplibs=yes 12281 allow_undefined_flag=$_lt_dar_allow_undefined 12282 case $cc_basename in 12283 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12284 *) _lt_dar_can_shared=$GCC ;; 12285 esac 12286 if test yes = "$_lt_dar_can_shared"; then 12287 output_verbose_link_cmd=func_echo_all 12288 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12289 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12290 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" 12291 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" 12292 12293 else 12294 ld_shlibs=no 12295 fi 12296 12297 ;; 12298 12299 dgux*) 12300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12301 hardcode_libdir_flag_spec='-L$libdir' 12302 hardcode_shlibpath_var=no 12303 ;; 12304 12305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12306 # support. Future versions do this automatically, but an explicit c++rt0.o 12307 # does not break anything, and helps significantly (at the cost of a little 12308 # extra space). 12309 freebsd2.2*) 12310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12311 hardcode_libdir_flag_spec='-R$libdir' 12312 hardcode_direct=yes 12313 hardcode_shlibpath_var=no 12314 ;; 12315 12316 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12317 freebsd2.*) 12318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12319 hardcode_direct=yes 12320 hardcode_minus_L=yes 12321 hardcode_shlibpath_var=no 12322 ;; 12323 12324 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12325 freebsd* | dragonfly*) 12326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12327 hardcode_libdir_flag_spec='-R$libdir' 12328 hardcode_direct=yes 12329 hardcode_shlibpath_var=no 12330 ;; 12331 12332 hpux9*) 12333 if test yes = "$GCC"; then 12334 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' 12335 else 12336 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' 12337 fi 12338 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12339 hardcode_libdir_separator=: 12340 hardcode_direct=yes 12341 12342 # hardcode_minus_L: Not really in the search PATH, 12343 # but as the default location of the library. 12344 hardcode_minus_L=yes 12345 export_dynamic_flag_spec='$wl-E' 12346 ;; 12347 12348 hpux10*) 12349 if test yes,no = "$GCC,$with_gnu_ld"; then 12350 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12351 else 12352 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12353 fi 12354 if test no = "$with_gnu_ld"; then 12355 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12356 hardcode_libdir_separator=: 12357 hardcode_direct=yes 12358 hardcode_direct_absolute=yes 12359 export_dynamic_flag_spec='$wl-E' 12360 # hardcode_minus_L: Not really in the search PATH, 12361 # but as the default location of the library. 12362 hardcode_minus_L=yes 12363 fi 12364 ;; 12365 12366 hpux11*) 12367 if test yes,no = "$GCC,$with_gnu_ld"; then 12368 case $host_cpu in 12369 hppa*64*) 12370 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12371 ;; 12372 ia64*) 12373 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12374 ;; 12375 *) 12376 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12377 ;; 12378 esac 12379 else 12380 case $host_cpu in 12381 hppa*64*) 12382 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12383 ;; 12384 ia64*) 12385 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12386 ;; 12387 *) 12388 12389 # Older versions of the 11.00 compiler do not understand -b yet 12390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12392$as_echo_n "checking if $CC understands -b... " >&6; } 12393if ${lt_cv_prog_compiler__b+:} false; then : 12394 $as_echo_n "(cached) " >&6 12395else 12396 lt_cv_prog_compiler__b=no 12397 save_LDFLAGS=$LDFLAGS 12398 LDFLAGS="$LDFLAGS -b" 12399 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12401 # The linker can only warn and ignore the option if not recognized 12402 # So say no if there are warnings 12403 if test -s conftest.err; then 12404 # Append any errors to the config.log. 12405 cat conftest.err 1>&5 12406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12408 if diff conftest.exp conftest.er2 >/dev/null; then 12409 lt_cv_prog_compiler__b=yes 12410 fi 12411 else 12412 lt_cv_prog_compiler__b=yes 12413 fi 12414 fi 12415 $RM -r conftest* 12416 LDFLAGS=$save_LDFLAGS 12417 12418fi 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12420$as_echo "$lt_cv_prog_compiler__b" >&6; } 12421 12422if test yes = "$lt_cv_prog_compiler__b"; then 12423 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12424else 12425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12426fi 12427 12428 ;; 12429 esac 12430 fi 12431 if test no = "$with_gnu_ld"; then 12432 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12433 hardcode_libdir_separator=: 12434 12435 case $host_cpu in 12436 hppa*64*|ia64*) 12437 hardcode_direct=no 12438 hardcode_shlibpath_var=no 12439 ;; 12440 *) 12441 hardcode_direct=yes 12442 hardcode_direct_absolute=yes 12443 export_dynamic_flag_spec='$wl-E' 12444 12445 # hardcode_minus_L: Not really in the search PATH, 12446 # but as the default location of the library. 12447 hardcode_minus_L=yes 12448 ;; 12449 esac 12450 fi 12451 ;; 12452 12453 irix5* | irix6* | nonstopux*) 12454 if test yes = "$GCC"; then 12455 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' 12456 # Try to use the -exported_symbol ld option, if it does not 12457 # work, assume that -exports_file does not work either and 12458 # implicitly export all symbols. 12459 # This should be the same for all languages, so no per-tag cache variable. 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12461$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12462if ${lt_cv_irix_exported_symbol+:} false; then : 12463 $as_echo_n "(cached) " >&6 12464else 12465 save_LDFLAGS=$LDFLAGS 12466 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12468/* end confdefs.h. */ 12469int foo (void) { return 0; } 12470_ACEOF 12471if ac_fn_c_try_link "$LINENO"; then : 12472 lt_cv_irix_exported_symbol=yes 12473else 12474 lt_cv_irix_exported_symbol=no 12475fi 12476rm -f core conftest.err conftest.$ac_objext \ 12477 conftest$ac_exeext conftest.$ac_ext 12478 LDFLAGS=$save_LDFLAGS 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12481$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12482 if test yes = "$lt_cv_irix_exported_symbol"; then 12483 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' 12484 fi 12485 else 12486 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' 12487 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' 12488 fi 12489 archive_cmds_need_lc='no' 12490 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12491 hardcode_libdir_separator=: 12492 inherit_rpath=yes 12493 link_all_deplibs=yes 12494 ;; 12495 12496 linux*) 12497 case $cc_basename in 12498 tcc*) 12499 # Fabrice Bellard et al's Tiny C Compiler 12500 ld_shlibs=yes 12501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12502 ;; 12503 esac 12504 ;; 12505 12506 netbsd*) 12507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12509 else 12510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12511 fi 12512 hardcode_libdir_flag_spec='-R$libdir' 12513 hardcode_direct=yes 12514 hardcode_shlibpath_var=no 12515 ;; 12516 12517 newsos6) 12518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12519 hardcode_direct=yes 12520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12521 hardcode_libdir_separator=: 12522 hardcode_shlibpath_var=no 12523 ;; 12524 12525 *nto* | *qnx*) 12526 ;; 12527 12528 openbsd* | bitrig*) 12529 if test -f /usr/libexec/ld.so; then 12530 hardcode_direct=yes 12531 hardcode_shlibpath_var=no 12532 hardcode_direct_absolute=yes 12533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12536 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12537 export_dynamic_flag_spec='$wl-E' 12538 else 12539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12540 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12541 fi 12542 else 12543 ld_shlibs=no 12544 fi 12545 ;; 12546 12547 os2*) 12548 hardcode_libdir_flag_spec='-L$libdir' 12549 hardcode_minus_L=yes 12550 allow_undefined_flag=unsupported 12551 shrext_cmds=.dll 12552 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12555 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12556 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12558 emximp -o $lib $output_objdir/$libname.def' 12559 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12560 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12561 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12562 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12563 prefix_cmds="$SED"~ 12564 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12565 prefix_cmds="$prefix_cmds -e 1d"; 12566 fi~ 12567 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12568 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12569 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12570 emximp -o $lib $output_objdir/$libname.def' 12571 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12572 enable_shared_with_static_runtimes=yes 12573 ;; 12574 12575 osf3*) 12576 if test yes = "$GCC"; then 12577 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12578 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' 12579 else 12580 allow_undefined_flag=' -expect_unresolved \*' 12581 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' 12582 fi 12583 archive_cmds_need_lc='no' 12584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12585 hardcode_libdir_separator=: 12586 ;; 12587 12588 osf4* | osf5*) # as osf3* with the addition of -msym flag 12589 if test yes = "$GCC"; then 12590 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12591 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' 12592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12593 else 12594 allow_undefined_flag=' -expect_unresolved \*' 12595 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' 12596 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~ 12597 $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' 12598 12599 # Both c and cxx compiler support -rpath directly 12600 hardcode_libdir_flag_spec='-rpath $libdir' 12601 fi 12602 archive_cmds_need_lc='no' 12603 hardcode_libdir_separator=: 12604 ;; 12605 12606 solaris*) 12607 no_undefined_flag=' -z defs' 12608 if test yes = "$GCC"; then 12609 wlarc='$wl' 12610 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12612 $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' 12613 else 12614 case `$CC -V 2>&1` in 12615 *"Compilers 5.0"*) 12616 wlarc='' 12617 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12619 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12620 ;; 12621 *) 12622 wlarc='$wl' 12623 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12625 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12626 ;; 12627 esac 12628 fi 12629 hardcode_libdir_flag_spec='-R$libdir' 12630 hardcode_shlibpath_var=no 12631 case $host_os in 12632 solaris2.[0-5] | solaris2.[0-5].*) ;; 12633 *) 12634 # The compiler driver will combine and reorder linker options, 12635 # but understands '-z linker_flag'. GCC discards it without '$wl', 12636 # but is careful enough not to reorder. 12637 # Supported since Solaris 2.6 (maybe 2.5.1?) 12638 if test yes = "$GCC"; then 12639 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12640 else 12641 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12642 fi 12643 ;; 12644 esac 12645 link_all_deplibs=yes 12646 ;; 12647 12648 sunos4*) 12649 if test sequent = "$host_vendor"; then 12650 # Use $CC to link under sequent, because it throws in some extra .o 12651 # files that make .init and .fini sections work. 12652 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12653 else 12654 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12655 fi 12656 hardcode_libdir_flag_spec='-L$libdir' 12657 hardcode_direct=yes 12658 hardcode_minus_L=yes 12659 hardcode_shlibpath_var=no 12660 ;; 12661 12662 sysv4) 12663 case $host_vendor in 12664 sni) 12665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12666 hardcode_direct=yes # is this really true??? 12667 ;; 12668 siemens) 12669 ## LD is ld it makes a PLAMLIB 12670 ## CC just makes a GrossModule. 12671 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12672 reload_cmds='$CC -r -o $output$reload_objs' 12673 hardcode_direct=no 12674 ;; 12675 motorola) 12676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12677 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12678 ;; 12679 esac 12680 runpath_var='LD_RUN_PATH' 12681 hardcode_shlibpath_var=no 12682 ;; 12683 12684 sysv4.3*) 12685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12686 hardcode_shlibpath_var=no 12687 export_dynamic_flag_spec='-Bexport' 12688 ;; 12689 12690 sysv4*MP*) 12691 if test -d /usr/nec; then 12692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12693 hardcode_shlibpath_var=no 12694 runpath_var=LD_RUN_PATH 12695 hardcode_runpath_var=yes 12696 ld_shlibs=yes 12697 fi 12698 ;; 12699 12700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12701 no_undefined_flag='$wl-z,text' 12702 archive_cmds_need_lc=no 12703 hardcode_shlibpath_var=no 12704 runpath_var='LD_RUN_PATH' 12705 12706 if test yes = "$GCC"; then 12707 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12708 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12709 else 12710 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12711 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12712 fi 12713 ;; 12714 12715 sysv5* | sco3.2v5* | sco5v6*) 12716 # Note: We CANNOT use -z defs as we might desire, because we do not 12717 # link with -lc, and that would cause any symbols used from libc to 12718 # always be unresolved, which means just about no library would 12719 # ever link correctly. If we're not using GNU ld we use -z text 12720 # though, which does catch some bad symbols but isn't as heavy-handed 12721 # as -z defs. 12722 no_undefined_flag='$wl-z,text' 12723 allow_undefined_flag='$wl-z,nodefs' 12724 archive_cmds_need_lc=no 12725 hardcode_shlibpath_var=no 12726 hardcode_libdir_flag_spec='$wl-R,$libdir' 12727 hardcode_libdir_separator=':' 12728 link_all_deplibs=yes 12729 export_dynamic_flag_spec='$wl-Bexport' 12730 runpath_var='LD_RUN_PATH' 12731 12732 if test yes = "$GCC"; then 12733 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12734 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12735 else 12736 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12737 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12738 fi 12739 ;; 12740 12741 uts4*) 12742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12743 hardcode_libdir_flag_spec='-L$libdir' 12744 hardcode_shlibpath_var=no 12745 ;; 12746 12747 *) 12748 ld_shlibs=no 12749 ;; 12750 esac 12751 12752 if test sni = "$host_vendor"; then 12753 case $host in 12754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12755 export_dynamic_flag_spec='$wl-Blargedynsym' 12756 ;; 12757 esac 12758 fi 12759 fi 12760 12761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12762$as_echo "$ld_shlibs" >&6; } 12763test no = "$ld_shlibs" && can_build_shared=no 12764 12765with_gnu_ld=$with_gnu_ld 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781# 12782# Do we need to explicitly link libc? 12783# 12784case "x$archive_cmds_need_lc" in 12785x|xyes) 12786 # Assume -lc should be added 12787 archive_cmds_need_lc=yes 12788 12789 if test yes,yes = "$GCC,$enable_shared"; then 12790 case $archive_cmds in 12791 *'~'*) 12792 # FIXME: we may have to deal with multi-command sequences. 12793 ;; 12794 '$CC '*) 12795 # Test whether the compiler implicitly links with -lc since on some 12796 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12797 # to ld, don't add -lc before -lgcc. 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12799$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12800if ${lt_cv_archive_cmds_need_lc+:} false; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 $RM conftest* 12804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12805 12806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12807 (eval $ac_compile) 2>&5 12808 ac_status=$? 12809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12810 test $ac_status = 0; } 2>conftest.err; then 12811 soname=conftest 12812 lib=conftest 12813 libobjs=conftest.$ac_objext 12814 deplibs= 12815 wl=$lt_prog_compiler_wl 12816 pic_flag=$lt_prog_compiler_pic 12817 compiler_flags=-v 12818 linker_flags=-v 12819 verstring= 12820 output_objdir=. 12821 libname=conftest 12822 lt_save_allow_undefined_flag=$allow_undefined_flag 12823 allow_undefined_flag= 12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12825 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12826 ac_status=$? 12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12828 test $ac_status = 0; } 12829 then 12830 lt_cv_archive_cmds_need_lc=no 12831 else 12832 lt_cv_archive_cmds_need_lc=yes 12833 fi 12834 allow_undefined_flag=$lt_save_allow_undefined_flag 12835 else 12836 cat conftest.err 1>&5 12837 fi 12838 $RM conftest* 12839 12840fi 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12842$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12843 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12844 ;; 12845 esac 12846 fi 12847 ;; 12848esac 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13002$as_echo_n "checking dynamic linker characteristics... " >&6; } 13003 13004if test yes = "$GCC"; then 13005 case $host_os in 13006 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13007 *) lt_awk_arg='/^libraries:/' ;; 13008 esac 13009 case $host_os in 13010 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13011 *) lt_sed_strip_eq='s|=/|/|g' ;; 13012 esac 13013 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13014 case $lt_search_path_spec in 13015 *\;*) 13016 # if the path contains ";" then we assume it to be the separator 13017 # otherwise default to the standard path separator (i.e. ":") - it is 13018 # assumed that no part of a normal pathname contains ";" but that should 13019 # okay in the real world where ";" in dirpaths is itself problematic. 13020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13021 ;; 13022 *) 13023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13024 ;; 13025 esac 13026 # Ok, now we have the path, separated by spaces, we can step through it 13027 # and add multilib dir if necessary... 13028 lt_tmp_lt_search_path_spec= 13029 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13030 # ...but if some path component already ends with the multilib dir we assume 13031 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13032 case "$lt_multi_os_dir; $lt_search_path_spec " in 13033 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13034 lt_multi_os_dir= 13035 ;; 13036 esac 13037 for lt_sys_path in $lt_search_path_spec; do 13038 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13040 elif test -n "$lt_multi_os_dir"; then 13041 test -d "$lt_sys_path" && \ 13042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13043 fi 13044 done 13045 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13046BEGIN {RS = " "; FS = "/|\n";} { 13047 lt_foo = ""; 13048 lt_count = 0; 13049 for (lt_i = NF; lt_i > 0; lt_i--) { 13050 if ($lt_i != "" && $lt_i != ".") { 13051 if ($lt_i == "..") { 13052 lt_count++; 13053 } else { 13054 if (lt_count == 0) { 13055 lt_foo = "/" $lt_i lt_foo; 13056 } else { 13057 lt_count--; 13058 } 13059 } 13060 } 13061 } 13062 if (lt_foo != "") { lt_freq[lt_foo]++; } 13063 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13064}'` 13065 # AWK program above erroneously prepends '/' to C:/dos/paths 13066 # for these hosts. 13067 case $host_os in 13068 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13069 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13070 esac 13071 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13072else 13073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13074fi 13075library_names_spec= 13076libname_spec='lib$name' 13077soname_spec= 13078shrext_cmds=.so 13079postinstall_cmds= 13080postuninstall_cmds= 13081finish_cmds= 13082finish_eval= 13083shlibpath_var= 13084shlibpath_overrides_runpath=unknown 13085version_type=none 13086dynamic_linker="$host_os ld.so" 13087sys_lib_dlsearch_path_spec="/lib /usr/lib" 13088need_lib_prefix=unknown 13089hardcode_into_libs=no 13090 13091# when you set need_version to no, make sure it does not cause -set_version 13092# flags to be left without arguments 13093need_version=unknown 13094 13095 13096 13097case $host_os in 13098aix3*) 13099 version_type=linux # correct to gnu/linux during the next big refactor 13100 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13101 shlibpath_var=LIBPATH 13102 13103 # AIX 3 has no versioning support, so we append a major version to the name. 13104 soname_spec='$libname$release$shared_ext$major' 13105 ;; 13106 13107aix[4-9]*) 13108 version_type=linux # correct to gnu/linux during the next big refactor 13109 need_lib_prefix=no 13110 need_version=no 13111 hardcode_into_libs=yes 13112 if test ia64 = "$host_cpu"; then 13113 # AIX 5 supports IA64 13114 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13115 shlibpath_var=LD_LIBRARY_PATH 13116 else 13117 # With GCC up to 2.95.x, collect2 would create an import file 13118 # for dependence libraries. The import file would start with 13119 # the line '#! .'. This would cause the generated library to 13120 # depend on '.', always an invalid library. This was fixed in 13121 # development snapshots of GCC prior to 3.0. 13122 case $host_os in 13123 aix4 | aix4.[01] | aix4.[01].*) 13124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13125 echo ' yes ' 13126 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13127 : 13128 else 13129 can_build_shared=no 13130 fi 13131 ;; 13132 esac 13133 # Using Import Files as archive members, it is possible to support 13134 # filename-based versioning of shared library archives on AIX. While 13135 # this would work for both with and without runtime linking, it will 13136 # prevent static linking of such archives. So we do filename-based 13137 # shared library versioning with .so extension only, which is used 13138 # when both runtime linking and shared linking is enabled. 13139 # Unfortunately, runtime linking may impact performance, so we do 13140 # not want this to be the default eventually. Also, we use the 13141 # versioned .so libs for executables only if there is the -brtl 13142 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13143 # To allow for filename-based versioning support, we need to create 13144 # libNAME.so.V as an archive file, containing: 13145 # *) an Import File, referring to the versioned filename of the 13146 # archive as well as the shared archive member, telling the 13147 # bitwidth (32 or 64) of that shared object, and providing the 13148 # list of exported symbols of that shared object, eventually 13149 # decorated with the 'weak' keyword 13150 # *) the shared object with the F_LOADONLY flag set, to really avoid 13151 # it being seen by the linker. 13152 # At run time we better use the real file rather than another symlink, 13153 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13154 13155 case $with_aix_soname,$aix_use_runtimelinking in 13156 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13157 # soname into executable. Probably we can add versioning support to 13158 # collect2, so additional links can be useful in future. 13159 aix,yes) # traditional libtool 13160 dynamic_linker='AIX unversionable lib.so' 13161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13162 # instead of lib<name>.a to let people know that these are not 13163 # typical AIX shared libraries. 13164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13165 ;; 13166 aix,no) # traditional AIX only 13167 dynamic_linker='AIX lib.a(lib.so.V)' 13168 # We preserve .a as extension for shared libraries through AIX4.2 13169 # and later when we are not doing run time linking. 13170 library_names_spec='$libname$release.a $libname.a' 13171 soname_spec='$libname$release$shared_ext$major' 13172 ;; 13173 svr4,*) # full svr4 only 13174 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13175 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13176 # We do not specify a path in Import Files, so LIBPATH fires. 13177 shlibpath_overrides_runpath=yes 13178 ;; 13179 *,yes) # both, prefer svr4 13180 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13181 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13182 # unpreferred sharedlib libNAME.a needs extra handling 13183 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"' 13184 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"' 13185 # We do not specify a path in Import Files, so LIBPATH fires. 13186 shlibpath_overrides_runpath=yes 13187 ;; 13188 *,no) # both, prefer aix 13189 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13190 library_names_spec='$libname$release.a $libname.a' 13191 soname_spec='$libname$release$shared_ext$major' 13192 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13193 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)' 13194 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"' 13195 ;; 13196 esac 13197 shlibpath_var=LIBPATH 13198 fi 13199 ;; 13200 13201amigaos*) 13202 case $host_cpu in 13203 powerpc) 13204 # Since July 2007 AmigaOS4 officially supports .so libraries. 13205 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13207 ;; 13208 m68k) 13209 library_names_spec='$libname.ixlibrary $libname.a' 13210 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13211 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' 13212 ;; 13213 esac 13214 ;; 13215 13216beos*) 13217 library_names_spec='$libname$shared_ext' 13218 dynamic_linker="$host_os ld.so" 13219 shlibpath_var=LIBRARY_PATH 13220 ;; 13221 13222bsdi[45]*) 13223 version_type=linux # correct to gnu/linux during the next big refactor 13224 need_version=no 13225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13226 soname_spec='$libname$release$shared_ext$major' 13227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13228 shlibpath_var=LD_LIBRARY_PATH 13229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13231 # the default ld.so.conf also contains /usr/contrib/lib and 13232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13233 # libtool to hard-code these into programs 13234 ;; 13235 13236cygwin* | mingw* | pw32* | cegcc*) 13237 version_type=windows 13238 shrext_cmds=.dll 13239 need_version=no 13240 need_lib_prefix=no 13241 13242 case $GCC,$cc_basename in 13243 yes,*) 13244 # gcc 13245 library_names_spec='$libname.dll.a' 13246 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13247 postinstall_cmds='base_file=`basename \$file`~ 13248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13249 dldir=$destdir/`dirname \$dlpath`~ 13250 test -d \$dldir || mkdir -p \$dldir~ 13251 $install_prog $dir/$dlname \$dldir/$dlname~ 13252 chmod a+x \$dldir/$dlname~ 13253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13255 fi' 13256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13257 dlpath=$dir/\$dldll~ 13258 $RM \$dlpath' 13259 shlibpath_overrides_runpath=yes 13260 13261 case $host_os in 13262 cygwin*) 13263 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13264 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13265 13266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13267 ;; 13268 mingw* | cegcc*) 13269 # MinGW DLLs use traditional 'lib' prefix 13270 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13271 ;; 13272 pw32*) 13273 # pw32 DLLs use 'pw' prefix rather than 'lib' 13274 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13275 ;; 13276 esac 13277 dynamic_linker='Win32 ld.exe' 13278 ;; 13279 13280 *,cl*) 13281 # Native MSVC 13282 libname_spec='$name' 13283 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13284 library_names_spec='$libname.dll.lib' 13285 13286 case $build_os in 13287 mingw*) 13288 sys_lib_search_path_spec= 13289 lt_save_ifs=$IFS 13290 IFS=';' 13291 for lt_path in $LIB 13292 do 13293 IFS=$lt_save_ifs 13294 # Let DOS variable expansion print the short 8.3 style file name. 13295 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13296 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13297 done 13298 IFS=$lt_save_ifs 13299 # Convert to MSYS style. 13300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13301 ;; 13302 cygwin*) 13303 # Convert to unix form, then to dos form, then back to unix form 13304 # but this time dos style (no spaces!) so that the unix form looks 13305 # like /cygdrive/c/PROGRA~1:/cygdr... 13306 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13307 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13308 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13309 ;; 13310 *) 13311 sys_lib_search_path_spec=$LIB 13312 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13313 # It is most probably a Windows format PATH. 13314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13315 else 13316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13317 fi 13318 # FIXME: find the short name or the path components, as spaces are 13319 # common. (e.g. "Program Files" -> "PROGRA~1") 13320 ;; 13321 esac 13322 13323 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13324 postinstall_cmds='base_file=`basename \$file`~ 13325 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13326 dldir=$destdir/`dirname \$dlpath`~ 13327 test -d \$dldir || mkdir -p \$dldir~ 13328 $install_prog $dir/$dlname \$dldir/$dlname' 13329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13330 dlpath=$dir/\$dldll~ 13331 $RM \$dlpath' 13332 shlibpath_overrides_runpath=yes 13333 dynamic_linker='Win32 link.exe' 13334 ;; 13335 13336 *) 13337 # Assume MSVC wrapper 13338 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13339 dynamic_linker='Win32 ld.exe' 13340 ;; 13341 esac 13342 # FIXME: first we should search . and the directory the executable is in 13343 shlibpath_var=PATH 13344 ;; 13345 13346darwin* | rhapsody*) 13347 dynamic_linker="$host_os dyld" 13348 version_type=darwin 13349 need_lib_prefix=no 13350 need_version=no 13351 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13352 soname_spec='$libname$release$major$shared_ext' 13353 shlibpath_overrides_runpath=yes 13354 shlibpath_var=DYLD_LIBRARY_PATH 13355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13356 13357 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13359 ;; 13360 13361dgux*) 13362 version_type=linux # correct to gnu/linux during the next big refactor 13363 need_lib_prefix=no 13364 need_version=no 13365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13366 soname_spec='$libname$release$shared_ext$major' 13367 shlibpath_var=LD_LIBRARY_PATH 13368 ;; 13369 13370freebsd* | dragonfly*) 13371 # DragonFly does not have aout. When/if they implement a new 13372 # versioning mechanism, adjust this. 13373 if test -x /usr/bin/objformat; then 13374 objformat=`/usr/bin/objformat` 13375 else 13376 case $host_os in 13377 freebsd[23].*) objformat=aout ;; 13378 *) objformat=elf ;; 13379 esac 13380 fi 13381 version_type=freebsd-$objformat 13382 case $version_type in 13383 freebsd-elf*) 13384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13385 soname_spec='$libname$release$shared_ext$major' 13386 need_version=no 13387 need_lib_prefix=no 13388 ;; 13389 freebsd-*) 13390 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13391 need_version=yes 13392 ;; 13393 esac 13394 shlibpath_var=LD_LIBRARY_PATH 13395 case $host_os in 13396 freebsd2.*) 13397 shlibpath_overrides_runpath=yes 13398 ;; 13399 freebsd3.[01]* | freebsdelf3.[01]*) 13400 shlibpath_overrides_runpath=yes 13401 hardcode_into_libs=yes 13402 ;; 13403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13405 shlibpath_overrides_runpath=no 13406 hardcode_into_libs=yes 13407 ;; 13408 *) # from 4.6 on, and DragonFly 13409 shlibpath_overrides_runpath=yes 13410 hardcode_into_libs=yes 13411 ;; 13412 esac 13413 ;; 13414 13415haiku*) 13416 version_type=linux # correct to gnu/linux during the next big refactor 13417 need_lib_prefix=no 13418 need_version=no 13419 dynamic_linker="$host_os runtime_loader" 13420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13421 soname_spec='$libname$release$shared_ext$major' 13422 shlibpath_var=LIBRARY_PATH 13423 shlibpath_overrides_runpath=no 13424 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13425 hardcode_into_libs=yes 13426 ;; 13427 13428hpux9* | hpux10* | hpux11*) 13429 # Give a soname corresponding to the major version so that dld.sl refuses to 13430 # link against other versions. 13431 version_type=sunos 13432 need_lib_prefix=no 13433 need_version=no 13434 case $host_cpu in 13435 ia64*) 13436 shrext_cmds='.so' 13437 hardcode_into_libs=yes 13438 dynamic_linker="$host_os dld.so" 13439 shlibpath_var=LD_LIBRARY_PATH 13440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13442 soname_spec='$libname$release$shared_ext$major' 13443 if test 32 = "$HPUX_IA64_MODE"; then 13444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13445 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13446 else 13447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13448 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13449 fi 13450 ;; 13451 hppa*64*) 13452 shrext_cmds='.sl' 13453 hardcode_into_libs=yes 13454 dynamic_linker="$host_os dld.sl" 13455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13458 soname_spec='$libname$release$shared_ext$major' 13459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13461 ;; 13462 *) 13463 shrext_cmds='.sl' 13464 dynamic_linker="$host_os dld.sl" 13465 shlibpath_var=SHLIB_PATH 13466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13468 soname_spec='$libname$release$shared_ext$major' 13469 ;; 13470 esac 13471 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13472 postinstall_cmds='chmod 555 $lib' 13473 # or fails outright, so override atomically: 13474 install_override_mode=555 13475 ;; 13476 13477interix[3-9]*) 13478 version_type=linux # correct to gnu/linux during the next big refactor 13479 need_lib_prefix=no 13480 need_version=no 13481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13482 soname_spec='$libname$release$shared_ext$major' 13483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13484 shlibpath_var=LD_LIBRARY_PATH 13485 shlibpath_overrides_runpath=no 13486 hardcode_into_libs=yes 13487 ;; 13488 13489irix5* | irix6* | nonstopux*) 13490 case $host_os in 13491 nonstopux*) version_type=nonstopux ;; 13492 *) 13493 if test yes = "$lt_cv_prog_gnu_ld"; then 13494 version_type=linux # correct to gnu/linux during the next big refactor 13495 else 13496 version_type=irix 13497 fi ;; 13498 esac 13499 need_lib_prefix=no 13500 need_version=no 13501 soname_spec='$libname$release$shared_ext$major' 13502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13503 case $host_os in 13504 irix5* | nonstopux*) 13505 libsuff= shlibsuff= 13506 ;; 13507 *) 13508 case $LD in # libtool.m4 will add one of these switches to LD 13509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13510 libsuff= shlibsuff= libmagic=32-bit;; 13511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13512 libsuff=32 shlibsuff=N32 libmagic=N32;; 13513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13514 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13515 *) libsuff= shlibsuff= libmagic=never-match;; 13516 esac 13517 ;; 13518 esac 13519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13520 shlibpath_overrides_runpath=no 13521 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13522 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13523 hardcode_into_libs=yes 13524 ;; 13525 13526# No shared lib support for Linux oldld, aout, or coff. 13527linux*oldld* | linux*aout* | linux*coff*) 13528 dynamic_linker=no 13529 ;; 13530 13531linux*android*) 13532 version_type=none # Android doesn't support versioned libraries. 13533 need_lib_prefix=no 13534 need_version=no 13535 library_names_spec='$libname$release$shared_ext' 13536 soname_spec='$libname$release$shared_ext' 13537 finish_cmds= 13538 shlibpath_var=LD_LIBRARY_PATH 13539 shlibpath_overrides_runpath=yes 13540 13541 # This implies no fast_install, which is unacceptable. 13542 # Some rework will be needed to allow for fast_install 13543 # before this can be enabled. 13544 hardcode_into_libs=yes 13545 13546 dynamic_linker='Android linker' 13547 # Don't embed -rpath directories since the linker doesn't support them. 13548 hardcode_libdir_flag_spec='-L$libdir' 13549 ;; 13550 13551# This must be glibc/ELF. 13552linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13553 version_type=linux # correct to gnu/linux during the next big refactor 13554 need_lib_prefix=no 13555 need_version=no 13556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13557 soname_spec='$libname$release$shared_ext$major' 13558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13559 shlibpath_var=LD_LIBRARY_PATH 13560 shlibpath_overrides_runpath=no 13561 13562 # Some binutils ld are patched to set DT_RUNPATH 13563 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 lt_cv_shlibpath_overrides_runpath=no 13567 save_LDFLAGS=$LDFLAGS 13568 save_libdir=$libdir 13569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573 13574int 13575main () 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13584 lt_cv_shlibpath_overrides_runpath=yes 13585fi 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589 LDFLAGS=$save_LDFLAGS 13590 libdir=$save_libdir 13591 13592fi 13593 13594 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13595 13596 # This implies no fast_install, which is unacceptable. 13597 # Some rework will be needed to allow for fast_install 13598 # before this can be enabled. 13599 hardcode_into_libs=yes 13600 13601 # Add ABI-specific directories to the system library path. 13602 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13603 13604 # Ideally, we could use ldconfig to report *all* directores which are 13605 # searched for libraries, however this is still not possible. Aside from not 13606 # being certain /sbin/ldconfig is available, command 13607 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13608 # even though it is searched at run-time. Try to do the best guess by 13609 # appending ld.so.conf contents (and includes) to the search path. 13610 if test -f /etc/ld.so.conf; then 13611 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' ' '` 13612 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13613 fi 13614 13615 # We used to test for /lib/ld.so.1 and disable shared libraries on 13616 # powerpc, because MkLinux only supported shared libraries with the 13617 # GNU dynamic linker. Since this was broken with cross compilers, 13618 # most powerpc-linux boxes support dynamic linking these days and 13619 # people can always --disable-shared, the test was removed, and we 13620 # assume the GNU/Linux dynamic linker is in use. 13621 dynamic_linker='GNU/Linux ld.so' 13622 ;; 13623 13624netbsd*) 13625 version_type=sunos 13626 need_lib_prefix=no 13627 need_version=no 13628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13629 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13631 dynamic_linker='NetBSD (a.out) ld.so' 13632 else 13633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13634 soname_spec='$libname$release$shared_ext$major' 13635 dynamic_linker='NetBSD ld.elf_so' 13636 fi 13637 shlibpath_var=LD_LIBRARY_PATH 13638 shlibpath_overrides_runpath=yes 13639 hardcode_into_libs=yes 13640 ;; 13641 13642newsos6) 13643 version_type=linux # correct to gnu/linux during the next big refactor 13644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13645 shlibpath_var=LD_LIBRARY_PATH 13646 shlibpath_overrides_runpath=yes 13647 ;; 13648 13649*nto* | *qnx*) 13650 version_type=qnx 13651 need_lib_prefix=no 13652 need_version=no 13653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13654 soname_spec='$libname$release$shared_ext$major' 13655 shlibpath_var=LD_LIBRARY_PATH 13656 shlibpath_overrides_runpath=no 13657 hardcode_into_libs=yes 13658 dynamic_linker='ldqnx.so' 13659 ;; 13660 13661openbsd* | bitrig*) 13662 version_type=sunos 13663 sys_lib_dlsearch_path_spec=/usr/lib 13664 need_lib_prefix=no 13665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13666 need_version=no 13667 else 13668 need_version=yes 13669 fi 13670 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13672 shlibpath_var=LD_LIBRARY_PATH 13673 shlibpath_overrides_runpath=yes 13674 ;; 13675 13676os2*) 13677 libname_spec='$name' 13678 version_type=windows 13679 shrext_cmds=.dll 13680 need_version=no 13681 need_lib_prefix=no 13682 # OS/2 can only load a DLL with a base name of 8 characters or less. 13683 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13684 v=$($ECHO $release$versuffix | tr -d .-); 13685 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13686 $ECHO $n$v`$shared_ext' 13687 library_names_spec='${libname}_dll.$libext' 13688 dynamic_linker='OS/2 ld.exe' 13689 shlibpath_var=BEGINLIBPATH 13690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13692 postinstall_cmds='base_file=`basename \$file`~ 13693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13694 dldir=$destdir/`dirname \$dlpath`~ 13695 test -d \$dldir || mkdir -p \$dldir~ 13696 $install_prog $dir/$dlname \$dldir/$dlname~ 13697 chmod a+x \$dldir/$dlname~ 13698 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13699 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13700 fi' 13701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13702 dlpath=$dir/\$dldll~ 13703 $RM \$dlpath' 13704 ;; 13705 13706osf3* | osf4* | osf5*) 13707 version_type=osf 13708 need_lib_prefix=no 13709 need_version=no 13710 soname_spec='$libname$release$shared_ext$major' 13711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13712 shlibpath_var=LD_LIBRARY_PATH 13713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13715 ;; 13716 13717rdos*) 13718 dynamic_linker=no 13719 ;; 13720 13721solaris*) 13722 version_type=linux # correct to gnu/linux during the next big refactor 13723 need_lib_prefix=no 13724 need_version=no 13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13726 soname_spec='$libname$release$shared_ext$major' 13727 shlibpath_var=LD_LIBRARY_PATH 13728 shlibpath_overrides_runpath=yes 13729 hardcode_into_libs=yes 13730 # ldd complains unless libraries are executable 13731 postinstall_cmds='chmod +x $lib' 13732 ;; 13733 13734sunos4*) 13735 version_type=sunos 13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13738 shlibpath_var=LD_LIBRARY_PATH 13739 shlibpath_overrides_runpath=yes 13740 if test yes = "$with_gnu_ld"; then 13741 need_lib_prefix=no 13742 fi 13743 need_version=yes 13744 ;; 13745 13746sysv4 | sysv4.3*) 13747 version_type=linux # correct to gnu/linux during the next big refactor 13748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13749 soname_spec='$libname$release$shared_ext$major' 13750 shlibpath_var=LD_LIBRARY_PATH 13751 case $host_vendor in 13752 sni) 13753 shlibpath_overrides_runpath=no 13754 need_lib_prefix=no 13755 runpath_var=LD_RUN_PATH 13756 ;; 13757 siemens) 13758 need_lib_prefix=no 13759 ;; 13760 motorola) 13761 need_lib_prefix=no 13762 need_version=no 13763 shlibpath_overrides_runpath=no 13764 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13765 ;; 13766 esac 13767 ;; 13768 13769sysv4*MP*) 13770 if test -d /usr/nec; then 13771 version_type=linux # correct to gnu/linux during the next big refactor 13772 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13773 soname_spec='$libname$shared_ext.$major' 13774 shlibpath_var=LD_LIBRARY_PATH 13775 fi 13776 ;; 13777 13778sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13779 version_type=sco 13780 need_lib_prefix=no 13781 need_version=no 13782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13783 soname_spec='$libname$release$shared_ext$major' 13784 shlibpath_var=LD_LIBRARY_PATH 13785 shlibpath_overrides_runpath=yes 13786 hardcode_into_libs=yes 13787 if test yes = "$with_gnu_ld"; then 13788 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13789 else 13790 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13791 case $host_os in 13792 sco3.2v5*) 13793 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13794 ;; 13795 esac 13796 fi 13797 sys_lib_dlsearch_path_spec='/usr/lib' 13798 ;; 13799 13800tpf*) 13801 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13802 version_type=linux # correct to gnu/linux during the next big refactor 13803 need_lib_prefix=no 13804 need_version=no 13805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13806 shlibpath_var=LD_LIBRARY_PATH 13807 shlibpath_overrides_runpath=no 13808 hardcode_into_libs=yes 13809 ;; 13810 13811uts4*) 13812 version_type=linux # correct to gnu/linux during the next big refactor 13813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13814 soname_spec='$libname$release$shared_ext$major' 13815 shlibpath_var=LD_LIBRARY_PATH 13816 ;; 13817 13818*) 13819 dynamic_linker=no 13820 ;; 13821esac 13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13823$as_echo "$dynamic_linker" >&6; } 13824test no = "$dynamic_linker" && can_build_shared=no 13825 13826variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13827if test yes = "$GCC"; then 13828 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13829fi 13830 13831if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13832 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13833fi 13834 13835if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13836 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13837fi 13838 13839# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13840configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13841 13842# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13843func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13844 13845# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13846configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13945$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13946hardcode_action= 13947if test -n "$hardcode_libdir_flag_spec" || 13948 test -n "$runpath_var" || 13949 test yes = "$hardcode_automatic"; then 13950 13951 # We can hardcode non-existent directories. 13952 if test no != "$hardcode_direct" && 13953 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13954 # have to relink, otherwise we might link with an installed library 13955 # when we should be linking with a yet-to-be-installed one 13956 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13957 test no != "$hardcode_minus_L"; then 13958 # Linking always hardcodes the temporary library directory. 13959 hardcode_action=relink 13960 else 13961 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13962 hardcode_action=immediate 13963 fi 13964else 13965 # We cannot hardcode anything, or else we can only hardcode existing 13966 # directories. 13967 hardcode_action=unsupported 13968fi 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13970$as_echo "$hardcode_action" >&6; } 13971 13972if test relink = "$hardcode_action" || 13973 test yes = "$inherit_rpath"; then 13974 # Fast installation is not supported 13975 enable_fast_install=no 13976elif test yes = "$shlibpath_overrides_runpath" || 13977 test no = "$enable_shared"; then 13978 # Fast installation is not necessary 13979 enable_fast_install=needless 13980fi 13981 13982 13983 13984 13985 13986 13987 if test yes != "$enable_dlopen"; then 13988 enable_dlopen=unknown 13989 enable_dlopen_self=unknown 13990 enable_dlopen_self_static=unknown 13991else 13992 lt_cv_dlopen=no 13993 lt_cv_dlopen_libs= 13994 13995 case $host_os in 13996 beos*) 13997 lt_cv_dlopen=load_add_on 13998 lt_cv_dlopen_libs= 13999 lt_cv_dlopen_self=yes 14000 ;; 14001 14002 mingw* | pw32* | cegcc*) 14003 lt_cv_dlopen=LoadLibrary 14004 lt_cv_dlopen_libs= 14005 ;; 14006 14007 cygwin*) 14008 lt_cv_dlopen=dlopen 14009 lt_cv_dlopen_libs= 14010 ;; 14011 14012 darwin*) 14013 # if libdl is installed we need to link against it 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14015$as_echo_n "checking for dlopen in -ldl... " >&6; } 14016if ${ac_cv_lib_dl_dlopen+:} false; then : 14017 $as_echo_n "(cached) " >&6 14018else 14019 ac_check_lib_save_LIBS=$LIBS 14020LIBS="-ldl $LIBS" 14021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14022/* end confdefs.h. */ 14023 14024/* Override any GCC internal prototype to avoid an error. 14025 Use char because int might match the return type of a GCC 14026 builtin and then its argument prototype would still apply. */ 14027#ifdef __cplusplus 14028extern "C" 14029#endif 14030char dlopen (); 14031int 14032main () 14033{ 14034return dlopen (); 14035 ; 14036 return 0; 14037} 14038_ACEOF 14039if ac_fn_c_try_link "$LINENO"; then : 14040 ac_cv_lib_dl_dlopen=yes 14041else 14042 ac_cv_lib_dl_dlopen=no 14043fi 14044rm -f core conftest.err conftest.$ac_objext \ 14045 conftest$ac_exeext conftest.$ac_ext 14046LIBS=$ac_check_lib_save_LIBS 14047fi 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14049$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14050if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14051 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14052else 14053 14054 lt_cv_dlopen=dyld 14055 lt_cv_dlopen_libs= 14056 lt_cv_dlopen_self=yes 14057 14058fi 14059 14060 ;; 14061 14062 tpf*) 14063 # Don't try to run any link tests for TPF. We know it's impossible 14064 # because TPF is a cross-compiler, and we know how we open DSOs. 14065 lt_cv_dlopen=dlopen 14066 lt_cv_dlopen_libs= 14067 lt_cv_dlopen_self=no 14068 ;; 14069 14070 *) 14071 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14072if test "x$ac_cv_func_shl_load" = xyes; then : 14073 lt_cv_dlopen=shl_load 14074else 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14076$as_echo_n "checking for shl_load in -ldld... " >&6; } 14077if ${ac_cv_lib_dld_shl_load+:} false; then : 14078 $as_echo_n "(cached) " >&6 14079else 14080 ac_check_lib_save_LIBS=$LIBS 14081LIBS="-ldld $LIBS" 14082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14083/* end confdefs.h. */ 14084 14085/* Override any GCC internal prototype to avoid an error. 14086 Use char because int might match the return type of a GCC 14087 builtin and then its argument prototype would still apply. */ 14088#ifdef __cplusplus 14089extern "C" 14090#endif 14091char shl_load (); 14092int 14093main () 14094{ 14095return shl_load (); 14096 ; 14097 return 0; 14098} 14099_ACEOF 14100if ac_fn_c_try_link "$LINENO"; then : 14101 ac_cv_lib_dld_shl_load=yes 14102else 14103 ac_cv_lib_dld_shl_load=no 14104fi 14105rm -f core conftest.err conftest.$ac_objext \ 14106 conftest$ac_exeext conftest.$ac_ext 14107LIBS=$ac_check_lib_save_LIBS 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14110$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14111if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14112 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14113else 14114 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14115if test "x$ac_cv_func_dlopen" = xyes; then : 14116 lt_cv_dlopen=dlopen 14117else 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14119$as_echo_n "checking for dlopen in -ldl... " >&6; } 14120if ${ac_cv_lib_dl_dlopen+:} false; then : 14121 $as_echo_n "(cached) " >&6 14122else 14123 ac_check_lib_save_LIBS=$LIBS 14124LIBS="-ldl $LIBS" 14125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127 14128/* Override any GCC internal prototype to avoid an error. 14129 Use char because int might match the return type of a GCC 14130 builtin and then its argument prototype would still apply. */ 14131#ifdef __cplusplus 14132extern "C" 14133#endif 14134char dlopen (); 14135int 14136main () 14137{ 14138return dlopen (); 14139 ; 14140 return 0; 14141} 14142_ACEOF 14143if ac_fn_c_try_link "$LINENO"; then : 14144 ac_cv_lib_dl_dlopen=yes 14145else 14146 ac_cv_lib_dl_dlopen=no 14147fi 14148rm -f core conftest.err conftest.$ac_objext \ 14149 conftest$ac_exeext conftest.$ac_ext 14150LIBS=$ac_check_lib_save_LIBS 14151fi 14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14153$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14154if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14155 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14156else 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14158$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14159if ${ac_cv_lib_svld_dlopen+:} false; then : 14160 $as_echo_n "(cached) " >&6 14161else 14162 ac_check_lib_save_LIBS=$LIBS 14163LIBS="-lsvld $LIBS" 14164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14165/* end confdefs.h. */ 14166 14167/* Override any GCC internal prototype to avoid an error. 14168 Use char because int might match the return type of a GCC 14169 builtin and then its argument prototype would still apply. */ 14170#ifdef __cplusplus 14171extern "C" 14172#endif 14173char dlopen (); 14174int 14175main () 14176{ 14177return dlopen (); 14178 ; 14179 return 0; 14180} 14181_ACEOF 14182if ac_fn_c_try_link "$LINENO"; then : 14183 ac_cv_lib_svld_dlopen=yes 14184else 14185 ac_cv_lib_svld_dlopen=no 14186fi 14187rm -f core conftest.err conftest.$ac_objext \ 14188 conftest$ac_exeext conftest.$ac_ext 14189LIBS=$ac_check_lib_save_LIBS 14190fi 14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14192$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14193if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14194 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14195else 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14197$as_echo_n "checking for dld_link in -ldld... " >&6; } 14198if ${ac_cv_lib_dld_dld_link+:} false; then : 14199 $as_echo_n "(cached) " >&6 14200else 14201 ac_check_lib_save_LIBS=$LIBS 14202LIBS="-ldld $LIBS" 14203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205 14206/* Override any GCC internal prototype to avoid an error. 14207 Use char because int might match the return type of a GCC 14208 builtin and then its argument prototype would still apply. */ 14209#ifdef __cplusplus 14210extern "C" 14211#endif 14212char dld_link (); 14213int 14214main () 14215{ 14216return dld_link (); 14217 ; 14218 return 0; 14219} 14220_ACEOF 14221if ac_fn_c_try_link "$LINENO"; then : 14222 ac_cv_lib_dld_dld_link=yes 14223else 14224 ac_cv_lib_dld_dld_link=no 14225fi 14226rm -f core conftest.err conftest.$ac_objext \ 14227 conftest$ac_exeext conftest.$ac_ext 14228LIBS=$ac_check_lib_save_LIBS 14229fi 14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14231$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14232if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14233 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14234fi 14235 14236 14237fi 14238 14239 14240fi 14241 14242 14243fi 14244 14245 14246fi 14247 14248 14249fi 14250 14251 ;; 14252 esac 14253 14254 if test no = "$lt_cv_dlopen"; then 14255 enable_dlopen=no 14256 else 14257 enable_dlopen=yes 14258 fi 14259 14260 case $lt_cv_dlopen in 14261 dlopen) 14262 save_CPPFLAGS=$CPPFLAGS 14263 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14264 14265 save_LDFLAGS=$LDFLAGS 14266 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14267 14268 save_LIBS=$LIBS 14269 LIBS="$lt_cv_dlopen_libs $LIBS" 14270 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14272$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14273if ${lt_cv_dlopen_self+:} false; then : 14274 $as_echo_n "(cached) " >&6 14275else 14276 if test yes = "$cross_compiling"; then : 14277 lt_cv_dlopen_self=cross 14278else 14279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14280 lt_status=$lt_dlunknown 14281 cat > conftest.$ac_ext <<_LT_EOF 14282#line $LINENO "configure" 14283#include "confdefs.h" 14284 14285#if HAVE_DLFCN_H 14286#include <dlfcn.h> 14287#endif 14288 14289#include <stdio.h> 14290 14291#ifdef RTLD_GLOBAL 14292# define LT_DLGLOBAL RTLD_GLOBAL 14293#else 14294# ifdef DL_GLOBAL 14295# define LT_DLGLOBAL DL_GLOBAL 14296# else 14297# define LT_DLGLOBAL 0 14298# endif 14299#endif 14300 14301/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14302 find out it does not work in some platform. */ 14303#ifndef LT_DLLAZY_OR_NOW 14304# ifdef RTLD_LAZY 14305# define LT_DLLAZY_OR_NOW RTLD_LAZY 14306# else 14307# ifdef DL_LAZY 14308# define LT_DLLAZY_OR_NOW DL_LAZY 14309# else 14310# ifdef RTLD_NOW 14311# define LT_DLLAZY_OR_NOW RTLD_NOW 14312# else 14313# ifdef DL_NOW 14314# define LT_DLLAZY_OR_NOW DL_NOW 14315# else 14316# define LT_DLLAZY_OR_NOW 0 14317# endif 14318# endif 14319# endif 14320# endif 14321#endif 14322 14323/* When -fvisibility=hidden is used, assume the code has been annotated 14324 correspondingly for the symbols needed. */ 14325#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14326int fnord () __attribute__((visibility("default"))); 14327#endif 14328 14329int fnord () { return 42; } 14330int main () 14331{ 14332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14333 int status = $lt_dlunknown; 14334 14335 if (self) 14336 { 14337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14338 else 14339 { 14340 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14341 else puts (dlerror ()); 14342 } 14343 /* dlclose (self); */ 14344 } 14345 else 14346 puts (dlerror ()); 14347 14348 return status; 14349} 14350_LT_EOF 14351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14352 (eval $ac_link) 2>&5 14353 ac_status=$? 14354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14355 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14356 (./conftest; exit; ) >&5 2>/dev/null 14357 lt_status=$? 14358 case x$lt_status in 14359 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14360 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14361 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14362 esac 14363 else : 14364 # compilation failed 14365 lt_cv_dlopen_self=no 14366 fi 14367fi 14368rm -fr conftest* 14369 14370 14371fi 14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14373$as_echo "$lt_cv_dlopen_self" >&6; } 14374 14375 if test yes = "$lt_cv_dlopen_self"; then 14376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14378$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14379if ${lt_cv_dlopen_self_static+:} false; then : 14380 $as_echo_n "(cached) " >&6 14381else 14382 if test yes = "$cross_compiling"; then : 14383 lt_cv_dlopen_self_static=cross 14384else 14385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14386 lt_status=$lt_dlunknown 14387 cat > conftest.$ac_ext <<_LT_EOF 14388#line $LINENO "configure" 14389#include "confdefs.h" 14390 14391#if HAVE_DLFCN_H 14392#include <dlfcn.h> 14393#endif 14394 14395#include <stdio.h> 14396 14397#ifdef RTLD_GLOBAL 14398# define LT_DLGLOBAL RTLD_GLOBAL 14399#else 14400# ifdef DL_GLOBAL 14401# define LT_DLGLOBAL DL_GLOBAL 14402# else 14403# define LT_DLGLOBAL 0 14404# endif 14405#endif 14406 14407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14408 find out it does not work in some platform. */ 14409#ifndef LT_DLLAZY_OR_NOW 14410# ifdef RTLD_LAZY 14411# define LT_DLLAZY_OR_NOW RTLD_LAZY 14412# else 14413# ifdef DL_LAZY 14414# define LT_DLLAZY_OR_NOW DL_LAZY 14415# else 14416# ifdef RTLD_NOW 14417# define LT_DLLAZY_OR_NOW RTLD_NOW 14418# else 14419# ifdef DL_NOW 14420# define LT_DLLAZY_OR_NOW DL_NOW 14421# else 14422# define LT_DLLAZY_OR_NOW 0 14423# endif 14424# endif 14425# endif 14426# endif 14427#endif 14428 14429/* When -fvisibility=hidden is used, assume the code has been annotated 14430 correspondingly for the symbols needed. */ 14431#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14432int fnord () __attribute__((visibility("default"))); 14433#endif 14434 14435int fnord () { return 42; } 14436int main () 14437{ 14438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14439 int status = $lt_dlunknown; 14440 14441 if (self) 14442 { 14443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14444 else 14445 { 14446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14447 else puts (dlerror ()); 14448 } 14449 /* dlclose (self); */ 14450 } 14451 else 14452 puts (dlerror ()); 14453 14454 return status; 14455} 14456_LT_EOF 14457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14458 (eval $ac_link) 2>&5 14459 ac_status=$? 14460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14461 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14462 (./conftest; exit; ) >&5 2>/dev/null 14463 lt_status=$? 14464 case x$lt_status in 14465 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14466 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14467 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14468 esac 14469 else : 14470 # compilation failed 14471 lt_cv_dlopen_self_static=no 14472 fi 14473fi 14474rm -fr conftest* 14475 14476 14477fi 14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14479$as_echo "$lt_cv_dlopen_self_static" >&6; } 14480 fi 14481 14482 CPPFLAGS=$save_CPPFLAGS 14483 LDFLAGS=$save_LDFLAGS 14484 LIBS=$save_LIBS 14485 ;; 14486 esac 14487 14488 case $lt_cv_dlopen_self in 14489 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14490 *) enable_dlopen_self=unknown ;; 14491 esac 14492 14493 case $lt_cv_dlopen_self_static in 14494 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14495 *) enable_dlopen_self_static=unknown ;; 14496 esac 14497fi 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515striplib= 14516old_striplib= 14517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14518$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14519if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14520 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14521 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14523$as_echo "yes" >&6; } 14524else 14525# FIXME - insert some real tests, host_os isn't really good enough 14526 case $host_os in 14527 darwin*) 14528 if test -n "$STRIP"; then 14529 striplib="$STRIP -x" 14530 old_striplib="$STRIP -S" 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14532$as_echo "yes" >&6; } 14533 else 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14535$as_echo "no" >&6; } 14536 fi 14537 ;; 14538 *) 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14540$as_echo "no" >&6; } 14541 ;; 14542 esac 14543fi 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 # Report what library types will actually be built 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14558$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14560$as_echo "$can_build_shared" >&6; } 14561 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14563$as_echo_n "checking whether to build shared libraries... " >&6; } 14564 test no = "$can_build_shared" && enable_shared=no 14565 14566 # On AIX, shared libraries and static libraries use the same namespace, and 14567 # are all built from PIC. 14568 case $host_os in 14569 aix3*) 14570 test yes = "$enable_shared" && enable_static=no 14571 if test -n "$RANLIB"; then 14572 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14573 postinstall_cmds='$RANLIB $lib' 14574 fi 14575 ;; 14576 14577 aix[4-9]*) 14578 if test ia64 != "$host_cpu"; then 14579 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14580 yes,aix,yes) ;; # shared object as lib.so file only 14581 yes,svr4,*) ;; # shared object as lib.so archive member only 14582 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14583 esac 14584 fi 14585 ;; 14586 esac 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14588$as_echo "$enable_shared" >&6; } 14589 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14591$as_echo_n "checking whether to build static libraries... " >&6; } 14592 # Make sure either enable_shared or enable_static is yes. 14593 test yes = "$enable_shared" || enable_static=yes 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14595$as_echo "$enable_static" >&6; } 14596 14597 14598 14599 14600fi 14601ac_ext=c 14602ac_cpp='$CPP $CPPFLAGS' 14603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14605ac_compiler_gnu=$ac_cv_c_compiler_gnu 14606 14607CC=$lt_save_CC 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 ac_config_commands="$ac_config_commands libtool" 14624 14625 14626 14627 14628# Only expand once: 14629 14630 14631 14632 14633# pkg-config is only needed for these options, do not require it otherwise 14634if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then 14635 14636 14637 14638 14639 14640 14641 14642if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14643 if test -n "$ac_tool_prefix"; then 14644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14645set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14647$as_echo_n "checking for $ac_word... " >&6; } 14648if ${ac_cv_path_PKG_CONFIG+:} false; then : 14649 $as_echo_n "(cached) " >&6 14650else 14651 case $PKG_CONFIG in 14652 [\\/]* | ?:[\\/]*) 14653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14654 ;; 14655 *) 14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14657for as_dir in $PATH 14658do 14659 IFS=$as_save_IFS 14660 test -z "$as_dir" && as_dir=. 14661 for ac_exec_ext in '' $ac_executable_extensions; do 14662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14665 break 2 14666 fi 14667done 14668 done 14669IFS=$as_save_IFS 14670 14671 ;; 14672esac 14673fi 14674PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14675if test -n "$PKG_CONFIG"; then 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14677$as_echo "$PKG_CONFIG" >&6; } 14678else 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14680$as_echo "no" >&6; } 14681fi 14682 14683 14684fi 14685if test -z "$ac_cv_path_PKG_CONFIG"; then 14686 ac_pt_PKG_CONFIG=$PKG_CONFIG 14687 # Extract the first word of "pkg-config", so it can be a program name with args. 14688set dummy pkg-config; ac_word=$2 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14690$as_echo_n "checking for $ac_word... " >&6; } 14691if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 case $ac_pt_PKG_CONFIG in 14695 [\\/]* | ?:[\\/]*) 14696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14697 ;; 14698 *) 14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14700for as_dir in $PATH 14701do 14702 IFS=$as_save_IFS 14703 test -z "$as_dir" && as_dir=. 14704 for ac_exec_ext in '' $ac_executable_extensions; do 14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14708 break 2 14709 fi 14710done 14711 done 14712IFS=$as_save_IFS 14713 14714 ;; 14715esac 14716fi 14717ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14718if test -n "$ac_pt_PKG_CONFIG"; then 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14720$as_echo "$ac_pt_PKG_CONFIG" >&6; } 14721else 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14723$as_echo "no" >&6; } 14724fi 14725 14726 if test "x$ac_pt_PKG_CONFIG" = x; then 14727 PKG_CONFIG="" 14728 else 14729 case $cross_compiling:$ac_tool_warned in 14730yes:) 14731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14733ac_tool_warned=yes ;; 14734esac 14735 PKG_CONFIG=$ac_pt_PKG_CONFIG 14736 fi 14737else 14738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14739fi 14740 14741fi 14742if test -n "$PKG_CONFIG"; then 14743 _pkg_min_version=0.9.0 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14745$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14748$as_echo "yes" >&6; } 14749 else 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14751$as_echo "no" >&6; } 14752 PKG_CONFIG="" 14753 fi 14754fi 14755fi 14756 14757# Checks for header files. 14758for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h 14759do : 14760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14761ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14762" 14763if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14764 cat >>confdefs.h <<_ACEOF 14765#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14766_ACEOF 14767 14768fi 14769 14770done 14771 14772# net/if.h portability for Darwin see: 14773# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html 14774for ac_header in net/if.h 14775do : 14776 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 14777#include <stdio.h> 14778#ifdef STDC_HEADERS 14779# include <stdlib.h> 14780# include <stddef.h> 14781#else 14782# ifdef HAVE_STDLIB_H 14783# include <stdlib.h> 14784# endif 14785#endif 14786#ifdef HAVE_SYS_SOCKET_H 14787# include <sys/socket.h> 14788#endif 14789 14790" 14791if test "x$ac_cv_header_net_if_h" = xyes; then : 14792 cat >>confdefs.h <<_ACEOF 14793#define HAVE_NET_IF_H 1 14794_ACEOF 14795 14796fi 14797 14798done 14799 14800 14801# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 14802for ac_header in TargetConditionals.h 14803do : 14804 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default 14805" 14806if test "x$ac_cv_header_TargetConditionals_h" = xyes; then : 14807 cat >>confdefs.h <<_ACEOF 14808#define HAVE_TARGETCONDITIONALS_H 1 14809_ACEOF 14810 14811fi 14812 14813done 14814 14815 14816# check for types. 14817# Using own tests for int64* because autoconf builtin only give 32bit. 14818ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14819if test "x$ac_cv_type_int8_t" = xyes; then : 14820 14821else 14822 14823cat >>confdefs.h <<_ACEOF 14824#define int8_t signed char 14825_ACEOF 14826 14827fi 14828 14829ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14830if test "x$ac_cv_type_int16_t" = xyes; then : 14831 14832else 14833 14834cat >>confdefs.h <<_ACEOF 14835#define int16_t short 14836_ACEOF 14837 14838fi 14839 14840ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14841if test "x$ac_cv_type_int32_t" = xyes; then : 14842 14843else 14844 14845cat >>confdefs.h <<_ACEOF 14846#define int32_t int 14847_ACEOF 14848 14849fi 14850 14851ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14852if test "x$ac_cv_type_int64_t" = xyes; then : 14853 14854else 14855 14856cat >>confdefs.h <<_ACEOF 14857#define int64_t long long 14858_ACEOF 14859 14860fi 14861 14862ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14863if test "x$ac_cv_type_uint8_t" = xyes; then : 14864 14865else 14866 14867cat >>confdefs.h <<_ACEOF 14868#define uint8_t unsigned char 14869_ACEOF 14870 14871fi 14872 14873ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14874if test "x$ac_cv_type_uint16_t" = xyes; then : 14875 14876else 14877 14878cat >>confdefs.h <<_ACEOF 14879#define uint16_t unsigned short 14880_ACEOF 14881 14882fi 14883 14884ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14885if test "x$ac_cv_type_uint32_t" = xyes; then : 14886 14887else 14888 14889cat >>confdefs.h <<_ACEOF 14890#define uint32_t unsigned int 14891_ACEOF 14892 14893fi 14894 14895ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14896if test "x$ac_cv_type_uint64_t" = xyes; then : 14897 14898else 14899 14900cat >>confdefs.h <<_ACEOF 14901#define uint64_t unsigned long long 14902_ACEOF 14903 14904fi 14905 14906ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14907if test "x$ac_cv_type_size_t" = xyes; then : 14908 14909else 14910 14911cat >>confdefs.h <<_ACEOF 14912#define size_t unsigned int 14913_ACEOF 14914 14915fi 14916 14917ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14918if test "x$ac_cv_type_ssize_t" = xyes; then : 14919 14920else 14921 14922cat >>confdefs.h <<_ACEOF 14923#define ssize_t int 14924_ACEOF 14925 14926fi 14927 14928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14929$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14930if ${ac_cv_type_uid_t+:} false; then : 14931 $as_echo_n "(cached) " >&6 14932else 14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14934/* end confdefs.h. */ 14935#include <sys/types.h> 14936 14937_ACEOF 14938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14939 $EGREP "uid_t" >/dev/null 2>&1; then : 14940 ac_cv_type_uid_t=yes 14941else 14942 ac_cv_type_uid_t=no 14943fi 14944rm -f conftest* 14945 14946fi 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14948$as_echo "$ac_cv_type_uid_t" >&6; } 14949if test $ac_cv_type_uid_t = no; then 14950 14951$as_echo "#define uid_t int" >>confdefs.h 14952 14953 14954$as_echo "#define gid_t int" >>confdefs.h 14955 14956fi 14957 14958ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14959if test "x$ac_cv_type_pid_t" = xyes; then : 14960 14961else 14962 14963cat >>confdefs.h <<_ACEOF 14964#define pid_t int 14965_ACEOF 14966 14967fi 14968 14969ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14970if test "x$ac_cv_type_off_t" = xyes; then : 14971 14972else 14973 14974cat >>confdefs.h <<_ACEOF 14975#define off_t long int 14976_ACEOF 14977 14978fi 14979 14980ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 14981$ac_includes_default 14982#ifdef HAVE_WINSOCK2_H 14983# include <winsock2.h> 14984#endif 14985 14986" 14987if test "x$ac_cv_type_u_char" = xyes; then : 14988 14989else 14990 14991$as_echo "#define u_char unsigned char" >>confdefs.h 14992 14993fi 14994 14995ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 14996$ac_includes_default 14997#ifdef HAVE_SYS_RESOURCE_H 14998# include <sys/resource.h> 14999#endif 15000 15001" 15002if test "x$ac_cv_type_rlim_t" = xyes; then : 15003 15004else 15005 15006$as_echo "#define rlim_t unsigned long" >>confdefs.h 15007 15008fi 15009 15010 15011ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15012$ac_includes_default 15013#ifdef HAVE_SYS_SOCKET_H 15014# include <sys/socket.h> 15015#endif 15016#ifdef HAVE_WS2TCPIP_H 15017# include <ws2tcpip.h> 15018#endif 15019 15020" 15021if test "x$ac_cv_type_socklen_t" = xyes; then : 15022 15023else 15024 15025$as_echo "#define socklen_t int" >>confdefs.h 15026 15027fi 15028 15029 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 15030$ac_includes_default 15031#ifdef HAVE_SYS_TYPES_H 15032# include <sys/types.h> 15033#endif 15034#ifdef HAVE_NETINET_IN_H 15035# include <netinet/in.h> 15036#endif 15037 15038" 15039if test "x$ac_cv_type_in_addr_t" = xyes; then : 15040 15041else 15042 15043$as_echo "#define in_addr_t uint32_t" >>confdefs.h 15044 15045fi 15046 15047 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 15048$ac_includes_default 15049#ifdef HAVE_SYS_TYPES_H 15050# include <sys/types.h> 15051#endif 15052#ifdef HAVE_NETINET_IN_H 15053# include <netinet/in.h> 15054#endif 15055 15056" 15057if test "x$ac_cv_type_in_port_t" = xyes; then : 15058 15059else 15060 15061$as_echo "#define in_port_t uint16_t" >>confdefs.h 15062 15063fi 15064 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 15066$as_echo_n "checking if memcmp compares unsigned... " >&6; } 15067if test "$cross_compiling" = yes; then : 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 15069$as_echo "cross-compile no" >&6; } 15070 15071$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15072 15073 case " $LIBOBJS " in 15074 *" memcmp.$ac_objext "* ) ;; 15075 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15076 ;; 15077esac 15078 15079 15080else 15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15082/* end confdefs.h. */ 15083 15084#include <stdio.h> 15085#include <stdlib.h> 15086#include <string.h> 15087int main(void) 15088{ 15089 char a = 255, b = 0; 15090 if(memcmp(&a, &b, 1) < 0) 15091 return 1; 15092 return 0; 15093} 15094 15095_ACEOF 15096if ac_fn_c_try_run "$LINENO"; then : 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15098$as_echo "yes" >&6; } 15099else 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15101$as_echo "no" >&6; } 15102 15103$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15104 15105 case " $LIBOBJS " in 15106 *" memcmp.$ac_objext "* ) ;; 15107 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15108 ;; 15109esac 15110 15111 15112fi 15113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15114 conftest.$ac_objext conftest.beam conftest.$ac_ext 15115fi 15116 15117 15118# The cast to long int works around a bug in the HP C Compiler 15119# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15120# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15121# This bug is HP SR number 8606223364. 15122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15123$as_echo_n "checking size of time_t... " >&6; } 15124if ${ac_cv_sizeof_time_t+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126else 15127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15128$ac_includes_default 15129#ifdef TIME_WITH_SYS_TIME 15130# include <sys/time.h> 15131# include <time.h> 15132#else 15133# ifdef HAVE_SYS_TIME_H 15134# include <sys/time.h> 15135# else 15136# include <time.h> 15137# endif 15138#endif 15139 15140"; then : 15141 15142else 15143 if test "$ac_cv_type_time_t" = yes; then 15144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15146as_fn_error 77 "cannot compute sizeof (time_t) 15147See \`config.log' for more details" "$LINENO" 5; } 15148 else 15149 ac_cv_sizeof_time_t=0 15150 fi 15151fi 15152 15153fi 15154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15155$as_echo "$ac_cv_sizeof_time_t" >&6; } 15156 15157 15158 15159cat >>confdefs.h <<_ACEOF 15160#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15161_ACEOF 15162 15163 15164# The cast to long int works around a bug in the HP C Compiler 15165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15167# This bug is HP SR number 8606223364. 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 15169$as_echo_n "checking size of size_t... " >&6; } 15170if ${ac_cv_sizeof_size_t+:} false; then : 15171 $as_echo_n "(cached) " >&6 15172else 15173 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15174 15175else 15176 if test "$ac_cv_type_size_t" = yes; then 15177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15179as_fn_error 77 "cannot compute sizeof (size_t) 15180See \`config.log' for more details" "$LINENO" 5; } 15181 else 15182 ac_cv_sizeof_size_t=0 15183 fi 15184fi 15185 15186fi 15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 15188$as_echo "$ac_cv_sizeof_size_t" >&6; } 15189 15190 15191 15192cat >>confdefs.h <<_ACEOF 15193#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 15194_ACEOF 15195 15196 15197 15198# add option to disable the evil rpath 15199 15200# Check whether --enable-rpath was given. 15201if test "${enable_rpath+set}" = set; then : 15202 enableval=$enable_rpath; enable_rpath=$enableval 15203else 15204 enable_rpath=yes 15205fi 15206 15207if test "x$enable_rpath" = xno; then 15208 ac_config_commands="$ac_config_commands disable-rpath" 15209 15210fi 15211 15212 15213 15214# check to see if libraries are needed for these functions. 15215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 15216$as_echo_n "checking for library containing inet_pton... " >&6; } 15217if ${ac_cv_search_inet_pton+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 ac_func_search_save_LIBS=$LIBS 15221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15222/* end confdefs.h. */ 15223 15224/* Override any GCC internal prototype to avoid an error. 15225 Use char because int might match the return type of a GCC 15226 builtin and then its argument prototype would still apply. */ 15227#ifdef __cplusplus 15228extern "C" 15229#endif 15230char inet_pton (); 15231int 15232main () 15233{ 15234return inet_pton (); 15235 ; 15236 return 0; 15237} 15238_ACEOF 15239for ac_lib in '' nsl; do 15240 if test -z "$ac_lib"; then 15241 ac_res="none required" 15242 else 15243 ac_res=-l$ac_lib 15244 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15245 fi 15246 if ac_fn_c_try_link "$LINENO"; then : 15247 ac_cv_search_inet_pton=$ac_res 15248fi 15249rm -f core conftest.err conftest.$ac_objext \ 15250 conftest$ac_exeext 15251 if ${ac_cv_search_inet_pton+:} false; then : 15252 break 15253fi 15254done 15255if ${ac_cv_search_inet_pton+:} false; then : 15256 15257else 15258 ac_cv_search_inet_pton=no 15259fi 15260rm conftest.$ac_ext 15261LIBS=$ac_func_search_save_LIBS 15262fi 15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 15264$as_echo "$ac_cv_search_inet_pton" >&6; } 15265ac_res=$ac_cv_search_inet_pton 15266if test "$ac_res" != no; then : 15267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15268 15269fi 15270 15271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15272$as_echo_n "checking for library containing socket... " >&6; } 15273if ${ac_cv_search_socket+:} false; then : 15274 $as_echo_n "(cached) " >&6 15275else 15276 ac_func_search_save_LIBS=$LIBS 15277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279 15280/* Override any GCC internal prototype to avoid an error. 15281 Use char because int might match the return type of a GCC 15282 builtin and then its argument prototype would still apply. */ 15283#ifdef __cplusplus 15284extern "C" 15285#endif 15286char socket (); 15287int 15288main () 15289{ 15290return socket (); 15291 ; 15292 return 0; 15293} 15294_ACEOF 15295for ac_lib in '' socket; do 15296 if test -z "$ac_lib"; then 15297 ac_res="none required" 15298 else 15299 ac_res=-l$ac_lib 15300 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15301 fi 15302 if ac_fn_c_try_link "$LINENO"; then : 15303 ac_cv_search_socket=$ac_res 15304fi 15305rm -f core conftest.err conftest.$ac_objext \ 15306 conftest$ac_exeext 15307 if ${ac_cv_search_socket+:} false; then : 15308 break 15309fi 15310done 15311if ${ac_cv_search_socket+:} false; then : 15312 15313else 15314 ac_cv_search_socket=no 15315fi 15316rm conftest.$ac_ext 15317LIBS=$ac_func_search_save_LIBS 15318fi 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15320$as_echo "$ac_cv_search_socket" >&6; } 15321ac_res=$ac_cv_search_socket 15322if test "$ac_res" != no; then : 15323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15324 15325fi 15326 15327 15328# check whether strptime also works 15329 15330# check some functions of the OS before linking libs (while still runnable). 15331for ac_header in unistd.h 15332do : 15333 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 15334if test "x$ac_cv_header_unistd_h" = xyes; then : 15335 cat >>confdefs.h <<_ACEOF 15336#define HAVE_UNISTD_H 1 15337_ACEOF 15338 15339fi 15340 15341done 15342 15343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 15344$as_echo_n "checking for working chown... " >&6; } 15345if ${ac_cv_func_chown_works+:} false; then : 15346 $as_echo_n "(cached) " >&6 15347else 15348 if test "$cross_compiling" = yes; then : 15349 ac_cv_func_chown_works=no 15350else 15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15352/* end confdefs.h. */ 15353$ac_includes_default 15354#include <fcntl.h> 15355 15356int 15357main () 15358{ 15359 char *f = "conftest.chown"; 15360 struct stat before, after; 15361 15362 if (creat (f, 0600) < 0) 15363 return 1; 15364 if (stat (f, &before) < 0) 15365 return 1; 15366 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 15367 return 1; 15368 if (stat (f, &after) < 0) 15369 return 1; 15370 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 15371 15372 ; 15373 return 0; 15374} 15375_ACEOF 15376if ac_fn_c_try_run "$LINENO"; then : 15377 ac_cv_func_chown_works=yes 15378else 15379 ac_cv_func_chown_works=no 15380fi 15381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15382 conftest.$ac_objext conftest.beam conftest.$ac_ext 15383fi 15384 15385rm -f conftest.chown 15386 15387fi 15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 15389$as_echo "$ac_cv_func_chown_works" >&6; } 15390if test $ac_cv_func_chown_works = yes; then 15391 15392$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 15393 15394fi 15395 15396for ac_header in vfork.h 15397do : 15398 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15399if test "x$ac_cv_header_vfork_h" = xyes; then : 15400 cat >>confdefs.h <<_ACEOF 15401#define HAVE_VFORK_H 1 15402_ACEOF 15403 15404fi 15405 15406done 15407 15408for ac_func in fork vfork 15409do : 15410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15412if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15413 cat >>confdefs.h <<_ACEOF 15414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15415_ACEOF 15416 15417fi 15418done 15419 15420if test "x$ac_cv_func_fork" = xyes; then 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15422$as_echo_n "checking for working fork... " >&6; } 15423if ${ac_cv_func_fork_works+:} false; then : 15424 $as_echo_n "(cached) " >&6 15425else 15426 if test "$cross_compiling" = yes; then : 15427 ac_cv_func_fork_works=cross 15428else 15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431$ac_includes_default 15432int 15433main () 15434{ 15435 15436 /* By Ruediger Kuhlmann. */ 15437 return fork () < 0; 15438 15439 ; 15440 return 0; 15441} 15442_ACEOF 15443if ac_fn_c_try_run "$LINENO"; then : 15444 ac_cv_func_fork_works=yes 15445else 15446 ac_cv_func_fork_works=no 15447fi 15448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15449 conftest.$ac_objext conftest.beam conftest.$ac_ext 15450fi 15451 15452fi 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15454$as_echo "$ac_cv_func_fork_works" >&6; } 15455 15456else 15457 ac_cv_func_fork_works=$ac_cv_func_fork 15458fi 15459if test "x$ac_cv_func_fork_works" = xcross; then 15460 case $host in 15461 *-*-amigaos* | *-*-msdosdjgpp*) 15462 # Override, as these systems have only a dummy fork() stub 15463 ac_cv_func_fork_works=no 15464 ;; 15465 *) 15466 ac_cv_func_fork_works=yes 15467 ;; 15468 esac 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15470$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15471fi 15472ac_cv_func_vfork_works=$ac_cv_func_vfork 15473if test "x$ac_cv_func_vfork" = xyes; then 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15475$as_echo_n "checking for working vfork... " >&6; } 15476if ${ac_cv_func_vfork_works+:} false; then : 15477 $as_echo_n "(cached) " >&6 15478else 15479 if test "$cross_compiling" = yes; then : 15480 ac_cv_func_vfork_works=cross 15481else 15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15483/* end confdefs.h. */ 15484/* Thanks to Paul Eggert for this test. */ 15485$ac_includes_default 15486#include <sys/wait.h> 15487#ifdef HAVE_VFORK_H 15488# include <vfork.h> 15489#endif 15490/* On some sparc systems, changes by the child to local and incoming 15491 argument registers are propagated back to the parent. The compiler 15492 is told about this with #include <vfork.h>, but some compilers 15493 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15494 static variable whose address is put into a register that is 15495 clobbered by the vfork. */ 15496static void 15497#ifdef __cplusplus 15498sparc_address_test (int arg) 15499# else 15500sparc_address_test (arg) int arg; 15501#endif 15502{ 15503 static pid_t child; 15504 if (!child) { 15505 child = vfork (); 15506 if (child < 0) { 15507 perror ("vfork"); 15508 _exit(2); 15509 } 15510 if (!child) { 15511 arg = getpid(); 15512 write(-1, "", 0); 15513 _exit (arg); 15514 } 15515 } 15516} 15517 15518int 15519main () 15520{ 15521 pid_t parent = getpid (); 15522 pid_t child; 15523 15524 sparc_address_test (0); 15525 15526 child = vfork (); 15527 15528 if (child == 0) { 15529 /* Here is another test for sparc vfork register problems. This 15530 test uses lots of local variables, at least as many local 15531 variables as main has allocated so far including compiler 15532 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15533 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15534 reuse the register of parent for one of the local variables, 15535 since it will think that parent can't possibly be used any more 15536 in this routine. Assigning to the local variable will thus 15537 munge parent in the parent process. */ 15538 pid_t 15539 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15540 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15541 /* Convince the compiler that p..p7 are live; otherwise, it might 15542 use the same hardware register for all 8 local variables. */ 15543 if (p != p1 || p != p2 || p != p3 || p != p4 15544 || p != p5 || p != p6 || p != p7) 15545 _exit(1); 15546 15547 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15548 from child file descriptors. If the child closes a descriptor 15549 before it execs or exits, this munges the parent's descriptor 15550 as well. Test for this by closing stdout in the child. */ 15551 _exit(close(fileno(stdout)) != 0); 15552 } else { 15553 int status; 15554 struct stat st; 15555 15556 while (wait(&status) != child) 15557 ; 15558 return ( 15559 /* Was there some problem with vforking? */ 15560 child < 0 15561 15562 /* Did the child fail? (This shouldn't happen.) */ 15563 || status 15564 15565 /* Did the vfork/compiler bug occur? */ 15566 || parent != getpid() 15567 15568 /* Did the file descriptor bug occur? */ 15569 || fstat(fileno(stdout), &st) != 0 15570 ); 15571 } 15572} 15573_ACEOF 15574if ac_fn_c_try_run "$LINENO"; then : 15575 ac_cv_func_vfork_works=yes 15576else 15577 ac_cv_func_vfork_works=no 15578fi 15579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15580 conftest.$ac_objext conftest.beam conftest.$ac_ext 15581fi 15582 15583fi 15584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15585$as_echo "$ac_cv_func_vfork_works" >&6; } 15586 15587fi; 15588if test "x$ac_cv_func_fork_works" = xcross; then 15589 ac_cv_func_vfork_works=$ac_cv_func_vfork 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15591$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15592fi 15593 15594if test "x$ac_cv_func_vfork_works" = xyes; then 15595 15596$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15597 15598else 15599 15600$as_echo "#define vfork fork" >>confdefs.h 15601 15602fi 15603if test "x$ac_cv_func_fork_works" = xyes; then 15604 15605$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15606 15607fi 15608 15609 15610$as_echo "#define RETSIGTYPE void" >>confdefs.h 15611 15612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15613$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15614if ${ac_cv_sys_largefile_source+:} false; then : 15615 $as_echo_n "(cached) " >&6 15616else 15617 while :; do 15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15619/* end confdefs.h. */ 15620#include <sys/types.h> /* for off_t */ 15621 #include <stdio.h> 15622int 15623main () 15624{ 15625int (*fp) (FILE *, off_t, int) = fseeko; 15626 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15627 ; 15628 return 0; 15629} 15630_ACEOF 15631if ac_fn_c_try_link "$LINENO"; then : 15632 ac_cv_sys_largefile_source=no; break 15633fi 15634rm -f core conftest.err conftest.$ac_objext \ 15635 conftest$ac_exeext conftest.$ac_ext 15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637/* end confdefs.h. */ 15638#define _LARGEFILE_SOURCE 1 15639#include <sys/types.h> /* for off_t */ 15640 #include <stdio.h> 15641int 15642main () 15643{ 15644int (*fp) (FILE *, off_t, int) = fseeko; 15645 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15646 ; 15647 return 0; 15648} 15649_ACEOF 15650if ac_fn_c_try_link "$LINENO"; then : 15651 ac_cv_sys_largefile_source=1; break 15652fi 15653rm -f core conftest.err conftest.$ac_objext \ 15654 conftest$ac_exeext conftest.$ac_ext 15655 ac_cv_sys_largefile_source=unknown 15656 break 15657done 15658fi 15659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15660$as_echo "$ac_cv_sys_largefile_source" >&6; } 15661case $ac_cv_sys_largefile_source in #( 15662 no | unknown) ;; 15663 *) 15664cat >>confdefs.h <<_ACEOF 15665#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15666_ACEOF 15667;; 15668esac 15669rm -rf conftest* 15670 15671# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15672# in glibc 2.1.3, but that breaks too many other things. 15673# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15674if test $ac_cv_sys_largefile_source != unknown; then 15675 15676$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15677 15678fi 15679 15680 15681# Check whether --enable-largefile was given. 15682if test "${enable_largefile+set}" = set; then : 15683 enableval=$enable_largefile; 15684fi 15685 15686if test "$enable_largefile" != no; then 15687 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15689$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15690if ${ac_cv_sys_largefile_CC+:} false; then : 15691 $as_echo_n "(cached) " >&6 15692else 15693 ac_cv_sys_largefile_CC=no 15694 if test "$GCC" != yes; then 15695 ac_save_CC=$CC 15696 while :; do 15697 # IRIX 6.2 and later do not support large files by default, 15698 # so use the C compiler's -n32 option if that helps. 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701#include <sys/types.h> 15702 /* Check that off_t can represent 2**63 - 1 correctly. 15703 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15704 since some C++ compilers masquerading as C compilers 15705 incorrectly reject 9223372036854775807. */ 15706#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15708 && LARGE_OFF_T % 2147483647 == 1) 15709 ? 1 : -1]; 15710int 15711main () 15712{ 15713 15714 ; 15715 return 0; 15716} 15717_ACEOF 15718 if ac_fn_c_try_compile "$LINENO"; then : 15719 break 15720fi 15721rm -f core conftest.err conftest.$ac_objext 15722 CC="$CC -n32" 15723 if ac_fn_c_try_compile "$LINENO"; then : 15724 ac_cv_sys_largefile_CC=' -n32'; break 15725fi 15726rm -f core conftest.err conftest.$ac_objext 15727 break 15728 done 15729 CC=$ac_save_CC 15730 rm -f conftest.$ac_ext 15731 fi 15732fi 15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15734$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15735 if test "$ac_cv_sys_largefile_CC" != no; then 15736 CC=$CC$ac_cv_sys_largefile_CC 15737 fi 15738 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15740$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15741if ${ac_cv_sys_file_offset_bits+:} false; then : 15742 $as_echo_n "(cached) " >&6 15743else 15744 while :; do 15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15746/* end confdefs.h. */ 15747#include <sys/types.h> 15748 /* Check that off_t can represent 2**63 - 1 correctly. 15749 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15750 since some C++ compilers masquerading as C compilers 15751 incorrectly reject 9223372036854775807. */ 15752#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15754 && LARGE_OFF_T % 2147483647 == 1) 15755 ? 1 : -1]; 15756int 15757main () 15758{ 15759 15760 ; 15761 return 0; 15762} 15763_ACEOF 15764if ac_fn_c_try_compile "$LINENO"; then : 15765 ac_cv_sys_file_offset_bits=no; break 15766fi 15767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15769/* end confdefs.h. */ 15770#define _FILE_OFFSET_BITS 64 15771#include <sys/types.h> 15772 /* Check that off_t can represent 2**63 - 1 correctly. 15773 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15774 since some C++ compilers masquerading as C compilers 15775 incorrectly reject 9223372036854775807. */ 15776#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15778 && LARGE_OFF_T % 2147483647 == 1) 15779 ? 1 : -1]; 15780int 15781main () 15782{ 15783 15784 ; 15785 return 0; 15786} 15787_ACEOF 15788if ac_fn_c_try_compile "$LINENO"; then : 15789 ac_cv_sys_file_offset_bits=64; break 15790fi 15791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15792 ac_cv_sys_file_offset_bits=unknown 15793 break 15794done 15795fi 15796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15797$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15798case $ac_cv_sys_file_offset_bits in #( 15799 no | unknown) ;; 15800 *) 15801cat >>confdefs.h <<_ACEOF 15802#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15803_ACEOF 15804;; 15805esac 15806rm -rf conftest* 15807 if test $ac_cv_sys_file_offset_bits = unknown; then 15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15809$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15810if ${ac_cv_sys_large_files+:} false; then : 15811 $as_echo_n "(cached) " >&6 15812else 15813 while :; do 15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15815/* end confdefs.h. */ 15816#include <sys/types.h> 15817 /* Check that off_t can represent 2**63 - 1 correctly. 15818 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15819 since some C++ compilers masquerading as C compilers 15820 incorrectly reject 9223372036854775807. */ 15821#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15823 && LARGE_OFF_T % 2147483647 == 1) 15824 ? 1 : -1]; 15825int 15826main () 15827{ 15828 15829 ; 15830 return 0; 15831} 15832_ACEOF 15833if ac_fn_c_try_compile "$LINENO"; then : 15834 ac_cv_sys_large_files=no; break 15835fi 15836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15838/* end confdefs.h. */ 15839#define _LARGE_FILES 1 15840#include <sys/types.h> 15841 /* Check that off_t can represent 2**63 - 1 correctly. 15842 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15843 since some C++ compilers masquerading as C compilers 15844 incorrectly reject 9223372036854775807. */ 15845#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15847 && LARGE_OFF_T % 2147483647 == 1) 15848 ? 1 : -1]; 15849int 15850main () 15851{ 15852 15853 ; 15854 return 0; 15855} 15856_ACEOF 15857if ac_fn_c_try_compile "$LINENO"; then : 15858 ac_cv_sys_large_files=1; break 15859fi 15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15861 ac_cv_sys_large_files=unknown 15862 break 15863done 15864fi 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15866$as_echo "$ac_cv_sys_large_files" >&6; } 15867case $ac_cv_sys_large_files in #( 15868 no | unknown) ;; 15869 *) 15870cat >>confdefs.h <<_ACEOF 15871#define _LARGE_FILES $ac_cv_sys_large_files 15872_ACEOF 15873;; 15874esac 15875rm -rf conftest* 15876 fi 15877 15878 15879fi 15880 15881 15882 15883 15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 15885$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 15886cache=_D_LARGEFILE_SOURCE_1 15887if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 15888 $as_echo_n "(cached) " >&6 15889else 15890 15891echo ' 15892#include <stdio.h> 15893int test() { 15894 int a = fseeko(stdin, 0, 0); 15895 return a; 15896} 15897' > conftest.c 15898echo 'void f(){}' >>conftest.c 15899if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 15900eval "cv_prog_cc_flag_needed_$cache=no" 15901else 15902 15903if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 15904eval "cv_prog_cc_flag_needed_$cache=yes" 15905else 15906eval "cv_prog_cc_flag_needed_$cache=fail" 15907#echo 'Test with flag fails too!' 15908#cat conftest.c 15909#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15910#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15911#exit 1 15912fi 15913 15914fi 15915rm -f conftest conftest.c conftest.o 15916 15917fi 15918 15919if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15921$as_echo "yes" >&6; } 15922: 15923CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 15924else 15925if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15927$as_echo "no" >&6; } 15928#echo 'Test with flag is no!' 15929#cat conftest.c 15930#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15931#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15932#exit 1 15933: 15934 15935else 15936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15937$as_echo "failed" >&6; } 15938: 15939 15940fi 15941fi 15942 15943 15944 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 15946$as_echo_n "checking if nonblocking sockets work... " >&6; } 15947if echo $host | grep mingw >/dev/null; then 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 15949$as_echo "no (windows)" >&6; } 15950 15951$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15952 15953else 15954if test "$cross_compiling" = yes; then : 15955 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 15957$as_echo "crosscompile(yes)" >&6; } 15958 15959else 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962 15963 15964#include <stdio.h> 15965#include <string.h> 15966#include <stdlib.h> 15967#include <fcntl.h> 15968#include <errno.h> 15969#ifdef HAVE_SYS_TYPES_H 15970#include <sys/types.h> 15971#endif 15972#ifdef HAVE_SYS_SOCKET_H 15973#include <sys/socket.h> 15974#endif 15975#ifdef HAVE_NETINET_IN_H 15976#include <netinet/in.h> 15977#endif 15978#ifdef HAVE_ARPA_INET_H 15979#include <arpa/inet.h> 15980#endif 15981#ifdef HAVE_UNISTD_H 15982#include <unistd.h> 15983#endif 15984#ifdef HAVE_TIME_H 15985#include <time.h> 15986#endif 15987 15988int main(void) 15989{ 15990 int port; 15991 int sfd, cfd; 15992 int num = 10; 15993 int i, p; 15994 struct sockaddr_in a; 15995 /* test if select and nonblocking reads work well together */ 15996 /* open port. 15997 fork child to send 10 messages. 15998 select to read. 15999 then try to nonblocking read the 10 messages 16000 then, nonblocking read must give EAGAIN 16001 */ 16002 16003 port = 12345 + (time(0)%32); 16004 sfd = socket(PF_INET, SOCK_DGRAM, 0); 16005 if(sfd == -1) { 16006 perror("socket"); 16007 return 1; 16008 } 16009 memset(&a, 0, sizeof(a)); 16010 a.sin_family = AF_INET; 16011 a.sin_port = htons(port); 16012 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 16013 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16014 perror("bind"); 16015 return 1; 16016 } 16017 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 16018 perror("fcntl"); 16019 return 1; 16020 } 16021 16022 cfd = socket(PF_INET, SOCK_DGRAM, 0); 16023 if(cfd == -1) { 16024 perror("client socket"); 16025 return 1; 16026 } 16027 a.sin_port = 0; 16028 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16029 perror("client bind"); 16030 return 1; 16031 } 16032 a.sin_port = htons(port); 16033 16034 /* no handler, causes exit in 10 seconds */ 16035 alarm(10); 16036 16037 /* send and receive on the socket */ 16038 if((p=fork()) == 0) { 16039 for(i=0; i<num; i++) { 16040 if(sendto(cfd, &i, sizeof(i), 0, 16041 (struct sockaddr*)&a, sizeof(a)) < 0) { 16042 perror("sendto"); 16043 return 1; 16044 } 16045 } 16046 } else { 16047 /* parent */ 16048 fd_set rset; 16049 int x; 16050 if(p == -1) { 16051 perror("fork"); 16052 return 1; 16053 } 16054 FD_ZERO(&rset); 16055 FD_SET(sfd, &rset); 16056 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 16057 perror("select"); 16058 return 1; 16059 } 16060 i = 0; 16061 while(i < num) { 16062 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 16063 if(errno == EAGAIN) 16064 continue; 16065 perror("recv"); 16066 return 1; 16067 } 16068 i++; 16069 } 16070 /* now we want to get EAGAIN: nonblocking goodness */ 16071 errno = 0; 16072 recv(sfd, &x, sizeof(x), 0); 16073 if(errno != EAGAIN) { 16074 perror("trying to recv again"); 16075 return 1; 16076 } 16077 /* EAGAIN encountered */ 16078 } 16079 16080 close(sfd); 16081 close(cfd); 16082 return 0; 16083} 16084 16085_ACEOF 16086if ac_fn_c_try_run "$LINENO"; then : 16087 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16089$as_echo "yes" >&6; } 16090 16091else 16092 16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16094$as_echo "no" >&6; } 16095 16096$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 16097 16098 16099fi 16100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16101 conftest.$ac_objext conftest.beam conftest.$ac_ext 16102fi 16103 16104fi 16105 16106 16107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 16108$as_echo_n "checking whether mkdir has one arg... " >&6; } 16109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16110/* end confdefs.h. */ 16111 16112#include <stdio.h> 16113#include <unistd.h> 16114#ifdef HAVE_WINSOCK2_H 16115#include <winsock2.h> 16116#endif 16117#ifdef HAVE_SYS_STAT_H 16118#include <sys/stat.h> 16119#endif 16120 16121int 16122main () 16123{ 16124 16125 (void)mkdir("directory"); 16126 16127 ; 16128 return 0; 16129} 16130_ACEOF 16131if ac_fn_c_try_compile "$LINENO"; then : 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16133$as_echo "yes" >&6; } 16134 16135$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 16136 16137 16138else 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16140$as_echo "no" >&6; } 16141 16142fi 16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16144 16145for ac_func in strptime 16146do : 16147 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 16148if test "x$ac_cv_func_strptime" = xyes; then : 16149 cat >>confdefs.h <<_ACEOF 16150#define HAVE_STRPTIME 1 16151_ACEOF 16152 16153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 16154$as_echo_n "checking whether strptime works... " >&6; } 16155if test c${cross_compiling} = cno; then 16156if test "$cross_compiling" = yes; then : 16157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16159as_fn_error $? "cannot run test program while cross compiling 16160See \`config.log' for more details" "$LINENO" 5; } 16161else 16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16163/* end confdefs.h. */ 16164 16165#define _XOPEN_SOURCE 600 16166#include <time.h> 16167int main(void) { struct tm tm; char *res; 16168res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm); 16169if (!res) return 2; 16170res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 16171if (!res) return 1; return 0; } 16172 16173_ACEOF 16174if ac_fn_c_try_run "$LINENO"; then : 16175 eval "ac_cv_c_strptime_works=yes" 16176else 16177 eval "ac_cv_c_strptime_works=no" 16178fi 16179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16180 conftest.$ac_objext conftest.beam conftest.$ac_ext 16181fi 16182 16183else 16184eval "ac_cv_c_strptime_works=maybe" 16185fi 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 16187$as_echo "$ac_cv_c_strptime_works" >&6; } 16188if test $ac_cv_c_strptime_works = no; then 16189case " $LIBOBJS " in 16190 *" strptime.$ac_objext "* ) ;; 16191 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16192 ;; 16193esac 16194 16195else 16196 16197cat >>confdefs.h <<_ACEOF 16198#define STRPTIME_WORKS 1 16199_ACEOF 16200 16201fi 16202 16203else 16204 case " $LIBOBJS " in 16205 *" strptime.$ac_objext "* ) ;; 16206 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16207 ;; 16208esac 16209 16210fi 16211done 16212 16213 16214# check if we can use SO_REUSEPORT 16215reuseport_default=0 16216if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi 16217if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi 16218if test "$reuseport_default" = 1; then 16219 16220$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h 16221 16222else 16223 16224$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h 16225 16226fi 16227 16228# Include systemd.m4 - begin 16229# macros for configuring systemd 16230# Copyright 2015, Sami Kerola, CloudFlare. 16231# BSD licensed. 16232# Check whether --enable-systemd was given. 16233if test "${enable_systemd+set}" = set; then : 16234 enableval=$enable_systemd; 16235else 16236 enable_systemd=no 16237fi 16238 16239have_systemd=no 16240if test "x$enable_systemd" != xno; then : 16241 16242 16243 16244pkg_failed=no 16245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 16246$as_echo_n "checking for SYSTEMD... " >&6; } 16247 16248if test -n "$SYSTEMD_CFLAGS"; then 16249 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 16250 elif test -n "$PKG_CONFIG"; then 16251 if test -n "$PKG_CONFIG" && \ 16252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16253 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16254 ac_status=$? 16255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16256 test $ac_status = 0; }; then 16257 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 16258 test "x$?" != "x0" && pkg_failed=yes 16259else 16260 pkg_failed=yes 16261fi 16262 else 16263 pkg_failed=untried 16264fi 16265if test -n "$SYSTEMD_LIBS"; then 16266 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 16267 elif test -n "$PKG_CONFIG"; then 16268 if test -n "$PKG_CONFIG" && \ 16269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16270 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16271 ac_status=$? 16272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16273 test $ac_status = 0; }; then 16274 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 16275 test "x$?" != "x0" && pkg_failed=yes 16276else 16277 pkg_failed=yes 16278fi 16279 else 16280 pkg_failed=untried 16281fi 16282 16283 16284 16285if test $pkg_failed = yes; then 16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16287$as_echo "no" >&6; } 16288 16289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16290 _pkg_short_errors_supported=yes 16291else 16292 _pkg_short_errors_supported=no 16293fi 16294 if test $_pkg_short_errors_supported = yes; then 16295 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 16296 else 16297 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 16298 fi 16299 # Put the nasty error message in config.log where it belongs 16300 echo "$SYSTEMD_PKG_ERRORS" >&5 16301 16302 have_systemd=no 16303elif test $pkg_failed = untried; then 16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16305$as_echo "no" >&6; } 16306 have_systemd=no 16307else 16308 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 16309 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16311$as_echo "yes" >&6; } 16312 have_systemd=yes 16313fi 16314 if test "x$have_systemd" != "xyes"; then : 16315 16316 16317pkg_failed=no 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 16319$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 16320 16321if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 16322 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 16323 elif test -n "$PKG_CONFIG"; then 16324 if test -n "$PKG_CONFIG" && \ 16325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16326 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16327 ac_status=$? 16328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16329 test $ac_status = 0; }; then 16330 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 16331 test "x$?" != "x0" && pkg_failed=yes 16332else 16333 pkg_failed=yes 16334fi 16335 else 16336 pkg_failed=untried 16337fi 16338if test -n "$SYSTEMD_DAEMON_LIBS"; then 16339 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 16340 elif test -n "$PKG_CONFIG"; then 16341 if test -n "$PKG_CONFIG" && \ 16342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16343 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16344 ac_status=$? 16345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16346 test $ac_status = 0; }; then 16347 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 16348 test "x$?" != "x0" && pkg_failed=yes 16349else 16350 pkg_failed=yes 16351fi 16352 else 16353 pkg_failed=untried 16354fi 16355 16356 16357 16358if test $pkg_failed = yes; then 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16360$as_echo "no" >&6; } 16361 16362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16363 _pkg_short_errors_supported=yes 16364else 16365 _pkg_short_errors_supported=no 16366fi 16367 if test $_pkg_short_errors_supported = yes; then 16368 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16369 else 16370 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16371 fi 16372 # Put the nasty error message in config.log where it belongs 16373 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 16374 16375 have_systemd_daemon=no 16376elif test $pkg_failed = untried; then 16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16378$as_echo "no" >&6; } 16379 have_systemd_daemon=no 16380else 16381 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 16382 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16384$as_echo "yes" >&6; } 16385 have_systemd_daemon=yes 16386fi 16387 if test "x$have_systemd_daemon" = "xyes"; then : 16388 have_systemd=yes 16389fi 16390 16391fi 16392 case $enable_systemd:$have_systemd in #( 16393 yes:no) : 16394 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 16395 *:yes) : 16396 16397$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 16398 16399 LIBS="$LIBS $SYSTEMD_LIBS" 16400 16401 ;; #( 16402 *) : 16403 ;; 16404esac 16405 16406 16407fi 16408 if test "x$have_systemd" = xyes; then 16409 USE_SYSTEMD_TRUE= 16410 USE_SYSTEMD_FALSE='#' 16411else 16412 USE_SYSTEMD_TRUE='#' 16413 USE_SYSTEMD_FALSE= 16414fi 16415 16416 16417# Include systemd.m4 - end 16418 16419# set memory allocation checking if requested 16420# Check whether --enable-alloc-checks was given. 16421if test "${enable_alloc_checks+set}" = set; then : 16422 enableval=$enable_alloc_checks; 16423fi 16424 16425# Check whether --enable-alloc-lite was given. 16426if test "${enable_alloc_lite+set}" = set; then : 16427 enableval=$enable_alloc_lite; 16428fi 16429 16430# Check whether --enable-alloc-nonregional was given. 16431if test "${enable_alloc_nonregional+set}" = set; then : 16432 enableval=$enable_alloc_nonregional; 16433fi 16434 16435if test x_$enable_alloc_nonregional = x_yes; then 16436 16437$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 16438 16439fi 16440if test x_$enable_alloc_checks = x_yes; then 16441 16442$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 16443 16444 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 16445 16446 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 16447 16448else 16449 if test x_$enable_alloc_lite = x_yes; then 16450 16451$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 16452 16453 else 16454 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 16456$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16457 if test "$cross_compiling" = yes; then : 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 16459$as_echo "no (crosscompile)" >&6; } 16460 case " $LIBOBJS " in 16461 *" malloc.$ac_objext "* ) ;; 16462 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16463 ;; 16464esac 16465 16466 16467cat >>confdefs.h <<_ACEOF 16468#define malloc rpl_malloc_unbound 16469_ACEOF 16470 16471else 16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16473/* end confdefs.h. */ 16474#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16475#include <stdlib.h> 16476#else 16477char *malloc (); 16478#endif 16479 16480int 16481main () 16482{ 16483 if(malloc(0) != 0) return 1; 16484 ; 16485 return 0; 16486} 16487 16488_ACEOF 16489if ac_fn_c_try_run "$LINENO"; then : 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16491$as_echo "no" >&6; } 16492 case " $LIBOBJS " in 16493 *" malloc.$ac_objext "* ) ;; 16494 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16495 ;; 16496esac 16497 16498 16499cat >>confdefs.h <<_ACEOF 16500#define malloc rpl_malloc_unbound 16501_ACEOF 16502 16503else 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16505$as_echo "yes" >&6; } 16506 16507$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 16508 16509fi 16510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16511 conftest.$ac_objext conftest.beam conftest.$ac_ext 16512fi 16513 16514 16515 fi 16516fi 16517 16518# check windows threads (we use them, not pthreads, on windows). 16519if test "$on_mingw" = "yes"; then 16520# check windows threads 16521 for ac_header in windows.h 16522do : 16523 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 16524" 16525if test "x$ac_cv_header_windows_h" = xyes; then : 16526 cat >>confdefs.h <<_ACEOF 16527#define HAVE_WINDOWS_H 1 16528_ACEOF 16529 16530fi 16531 16532done 16533 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 16535$as_echo_n "checking for CreateThread... " >&6; } 16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16537/* end confdefs.h. */ 16538 16539#ifdef HAVE_WINDOWS_H 16540#include <windows.h> 16541#endif 16542 16543int 16544main () 16545{ 16546 16547 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 16548 16549 ; 16550 return 0; 16551} 16552_ACEOF 16553if ac_fn_c_try_compile "$LINENO"; then : 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16555$as_echo "yes" >&6; } 16556 16557$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 16558 16559 16560else 16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16562$as_echo "no" >&6; } 16563 16564fi 16565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16566 16567else 16568# not on mingw, check thread libraries. 16569 16570# check for thread library. 16571# check this first, so that the pthread lib does not get linked in via 16572# libssl or libpython, and thus distorts the tests, and we end up using 16573# the non-threadsafe C libraries. 16574 16575# Check whether --with-pthreads was given. 16576if test "${with_pthreads+set}" = set; then : 16577 withval=$with_pthreads; 16578else 16579 withval="yes" 16580fi 16581 16582ub_have_pthreads=no 16583if test x_$withval != x_no; then 16584 16585 16586ac_ext=c 16587ac_cpp='$CPP $CPPFLAGS' 16588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16590ac_compiler_gnu=$ac_cv_c_compiler_gnu 16591 16592ax_pthread_ok=no 16593 16594# We used to check for pthread.h first, but this fails if pthread.h 16595# requires special compiler flags (e.g. on True64 or Sequent). 16596# It gets checked for in the link test anyway. 16597 16598# First of all, check if the user has set any of the PTHREAD_LIBS, 16599# etcetera environment variables, and if threads linking works using 16600# them: 16601if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16602 save_CFLAGS="$CFLAGS" 16603 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16604 save_LIBS="$LIBS" 16605 LIBS="$PTHREAD_LIBS $LIBS" 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16607$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609/* end confdefs.h. */ 16610 16611/* Override any GCC internal prototype to avoid an error. 16612 Use char because int might match the return type of a GCC 16613 builtin and then its argument prototype would still apply. */ 16614#ifdef __cplusplus 16615extern "C" 16616#endif 16617char pthread_join (); 16618int 16619main () 16620{ 16621return pthread_join (); 16622 ; 16623 return 0; 16624} 16625_ACEOF 16626if ac_fn_c_try_link "$LINENO"; then : 16627 ax_pthread_ok=yes 16628fi 16629rm -f core conftest.err conftest.$ac_objext \ 16630 conftest$ac_exeext conftest.$ac_ext 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16632$as_echo "$ax_pthread_ok" >&6; } 16633 if test x"$ax_pthread_ok" = xno; then 16634 PTHREAD_LIBS="" 16635 PTHREAD_CFLAGS="" 16636 fi 16637 LIBS="$save_LIBS" 16638 CFLAGS="$save_CFLAGS" 16639fi 16640 16641# We must check for the threads library under a number of different 16642# names; the ordering is very important because some systems 16643# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16644# libraries is broken (non-POSIX). 16645 16646# Create a list of thread flags to try. Items starting with a "-" are 16647# C compiler flags, and other items are library names, except for "none" 16648# which indicates that we try without any flags at all, and "pthread-config" 16649# which is a program returning the flags for the Pth emulation library. 16650 16651ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16652 16653# The ordering *is* (sometimes) important. Some notes on the 16654# individual items follow: 16655 16656# pthreads: AIX (must check this before -lpthread) 16657# none: in case threads are in libc; should be tried before -Kthread and 16658# other compiler flags to prevent continual compiler warnings 16659# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16660# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16661# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16662# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16663# -pthreads: Solaris/gcc 16664# -mthreads: Mingw32/gcc, Lynx/gcc 16665# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16666# doesn't hurt to check since this sometimes defines pthreads too; 16667# also defines -D_REENTRANT) 16668# ... -mt is also the pthreads flag for HP/aCC 16669# pthread: Linux, etcetera 16670# --thread-safe: KAI C++ 16671# pthread-config: use pthread-config program (for GNU Pth library) 16672 16673case ${host_os} in 16674 solaris*) 16675 16676 # On Solaris (at least, for some versions), libc contains stubbed 16677 # (non-functional) versions of the pthreads routines, so link-based 16678 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16679 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16680 # a function called by this macro, so we could check for that, but 16681 # who knows whether they'll stub that too in a future libc.) So, 16682 # we'll just look for -pthreads and -lpthread first: 16683 16684 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 16685 ;; 16686 16687 darwin*) 16688 ax_pthread_flags="-pthread $ax_pthread_flags" 16689 ;; 16690esac 16691 16692# Clang doesn't consider unrecognized options an error unless we specify 16693# -Werror. We throw in some extra Clang-specific options to ensure that 16694# this doesn't happen for GCC, which also accepts -Werror. 16695 16696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 16697$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 16698save_CFLAGS="$CFLAGS" 16699ax_pthread_extra_flags="-Werror" 16700CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 16701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16702/* end confdefs.h. */ 16703int foo(void); 16704int 16705main () 16706{ 16707foo() 16708 ; 16709 return 0; 16710} 16711_ACEOF 16712if ac_fn_c_try_compile "$LINENO"; then : 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16714$as_echo "yes" >&6; } 16715else 16716 ax_pthread_extra_flags= 16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16718$as_echo "no" >&6; } 16719fi 16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16721CFLAGS="$save_CFLAGS" 16722 16723if test x"$ax_pthread_ok" = xno; then 16724for flag in $ax_pthread_flags; do 16725 16726 case $flag in 16727 none) 16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16729$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16730 ;; 16731 16732 -*) 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16734$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16735 PTHREAD_CFLAGS="$flag" 16736 ;; 16737 16738 pthread-config) 16739 # Extract the first word of "pthread-config", so it can be a program name with args. 16740set dummy pthread-config; ac_word=$2 16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16742$as_echo_n "checking for $ac_word... " >&6; } 16743if ${ac_cv_prog_ax_pthread_config+:} false; then : 16744 $as_echo_n "(cached) " >&6 16745else 16746 if test -n "$ax_pthread_config"; then 16747 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 16748else 16749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16750for as_dir in $PATH 16751do 16752 IFS=$as_save_IFS 16753 test -z "$as_dir" && as_dir=. 16754 for ac_exec_ext in '' $ac_executable_extensions; do 16755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16756 ac_cv_prog_ax_pthread_config="yes" 16757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16758 break 2 16759 fi 16760done 16761 done 16762IFS=$as_save_IFS 16763 16764 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 16765fi 16766fi 16767ax_pthread_config=$ac_cv_prog_ax_pthread_config 16768if test -n "$ax_pthread_config"; then 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 16770$as_echo "$ax_pthread_config" >&6; } 16771else 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16773$as_echo "no" >&6; } 16774fi 16775 16776 16777 if test x"$ax_pthread_config" = xno; then continue; fi 16778 PTHREAD_CFLAGS="`pthread-config --cflags`" 16779 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16780 ;; 16781 16782 *) 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16784$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16785 PTHREAD_LIBS="-l$flag" 16786 ;; 16787 esac 16788 16789 save_LIBS="$LIBS" 16790 save_CFLAGS="$CFLAGS" 16791 LIBS="$PTHREAD_LIBS $LIBS" 16792 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 16793 16794 # Check for various functions. We must include pthread.h, 16795 # since some functions may be macros. (On the Sequent, we 16796 # need a special flag -Kthread to make this header compile.) 16797 # We check for pthread_join because it is in -lpthread on IRIX 16798 # while pthread_create is in libc. We check for pthread_attr_init 16799 # due to DEC craziness with -lpthreads. We check for 16800 # pthread_cleanup_push because it is one of the few pthread 16801 # functions on Solaris that doesn't have a non-functional libc stub. 16802 # We try pthread_create on general principles. 16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16804/* end confdefs.h. */ 16805#include <pthread.h> 16806 static void routine(void *a) { *((int*)a) = 0; } 16807 static void *start_routine(void *a) { return a; } 16808int 16809main () 16810{ 16811pthread_t th; pthread_attr_t attr; 16812 pthread_create(&th, 0, start_routine, 0); 16813 pthread_join(th, 0); 16814 pthread_attr_init(&attr); 16815 pthread_cleanup_push(routine, 0); 16816 pthread_cleanup_pop(0) /* ; */ 16817 ; 16818 return 0; 16819} 16820_ACEOF 16821if ac_fn_c_try_link "$LINENO"; then : 16822 ax_pthread_ok=yes 16823fi 16824rm -f core conftest.err conftest.$ac_objext \ 16825 conftest$ac_exeext conftest.$ac_ext 16826 16827 LIBS="$save_LIBS" 16828 CFLAGS="$save_CFLAGS" 16829 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16831$as_echo "$ax_pthread_ok" >&6; } 16832 if test "x$ax_pthread_ok" = xyes; then 16833 break; 16834 fi 16835 16836 PTHREAD_LIBS="" 16837 PTHREAD_CFLAGS="" 16838done 16839fi 16840 16841# Various other checks: 16842if test "x$ax_pthread_ok" = xyes; then 16843 save_LIBS="$LIBS" 16844 LIBS="$PTHREAD_LIBS $LIBS" 16845 save_CFLAGS="$CFLAGS" 16846 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16847 16848 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16850$as_echo_n "checking for joinable pthread attribute... " >&6; } 16851 attr_name=unknown 16852 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16854/* end confdefs.h. */ 16855#include <pthread.h> 16856int 16857main () 16858{ 16859int attr = $attr; return attr /* ; */ 16860 ; 16861 return 0; 16862} 16863_ACEOF 16864if ac_fn_c_try_link "$LINENO"; then : 16865 attr_name=$attr; break 16866fi 16867rm -f core conftest.err conftest.$ac_objext \ 16868 conftest$ac_exeext conftest.$ac_ext 16869 done 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16871$as_echo "$attr_name" >&6; } 16872 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16873 16874cat >>confdefs.h <<_ACEOF 16875#define PTHREAD_CREATE_JOINABLE $attr_name 16876_ACEOF 16877 16878 fi 16879 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16881$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16882 flag=no 16883 case ${host_os} in 16884 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 16885 osf* | hpux*) flag="-D_REENTRANT";; 16886 solaris*) 16887 if test "$GCC" = "yes"; then 16888 flag="-D_REENTRANT" 16889 else 16890 # TODO: What about Clang on Solaris? 16891 flag="-mt -D_REENTRANT" 16892 fi 16893 ;; 16894 esac 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 16896$as_echo "$flag" >&6; } 16897 if test "x$flag" != xno; then 16898 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16899 fi 16900 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16902$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16903if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16904 $as_echo_n "(cached) " >&6 16905else 16906 16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16908/* end confdefs.h. */ 16909#include <pthread.h> 16910int 16911main () 16912{ 16913int i = PTHREAD_PRIO_INHERIT; 16914 ; 16915 return 0; 16916} 16917_ACEOF 16918if ac_fn_c_try_link "$LINENO"; then : 16919 ax_cv_PTHREAD_PRIO_INHERIT=yes 16920else 16921 ax_cv_PTHREAD_PRIO_INHERIT=no 16922fi 16923rm -f core conftest.err conftest.$ac_objext \ 16924 conftest$ac_exeext conftest.$ac_ext 16925 16926fi 16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16928$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16929 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 16930 16931$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16932 16933fi 16934 16935 LIBS="$save_LIBS" 16936 CFLAGS="$save_CFLAGS" 16937 16938 # More AIX lossage: compile with *_r variant 16939 if test "x$GCC" != xyes; then 16940 case $host_os in 16941 aix*) 16942 case "x/$CC" in #( 16943 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16944 #handle absolute path differently from PATH based program lookup 16945 case "x$CC" in #( 16946 x/*) : 16947 if as_fn_executable_p ${CC}_r; then : 16948 PTHREAD_CC="${CC}_r" 16949fi ;; #( 16950 *) : 16951 for ac_prog in ${CC}_r 16952do 16953 # Extract the first word of "$ac_prog", so it can be a program name with args. 16954set dummy $ac_prog; ac_word=$2 16955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16956$as_echo_n "checking for $ac_word... " >&6; } 16957if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16958 $as_echo_n "(cached) " >&6 16959else 16960 if test -n "$PTHREAD_CC"; then 16961 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16962else 16963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16964for as_dir in $PATH 16965do 16966 IFS=$as_save_IFS 16967 test -z "$as_dir" && as_dir=. 16968 for ac_exec_ext in '' $ac_executable_extensions; do 16969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16970 ac_cv_prog_PTHREAD_CC="$ac_prog" 16971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16972 break 2 16973 fi 16974done 16975 done 16976IFS=$as_save_IFS 16977 16978fi 16979fi 16980PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16981if test -n "$PTHREAD_CC"; then 16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16983$as_echo "$PTHREAD_CC" >&6; } 16984else 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16986$as_echo "no" >&6; } 16987fi 16988 16989 16990 test -n "$PTHREAD_CC" && break 16991done 16992test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16993 ;; 16994esac ;; #( 16995 *) : 16996 ;; 16997esac 16998 ;; 16999 esac 17000 fi 17001fi 17002 17003test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 17004 17005 17006 17007 17008 17009# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17010if test x"$ax_pthread_ok" = xyes; then 17011 17012 17013$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 17014 17015 if test -n "$PTHREAD_LIBS"; then 17016 LIBS="$PTHREAD_LIBS $LIBS" 17017 fi 17018 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17019 CC="$PTHREAD_CC" 17020 ub_have_pthreads=yes 17021 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 17022" 17023if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 17024 17025cat >>confdefs.h <<_ACEOF 17026#define HAVE_PTHREAD_SPINLOCK_T 1 17027_ACEOF 17028 17029 17030fi 17031ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 17032" 17033if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 17034 17035cat >>confdefs.h <<_ACEOF 17036#define HAVE_PTHREAD_RWLOCK_T 1 17037_ACEOF 17038 17039 17040fi 17041 17042 17043 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 17045$as_echo_n "checking if -pthread unused during linking... " >&6; } 17046 # catch clang warning 'argument unused during compilation' 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049$ac_includes_default 17050 17051int main(void) {return 0;} 17052 17053_ACEOF 17054 pthread_unused="yes" 17055 # first compile 17056 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 17057 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 17058 if test $? = 0; then 17059 # then link 17060 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 17061 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 17062 if test $? -ne 0; then 17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17064$as_echo "yes" >&6; } 17065 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 17066 PTHREAD_CFLAGS_ONLY="-pthread" 17067 17068 else 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17070$as_echo "no" >&6; } 17071 fi 17072 else 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17074$as_echo "no" >&6; } 17075 fi # endif cc successful 17076 rm -f conftest conftest.c conftest.o 17077 fi # endif -pthread in CFLAGS 17078 17079 17080 : 17081else 17082 ax_pthread_ok=no 17083 17084fi 17085ac_ext=c 17086ac_cpp='$CPP $CPPFLAGS' 17087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17089ac_compiler_gnu=$ac_cv_c_compiler_gnu 17090 17091 17092fi 17093 17094# check solaris thread library 17095 17096# Check whether --with-solaris-threads was given. 17097if test "${with_solaris_threads+set}" = set; then : 17098 withval=$with_solaris_threads; 17099else 17100 withval="no" 17101fi 17102 17103ub_have_sol_threads=no 17104if test x_$withval != x_no; then 17105 if test x_$ub_have_pthreads != x_no; then 17106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 17107$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 17108 else 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 17110$as_echo_n "checking for library containing thr_create... " >&6; } 17111if ${ac_cv_search_thr_create+:} false; then : 17112 $as_echo_n "(cached) " >&6 17113else 17114 ac_func_search_save_LIBS=$LIBS 17115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17116/* end confdefs.h. */ 17117 17118/* Override any GCC internal prototype to avoid an error. 17119 Use char because int might match the return type of a GCC 17120 builtin and then its argument prototype would still apply. */ 17121#ifdef __cplusplus 17122extern "C" 17123#endif 17124char thr_create (); 17125int 17126main () 17127{ 17128return thr_create (); 17129 ; 17130 return 0; 17131} 17132_ACEOF 17133for ac_lib in '' thread; do 17134 if test -z "$ac_lib"; then 17135 ac_res="none required" 17136 else 17137 ac_res=-l$ac_lib 17138 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17139 fi 17140 if ac_fn_c_try_link "$LINENO"; then : 17141 ac_cv_search_thr_create=$ac_res 17142fi 17143rm -f core conftest.err conftest.$ac_objext \ 17144 conftest$ac_exeext 17145 if ${ac_cv_search_thr_create+:} false; then : 17146 break 17147fi 17148done 17149if ${ac_cv_search_thr_create+:} false; then : 17150 17151else 17152 ac_cv_search_thr_create=no 17153fi 17154rm conftest.$ac_ext 17155LIBS=$ac_func_search_save_LIBS 17156fi 17157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 17158$as_echo "$ac_cv_search_thr_create" >&6; } 17159ac_res=$ac_cv_search_thr_create 17160if test "$ac_res" != no; then : 17161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17162 17163 17164$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 17165 17166 17167 17168 17169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 17170$as_echo_n "checking whether $CC supports -mt... " >&6; } 17171cache=`echo mt | sed 'y%.=/+-%___p_%'` 17172if eval \${cv_prog_cc_flag_$cache+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 17176echo 'void f(void){}' >conftest.c 17177if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 17178eval "cv_prog_cc_flag_$cache=yes" 17179else 17180eval "cv_prog_cc_flag_$cache=no" 17181fi 17182rm -f conftest conftest.o conftest.c 17183 17184fi 17185 17186if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 17187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17188$as_echo "yes" >&6; } 17189: 17190CFLAGS="$CFLAGS -mt" 17191else 17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17193$as_echo "no" >&6; } 17194: 17195CFLAGS="$CFLAGS -D_REENTRANT" 17196fi 17197 17198 ub_have_sol_threads=yes 17199 17200else 17201 17202 as_fn_error $? "no solaris threads found." "$LINENO" 5 17203 17204fi 17205 17206 fi 17207fi 17208 17209fi # end of non-mingw check of thread libraries 17210 17211# Check for SYSLOG_FACILITY 17212 17213# Check whether --with-syslog-facility was given. 17214if test "${with_syslog_facility+set}" = set; then : 17215 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 17216fi 17217 17218case "${UNBOUND_SYSLOG_FACILITY}" in 17219 17220 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 17221 17222 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 17223 17224esac 17225 17226cat >>confdefs.h <<_ACEOF 17227#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY} 17228_ACEOF 17229 17230 17231# Check for dynamic library module 17232 17233# Check whether --with-dynlibmodule was given. 17234if test "${with_dynlibmodule+set}" = set; then : 17235 withval=$with_dynlibmodule; 17236else 17237 withval="no" 17238fi 17239 17240 17241if test x_$withval != x_no; then 17242 17243$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h 17244 17245 WITH_DYNLIBMODULE=yes 17246 17247 DYNLIBMOD_OBJ="dynlibmod.lo" 17248 17249 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 17250 17251 if test $on_mingw = "no"; then 17252 # link with -ldl if not already there, for all executables because 17253 # dlopen call is in the dynlib module. For unbound executable, also 17254 # export symbols. 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 17256$as_echo_n "checking for library containing dlopen... " >&6; } 17257if ${ac_cv_search_dlopen+:} false; then : 17258 $as_echo_n "(cached) " >&6 17259else 17260 ac_func_search_save_LIBS=$LIBS 17261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17262/* end confdefs.h. */ 17263 17264/* Override any GCC internal prototype to avoid an error. 17265 Use char because int might match the return type of a GCC 17266 builtin and then its argument prototype would still apply. */ 17267#ifdef __cplusplus 17268extern "C" 17269#endif 17270char dlopen (); 17271int 17272main () 17273{ 17274return dlopen (); 17275 ; 17276 return 0; 17277} 17278_ACEOF 17279for ac_lib in '' dl; do 17280 if test -z "$ac_lib"; then 17281 ac_res="none required" 17282 else 17283 ac_res=-l$ac_lib 17284 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17285 fi 17286 if ac_fn_c_try_link "$LINENO"; then : 17287 ac_cv_search_dlopen=$ac_res 17288fi 17289rm -f core conftest.err conftest.$ac_objext \ 17290 conftest$ac_exeext 17291 if ${ac_cv_search_dlopen+:} false; then : 17292 break 17293fi 17294done 17295if ${ac_cv_search_dlopen+:} false; then : 17296 17297else 17298 ac_cv_search_dlopen=no 17299fi 17300rm conftest.$ac_ext 17301LIBS=$ac_func_search_save_LIBS 17302fi 17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 17304$as_echo "$ac_cv_search_dlopen" >&6; } 17305ac_res=$ac_cv_search_dlopen 17306if test "$ac_res" != no; then : 17307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17308 17309fi 17310 17311 DYNLIBMOD_EXTRALIBS="-export-dynamic" 17312 else 17313 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" 17314 fi 17315 17316fi 17317 17318# Check for PyUnbound 17319 17320# Check whether --with-pyunbound was given. 17321if test "${with_pyunbound+set}" = set; then : 17322 withval=$with_pyunbound; 17323else 17324 withval="no" 17325fi 17326 17327 17328ub_test_python=no 17329ub_with_pyunbound=no 17330if test x_$withval != x_no; then 17331 ub_with_pyunbound=yes 17332 ub_test_python=yes 17333fi 17334 17335# Check for Python module 17336 17337# Check whether --with-pythonmodule was given. 17338if test "${with_pythonmodule+set}" = set; then : 17339 withval=$with_pythonmodule; 17340else 17341 withval="no" 17342fi 17343 17344 17345ub_with_pythonmod=no 17346if test x_$withval != x_no; then 17347 ub_with_pythonmod=yes 17348 ub_test_python=yes 17349fi 17350 17351# Check for Python & SWIG only on PyUnbound or PyModule 17352if test x_$ub_test_python != x_no; then 17353 17354 # Check for Python 17355 ub_have_python=no 17356 ac_save_LIBS="$LIBS" 17357 # 17358 # Allow the use of a (user set) custom python version 17359 # 17360 17361 17362 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 17363set dummy python$PYTHON_VERSION; ac_word=$2 17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17365$as_echo_n "checking for $ac_word... " >&6; } 17366if ${ac_cv_path_PYTHON+:} false; then : 17367 $as_echo_n "(cached) " >&6 17368else 17369 case $PYTHON in 17370 [\\/]* | ?:[\\/]*) 17371 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 17372 ;; 17373 *) 17374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17375for as_dir in $PATH 17376do 17377 IFS=$as_save_IFS 17378 test -z "$as_dir" && as_dir=. 17379 for ac_exec_ext in '' $ac_executable_extensions; do 17380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17381 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 17382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17383 break 2 17384 fi 17385done 17386 done 17387IFS=$as_save_IFS 17388 17389 ;; 17390esac 17391fi 17392PYTHON=$ac_cv_path_PYTHON 17393if test -n "$PYTHON"; then 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 17395$as_echo "$PYTHON" >&6; } 17396else 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17398$as_echo "no" >&6; } 17399fi 17400 17401 17402 if test -z "$PYTHON"; then 17403 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 17404 PYTHON_VERSION="" 17405 fi 17406 17407 if test -z "$PYTHON_VERSION"; then 17408 PYTHON_VERSION=`$PYTHON -c "import sys; \ 17409 print(sys.version.split()[0])"` 17410 fi 17411 17412 # 17413 # Check if you have distutils, else fail 17414 # 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 17416$as_echo_n "checking for the distutils Python package... " >&6; } 17417 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17419$as_echo "yes" >&6; } 17420 else 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17422$as_echo "no" >&6; } 17423 as_fn_error $? "cannot import Python module \"distutils\". 17424Please check your Python installation. The error was: 17425$ac_distutils_result" "$LINENO" 5 17426 PYTHON_VERSION="" 17427 fi 17428 17429 # 17430 # Check for Python include path 17431 # 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 17433$as_echo_n "checking for Python include path... " >&6; } 17434 if test -z "$PYTHON_CPPFLAGS"; then 17435 python_path=`$PYTHON -c "import distutils.sysconfig; \ 17436 print(distutils.sysconfig.get_python_inc());"` 17437 if test -n "${python_path}"; then 17438 python_path="-I$python_path" 17439 fi 17440 PYTHON_CPPFLAGS=$python_path 17441 fi 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 17443$as_echo "$PYTHON_CPPFLAGS" >&6; } 17444 17445 17446 # 17447 # Check for Python library path 17448 # 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 17450$as_echo_n "checking for Python library path... " >&6; } 17451 if test -z "$PYTHON_LDFLAGS"; then 17452 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 17453 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 17454 fi 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 17456$as_echo "$PYTHON_LDFLAGS" >&6; } 17457 17458 17459 if test -z "$PYTHON_LIBDIR"; then 17460 PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \ 17461 print(get_config_var('LIBDIR'));"` 17462 fi 17463 17464 # 17465 # Check for site packages 17466 # 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 17468$as_echo_n "checking for Python site-packages path... " >&6; } 17469 if test -z "$PYTHON_SITE_PKG"; then 17470 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 17471 print(distutils.sysconfig.get_python_lib(1,0));"` 17472 fi 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 17474$as_echo "$PYTHON_SITE_PKG" >&6; } 17475 17476 17477 # 17478 # final check to see if everything compiles alright 17479 # 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 17481$as_echo_n "checking consistency of all components of python development environment... " >&6; } 17482 ac_ext=c 17483ac_cpp='$CPP $CPPFLAGS' 17484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17486ac_compiler_gnu=$ac_cv_c_compiler_gnu 17487 17488 # save current global flags 17489 ac_save_LIBS="$LIBS" 17490 ac_save_CPPFLAGS="$CPPFLAGS" 17491 17492 LIBS="$LIBS $PYTHON_LDFLAGS" 17493 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17495/* end confdefs.h. */ 17496 17497 #include <Python.h> 17498 17499int 17500main () 17501{ 17502 17503 Py_Initialize(); 17504 17505 ; 17506 return 0; 17507} 17508_ACEOF 17509if ac_fn_c_try_link "$LINENO"; then : 17510 pythonexists=yes 17511else 17512 pythonexists=no 17513fi 17514rm -f core conftest.err conftest.$ac_objext \ 17515 conftest$ac_exeext conftest.$ac_ext 17516 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 17518$as_echo "$pythonexists" >&6; } 17519 17520 if test ! "$pythonexists" = "yes"; then 17521 as_fn_error $? " 17522 Could not link test program to Python. Maybe the main Python library has been 17523 installed in some non-standard library path. If so, pass it to configure, 17524 via the LDFLAGS environment variable. 17525 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 17526 ============================================================================ 17527 ERROR! 17528 You probably have to install the development version of the Python package 17529 for your distribution. The exact name of this package varies among them. 17530 ============================================================================ 17531 " "$LINENO" 5 17532 PYTHON_VERSION="" 17533 fi 17534 ac_ext=c 17535ac_cpp='$CPP $CPPFLAGS' 17536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17538ac_compiler_gnu=$ac_cv_c_compiler_gnu 17539 17540 # turn back to default flags 17541 CPPFLAGS="$ac_save_CPPFLAGS" 17542 LIBS="$ac_save_LIBS" 17543 17544 # 17545 # all done! 17546 # 17547 17548 if test ! -z "$PYTHON_VERSION"; then 17549 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 17550 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 17551 fi 17552 17553 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 17554 17555 # Have Python 17556 17557$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 17558 17559 if test x_$ub_with_pythonmod != x_no; then 17560 if test -n "$LIBS"; then 17561 LIBS="$PYTHON_LDFLAGS $LIBS" 17562 else 17563 LIBS="$PYTHON_LDFLAGS" 17564 fi 17565 fi 17566 PYTHON_LIBS="$PYTHON_LDFLAGS" 17567 17568 if test -n "$CPPFLAGS"; then 17569 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17570 else 17571 CPPFLAGS="$PYTHON_CPPFLAGS" 17572 fi 17573 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 17574 17575 if test "x$enable_rpath" = xyes; then 17576 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 17577 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 17578 fi 17579 fi 17580 17581 fi 17582 ub_have_python=yes 17583 if test -n "$PKG_CONFIG" && \ 17584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 17585 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 17586 ac_status=$? 17587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17588 test $ac_status = 0; }; then 17589 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 17590else 17591 PC_PY_DEPENDENCY="python" 17592fi 17593 17594 17595 # Check for SWIG 17596 ub_have_swig=no 17597 # Check whether --enable-swig-version-check was given. 17598if test "${enable_swig_version_check+set}" = set; then : 17599 enableval=$enable_swig_version_check; 17600fi 17601 17602 if test "$enable_swig_version_check" = "yes"; then 17603 17604 # Extract the first word of "swig", so it can be a program name with args. 17605set dummy swig; ac_word=$2 17606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17607$as_echo_n "checking for $ac_word... " >&6; } 17608if ${ac_cv_path_SWIG+:} false; then : 17609 $as_echo_n "(cached) " >&6 17610else 17611 case $SWIG in 17612 [\\/]* | ?:[\\/]*) 17613 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17614 ;; 17615 *) 17616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17617for as_dir in $PATH 17618do 17619 IFS=$as_save_IFS 17620 test -z "$as_dir" && as_dir=. 17621 for ac_exec_ext in '' $ac_executable_extensions; do 17622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17623 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17625 break 2 17626 fi 17627done 17628 done 17629IFS=$as_save_IFS 17630 17631 ;; 17632esac 17633fi 17634SWIG=$ac_cv_path_SWIG 17635if test -n "$SWIG"; then 17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17637$as_echo "$SWIG" >&6; } 17638else 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17640$as_echo "no" >&6; } 17641fi 17642 17643 17644 if test -z "$SWIG" ; then 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17646$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17647 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17648 elif test -n "2.0.1" ; then 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17650$as_echo_n "checking for SWIG version... " >&6; } 17651 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17653$as_echo "$swig_version" >&6; } 17654 if test -n "$swig_version" ; then 17655 # Calculate the required version number components 17656 required=2.0.1 17657 required_major=`echo $required | sed 's/[^0-9].*//'` 17658 if test -z "$required_major" ; then 17659 required_major=0 17660 fi 17661 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17662 required_minor=`echo $required | sed 's/[^0-9].*//'` 17663 if test -z "$required_minor" ; then 17664 required_minor=0 17665 fi 17666 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17667 required_patch=`echo $required | sed 's/[^0-9].*//'` 17668 if test -z "$required_patch" ; then 17669 required_patch=0 17670 fi 17671 # Calculate the available version number components 17672 available=$swig_version 17673 available_major=`echo $available | sed 's/[^0-9].*//'` 17674 if test -z "$available_major" ; then 17675 available_major=0 17676 fi 17677 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17678 available_minor=`echo $available | sed 's/[^0-9].*//'` 17679 if test -z "$available_minor" ; then 17680 available_minor=0 17681 fi 17682 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17683 available_patch=`echo $available | sed 's/[^0-9].*//'` 17684 if test -z "$available_patch" ; then 17685 available_patch=0 17686 fi 17687 badversion=0 17688 if test $available_major -lt $required_major ; then 17689 badversion=1 17690 fi 17691 if test $available_major -eq $required_major \ 17692 -a $available_minor -lt $required_minor ; then 17693 badversion=1 17694 fi 17695 if test $available_major -eq $required_major \ 17696 -a $available_minor -eq $required_minor \ 17697 -a $available_patch -lt $required_patch ; then 17698 badversion=1 17699 fi 17700 if test $badversion -eq 1 ; then 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&5 17702$as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17703 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17704 else 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17706$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17707 SWIG_LIB=`$SWIG -swiglib` 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17709$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17710 fi 17711 else 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17713$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17714 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17715 fi 17716 fi 17717 17718 17719 else 17720 17721 # Extract the first word of "swig", so it can be a program name with args. 17722set dummy swig; ac_word=$2 17723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17724$as_echo_n "checking for $ac_word... " >&6; } 17725if ${ac_cv_path_SWIG+:} false; then : 17726 $as_echo_n "(cached) " >&6 17727else 17728 case $SWIG in 17729 [\\/]* | ?:[\\/]*) 17730 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17731 ;; 17732 *) 17733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17734for as_dir in $PATH 17735do 17736 IFS=$as_save_IFS 17737 test -z "$as_dir" && as_dir=. 17738 for ac_exec_ext in '' $ac_executable_extensions; do 17739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17740 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17742 break 2 17743 fi 17744done 17745 done 17746IFS=$as_save_IFS 17747 17748 ;; 17749esac 17750fi 17751SWIG=$ac_cv_path_SWIG 17752if test -n "$SWIG"; then 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17754$as_echo "$SWIG" >&6; } 17755else 17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17757$as_echo "no" >&6; } 17758fi 17759 17760 17761 if test -z "$SWIG" ; then 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17763$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17764 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17765 elif test -n "" ; then 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17767$as_echo_n "checking for SWIG version... " >&6; } 17768 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17770$as_echo "$swig_version" >&6; } 17771 if test -n "$swig_version" ; then 17772 # Calculate the required version number components 17773 required= 17774 required_major=`echo $required | sed 's/[^0-9].*//'` 17775 if test -z "$required_major" ; then 17776 required_major=0 17777 fi 17778 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17779 required_minor=`echo $required | sed 's/[^0-9].*//'` 17780 if test -z "$required_minor" ; then 17781 required_minor=0 17782 fi 17783 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17784 required_patch=`echo $required | sed 's/[^0-9].*//'` 17785 if test -z "$required_patch" ; then 17786 required_patch=0 17787 fi 17788 # Calculate the available version number components 17789 available=$swig_version 17790 available_major=`echo $available | sed 's/[^0-9].*//'` 17791 if test -z "$available_major" ; then 17792 available_major=0 17793 fi 17794 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17795 available_minor=`echo $available | sed 's/[^0-9].*//'` 17796 if test -z "$available_minor" ; then 17797 available_minor=0 17798 fi 17799 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17800 available_patch=`echo $available | sed 's/[^0-9].*//'` 17801 if test -z "$available_patch" ; then 17802 available_patch=0 17803 fi 17804 badversion=0 17805 if test $available_major -lt $required_major ; then 17806 badversion=1 17807 fi 17808 if test $available_major -eq $required_major \ 17809 -a $available_minor -lt $required_minor ; then 17810 badversion=1 17811 fi 17812 if test $available_major -eq $required_major \ 17813 -a $available_minor -eq $required_minor \ 17814 -a $available_patch -lt $required_patch ; then 17815 badversion=1 17816 fi 17817 if test $badversion -eq 1 ; then 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5 17819$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17820 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17821 else 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17823$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17824 SWIG_LIB=`$SWIG -swiglib` 17825 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17826$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17827 fi 17828 else 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17830$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17831 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17832 fi 17833 fi 17834 17835 17836 fi 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 17838$as_echo_n "checking SWIG... " >&6; } 17839 if test ! -x "$SWIG"; then 17840 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 17841 else 17842 17843$as_echo "#define HAVE_SWIG 1" >>confdefs.h 17844 17845 swig="$SWIG" 17846 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 17848$as_echo "present" >&6; } 17849 17850 # If have Python & SWIG 17851 # Declare PythonMod 17852 if test x_$ub_with_pythonmod != x_no; then 17853 17854$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 17855 17856 WITH_PYTHONMODULE=yes 17857 17858 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 17859 17860 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 17861 17862 PYTHONMOD_INSTALL=pythonmod-install 17863 17864 PYTHONMOD_UNINSTALL=pythonmod-uninstall 17865 17866 fi 17867 17868 # Declare PyUnbound 17869 if test x_$ub_with_pyunbound != x_no; then 17870 17871$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 17872 17873 WITH_PYUNBOUND=yes 17874 17875 PYUNBOUND_OBJ="libunbound_wrap.lo" 17876 17877 PYUNBOUND_TARGET="_unbound.la" 17878 17879 PYUNBOUND_INSTALL=pyunbound-install 17880 17881 PYUNBOUND_UNINSTALL=pyunbound-uninstall 17882 17883 fi 17884 fi 17885 else 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 17887$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 17888 ub_with_pyunbound=no 17889 ub_with_pythonmod=no 17890 fi 17891fi 17892 17893if test "`uname`" = "NetBSD"; then 17894 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 17895 17896fi 17897 17898if test "`uname -o`" = "GNU/Linux"; then 17899 # splint cannot parse modern c99 header files 17900 GCC_DOCKER_LINTFLAGS='-syntax' 17901 17902fi 17903CONFIG_DATE=`date +%Y%m%d` 17904 17905 17906# Checks for libraries. 17907 17908# libnss 17909USE_NSS="no" 17910 17911# Check whether --with-nss was given. 17912if test "${with_nss+set}" = set; then : 17913 withval=$with_nss; 17914 USE_NSS="yes" 17915 17916$as_echo "#define HAVE_NSS 1" >>confdefs.h 17917 17918 if test "$withval" != "" -a "$withval" != "yes"; then 17919 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 17920 LDFLAGS="$LDFLAGS -L$withval/lib" 17921 17922 if test "x$enable_rpath" = xyes; then 17923 if echo "$withval/lib" | grep "^/" >/dev/null; then 17924 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17925 fi 17926 fi 17927 17928 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 17929 else 17930 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 17931 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 17932 fi 17933 LIBS="$LIBS -lnss3 -lnspr4" 17934 SSLLIB="" 17935 PC_CRYPTO_DEPENDENCY="nss nspr" 17936 17937 17938 17939fi 17940 17941 17942# libnettle 17943USE_NETTLE="no" 17944 17945# Check whether --with-nettle was given. 17946if test "${with_nettle+set}" = set; then : 17947 withval=$with_nettle; 17948 USE_NETTLE="yes" 17949 17950$as_echo "#define HAVE_NETTLE 1" >>confdefs.h 17951 17952 for ac_header in nettle/dsa-compat.h 17953do : 17954 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 17955" 17956if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then : 17957 cat >>confdefs.h <<_ACEOF 17958#define HAVE_NETTLE_DSA_COMPAT_H 1 17959_ACEOF 17960 17961fi 17962 17963done 17964 17965 if test "$withval" != "" -a "$withval" != "yes"; then 17966 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 17967 LDFLAGS="$LDFLAGS -L$withval/lib" 17968 17969 if test "x$enable_rpath" = xyes; then 17970 if echo "$withval/lib" | grep "^/" >/dev/null; then 17971 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17972 fi 17973 fi 17974 17975 else 17976 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 17977 fi 17978 LIBS="$LIBS -lhogweed -lnettle -lgmp" 17979 SSLLIB="" 17980 PC_CRYPTO_DEPENDENCY="hogweed nettle" 17981 17982 17983 17984fi 17985 17986 17987# openssl 17988if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 17989 17990 17991# Check whether --with-ssl was given. 17992if test "${with_ssl+set}" = set; then : 17993 withval=$with_ssl; 17994 17995else 17996 17997 withval="yes" 17998 17999fi 18000 18001 if test x_$withval = x_no; then 18002 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 18003 fi 18004 18005 withval=$withval 18006 if test x_$withval != x_no; then 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 18008$as_echo_n "checking for SSL... " >&6; } 18009 if test -n "$withval"; then 18010 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 18011 ssldir="$withval" 18012 found_ssl="yes" 18013 withval="" 18014 ssldir_include="$ssldir" 18015 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 18016 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 18017 : # found here 18018 else 18019 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 18020 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 18021 : # found here 18022 else 18023 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 18024 fi 18025 fi 18026 fi 18027 fi 18028 if test x_$withval = x_ -o x_$withval = x_yes; then 18029 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 18030 fi 18031 for dir in $withval; do 18032 ssldir="$dir" 18033 if test -f "$dir/include/openssl/ssl.h"; then 18034 found_ssl="yes" 18035 ssldir_include="$ssldir/include" 18036 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 18037 ssldir_lib="$ssldir/lib64" 18038 else 18039 ssldir_lib="$ssldir/lib" 18040 fi 18041 break; 18042 fi 18043 done 18044 if test x_$found_ssl != x_yes; then 18045 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 18046 else 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 18048$as_echo "found in $ssldir" >&6; } 18049 18050cat >>confdefs.h <<_ACEOF 18051#define HAVE_SSL /**/ 18052_ACEOF 18053 18054 HAVE_SSL=yes 18055 if test "$ssldir" != "/usr"; then 18056 CPPFLAGS="$CPPFLAGS -I$ssldir_include" 18057 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include" 18058 LDFLAGS="$LDFLAGS -L$ssldir_lib" 18059 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib" 18060 18061 if test "x$enable_rpath" = xyes; then 18062 if echo "$ssldir_lib" | grep "^/" >/dev/null; then 18063 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib" 18064 fi 18065 fi 18066 18067 fi 18068 18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 18070$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; } 18071 LIBS="$LIBS -lcrypto" 18072 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18074/* end confdefs.h. */ 18075 18076int 18077main () 18078{ 18079 18080 int EVP_sha256(void); 18081 (void)EVP_sha256(); 18082 18083 ; 18084 return 0; 18085} 18086_ACEOF 18087if ac_fn_c_try_link "$LINENO"; then : 18088 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18090$as_echo "yes" >&6; } 18091 18092$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18093 18094 18095else 18096 18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18098$as_echo "no" >&6; } 18099 # check if -lwsock32 or -lgdi32 are needed. 18100 BAKLIBS="$LIBS" 18101 BAKSSLLIBS="$LIBSSL_LIBS" 18102 LIBS="$LIBS -lgdi32 -lws2_32" 18103 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 18105$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18107/* end confdefs.h. */ 18108 18109int 18110main () 18111{ 18112 18113 int EVP_sha256(void); 18114 (void)EVP_sha256(); 18115 18116 ; 18117 return 0; 18118} 18119_ACEOF 18120if ac_fn_c_try_link "$LINENO"; then : 18121 18122 18123$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18124 18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18126$as_echo "yes" >&6; } 18127 18128else 18129 18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18131$as_echo "no" >&6; } 18132 LIBS="$BAKLIBS" 18133 LIBSSL_LIBS="$BAKSSLLIBS" 18134 LIBS="$LIBS -ldl" 18135 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 18137$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18139/* end confdefs.h. */ 18140 18141int 18142main () 18143{ 18144 18145 int EVP_sha256(void); 18146 (void)EVP_sha256(); 18147 18148 ; 18149 return 0; 18150} 18151_ACEOF 18152if ac_fn_c_try_link "$LINENO"; then : 18153 18154 18155$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18156 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18158$as_echo "yes" >&6; } 18159 18160else 18161 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18163$as_echo "no" >&6; } 18164 LIBS="$BAKLIBS" 18165 LIBSSL_LIBS="$BAKSSLLIBS" 18166 LIBS="$LIBS -ldl -pthread" 18167 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 18169$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; } 18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18171/* end confdefs.h. */ 18172 18173int 18174main () 18175{ 18176 18177 int EVP_sha256(void); 18178 (void)EVP_sha256(); 18179 18180 ; 18181 return 0; 18182} 18183_ACEOF 18184if ac_fn_c_try_link "$LINENO"; then : 18185 18186 18187$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18188 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18190$as_echo "yes" >&6; } 18191 18192else 18193 18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18195$as_echo "no" >&6; } 18196 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 18197 18198fi 18199rm -f core conftest.err conftest.$ac_objext \ 18200 conftest$ac_exeext conftest.$ac_ext 18201 18202fi 18203rm -f core conftest.err conftest.$ac_objext \ 18204 conftest$ac_exeext conftest.$ac_ext 18205 18206fi 18207rm -f core conftest.err conftest.$ac_objext \ 18208 conftest$ac_exeext conftest.$ac_ext 18209 18210fi 18211rm -f core conftest.err conftest.$ac_objext \ 18212 conftest$ac_exeext conftest.$ac_ext 18213 fi 18214 18215 18216 fi 18217for ac_header in openssl/ssl.h 18218do : 18219 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 18220" 18221if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 18222 cat >>confdefs.h <<_ACEOF 18223#define HAVE_OPENSSL_SSL_H 1 18224_ACEOF 18225 18226fi 18227 18228done 18229 18230for ac_header in openssl/err.h 18231do : 18232 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 18233" 18234if test "x$ac_cv_header_openssl_err_h" = xyes; then : 18235 cat >>confdefs.h <<_ACEOF 18236#define HAVE_OPENSSL_ERR_H 1 18237_ACEOF 18238 18239fi 18240 18241done 18242 18243for ac_header in openssl/rand.h 18244do : 18245 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 18246" 18247if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 18248 cat >>confdefs.h <<_ACEOF 18249#define HAVE_OPENSSL_RAND_H 1 18250_ACEOF 18251 18252fi 18253 18254done 18255 18256 18257 18258 18259# check if libssl needs libdl 18260BAKLIBS="$LIBS" 18261LIBS="-lssl $LIBS" 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 18263$as_echo_n "checking if libssl needs libdl... " >&6; } 18264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18265/* end confdefs.h. */ 18266 18267/* Override any GCC internal prototype to avoid an error. 18268 Use char because int might match the return type of a GCC 18269 builtin and then its argument prototype would still apply. */ 18270#ifdef __cplusplus 18271extern "C" 18272#endif 18273char SSL_CTX_new (); 18274int 18275main () 18276{ 18277return SSL_CTX_new (); 18278 ; 18279 return 0; 18280} 18281_ACEOF 18282if ac_fn_c_try_link "$LINENO"; then : 18283 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18285$as_echo "no" >&6; } 18286 LIBS="$BAKLIBS" 18287 18288else 18289 18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18291$as_echo "yes" >&6; } 18292 LIBS="$BAKLIBS" 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18294$as_echo_n "checking for library containing dlopen... " >&6; } 18295if ${ac_cv_search_dlopen+:} false; then : 18296 $as_echo_n "(cached) " >&6 18297else 18298 ac_func_search_save_LIBS=$LIBS 18299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18300/* end confdefs.h. */ 18301 18302/* Override any GCC internal prototype to avoid an error. 18303 Use char because int might match the return type of a GCC 18304 builtin and then its argument prototype would still apply. */ 18305#ifdef __cplusplus 18306extern "C" 18307#endif 18308char dlopen (); 18309int 18310main () 18311{ 18312return dlopen (); 18313 ; 18314 return 0; 18315} 18316_ACEOF 18317for ac_lib in '' dl; do 18318 if test -z "$ac_lib"; then 18319 ac_res="none required" 18320 else 18321 ac_res=-l$ac_lib 18322 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18323 fi 18324 if ac_fn_c_try_link "$LINENO"; then : 18325 ac_cv_search_dlopen=$ac_res 18326fi 18327rm -f core conftest.err conftest.$ac_objext \ 18328 conftest$ac_exeext 18329 if ${ac_cv_search_dlopen+:} false; then : 18330 break 18331fi 18332done 18333if ${ac_cv_search_dlopen+:} false; then : 18334 18335else 18336 ac_cv_search_dlopen=no 18337fi 18338rm conftest.$ac_ext 18339LIBS=$ac_func_search_save_LIBS 18340fi 18341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18342$as_echo "$ac_cv_search_dlopen" >&6; } 18343ac_res=$ac_cv_search_dlopen 18344if test "$ac_res" != no; then : 18345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18346 18347fi 18348 18349 18350fi 18351rm -f core conftest.err conftest.$ac_objext \ 18352 conftest$ac_exeext conftest.$ac_ext 18353SSLLIB="-lssl" 18354 18355PC_CRYPTO_DEPENDENCY="" 18356 18357 18358# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 18359BAKLIBS="$LIBS" 18360LIBS="-lssl $LIBS" 18361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 18362$as_echo_n "checking if libssl needs -lcrypt32... " >&6; } 18363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18364/* end confdefs.h. */ 18365 18366int 18367main () 18368{ 18369 18370 int EVP_sha256(void); 18371 (void)EVP_sha256(); 18372 18373 ; 18374 return 0; 18375} 18376_ACEOF 18377if ac_fn_c_try_link "$LINENO"; then : 18378 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18380$as_echo "no" >&6; } 18381 LIBS="$BAKLIBS" 18382 18383else 18384 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18386$as_echo "yes" >&6; } 18387 LIBS="$BAKLIBS" 18388 LIBS="$LIBS -lcrypt32" 18389 18390fi 18391rm -f core conftest.err conftest.$ac_objext \ 18392 conftest$ac_exeext conftest.$ac_ext 18393 18394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 18395$as_echo_n "checking for LibreSSL... " >&6; } 18396if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18398$as_echo "yes" >&6; } 18399 18400$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 18401 18402 # libressl provides these compat functions, but they may also be 18403 # declared by the OS in libc. See if they have been declared. 18404 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 18405if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 18406 ac_have_decl=1 18407else 18408 ac_have_decl=0 18409fi 18410 18411cat >>confdefs.h <<_ACEOF 18412#define HAVE_DECL_STRLCPY $ac_have_decl 18413_ACEOF 18414ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 18415if test "x$ac_cv_have_decl_strlcat" = xyes; then : 18416 ac_have_decl=1 18417else 18418 ac_have_decl=0 18419fi 18420 18421cat >>confdefs.h <<_ACEOF 18422#define HAVE_DECL_STRLCAT $ac_have_decl 18423_ACEOF 18424ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 18425if test "x$ac_cv_have_decl_arc4random" = xyes; then : 18426 ac_have_decl=1 18427else 18428 ac_have_decl=0 18429fi 18430 18431cat >>confdefs.h <<_ACEOF 18432#define HAVE_DECL_ARC4RANDOM $ac_have_decl 18433_ACEOF 18434ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 18435if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 18436 ac_have_decl=1 18437else 18438 ac_have_decl=0 18439fi 18440 18441cat >>confdefs.h <<_ACEOF 18442#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 18443_ACEOF 18444 18445else 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18447$as_echo "no" >&6; } 18448fi 18449for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h openssl/param_build.h 18450do : 18451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18452ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18453" 18454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18455 cat >>confdefs.h <<_ACEOF 18456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18457_ACEOF 18458 18459fi 18460 18461done 18462 18463for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params OSSL_PARAM_BLD_new BIO_set_callback_ex 18464do : 18465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18466ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18467if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18468 cat >>confdefs.h <<_ACEOF 18469#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18470_ACEOF 18471 18472fi 18473done 18474 18475 18476# these check_funcs need -lssl 18477BAKLIBS="$LIBS" 18478LIBS="-lssl $LIBS" 18479for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate 18480do : 18481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18482ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18483if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18484 cat >>confdefs.h <<_ACEOF 18485#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18486_ACEOF 18487 18488fi 18489done 18490 18491LIBS="$BAKLIBS" 18492 18493ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 18494$ac_includes_default 18495#ifdef HAVE_OPENSSL_ERR_H 18496#include <openssl/err.h> 18497#endif 18498 18499#ifdef HAVE_OPENSSL_RAND_H 18500#include <openssl/rand.h> 18501#endif 18502 18503#ifdef HAVE_OPENSSL_CONF_H 18504#include <openssl/conf.h> 18505#endif 18506 18507#ifdef HAVE_OPENSSL_ENGINE_H 18508#include <openssl/engine.h> 18509#endif 18510#include <openssl/ssl.h> 18511#include <openssl/evp.h> 18512 18513" 18514if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 18515 ac_have_decl=1 18516else 18517 ac_have_decl=0 18518fi 18519 18520cat >>confdefs.h <<_ACEOF 18521#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 18522_ACEOF 18523ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 18524$ac_includes_default 18525#ifdef HAVE_OPENSSL_ERR_H 18526#include <openssl/err.h> 18527#endif 18528 18529#ifdef HAVE_OPENSSL_RAND_H 18530#include <openssl/rand.h> 18531#endif 18532 18533#ifdef HAVE_OPENSSL_CONF_H 18534#include <openssl/conf.h> 18535#endif 18536 18537#ifdef HAVE_OPENSSL_ENGINE_H 18538#include <openssl/engine.h> 18539#endif 18540#include <openssl/ssl.h> 18541#include <openssl/evp.h> 18542 18543" 18544if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 18545 ac_have_decl=1 18546else 18547 ac_have_decl=0 18548fi 18549 18550cat >>confdefs.h <<_ACEOF 18551#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 18552_ACEOF 18553ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 18554$ac_includes_default 18555#ifdef HAVE_OPENSSL_ERR_H 18556#include <openssl/err.h> 18557#endif 18558 18559#ifdef HAVE_OPENSSL_RAND_H 18560#include <openssl/rand.h> 18561#endif 18562 18563#ifdef HAVE_OPENSSL_CONF_H 18564#include <openssl/conf.h> 18565#endif 18566 18567#ifdef HAVE_OPENSSL_ENGINE_H 18568#include <openssl/engine.h> 18569#endif 18570#include <openssl/ssl.h> 18571#include <openssl/evp.h> 18572 18573" 18574if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 18575 ac_have_decl=1 18576else 18577 ac_have_decl=0 18578fi 18579 18580cat >>confdefs.h <<_ACEOF 18581#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 18582_ACEOF 18583 18584 18585if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 18586# check function return type. 18587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 18588$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; } 18589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18590/* end confdefs.h. */ 18591 18592#ifdef HAVE_OPENSSL_ERR_H 18593#include <openssl/err.h> 18594#endif 18595 18596#ifdef HAVE_OPENSSL_RAND_H 18597#include <openssl/rand.h> 18598#endif 18599 18600#ifdef HAVE_OPENSSL_CONF_H 18601#include <openssl/conf.h> 18602#endif 18603 18604#ifdef HAVE_OPENSSL_ENGINE_H 18605#include <openssl/engine.h> 18606#endif 18607#include <openssl/ssl.h> 18608#include <openssl/evp.h> 18609 18610int 18611main () 18612{ 18613 18614 HMAC_CTX* hmac_ctx = NULL; 18615 void* hmac_key = NULL; 18616 const EVP_MD* digest = NULL; 18617 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 18618 (void)x; 18619 18620 ; 18621 return 0; 18622} 18623_ACEOF 18624if ac_fn_c_try_compile "$LINENO"; then : 18625 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 18627$as_echo "int" >&6; } 18628 18629else 18630 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 18632$as_echo "void" >&6; } 18633 18634$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 18635 18636 18637fi 18638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18639fi 18640 18641fi 18642 18643 18644# libbsd 18645 18646# Check whether --with-libbsd was given. 18647if test "${with_libbsd+set}" = set; then : 18648 withval=$with_libbsd; 18649 for ac_header in bsd/string.h bsd/stdlib.h 18650do : 18651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18652ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18653" 18654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18655 cat >>confdefs.h <<_ACEOF 18656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18657_ACEOF 18658 18659fi 18660 18661done 18662 18663 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 18664 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 18665 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh` 18666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 18667$as_echo_n "checking for library containing $func... " >&6; } 18668if eval \${$as_ac_Search+:} false; then : 18669 $as_echo_n "(cached) " >&6 18670else 18671 ac_func_search_save_LIBS=$LIBS 18672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18673/* end confdefs.h. */ 18674 18675/* Override any GCC internal prototype to avoid an error. 18676 Use char because int might match the return type of a GCC 18677 builtin and then its argument prototype would still apply. */ 18678#ifdef __cplusplus 18679extern "C" 18680#endif 18681char $func (); 18682int 18683main () 18684{ 18685return $func (); 18686 ; 18687 return 0; 18688} 18689_ACEOF 18690for ac_lib in '' bsd; do 18691 if test -z "$ac_lib"; then 18692 ac_res="none required" 18693 else 18694 ac_res=-l$ac_lib 18695 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18696 fi 18697 if ac_fn_c_try_link "$LINENO"; then : 18698 eval "$as_ac_Search=\$ac_res" 18699fi 18700rm -f core conftest.err conftest.$ac_objext \ 18701 conftest$ac_exeext 18702 if eval \${$as_ac_Search+:} false; then : 18703 break 18704fi 18705done 18706if eval \${$as_ac_Search+:} false; then : 18707 18708else 18709 eval "$as_ac_Search=no" 18710fi 18711rm conftest.$ac_ext 18712LIBS=$ac_func_search_save_LIBS 18713fi 18714eval ac_res=\$$as_ac_Search 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18716$as_echo "$ac_res" >&6; } 18717eval ac_res=\$$as_ac_Search 18718if test "$ac_res" != no; then : 18719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18720 18721 18722$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h 18723 18724 PC_LIBBSD_DEPENDENCY=libbsd 18725 18726 18727fi 18728 18729 done 18730 fi 18731 18732fi 18733 18734 18735# Check whether --enable-sha1 was given. 18736if test "${enable_sha1+set}" = set; then : 18737 enableval=$enable_sha1; 18738fi 18739 18740case "$enable_sha1" in 18741 no) 18742 ;; 18743 yes|*) 18744 18745$as_echo "#define USE_SHA1 1" >>confdefs.h 18746 18747 ;; 18748esac 18749 18750 18751# Check whether --enable-sha2 was given. 18752if test "${enable_sha2+set}" = set; then : 18753 enableval=$enable_sha2; 18754fi 18755 18756case "$enable_sha2" in 18757 no) 18758 ;; 18759 yes|*) 18760 18761$as_echo "#define USE_SHA2 1" >>confdefs.h 18762 18763 ;; 18764esac 18765 18766# Check whether --enable-subnet was given. 18767if test "${enable_subnet+set}" = set; then : 18768 enableval=$enable_subnet; 18769fi 18770 18771case "$enable_subnet" in 18772 yes) 18773 18774$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h 18775 18776 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 18777 18778 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 18779 18780 ;; 18781 no|*) 18782 ;; 18783esac 18784 18785# check whether gost also works 18786 18787# Check whether --enable-gost was given. 18788if test "${enable_gost+set}" = set; then : 18789 enableval=$enable_gost; 18790fi 18791 18792use_gost="no" 18793if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18794case "$enable_gost" in 18795 no) 18796 ;; 18797 *) 18798 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 18799if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 18800 : 18801else 18802 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 18803fi 18804 18805 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 18806if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 18807 18808else 18809 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 18810fi 18811 18812 18813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 18814$as_echo_n "checking if GOST works... " >&6; } 18815if test c${cross_compiling} = cno; then 18816BAKCFLAGS="$CFLAGS" 18817if test -n "$ssldir"; then 18818 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib" 18819fi 18820if test "$cross_compiling" = yes; then : 18821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18823as_fn_error $? "cannot run test program while cross compiling 18824See \`config.log' for more details" "$LINENO" 5; } 18825else 18826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18827/* end confdefs.h. */ 18828 18829#include <string.h> 18830#include <openssl/ssl.h> 18831#include <openssl/evp.h> 18832#include <openssl/engine.h> 18833#include <openssl/conf.h> 18834/* routine to load gost (from sldns) */ 18835int load_gost_id(void) 18836{ 18837 static int gost_id = 0; 18838 const EVP_PKEY_ASN1_METHOD* meth; 18839 ENGINE* e; 18840 18841 if(gost_id) return gost_id; 18842 18843 /* see if configuration loaded gost implementation from other engine*/ 18844 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 18845 if(meth) { 18846 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18847 return gost_id; 18848 } 18849 18850 /* see if engine can be loaded already */ 18851 e = ENGINE_by_id("gost"); 18852 if(!e) { 18853 /* load it ourself, in case statically linked */ 18854 ENGINE_load_builtin_engines(); 18855 ENGINE_load_dynamic(); 18856 e = ENGINE_by_id("gost"); 18857 } 18858 if(!e) { 18859 /* no gost engine in openssl */ 18860 return 0; 18861 } 18862 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 18863 ENGINE_finish(e); 18864 ENGINE_free(e); 18865 return 0; 18866 } 18867 18868 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 18869 if(!meth) { 18870 /* algo not found */ 18871 ENGINE_finish(e); 18872 ENGINE_free(e); 18873 return 0; 18874 } 18875 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18876 return gost_id; 18877} 18878int main(void) { 18879 EVP_MD_CTX* ctx; 18880 const EVP_MD* md; 18881 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 18882 const char* str = "Hello world"; 18883 const unsigned char check[] = { 18884 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 18885 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 18886 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 18887 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 18888 }; 18889 OPENSSL_config(NULL); 18890 (void)load_gost_id(); 18891 md = EVP_get_digestbyname("md_gost94"); 18892 if(!md) return 1; 18893 memset(digest, 0, sizeof(digest)); 18894 ctx = EVP_MD_CTX_create(); 18895 if(!ctx) return 2; 18896 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 18897 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 18898 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 18899 /* uncomment to see the hash calculated. 18900 {int i; 18901 for(i=0; i<32; i++) 18902 printf(" %2.2x", (int)digest[i]); 18903 printf("\n");} 18904 */ 18905 if(memcmp(digest, check, sizeof(check)) != 0) 18906 return 6; 18907 return 0; 18908} 18909 18910_ACEOF 18911if ac_fn_c_try_run "$LINENO"; then : 18912 eval "ac_cv_c_gost_works=yes" 18913else 18914 eval "ac_cv_c_gost_works=no" 18915fi 18916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18917 conftest.$ac_objext conftest.beam conftest.$ac_ext 18918fi 18919 18920CFLAGS="$BAKCFLAGS" 18921else 18922eval "ac_cv_c_gost_works=maybe" 18923fi 18924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 18925$as_echo "$ac_cv_c_gost_works" >&6; } 18926 18927 if test "$ac_cv_c_gost_works" != no; then 18928 use_gost="yes" 18929 18930$as_echo "#define USE_GOST 1" >>confdefs.h 18931 18932 fi 18933 ;; 18934esac 18935fi 18936# Check whether --enable-ecdsa was given. 18937if test "${enable_ecdsa+set}" = set; then : 18938 enableval=$enable_ecdsa; 18939fi 18940 18941use_ecdsa="no" 18942case "$enable_ecdsa" in 18943 no) 18944 ;; 18945 *) 18946 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18947 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 18948if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 18949 18950else 18951 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18952fi 18953 18954 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 18955if test "x$ac_cv_func_SHA384_Init" = xyes; then : 18956 18957else 18958 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18959fi 18960 18961 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 18962#include <openssl/evp.h> 18963 18964" 18965if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 18966 ac_have_decl=1 18967else 18968 ac_have_decl=0 18969fi 18970 18971cat >>confdefs.h <<_ACEOF 18972#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 18973_ACEOF 18974if test $ac_have_decl = 1; then : 18975 18976else 18977 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18978fi 18979ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 18980#include <openssl/evp.h> 18981 18982" 18983if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 18984 ac_have_decl=1 18985else 18986 ac_have_decl=0 18987fi 18988 18989cat >>confdefs.h <<_ACEOF 18990#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 18991_ACEOF 18992if test $ac_have_decl = 1; then : 18993 18994else 18995 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18996fi 18997 18998 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 19000$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 19001 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 19002 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19004$as_echo "no" >&6; } 19005 19006cat >>confdefs.h <<_ACEOF 19007#define USE_ECDSA_EVP_WORKAROUND 1 19008_ACEOF 19009 19010 else 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19012$as_echo "yes" >&6; } 19013 fi 19014 else 19015 # not OpenSSL, thus likely LibreSSL, which supports it 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19017$as_echo "yes" >&6; } 19018 fi 19019 fi 19020 # we now know we have ECDSA and the required curves. 19021 19022cat >>confdefs.h <<_ACEOF 19023#define USE_ECDSA 1 19024_ACEOF 19025 19026 use_ecdsa="yes" 19027 ;; 19028esac 19029 19030# Check whether --enable-dsa was given. 19031if test "${enable_dsa+set}" = set; then : 19032 enableval=$enable_dsa; 19033fi 19034 19035use_dsa="no" 19036case "$enable_dsa" in 19037 yes) 19038 # detect if DSA is supported, and turn it off if not. 19039 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19040 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 19041if test "x$ac_cv_func_DSA_SIG_new" = xyes; then : 19042 19043 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh` 19044ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 19045$ac_includes_default 19046#ifdef HAVE_OPENSSL_ERR_H 19047#include <openssl/err.h> 19048#endif 19049 19050#ifdef HAVE_OPENSSL_RAND_H 19051#include <openssl/rand.h> 19052#endif 19053 19054#ifdef HAVE_OPENSSL_CONF_H 19055#include <openssl/conf.h> 19056#endif 19057 19058#ifdef HAVE_OPENSSL_ENGINE_H 19059#include <openssl/engine.h> 19060#endif 19061 19062" 19063if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 19064 19065 19066cat >>confdefs.h <<_ACEOF 19067#define USE_DSA 1 19068_ACEOF 19069 19070 19071else 19072 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 19073 fi 19074fi 19075 19076 19077else 19078 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 19079 fi 19080fi 19081 19082 else 19083 19084cat >>confdefs.h <<_ACEOF 19085#define USE_DSA 1 19086_ACEOF 19087 19088 fi 19089 ;; 19090 *) 19091 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 19092 # support DSA for DNSSEC Validation. 19093 ;; 19094esac 19095 19096 19097# Check whether --with-deprecate-rsa-1024 was given. 19098if test "${with_deprecate_rsa_1024+set}" = set; then : 19099 withval=$with_deprecate_rsa_1024; 19100fi 19101 19102if test "$with_deprecate_rsa_1024" = "yes"; then 19103 19104$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h 19105 19106fi 19107 19108# Check whether --enable-ed25519 was given. 19109if test "${enable_ed25519+set}" = set; then : 19110 enableval=$enable_ed25519; 19111fi 19112 19113use_ed25519="no" 19114case "$enable_ed25519" in 19115 no) 19116 ;; 19117 *) 19118 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19119 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 19120#include <openssl/evp.h> 19121 19122" 19123if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then : 19124 ac_have_decl=1 19125else 19126 ac_have_decl=0 19127fi 19128 19129cat >>confdefs.h <<_ACEOF 19130#define HAVE_DECL_NID_ED25519 $ac_have_decl 19131_ACEOF 19132if test $ac_have_decl = 1; then : 19133 19134 use_ed25519="yes" 19135 19136else 19137 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 19138 fi 19139fi 19140 19141 fi 19142 if test $USE_NETTLE = "yes"; then 19143 for ac_header in nettle/eddsa.h 19144do : 19145 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 19146" 19147if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then : 19148 cat >>confdefs.h <<_ACEOF 19149#define HAVE_NETTLE_EDDSA_H 1 19150_ACEOF 19151 use_ed25519="yes" 19152fi 19153 19154done 19155 19156 fi 19157 if test $use_ed25519 = "yes"; then 19158 19159cat >>confdefs.h <<_ACEOF 19160#define USE_ED25519 1 19161_ACEOF 19162 19163 fi 19164 ;; 19165esac 19166 19167# Check whether --enable-ed448 was given. 19168if test "${enable_ed448+set}" = set; then : 19169 enableval=$enable_ed448; 19170fi 19171 19172use_ed448="no" 19173case "$enable_ed448" in 19174 no) 19175 ;; 19176 *) 19177 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19178 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 19179#include <openssl/evp.h> 19180 19181" 19182if test "x$ac_cv_have_decl_NID_ED448" = xyes; then : 19183 ac_have_decl=1 19184else 19185 ac_have_decl=0 19186fi 19187 19188cat >>confdefs.h <<_ACEOF 19189#define HAVE_DECL_NID_ED448 $ac_have_decl 19190_ACEOF 19191if test $ac_have_decl = 1; then : 19192 19193 use_ed448="yes" 19194 19195else 19196 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 19197 fi 19198fi 19199 19200 fi 19201 if test $use_ed448 = "yes"; then 19202 19203cat >>confdefs.h <<_ACEOF 19204#define USE_ED448 1 19205_ACEOF 19206 19207 fi 19208 ;; 19209esac 19210 19211# Check whether --enable-event-api was given. 19212if test "${enable_event_api+set}" = set; then : 19213 enableval=$enable_event_api; 19214fi 19215 19216case "$enable_event_api" in 19217 yes) 19218 UNBOUND_EVENT_INSTALL=unbound-event-install 19219 19220 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 19221 19222 ;; 19223 *) 19224 ;; 19225esac 19226 19227# Check whether --enable-tfo-client was given. 19228if test "${enable_tfo_client+set}" = set; then : 19229 enableval=$enable_tfo_client; 19230fi 19231 19232case "$enable_tfo_client" in 19233 yes) 19234 case "$host_os" in 19235 linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 19236#include <netinet/tcp.h> 19237 19238" 19239if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then : 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19241$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19242else 19243 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19244fi 19245 19246 19247cat >>confdefs.h <<_ACEOF 19248#define USE_MSG_FASTOPEN 1 19249_ACEOF 19250 19251 ;; 19252 darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 19253#include <sys/socket.h> 19254 19255" 19256if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then : 19257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19258$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19259else 19260 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19261fi 19262 19263 19264cat >>confdefs.h <<_ACEOF 19265#define USE_OSX_MSG_FASTOPEN 1 19266_ACEOF 19267 19268 ;; 19269 esac 19270 ;; 19271 no|*) 19272 ;; 19273esac 19274 19275# Check whether --enable-tfo-server was given. 19276if test "${enable_tfo_server+set}" = set; then : 19277 enableval=$enable_tfo_server; 19278fi 19279 19280case "$enable_tfo_server" in 19281 yes) 19282 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 19283#include <netinet/tcp.h> 19284 19285" 19286if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then : 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 19288$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 19289else 19290 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 19291fi 19292 19293 19294cat >>confdefs.h <<_ACEOF 19295#define USE_TCP_FASTOPEN 1 19296_ACEOF 19297 19298 ;; 19299 no|*) 19300 ;; 19301esac 19302 19303# check for libevent 19304 19305# Check whether --with-libevent was given. 19306if test "${with_libevent+set}" = set; then : 19307 withval=$with_libevent; 19308else 19309 with_libevent="no" 19310fi 19311 19312if test "x_$with_libevent" != x_no; then 19313 19314$as_echo "#define USE_LIBEVENT 1" >>confdefs.h 19315 19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 19317$as_echo_n "checking for libevent... " >&6; } 19318 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 19319 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19320 fi 19321 for dir in $with_libevent; do 19322 thedir="$dir" 19323 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 19324 found_libevent="yes" 19325 if test "$thedir" != "/usr"; then 19326 CPPFLAGS="$CPPFLAGS -I$thedir/include" 19327 fi 19328 break; 19329 fi 19330 done 19331 if test x_$found_libevent != x_yes; then 19332 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 19333 # libevent source directory 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19335$as_echo "found in $thedir" >&6; } 19336 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 19337 BAK_LDFLAGS_SET="1" 19338 BAK_LDFLAGS="$LDFLAGS" 19339 # remove evdns from linking 19340 mkdir build >/dev/null 2>&1 19341 mkdir build/libevent >/dev/null 2>&1 19342 mkdir build/libevent/.libs >/dev/null 2>&1 19343 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19344 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 19345 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19346 cp $ev_files_o build/libevent 19347 cp $ev_files_lo build/libevent 19348 cp $ev_files_libso build/libevent/.libs 19349 LATE_LDFLAGS="build/libevent/*.lo -lm" 19350 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 19351 else 19352 as_fn_error $? "Cannot find the libevent library in $with_libevent 19353You can restart ./configure --with-libevent=no to use a builtin alternative. 19354Please note that this alternative is not as capable as libevent when using 19355large outgoing port ranges. " "$LINENO" 5 19356 fi 19357 else 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19359$as_echo "found in $thedir" >&6; } 19360 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 19361 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 19362 19363 if test "x$enable_rpath" = xyes; then 19364 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 19365 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 19366 fi 19367 fi 19368 19369 else 19370 if test "$thedir" != "/usr" -a "$thedir" != ""; then 19371 LDFLAGS="$LDFLAGS -L$thedir/lib" 19372 19373 if test "x$enable_rpath" = xyes; then 19374 if echo "$thedir/lib" | grep "^/" >/dev/null; then 19375 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 19376 fi 19377 fi 19378 19379 fi 19380 fi 19381 fi 19382 # check for library used by libevent after 1.3c 19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 19384$as_echo_n "checking for library containing clock_gettime... " >&6; } 19385if ${ac_cv_search_clock_gettime+:} false; then : 19386 $as_echo_n "(cached) " >&6 19387else 19388 ac_func_search_save_LIBS=$LIBS 19389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19390/* end confdefs.h. */ 19391 19392/* Override any GCC internal prototype to avoid an error. 19393 Use char because int might match the return type of a GCC 19394 builtin and then its argument prototype would still apply. */ 19395#ifdef __cplusplus 19396extern "C" 19397#endif 19398char clock_gettime (); 19399int 19400main () 19401{ 19402return clock_gettime (); 19403 ; 19404 return 0; 19405} 19406_ACEOF 19407for ac_lib in '' rt; do 19408 if test -z "$ac_lib"; then 19409 ac_res="none required" 19410 else 19411 ac_res=-l$ac_lib 19412 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19413 fi 19414 if ac_fn_c_try_link "$LINENO"; then : 19415 ac_cv_search_clock_gettime=$ac_res 19416fi 19417rm -f core conftest.err conftest.$ac_objext \ 19418 conftest$ac_exeext 19419 if ${ac_cv_search_clock_gettime+:} false; then : 19420 break 19421fi 19422done 19423if ${ac_cv_search_clock_gettime+:} false; then : 19424 19425else 19426 ac_cv_search_clock_gettime=no 19427fi 19428rm conftest.$ac_ext 19429LIBS=$ac_func_search_save_LIBS 19430fi 19431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 19432$as_echo "$ac_cv_search_clock_gettime" >&6; } 19433ac_res=$ac_cv_search_clock_gettime 19434if test "$ac_res" != no; then : 19435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19436 19437fi 19438 19439 19440 # is the event.h header libev or libevent? 19441 for ac_header in event.h 19442do : 19443 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 19444" 19445if test "x$ac_cv_header_event_h" = xyes; then : 19446 cat >>confdefs.h <<_ACEOF 19447#define HAVE_EVENT_H 1 19448_ACEOF 19449 19450fi 19451 19452done 19453 19454 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 19455#include <event.h> 19456 19457" 19458if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 19459 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19461$as_echo_n "checking for library containing event_set... " >&6; } 19462if ${ac_cv_search_event_set+:} false; then : 19463 $as_echo_n "(cached) " >&6 19464else 19465 ac_func_search_save_LIBS=$LIBS 19466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19467/* end confdefs.h. */ 19468 19469/* Override any GCC internal prototype to avoid an error. 19470 Use char because int might match the return type of a GCC 19471 builtin and then its argument prototype would still apply. */ 19472#ifdef __cplusplus 19473extern "C" 19474#endif 19475char event_set (); 19476int 19477main () 19478{ 19479return event_set (); 19480 ; 19481 return 0; 19482} 19483_ACEOF 19484for ac_lib in '' ev; do 19485 if test -z "$ac_lib"; then 19486 ac_res="none required" 19487 else 19488 ac_res=-l$ac_lib 19489 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19490 fi 19491 if ac_fn_c_try_link "$LINENO"; then : 19492 ac_cv_search_event_set=$ac_res 19493fi 19494rm -f core conftest.err conftest.$ac_objext \ 19495 conftest$ac_exeext 19496 if ${ac_cv_search_event_set+:} false; then : 19497 break 19498fi 19499done 19500if ${ac_cv_search_event_set+:} false; then : 19501 19502else 19503 ac_cv_search_event_set=no 19504fi 19505rm conftest.$ac_ext 19506LIBS=$ac_func_search_save_LIBS 19507fi 19508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19509$as_echo "$ac_cv_search_event_set" >&6; } 19510ac_res=$ac_cv_search_event_set 19511if test "$ac_res" != no; then : 19512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19513 19514fi 19515 19516 19517else 19518 19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19520$as_echo_n "checking for library containing event_set... " >&6; } 19521if ${ac_cv_search_event_set+:} false; then : 19522 $as_echo_n "(cached) " >&6 19523else 19524 ac_func_search_save_LIBS=$LIBS 19525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19526/* end confdefs.h. */ 19527 19528/* Override any GCC internal prototype to avoid an error. 19529 Use char because int might match the return type of a GCC 19530 builtin and then its argument prototype would still apply. */ 19531#ifdef __cplusplus 19532extern "C" 19533#endif 19534char event_set (); 19535int 19536main () 19537{ 19538return event_set (); 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543for ac_lib in '' event; do 19544 if test -z "$ac_lib"; then 19545 ac_res="none required" 19546 else 19547 ac_res=-l$ac_lib 19548 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19549 fi 19550 if ac_fn_c_try_link "$LINENO"; then : 19551 ac_cv_search_event_set=$ac_res 19552fi 19553rm -f core conftest.err conftest.$ac_objext \ 19554 conftest$ac_exeext 19555 if ${ac_cv_search_event_set+:} false; then : 19556 break 19557fi 19558done 19559if ${ac_cv_search_event_set+:} false; then : 19560 19561else 19562 ac_cv_search_event_set=no 19563fi 19564rm conftest.$ac_ext 19565LIBS=$ac_func_search_save_LIBS 19566fi 19567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19568$as_echo "$ac_cv_search_event_set" >&6; } 19569ac_res=$ac_cv_search_event_set 19570if test "$ac_res" != no; then : 19571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19572 19573fi 19574 19575 19576fi 19577 19578 for ac_func in event_base_free 19579do : 19580 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 19581if test "x$ac_cv_func_event_base_free" = xyes; then : 19582 cat >>confdefs.h <<_ACEOF 19583#define HAVE_EVENT_BASE_FREE 1 19584_ACEOF 19585 19586fi 19587done 19588 # only in libevent 1.2 and later 19589 for ac_func in event_base_once 19590do : 19591 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 19592if test "x$ac_cv_func_event_base_once" = xyes; then : 19593 cat >>confdefs.h <<_ACEOF 19594#define HAVE_EVENT_BASE_ONCE 1 19595_ACEOF 19596 19597fi 19598done 19599 # only in libevent 1.4.1 and later 19600 for ac_func in event_base_new 19601do : 19602 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 19603if test "x$ac_cv_func_event_base_new" = xyes; then : 19604 cat >>confdefs.h <<_ACEOF 19605#define HAVE_EVENT_BASE_NEW 1 19606_ACEOF 19607 19608fi 19609done 19610 # only in libevent 1.4.1 and later 19611 for ac_func in event_base_get_method 19612do : 19613 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 19614if test "x$ac_cv_func_event_base_get_method" = xyes; then : 19615 cat >>confdefs.h <<_ACEOF 19616#define HAVE_EVENT_BASE_GET_METHOD 1 19617_ACEOF 19618 19619fi 19620done 19621 # only in libevent 1.4.3 and later 19622 for ac_func in ev_loop 19623do : 19624 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 19625if test "x$ac_cv_func_ev_loop" = xyes; then : 19626 cat >>confdefs.h <<_ACEOF 19627#define HAVE_EV_LOOP 1 19628_ACEOF 19629 19630fi 19631done 19632 # only in libev. (tested on 3.51) 19633 for ac_func in ev_default_loop 19634do : 19635 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 19636if test "x$ac_cv_func_ev_default_loop" = xyes; then : 19637 cat >>confdefs.h <<_ACEOF 19638#define HAVE_EV_DEFAULT_LOOP 1 19639_ACEOF 19640 19641fi 19642done 19643 # only in libev. (tested on 4.00) 19644 for ac_func in event_assign 19645do : 19646 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 19647if test "x$ac_cv_func_event_assign" = xyes; then : 19648 cat >>confdefs.h <<_ACEOF 19649#define HAVE_EVENT_ASSIGN 1 19650_ACEOF 19651 19652fi 19653done 19654 # in libevent, for thread-safety 19655 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 19656#ifdef HAVE_EVENT_H 19657# include <event.h> 19658#else 19659# include \"event2/event.h\" 19660#endif 19661 19662" 19663if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then : 19664 ac_have_decl=1 19665else 19666 ac_have_decl=0 19667fi 19668 19669cat >>confdefs.h <<_ACEOF 19670#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl 19671_ACEOF 19672 19673 PC_LIBEVENT_DEPENDENCY="libevent" 19674 19675 if test -n "$BAK_LDFLAGS_SET"; then 19676 LDFLAGS="$BAK_LDFLAGS" 19677 fi 19678else 19679 19680$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 19681 19682fi 19683 19684# check for libexpat 19685 19686# Check whether --with-libexpat was given. 19687if test "${with_libexpat+set}" = set; then : 19688 withval=$with_libexpat; 19689else 19690 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19691fi 19692 19693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 19694$as_echo_n "checking for libexpat... " >&6; } 19695found_libexpat="no" 19696for dir in $withval ; do 19697 if test -f "$dir/include/expat.h"; then 19698 found_libexpat="yes" 19699 if test "$dir" != "/usr"; then 19700 CPPFLAGS="$CPPFLAGS -I$dir/include" 19701 LDFLAGS="$LDFLAGS -L$dir/lib" 19702 fi 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19704$as_echo "found in $dir" >&6; } 19705 break; 19706 fi 19707done 19708if test x_$found_libexpat != x_yes; then 19709 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 19710fi 19711for ac_header in expat.h 19712do : 19713 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 19714" 19715if test "x$ac_cv_header_expat_h" = xyes; then : 19716 cat >>confdefs.h <<_ACEOF 19717#define HAVE_EXPAT_H 1 19718_ACEOF 19719 19720fi 19721 19722done 19723 19724ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 19725#include <expat.h> 19726 19727" 19728if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then : 19729 ac_have_decl=1 19730else 19731 ac_have_decl=0 19732fi 19733 19734cat >>confdefs.h <<_ACEOF 19735#define HAVE_DECL_XML_STOPPARSER $ac_have_decl 19736_ACEOF 19737 19738 19739# hiredis (redis C client for cachedb) 19740 19741# Check whether --with-libhiredis was given. 19742if test "${with_libhiredis+set}" = set; then : 19743 withval=$with_libhiredis; 19744else 19745 withval="no" 19746fi 19747 19748found_libhiredis="no" 19749if test x_$withval = x_yes -o x_$withval != x_no; then 19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 19751$as_echo_n "checking for libhiredis... " >&6; } 19752 if test x_$withval = x_ -o x_$withval = x_yes; then 19753 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19754 fi 19755 for dir in $withval ; do 19756 if test -f "$dir/include/hiredis/hiredis.h"; then 19757 found_libhiredis="yes" 19758 if test "$dir" != "/usr"; then 19759 CPPFLAGS="$CPPFLAGS -I$dir/include" 19760 LDFLAGS="$LDFLAGS -L$dir/lib" 19761 fi 19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19763$as_echo "found in $dir" >&6; } 19764 19765$as_echo "#define USE_REDIS 1" >>confdefs.h 19766 19767 LIBS="$LIBS -lhiredis" 19768 break; 19769 fi 19770 done 19771 if test x_$found_libhiredis != x_yes; then 19772 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 19773 fi 19774 for ac_header in hiredis/hiredis.h 19775do : 19776 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 19777" 19778if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then : 19779 cat >>confdefs.h <<_ACEOF 19780#define HAVE_HIREDIS_HIREDIS_H 1 19781_ACEOF 19782 19783fi 19784 19785done 19786 19787 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 19788 #include <hiredis/hiredis.h> 19789 19790" 19791if test "x$ac_cv_have_decl_redisConnect" = xyes; then : 19792 ac_have_decl=1 19793else 19794 ac_have_decl=0 19795fi 19796 19797cat >>confdefs.h <<_ACEOF 19798#define HAVE_DECL_REDISCONNECT $ac_have_decl 19799_ACEOF 19800 19801fi 19802 19803# nghttp2 19804 19805# Check whether --with-libnghttp2 was given. 19806if test "${with_libnghttp2+set}" = set; then : 19807 withval=$with_libnghttp2; 19808else 19809 withval="no" 19810fi 19811 19812found_libnghttp2="no" 19813if test x_$withval = x_yes -o x_$withval != x_no; then 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 19815$as_echo_n "checking for libnghttp2... " >&6; } 19816 if test x_$withval = x_ -o x_$withval = x_yes; then 19817 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19818 fi 19819 for dir in $withval ; do 19820 if test -f "$dir/include/nghttp2/nghttp2.h"; then 19821 found_libnghttp2="yes" 19822 if test "$dir" != "/usr"; then 19823 CPPFLAGS="$CPPFLAGS -I$dir/include" 19824 LDFLAGS="$LDFLAGS -L$dir/lib" 19825 fi 19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19827$as_echo "found in $dir" >&6; } 19828 19829$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h 19830 19831 LIBS="$LIBS -lnghttp2" 19832 break; 19833 fi 19834 done 19835 if test x_$found_libnghttp2 != x_yes; then 19836 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 19837 fi 19838 for ac_header in nghttp2/nghttp2.h 19839do : 19840 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 19841" 19842if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then : 19843 cat >>confdefs.h <<_ACEOF 19844#define HAVE_NGHTTP2_NGHTTP2_H 1 19845_ACEOF 19846 19847fi 19848 19849done 19850 19851 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 19852 #include <nghttp2/nghttp2.h> 19853 19854" 19855if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then : 19856 ac_have_decl=1 19857else 19858 ac_have_decl=0 19859fi 19860 19861cat >>confdefs.h <<_ACEOF 19862#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl 19863_ACEOF 19864 19865fi 19866 19867# set static linking for uninstalled libraries if requested 19868 19869staticexe="" 19870# Check whether --enable-static-exe was given. 19871if test "${enable_static_exe+set}" = set; then : 19872 enableval=$enable_static_exe; 19873fi 19874 19875if test x_$enable_static_exe = x_yes; then 19876 staticexe="-static" 19877 if test "$on_mingw" = yes; then 19878 staticexe="-all-static" 19879 # for static compile, include gdi32 and zlib here. 19880 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19881 : 19882 else 19883 LIBS="$LIBS -lgdi32" 19884 fi 19885 LIBS="$LIBS -lz" 19886 LIBS="$LIBS -l:libssp.a" 19887 fi 19888fi 19889 19890# set full static linking if requested 19891# Check whether --enable-fully-static was given. 19892if test "${enable_fully_static+set}" = set; then : 19893 enableval=$enable_fully_static; 19894fi 19895 19896if test x_$enable_fully_static = x_yes; then 19897 staticexe="-all-static" 19898 if test "$on_mingw" = yes; then 19899 # for static compile, include gdi32 and zlib here. 19900 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19901 : 19902 else 19903 LIBS="$LIBS -lgdi32" 19904 fi 19905 LIBS="$LIBS -lz" 19906 LIBS="$LIBS -l:libssp.a" 19907 fi 19908fi 19909 19910# set lock checking if requested 19911# Check whether --enable-lock_checks was given. 19912if test "${enable_lock_checks+set}" = set; then : 19913 enableval=$enable_lock_checks; 19914fi 19915 19916if test x_$enable_lock_checks = x_yes; then 19917 19918$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 19919 19920 CHECKLOCK_OBJ="checklocks.lo" 19921 19922fi 19923 19924 19925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 19926$as_echo_n "checking for getaddrinfo... " >&6; } 19927ac_cv_func_getaddrinfo=no 19928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19929/* end confdefs.h. */ 19930 19931#ifdef __cplusplus 19932extern "C" 19933{ 19934#endif 19935char* getaddrinfo(); 19936char* (*f) () = getaddrinfo; 19937#ifdef __cplusplus 19938} 19939#endif 19940int main() { 19941 ; 19942 return 0; 19943} 19944 19945_ACEOF 19946if ac_fn_c_try_link "$LINENO"; then : 19947 ac_cv_func_getaddrinfo="yes" 19948if test "$ac_cv_header_windows_h" = "yes"; then 19949 19950$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19951 19952 USE_WINSOCK="1" 19953 if echo $LIBS | grep 'lws2_32' >/dev/null; then 19954 : 19955 else 19956 LIBS="$LIBS -lws2_32" 19957 fi 19958fi 19959 19960else 19961 ORIGLIBS="$LIBS" 19962LIBS="$LIBS -lws2_32" 19963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19964/* end confdefs.h. */ 19965 19966#ifdef HAVE_WS2TCPIP_H 19967#include <ws2tcpip.h> 19968#endif 19969 19970int 19971main () 19972{ 19973 19974 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19975 19976 19977 ; 19978 return 0; 19979} 19980_ACEOF 19981if ac_fn_c_try_link "$LINENO"; then : 19982 19983ac_cv_func_getaddrinfo="yes" 19984 19985$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19986 19987USE_WINSOCK="1" 19988 19989else 19990 19991ac_cv_func_getaddrinfo="no" 19992LIBS="$ORIGLIBS" 19993 19994fi 19995rm -f core conftest.err conftest.$ac_objext \ 19996 conftest$ac_exeext conftest.$ac_ext 19997 19998fi 19999rm -f core conftest.err conftest.$ac_objext \ 20000 conftest$ac_exeext conftest.$ac_ext 20001 20002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 20003$as_echo "$ac_cv_func_getaddrinfo" >&6; } 20004if test $ac_cv_func_getaddrinfo = yes; then 20005 20006$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 20007 20008fi 20009 20010if test "$USE_WINSOCK" = 1; then 20011 20012$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 20013 20014 for ac_header in iphlpapi.h 20015do : 20016 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 20017#include <windows.h> 20018 20019" 20020if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 20021 cat >>confdefs.h <<_ACEOF 20022#define HAVE_IPHLPAPI_H 1 20023_ACEOF 20024 20025fi 20026 20027done 20028 20029 if test -n "$ac_tool_prefix"; then 20030 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 20031set dummy ${ac_tool_prefix}windres; ac_word=$2 20032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20033$as_echo_n "checking for $ac_word... " >&6; } 20034if ${ac_cv_prog_WINDRES+:} false; then : 20035 $as_echo_n "(cached) " >&6 20036else 20037 if test -n "$WINDRES"; then 20038 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 20039else 20040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20041for as_dir in $PATH 20042do 20043 IFS=$as_save_IFS 20044 test -z "$as_dir" && as_dir=. 20045 for ac_exec_ext in '' $ac_executable_extensions; do 20046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20047 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 20048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20049 break 2 20050 fi 20051done 20052 done 20053IFS=$as_save_IFS 20054 20055fi 20056fi 20057WINDRES=$ac_cv_prog_WINDRES 20058if test -n "$WINDRES"; then 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 20060$as_echo "$WINDRES" >&6; } 20061else 20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20063$as_echo "no" >&6; } 20064fi 20065 20066 20067fi 20068if test -z "$ac_cv_prog_WINDRES"; then 20069 ac_ct_WINDRES=$WINDRES 20070 # Extract the first word of "windres", so it can be a program name with args. 20071set dummy windres; ac_word=$2 20072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20073$as_echo_n "checking for $ac_word... " >&6; } 20074if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 20075 $as_echo_n "(cached) " >&6 20076else 20077 if test -n "$ac_ct_WINDRES"; then 20078 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 20079else 20080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20081for as_dir in $PATH 20082do 20083 IFS=$as_save_IFS 20084 test -z "$as_dir" && as_dir=. 20085 for ac_exec_ext in '' $ac_executable_extensions; do 20086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20087 ac_cv_prog_ac_ct_WINDRES="windres" 20088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20089 break 2 20090 fi 20091done 20092 done 20093IFS=$as_save_IFS 20094 20095fi 20096fi 20097ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 20098if test -n "$ac_ct_WINDRES"; then 20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 20100$as_echo "$ac_ct_WINDRES" >&6; } 20101else 20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20103$as_echo "no" >&6; } 20104fi 20105 20106 if test "x$ac_ct_WINDRES" = x; then 20107 WINDRES="" 20108 else 20109 case $cross_compiling:$ac_tool_warned in 20110yes:) 20111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20113ac_tool_warned=yes ;; 20114esac 20115 WINDRES=$ac_ct_WINDRES 20116 fi 20117else 20118 WINDRES="$ac_cv_prog_WINDRES" 20119fi 20120 20121 LIBS="$LIBS -liphlpapi -lcrypt32" 20122 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 20123 20124 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 20125 20126 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 20127 20128 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 20129 20130 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 20131 20132 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 20133 20134 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 20135 20136 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 20137 20138fi 20139if test $ac_cv_func_getaddrinfo = no; then 20140 case " $LIBOBJS " in 20141 *" fake-rfc2553.$ac_objext "* ) ;; 20142 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 20143 ;; 20144esac 20145 20146fi 20147# check after getaddrinfo for its libraries 20148 20149# check ioctlsocket 20150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 20151$as_echo_n "checking for ioctlsocket... " >&6; } 20152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20153/* end confdefs.h. */ 20154 20155#ifdef HAVE_WINSOCK2_H 20156#include <winsock2.h> 20157#endif 20158 20159int 20160main () 20161{ 20162 20163 (void)ioctlsocket(0, 0, NULL); 20164 20165 ; 20166 return 0; 20167} 20168_ACEOF 20169if ac_fn_c_try_link "$LINENO"; then : 20170 20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20172$as_echo "yes" >&6; } 20173 20174$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 20175 20176 20177else 20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20179$as_echo "no" >&6; } 20180fi 20181rm -f core conftest.err conftest.$ac_objext \ 20182 conftest$ac_exeext conftest.$ac_ext 20183 20184 20185# see if daemon(3) exists, and if it is deprecated. 20186for ac_func in daemon 20187do : 20188 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 20189if test "x$ac_cv_func_daemon" = xyes; then : 20190 cat >>confdefs.h <<_ACEOF 20191#define HAVE_DAEMON 1 20192_ACEOF 20193 20194fi 20195done 20196 20197if test $ac_cv_func_daemon = yes; then 20198 20199 20200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 20201$as_echo_n "checking if daemon is deprecated... " >&6; } 20202cache=`echo daemon | sed 'y%.=/+-%___p_%'` 20203if eval \${cv_cc_deprecated_$cache+:} false; then : 20204 $as_echo_n "(cached) " >&6 20205else 20206 20207echo ' 20208#include <stdlib.h> 20209#include <unistd.h> 20210' >conftest.c 20211echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 20212if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 20213eval "cv_cc_deprecated_$cache=no" 20214else 20215eval "cv_cc_deprecated_$cache=yes" 20216fi 20217rm -f conftest conftest.o conftest.c 20218 20219fi 20220 20221if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 20222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20223$as_echo "yes" >&6; } 20224 20225cat >>confdefs.h <<_ACEOF 20226#define DEPRECATED_DAEMON 1 20227_ACEOF 20228 20229: 20230 20231else 20232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20233$as_echo "no" >&6; } 20234: 20235 20236fi 20237 20238fi 20239 20240ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 20241$ac_includes_default 20242#ifdef HAVE_SYS_UN_H 20243#include <sys/un.h> 20244#endif 20245 20246" 20247if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20248 20249cat >>confdefs.h <<_ACEOF 20250#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 20251_ACEOF 20252 20253 20254fi 20255 20256ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 20257$ac_includes_default 20258#if HAVE_SYS_PARAM_H 20259#include <sys/param.h> 20260#endif 20261 20262#ifdef HAVE_SYS_SOCKET_H 20263#include <sys/socket.h> 20264#endif 20265 20266#ifdef HAVE_SYS_UIO_H 20267#include <sys/uio.h> 20268#endif 20269 20270#ifdef HAVE_NETINET_IN_H 20271#include <netinet/in.h> 20272#endif 20273 20274#ifdef HAVE_NETINET_TCP_H 20275#include <netinet/tcp.h> 20276#endif 20277 20278#ifdef HAVE_ARPA_INET_H 20279#include <arpa/inet.h> 20280#endif 20281 20282#ifdef HAVE_WINSOCK2_H 20283#include <winsock2.h> 20284#endif 20285 20286#ifdef HAVE_WS2TCPIP_H 20287#include <ws2tcpip.h> 20288#endif 20289 20290" 20291if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 20292 20293cat >>confdefs.h <<_ACEOF 20294#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 20295_ACEOF 20296 20297 20298fi 20299 20300 20301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 20302$as_echo_n "checking for htobe64... " >&6; } 20303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20304/* end confdefs.h. */ 20305 20306#include <stdio.h> 20307#ifdef HAVE_ENDIAN_H 20308# include <endian.h> 20309#endif 20310#ifdef HAVE_SYS_ENDIAN_H 20311# include <sys/endian.h> 20312#endif 20313 20314int 20315main () 20316{ 20317unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 20318 ; 20319 return 0; 20320} 20321_ACEOF 20322if ac_fn_c_try_link "$LINENO"; then : 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20324$as_echo "yes" >&6; } 20325 20326$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h 20327 20328else 20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20330$as_echo "no" >&6; } 20331fi 20332rm -f core conftest.err conftest.$ac_objext \ 20333 conftest$ac_exeext conftest.$ac_ext 20334 20335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 20336$as_echo_n "checking for be64toh... " >&6; } 20337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20338/* end confdefs.h. */ 20339 20340#include <stdio.h> 20341#ifdef HAVE_ENDIAN_H 20342# include <endian.h> 20343#endif 20344#ifdef HAVE_SYS_ENDIAN_H 20345# include <sys/endian.h> 20346#endif 20347 20348int 20349main () 20350{ 20351unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 20352 ; 20353 return 0; 20354} 20355_ACEOF 20356if ac_fn_c_try_link "$LINENO"; then : 20357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20358$as_echo "yes" >&6; } 20359 20360$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h 20361 20362else 20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20364$as_echo "no" >&6; } 20365fi 20366rm -f core conftest.err conftest.$ac_objext \ 20367 conftest$ac_exeext conftest.$ac_ext 20368 20369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 20370$as_echo_n "checking for library containing setusercontext... " >&6; } 20371if ${ac_cv_search_setusercontext+:} false; then : 20372 $as_echo_n "(cached) " >&6 20373else 20374 ac_func_search_save_LIBS=$LIBS 20375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20376/* end confdefs.h. */ 20377 20378/* Override any GCC internal prototype to avoid an error. 20379 Use char because int might match the return type of a GCC 20380 builtin and then its argument prototype would still apply. */ 20381#ifdef __cplusplus 20382extern "C" 20383#endif 20384char setusercontext (); 20385int 20386main () 20387{ 20388return setusercontext (); 20389 ; 20390 return 0; 20391} 20392_ACEOF 20393for ac_lib in '' util; do 20394 if test -z "$ac_lib"; then 20395 ac_res="none required" 20396 else 20397 ac_res=-l$ac_lib 20398 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20399 fi 20400 if ac_fn_c_try_link "$LINENO"; then : 20401 ac_cv_search_setusercontext=$ac_res 20402fi 20403rm -f core conftest.err conftest.$ac_objext \ 20404 conftest$ac_exeext 20405 if ${ac_cv_search_setusercontext+:} false; then : 20406 break 20407fi 20408done 20409if ${ac_cv_search_setusercontext+:} false; then : 20410 20411else 20412 ac_cv_search_setusercontext=no 20413fi 20414rm conftest.$ac_ext 20415LIBS=$ac_func_search_save_LIBS 20416fi 20417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 20418$as_echo "$ac_cv_search_setusercontext" >&6; } 20419ac_res=$ac_cv_search_setusercontext 20420if test "$ac_res" != no; then : 20421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20422 20423fi 20424 20425for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 getifaddrs if_nametoindex 20426do : 20427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20428ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20429if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20430 cat >>confdefs.h <<_ACEOF 20431#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20432_ACEOF 20433 20434fi 20435done 20436 20437for ac_func in setresuid 20438do : 20439 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 20440if test "x$ac_cv_func_setresuid" = xyes; then : 20441 cat >>confdefs.h <<_ACEOF 20442#define HAVE_SETRESUID 1 20443_ACEOF 20444 20445else 20446 for ac_func in setreuid 20447do : 20448 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 20449if test "x$ac_cv_func_setreuid" = xyes; then : 20450 cat >>confdefs.h <<_ACEOF 20451#define HAVE_SETREUID 1 20452_ACEOF 20453 20454fi 20455done 20456 20457fi 20458done 20459 20460for ac_func in setresgid 20461do : 20462 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 20463if test "x$ac_cv_func_setresgid" = xyes; then : 20464 cat >>confdefs.h <<_ACEOF 20465#define HAVE_SETRESGID 1 20466_ACEOF 20467 20468else 20469 for ac_func in setregid 20470do : 20471 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 20472if test "x$ac_cv_func_setregid" = xyes; then : 20473 cat >>confdefs.h <<_ACEOF 20474#define HAVE_SETREGID 1 20475_ACEOF 20476 20477fi 20478done 20479 20480fi 20481done 20482 20483 20484# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 20485if echo $host_os | grep darwin8 > /dev/null; then 20486 20487$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 20488 20489fi 20490ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 20491$ac_includes_default 20492#ifdef HAVE_NETINET_IN_H 20493#include <netinet/in.h> 20494#endif 20495 20496#ifdef HAVE_NETINET_TCP_H 20497#include <netinet/tcp.h> 20498#endif 20499 20500#ifdef HAVE_ARPA_INET_H 20501#include <arpa/inet.h> 20502#endif 20503 20504#ifdef HAVE_WINSOCK2_H 20505#include <winsock2.h> 20506#endif 20507 20508#ifdef HAVE_WS2TCPIP_H 20509#include <ws2tcpip.h> 20510#endif 20511 20512" 20513if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 20514 ac_have_decl=1 20515else 20516 ac_have_decl=0 20517fi 20518 20519cat >>confdefs.h <<_ACEOF 20520#define HAVE_DECL_INET_PTON $ac_have_decl 20521_ACEOF 20522ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 20523$ac_includes_default 20524#ifdef HAVE_NETINET_IN_H 20525#include <netinet/in.h> 20526#endif 20527 20528#ifdef HAVE_NETINET_TCP_H 20529#include <netinet/tcp.h> 20530#endif 20531 20532#ifdef HAVE_ARPA_INET_H 20533#include <arpa/inet.h> 20534#endif 20535 20536#ifdef HAVE_WINSOCK2_H 20537#include <winsock2.h> 20538#endif 20539 20540#ifdef HAVE_WS2TCPIP_H 20541#include <ws2tcpip.h> 20542#endif 20543 20544" 20545if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 20546 ac_have_decl=1 20547else 20548 ac_have_decl=0 20549fi 20550 20551cat >>confdefs.h <<_ACEOF 20552#define HAVE_DECL_INET_NTOP $ac_have_decl 20553_ACEOF 20554 20555ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 20556if test "x$ac_cv_func_inet_aton" = xyes; then : 20557 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 20558 20559else 20560 case " $LIBOBJS " in 20561 *" inet_aton.$ac_objext "* ) ;; 20562 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 20563 ;; 20564esac 20565 20566fi 20567 20568 20569ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 20570if test "x$ac_cv_func_inet_pton" = xyes; then : 20571 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 20572 20573else 20574 case " $LIBOBJS " in 20575 *" inet_pton.$ac_objext "* ) ;; 20576 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 20577 ;; 20578esac 20579 20580fi 20581 20582 20583ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 20584if test "x$ac_cv_func_inet_ntop" = xyes; then : 20585 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 20586 20587else 20588 case " $LIBOBJS " in 20589 *" inet_ntop.$ac_objext "* ) ;; 20590 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 20591 ;; 20592esac 20593 20594fi 20595 20596 20597ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20598if test "x$ac_cv_func_snprintf" = xyes; then : 20599 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20600 20601else 20602 case " $LIBOBJS " in 20603 *" snprintf.$ac_objext "* ) ;; 20604 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20605 ;; 20606esac 20607 20608fi 20609 20610 20611# test if snprintf return the proper length 20612if test "x$ac_cv_func_snprintf" = xyes; then 20613 if test c${cross_compiling} = cno; then 20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 20615$as_echo_n "checking for correct snprintf return value... " >&6; } 20616 if test "$cross_compiling" = yes; then : 20617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20619as_fn_error $? "cannot run test program while cross compiling 20620See \`config.log' for more details" "$LINENO" 5; } 20621else 20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20623/* end confdefs.h. */ 20624$ac_includes_default 20625 20626int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 20627 20628_ACEOF 20629if ac_fn_c_try_run "$LINENO"; then : 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20631$as_echo "yes" >&6; } 20632else 20633 20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20635$as_echo "no" >&6; } 20636 20637$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 20638 20639 case " $LIBOBJS " in 20640 *" snprintf.$ac_objext "* ) ;; 20641 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20642 ;; 20643esac 20644 20645 20646fi 20647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20648 conftest.$ac_objext conftest.beam conftest.$ac_ext 20649fi 20650 20651 fi 20652fi 20653ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20654if test "x$ac_cv_func_strlcat" = xyes; then : 20655 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 20656 20657else 20658 case " $LIBOBJS " in 20659 *" strlcat.$ac_objext "* ) ;; 20660 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20661 ;; 20662esac 20663 20664fi 20665 20666 20667ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20668if test "x$ac_cv_func_strlcpy" = xyes; then : 20669 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 20670 20671else 20672 case " $LIBOBJS " in 20673 *" strlcpy.$ac_objext "* ) ;; 20674 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20675 ;; 20676esac 20677 20678fi 20679 20680 20681ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20682if test "x$ac_cv_func_memmove" = xyes; then : 20683 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 20684 20685else 20686 case " $LIBOBJS " in 20687 *" memmove.$ac_objext "* ) ;; 20688 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 20689 ;; 20690esac 20691 20692fi 20693 20694 20695ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 20696if test "x$ac_cv_func_gmtime_r" = xyes; then : 20697 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 20698 20699else 20700 case " $LIBOBJS " in 20701 *" gmtime_r.$ac_objext "* ) ;; 20702 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 20703 ;; 20704esac 20705 20706fi 20707 20708 20709ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 20710if test "x$ac_cv_func_isblank" = xyes; then : 20711 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 20712 20713else 20714 case " $LIBOBJS " in 20715 *" isblank.$ac_objext "* ) ;; 20716 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 20717 ;; 20718esac 20719 20720fi 20721 20722 20723ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 20724if test "x$ac_cv_func_explicit_bzero" = xyes; then : 20725 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 20726 20727else 20728 case " $LIBOBJS " in 20729 *" explicit_bzero.$ac_objext "* ) ;; 20730 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 20731 ;; 20732esac 20733 20734fi 20735 20736 20737LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 20738 20739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 20740$as_echo_n "checking for reallocarray... " >&6; } 20741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20742/* end confdefs.h. */ 20743$ac_includes_default 20744 20745#ifndef _OPENBSD_SOURCE 20746#define _OPENBSD_SOURCE 1 20747#endif 20748#include <stdlib.h> 20749int main(void) { 20750 void* p = reallocarray(NULL, 10, 100); 20751 free(p); 20752 return 0; 20753} 20754 20755_ACEOF 20756if ac_fn_c_try_link "$LINENO"; then : 20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20758$as_echo "yes" >&6; } 20759 20760$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20761 20762 20763else 20764 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20766$as_echo "no" >&6; } 20767 case " $LIBOBJS " in 20768 *" reallocarray.$ac_objext "* ) ;; 20769 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20770 ;; 20771esac 20772 20773 20774fi 20775rm -f core conftest.err conftest.$ac_objext \ 20776 conftest$ac_exeext conftest.$ac_ext 20777ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" 20778if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 20779 ac_have_decl=1 20780else 20781 ac_have_decl=0 20782fi 20783 20784cat >>confdefs.h <<_ACEOF 20785#define HAVE_DECL_REALLOCARRAY $ac_have_decl 20786_ACEOF 20787 20788if test "$USE_NSS" = "no"; then 20789 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 20790if test "x$ac_cv_func_arc4random" = xyes; then : 20791 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 20792 20793else 20794 case " $LIBOBJS " in 20795 *" arc4random.$ac_objext "* ) ;; 20796 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 20797 ;; 20798esac 20799 20800fi 20801 20802 20803 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 20804if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 20805 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 20806 20807else 20808 case " $LIBOBJS " in 20809 *" arc4random_uniform.$ac_objext "* ) ;; 20810 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 20811 ;; 20812esac 20813 20814fi 20815 20816 20817 if test "$ac_cv_func_arc4random" = "no"; then 20818 case " $LIBOBJS " in 20819 *" arc4_lock.$ac_objext "* ) ;; 20820 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 20821 ;; 20822esac 20823 20824 for ac_func in getentropy 20825do : 20826 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 20827if test "x$ac_cv_func_getentropy" = xyes; then : 20828 cat >>confdefs.h <<_ACEOF 20829#define HAVE_GETENTROPY 1 20830_ACEOF 20831 20832else 20833 20834 if test "$USE_WINSOCK" = 1; then 20835 case " $LIBOBJS " in 20836 *" getentropy_win.$ac_objext "* ) ;; 20837 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 20838 ;; 20839esac 20840 20841 else 20842 case "$host" in 20843 Darwin|*darwin*) 20844 case " $LIBOBJS " in 20845 *" getentropy_osx.$ac_objext "* ) ;; 20846 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 20847 ;; 20848esac 20849 20850 ;; 20851 *solaris*|*sunos*|SunOS) 20852 case " $LIBOBJS " in 20853 *" getentropy_solaris.$ac_objext "* ) ;; 20854 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 20855 ;; 20856esac 20857 20858 for ac_header in sys/sha2.h 20859do : 20860 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 20861" 20862if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 20863 cat >>confdefs.h <<_ACEOF 20864#define HAVE_SYS_SHA2_H 1 20865_ACEOF 20866 20867else 20868 20869 for ac_func in SHA512_Update 20870do : 20871 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20872if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20873 cat >>confdefs.h <<_ACEOF 20874#define HAVE_SHA512_UPDATE 1 20875_ACEOF 20876 20877else 20878 20879 case " $LIBOBJS " in 20880 *" sha512.$ac_objext "* ) ;; 20881 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20882 ;; 20883esac 20884 20885 20886fi 20887done 20888 20889 20890fi 20891 20892done 20893 20894 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 20895 # this lib needed for sha2 on solaris 20896 LIBS="$LIBS -lmd" 20897 fi 20898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20899$as_echo_n "checking for library containing clock_gettime... " >&6; } 20900if ${ac_cv_search_clock_gettime+:} false; then : 20901 $as_echo_n "(cached) " >&6 20902else 20903 ac_func_search_save_LIBS=$LIBS 20904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20905/* end confdefs.h. */ 20906 20907/* Override any GCC internal prototype to avoid an error. 20908 Use char because int might match the return type of a GCC 20909 builtin and then its argument prototype would still apply. */ 20910#ifdef __cplusplus 20911extern "C" 20912#endif 20913char clock_gettime (); 20914int 20915main () 20916{ 20917return clock_gettime (); 20918 ; 20919 return 0; 20920} 20921_ACEOF 20922for ac_lib in '' rt; do 20923 if test -z "$ac_lib"; then 20924 ac_res="none required" 20925 else 20926 ac_res=-l$ac_lib 20927 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20928 fi 20929 if ac_fn_c_try_link "$LINENO"; then : 20930 ac_cv_search_clock_gettime=$ac_res 20931fi 20932rm -f core conftest.err conftest.$ac_objext \ 20933 conftest$ac_exeext 20934 if ${ac_cv_search_clock_gettime+:} false; then : 20935 break 20936fi 20937done 20938if ${ac_cv_search_clock_gettime+:} false; then : 20939 20940else 20941 ac_cv_search_clock_gettime=no 20942fi 20943rm conftest.$ac_ext 20944LIBS=$ac_func_search_save_LIBS 20945fi 20946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20947$as_echo "$ac_cv_search_clock_gettime" >&6; } 20948ac_res=$ac_cv_search_clock_gettime 20949if test "$ac_res" != no; then : 20950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20951 20952fi 20953 20954 ;; 20955 *freebsd*|*FreeBSD) 20956 case " $LIBOBJS " in 20957 *" getentropy_freebsd.$ac_objext "* ) ;; 20958 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 20959 ;; 20960esac 20961 20962 ;; 20963 *linux*|Linux|*) 20964 case " $LIBOBJS " in 20965 *" getentropy_linux.$ac_objext "* ) ;; 20966 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 20967 ;; 20968esac 20969 20970 for ac_func in SHA512_Update 20971do : 20972 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20973if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20974 cat >>confdefs.h <<_ACEOF 20975#define HAVE_SHA512_UPDATE 1 20976_ACEOF 20977 20978else 20979 20980 20981$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 20982 20983 case " $LIBOBJS " in 20984 *" sha512.$ac_objext "* ) ;; 20985 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20986 ;; 20987esac 20988 20989 20990fi 20991done 20992 20993 for ac_header in sys/sysctl.h 20994do : 20995 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 20996" 20997if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 20998 cat >>confdefs.h <<_ACEOF 20999#define HAVE_SYS_SYSCTL_H 1 21000_ACEOF 21001 21002fi 21003 21004done 21005 21006 for ac_func in getauxval 21007do : 21008 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 21009if test "x$ac_cv_func_getauxval" = xyes; then : 21010 cat >>confdefs.h <<_ACEOF 21011#define HAVE_GETAUXVAL 1 21012_ACEOF 21013 21014fi 21015done 21016 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21018$as_echo_n "checking for library containing clock_gettime... " >&6; } 21019if ${ac_cv_search_clock_gettime+:} false; then : 21020 $as_echo_n "(cached) " >&6 21021else 21022 ac_func_search_save_LIBS=$LIBS 21023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21024/* end confdefs.h. */ 21025 21026/* Override any GCC internal prototype to avoid an error. 21027 Use char because int might match the return type of a GCC 21028 builtin and then its argument prototype would still apply. */ 21029#ifdef __cplusplus 21030extern "C" 21031#endif 21032char clock_gettime (); 21033int 21034main () 21035{ 21036return clock_gettime (); 21037 ; 21038 return 0; 21039} 21040_ACEOF 21041for ac_lib in '' rt; do 21042 if test -z "$ac_lib"; then 21043 ac_res="none required" 21044 else 21045 ac_res=-l$ac_lib 21046 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21047 fi 21048 if ac_fn_c_try_link "$LINENO"; then : 21049 ac_cv_search_clock_gettime=$ac_res 21050fi 21051rm -f core conftest.err conftest.$ac_objext \ 21052 conftest$ac_exeext 21053 if ${ac_cv_search_clock_gettime+:} false; then : 21054 break 21055fi 21056done 21057if ${ac_cv_search_clock_gettime+:} false; then : 21058 21059else 21060 ac_cv_search_clock_gettime=no 21061fi 21062rm conftest.$ac_ext 21063LIBS=$ac_func_search_save_LIBS 21064fi 21065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21066$as_echo "$ac_cv_search_clock_gettime" >&6; } 21067ac_res=$ac_cv_search_clock_gettime 21068if test "$ac_res" != no; then : 21069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21070 21071fi 21072 21073 ;; 21074 esac 21075 fi 21076 21077fi 21078done 21079 21080 fi 21081fi 21082LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 21083 21084ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 21085if test "x$ac_cv_func_ctime_r" = xyes; then : 21086 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 21087 21088else 21089 case " $LIBOBJS " in 21090 *" ctime_r.$ac_objext "* ) ;; 21091 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 21092 ;; 21093esac 21094 21095fi 21096 21097 21098ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 21099if test "x$ac_cv_func_strsep" = xyes; then : 21100 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 21101 21102else 21103 case " $LIBOBJS " in 21104 *" strsep.$ac_objext "* ) ;; 21105 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 21106 ;; 21107esac 21108 21109fi 21110 21111 21112 21113# Check whether --enable-allsymbols was given. 21114if test "${enable_allsymbols+set}" = set; then : 21115 enableval=$enable_allsymbols; 21116fi 21117 21118case "$enable_allsymbols" in 21119 yes) 21120 COMMON_OBJ_ALL_SYMBOLS="" 21121 UBSYMS="" 21122 EXTRALINK="libunbound.la" 21123 21124$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 21125 21126 ;; 21127 no|*) 21128 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 21129 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 21130 EXTRALINK="" 21131 ;; 21132esac 21133 21134 21135 21136if test x_$enable_lock_checks = x_yes; then 21137 UBSYMS="-export-symbols clubsyms.def" 21138 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 21139 echo lock_protect >> clubsyms.def 21140 echo lock_unprotect >> clubsyms.def 21141 echo lock_get_mem >> clubsyms.def 21142 echo checklock_start >> clubsyms.def 21143 echo checklock_stop >> clubsyms.def 21144 echo checklock_lock >> clubsyms.def 21145 echo checklock_unlock >> clubsyms.def 21146 echo checklock_init >> clubsyms.def 21147 echo checklock_thrcreate >> clubsyms.def 21148 echo checklock_thrjoin >> clubsyms.def 21149fi 21150 21151# check for dnstap if requested 21152 21153 # Check whether --enable-dnstap was given. 21154if test "${enable_dnstap+set}" = set; then : 21155 enableval=$enable_dnstap; opt_dnstap=$enableval 21156else 21157 opt_dnstap=no 21158fi 21159 21160 21161 21162# Check whether --with-dnstap-socket-path was given. 21163if test "${with_dnstap_socket_path+set}" = set; then : 21164 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 21165else 21166 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 21167fi 21168 21169 21170 if test "x$opt_dnstap" != "xno"; then 21171 # Extract the first word of "protoc-c", so it can be a program name with args. 21172set dummy protoc-c; ac_word=$2 21173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21174$as_echo_n "checking for $ac_word... " >&6; } 21175if ${ac_cv_path_PROTOC_C+:} false; then : 21176 $as_echo_n "(cached) " >&6 21177else 21178 case $PROTOC_C in 21179 [\\/]* | ?:[\\/]*) 21180 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 21181 ;; 21182 *) 21183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21184for as_dir in $PATH 21185do 21186 IFS=$as_save_IFS 21187 test -z "$as_dir" && as_dir=. 21188 for ac_exec_ext in '' $ac_executable_extensions; do 21189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21190 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 21191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21192 break 2 21193 fi 21194done 21195 done 21196IFS=$as_save_IFS 21197 21198 ;; 21199esac 21200fi 21201PROTOC_C=$ac_cv_path_PROTOC_C 21202if test -n "$PROTOC_C"; then 21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 21204$as_echo "$PROTOC_C" >&6; } 21205else 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21207$as_echo "no" >&6; } 21208fi 21209 21210 21211 if test -z "$PROTOC_C"; then 21212 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 21213 fi 21214 21215# Check whether --with-protobuf-c was given. 21216if test "${with_protobuf_c+set}" = set; then : 21217 withval=$with_protobuf_c; 21218 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21219 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 21220 CFLAGS="$CFLAGS -I$withval/include/google" 21221 else 21222 CFLAGS="$CFLAGS -I$withval/include" 21223 fi 21224 LDFLAGS="$LDFLAGS -L$withval/lib" 21225 21226else 21227 21228 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21229 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 21230 CFLAGS="$CFLAGS -I/usr/include/google" 21231 else 21232 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 21233 CFLAGS="$CFLAGS -I/usr/local/include/google" 21234 LDFLAGS="$LDFLAGS -L/usr/local/lib" 21235 fi 21236 fi 21237 21238fi 21239 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 21241$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 21242if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21243 $as_echo_n "(cached) " >&6 21244else 21245 ac_func_search_save_LIBS=$LIBS 21246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21247/* end confdefs.h. */ 21248 21249/* Override any GCC internal prototype to avoid an error. 21250 Use char because int might match the return type of a GCC 21251 builtin and then its argument prototype would still apply. */ 21252#ifdef __cplusplus 21253extern "C" 21254#endif 21255char protobuf_c_message_pack (); 21256int 21257main () 21258{ 21259return protobuf_c_message_pack (); 21260 ; 21261 return 0; 21262} 21263_ACEOF 21264for ac_lib in '' protobuf-c; do 21265 if test -z "$ac_lib"; then 21266 ac_res="none required" 21267 else 21268 ac_res=-l$ac_lib 21269 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21270 fi 21271 if ac_fn_c_try_link "$LINENO"; then : 21272 ac_cv_search_protobuf_c_message_pack=$ac_res 21273fi 21274rm -f core conftest.err conftest.$ac_objext \ 21275 conftest$ac_exeext 21276 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21277 break 21278fi 21279done 21280if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21281 21282else 21283 ac_cv_search_protobuf_c_message_pack=no 21284fi 21285rm conftest.$ac_ext 21286LIBS=$ac_func_search_save_LIBS 21287fi 21288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 21289$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 21290ac_res=$ac_cv_search_protobuf_c_message_pack 21291if test "$ac_res" != no; then : 21292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21293 21294else 21295 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 21296fi 21297 21298 21299 21300$as_echo "#define USE_DNSTAP 1" >>confdefs.h 21301 21302 ENABLE_DNSTAP=1 21303 21304 21305 21306 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 21307 21308 21309cat >>confdefs.h <<_ACEOF 21310#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 21311_ACEOF 21312 21313 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 21314 21315 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)' 21316 21317 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 21318 21319 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 21320 21321 21322 else 21323 21324 ENABLE_DNSTAP=0 21325 21326 21327 21328 fi 21329 21330 21331# check for dnscrypt if requested 21332 21333 # Check whether --enable-dnscrypt was given. 21334if test "${enable_dnscrypt+set}" = set; then : 21335 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 21336else 21337 opt_dnscrypt=no 21338fi 21339 21340 21341 if test "x$opt_dnscrypt" != "xno"; then 21342 21343# Check whether --with-libsodium was given. 21344if test "${with_libsodium+set}" = set; then : 21345 withval=$with_libsodium; 21346 CFLAGS="$CFLAGS -I$withval/include" 21347 LDFLAGS="$LDFLAGS -L$withval/lib" 21348 21349fi 21350 21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 21352$as_echo_n "checking for library containing sodium_init... " >&6; } 21353if ${ac_cv_search_sodium_init+:} false; then : 21354 $as_echo_n "(cached) " >&6 21355else 21356 ac_func_search_save_LIBS=$LIBS 21357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21358/* end confdefs.h. */ 21359 21360/* Override any GCC internal prototype to avoid an error. 21361 Use char because int might match the return type of a GCC 21362 builtin and then its argument prototype would still apply. */ 21363#ifdef __cplusplus 21364extern "C" 21365#endif 21366char sodium_init (); 21367int 21368main () 21369{ 21370return sodium_init (); 21371 ; 21372 return 0; 21373} 21374_ACEOF 21375for ac_lib in '' sodium; do 21376 if test -z "$ac_lib"; then 21377 ac_res="none required" 21378 else 21379 ac_res=-l$ac_lib 21380 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21381 fi 21382 if ac_fn_c_try_link "$LINENO"; then : 21383 ac_cv_search_sodium_init=$ac_res 21384fi 21385rm -f core conftest.err conftest.$ac_objext \ 21386 conftest$ac_exeext 21387 if ${ac_cv_search_sodium_init+:} false; then : 21388 break 21389fi 21390done 21391if ${ac_cv_search_sodium_init+:} false; then : 21392 21393else 21394 ac_cv_search_sodium_init=no 21395fi 21396rm conftest.$ac_ext 21397LIBS=$ac_func_search_save_LIBS 21398fi 21399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 21400$as_echo "$ac_cv_search_sodium_init" >&6; } 21401ac_res=$ac_cv_search_sodium_init 21402if test "$ac_res" != no; then : 21403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21404 21405else 21406 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 21407fi 21408 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21410$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 21411if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21412 $as_echo_n "(cached) " >&6 21413else 21414 ac_func_search_save_LIBS=$LIBS 21415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21416/* end confdefs.h. */ 21417 21418/* Override any GCC internal prototype to avoid an error. 21419 Use char because int might match the return type of a GCC 21420 builtin and then its argument prototype would still apply. */ 21421#ifdef __cplusplus 21422extern "C" 21423#endif 21424char crypto_box_curve25519xchacha20poly1305_beforenm (); 21425int 21426main () 21427{ 21428return crypto_box_curve25519xchacha20poly1305_beforenm (); 21429 ; 21430 return 0; 21431} 21432_ACEOF 21433for ac_lib in '' sodium; do 21434 if test -z "$ac_lib"; then 21435 ac_res="none required" 21436 else 21437 ac_res=-l$ac_lib 21438 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21439 fi 21440 if ac_fn_c_try_link "$LINENO"; then : 21441 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 21442fi 21443rm -f core conftest.err conftest.$ac_objext \ 21444 conftest$ac_exeext 21445 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21446 break 21447fi 21448done 21449if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21450 21451else 21452 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 21453fi 21454rm conftest.$ac_ext 21455LIBS=$ac_func_search_save_LIBS 21456fi 21457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21458$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 21459ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 21460if test "$ac_res" != no; then : 21461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21462 21463 ENABLE_DNSCRYPT_XCHACHA20=1 21464 21465 21466$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 21467 21468 21469else 21470 21471 ENABLE_DNSCRYPT_XCHACHA20=0 21472 21473 21474fi 21475 21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 21477$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; } 21478if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21479 $as_echo_n "(cached) " >&6 21480else 21481 ac_func_search_save_LIBS=$LIBS 21482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21483/* end confdefs.h. */ 21484 21485/* Override any GCC internal prototype to avoid an error. 21486 Use char because int might match the return type of a GCC 21487 builtin and then its argument prototype would still apply. */ 21488#ifdef __cplusplus 21489extern "C" 21490#endif 21491char sodium_set_misuse_handler (); 21492int 21493main () 21494{ 21495return sodium_set_misuse_handler (); 21496 ; 21497 return 0; 21498} 21499_ACEOF 21500for ac_lib in '' sodium; do 21501 if test -z "$ac_lib"; then 21502 ac_res="none required" 21503 else 21504 ac_res=-l$ac_lib 21505 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21506 fi 21507 if ac_fn_c_try_link "$LINENO"; then : 21508 ac_cv_search_sodium_set_misuse_handler=$ac_res 21509fi 21510rm -f core conftest.err conftest.$ac_objext \ 21511 conftest$ac_exeext 21512 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21513 break 21514fi 21515done 21516if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21517 21518else 21519 ac_cv_search_sodium_set_misuse_handler=no 21520fi 21521rm conftest.$ac_ext 21522LIBS=$ac_func_search_save_LIBS 21523fi 21524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 21525$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; } 21526ac_res=$ac_cv_search_sodium_set_misuse_handler 21527if test "$ac_res" != no; then : 21528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21529 21530 21531$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 21532 21533 21534fi 21535 21536 21537 21538$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h 21539 21540 ENABLE_DNSCRYPT=1 21541 21542 21543 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 21544 21545 DNSCRYPT_OBJ="dnscrypt.lo" 21546 21547 21548 else 21549 ENABLE_DNSCRYPT_XCHACHA20=0 21550 21551 21552 ENABLE_DNSCRYPT=0 21553 21554 21555 21556 fi 21557 21558 21559# check for cachedb if requested 21560# Check whether --enable-cachedb was given. 21561if test "${enable_cachedb+set}" = set; then : 21562 enableval=$enable_cachedb; 21563fi 21564 21565# turn on cachedb when hiredis support is enabled. 21566if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 21567case "$enable_cachedb" in 21568 yes) 21569 21570$as_echo "#define USE_CACHEDB 1" >>confdefs.h 21571 21572 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c" 21573 21574 CACHEDB_OBJ="cachedb.lo redis.lo" 21575 21576 ;; 21577 no|*) 21578 # nothing 21579 ;; 21580esac 21581 21582# check for ipsecmod if requested 21583# Check whether --enable-ipsecmod was given. 21584if test "${enable_ipsecmod+set}" = set; then : 21585 enableval=$enable_ipsecmod; 21586fi 21587 21588case "$enable_ipsecmod" in 21589 yes) 21590 21591$as_echo "#define USE_IPSECMOD 1" >>confdefs.h 21592 21593 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 21594 21595 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 21596 21597 ;; 21598 no|*) 21599 # nothing 21600 ;; 21601esac 21602 21603# check for ipset if requested 21604# Check whether --enable-ipset was given. 21605if test "${enable_ipset+set}" = set; then : 21606 enableval=$enable_ipset; 21607fi 21608 21609case "$enable_ipset" in 21610 yes) 21611 21612$as_echo "#define USE_IPSET 1" >>confdefs.h 21613 21614 IPSET_SRC="ipset/ipset.c" 21615 21616 IPSET_OBJ="ipset.lo" 21617 21618 21619 # mnl 21620 21621# Check whether --with-libmnl was given. 21622if test "${with_libmnl+set}" = set; then : 21623 withval=$with_libmnl; 21624else 21625 withval="yes" 21626fi 21627 21628 found_libmnl="no" 21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 21630$as_echo_n "checking for libmnl... " >&6; } 21631 if test x_$withval = x_ -o x_$withval = x_yes; then 21632 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21633 fi 21634 for dir in $withval ; do 21635 if test -f "$dir/include/libmnl/libmnl.h"; then 21636 found_libmnl="yes" 21637 if test "$dir" != "/usr"; then 21638 CPPFLAGS="$CPPFLAGS -I$dir/include" 21639 LDFLAGS="$LDFLAGS -L$dir/lib" 21640 fi 21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21642$as_echo "found in $dir" >&6; } 21643 LIBS="$LIBS -lmnl" 21644 break; 21645 fi 21646 done 21647 if test x_$found_libmnl != x_yes; then 21648 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 21649 fi 21650 ;; 21651 no|*) 21652 # nothing 21653 ;; 21654esac 21655# Check whether --enable-explicit-port-randomisation was given. 21656if test "${enable_explicit_port_randomisation+set}" = set; then : 21657 enableval=$enable_explicit_port_randomisation; 21658fi 21659 21660case "$enable_explicit_port_randomisation" in 21661 no) 21662 21663$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 21664 21665 ;; 21666 yes|*) 21667 ;; 21668esac 21669 21670if echo "$host" | $GREP -i -e linux >/dev/null; then 21671 # Check whether --enable-linux-ip-local-port-range was given. 21672if test "${enable_linux_ip_local_port_range+set}" = set; then : 21673 enableval=$enable_linux_ip_local_port_range; 21674fi 21675 21676 case "$enable_linux_ip_local_port_range" in 21677 yes) 21678 21679$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h 21680 21681 ;; 21682 no|*) 21683 ;; 21684 esac 21685fi 21686 21687 21688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 21689$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 21690# on openBSD, the implicit rule make $< work. 21691# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 21692# gmake works. 21693cat >conftest.make <<EOF 21694all: conftest.lo 21695 21696conftest.lo foo.lo bla.lo: 21697 if test -f "\$<"; then touch \$@; fi 21698 21699.SUFFIXES: .lo 21700.c.lo: 21701 if test -f "\$<"; then touch \$@; fi 21702 21703conftest.lo: conftest.dir/conftest.c 21704EOF 21705mkdir conftest.dir 21706touch conftest.dir/conftest.c 21707rm -f conftest.lo conftest.c 21708${MAKE:-make} -f conftest.make >/dev/null 21709rm -f conftest.make conftest.c conftest.dir/conftest.c 21710rm -rf conftest.dir 21711if test ! -f conftest.lo; then 21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21713$as_echo "no" >&6; } 21714 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 21715 SOURCEFILE='`cat .source`' 21716else 21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21718$as_echo "yes" >&6; } 21719 SOURCEDETERMINE=':' 21720 SOURCEFILE='$<' 21721fi 21722rm -f conftest.lo 21723 21724 21725 21726# see if we want to build the library or everything 21727ALLTARGET="alltargets" 21728INSTALLTARGET="install-all" 21729 21730# Check whether --with-libunbound-only was given. 21731if test "${with_libunbound_only+set}" = set; then : 21732 withval=$with_libunbound_only; 21733 if test "$withval" = "yes"; then 21734 ALLTARGET="lib" 21735 INSTALLTARGET="install-lib" 21736 fi 21737 21738fi 21739 21740if test $ALLTARGET = "alltargets"; then 21741 if test $USE_NSS = "yes"; then 21742 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 21743 fi 21744 if test $USE_NETTLE = "yes"; then 21745 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 21746 fi 21747fi 21748 21749 21750 21751 21752 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 21754$as_echo "$as_me: Stripping extension flags..." >&6;} 21755 21756 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 21757 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 21758 21759$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 21760 21761 fi 21762 21763 21764 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 21765 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 21766 21767$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 21768 21769 fi 21770 21771 21772 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 21773 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 21774 21775$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 21776 21777 fi 21778 21779 21780 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 21781 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 21782 21783$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 21784 21785 fi 21786 21787 21788 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 21789 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 21790 21791$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 21792 21793 fi 21794 21795 21796 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 21797 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 21798 21799$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 21800 21801 fi 21802 21803 21804 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 21805 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 21806 21807$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 21808 21809 fi 21810 21811 21812 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 21813 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 21814 21815$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 21816 21817 fi 21818 21819 21820 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 21821 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 21822 21823$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 21824 21825 fi 21826 21827 21828if test -n "$LATE_LDFLAGS"; then 21829 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 21830fi 21831# remove start spaces 21832LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 21833LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 21834 21835 21836cat >>confdefs.h <<_ACEOF 21837#define MAXSYSLOGMSGLEN 10240 21838_ACEOF 21839 21840 21841 21842 21843version=1.14.0rc1 21844 21845date=`date +'%b %e, %Y'` 21846 21847 21848ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service" 21849 21850ac_config_headers="$ac_config_headers config.h" 21851 21852cat >confcache <<\_ACEOF 21853# This file is a shell script that caches the results of configure 21854# tests run on this system so they can be shared between configure 21855# scripts and configure runs, see configure's option --config-cache. 21856# It is not useful on other systems. If it contains results you don't 21857# want to keep, you may remove or edit it. 21858# 21859# config.status only pays attention to the cache file if you give it 21860# the --recheck option to rerun configure. 21861# 21862# `ac_cv_env_foo' variables (set or unset) will be overridden when 21863# loading this file, other *unset* `ac_cv_foo' will be assigned the 21864# following values. 21865 21866_ACEOF 21867 21868# The following way of writing the cache mishandles newlines in values, 21869# but we know of no workaround that is simple, portable, and efficient. 21870# So, we kill variables containing newlines. 21871# Ultrix sh set writes to stderr and can't be redirected directly, 21872# and sets the high bit in the cache file unless we assign to the vars. 21873( 21874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21875 eval ac_val=\$$ac_var 21876 case $ac_val in #( 21877 *${as_nl}*) 21878 case $ac_var in #( 21879 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21880$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21881 esac 21882 case $ac_var in #( 21883 _ | IFS | as_nl) ;; #( 21884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21885 *) { eval $ac_var=; unset $ac_var;} ;; 21886 esac ;; 21887 esac 21888 done 21889 21890 (set) 2>&1 | 21891 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21892 *${as_nl}ac_space=\ *) 21893 # `set' does not quote correctly, so add quotes: double-quote 21894 # substitution turns \\\\ into \\, and sed turns \\ into \. 21895 sed -n \ 21896 "s/'/'\\\\''/g; 21897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21898 ;; #( 21899 *) 21900 # `set' quotes correctly as required by POSIX, so do not add quotes. 21901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21902 ;; 21903 esac | 21904 sort 21905) | 21906 sed ' 21907 /^ac_cv_env_/b end 21908 t clear 21909 :clear 21910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21911 t end 21912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21913 :end' >>confcache 21914if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21915 if test -w "$cache_file"; then 21916 if test "x$cache_file" != "x/dev/null"; then 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21918$as_echo "$as_me: updating cache $cache_file" >&6;} 21919 if test ! -f "$cache_file" || test -h "$cache_file"; then 21920 cat confcache >"$cache_file" 21921 else 21922 case $cache_file in #( 21923 */* | ?:*) 21924 mv -f confcache "$cache_file"$$ && 21925 mv -f "$cache_file"$$ "$cache_file" ;; #( 21926 *) 21927 mv -f confcache "$cache_file" ;; 21928 esac 21929 fi 21930 fi 21931 else 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21933$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21934 fi 21935fi 21936rm -f confcache 21937 21938test "x$prefix" = xNONE && prefix=$ac_default_prefix 21939# Let make expand exec_prefix. 21940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21941 21942DEFS=-DHAVE_CONFIG_H 21943 21944ac_libobjs= 21945ac_ltlibobjs= 21946U= 21947for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21948 # 1. Remove the extension, and $U if already installed. 21949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21950 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21952 # will be set to the directory where LIBOBJS objects are built. 21953 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21954 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21955done 21956LIBOBJS=$ac_libobjs 21957 21958LTLIBOBJS=$ac_ltlibobjs 21959 21960 21961if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 21962 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 21963Usually this means the macro was only invoked conditionally." "$LINENO" 5 21964fi 21965 21966: "${CONFIG_STATUS=./config.status}" 21967ac_write_fail=0 21968ac_clean_files_save=$ac_clean_files 21969ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21970{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21972as_write_fail=0 21973cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21974#! $SHELL 21975# Generated by $as_me. 21976# Run this file to recreate the current configuration. 21977# Compiler output produced by configure, useful for debugging 21978# configure, is in config.log if it exists. 21979 21980debug=false 21981ac_cs_recheck=false 21982ac_cs_silent=false 21983 21984SHELL=\${CONFIG_SHELL-$SHELL} 21985export SHELL 21986_ASEOF 21987cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21988## -------------------- ## 21989## M4sh Initialization. ## 21990## -------------------- ## 21991 21992# Be more Bourne compatible 21993DUALCASE=1; export DUALCASE # for MKS sh 21994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21995 emulate sh 21996 NULLCMD=: 21997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21998 # is contrary to our usage. Disable this feature. 21999 alias -g '${1+"$@"}'='"$@"' 22000 setopt NO_GLOB_SUBST 22001else 22002 case `(set -o) 2>/dev/null` in #( 22003 *posix*) : 22004 set -o posix ;; #( 22005 *) : 22006 ;; 22007esac 22008fi 22009 22010 22011as_nl=' 22012' 22013export as_nl 22014# Printing a long string crashes Solaris 7 /usr/bin/printf. 22015as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22018# Prefer a ksh shell builtin over an external printf program on Solaris, 22019# but without wasting forks for bash or zsh. 22020if test -z "$BASH_VERSION$ZSH_VERSION" \ 22021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22022 as_echo='print -r --' 22023 as_echo_n='print -rn --' 22024elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22025 as_echo='printf %s\n' 22026 as_echo_n='printf %s' 22027else 22028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22030 as_echo_n='/usr/ucb/echo -n' 22031 else 22032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22033 as_echo_n_body='eval 22034 arg=$1; 22035 case $arg in #( 22036 *"$as_nl"*) 22037 expr "X$arg" : "X\\(.*\\)$as_nl"; 22038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22039 esac; 22040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22041 ' 22042 export as_echo_n_body 22043 as_echo_n='sh -c $as_echo_n_body as_echo' 22044 fi 22045 export as_echo_body 22046 as_echo='sh -c $as_echo_body as_echo' 22047fi 22048 22049# The user is always right. 22050if test "${PATH_SEPARATOR+set}" != set; then 22051 PATH_SEPARATOR=: 22052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22054 PATH_SEPARATOR=';' 22055 } 22056fi 22057 22058 22059# IFS 22060# We need space, tab and new line, in precisely that order. Quoting is 22061# there to prevent editors from complaining about space-tab. 22062# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22063# splitting by setting IFS to empty value.) 22064IFS=" "" $as_nl" 22065 22066# Find who we are. Look in the path if we contain no directory separator. 22067as_myself= 22068case $0 in #(( 22069 *[\\/]* ) as_myself=$0 ;; 22070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22071for as_dir in $PATH 22072do 22073 IFS=$as_save_IFS 22074 test -z "$as_dir" && as_dir=. 22075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22076 done 22077IFS=$as_save_IFS 22078 22079 ;; 22080esac 22081# We did not find ourselves, most probably we were run as `sh COMMAND' 22082# in which case we are not to be found in the path. 22083if test "x$as_myself" = x; then 22084 as_myself=$0 22085fi 22086if test ! -f "$as_myself"; then 22087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22088 exit 1 22089fi 22090 22091# Unset variables that we do not need and which cause bugs (e.g. in 22092# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22093# suppresses any "Segmentation fault" message there. '((' could 22094# trigger a bug in pdksh 5.2.14. 22095for as_var in BASH_ENV ENV MAIL MAILPATH 22096do eval test x\${$as_var+set} = xset \ 22097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22098done 22099PS1='$ ' 22100PS2='> ' 22101PS4='+ ' 22102 22103# NLS nuisances. 22104LC_ALL=C 22105export LC_ALL 22106LANGUAGE=C 22107export LANGUAGE 22108 22109# CDPATH. 22110(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22111 22112 22113# as_fn_error STATUS ERROR [LINENO LOG_FD] 22114# ---------------------------------------- 22115# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22116# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22117# script with STATUS, using 1 if that was 0. 22118as_fn_error () 22119{ 22120 as_status=$1; test $as_status -eq 0 && as_status=1 22121 if test "$4"; then 22122 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22124 fi 22125 $as_echo "$as_me: error: $2" >&2 22126 as_fn_exit $as_status 22127} # as_fn_error 22128 22129 22130# as_fn_set_status STATUS 22131# ----------------------- 22132# Set $? to STATUS, without forking. 22133as_fn_set_status () 22134{ 22135 return $1 22136} # as_fn_set_status 22137 22138# as_fn_exit STATUS 22139# ----------------- 22140# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22141as_fn_exit () 22142{ 22143 set +e 22144 as_fn_set_status $1 22145 exit $1 22146} # as_fn_exit 22147 22148# as_fn_unset VAR 22149# --------------- 22150# Portably unset VAR. 22151as_fn_unset () 22152{ 22153 { eval $1=; unset $1;} 22154} 22155as_unset=as_fn_unset 22156# as_fn_append VAR VALUE 22157# ---------------------- 22158# Append the text in VALUE to the end of the definition contained in VAR. Take 22159# advantage of any shell optimizations that allow amortized linear growth over 22160# repeated appends, instead of the typical quadratic growth present in naive 22161# implementations. 22162if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22163 eval 'as_fn_append () 22164 { 22165 eval $1+=\$2 22166 }' 22167else 22168 as_fn_append () 22169 { 22170 eval $1=\$$1\$2 22171 } 22172fi # as_fn_append 22173 22174# as_fn_arith ARG... 22175# ------------------ 22176# Perform arithmetic evaluation on the ARGs, and store the result in the 22177# global $as_val. Take advantage of shells that can avoid forks. The arguments 22178# must be portable across $(()) and expr. 22179if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22180 eval 'as_fn_arith () 22181 { 22182 as_val=$(( $* )) 22183 }' 22184else 22185 as_fn_arith () 22186 { 22187 as_val=`expr "$@" || test $? -eq 1` 22188 } 22189fi # as_fn_arith 22190 22191 22192if expr a : '\(a\)' >/dev/null 2>&1 && 22193 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22194 as_expr=expr 22195else 22196 as_expr=false 22197fi 22198 22199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22200 as_basename=basename 22201else 22202 as_basename=false 22203fi 22204 22205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22206 as_dirname=dirname 22207else 22208 as_dirname=false 22209fi 22210 22211as_me=`$as_basename -- "$0" || 22212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22213 X"$0" : 'X\(//\)$' \| \ 22214 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22215$as_echo X/"$0" | 22216 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22217 s//\1/ 22218 q 22219 } 22220 /^X\/\(\/\/\)$/{ 22221 s//\1/ 22222 q 22223 } 22224 /^X\/\(\/\).*/{ 22225 s//\1/ 22226 q 22227 } 22228 s/.*/./; q'` 22229 22230# Avoid depending upon Character Ranges. 22231as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22233as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22234as_cr_digits='0123456789' 22235as_cr_alnum=$as_cr_Letters$as_cr_digits 22236 22237ECHO_C= ECHO_N= ECHO_T= 22238case `echo -n x` in #((((( 22239-n*) 22240 case `echo 'xy\c'` in 22241 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22242 xy) ECHO_C='\c';; 22243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22244 ECHO_T=' ';; 22245 esac;; 22246*) 22247 ECHO_N='-n';; 22248esac 22249 22250rm -f conf$$ conf$$.exe conf$$.file 22251if test -d conf$$.dir; then 22252 rm -f conf$$.dir/conf$$.file 22253else 22254 rm -f conf$$.dir 22255 mkdir conf$$.dir 2>/dev/null 22256fi 22257if (echo >conf$$.file) 2>/dev/null; then 22258 if ln -s conf$$.file conf$$ 2>/dev/null; then 22259 as_ln_s='ln -s' 22260 # ... but there are two gotchas: 22261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22263 # In both cases, we have to default to `cp -pR'. 22264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22265 as_ln_s='cp -pR' 22266 elif ln conf$$.file conf$$ 2>/dev/null; then 22267 as_ln_s=ln 22268 else 22269 as_ln_s='cp -pR' 22270 fi 22271else 22272 as_ln_s='cp -pR' 22273fi 22274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22275rmdir conf$$.dir 2>/dev/null 22276 22277 22278# as_fn_mkdir_p 22279# ------------- 22280# Create "$as_dir" as a directory, including parents if necessary. 22281as_fn_mkdir_p () 22282{ 22283 22284 case $as_dir in #( 22285 -*) as_dir=./$as_dir;; 22286 esac 22287 test -d "$as_dir" || eval $as_mkdir_p || { 22288 as_dirs= 22289 while :; do 22290 case $as_dir in #( 22291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22292 *) as_qdir=$as_dir;; 22293 esac 22294 as_dirs="'$as_qdir' $as_dirs" 22295 as_dir=`$as_dirname -- "$as_dir" || 22296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22297 X"$as_dir" : 'X\(//\)[^/]' \| \ 22298 X"$as_dir" : 'X\(//\)$' \| \ 22299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22300$as_echo X"$as_dir" | 22301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22302 s//\1/ 22303 q 22304 } 22305 /^X\(\/\/\)[^/].*/{ 22306 s//\1/ 22307 q 22308 } 22309 /^X\(\/\/\)$/{ 22310 s//\1/ 22311 q 22312 } 22313 /^X\(\/\).*/{ 22314 s//\1/ 22315 q 22316 } 22317 s/.*/./; q'` 22318 test -d "$as_dir" && break 22319 done 22320 test -z "$as_dirs" || eval "mkdir $as_dirs" 22321 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22322 22323 22324} # as_fn_mkdir_p 22325if mkdir -p . 2>/dev/null; then 22326 as_mkdir_p='mkdir -p "$as_dir"' 22327else 22328 test -d ./-p && rmdir ./-p 22329 as_mkdir_p=false 22330fi 22331 22332 22333# as_fn_executable_p FILE 22334# ----------------------- 22335# Test if FILE is an executable regular file. 22336as_fn_executable_p () 22337{ 22338 test -f "$1" && test -x "$1" 22339} # as_fn_executable_p 22340as_test_x='test -x' 22341as_executable_p=as_fn_executable_p 22342 22343# Sed expression to map a string onto a valid CPP name. 22344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22345 22346# Sed expression to map a string onto a valid variable name. 22347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22348 22349 22350exec 6>&1 22351## ----------------------------------- ## 22352## Main body of $CONFIG_STATUS script. ## 22353## ----------------------------------- ## 22354_ASEOF 22355test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22356 22357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22358# Save the log message, to keep $0 and so on meaningful, and to 22359# report actual input values of CONFIG_FILES etc. instead of their 22360# values after options handling. 22361ac_log=" 22362This file was extended by unbound $as_me 1.14.0rc1, which was 22363generated by GNU Autoconf 2.69. Invocation command line was 22364 22365 CONFIG_FILES = $CONFIG_FILES 22366 CONFIG_HEADERS = $CONFIG_HEADERS 22367 CONFIG_LINKS = $CONFIG_LINKS 22368 CONFIG_COMMANDS = $CONFIG_COMMANDS 22369 $ $0 $@ 22370 22371on `(hostname || uname -n) 2>/dev/null | sed 1q` 22372" 22373 22374_ACEOF 22375 22376case $ac_config_files in *" 22377"*) set x $ac_config_files; shift; ac_config_files=$*;; 22378esac 22379 22380case $ac_config_headers in *" 22381"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22382esac 22383 22384 22385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22386# Files that config.status was made for. 22387config_files="$ac_config_files" 22388config_headers="$ac_config_headers" 22389config_commands="$ac_config_commands" 22390 22391_ACEOF 22392 22393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22394ac_cs_usage="\ 22395\`$as_me' instantiates files and other configuration actions 22396from templates according to the current configuration. Unless the files 22397and actions are specified as TAGs, all are instantiated by default. 22398 22399Usage: $0 [OPTION]... [TAG]... 22400 22401 -h, --help print this help, then exit 22402 -V, --version print version number and configuration settings, then exit 22403 --config print configuration, then exit 22404 -q, --quiet, --silent 22405 do not print progress messages 22406 -d, --debug don't remove temporary files 22407 --recheck update $as_me by reconfiguring in the same conditions 22408 --file=FILE[:TEMPLATE] 22409 instantiate the configuration file FILE 22410 --header=FILE[:TEMPLATE] 22411 instantiate the configuration header FILE 22412 22413Configuration files: 22414$config_files 22415 22416Configuration headers: 22417$config_headers 22418 22419Configuration commands: 22420$config_commands 22421 22422Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 22423 22424_ACEOF 22425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22426ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22427ac_cs_version="\\ 22428unbound config.status 1.14.0rc1 22429configured by $0, generated by GNU Autoconf 2.69, 22430 with options \\"\$ac_cs_config\\" 22431 22432Copyright (C) 2012 Free Software Foundation, Inc. 22433This config.status script is free software; the Free Software Foundation 22434gives unlimited permission to copy, distribute and modify it." 22435 22436ac_pwd='$ac_pwd' 22437srcdir='$srcdir' 22438AWK='$AWK' 22439test -n "\$AWK" || AWK=awk 22440_ACEOF 22441 22442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22443# The default lists apply if the user does not specify any file. 22444ac_need_defaults=: 22445while test $# != 0 22446do 22447 case $1 in 22448 --*=?*) 22449 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22451 ac_shift=: 22452 ;; 22453 --*=) 22454 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22455 ac_optarg= 22456 ac_shift=: 22457 ;; 22458 *) 22459 ac_option=$1 22460 ac_optarg=$2 22461 ac_shift=shift 22462 ;; 22463 esac 22464 22465 case $ac_option in 22466 # Handling of the options. 22467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22468 ac_cs_recheck=: ;; 22469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22470 $as_echo "$ac_cs_version"; exit ;; 22471 --config | --confi | --conf | --con | --co | --c ) 22472 $as_echo "$ac_cs_config"; exit ;; 22473 --debug | --debu | --deb | --de | --d | -d ) 22474 debug=: ;; 22475 --file | --fil | --fi | --f ) 22476 $ac_shift 22477 case $ac_optarg in 22478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22479 '') as_fn_error $? "missing file argument" ;; 22480 esac 22481 as_fn_append CONFIG_FILES " '$ac_optarg'" 22482 ac_need_defaults=false;; 22483 --header | --heade | --head | --hea ) 22484 $ac_shift 22485 case $ac_optarg in 22486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22487 esac 22488 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22489 ac_need_defaults=false;; 22490 --he | --h) 22491 # Conflict between --help and --header 22492 as_fn_error $? "ambiguous option: \`$1' 22493Try \`$0 --help' for more information.";; 22494 --help | --hel | -h ) 22495 $as_echo "$ac_cs_usage"; exit ;; 22496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22497 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22498 ac_cs_silent=: ;; 22499 22500 # This is an error. 22501 -*) as_fn_error $? "unrecognized option: \`$1' 22502Try \`$0 --help' for more information." ;; 22503 22504 *) as_fn_append ac_config_targets " $1" 22505 ac_need_defaults=false ;; 22506 22507 esac 22508 shift 22509done 22510 22511ac_configure_extra_args= 22512 22513if $ac_cs_silent; then 22514 exec 6>/dev/null 22515 ac_configure_extra_args="$ac_configure_extra_args --silent" 22516fi 22517 22518_ACEOF 22519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22520if \$ac_cs_recheck; then 22521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22522 shift 22523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22524 CONFIG_SHELL='$SHELL' 22525 export CONFIG_SHELL 22526 exec "\$@" 22527fi 22528 22529_ACEOF 22530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22531exec 5>>config.log 22532{ 22533 echo 22534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22535## Running $as_me. ## 22536_ASBOX 22537 $as_echo "$ac_log" 22538} >&5 22539 22540_ACEOF 22541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22542# 22543# INIT-COMMANDS 22544# 22545 22546 22547# The HP-UX ksh and POSIX shell print the target directory to stdout 22548# if CDPATH is set. 22549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22550 22551sed_quote_subst='$sed_quote_subst' 22552double_quote_subst='$double_quote_subst' 22553delay_variable_subst='$delay_variable_subst' 22554macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22555macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22556enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22557enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22558pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22559enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22560shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22561SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22562ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22563PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22564host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22565host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22566host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22567build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22568build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22569build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22570SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22571Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22572GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22573EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22574FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22575LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22576NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22577LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22578max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22579ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22580exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22581lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22582lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22583lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22584lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22585lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22586reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22587reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22588OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22589deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22590file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22591file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22592want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22593DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22594sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22595AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22596AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22597archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22598STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22599RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22600old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22601old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22602old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22603lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22604CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22605CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22606compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22607GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22608lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22609lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22610lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22611lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22612lt_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"`' 22613lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22614nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22615lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22616lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22617objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22618MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22619lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22620lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22621lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22622lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22623lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22624need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22625MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22626DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22627NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22628LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22629OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22630OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22631libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22632shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22633extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22634archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22635enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22636export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22637whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22638compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22639old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22640old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22641archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22642archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22643module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22644module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22645with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22646allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22647no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22648hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22649hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22650hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22651hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22652hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22653hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22654hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22655inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22656link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22657always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22658export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22659exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22660include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22661prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22662postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22663file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22664variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22665need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22666need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22667version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22668runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22669shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22670shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22671libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22672library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22673soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22674install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22675postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22676postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22677finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22678finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22679hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22680sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22681configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22682configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22683hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22684enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22685enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22686enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22687old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22688striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22689 22690LTCC='$LTCC' 22691LTCFLAGS='$LTCFLAGS' 22692compiler='$compiler_DEFAULT' 22693 22694# A function that is used when there is no print builtin or printf. 22695func_fallback_echo () 22696{ 22697 eval 'cat <<_LTECHO_EOF 22698\$1 22699_LTECHO_EOF' 22700} 22701 22702# Quote evaled strings. 22703for var in SHELL \ 22704ECHO \ 22705PATH_SEPARATOR \ 22706SED \ 22707GREP \ 22708EGREP \ 22709FGREP \ 22710LD \ 22711NM \ 22712LN_S \ 22713lt_SP2NL \ 22714lt_NL2SP \ 22715reload_flag \ 22716OBJDUMP \ 22717deplibs_check_method \ 22718file_magic_cmd \ 22719file_magic_glob \ 22720want_nocaseglob \ 22721DLLTOOL \ 22722sharedlib_from_linklib_cmd \ 22723AR \ 22724AR_FLAGS \ 22725archiver_list_spec \ 22726STRIP \ 22727RANLIB \ 22728CC \ 22729CFLAGS \ 22730compiler \ 22731lt_cv_sys_global_symbol_pipe \ 22732lt_cv_sys_global_symbol_to_cdecl \ 22733lt_cv_sys_global_symbol_to_import \ 22734lt_cv_sys_global_symbol_to_c_name_address \ 22735lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22736lt_cv_nm_interface \ 22737nm_file_list_spec \ 22738lt_cv_truncate_bin \ 22739lt_prog_compiler_no_builtin_flag \ 22740lt_prog_compiler_pic \ 22741lt_prog_compiler_wl \ 22742lt_prog_compiler_static \ 22743lt_cv_prog_compiler_c_o \ 22744need_locks \ 22745MANIFEST_TOOL \ 22746DSYMUTIL \ 22747NMEDIT \ 22748LIPO \ 22749OTOOL \ 22750OTOOL64 \ 22751shrext_cmds \ 22752export_dynamic_flag_spec \ 22753whole_archive_flag_spec \ 22754compiler_needs_object \ 22755with_gnu_ld \ 22756allow_undefined_flag \ 22757no_undefined_flag \ 22758hardcode_libdir_flag_spec \ 22759hardcode_libdir_separator \ 22760exclude_expsyms \ 22761include_expsyms \ 22762file_list_spec \ 22763variables_saved_for_relink \ 22764libname_spec \ 22765library_names_spec \ 22766soname_spec \ 22767install_override_mode \ 22768finish_eval \ 22769old_striplib \ 22770striplib; do 22771 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22772 *[\\\\\\\`\\"\\\$]*) 22773 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22774 ;; 22775 *) 22776 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22777 ;; 22778 esac 22779done 22780 22781# Double-quote double-evaled strings. 22782for var in reload_cmds \ 22783old_postinstall_cmds \ 22784old_postuninstall_cmds \ 22785old_archive_cmds \ 22786extract_expsyms_cmds \ 22787old_archive_from_new_cmds \ 22788old_archive_from_expsyms_cmds \ 22789archive_cmds \ 22790archive_expsym_cmds \ 22791module_cmds \ 22792module_expsym_cmds \ 22793export_symbols_cmds \ 22794prelink_cmds \ 22795postlink_cmds \ 22796postinstall_cmds \ 22797postuninstall_cmds \ 22798finish_cmds \ 22799sys_lib_search_path_spec \ 22800configure_time_dlsearch_path \ 22801configure_time_lt_sys_library_path; do 22802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22803 *[\\\\\\\`\\"\\\$]*) 22804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22805 ;; 22806 *) 22807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22808 ;; 22809 esac 22810done 22811 22812ac_aux_dir='$ac_aux_dir' 22813 22814# See if we are running on zsh, and set the options that allow our 22815# commands through without removal of \ escapes INIT. 22816if test -n "\${ZSH_VERSION+set}"; then 22817 setopt NO_GLOB_SUBST 22818fi 22819 22820 22821 PACKAGE='$PACKAGE' 22822 VERSION='$VERSION' 22823 RM='$RM' 22824 ofile='$ofile' 22825 22826 22827 22828 22829_ACEOF 22830 22831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22832 22833# Handling of arguments. 22834for ac_config_target in $ac_config_targets 22835do 22836 case $ac_config_target in 22837 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22838 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 22839 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22840 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 22841 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 22842 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 22843 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 22844 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 22845 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 22846 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 22847 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 22848 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 22849 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 22850 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 22851 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;; 22852 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;; 22853 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;; 22854 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;; 22855 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22856 22857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22858 esac 22859done 22860 22861 22862# If the user did not use the arguments to specify the items to instantiate, 22863# then the envvar interface is used. Set only those that are not. 22864# We use the long form for the default assignment because of an extremely 22865# bizarre bug on SunOS 4.1.3. 22866if $ac_need_defaults; then 22867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22870fi 22871 22872# Have a temporary directory for convenience. Make it in the build tree 22873# simply because there is no reason against having it here, and in addition, 22874# creating and moving files from /tmp can sometimes cause problems. 22875# Hook for its removal unless debugging. 22876# Note that there is a small window in which the directory will not be cleaned: 22877# after its creation but before its name has been assigned to `$tmp'. 22878$debug || 22879{ 22880 tmp= ac_tmp= 22881 trap 'exit_status=$? 22882 : "${ac_tmp:=$tmp}" 22883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22884' 0 22885 trap 'as_fn_exit 1' 1 2 13 15 22886} 22887# Create a (secure) tmp directory for tmp files. 22888 22889{ 22890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22891 test -d "$tmp" 22892} || 22893{ 22894 tmp=./conf$$-$RANDOM 22895 (umask 077 && mkdir "$tmp") 22896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22897ac_tmp=$tmp 22898 22899# Set up the scripts for CONFIG_FILES section. 22900# No need to generate them if there are no CONFIG_FILES. 22901# This happens for instance with `./config.status config.h'. 22902if test -n "$CONFIG_FILES"; then 22903 22904 22905ac_cr=`echo X | tr X '\015'` 22906# On cygwin, bash can eat \r inside `` if the user requested igncr. 22907# But we know of no other shell where ac_cr would be empty at this 22908# point, so we can use a bashism as a fallback. 22909if test "x$ac_cr" = x; then 22910 eval ac_cr=\$\'\\r\' 22911fi 22912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22914 ac_cs_awk_cr='\\r' 22915else 22916 ac_cs_awk_cr=$ac_cr 22917fi 22918 22919echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22920_ACEOF 22921 22922 22923{ 22924 echo "cat >conf$$subs.awk <<_ACEOF" && 22925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22926 echo "_ACEOF" 22927} >conf$$subs.sh || 22928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22930ac_delim='%!_!# ' 22931for ac_last_try in false false false false false :; do 22932 . ./conf$$subs.sh || 22933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22934 22935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22936 if test $ac_delim_n = $ac_delim_num; then 22937 break 22938 elif $ac_last_try; then 22939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22940 else 22941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22942 fi 22943done 22944rm -f conf$$subs.sh 22945 22946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22948_ACEOF 22949sed -n ' 22950h 22951s/^/S["/; s/!.*/"]=/ 22952p 22953g 22954s/^[^!]*!// 22955:repl 22956t repl 22957s/'"$ac_delim"'$// 22958t delim 22959:nl 22960h 22961s/\(.\{148\}\)..*/\1/ 22962t more1 22963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22964p 22965n 22966b repl 22967:more1 22968s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22969p 22970g 22971s/.\{148\}// 22972t nl 22973:delim 22974h 22975s/\(.\{148\}\)..*/\1/ 22976t more2 22977s/["\\]/\\&/g; s/^/"/; s/$/"/ 22978p 22979b 22980:more2 22981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22982p 22983g 22984s/.\{148\}// 22985t delim 22986' <conf$$subs.awk | sed ' 22987/^[^""]/{ 22988 N 22989 s/\n// 22990} 22991' >>$CONFIG_STATUS || ac_write_fail=1 22992rm -f conf$$subs.awk 22993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22994_ACAWK 22995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22996 for (key in S) S_is_set[key] = 1 22997 FS = "" 22998 22999} 23000{ 23001 line = $ 0 23002 nfields = split(line, field, "@") 23003 substed = 0 23004 len = length(field[1]) 23005 for (i = 2; i < nfields; i++) { 23006 key = field[i] 23007 keylen = length(key) 23008 if (S_is_set[key]) { 23009 value = S[key] 23010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23011 len += length(value) + length(field[++i]) 23012 substed = 1 23013 } else 23014 len += 1 + keylen 23015 } 23016 23017 print line 23018} 23019 23020_ACAWK 23021_ACEOF 23022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23025else 23026 cat 23027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23029_ACEOF 23030 23031# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23033# trailing colons and then remove the whole line if VPATH becomes empty 23034# (actually we leave an empty line to preserve line numbers). 23035if test "x$srcdir" = x.; then 23036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23037h 23038s/// 23039s/^/:/ 23040s/[ ]*$/:/ 23041s/:\$(srcdir):/:/g 23042s/:\${srcdir}:/:/g 23043s/:@srcdir@:/:/g 23044s/^:*// 23045s/:*$// 23046x 23047s/\(=[ ]*\).*/\1/ 23048G 23049s/\n// 23050s/^[^=]*=[ ]*$// 23051}' 23052fi 23053 23054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23055fi # test -n "$CONFIG_FILES" 23056 23057# Set up the scripts for CONFIG_HEADERS section. 23058# No need to generate them if there are no CONFIG_HEADERS. 23059# This happens for instance with `./config.status Makefile'. 23060if test -n "$CONFIG_HEADERS"; then 23061cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23062BEGIN { 23063_ACEOF 23064 23065# Transform confdefs.h into an awk script `defines.awk', embedded as 23066# here-document in config.status, that substitutes the proper values into 23067# config.h.in to produce config.h. 23068 23069# Create a delimiter string that does not exist in confdefs.h, to ease 23070# handling of long lines. 23071ac_delim='%!_!# ' 23072for ac_last_try in false false :; do 23073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23074 if test -z "$ac_tt"; then 23075 break 23076 elif $ac_last_try; then 23077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23078 else 23079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23080 fi 23081done 23082 23083# For the awk script, D is an array of macro values keyed by name, 23084# likewise P contains macro parameters if any. Preserve backslash 23085# newline sequences. 23086 23087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23088sed -n ' 23089s/.\{148\}/&'"$ac_delim"'/g 23090t rset 23091:rset 23092s/^[ ]*#[ ]*define[ ][ ]*/ / 23093t def 23094d 23095:def 23096s/\\$// 23097t bsnl 23098s/["\\]/\\&/g 23099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23100D["\1"]=" \3"/p 23101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23102d 23103:bsnl 23104s/["\\]/\\&/g 23105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23106D["\1"]=" \3\\\\\\n"\\/p 23107t cont 23108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23109t cont 23110d 23111:cont 23112n 23113s/.\{148\}/&'"$ac_delim"'/g 23114t clear 23115:clear 23116s/\\$// 23117t bsnlc 23118s/["\\]/\\&/g; s/^/"/; s/$/"/p 23119d 23120:bsnlc 23121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23122b cont 23123' <confdefs.h | sed ' 23124s/'"$ac_delim"'/"\\\ 23125"/g' >>$CONFIG_STATUS || ac_write_fail=1 23126 23127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23128 for (key in D) D_is_set[key] = 1 23129 FS = "" 23130} 23131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23132 line = \$ 0 23133 split(line, arg, " ") 23134 if (arg[1] == "#") { 23135 defundef = arg[2] 23136 mac1 = arg[3] 23137 } else { 23138 defundef = substr(arg[1], 2) 23139 mac1 = arg[2] 23140 } 23141 split(mac1, mac2, "(") #) 23142 macro = mac2[1] 23143 prefix = substr(line, 1, index(line, defundef) - 1) 23144 if (D_is_set[macro]) { 23145 # Preserve the white space surrounding the "#". 23146 print prefix "define", macro P[macro] D[macro] 23147 next 23148 } else { 23149 # Replace #undef with comments. This is necessary, for example, 23150 # in the case of _POSIX_SOURCE, which is predefined and required 23151 # on some systems where configure will not decide to define it. 23152 if (defundef == "undef") { 23153 print "/*", prefix defundef, macro, "*/" 23154 next 23155 } 23156 } 23157} 23158{ print } 23159_ACAWK 23160_ACEOF 23161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23163fi # test -n "$CONFIG_HEADERS" 23164 23165 23166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23167shift 23168for ac_tag 23169do 23170 case $ac_tag in 23171 :[FHLC]) ac_mode=$ac_tag; continue;; 23172 esac 23173 case $ac_mode$ac_tag in 23174 :[FHL]*:*);; 23175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23176 :[FH]-) ac_tag=-:-;; 23177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23178 esac 23179 ac_save_IFS=$IFS 23180 IFS=: 23181 set x $ac_tag 23182 IFS=$ac_save_IFS 23183 shift 23184 ac_file=$1 23185 shift 23186 23187 case $ac_mode in 23188 :L) ac_source=$1;; 23189 :[FH]) 23190 ac_file_inputs= 23191 for ac_f 23192 do 23193 case $ac_f in 23194 -) ac_f="$ac_tmp/stdin";; 23195 *) # Look for the file first in the build tree, then in the source tree 23196 # (if the path is not absolute). The absolute path cannot be DOS-style, 23197 # because $ac_f cannot contain `:'. 23198 test -f "$ac_f" || 23199 case $ac_f in 23200 [\\/$]*) false;; 23201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23202 esac || 23203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23204 esac 23205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23206 as_fn_append ac_file_inputs " '$ac_f'" 23207 done 23208 23209 # Let's still pretend it is `configure' which instantiates (i.e., don't 23210 # use $as_me), people would be surprised to read: 23211 # /* config.h. Generated by config.status. */ 23212 configure_input='Generated from '` 23213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23214 `' by configure.' 23215 if test x"$ac_file" != x-; then 23216 configure_input="$ac_file. $configure_input" 23217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23218$as_echo "$as_me: creating $ac_file" >&6;} 23219 fi 23220 # Neutralize special characters interpreted by sed in replacement strings. 23221 case $configure_input in #( 23222 *\&* | *\|* | *\\* ) 23223 ac_sed_conf_input=`$as_echo "$configure_input" | 23224 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23225 *) ac_sed_conf_input=$configure_input;; 23226 esac 23227 23228 case $ac_tag in 23229 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23231 esac 23232 ;; 23233 esac 23234 23235 ac_dir=`$as_dirname -- "$ac_file" || 23236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23237 X"$ac_file" : 'X\(//\)[^/]' \| \ 23238 X"$ac_file" : 'X\(//\)$' \| \ 23239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23240$as_echo X"$ac_file" | 23241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23242 s//\1/ 23243 q 23244 } 23245 /^X\(\/\/\)[^/].*/{ 23246 s//\1/ 23247 q 23248 } 23249 /^X\(\/\/\)$/{ 23250 s//\1/ 23251 q 23252 } 23253 /^X\(\/\).*/{ 23254 s//\1/ 23255 q 23256 } 23257 s/.*/./; q'` 23258 as_dir="$ac_dir"; as_fn_mkdir_p 23259 ac_builddir=. 23260 23261case "$ac_dir" in 23262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23263*) 23264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23265 # A ".." for each directory in $ac_dir_suffix. 23266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23267 case $ac_top_builddir_sub in 23268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23270 esac ;; 23271esac 23272ac_abs_top_builddir=$ac_pwd 23273ac_abs_builddir=$ac_pwd$ac_dir_suffix 23274# for backward compatibility: 23275ac_top_builddir=$ac_top_build_prefix 23276 23277case $srcdir in 23278 .) # We are building in place. 23279 ac_srcdir=. 23280 ac_top_srcdir=$ac_top_builddir_sub 23281 ac_abs_top_srcdir=$ac_pwd ;; 23282 [\\/]* | ?:[\\/]* ) # Absolute name. 23283 ac_srcdir=$srcdir$ac_dir_suffix; 23284 ac_top_srcdir=$srcdir 23285 ac_abs_top_srcdir=$srcdir ;; 23286 *) # Relative name. 23287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23288 ac_top_srcdir=$ac_top_build_prefix$srcdir 23289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23290esac 23291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23292 23293 23294 case $ac_mode in 23295 :F) 23296 # 23297 # CONFIG_FILE 23298 # 23299 23300_ACEOF 23301 23302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23303# If the template does not know about datarootdir, expand it. 23304# FIXME: This hack should be removed a few years after 2.60. 23305ac_datarootdir_hack=; ac_datarootdir_seen= 23306ac_sed_dataroot=' 23307/datarootdir/ { 23308 p 23309 q 23310} 23311/@datadir@/p 23312/@docdir@/p 23313/@infodir@/p 23314/@localedir@/p 23315/@mandir@/p' 23316case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23317*datarootdir*) ac_datarootdir_seen=yes;; 23318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23320$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23321_ACEOF 23322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23323 ac_datarootdir_hack=' 23324 s&@datadir@&$datadir&g 23325 s&@docdir@&$docdir&g 23326 s&@infodir@&$infodir&g 23327 s&@localedir@&$localedir&g 23328 s&@mandir@&$mandir&g 23329 s&\\\${datarootdir}&$datarootdir&g' ;; 23330esac 23331_ACEOF 23332 23333# Neutralize VPATH when `$srcdir' = `.'. 23334# Shell code in configure.ac might set extrasub. 23335# FIXME: do we really want to maintain this feature? 23336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23337ac_sed_extra="$ac_vpsub 23338$extrasub 23339_ACEOF 23340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23341:t 23342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23343s|@configure_input@|$ac_sed_conf_input|;t t 23344s&@top_builddir@&$ac_top_builddir_sub&;t t 23345s&@top_build_prefix@&$ac_top_build_prefix&;t t 23346s&@srcdir@&$ac_srcdir&;t t 23347s&@abs_srcdir@&$ac_abs_srcdir&;t t 23348s&@top_srcdir@&$ac_top_srcdir&;t t 23349s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23350s&@builddir@&$ac_builddir&;t t 23351s&@abs_builddir@&$ac_abs_builddir&;t t 23352s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23353$ac_datarootdir_hack 23354" 23355eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23356 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23357 23358test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23359 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23360 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23361 "$ac_tmp/out"`; test -z "$ac_out"; } && 23362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23363which seems to be undefined. Please make sure it is defined" >&5 23364$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23365which seems to be undefined. Please make sure it is defined" >&2;} 23366 23367 rm -f "$ac_tmp/stdin" 23368 case $ac_file in 23369 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23370 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23371 esac \ 23372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23373 ;; 23374 :H) 23375 # 23376 # CONFIG_HEADER 23377 # 23378 if test x"$ac_file" != x-; then 23379 { 23380 $as_echo "/* $configure_input */" \ 23381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23382 } >"$ac_tmp/config.h" \ 23383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23384 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23386$as_echo "$as_me: $ac_file is unchanged" >&6;} 23387 else 23388 rm -f "$ac_file" 23389 mv "$ac_tmp/config.h" "$ac_file" \ 23390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23391 fi 23392 else 23393 $as_echo "/* $configure_input */" \ 23394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23395 || as_fn_error $? "could not create -" "$LINENO" 5 23396 fi 23397 ;; 23398 23399 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23400$as_echo "$as_me: executing $ac_file commands" >&6;} 23401 ;; 23402 esac 23403 23404 23405 case $ac_file$ac_mode in 23406 "libtool":C) 23407 23408 # See if we are running on zsh, and set the options that allow our 23409 # commands through without removal of \ escapes. 23410 if test -n "${ZSH_VERSION+set}"; then 23411 setopt NO_GLOB_SUBST 23412 fi 23413 23414 cfgfile=${ofile}T 23415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23416 $RM "$cfgfile" 23417 23418 cat <<_LT_EOF >> "$cfgfile" 23419#! $SHELL 23420# Generated automatically by $as_me ($PACKAGE) $VERSION 23421# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23422# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23423 23424# Provide generalized library-building support services. 23425# Written by Gordon Matzigkeit, 1996 23426 23427# Copyright (C) 2014 Free Software Foundation, Inc. 23428# This is free software; see the source for copying conditions. There is NO 23429# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23430 23431# GNU Libtool is free software; you can redistribute it and/or modify 23432# it under the terms of the GNU General Public License as published by 23433# the Free Software Foundation; either version 2 of of the License, or 23434# (at your option) any later version. 23435# 23436# As a special exception to the GNU General Public License, if you 23437# distribute this file as part of a program or library that is built 23438# using GNU Libtool, you may include this file under the same 23439# distribution terms that you use for the rest of that program. 23440# 23441# GNU Libtool is distributed in the hope that it will be useful, but 23442# WITHOUT ANY WARRANTY; without even the implied warranty of 23443# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23444# GNU General Public License for more details. 23445# 23446# You should have received a copy of the GNU General Public License 23447# along with this program. If not, see <http://www.gnu.org/licenses/>. 23448 23449 23450# The names of the tagged configurations supported by this script. 23451available_tags='' 23452 23453# Configured defaults for sys_lib_dlsearch_path munging. 23454: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23455 23456# ### BEGIN LIBTOOL CONFIG 23457 23458# Which release of libtool.m4 was used? 23459macro_version=$macro_version 23460macro_revision=$macro_revision 23461 23462# Whether or not to build shared libraries. 23463build_libtool_libs=$enable_shared 23464 23465# Whether or not to build static libraries. 23466build_old_libs=$enable_static 23467 23468# What type of objects to build. 23469pic_mode=$pic_mode 23470 23471# Whether or not to optimize for fast installation. 23472fast_install=$enable_fast_install 23473 23474# Shared archive member basename,for filename based shared library versioning on AIX. 23475shared_archive_member_spec=$shared_archive_member_spec 23476 23477# Shell to use when invoking shell scripts. 23478SHELL=$lt_SHELL 23479 23480# An echo program that protects backslashes. 23481ECHO=$lt_ECHO 23482 23483# The PATH separator for the build system. 23484PATH_SEPARATOR=$lt_PATH_SEPARATOR 23485 23486# The host system. 23487host_alias=$host_alias 23488host=$host 23489host_os=$host_os 23490 23491# The build system. 23492build_alias=$build_alias 23493build=$build 23494build_os=$build_os 23495 23496# A sed program that does not truncate output. 23497SED=$lt_SED 23498 23499# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23500Xsed="\$SED -e 1s/^X//" 23501 23502# A grep program that handles long lines. 23503GREP=$lt_GREP 23504 23505# An ERE matcher. 23506EGREP=$lt_EGREP 23507 23508# A literal string matcher. 23509FGREP=$lt_FGREP 23510 23511# A BSD- or MS-compatible name lister. 23512NM=$lt_NM 23513 23514# Whether we need soft or hard links. 23515LN_S=$lt_LN_S 23516 23517# What is the maximum length of a command? 23518max_cmd_len=$max_cmd_len 23519 23520# Object file suffix (normally "o"). 23521objext=$ac_objext 23522 23523# Executable file suffix (normally ""). 23524exeext=$exeext 23525 23526# whether the shell understands "unset". 23527lt_unset=$lt_unset 23528 23529# turn spaces into newlines. 23530SP2NL=$lt_lt_SP2NL 23531 23532# turn newlines into spaces. 23533NL2SP=$lt_lt_NL2SP 23534 23535# convert \$build file names to \$host format. 23536to_host_file_cmd=$lt_cv_to_host_file_cmd 23537 23538# convert \$build files to toolchain format. 23539to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23540 23541# An object symbol dumper. 23542OBJDUMP=$lt_OBJDUMP 23543 23544# Method to check whether dependent libraries are shared objects. 23545deplibs_check_method=$lt_deplibs_check_method 23546 23547# Command to use when deplibs_check_method = "file_magic". 23548file_magic_cmd=$lt_file_magic_cmd 23549 23550# How to find potential files when deplibs_check_method = "file_magic". 23551file_magic_glob=$lt_file_magic_glob 23552 23553# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23554want_nocaseglob=$lt_want_nocaseglob 23555 23556# DLL creation program. 23557DLLTOOL=$lt_DLLTOOL 23558 23559# Command to associate shared and link libraries. 23560sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23561 23562# The archiver. 23563AR=$lt_AR 23564 23565# Flags to create an archive. 23566AR_FLAGS=$lt_AR_FLAGS 23567 23568# How to feed a file listing to the archiver. 23569archiver_list_spec=$lt_archiver_list_spec 23570 23571# A symbol stripping program. 23572STRIP=$lt_STRIP 23573 23574# Commands used to install an old-style archive. 23575RANLIB=$lt_RANLIB 23576old_postinstall_cmds=$lt_old_postinstall_cmds 23577old_postuninstall_cmds=$lt_old_postuninstall_cmds 23578 23579# Whether to use a lock for old archive extraction. 23580lock_old_archive_extraction=$lock_old_archive_extraction 23581 23582# A C compiler. 23583LTCC=$lt_CC 23584 23585# LTCC compiler flags. 23586LTCFLAGS=$lt_CFLAGS 23587 23588# Take the output of nm and produce a listing of raw symbols and C names. 23589global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23590 23591# Transform the output of nm in a proper C declaration. 23592global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23593 23594# Transform the output of nm into a list of symbols to manually relocate. 23595global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23596 23597# Transform the output of nm in a C name address pair. 23598global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23599 23600# Transform the output of nm in a C name address pair when lib prefix is needed. 23601global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23602 23603# The name lister interface. 23604nm_interface=$lt_lt_cv_nm_interface 23605 23606# Specify filename containing input files for \$NM. 23607nm_file_list_spec=$lt_nm_file_list_spec 23608 23609# The root where to search for dependent libraries,and where our libraries should be installed. 23610lt_sysroot=$lt_sysroot 23611 23612# Command to truncate a binary pipe. 23613lt_truncate_bin=$lt_lt_cv_truncate_bin 23614 23615# The name of the directory that contains temporary libtool files. 23616objdir=$objdir 23617 23618# Used to examine libraries when file_magic_cmd begins with "file". 23619MAGIC_CMD=$MAGIC_CMD 23620 23621# Must we lock files when doing compilation? 23622need_locks=$lt_need_locks 23623 23624# Manifest tool. 23625MANIFEST_TOOL=$lt_MANIFEST_TOOL 23626 23627# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23628DSYMUTIL=$lt_DSYMUTIL 23629 23630# Tool to change global to local symbols on Mac OS X. 23631NMEDIT=$lt_NMEDIT 23632 23633# Tool to manipulate fat objects and archives on Mac OS X. 23634LIPO=$lt_LIPO 23635 23636# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23637OTOOL=$lt_OTOOL 23638 23639# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23640OTOOL64=$lt_OTOOL64 23641 23642# Old archive suffix (normally "a"). 23643libext=$libext 23644 23645# Shared library suffix (normally ".so"). 23646shrext_cmds=$lt_shrext_cmds 23647 23648# The commands to extract the exported symbol list from a shared archive. 23649extract_expsyms_cmds=$lt_extract_expsyms_cmds 23650 23651# Variables whose values should be saved in libtool wrapper scripts and 23652# restored at link time. 23653variables_saved_for_relink=$lt_variables_saved_for_relink 23654 23655# Do we need the "lib" prefix for modules? 23656need_lib_prefix=$need_lib_prefix 23657 23658# Do we need a version for libraries? 23659need_version=$need_version 23660 23661# Library versioning type. 23662version_type=$version_type 23663 23664# Shared library runtime path variable. 23665runpath_var=$runpath_var 23666 23667# Shared library path variable. 23668shlibpath_var=$shlibpath_var 23669 23670# Is shlibpath searched before the hard-coded library search path? 23671shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23672 23673# Format of library name prefix. 23674libname_spec=$lt_libname_spec 23675 23676# List of archive names. First name is the real one, the rest are links. 23677# The last name is the one that the linker finds with -lNAME 23678library_names_spec=$lt_library_names_spec 23679 23680# The coded name of the library, if different from the real name. 23681soname_spec=$lt_soname_spec 23682 23683# Permission mode override for installation of shared libraries. 23684install_override_mode=$lt_install_override_mode 23685 23686# Command to use after installation of a shared archive. 23687postinstall_cmds=$lt_postinstall_cmds 23688 23689# Command to use after uninstallation of a shared archive. 23690postuninstall_cmds=$lt_postuninstall_cmds 23691 23692# Commands used to finish a libtool library installation in a directory. 23693finish_cmds=$lt_finish_cmds 23694 23695# As "finish_cmds", except a single script fragment to be evaled but 23696# not shown. 23697finish_eval=$lt_finish_eval 23698 23699# Whether we should hardcode library paths into libraries. 23700hardcode_into_libs=$hardcode_into_libs 23701 23702# Compile-time system search path for libraries. 23703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23704 23705# Detected run-time system search path for libraries. 23706sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23707 23708# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23709configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23710 23711# Whether dlopen is supported. 23712dlopen_support=$enable_dlopen 23713 23714# Whether dlopen of programs is supported. 23715dlopen_self=$enable_dlopen_self 23716 23717# Whether dlopen of statically linked programs is supported. 23718dlopen_self_static=$enable_dlopen_self_static 23719 23720# Commands to strip libraries. 23721old_striplib=$lt_old_striplib 23722striplib=$lt_striplib 23723 23724 23725# The linker used to build libraries. 23726LD=$lt_LD 23727 23728# How to create reloadable object files. 23729reload_flag=$lt_reload_flag 23730reload_cmds=$lt_reload_cmds 23731 23732# Commands used to build an old-style archive. 23733old_archive_cmds=$lt_old_archive_cmds 23734 23735# A language specific compiler. 23736CC=$lt_compiler 23737 23738# Is the compiler the GNU compiler? 23739with_gcc=$GCC 23740 23741# Compiler flag to turn off builtin functions. 23742no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23743 23744# Additional compiler flags for building library objects. 23745pic_flag=$lt_lt_prog_compiler_pic 23746 23747# How to pass a linker flag through the compiler. 23748wl=$lt_lt_prog_compiler_wl 23749 23750# Compiler flag to prevent dynamic linking. 23751link_static_flag=$lt_lt_prog_compiler_static 23752 23753# Does compiler simultaneously support -c and -o options? 23754compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23755 23756# Whether or not to add -lc for building shared libraries. 23757build_libtool_need_lc=$archive_cmds_need_lc 23758 23759# Whether or not to disallow shared libs when runtime libs are static. 23760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23761 23762# Compiler flag to allow reflexive dlopens. 23763export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23764 23765# Compiler flag to generate shared objects directly from archives. 23766whole_archive_flag_spec=$lt_whole_archive_flag_spec 23767 23768# Whether the compiler copes with passing no objects directly. 23769compiler_needs_object=$lt_compiler_needs_object 23770 23771# Create an old-style archive from a shared archive. 23772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23773 23774# Create a temporary old-style archive to link instead of a shared archive. 23775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23776 23777# Commands used to build a shared archive. 23778archive_cmds=$lt_archive_cmds 23779archive_expsym_cmds=$lt_archive_expsym_cmds 23780 23781# Commands used to build a loadable module if different from building 23782# a shared archive. 23783module_cmds=$lt_module_cmds 23784module_expsym_cmds=$lt_module_expsym_cmds 23785 23786# Whether we are building with GNU ld or not. 23787with_gnu_ld=$lt_with_gnu_ld 23788 23789# Flag that allows shared libraries with undefined symbols to be built. 23790allow_undefined_flag=$lt_allow_undefined_flag 23791 23792# Flag that enforces no undefined symbols. 23793no_undefined_flag=$lt_no_undefined_flag 23794 23795# Flag to hardcode \$libdir into a binary during linking. 23796# This must work even if \$libdir does not exist 23797hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23798 23799# Whether we need a single "-rpath" flag with a separated argument. 23800hardcode_libdir_separator=$lt_hardcode_libdir_separator 23801 23802# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23803# DIR into the resulting binary. 23804hardcode_direct=$hardcode_direct 23805 23806# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23807# DIR into the resulting binary and the resulting library dependency is 23808# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23809# library is relocated. 23810hardcode_direct_absolute=$hardcode_direct_absolute 23811 23812# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23813# into the resulting binary. 23814hardcode_minus_L=$hardcode_minus_L 23815 23816# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23817# into the resulting binary. 23818hardcode_shlibpath_var=$hardcode_shlibpath_var 23819 23820# Set to "yes" if building a shared library automatically hardcodes DIR 23821# into the library and all subsequent libraries and executables linked 23822# against it. 23823hardcode_automatic=$hardcode_automatic 23824 23825# Set to yes if linker adds runtime paths of dependent libraries 23826# to runtime path list. 23827inherit_rpath=$inherit_rpath 23828 23829# Whether libtool must link a program against all its dependency libraries. 23830link_all_deplibs=$link_all_deplibs 23831 23832# Set to "yes" if exported symbols are required. 23833always_export_symbols=$always_export_symbols 23834 23835# The commands to list exported symbols. 23836export_symbols_cmds=$lt_export_symbols_cmds 23837 23838# Symbols that should not be listed in the preloaded symbols. 23839exclude_expsyms=$lt_exclude_expsyms 23840 23841# Symbols that must always be exported. 23842include_expsyms=$lt_include_expsyms 23843 23844# Commands necessary for linking programs (against libraries) with templates. 23845prelink_cmds=$lt_prelink_cmds 23846 23847# Commands necessary for finishing linking programs. 23848postlink_cmds=$lt_postlink_cmds 23849 23850# Specify filename containing input files. 23851file_list_spec=$lt_file_list_spec 23852 23853# How to hardcode a shared library path into an executable. 23854hardcode_action=$hardcode_action 23855 23856# ### END LIBTOOL CONFIG 23857 23858_LT_EOF 23859 23860 cat <<'_LT_EOF' >> "$cfgfile" 23861 23862# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23863 23864# func_munge_path_list VARIABLE PATH 23865# ----------------------------------- 23866# VARIABLE is name of variable containing _space_ separated list of 23867# directories to be munged by the contents of PATH, which is string 23868# having a format: 23869# "DIR[:DIR]:" 23870# string "DIR[ DIR]" will be prepended to VARIABLE 23871# ":DIR[:DIR]" 23872# string "DIR[ DIR]" will be appended to VARIABLE 23873# "DIRP[:DIRP]::[DIRA:]DIRA" 23874# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23875# "DIRA[ DIRA]" will be appended to VARIABLE 23876# "DIR[:DIR]" 23877# VARIABLE will be replaced by "DIR[ DIR]" 23878func_munge_path_list () 23879{ 23880 case x$2 in 23881 x) 23882 ;; 23883 *:) 23884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23885 ;; 23886 x:*) 23887 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23888 ;; 23889 *::*) 23890 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23891 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23892 ;; 23893 *) 23894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23895 ;; 23896 esac 23897} 23898 23899 23900# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23901func_cc_basename () 23902{ 23903 for cc_temp in $*""; do 23904 case $cc_temp in 23905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23907 \-*) ;; 23908 *) break;; 23909 esac 23910 done 23911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23912} 23913 23914 23915# ### END FUNCTIONS SHARED WITH CONFIGURE 23916 23917_LT_EOF 23918 23919 case $host_os in 23920 aix3*) 23921 cat <<\_LT_EOF >> "$cfgfile" 23922# AIX sometimes has problems with the GCC collect2 program. For some 23923# reason, if we set the COLLECT_NAMES environment variable, the problems 23924# vanish in a puff of smoke. 23925if test set != "${COLLECT_NAMES+set}"; then 23926 COLLECT_NAMES= 23927 export COLLECT_NAMES 23928fi 23929_LT_EOF 23930 ;; 23931 esac 23932 23933 23934ltmain=$ac_aux_dir/ltmain.sh 23935 23936 23937 # We use sed instead of cat because bash on DJGPP gets confused if 23938 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23939 # text mode, it properly converts lines to CR/LF. This bash problem 23940 # is reportedly fixed, but why not run on old versions too? 23941 sed '$q' "$ltmain" >> "$cfgfile" \ 23942 || (rm -f "$cfgfile"; exit 1) 23943 23944 mv -f "$cfgfile" "$ofile" || 23945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23946 chmod +x "$ofile" 23947 23948 ;; 23949 "disable-rpath":C) 23950 sed < libtool > libtool-2 \ 23951 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 23952 mv libtool-2 libtool 23953 chmod 755 libtool 23954 libtool="./libtool" 23955 ;; 23956 23957 esac 23958done # for ac_tag 23959 23960 23961as_fn_exit 0 23962_ACEOF 23963ac_clean_files=$ac_clean_files_save 23964 23965test $ac_write_fail = 0 || 23966 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23967 23968 23969# configure is writing to config.log, and then calls config.status. 23970# config.status does its own redirection, appending to config.log. 23971# Unfortunately, on DOS this fails, as config.log is still kept open 23972# by configure, so config.status won't be able to write to it; its 23973# output is simply discarded. So we exec the FD to /dev/null, 23974# effectively closing config.log, so it can be properly (re)opened and 23975# appended to by config.status. When coming back to configure, we 23976# need to make the FD available again. 23977if test "$no_create" != yes; then 23978 ac_cs_success=: 23979 ac_config_status_args= 23980 test "$silent" = yes && 23981 ac_config_status_args="$ac_config_status_args --quiet" 23982 exec 5>/dev/null 23983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23984 exec 5>>config.log 23985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23986 # would make configure fail if this is the last instruction. 23987 $ac_cs_success || as_fn_exit 1 23988fi 23989if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23991$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23992fi 23993 23994