1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for unbound 1.26.1. 4 # 5 # Report bugs to <unbound-bugs (at] nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 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. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: unbound-bugs (at] nlnetlabs.nl or 280 $0: https://github.com/NLnetLabs/unbound/issues about your 281 $0: system, including any error possibly output before this 282 $0: message. Then install a modern shell, or manually run 283 $0: the script under such a shell if you do have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='unbound' 624 PACKAGE_TARNAME='unbound' 625 PACKAGE_VERSION='1.26.1' 626 PACKAGE_STRING='unbound 1.26.1' 627 PACKAGE_BUGREPORT='unbound-bugs (at] nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' 628 PACKAGE_URL='' 629 630 # Factoring default headers for most tests. 631 ac_includes_default="\ 632 #include <stddef.h> 633 #ifdef HAVE_STDIO_H 634 # include <stdio.h> 635 #endif 636 #ifdef HAVE_STDLIB_H 637 # include <stdlib.h> 638 #endif 639 #ifdef HAVE_STRING_H 640 # include <string.h> 641 #endif 642 #ifdef HAVE_INTTYPES_H 643 # include <inttypes.h> 644 #endif 645 #ifdef HAVE_STDINT_H 646 # include <stdint.h> 647 #endif 648 #ifdef HAVE_STRINGS_H 649 # include <strings.h> 650 #endif 651 #ifdef HAVE_SYS_TYPES_H 652 # include <sys/types.h> 653 #endif 654 #ifdef HAVE_SYS_STAT_H 655 # include <sys/stat.h> 656 #endif 657 #ifdef HAVE_UNISTD_H 658 # include <unistd.h> 659 #endif" 660 661 ac_header_c_list= 662 ac_func_c_list= 663 ac_subst_vars='LTLIBOBJS 664 date 665 version 666 INSTALLTARGET 667 ALLTARGET 668 SOURCEFILE 669 SOURCEDETERMINE 670 IPSET_OBJ 671 IPSET_SRC 672 IPSECMOD_HEADER 673 IPSECMOD_OBJ 674 CACHEDB_OBJ 675 CACHEDB_SRC 676 DNSCRYPT_OBJ 677 DNSCRYPT_SRC 678 ENABLE_DNSCRYPT 679 ENABLE_DNSCRYPT_XCHACHA20 680 DNSTAP_OBJ 681 DNSTAP_SRC 682 DNSTAP_SOCKET_TESTBIN 683 DNSTAP_SOCKET_PATH 684 opt_dnstap_socket_path 685 ENABLE_DNSTAP 686 PROTOBUFC_LIBS 687 PROTOBUFC_CFLAGS 688 PROTOC_GEN_C 689 PROTOC_C 690 PROTOC 691 UBSYMS 692 EXTRALINK 693 COMMON_OBJ_ALL_SYMBOLS 694 LIBOBJ_WITHOUT_CTIME 695 LIBOBJ_WITHOUT_CTIMEARC4 696 WIN_CHECKCONF_OBJ_LINK 697 WIN_CONTROL_OBJ_LINK 698 WIN_UBANCHOR_OBJ_LINK 699 WIN_HOST_OBJ_LINK 700 WIN_DAEMON_OBJ_LINK 701 WIN_DAEMON_OBJ 702 WIN_DAEMON_SRC 703 WINAPPS 704 WINDRES 705 CHECKLOCK_OBJ 706 staticexe 707 PC_LIBEVENT_DEPENDENCY 708 UNBOUND_EVENT_UNINSTALL 709 UNBOUND_EVENT_INSTALL 710 SUBNET_HEADER 711 SUBNET_OBJ 712 PC_LIBBSD_DEPENDENCY 713 SSLLIB 714 HAVE_SSL 715 PC_CRYPTO_DEPENDENCY 716 CONFIG_DATE 717 SOURCE_DATE_EPOCH 718 GCC_DOCKER_LINTFLAGS 719 NETBSD_LINTFLAGS 720 PYUNBOUND_UNINSTALL 721 PYUNBOUND_INSTALL 722 PYUNBOUND_TARGET 723 PYUNBOUND_OBJ 724 WITH_PYUNBOUND 725 PYTHONMOD_UNINSTALL 726 PYTHONMOD_INSTALL 727 PYTHONMOD_HEADER 728 PYTHONMOD_OBJ 729 WITH_PYTHONMODULE 730 swig 731 SWIG_LIB 732 SWIG 733 PC_PY_DEPENDENCY 734 PYTHON_LIBS 735 PY_MAJOR_VERSION 736 PYTHON_SITE_PKG 737 PYTHON_LDFLAGS 738 PYTHON_CPPFLAGS 739 PYTHON 740 PYTHON_VERSION 741 DYNLIBMOD_EXTRALIBS 742 DYNLIBMOD_HEADER 743 DYNLIBMOD_OBJ 744 WITH_DYNLIBMODULE 745 PTHREAD_CFLAGS_ONLY 746 PTHREAD_CFLAGS 747 PTHREAD_LIBS 748 PTHREAD_CXX 749 PTHREAD_CC 750 ax_pthread_config 751 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 752 SLDNS_ALLOCCHECK_EXTRA_OBJ 753 USE_SYSTEMD_FALSE 754 USE_SYSTEMD_TRUE 755 SYSTEMD_DAEMON_LIBS 756 SYSTEMD_DAEMON_CFLAGS 757 SYSTEMD_LIBS 758 SYSTEMD_CFLAGS 759 RUNTIME_PATH 760 LIBOBJS 761 CPP 762 PKG_CONFIG_LIBDIR 763 PKG_CONFIG_PATH 764 PKG_CONFIG 765 LT_SYS_LIBRARY_PATH 766 OTOOL64 767 OTOOL 768 LIPO 769 NMEDIT 770 DSYMUTIL 771 MANIFEST_TOOL 772 AWK 773 RANLIB 774 ac_ct_AR 775 DLLTOOL 776 OBJDUMP 777 FILECMD 778 LN_S 779 NM 780 ac_ct_DUMPBIN 781 DUMPBIN 782 LD 783 FGREP 784 EGREP 785 SED 786 LIBTOOL 787 AR 788 host_os 789 host_vendor 790 host_cpu 791 host 792 build_os 793 build_vendor 794 build_cpu 795 build 796 libtool 797 STRIP 798 doxygen 799 YFLAGS 800 YACC 801 LEXLIB 802 LEX_OUTPUT_ROOT 803 LEX 804 debug_enabled 805 DEPFLAG 806 GREP 807 UNBOUND_USERNAME 808 UNBOUND_ROOTCERT_FILE 809 UNBOUND_ROOTKEY_FILE 810 UNBOUND_PIDFILE 811 UNBOUND_SHARE_DIR 812 UNBOUND_CHROOT_DIR 813 UNBOUND_RUN_DIR 814 ub_conf_dir 815 ub_conf_file 816 UNBOUND_LOCALSTATE_DIR 817 UNBOUND_SYSCONF_DIR 818 UNBOUND_SBIN_DIR 819 OBJEXT 820 EXEEXT 821 ac_ct_CC 822 CPPFLAGS 823 LDFLAGS 824 CFLAGS 825 CC 826 LIBUNBOUND_AGE 827 LIBUNBOUND_REVISION 828 LIBUNBOUND_CURRENT 829 UNBOUND_VERSION_MICRO 830 UNBOUND_VERSION_MINOR 831 UNBOUND_VERSION_MAJOR 832 target_alias 833 host_alias 834 build_alias 835 LIBS 836 ECHO_T 837 ECHO_N 838 ECHO_C 839 DEFS 840 mandir 841 localedir 842 libdir 843 psdir 844 pdfdir 845 dvidir 846 htmldir 847 infodir 848 docdir 849 oldincludedir 850 includedir 851 runstatedir 852 localstatedir 853 sharedstatedir 854 sysconfdir 855 datadir 856 datarootdir 857 libexecdir 858 sbindir 859 bindir 860 program_transform_name 861 prefix 862 exec_prefix 863 PACKAGE_URL 864 PACKAGE_BUGREPORT 865 PACKAGE_STRING 866 PACKAGE_VERSION 867 PACKAGE_TARNAME 868 PACKAGE_NAME 869 PATH_SEPARATOR 870 SHELL' 871 ac_subst_files='' 872 ac_user_opts=' 873 enable_option_checking 874 with_conf_file 875 with_run_dir 876 with_chroot_dir 877 with_share_dir 878 with_pidfile 879 with_rootkey_file 880 with_rootcert_file 881 with_username 882 enable_checking 883 enable_debug 884 enable_flto 885 enable_pie 886 enable_relro_now 887 enable_shared 888 enable_static 889 enable_pic 890 with_pic 891 enable_fast_install 892 enable_aix_soname 893 with_aix_soname 894 with_gnu_ld 895 with_sysroot 896 enable_libtool_lock 897 enable_rpath 898 enable_largefile 899 enable_systemd 900 enable_alloc_checks 901 enable_alloc_lite 902 enable_alloc_nonregional 903 with_pthreads 904 with_solaris_threads 905 with_syslog_facility 906 with_dynlibmodule 907 with_pyunbound 908 with_pythonmodule 909 enable_swig_version_check 910 with_nss 911 with_nettle 912 with_ssl 913 with_libbsd 914 enable_sha1 915 enable_sha2 916 enable_subnet 917 enable_gost 918 enable_ecdsa 919 enable_dsa 920 with_deprecate_rsa_1024 921 enable_ed25519 922 enable_ed448 923 enable_event_api 924 enable_tfo_client 925 enable_tfo_server 926 with_libevent 927 with_libexpat 928 with_libhiredis 929 with_libnghttp2 930 with_libngtcp2 931 enable_static_exe 932 enable_fully_static 933 enable_lock_checks 934 enable_allsymbols 935 enable_dnstap 936 with_dnstap_socket_path 937 with_protobuf_c 938 enable_dnscrypt 939 with_libsodium 940 enable_cachedb 941 enable_ipsecmod 942 enable_ipset 943 with_libmnl 944 enable_explicit_port_randomisation 945 enable_linux_ip_local_port_range 946 with_libunbound_only 947 ' 948 ac_precious_vars='build_alias 949 host_alias 950 target_alias 951 CC 952 CFLAGS 953 LDFLAGS 954 LIBS 955 CPPFLAGS 956 YACC 957 YFLAGS 958 LT_SYS_LIBRARY_PATH 959 PKG_CONFIG 960 PKG_CONFIG_PATH 961 PKG_CONFIG_LIBDIR 962 CPP 963 SYSTEMD_CFLAGS 964 SYSTEMD_LIBS 965 SYSTEMD_DAEMON_CFLAGS 966 SYSTEMD_DAEMON_LIBS 967 PYTHON_VERSION 968 SOURCE_DATE_EPOCH 969 PROTOBUFC_CFLAGS 970 PROTOBUFC_LIBS' 971 972 973 # Initialize some variables set by options. 974 ac_init_help= 975 ac_init_version=false 976 ac_unrecognized_opts= 977 ac_unrecognized_sep= 978 # The variables have the same names as the options, with 979 # dashes changed to underlines. 980 cache_file=/dev/null 981 exec_prefix=NONE 982 no_create= 983 no_recursion= 984 prefix=NONE 985 program_prefix=NONE 986 program_suffix=NONE 987 program_transform_name=s,x,x, 988 silent= 989 site= 990 srcdir= 991 verbose= 992 x_includes=NONE 993 x_libraries=NONE 994 995 # Installation directory options. 996 # These are left unexpanded so users can "make install exec_prefix=/foo" 997 # and all the variables that are supposed to be based on exec_prefix 998 # by default will actually change. 999 # Use braces instead of parens because sh, perl, etc. also accept them. 1000 # (The list follows the same order as the GNU Coding Standards.) 1001 bindir='${exec_prefix}/bin' 1002 sbindir='${exec_prefix}/sbin' 1003 libexecdir='${exec_prefix}/libexec' 1004 datarootdir='${prefix}/share' 1005 datadir='${datarootdir}' 1006 sysconfdir='${prefix}/etc' 1007 sharedstatedir='${prefix}/com' 1008 localstatedir='${prefix}/var' 1009 runstatedir='${localstatedir}/run' 1010 includedir='${prefix}/include' 1011 oldincludedir='/usr/include' 1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1013 infodir='${datarootdir}/info' 1014 htmldir='${docdir}' 1015 dvidir='${docdir}' 1016 pdfdir='${docdir}' 1017 psdir='${docdir}' 1018 libdir='${exec_prefix}/lib' 1019 localedir='${datarootdir}/locale' 1020 mandir='${datarootdir}/man' 1021 1022 ac_prev= 1023 ac_dashdash= 1024 for ac_option 1025 do 1026 # If the previous option needs an argument, assign it. 1027 if test -n "$ac_prev"; then 1028 eval $ac_prev=\$ac_option 1029 ac_prev= 1030 continue 1031 fi 1032 1033 case $ac_option in 1034 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1035 *=) ac_optarg= ;; 1036 *) ac_optarg=yes ;; 1037 esac 1038 1039 case $ac_dashdash$ac_option in 1040 --) 1041 ac_dashdash=yes ;; 1042 1043 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1044 ac_prev=bindir ;; 1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1046 bindir=$ac_optarg ;; 1047 1048 -build | --build | --buil | --bui | --bu) 1049 ac_prev=build_alias ;; 1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1051 build_alias=$ac_optarg ;; 1052 1053 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1055 ac_prev=cache_file ;; 1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1058 cache_file=$ac_optarg ;; 1059 1060 --config-cache | -C) 1061 cache_file=config.cache ;; 1062 1063 -datadir | --datadir | --datadi | --datad) 1064 ac_prev=datadir ;; 1065 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1066 datadir=$ac_optarg ;; 1067 1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1069 | --dataroo | --dataro | --datar) 1070 ac_prev=datarootdir ;; 1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1073 datarootdir=$ac_optarg ;; 1074 1075 -disable-* | --disable-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084 "enable_$ac_useropt" 1085 "*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval enable_$ac_useropt=no ;; 1090 1091 -docdir | --docdir | --docdi | --doc | --do) 1092 ac_prev=docdir ;; 1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1094 docdir=$ac_optarg ;; 1095 1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1097 ac_prev=dvidir ;; 1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1099 dvidir=$ac_optarg ;; 1100 1101 -enable-* | --enable-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110 "enable_$ac_useropt" 1111 "*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval enable_$ac_useropt=\$ac_optarg ;; 1116 1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1119 | --exec | --exe | --ex) 1120 ac_prev=exec_prefix ;; 1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1123 | --exec=* | --exe=* | --ex=*) 1124 exec_prefix=$ac_optarg ;; 1125 1126 -gas | --gas | --ga | --g) 1127 # Obsolete; use --with-gas. 1128 with_gas=yes ;; 1129 1130 -help | --help | --hel | --he | -h) 1131 ac_init_help=long ;; 1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1133 ac_init_help=recursive ;; 1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1135 ac_init_help=short ;; 1136 1137 -host | --host | --hos | --ho) 1138 ac_prev=host_alias ;; 1139 -host=* | --host=* | --hos=* | --ho=*) 1140 host_alias=$ac_optarg ;; 1141 1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1143 ac_prev=htmldir ;; 1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1145 | --ht=*) 1146 htmldir=$ac_optarg ;; 1147 1148 -includedir | --includedir | --includedi | --included | --include \ 1149 | --includ | --inclu | --incl | --inc) 1150 ac_prev=includedir ;; 1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1152 | --includ=* | --inclu=* | --incl=* | --inc=*) 1153 includedir=$ac_optarg ;; 1154 1155 -infodir | --infodir | --infodi | --infod | --info | --inf) 1156 ac_prev=infodir ;; 1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1158 infodir=$ac_optarg ;; 1159 1160 -libdir | --libdir | --libdi | --libd) 1161 ac_prev=libdir ;; 1162 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1163 libdir=$ac_optarg ;; 1164 1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1166 | --libexe | --libex | --libe) 1167 ac_prev=libexecdir ;; 1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1169 | --libexe=* | --libex=* | --libe=*) 1170 libexecdir=$ac_optarg ;; 1171 1172 -localedir | --localedir | --localedi | --localed | --locale) 1173 ac_prev=localedir ;; 1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1175 localedir=$ac_optarg ;; 1176 1177 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1178 | --localstate | --localstat | --localsta | --localst | --locals) 1179 ac_prev=localstatedir ;; 1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1182 localstatedir=$ac_optarg ;; 1183 1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1185 ac_prev=mandir ;; 1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1187 mandir=$ac_optarg ;; 1188 1189 -nfp | --nfp | --nf) 1190 # Obsolete; use --without-fp. 1191 with_fp=no ;; 1192 1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1194 | --no-cr | --no-c | -n) 1195 no_create=yes ;; 1196 1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1199 no_recursion=yes ;; 1200 1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1203 | --oldin | --oldi | --old | --ol | --o) 1204 ac_prev=oldincludedir ;; 1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1208 oldincludedir=$ac_optarg ;; 1209 1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1211 ac_prev=prefix ;; 1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1213 prefix=$ac_optarg ;; 1214 1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1216 | --program-pre | --program-pr | --program-p) 1217 ac_prev=program_prefix ;; 1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1220 program_prefix=$ac_optarg ;; 1221 1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1223 | --program-suf | --program-su | --program-s) 1224 ac_prev=program_suffix ;; 1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1227 program_suffix=$ac_optarg ;; 1228 1229 -program-transform-name | --program-transform-name \ 1230 | --program-transform-nam | --program-transform-na \ 1231 | --program-transform-n | --program-transform- \ 1232 | --program-transform | --program-transfor \ 1233 | --program-transfo | --program-transf \ 1234 | --program-trans | --program-tran \ 1235 | --progr-tra | --program-tr | --program-t) 1236 ac_prev=program_transform_name ;; 1237 -program-transform-name=* | --program-transform-name=* \ 1238 | --program-transform-nam=* | --program-transform-na=* \ 1239 | --program-transform-n=* | --program-transform-=* \ 1240 | --program-transform=* | --program-transfor=* \ 1241 | --program-transfo=* | --program-transf=* \ 1242 | --program-trans=* | --program-tran=* \ 1243 | --progr-tra=* | --program-tr=* | --program-t=*) 1244 program_transform_name=$ac_optarg ;; 1245 1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1247 ac_prev=pdfdir ;; 1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1249 pdfdir=$ac_optarg ;; 1250 1251 -psdir | --psdir | --psdi | --psd | --ps) 1252 ac_prev=psdir ;; 1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1254 psdir=$ac_optarg ;; 1255 1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1257 | -silent | --silent | --silen | --sile | --sil) 1258 silent=yes ;; 1259 1260 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1261 | --runstate | --runstat | --runsta | --runst | --runs \ 1262 | --run | --ru | --r) 1263 ac_prev=runstatedir ;; 1264 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1265 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1266 | --run=* | --ru=* | --r=*) 1267 runstatedir=$ac_optarg ;; 1268 1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1270 ac_prev=sbindir ;; 1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1272 | --sbi=* | --sb=*) 1273 sbindir=$ac_optarg ;; 1274 1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1277 | --sharedst | --shareds | --shared | --share | --shar \ 1278 | --sha | --sh) 1279 ac_prev=sharedstatedir ;; 1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1283 | --sha=* | --sh=*) 1284 sharedstatedir=$ac_optarg ;; 1285 1286 -site | --site | --sit) 1287 ac_prev=site ;; 1288 -site=* | --site=* | --sit=*) 1289 site=$ac_optarg ;; 1290 1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1292 ac_prev=srcdir ;; 1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1294 srcdir=$ac_optarg ;; 1295 1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1297 | --syscon | --sysco | --sysc | --sys | --sy) 1298 ac_prev=sysconfdir ;; 1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1301 sysconfdir=$ac_optarg ;; 1302 1303 -target | --target | --targe | --targ | --tar | --ta | --t) 1304 ac_prev=target_alias ;; 1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1306 target_alias=$ac_optarg ;; 1307 1308 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1309 verbose=yes ;; 1310 1311 -version | --version | --versio | --versi | --vers | -V) 1312 ac_init_version=: ;; 1313 1314 -with-* | --with-*) 1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1316 # Reject names that are not valid shell variable names. 1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1318 as_fn_error $? "invalid package name: \`$ac_useropt'" 1319 ac_useropt_orig=$ac_useropt 1320 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1321 case $ac_user_opts in 1322 *" 1323 "with_$ac_useropt" 1324 "*) ;; 1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1326 ac_unrecognized_sep=', ';; 1327 esac 1328 eval with_$ac_useropt=\$ac_optarg ;; 1329 1330 -without-* | --without-*) 1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1332 # Reject names that are not valid shell variable names. 1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1334 as_fn_error $? "invalid package name: \`$ac_useropt'" 1335 ac_useropt_orig=$ac_useropt 1336 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1337 case $ac_user_opts in 1338 *" 1339 "with_$ac_useropt" 1340 "*) ;; 1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1342 ac_unrecognized_sep=', ';; 1343 esac 1344 eval with_$ac_useropt=no ;; 1345 1346 --x) 1347 # Obsolete; use --with-x. 1348 with_x=yes ;; 1349 1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1351 | --x-incl | --x-inc | --x-in | --x-i) 1352 ac_prev=x_includes ;; 1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1355 x_includes=$ac_optarg ;; 1356 1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1359 ac_prev=x_libraries ;; 1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1362 x_libraries=$ac_optarg ;; 1363 1364 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1365 Try \`$0 --help' for more information" 1366 ;; 1367 1368 *=*) 1369 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1370 # Reject names that are not valid shell variable names. 1371 case $ac_envvar in #( 1372 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1373 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1374 esac 1375 eval $ac_envvar=\$ac_optarg 1376 export $ac_envvar ;; 1377 1378 *) 1379 # FIXME: should be removed in autoconf 3.0. 1380 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1382 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1383 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1384 ;; 1385 1386 esac 1387 done 1388 1389 if test -n "$ac_prev"; then 1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1391 as_fn_error $? "missing argument to $ac_option" 1392 fi 1393 1394 if test -n "$ac_unrecognized_opts"; then 1395 case $enable_option_checking in 1396 no) ;; 1397 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1398 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1399 esac 1400 fi 1401 1402 # Check all directory arguments for consistency. 1403 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1404 datadir sysconfdir sharedstatedir localstatedir includedir \ 1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1406 libdir localedir mandir runstatedir 1407 do 1408 eval ac_val=\$$ac_var 1409 # Remove trailing slashes. 1410 case $ac_val in 1411 */ ) 1412 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1413 eval $ac_var=\$ac_val;; 1414 esac 1415 # Be sure to have absolute directory names. 1416 case $ac_val in 1417 [\\/$]* | ?:[\\/]* ) continue;; 1418 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1419 esac 1420 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1421 done 1422 1423 # There might be people who depend on the old broken behavior: `$host' 1424 # used to hold the argument of --host etc. 1425 # FIXME: To remove some day. 1426 build=$build_alias 1427 host=$host_alias 1428 target=$target_alias 1429 1430 # FIXME: To remove some day. 1431 if test "x$host_alias" != x; then 1432 if test "x$build_alias" = x; then 1433 cross_compiling=maybe 1434 elif test "x$build_alias" != "x$host_alias"; then 1435 cross_compiling=yes 1436 fi 1437 fi 1438 1439 ac_tool_prefix= 1440 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1441 1442 test "$silent" = yes && exec 6>/dev/null 1443 1444 1445 ac_pwd=`pwd` && test -n "$ac_pwd" && 1446 ac_ls_di=`ls -di .` && 1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1448 as_fn_error $? "working directory cannot be determined" 1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1450 as_fn_error $? "pwd does not report name of working directory" 1451 1452 1453 # Find the source files, if location was not specified. 1454 if test -z "$srcdir"; then 1455 ac_srcdir_defaulted=yes 1456 # Try the directory containing this script, then the parent directory. 1457 ac_confdir=`$as_dirname -- "$as_myself" || 1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1459 X"$as_myself" : 'X\(//\)[^/]' \| \ 1460 X"$as_myself" : 'X\(//\)$' \| \ 1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1462 printf "%s\n" X"$as_myself" | 1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\/\)[^/].*/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\/\)$/{ 1472 s//\1/ 1473 q 1474 } 1475 /^X\(\/\).*/{ 1476 s//\1/ 1477 q 1478 } 1479 s/.*/./; q'` 1480 srcdir=$ac_confdir 1481 if test ! -r "$srcdir/$ac_unique_file"; then 1482 srcdir=.. 1483 fi 1484 else 1485 ac_srcdir_defaulted=no 1486 fi 1487 if test ! -r "$srcdir/$ac_unique_file"; then 1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1489 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1490 fi 1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1492 ac_abs_confdir=`( 1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1494 pwd)` 1495 # When building in place, set srcdir=. 1496 if test "$ac_abs_confdir" = "$ac_pwd"; then 1497 srcdir=. 1498 fi 1499 # Remove unnecessary trailing slashes from srcdir. 1500 # Double slashes in file names in object file debugging info 1501 # mess up M-x gdb in Emacs. 1502 case $srcdir in 1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1504 esac 1505 for ac_var in $ac_precious_vars; do 1506 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1507 eval ac_env_${ac_var}_value=\$${ac_var} 1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1509 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1510 done 1511 1512 # 1513 # Report the --help message. 1514 # 1515 if test "$ac_init_help" = "long"; then 1516 # Omit some internal or obsolete options to make the list less imposing. 1517 # This message is too long to be a string in the A/UX 3.1 sh. 1518 cat <<_ACEOF 1519 \`configure' configures unbound 1.26.1 to adapt to many kinds of systems. 1520 1521 Usage: $0 [OPTION]... [VAR=VALUE]... 1522 1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1524 VAR=VALUE. See below for descriptions of some of the useful variables. 1525 1526 Defaults for the options are specified in brackets. 1527 1528 Configuration: 1529 -h, --help display this help and exit 1530 --help=short display options specific to this package 1531 --help=recursive display the short help of all the included packages 1532 -V, --version display version information and exit 1533 -q, --quiet, --silent do not print \`checking ...' messages 1534 --cache-file=FILE cache test results in FILE [disabled] 1535 -C, --config-cache alias for \`--cache-file=config.cache' 1536 -n, --no-create do not create output files 1537 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1538 1539 Installation directories: 1540 --prefix=PREFIX install architecture-independent files in PREFIX 1541 [$ac_default_prefix] 1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1543 [PREFIX] 1544 1545 By default, \`make install' will install all the files in 1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1548 for instance \`--prefix=\$HOME'. 1549 1550 For better control, use the options below. 1551 1552 Fine tuning of the installation directories: 1553 --bindir=DIR user executables [EPREFIX/bin] 1554 --sbindir=DIR system admin executables [EPREFIX/sbin] 1555 --libexecdir=DIR program executables [EPREFIX/libexec] 1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1559 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1560 --libdir=DIR object code libraries [EPREFIX/lib] 1561 --includedir=DIR C header files [PREFIX/include] 1562 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1565 --infodir=DIR info documentation [DATAROOTDIR/info] 1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1567 --mandir=DIR man documentation [DATAROOTDIR/man] 1568 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1569 --htmldir=DIR html documentation [DOCDIR] 1570 --dvidir=DIR dvi documentation [DOCDIR] 1571 --pdfdir=DIR pdf documentation [DOCDIR] 1572 --psdir=DIR ps documentation [DOCDIR] 1573 _ACEOF 1574 1575 cat <<\_ACEOF 1576 1577 System types: 1578 --build=BUILD configure for building on BUILD [guessed] 1579 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1580 _ACEOF 1581 fi 1582 1583 if test -n "$ac_init_help"; then 1584 case $ac_init_help in 1585 short | recursive ) echo "Configuration of unbound 1.26.1:";; 1586 esac 1587 cat <<\_ACEOF 1588 1589 Optional Features: 1590 --disable-option-checking ignore unrecognized --enable/--with options 1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1593 --enable-checking Enable warnings, asserts, makefile-dependencies 1594 --enable-debug same as enable-checking 1595 --disable-flto Disable link-time optimization (gcc specific option) 1596 --enable-pie Enable Position-Independent Executable (eg. to fully 1597 benefit from ASLR, small performance penalty) 1598 --enable-relro-now Enable full relocation binding at load-time (RELRO 1599 NOW, to protect GOT and .dtor areas) 1600 --enable-shared[=PKGS] build shared libraries [default=yes] 1601 --enable-static[=PKGS] build static libraries [default=yes] 1602 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1603 both] 1604 --enable-fast-install[=PKGS] 1605 optimize for fast installation [default=yes] 1606 --enable-aix-soname=aix|svr4|both 1607 shared library versioning (aka "SONAME") variant to 1608 provide on AIX, [default=aix]. 1609 --disable-libtool-lock avoid locking (might break parallel builds) 1610 --disable-rpath disable hardcoded rpath (default=enabled) 1611 --disable-largefile omit support for large files 1612 --enable-systemd compile with systemd support (requires libsystemd, 1613 pkg-config) 1614 --enable-alloc-checks enable to memory allocation statistics, for debug 1615 purposes 1616 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1617 purposes 1618 --enable-alloc-nonregional 1619 enable nonregional allocs, slow but exposes regional 1620 allocations to other memory purifiers, for debug 1621 purposes 1622 --disable-swig-version-check 1623 Disable swig version check to build python modules 1624 with older swig even though that is unreliable 1625 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1626 support 1627 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1628 --enable-subnet Enable client subnet 1629 --disable-gost Disable GOST support 1630 --disable-ecdsa Disable ECDSA support 1631 --disable-dsa Disable DSA support 1632 --disable-ed25519 Disable ED25519 support 1633 --disable-ed448 Disable ED448 support 1634 --enable-event-api Enable (experimental) pluggable event base 1635 libunbound API installed to unbound-event.h 1636 --enable-tfo-client Enable TCP Fast Open for client mode 1637 --enable-tfo-server Enable TCP Fast Open for server mode 1638 --enable-static-exe enable to compile executables statically against 1639 (event) uninstalled libs, for debug purposes 1640 --enable-fully-static enable to compile fully static 1641 --enable-lock-checks enable to check lock and unlock calls, for debug 1642 purposes 1643 --enable-allsymbols export all symbols from libunbound and link binaries 1644 to it, smaller install size but libunbound export 1645 table is polluted by internal symbols 1646 --enable-dnstap Enable dnstap support (requires protobuf-c) 1647 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1648 --enable-cachedb enable cachedb module that can use external cache 1649 storage 1650 --enable-ipsecmod Enable ipsecmod module that facilitates 1651 opportunistic IPsec 1652 --enable-ipset enable ipset module 1653 --disable-explicit-port-randomisation 1654 disable explicit source port randomisation and rely 1655 on the kernel to provide random source ports 1656 --enable-linux-ip-local-port-range 1657 Define this to enable use of 1658 /proc/sys/net/ipv4/ip_local_port_range as a default 1659 outgoing port range. This is only for the libunbound 1660 on Linux and does not affect unbound resolving 1661 daemon itself. This may severely limit the number of 1662 available outgoing ports and thus decrease 1663 randomness. Define this only when the target system 1664 restricts (e.g. some of SELinux enabled 1665 distributions) the use of non-ephemeral ports. 1666 1667 Optional Packages: 1668 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1669 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1670 --with-conf-file=path Pathname to the Unbound configuration file 1671 --with-run-dir=path set default directory to chdir to (by default dir 1672 part of cfg file) 1673 --with-chroot-dir=path set default directory to chroot to (by default same 1674 as run-dir) 1675 --with-share-dir=path set default directory with shared data (by default 1676 same as share/unbound) 1677 --with-pidfile=filename set default pathname to unbound pidfile (default 1678 run-dir/unbound.pid) 1679 --with-rootkey-file=filename 1680 set default pathname to root key file (default 1681 run-dir/root.key). This file is read and written. 1682 --with-rootcert-file=filename 1683 set default pathname to root update certificate file 1684 (default run-dir/icannbundle.pem). This file need 1685 not exist if you are content with the builtin. 1686 --with-username=user set default user that unbound changes to (default 1687 user is unbound) 1688 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1689 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1690 compiler's sysroot if not specified). 1691 --with-pthreads use pthreads library, or --without-pthreads to 1692 disable threading support. 1693 --with-solaris-threads use solaris native thread library. 1694 --with-syslog-facility=LOCAL0 - LOCAL7 1695 set SYSLOG_FACILITY, default DAEMON 1696 --with-dynlibmodule build dynamic library module, or 1697 --without-dynlibmodule to disable it. (default=no) 1698 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1699 (default=no) 1700 --with-pythonmodule build Python module, or --without-pythonmodule to 1701 disable script engine. (default=no) 1702 --with-nss=path use libnss instead of openssl, installed at path. 1703 --with-nettle=path use libnettle as crypto library, installed at path. 1704 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1705 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1706 /usr or specify like /usr/include/openssl11) 1707 --with-libbsd Use portable libbsd functions 1708 --with-deprecate-rsa-1024 1709 Deprecate RSA 1024 bit length, makes that an 1710 unsupported key, for use when OpenSSL FIPS refuses 1711 1024 bit verification 1712 --with-libevent=pathname 1713 use libevent (will check /usr/local /opt/local 1714 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1715 an explicit path). Slower, but allows use of large 1716 outgoing port ranges. 1717 --with-libexpat=path specify explicit path for libexpat. 1718 --with-libhiredis=path specify explicit path for libhiredis. 1719 --with-libnghttp2=path specify explicit path for libnghttp2. 1720 --with-libngtcp2=path specify explicit path for libngtcp2, for QUIC. 1721 --with-dnstap-socket-path=pathname 1722 set default dnstap socket path 1723 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1724 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1725 --with-libmnl=path specify explicit path for libmnl. 1726 --with-libunbound-only do not build daemon and tool programs 1727 1728 Some influential environment variables: 1729 CC C compiler command 1730 CFLAGS C compiler flags 1731 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1732 nonstandard directory <lib dir> 1733 LIBS libraries to pass to the linker, e.g. -l<library> 1734 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1735 you have headers in a nonstandard directory <include dir> 1736 YACC The `Yet Another Compiler Compiler' implementation to use. 1737 Defaults to the first program found out of: `bison -y', `byacc', 1738 `yacc'. 1739 YFLAGS The list of arguments that will be passed by default to $YACC. 1740 This script will default YFLAGS to the empty string to avoid a 1741 default value of `-d' given by some make applications. 1742 LT_SYS_LIBRARY_PATH 1743 User-defined run-time library search path. 1744 PKG_CONFIG path to pkg-config utility 1745 PKG_CONFIG_PATH 1746 directories to add to pkg-config's search path 1747 PKG_CONFIG_LIBDIR 1748 path overriding pkg-config's built-in search path 1749 CPP C preprocessor 1750 SYSTEMD_CFLAGS 1751 C compiler flags for SYSTEMD, overriding pkg-config 1752 SYSTEMD_LIBS 1753 linker flags for SYSTEMD, overriding pkg-config 1754 SYSTEMD_DAEMON_CFLAGS 1755 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1756 SYSTEMD_DAEMON_LIBS 1757 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1758 PYTHON_VERSION 1759 The installed Python version to use, for example '2.3'. This 1760 string will be appended to the Python interpreter canonical 1761 name. 1762 SOURCE_DATE_EPOCH 1763 If it is set, it uses the value of that variable instead of the 1764 current time as the build timestamp. The format is a unix 1765 timestamp. This enables reproducible build output. 1766 PROTOBUFC_CFLAGS 1767 C compiler flags for PROTOBUFC, overriding pkg-config 1768 PROTOBUFC_LIBS 1769 linker flags for PROTOBUFC, overriding pkg-config 1770 1771 Use these variables to override the choices made by `configure' or to help 1772 it to find libraries and programs with nonstandard names/locations. 1773 1774 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1775 _ACEOF 1776 ac_status=$? 1777 fi 1778 1779 if test "$ac_init_help" = "recursive"; then 1780 # If there are subdirs, report their specific --help. 1781 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1782 test -d "$ac_dir" || 1783 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1784 continue 1785 ac_builddir=. 1786 1787 case "$ac_dir" in 1788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1789 *) 1790 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1791 # A ".." for each directory in $ac_dir_suffix. 1792 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1793 case $ac_top_builddir_sub in 1794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1796 esac ;; 1797 esac 1798 ac_abs_top_builddir=$ac_pwd 1799 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1800 # for backward compatibility: 1801 ac_top_builddir=$ac_top_build_prefix 1802 1803 case $srcdir in 1804 .) # We are building in place. 1805 ac_srcdir=. 1806 ac_top_srcdir=$ac_top_builddir_sub 1807 ac_abs_top_srcdir=$ac_pwd ;; 1808 [\\/]* | ?:[\\/]* ) # Absolute name. 1809 ac_srcdir=$srcdir$ac_dir_suffix; 1810 ac_top_srcdir=$srcdir 1811 ac_abs_top_srcdir=$srcdir ;; 1812 *) # Relative name. 1813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1814 ac_top_srcdir=$ac_top_build_prefix$srcdir 1815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1816 esac 1817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1818 1819 cd "$ac_dir" || { ac_status=$?; continue; } 1820 # Check for configure.gnu first; this name is used for a wrapper for 1821 # Metaconfig's "Configure" on case-insensitive file systems. 1822 if test -f "$ac_srcdir/configure.gnu"; then 1823 echo && 1824 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1825 elif test -f "$ac_srcdir/configure"; then 1826 echo && 1827 $SHELL "$ac_srcdir/configure" --help=recursive 1828 else 1829 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1830 fi || ac_status=$? 1831 cd "$ac_pwd" || { ac_status=$?; break; } 1832 done 1833 fi 1834 1835 test -n "$ac_init_help" && exit $ac_status 1836 if $ac_init_version; then 1837 cat <<\_ACEOF 1838 unbound configure 1.26.1 1839 generated by GNU Autoconf 2.71 1840 1841 Copyright (C) 2021 Free Software Foundation, Inc. 1842 This configure script is free software; the Free Software Foundation 1843 gives unlimited permission to copy, distribute and modify it. 1844 _ACEOF 1845 exit 1846 fi 1847 1848 ## ------------------------ ## 1849 ## Autoconf initialization. ## 1850 ## ------------------------ ## 1851 1852 # ac_fn_c_try_compile LINENO 1853 # -------------------------- 1854 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1855 ac_fn_c_try_compile () 1856 { 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 rm -f conftest.$ac_objext conftest.beam 1859 if { { ac_try="$ac_compile" 1860 case "(($ac_try" in 1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1862 *) ac_try_echo=$ac_try;; 1863 esac 1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1865 printf "%s\n" "$ac_try_echo"; } >&5 1866 (eval "$ac_compile") 2>conftest.err 1867 ac_status=$? 1868 if test -s conftest.err; then 1869 grep -v '^ *+' conftest.err >conftest.er1 1870 cat conftest.er1 >&5 1871 mv -f conftest.er1 conftest.err 1872 fi 1873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1874 test $ac_status = 0; } && { 1875 test -z "$ac_c_werror_flag" || 1876 test ! -s conftest.err 1877 } && test -s conftest.$ac_objext 1878 then : 1879 ac_retval=0 1880 else $as_nop 1881 printf "%s\n" "$as_me: failed program was:" >&5 1882 sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=1 1885 fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 as_fn_set_status $ac_retval 1888 1889 } # ac_fn_c_try_compile 1890 1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1892 # ------------------------------------------------------- 1893 # Tests whether HEADER exists and can be compiled using the include files in 1894 # INCLUDES, setting the cache variable VAR accordingly. 1895 ac_fn_c_check_header_compile () 1896 { 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899 printf %s "checking for $2... " >&6; } 1900 if eval test \${$3+y} 1901 then : 1902 printf %s "(cached) " >&6 1903 else $as_nop 1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905 /* end confdefs.h. */ 1906 $4 1907 #include <$2> 1908 _ACEOF 1909 if ac_fn_c_try_compile "$LINENO" 1910 then : 1911 eval "$3=yes" 1912 else $as_nop 1913 eval "$3=no" 1914 fi 1915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1916 fi 1917 eval ac_res=\$$3 1918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919 printf "%s\n" "$ac_res" >&6; } 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 1922 } # ac_fn_c_check_header_compile 1923 1924 # ac_fn_c_try_link LINENO 1925 # ----------------------- 1926 # Try to link conftest.$ac_ext, and return whether this succeeded. 1927 ac_fn_c_try_link () 1928 { 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1931 if { { ac_try="$ac_link" 1932 case "(($ac_try" in 1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1934 *) ac_try_echo=$ac_try;; 1935 esac 1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1937 printf "%s\n" "$ac_try_echo"; } >&5 1938 (eval "$ac_link") 2>conftest.err 1939 ac_status=$? 1940 if test -s conftest.err; then 1941 grep -v '^ *+' conftest.err >conftest.er1 1942 cat conftest.er1 >&5 1943 mv -f conftest.er1 conftest.err 1944 fi 1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1946 test $ac_status = 0; } && { 1947 test -z "$ac_c_werror_flag" || 1948 test ! -s conftest.err 1949 } && test -s conftest$ac_exeext && { 1950 test "$cross_compiling" = yes || 1951 test -x conftest$ac_exeext 1952 } 1953 then : 1954 ac_retval=0 1955 else $as_nop 1956 printf "%s\n" "$as_me: failed program was:" >&5 1957 sed 's/^/| /' conftest.$ac_ext >&5 1958 1959 ac_retval=1 1960 fi 1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1963 # interfere with the next link command; also delete a directory that is 1964 # left behind by Apple's compiler. We do this before executing the actions. 1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 as_fn_set_status $ac_retval 1968 1969 } # ac_fn_c_try_link 1970 1971 # ac_fn_c_check_func LINENO FUNC VAR 1972 # ---------------------------------- 1973 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1974 ac_fn_c_check_func () 1975 { 1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978 printf %s "checking for $2... " >&6; } 1979 if eval test \${$3+y} 1980 then : 1981 printf %s "(cached) " >&6 1982 else $as_nop 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984 /* end confdefs.h. */ 1985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1986 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1987 #define $2 innocuous_$2 1988 1989 /* System header to define __stub macros and hopefully few prototypes, 1990 which can conflict with char $2 (); below. */ 1991 1992 #include <limits.h> 1993 #undef $2 1994 1995 /* Override any GCC internal prototype to avoid an error. 1996 Use char because int might match the return type of a GCC 1997 builtin and then its argument prototype would still apply. */ 1998 #ifdef __cplusplus 1999 extern "C" 2000 #endif 2001 char $2 (); 2002 /* The GNU C library defines this for functions which it implements 2003 to always fail with ENOSYS. Some functions are actually named 2004 something starting with __ and the normal name is an alias. */ 2005 #if defined __stub_$2 || defined __stub___$2 2006 choke me 2007 #endif 2008 2009 int 2010 main (void) 2011 { 2012 return $2 (); 2013 ; 2014 return 0; 2015 } 2016 _ACEOF 2017 if ac_fn_c_try_link "$LINENO" 2018 then : 2019 eval "$3=yes" 2020 else $as_nop 2021 eval "$3=no" 2022 fi 2023 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2024 conftest$ac_exeext conftest.$ac_ext 2025 fi 2026 eval ac_res=\$$3 2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2028 printf "%s\n" "$ac_res" >&6; } 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 2031 } # ac_fn_c_check_func 2032 2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2034 # ------------------------------------------- 2035 # Tests whether TYPE exists after having included INCLUDES, setting cache 2036 # variable VAR accordingly. 2037 ac_fn_c_check_type () 2038 { 2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2041 printf %s "checking for $2... " >&6; } 2042 if eval test \${$3+y} 2043 then : 2044 printf %s "(cached) " >&6 2045 else $as_nop 2046 eval "$3=no" 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048 /* end confdefs.h. */ 2049 $4 2050 int 2051 main (void) 2052 { 2053 if (sizeof ($2)) 2054 return 0; 2055 ; 2056 return 0; 2057 } 2058 _ACEOF 2059 if ac_fn_c_try_compile "$LINENO" 2060 then : 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062 /* end confdefs.h. */ 2063 $4 2064 int 2065 main (void) 2066 { 2067 if (sizeof (($2))) 2068 return 0; 2069 ; 2070 return 0; 2071 } 2072 _ACEOF 2073 if ac_fn_c_try_compile "$LINENO" 2074 then : 2075 2076 else $as_nop 2077 eval "$3=yes" 2078 fi 2079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2080 fi 2081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2082 fi 2083 eval ac_res=\$$3 2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2085 printf "%s\n" "$ac_res" >&6; } 2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2087 2088 } # ac_fn_c_check_type 2089 2090 # ac_fn_c_try_cpp LINENO 2091 # ---------------------- 2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2093 ac_fn_c_try_cpp () 2094 { 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 if { { ac_try="$ac_cpp conftest.$ac_ext" 2097 case "(($ac_try" in 2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2099 *) ac_try_echo=$ac_try;; 2100 esac 2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2102 printf "%s\n" "$ac_try_echo"; } >&5 2103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2104 ac_status=$? 2105 if test -s conftest.err; then 2106 grep -v '^ *+' conftest.err >conftest.er1 2107 cat conftest.er1 >&5 2108 mv -f conftest.er1 conftest.err 2109 fi 2110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2111 test $ac_status = 0; } > conftest.i && { 2112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2113 test ! -s conftest.err 2114 } 2115 then : 2116 ac_retval=0 2117 else $as_nop 2118 printf "%s\n" "$as_me: failed program was:" >&5 2119 sed 's/^/| /' conftest.$ac_ext >&5 2120 2121 ac_retval=1 2122 fi 2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2124 as_fn_set_status $ac_retval 2125 2126 } # ac_fn_c_try_cpp 2127 2128 # ac_fn_c_try_run LINENO 2129 # ---------------------- 2130 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2131 # executables *can* be run. 2132 ac_fn_c_try_run () 2133 { 2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2135 if { { ac_try="$ac_link" 2136 case "(($ac_try" in 2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2138 *) ac_try_echo=$ac_try;; 2139 esac 2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2141 printf "%s\n" "$ac_try_echo"; } >&5 2142 (eval "$ac_link") 2>&5 2143 ac_status=$? 2144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2145 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2146 { { case "(($ac_try" in 2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2148 *) ac_try_echo=$ac_try;; 2149 esac 2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2151 printf "%s\n" "$ac_try_echo"; } >&5 2152 (eval "$ac_try") 2>&5 2153 ac_status=$? 2154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2155 test $ac_status = 0; }; } 2156 then : 2157 ac_retval=0 2158 else $as_nop 2159 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2160 printf "%s\n" "$as_me: failed program was:" >&5 2161 sed 's/^/| /' conftest.$ac_ext >&5 2162 2163 ac_retval=$ac_status 2164 fi 2165 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2167 as_fn_set_status $ac_retval 2168 2169 } # ac_fn_c_try_run 2170 2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2172 # -------------------------------------------- 2173 # Tries to find the compile-time value of EXPR in a program that includes 2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2175 # computed 2176 ac_fn_c_compute_int () 2177 { 2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2179 if test "$cross_compiling" = yes; then 2180 # Depending upon the size, compute the lo and hi bounds. 2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2182 /* end confdefs.h. */ 2183 $4 2184 int 2185 main (void) 2186 { 2187 static int test_array [1 - 2 * !(($2) >= 0)]; 2188 test_array [0] = 0; 2189 return test_array [0]; 2190 2191 ; 2192 return 0; 2193 } 2194 _ACEOF 2195 if ac_fn_c_try_compile "$LINENO" 2196 then : 2197 ac_lo=0 ac_mid=0 2198 while :; do 2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2200 /* end confdefs.h. */ 2201 $4 2202 int 2203 main (void) 2204 { 2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2206 test_array [0] = 0; 2207 return test_array [0]; 2208 2209 ; 2210 return 0; 2211 } 2212 _ACEOF 2213 if ac_fn_c_try_compile "$LINENO" 2214 then : 2215 ac_hi=$ac_mid; break 2216 else $as_nop 2217 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2218 if test $ac_lo -le $ac_mid; then 2219 ac_lo= ac_hi= 2220 break 2221 fi 2222 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2223 fi 2224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2225 done 2226 else $as_nop 2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228 /* end confdefs.h. */ 2229 $4 2230 int 2231 main (void) 2232 { 2233 static int test_array [1 - 2 * !(($2) < 0)]; 2234 test_array [0] = 0; 2235 return test_array [0]; 2236 2237 ; 2238 return 0; 2239 } 2240 _ACEOF 2241 if ac_fn_c_try_compile "$LINENO" 2242 then : 2243 ac_hi=-1 ac_mid=-1 2244 while :; do 2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2246 /* end confdefs.h. */ 2247 $4 2248 int 2249 main (void) 2250 { 2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2252 test_array [0] = 0; 2253 return test_array [0]; 2254 2255 ; 2256 return 0; 2257 } 2258 _ACEOF 2259 if ac_fn_c_try_compile "$LINENO" 2260 then : 2261 ac_lo=$ac_mid; break 2262 else $as_nop 2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2264 if test $ac_mid -le $ac_hi; then 2265 ac_lo= ac_hi= 2266 break 2267 fi 2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2269 fi 2270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2271 done 2272 else $as_nop 2273 ac_lo= ac_hi= 2274 fi 2275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2276 fi 2277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2278 # Binary search between lo and hi bounds. 2279 while test "x$ac_lo" != "x$ac_hi"; do 2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282 /* end confdefs.h. */ 2283 $4 2284 int 2285 main (void) 2286 { 2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2288 test_array [0] = 0; 2289 return test_array [0]; 2290 2291 ; 2292 return 0; 2293 } 2294 _ACEOF 2295 if ac_fn_c_try_compile "$LINENO" 2296 then : 2297 ac_hi=$ac_mid 2298 else $as_nop 2299 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2300 fi 2301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2302 done 2303 case $ac_lo in #(( 2304 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2305 '') ac_retval=1 ;; 2306 esac 2307 else 2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2309 /* end confdefs.h. */ 2310 $4 2311 static long int longval (void) { return $2; } 2312 static unsigned long int ulongval (void) { return $2; } 2313 #include <stdio.h> 2314 #include <stdlib.h> 2315 int 2316 main (void) 2317 { 2318 2319 FILE *f = fopen ("conftest.val", "w"); 2320 if (! f) 2321 return 1; 2322 if (($2) < 0) 2323 { 2324 long int i = longval (); 2325 if (i != ($2)) 2326 return 1; 2327 fprintf (f, "%ld", i); 2328 } 2329 else 2330 { 2331 unsigned long int i = ulongval (); 2332 if (i != ($2)) 2333 return 1; 2334 fprintf (f, "%lu", i); 2335 } 2336 /* Do not output a trailing newline, as this causes \r\n confusion 2337 on some platforms. */ 2338 return ferror (f) || fclose (f) != 0; 2339 2340 ; 2341 return 0; 2342 } 2343 _ACEOF 2344 if ac_fn_c_try_run "$LINENO" 2345 then : 2346 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2347 else $as_nop 2348 ac_retval=1 2349 fi 2350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2351 conftest.$ac_objext conftest.beam conftest.$ac_ext 2352 rm -f conftest.val 2353 2354 fi 2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2356 as_fn_set_status $ac_retval 2357 2358 } # ac_fn_c_compute_int 2359 2360 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2361 # ------------------------------------------------------------------ 2362 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2363 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2364 ac_fn_check_decl () 2365 { 2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2367 as_decl_name=`echo $2|sed 's/ *(.*//'` 2368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2369 printf %s "checking whether $as_decl_name is declared... " >&6; } 2370 if eval test \${$3+y} 2371 then : 2372 printf %s "(cached) " >&6 2373 else $as_nop 2374 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2375 eval ac_save_FLAGS=\$$6 2376 as_fn_append $6 " $5" 2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2378 /* end confdefs.h. */ 2379 $4 2380 int 2381 main (void) 2382 { 2383 #ifndef $as_decl_name 2384 #ifdef __cplusplus 2385 (void) $as_decl_use; 2386 #else 2387 (void) $as_decl_name; 2388 #endif 2389 #endif 2390 2391 ; 2392 return 0; 2393 } 2394 _ACEOF 2395 if ac_fn_c_try_compile "$LINENO" 2396 then : 2397 eval "$3=yes" 2398 else $as_nop 2399 eval "$3=no" 2400 fi 2401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2402 eval $6=\$ac_save_FLAGS 2403 2404 fi 2405 eval ac_res=\$$3 2406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2407 printf "%s\n" "$ac_res" >&6; } 2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2409 2410 } # ac_fn_check_decl 2411 2412 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2413 # ---------------------------------------------------- 2414 # Tries to find if the field MEMBER exists in type AGGR, after including 2415 # INCLUDES, setting cache variable VAR accordingly. 2416 ac_fn_c_check_member () 2417 { 2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2420 printf %s "checking for $2.$3... " >&6; } 2421 if eval test \${$4+y} 2422 then : 2423 printf %s "(cached) " >&6 2424 else $as_nop 2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2426 /* end confdefs.h. */ 2427 $5 2428 int 2429 main (void) 2430 { 2431 static $2 ac_aggr; 2432 if (ac_aggr.$3) 2433 return 0; 2434 ; 2435 return 0; 2436 } 2437 _ACEOF 2438 if ac_fn_c_try_compile "$LINENO" 2439 then : 2440 eval "$4=yes" 2441 else $as_nop 2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2443 /* end confdefs.h. */ 2444 $5 2445 int 2446 main (void) 2447 { 2448 static $2 ac_aggr; 2449 if (sizeof ac_aggr.$3) 2450 return 0; 2451 ; 2452 return 0; 2453 } 2454 _ACEOF 2455 if ac_fn_c_try_compile "$LINENO" 2456 then : 2457 eval "$4=yes" 2458 else $as_nop 2459 eval "$4=no" 2460 fi 2461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2462 fi 2463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2464 fi 2465 eval ac_res=\$$4 2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2467 printf "%s\n" "$ac_res" >&6; } 2468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2469 2470 } # ac_fn_c_check_member 2471 ac_configure_args_raw= 2472 for ac_arg 2473 do 2474 case $ac_arg in 2475 *\'*) 2476 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2477 esac 2478 as_fn_append ac_configure_args_raw " '$ac_arg'" 2479 done 2480 2481 case $ac_configure_args_raw in 2482 *$as_nl*) 2483 ac_safe_unquote= ;; 2484 *) 2485 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2486 ac_unsafe_a="$ac_unsafe_z#~" 2487 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2488 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2489 esac 2490 2491 cat >config.log <<_ACEOF 2492 This file contains any messages produced by compilers while 2493 running configure, to aid debugging if configure makes a mistake. 2494 2495 It was created by unbound $as_me 1.26.1, which was 2496 generated by GNU Autoconf 2.71. Invocation command line was 2497 2498 $ $0$ac_configure_args_raw 2499 2500 _ACEOF 2501 exec 5>>config.log 2502 { 2503 cat <<_ASUNAME 2504 ## --------- ## 2505 ## Platform. ## 2506 ## --------- ## 2507 2508 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2509 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2510 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2511 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2512 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2513 2514 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2515 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2516 2517 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2518 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2519 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2520 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2521 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2522 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2523 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2524 2525 _ASUNAME 2526 2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2528 for as_dir in $PATH 2529 do 2530 IFS=$as_save_IFS 2531 case $as_dir in #((( 2532 '') as_dir=./ ;; 2533 */) ;; 2534 *) as_dir=$as_dir/ ;; 2535 esac 2536 printf "%s\n" "PATH: $as_dir" 2537 done 2538 IFS=$as_save_IFS 2539 2540 } >&5 2541 2542 cat >&5 <<_ACEOF 2543 2544 2545 ## ----------- ## 2546 ## Core tests. ## 2547 ## ----------- ## 2548 2549 _ACEOF 2550 2551 2552 # Keep a trace of the command line. 2553 # Strip out --no-create and --no-recursion so they do not pile up. 2554 # Strip out --silent because we don't want to record it for future runs. 2555 # Also quote any args containing shell meta-characters. 2556 # Make two passes to allow for proper duplicate-argument suppression. 2557 ac_configure_args= 2558 ac_configure_args0= 2559 ac_configure_args1= 2560 ac_must_keep_next=false 2561 for ac_pass in 1 2 2562 do 2563 for ac_arg 2564 do 2565 case $ac_arg in 2566 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2568 | -silent | --silent | --silen | --sile | --sil) 2569 continue ;; 2570 *\'*) 2571 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2572 esac 2573 case $ac_pass in 2574 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2575 2) 2576 as_fn_append ac_configure_args1 " '$ac_arg'" 2577 if test $ac_must_keep_next = true; then 2578 ac_must_keep_next=false # Got value, back to normal. 2579 else 2580 case $ac_arg in 2581 *=* | --config-cache | -C | -disable-* | --disable-* \ 2582 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2583 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2584 | -with-* | --with-* | -without-* | --without-* | --x) 2585 case "$ac_configure_args0 " in 2586 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2587 esac 2588 ;; 2589 -* ) ac_must_keep_next=true ;; 2590 esac 2591 fi 2592 as_fn_append ac_configure_args " '$ac_arg'" 2593 ;; 2594 esac 2595 done 2596 done 2597 { ac_configure_args0=; unset ac_configure_args0;} 2598 { ac_configure_args1=; unset ac_configure_args1;} 2599 2600 # When interrupted or exit'd, cleanup temporary files, and complete 2601 # config.log. We remove comments because anyway the quotes in there 2602 # would cause problems or look ugly. 2603 # WARNING: Use '\'' to represent an apostrophe within the trap. 2604 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2605 trap 'exit_status=$? 2606 # Sanitize IFS. 2607 IFS=" "" $as_nl" 2608 # Save into config.log some information that might help in debugging. 2609 { 2610 echo 2611 2612 printf "%s\n" "## ---------------- ## 2613 ## Cache variables. ## 2614 ## ---------------- ##" 2615 echo 2616 # The following way of writing the cache mishandles newlines in values, 2617 ( 2618 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2619 eval ac_val=\$$ac_var 2620 case $ac_val in #( 2621 *${as_nl}*) 2622 case $ac_var in #( 2623 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2624 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2625 esac 2626 case $ac_var in #( 2627 _ | IFS | as_nl) ;; #( 2628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2629 *) { eval $ac_var=; unset $ac_var;} ;; 2630 esac ;; 2631 esac 2632 done 2633 (set) 2>&1 | 2634 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2635 *${as_nl}ac_space=\ *) 2636 sed -n \ 2637 "s/'\''/'\''\\\\'\'''\''/g; 2638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2639 ;; #( 2640 *) 2641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2642 ;; 2643 esac | 2644 sort 2645 ) 2646 echo 2647 2648 printf "%s\n" "## ----------------- ## 2649 ## Output variables. ## 2650 ## ----------------- ##" 2651 echo 2652 for ac_var in $ac_subst_vars 2653 do 2654 eval ac_val=\$$ac_var 2655 case $ac_val in 2656 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2657 esac 2658 printf "%s\n" "$ac_var='\''$ac_val'\''" 2659 done | sort 2660 echo 2661 2662 if test -n "$ac_subst_files"; then 2663 printf "%s\n" "## ------------------- ## 2664 ## File substitutions. ## 2665 ## ------------------- ##" 2666 echo 2667 for ac_var in $ac_subst_files 2668 do 2669 eval ac_val=\$$ac_var 2670 case $ac_val in 2671 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2672 esac 2673 printf "%s\n" "$ac_var='\''$ac_val'\''" 2674 done | sort 2675 echo 2676 fi 2677 2678 if test -s confdefs.h; then 2679 printf "%s\n" "## ----------- ## 2680 ## confdefs.h. ## 2681 ## ----------- ##" 2682 echo 2683 cat confdefs.h 2684 echo 2685 fi 2686 test "$ac_signal" != 0 && 2687 printf "%s\n" "$as_me: caught signal $ac_signal" 2688 printf "%s\n" "$as_me: exit $exit_status" 2689 } >&5 2690 rm -f core *.core core.conftest.* && 2691 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2692 exit $exit_status 2693 ' 0 2694 for ac_signal in 1 2 13 15; do 2695 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2696 done 2697 ac_signal=0 2698 2699 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2700 rm -f -r conftest* confdefs.h 2701 2702 printf "%s\n" "/* confdefs.h */" > confdefs.h 2703 2704 # Predefined preprocessor variables. 2705 2706 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2707 2708 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2709 2710 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2711 2712 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2713 2714 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2715 2716 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2717 2718 2719 # Let the site file select an alternate cache file if it wants to. 2720 # Prefer an explicitly selected file to automatically selected ones. 2721 if test -n "$CONFIG_SITE"; then 2722 ac_site_files="$CONFIG_SITE" 2723 elif test "x$prefix" != xNONE; then 2724 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2725 else 2726 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2727 fi 2728 2729 for ac_site_file in $ac_site_files 2730 do 2731 case $ac_site_file in #( 2732 */*) : 2733 ;; #( 2734 *) : 2735 ac_site_file=./$ac_site_file ;; 2736 esac 2737 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2739 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2740 sed 's/^/| /' "$ac_site_file" >&5 2741 . "$ac_site_file" \ 2742 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2743 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2744 as_fn_error $? "failed to load site script $ac_site_file 2745 See \`config.log' for more details" "$LINENO" 5; } 2746 fi 2747 done 2748 2749 if test -r "$cache_file"; then 2750 # Some versions of bash will fail to source /dev/null (special files 2751 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2752 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2754 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2755 case $cache_file in 2756 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2757 *) . "./$cache_file";; 2758 esac 2759 fi 2760 else 2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2762 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2763 >$cache_file 2764 fi 2765 2766 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2767 # Test code for whether the C compiler supports C89 (global declarations) 2768 ac_c_conftest_c89_globals=' 2769 /* Does the compiler advertise C89 conformance? 2770 Do not test the value of __STDC__, because some compilers set it to 0 2771 while being otherwise adequately conformant. */ 2772 #if !defined __STDC__ 2773 # error "Compiler does not advertise C89 conformance" 2774 #endif 2775 2776 #include <stddef.h> 2777 #include <stdarg.h> 2778 struct stat; 2779 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2780 struct buf { int x; }; 2781 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2782 static char *e (p, i) 2783 char **p; 2784 int i; 2785 { 2786 return p[i]; 2787 } 2788 static char *f (char * (*g) (char **, int), char **p, ...) 2789 { 2790 char *s; 2791 va_list v; 2792 va_start (v,p); 2793 s = g (p, va_arg (v,int)); 2794 va_end (v); 2795 return s; 2796 } 2797 2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2799 function prototypes and stuff, but not \xHH hex character constants. 2800 These do not provoke an error unfortunately, instead are silently treated 2801 as an "x". The following induces an error, until -std is added to get 2802 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2803 array size at least. It is necessary to write \x00 == 0 to get something 2804 that is true only with -std. */ 2805 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2806 2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2808 inside strings and character constants. */ 2809 #define FOO(x) '\''x'\'' 2810 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2811 2812 int test (int i, double x); 2813 struct s1 {int (*f) (int a);}; 2814 struct s2 {int (*f) (double a);}; 2815 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2816 int, int);' 2817 2818 # Test code for whether the C compiler supports C89 (body of main). 2819 ac_c_conftest_c89_main=' 2820 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2821 ' 2822 2823 # Test code for whether the C compiler supports C99 (global declarations) 2824 ac_c_conftest_c99_globals=' 2825 // Does the compiler advertise C99 conformance? 2826 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2827 # error "Compiler does not advertise C99 conformance" 2828 #endif 2829 2830 #include <stdbool.h> 2831 extern int puts (const char *); 2832 extern int printf (const char *, ...); 2833 extern int dprintf (int, const char *, ...); 2834 extern void *malloc (size_t); 2835 2836 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2837 // dprintf is used instead of fprintf to avoid needing to declare 2838 // FILE and stderr. 2839 #define debug(...) dprintf (2, __VA_ARGS__) 2840 #define showlist(...) puts (#__VA_ARGS__) 2841 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2842 static void 2843 test_varargs_macros (void) 2844 { 2845 int x = 1234; 2846 int y = 5678; 2847 debug ("Flag"); 2848 debug ("X = %d\n", x); 2849 showlist (The first, second, and third items.); 2850 report (x>y, "x is %d but y is %d", x, y); 2851 } 2852 2853 // Check long long types. 2854 #define BIG64 18446744073709551615ull 2855 #define BIG32 4294967295ul 2856 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2857 #if !BIG_OK 2858 #error "your preprocessor is broken" 2859 #endif 2860 #if BIG_OK 2861 #else 2862 #error "your preprocessor is broken" 2863 #endif 2864 static long long int bignum = -9223372036854775807LL; 2865 static unsigned long long int ubignum = BIG64; 2866 2867 struct incomplete_array 2868 { 2869 int datasize; 2870 double data[]; 2871 }; 2872 2873 struct named_init { 2874 int number; 2875 const wchar_t *name; 2876 double average; 2877 }; 2878 2879 typedef const char *ccp; 2880 2881 static inline int 2882 test_restrict (ccp restrict text) 2883 { 2884 // See if C++-style comments work. 2885 // Iterate through items via the restricted pointer. 2886 // Also check for declarations in for loops. 2887 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2888 continue; 2889 return 0; 2890 } 2891 2892 // Check varargs and va_copy. 2893 static bool 2894 test_varargs (const char *format, ...) 2895 { 2896 va_list args; 2897 va_start (args, format); 2898 va_list args_copy; 2899 va_copy (args_copy, args); 2900 2901 const char *str = ""; 2902 int number = 0; 2903 float fnumber = 0; 2904 2905 while (*format) 2906 { 2907 switch (*format++) 2908 { 2909 case '\''s'\'': // string 2910 str = va_arg (args_copy, const char *); 2911 break; 2912 case '\''d'\'': // int 2913 number = va_arg (args_copy, int); 2914 break; 2915 case '\''f'\'': // float 2916 fnumber = va_arg (args_copy, double); 2917 break; 2918 default: 2919 break; 2920 } 2921 } 2922 va_end (args_copy); 2923 va_end (args); 2924 2925 return *str && number && fnumber; 2926 } 2927 ' 2928 2929 # Test code for whether the C compiler supports C99 (body of main). 2930 ac_c_conftest_c99_main=' 2931 // Check bool. 2932 _Bool success = false; 2933 success |= (argc != 0); 2934 2935 // Check restrict. 2936 if (test_restrict ("String literal") == 0) 2937 success = true; 2938 char *restrict newvar = "Another string"; 2939 2940 // Check varargs. 2941 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2942 test_varargs_macros (); 2943 2944 // Check flexible array members. 2945 struct incomplete_array *ia = 2946 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2947 ia->datasize = 10; 2948 for (int i = 0; i < ia->datasize; ++i) 2949 ia->data[i] = i * 1.234; 2950 2951 // Check named initializers. 2952 struct named_init ni = { 2953 .number = 34, 2954 .name = L"Test wide string", 2955 .average = 543.34343, 2956 }; 2957 2958 ni.number = 58; 2959 2960 int dynamic_array[ni.number]; 2961 dynamic_array[0] = argv[0][0]; 2962 dynamic_array[ni.number - 1] = 543; 2963 2964 // work around unused variable warnings 2965 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2966 || dynamic_array[ni.number - 1] != 543); 2967 ' 2968 2969 # Test code for whether the C compiler supports C11 (global declarations) 2970 ac_c_conftest_c11_globals=' 2971 // Does the compiler advertise C11 conformance? 2972 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2973 # error "Compiler does not advertise C11 conformance" 2974 #endif 2975 2976 // Check _Alignas. 2977 char _Alignas (double) aligned_as_double; 2978 char _Alignas (0) no_special_alignment; 2979 extern char aligned_as_int; 2980 char _Alignas (0) _Alignas (int) aligned_as_int; 2981 2982 // Check _Alignof. 2983 enum 2984 { 2985 int_alignment = _Alignof (int), 2986 int_array_alignment = _Alignof (int[100]), 2987 char_alignment = _Alignof (char) 2988 }; 2989 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2990 2991 // Check _Noreturn. 2992 int _Noreturn does_not_return (void) { for (;;) continue; } 2993 2994 // Check _Static_assert. 2995 struct test_static_assert 2996 { 2997 int x; 2998 _Static_assert (sizeof (int) <= sizeof (long int), 2999 "_Static_assert does not work in struct"); 3000 long int y; 3001 }; 3002 3003 // Check UTF-8 literals. 3004 #define u8 syntax error! 3005 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3006 3007 // Check duplicate typedefs. 3008 typedef long *long_ptr; 3009 typedef long int *long_ptr; 3010 typedef long_ptr long_ptr; 3011 3012 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3013 struct anonymous 3014 { 3015 union { 3016 struct { int i; int j; }; 3017 struct { int k; long int l; } w; 3018 }; 3019 int m; 3020 } v1; 3021 ' 3022 3023 # Test code for whether the C compiler supports C11 (body of main). 3024 ac_c_conftest_c11_main=' 3025 _Static_assert ((offsetof (struct anonymous, i) 3026 == offsetof (struct anonymous, w.k)), 3027 "Anonymous union alignment botch"); 3028 v1.i = 2; 3029 v1.w.k = 5; 3030 ok |= v1.i != 5; 3031 ' 3032 3033 # Test code for whether the C compiler supports C11 (complete). 3034 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3035 ${ac_c_conftest_c99_globals} 3036 ${ac_c_conftest_c11_globals} 3037 3038 int 3039 main (int argc, char **argv) 3040 { 3041 int ok = 0; 3042 ${ac_c_conftest_c89_main} 3043 ${ac_c_conftest_c99_main} 3044 ${ac_c_conftest_c11_main} 3045 return ok; 3046 } 3047 " 3048 3049 # Test code for whether the C compiler supports C99 (complete). 3050 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3051 ${ac_c_conftest_c99_globals} 3052 3053 int 3054 main (int argc, char **argv) 3055 { 3056 int ok = 0; 3057 ${ac_c_conftest_c89_main} 3058 ${ac_c_conftest_c99_main} 3059 return ok; 3060 } 3061 " 3062 3063 # Test code for whether the C compiler supports C89 (complete). 3064 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3065 3066 int 3067 main (int argc, char **argv) 3068 { 3069 int ok = 0; 3070 ${ac_c_conftest_c89_main} 3071 return ok; 3072 } 3073 " 3074 3075 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3076 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3077 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3078 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3079 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3080 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3081 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3082 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3083 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3084 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3085 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 3086 as_fn_append ac_func_c_list " fork HAVE_FORK" 3087 as_fn_append ac_func_c_list " vfork HAVE_VFORK" 3088 3089 # Auxiliary files required by this configure script. 3090 ac_aux_files="ltmain.sh config.guess config.sub" 3091 3092 # Locations in which to look for auxiliary files. 3093 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3094 3095 # Search for a directory containing all of the required auxiliary files, 3096 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3097 # If we don't find one directory that contains all the files we need, 3098 # we report the set of missing files from the *first* directory in 3099 # $ac_aux_dir_candidates and give up. 3100 ac_missing_aux_files="" 3101 ac_first_candidate=: 3102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104 as_found=false 3105 for as_dir in $ac_aux_dir_candidates 3106 do 3107 IFS=$as_save_IFS 3108 case $as_dir in #((( 3109 '') as_dir=./ ;; 3110 */) ;; 3111 *) as_dir=$as_dir/ ;; 3112 esac 3113 as_found=: 3114 3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3116 ac_aux_dir_found=yes 3117 ac_install_sh= 3118 for ac_aux in $ac_aux_files 3119 do 3120 # As a special case, if "install-sh" is required, that requirement 3121 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3122 # and $ac_install_sh is set appropriately for whichever one is found. 3123 if test x"$ac_aux" = x"install-sh" 3124 then 3125 if test -f "${as_dir}install-sh"; then 3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3127 ac_install_sh="${as_dir}install-sh -c" 3128 elif test -f "${as_dir}install.sh"; then 3129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3130 ac_install_sh="${as_dir}install.sh -c" 3131 elif test -f "${as_dir}shtool"; then 3132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3133 ac_install_sh="${as_dir}shtool install -c" 3134 else 3135 ac_aux_dir_found=no 3136 if $ac_first_candidate; then 3137 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3138 else 3139 break 3140 fi 3141 fi 3142 else 3143 if test -f "${as_dir}${ac_aux}"; then 3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3145 else 3146 ac_aux_dir_found=no 3147 if $ac_first_candidate; then 3148 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3149 else 3150 break 3151 fi 3152 fi 3153 fi 3154 done 3155 if test "$ac_aux_dir_found" = yes; then 3156 ac_aux_dir="$as_dir" 3157 break 3158 fi 3159 ac_first_candidate=false 3160 3161 as_found=false 3162 done 3163 IFS=$as_save_IFS 3164 if $as_found 3165 then : 3166 3167 else $as_nop 3168 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3169 fi 3170 3171 3172 # These three variables are undocumented and unsupported, 3173 # and are intended to be withdrawn in a future Autoconf release. 3174 # They can cause serious problems if a builder's source tree is in a directory 3175 # whose full name contains unusual characters. 3176 if test -f "${ac_aux_dir}config.guess"; then 3177 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3178 fi 3179 if test -f "${ac_aux_dir}config.sub"; then 3180 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3181 fi 3182 if test -f "$ac_aux_dir/configure"; then 3183 ac_configure="$SHELL ${ac_aux_dir}configure" 3184 fi 3185 3186 # Check that the precious variables saved in the cache have kept the same 3187 # value. 3188 ac_cache_corrupted=false 3189 for ac_var in $ac_precious_vars; do 3190 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3191 eval ac_new_set=\$ac_env_${ac_var}_set 3192 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3193 eval ac_new_val=\$ac_env_${ac_var}_value 3194 case $ac_old_set,$ac_new_set in 3195 set,) 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3197 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3198 ac_cache_corrupted=: ;; 3199 ,set) 3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3201 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3202 ac_cache_corrupted=: ;; 3203 ,);; 3204 *) 3205 if test "x$ac_old_val" != "x$ac_new_val"; then 3206 # differences in whitespace do not lead to failure. 3207 ac_old_val_w=`echo x $ac_old_val` 3208 ac_new_val_w=`echo x $ac_new_val` 3209 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3211 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3212 ac_cache_corrupted=: 3213 else 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3215 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3216 eval $ac_var=\$ac_old_val 3217 fi 3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3219 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3221 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3222 fi;; 3223 esac 3224 # Pass precious variables to config.status. 3225 if test "$ac_new_set" = set; then 3226 case $ac_new_val in 3227 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3228 *) ac_arg=$ac_var=$ac_new_val ;; 3229 esac 3230 case " $ac_configure_args " in 3231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3232 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3233 esac 3234 fi 3235 done 3236 if $ac_cache_corrupted; then 3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3240 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3241 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3242 and start over" "$LINENO" 5 3243 fi 3244 ## -------------------- ## 3245 ## Main body of script. ## 3246 ## -------------------- ## 3247 3248 ac_ext=c 3249 ac_cpp='$CPP $CPPFLAGS' 3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3253 3254 3255 UNBOUND_VERSION_MAJOR=1 3256 3257 UNBOUND_VERSION_MINOR=26 3258 3259 UNBOUND_VERSION_MICRO=1 3260 3261 3262 LIBUNBOUND_CURRENT=9 3263 LIBUNBOUND_REVISION=40 3264 LIBUNBOUND_AGE=1 3265 # 1.0.0 had 0:12:0 3266 # 1.0.1 had 0:13:0 3267 # 1.0.2 had 0:14:0 3268 # 1.1.0 had 0:15:0 3269 # 1.1.1 had 0:16:0 3270 # 1.2.0 had 0:17:0 3271 # 1.2.1 had 0:18:0 3272 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 3273 # 1.3.1 had 1:1:0 3274 # 1.3.2 had 1:2:0 3275 # 1.3.3 had 1:3:0 3276 # 1.3.4 had 1:4:0 3277 # 1.4.0-snapshots had 1:5:0 3278 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 3279 # 1.4.1 had 2:1:0 3280 # 1.4.2 had 2:2:0 3281 # 1.4.3 had 2:3:0 3282 # 1.4.4 had 2:4:0 3283 # 1.4.5 had 2:5:0 3284 # 1.4.6 had 2:6:0 3285 # 1.4.7 had 2:7:0 3286 # 1.4.8 had 2:8:0 3287 # 1.4.9 had 2:9:0 3288 # 1.4.10 had 2:10:0 3289 # 1.4.11 had 2:11:0 3290 # 1.4.12 had 2:12:0 3291 # 1.4.13 had 2:13:0 3292 # and 1.4.13p1 and 1.4.13.p2 3293 # 1.4.14 had 2:14:0 3294 # 1.4.15 had 3:0:1 # adds ub_version() 3295 # 1.4.16 had 3:1:1 3296 # 1.4.17 had 3:2:1 3297 # 1.4.18 had 3:3:1 3298 # 1.4.19 had 3:4:1 3299 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 3300 # 1.4.21 had 4:1:2 3301 # 1.4.22 had 4:1:2 3302 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 3303 # 1.5.1 had 5:3:3 3304 # 1.5.2 had 5:5:3 3305 # 1.5.3 had 5:6:3 3306 # 1.5.4 had 5:7:3 3307 # 1.5.5 had 5:8:3 3308 # 1.5.6 had 5:9:3 3309 # 1.5.7 had 5:10:3 3310 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 3311 # 1.5.9 had 6:1:4 3312 # 1.5.10 had 6:2:4 3313 # 1.6.0 had 6:3:4 3314 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 3315 # 1.6.2 had 7:1:5 3316 # 1.6.3 had 7:2:5 3317 # 1.6.4 had 7:3:5 3318 # 1.6.5 had 7:4:5 3319 # 1.6.6 had 7:5:5 3320 # 1.6.7 had 7:6:5 3321 # 1.6.8 had 7:7:5 3322 # 1.7.0 had 7:8:5 3323 # 1.7.1 had 7:9:5 3324 # 1.7.2 had 7:10:5 3325 # 1.7.3 had 7:11:5 3326 # 1.8.0 had 8:0:0 # changes the event callback function signature 3327 # 1.8.1 had 8:1:0 3328 # 1.8.2 had 8:2:0 3329 # 1.8.3 had 8:3:0 3330 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls 3331 # 1.9.1 had 9:1:1 3332 # 1.9.2 had 9:2:1 3333 # 1.9.3 had 9:3:1 3334 # 1.9.4 had 9:4:1 3335 # 1.9.5 had 9:5:1 3336 # 1.9.6 had 9:6:1 3337 # 1.10.0 had 9:7:1 3338 # 1.10.1 had 9:8:1 3339 # 1.11.0 had 9:9:1 3340 # 1.12.0 had 9:10:1 3341 # 1.13.0 had 9:11:1 3342 # 1.13.1 had 9:12:1 3343 # 1.13.2 had 9:13:1 3344 # 1.14.0 had 9:14:1 3345 # 1.15.0 had 9:15:1 3346 # 1.16.0 had 9:16:1 3347 # 1.16.1 had 9:17:1 3348 # 1.16.2 had 9:18:1 3349 # 1.16.3 had 9:19:1 3350 # 1.17.0 had 9:20:1 3351 # 1.17.1 had 9:21:1 3352 # 1.18.0 had 9:22:1 3353 # 1.19.0 had 9:23:1 3354 # 1.19.1 had 9:24:1 3355 # 1.19.2 had 9:25:1 3356 # 1.19.3 had 9:26:1 3357 # 1.20.0 had 9:27:1 3358 # 1.21.0 had 9:28:1 3359 # 1.21.1 had 9:29:1 3360 # 1.22.0 had 9:30:1 3361 # 1.23.0 had 9:31:1 3362 # 1.23.1 had 9:32:1 3363 # 1.24.0 had 9:33:1 3364 # 1.24.1 had 9:34:1 3365 # 1.24.2 had 9:35:1 3366 # 1.25.0 had 9:36:1 3367 # 1.25.1 had 9:37:1 3368 # 1.25.2 had 9:38:1 3369 # 1.26.0 had 9:39:1 3370 # 1.26.1 had 9:40:1 3371 3372 # Current -- the number of the binary API that we're implementing 3373 # Revision -- which iteration of the implementation of the binary 3374 # API are we supplying? 3375 # Age -- How many previous binary API versions do we also 3376 # support? 3377 # 3378 # If we release a new version that does not change the binary API, 3379 # increment Revision. 3380 # 3381 # If we release a new version that changes the binary API, but does 3382 # not break programs compiled against the old binary API, increment 3383 # Current and Age. Set Revision to 0, since this is the first 3384 # implementation of the new API. 3385 # 3386 # Otherwise, we're changing the binary API and breaking backward 3387 # compatibility with old binaries. Increment Current. Set Age to 0, 3388 # since we're backward compatible with no previous APIs. Set Revision 3389 # to 0 too. 3390 3391 3392 3393 3394 3395 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 3396 3397 printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h 3398 3399 3400 CFLAGS="$CFLAGS" 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 ac_ext=c 3411 ac_cpp='$CPP $CPPFLAGS' 3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3415 if test -n "$ac_tool_prefix"; then 3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3417 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3419 printf %s "checking for $ac_word... " >&6; } 3420 if test ${ac_cv_prog_CC+y} 3421 then : 3422 printf %s "(cached) " >&6 3423 else $as_nop 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426 else 3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428 for as_dir in $PATH 3429 do 3430 IFS=$as_save_IFS 3431 case $as_dir in #((( 3432 '') as_dir=./ ;; 3433 */) ;; 3434 *) as_dir=$as_dir/ ;; 3435 esac 3436 for ac_exec_ext in '' $ac_executable_extensions; do 3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3438 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3440 break 2 3441 fi 3442 done 3443 done 3444 IFS=$as_save_IFS 3445 3446 fi 3447 fi 3448 CC=$ac_cv_prog_CC 3449 if test -n "$CC"; then 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3451 printf "%s\n" "$CC" >&6; } 3452 else 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3454 printf "%s\n" "no" >&6; } 3455 fi 3456 3457 3458 fi 3459 if test -z "$ac_cv_prog_CC"; then 3460 ac_ct_CC=$CC 3461 # Extract the first word of "gcc", so it can be a program name with args. 3462 set dummy gcc; ac_word=$2 3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464 printf %s "checking for $ac_word... " >&6; } 3465 if test ${ac_cv_prog_ac_ct_CC+y} 3466 then : 3467 printf %s "(cached) " >&6 3468 else $as_nop 3469 if test -n "$ac_ct_CC"; then 3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3471 else 3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473 for as_dir in $PATH 3474 do 3475 IFS=$as_save_IFS 3476 case $as_dir in #((( 3477 '') as_dir=./ ;; 3478 */) ;; 3479 *) as_dir=$as_dir/ ;; 3480 esac 3481 for ac_exec_ext in '' $ac_executable_extensions; do 3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3483 ac_cv_prog_ac_ct_CC="gcc" 3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3485 break 2 3486 fi 3487 done 3488 done 3489 IFS=$as_save_IFS 3490 3491 fi 3492 fi 3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3494 if test -n "$ac_ct_CC"; then 3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3496 printf "%s\n" "$ac_ct_CC" >&6; } 3497 else 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3499 printf "%s\n" "no" >&6; } 3500 fi 3501 3502 if test "x$ac_ct_CC" = x; then 3503 CC="" 3504 else 3505 case $cross_compiling:$ac_tool_warned in 3506 yes:) 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3509 ac_tool_warned=yes ;; 3510 esac 3511 CC=$ac_ct_CC 3512 fi 3513 else 3514 CC="$ac_cv_prog_CC" 3515 fi 3516 3517 if test -z "$CC"; then 3518 if test -n "$ac_tool_prefix"; then 3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3520 set dummy ${ac_tool_prefix}cc; ac_word=$2 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3522 printf %s "checking for $ac_word... " >&6; } 3523 if test ${ac_cv_prog_CC+y} 3524 then : 3525 printf %s "(cached) " >&6 3526 else $as_nop 3527 if test -n "$CC"; then 3528 ac_cv_prog_CC="$CC" # Let the user override the test. 3529 else 3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531 for as_dir in $PATH 3532 do 3533 IFS=$as_save_IFS 3534 case $as_dir in #((( 3535 '') as_dir=./ ;; 3536 */) ;; 3537 *) as_dir=$as_dir/ ;; 3538 esac 3539 for ac_exec_ext in '' $ac_executable_extensions; do 3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3541 ac_cv_prog_CC="${ac_tool_prefix}cc" 3542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3543 break 2 3544 fi 3545 done 3546 done 3547 IFS=$as_save_IFS 3548 3549 fi 3550 fi 3551 CC=$ac_cv_prog_CC 3552 if test -n "$CC"; then 3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3554 printf "%s\n" "$CC" >&6; } 3555 else 3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3557 printf "%s\n" "no" >&6; } 3558 fi 3559 3560 3561 fi 3562 fi 3563 if test -z "$CC"; then 3564 # Extract the first word of "cc", so it can be a program name with args. 3565 set dummy cc; ac_word=$2 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3567 printf %s "checking for $ac_word... " >&6; } 3568 if test ${ac_cv_prog_CC+y} 3569 then : 3570 printf %s "(cached) " >&6 3571 else $as_nop 3572 if test -n "$CC"; then 3573 ac_cv_prog_CC="$CC" # Let the user override the test. 3574 else 3575 ac_prog_rejected=no 3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577 for as_dir in $PATH 3578 do 3579 IFS=$as_save_IFS 3580 case $as_dir in #((( 3581 '') as_dir=./ ;; 3582 */) ;; 3583 *) as_dir=$as_dir/ ;; 3584 esac 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3587 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3588 ac_prog_rejected=yes 3589 continue 3590 fi 3591 ac_cv_prog_CC="cc" 3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3593 break 2 3594 fi 3595 done 3596 done 3597 IFS=$as_save_IFS 3598 3599 if test $ac_prog_rejected = yes; then 3600 # We found a bogon in the path, so make sure we never use it. 3601 set dummy $ac_cv_prog_CC 3602 shift 3603 if test $# != 0; then 3604 # We chose a different compiler from the bogus one. 3605 # However, it has the same basename, so the bogon will be chosen 3606 # first if we set CC to just the basename; use the full file name. 3607 shift 3608 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3609 fi 3610 fi 3611 fi 3612 fi 3613 CC=$ac_cv_prog_CC 3614 if test -n "$CC"; then 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3616 printf "%s\n" "$CC" >&6; } 3617 else 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619 printf "%s\n" "no" >&6; } 3620 fi 3621 3622 3623 fi 3624 if test -z "$CC"; then 3625 if test -n "$ac_tool_prefix"; then 3626 for ac_prog in cl.exe 3627 do 3628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631 printf %s "checking for $ac_word... " >&6; } 3632 if test ${ac_cv_prog_CC+y} 3633 then : 3634 printf %s "(cached) " >&6 3635 else $as_nop 3636 if test -n "$CC"; then 3637 ac_cv_prog_CC="$CC" # Let the user override the test. 3638 else 3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640 for as_dir in $PATH 3641 do 3642 IFS=$as_save_IFS 3643 case $as_dir in #((( 3644 '') as_dir=./ ;; 3645 */) ;; 3646 *) as_dir=$as_dir/ ;; 3647 esac 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654 done 3655 done 3656 IFS=$as_save_IFS 3657 3658 fi 3659 fi 3660 CC=$ac_cv_prog_CC 3661 if test -n "$CC"; then 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3663 printf "%s\n" "$CC" >&6; } 3664 else 3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3666 printf "%s\n" "no" >&6; } 3667 fi 3668 3669 3670 test -n "$CC" && break 3671 done 3672 fi 3673 if test -z "$CC"; then 3674 ac_ct_CC=$CC 3675 for ac_prog in cl.exe 3676 do 3677 # Extract the first word of "$ac_prog", so it can be a program name with args. 3678 set dummy $ac_prog; ac_word=$2 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3680 printf %s "checking for $ac_word... " >&6; } 3681 if test ${ac_cv_prog_ac_ct_CC+y} 3682 then : 3683 printf %s "(cached) " >&6 3684 else $as_nop 3685 if test -n "$ac_ct_CC"; then 3686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3687 else 3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689 for as_dir in $PATH 3690 do 3691 IFS=$as_save_IFS 3692 case $as_dir in #((( 3693 '') as_dir=./ ;; 3694 */) ;; 3695 *) as_dir=$as_dir/ ;; 3696 esac 3697 for ac_exec_ext in '' $ac_executable_extensions; do 3698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3699 ac_cv_prog_ac_ct_CC="$ac_prog" 3700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3701 break 2 3702 fi 3703 done 3704 done 3705 IFS=$as_save_IFS 3706 3707 fi 3708 fi 3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3710 if test -n "$ac_ct_CC"; then 3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3712 printf "%s\n" "$ac_ct_CC" >&6; } 3713 else 3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3715 printf "%s\n" "no" >&6; } 3716 fi 3717 3718 3719 test -n "$ac_ct_CC" && break 3720 done 3721 3722 if test "x$ac_ct_CC" = x; then 3723 CC="" 3724 else 3725 case $cross_compiling:$ac_tool_warned in 3726 yes:) 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3729 ac_tool_warned=yes ;; 3730 esac 3731 CC=$ac_ct_CC 3732 fi 3733 fi 3734 3735 fi 3736 if test -z "$CC"; then 3737 if test -n "$ac_tool_prefix"; then 3738 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3739 set dummy ${ac_tool_prefix}clang; ac_word=$2 3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3741 printf %s "checking for $ac_word... " >&6; } 3742 if test ${ac_cv_prog_CC+y} 3743 then : 3744 printf %s "(cached) " >&6 3745 else $as_nop 3746 if test -n "$CC"; then 3747 ac_cv_prog_CC="$CC" # Let the user override the test. 3748 else 3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3750 for as_dir in $PATH 3751 do 3752 IFS=$as_save_IFS 3753 case $as_dir in #((( 3754 '') as_dir=./ ;; 3755 */) ;; 3756 *) as_dir=$as_dir/ ;; 3757 esac 3758 for ac_exec_ext in '' $ac_executable_extensions; do 3759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3760 ac_cv_prog_CC="${ac_tool_prefix}clang" 3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3762 break 2 3763 fi 3764 done 3765 done 3766 IFS=$as_save_IFS 3767 3768 fi 3769 fi 3770 CC=$ac_cv_prog_CC 3771 if test -n "$CC"; then 3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3773 printf "%s\n" "$CC" >&6; } 3774 else 3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3776 printf "%s\n" "no" >&6; } 3777 fi 3778 3779 3780 fi 3781 if test -z "$ac_cv_prog_CC"; then 3782 ac_ct_CC=$CC 3783 # Extract the first word of "clang", so it can be a program name with args. 3784 set dummy clang; ac_word=$2 3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3786 printf %s "checking for $ac_word... " >&6; } 3787 if test ${ac_cv_prog_ac_ct_CC+y} 3788 then : 3789 printf %s "(cached) " >&6 3790 else $as_nop 3791 if test -n "$ac_ct_CC"; then 3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3793 else 3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795 for as_dir in $PATH 3796 do 3797 IFS=$as_save_IFS 3798 case $as_dir in #((( 3799 '') as_dir=./ ;; 3800 */) ;; 3801 *) as_dir=$as_dir/ ;; 3802 esac 3803 for ac_exec_ext in '' $ac_executable_extensions; do 3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3805 ac_cv_prog_ac_ct_CC="clang" 3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3807 break 2 3808 fi 3809 done 3810 done 3811 IFS=$as_save_IFS 3812 3813 fi 3814 fi 3815 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3816 if test -n "$ac_ct_CC"; then 3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3818 printf "%s\n" "$ac_ct_CC" >&6; } 3819 else 3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3821 printf "%s\n" "no" >&6; } 3822 fi 3823 3824 if test "x$ac_ct_CC" = x; then 3825 CC="" 3826 else 3827 case $cross_compiling:$ac_tool_warned in 3828 yes:) 3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3831 ac_tool_warned=yes ;; 3832 esac 3833 CC=$ac_ct_CC 3834 fi 3835 else 3836 CC="$ac_cv_prog_CC" 3837 fi 3838 3839 fi 3840 3841 3842 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3843 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3844 as_fn_error $? "no acceptable C compiler found in \$PATH 3845 See \`config.log' for more details" "$LINENO" 5; } 3846 3847 # Provide some information about the compiler. 3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3849 set X $ac_compile 3850 ac_compiler=$2 3851 for ac_option in --version -v -V -qversion -version; do 3852 { { ac_try="$ac_compiler $ac_option >&5" 3853 case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856 esac 3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858 printf "%s\n" "$ac_try_echo"; } >&5 3859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3860 ac_status=$? 3861 if test -s conftest.err; then 3862 sed '10a\ 3863 ... rest of stderr output deleted ... 3864 10q' conftest.err >conftest.er1 3865 cat conftest.er1 >&5 3866 fi 3867 rm -f conftest.er1 conftest.err 3868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; } 3870 done 3871 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873 /* end confdefs.h. */ 3874 3875 int 3876 main (void) 3877 { 3878 3879 ; 3880 return 0; 3881 } 3882 _ACEOF 3883 ac_clean_files_save=$ac_clean_files 3884 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3885 # Try to create an executable without -o first, disregard a.out. 3886 # It will help us diagnose broken compilers, and finding out an intuition 3887 # of exeext. 3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3889 printf %s "checking whether the C compiler works... " >&6; } 3890 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3891 3892 # The possible output files: 3893 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3894 3895 ac_rmfiles= 3896 for ac_file in $ac_files 3897 do 3898 case $ac_file in 3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3900 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3901 esac 3902 done 3903 rm -f $ac_rmfiles 3904 3905 if { { ac_try="$ac_link_default" 3906 case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909 esac 3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3911 printf "%s\n" "$ac_try_echo"; } >&5 3912 (eval "$ac_link_default") 2>&5 3913 ac_status=$? 3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3915 test $ac_status = 0; } 3916 then : 3917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3919 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3920 # so that the user can short-circuit this test for compilers unknown to 3921 # Autoconf. 3922 for ac_file in $ac_files '' 3923 do 3924 test -f "$ac_file" || continue 3925 case $ac_file in 3926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3927 ;; 3928 [ab].out ) 3929 # We found the default executable, but exeext='' is most 3930 # certainly right. 3931 break;; 3932 *.* ) 3933 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3934 then :; else 3935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3936 fi 3937 # We set ac_cv_exeext here because the later test for it is not 3938 # safe: cross compilers may not add the suffix if given an `-o' 3939 # argument, so we may need to know it at that point already. 3940 # Even if this section looks crufty: it has the advantage of 3941 # actually working. 3942 break;; 3943 * ) 3944 break;; 3945 esac 3946 done 3947 test "$ac_cv_exeext" = no && ac_cv_exeext= 3948 3949 else $as_nop 3950 ac_file='' 3951 fi 3952 if test -z "$ac_file" 3953 then : 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955 printf "%s\n" "no" >&6; } 3956 printf "%s\n" "$as_me: failed program was:" >&5 3957 sed 's/^/| /' conftest.$ac_ext >&5 3958 3959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3960 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3961 as_fn_error 77 "C compiler cannot create executables 3962 See \`config.log' for more details" "$LINENO" 5; } 3963 else $as_nop 3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3965 printf "%s\n" "yes" >&6; } 3966 fi 3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3968 printf %s "checking for C compiler default output file name... " >&6; } 3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3970 printf "%s\n" "$ac_file" >&6; } 3971 ac_exeext=$ac_cv_exeext 3972 3973 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3974 ac_clean_files=$ac_clean_files_save 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3976 printf %s "checking for suffix of executables... " >&6; } 3977 if { { ac_try="$ac_link" 3978 case "(($ac_try" in 3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3980 *) ac_try_echo=$ac_try;; 3981 esac 3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3983 printf "%s\n" "$ac_try_echo"; } >&5 3984 (eval "$ac_link") 2>&5 3985 ac_status=$? 3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3987 test $ac_status = 0; } 3988 then : 3989 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3991 # work properly (i.e., refer to `conftest.exe'), while it won't with 3992 # `rm'. 3993 for ac_file in conftest.exe conftest conftest.*; do 3994 test -f "$ac_file" || continue 3995 case $ac_file in 3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3998 break;; 3999 * ) break;; 4000 esac 4001 done 4002 else $as_nop 4003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4004 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4005 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4006 See \`config.log' for more details" "$LINENO" 5; } 4007 fi 4008 rm -f conftest conftest$ac_cv_exeext 4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4010 printf "%s\n" "$ac_cv_exeext" >&6; } 4011 4012 rm -f conftest.$ac_ext 4013 EXEEXT=$ac_cv_exeext 4014 ac_exeext=$EXEEXT 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016 /* end confdefs.h. */ 4017 #include <stdio.h> 4018 int 4019 main (void) 4020 { 4021 FILE *f = fopen ("conftest.out", "w"); 4022 return ferror (f) || fclose (f) != 0; 4023 4024 ; 4025 return 0; 4026 } 4027 _ACEOF 4028 ac_clean_files="$ac_clean_files conftest.out" 4029 # Check that the compiler produces executables we can run. If not, either 4030 # the compiler is broken, or we cross compile. 4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4032 printf %s "checking whether we are cross compiling... " >&6; } 4033 if test "$cross_compiling" != yes; then 4034 { { ac_try="$ac_link" 4035 case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038 esac 4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4040 printf "%s\n" "$ac_try_echo"; } >&5 4041 (eval "$ac_link") 2>&5 4042 ac_status=$? 4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4044 test $ac_status = 0; } 4045 if { ac_try='./conftest$ac_cv_exeext' 4046 { { case "(($ac_try" in 4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4048 *) ac_try_echo=$ac_try;; 4049 esac 4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4051 printf "%s\n" "$ac_try_echo"; } >&5 4052 (eval "$ac_try") 2>&5 4053 ac_status=$? 4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4055 test $ac_status = 0; }; }; then 4056 cross_compiling=no 4057 else 4058 if test "$cross_compiling" = maybe; then 4059 cross_compiling=yes 4060 else 4061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4063 as_fn_error 77 "cannot run C compiled programs. 4064 If you meant to cross compile, use \`--host'. 4065 See \`config.log' for more details" "$LINENO" 5; } 4066 fi 4067 fi 4068 fi 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4070 printf "%s\n" "$cross_compiling" >&6; } 4071 4072 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4073 ac_clean_files=$ac_clean_files_save 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4075 printf %s "checking for suffix of object files... " >&6; } 4076 if test ${ac_cv_objext+y} 4077 then : 4078 printf %s "(cached) " >&6 4079 else $as_nop 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4081 /* end confdefs.h. */ 4082 4083 int 4084 main (void) 4085 { 4086 4087 ; 4088 return 0; 4089 } 4090 _ACEOF 4091 rm -f conftest.o conftest.obj 4092 if { { ac_try="$ac_compile" 4093 case "(($ac_try" in 4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4095 *) ac_try_echo=$ac_try;; 4096 esac 4097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4098 printf "%s\n" "$ac_try_echo"; } >&5 4099 (eval "$ac_compile") 2>&5 4100 ac_status=$? 4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4102 test $ac_status = 0; } 4103 then : 4104 for ac_file in conftest.o conftest.obj conftest.*; do 4105 test -f "$ac_file" || continue; 4106 case $ac_file in 4107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4108 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4109 break;; 4110 esac 4111 done 4112 else $as_nop 4113 printf "%s\n" "$as_me: failed program was:" >&5 4114 sed 's/^/| /' conftest.$ac_ext >&5 4115 4116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4118 as_fn_error $? "cannot compute suffix of object files: cannot compile 4119 See \`config.log' for more details" "$LINENO" 5; } 4120 fi 4121 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4122 fi 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4124 printf "%s\n" "$ac_cv_objext" >&6; } 4125 OBJEXT=$ac_cv_objext 4126 ac_objext=$OBJEXT 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4128 printf %s "checking whether the compiler supports GNU C... " >&6; } 4129 if test ${ac_cv_c_compiler_gnu+y} 4130 then : 4131 printf %s "(cached) " >&6 4132 else $as_nop 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134 /* end confdefs.h. */ 4135 4136 int 4137 main (void) 4138 { 4139 #ifndef __GNUC__ 4140 choke me 4141 #endif 4142 4143 ; 4144 return 0; 4145 } 4146 _ACEOF 4147 if ac_fn_c_try_compile "$LINENO" 4148 then : 4149 ac_compiler_gnu=yes 4150 else $as_nop 4151 ac_compiler_gnu=no 4152 fi 4153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4154 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4155 4156 fi 4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4158 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4160 4161 if test $ac_compiler_gnu = yes; then 4162 GCC=yes 4163 else 4164 GCC= 4165 fi 4166 ac_test_CFLAGS=${CFLAGS+y} 4167 ac_save_CFLAGS=$CFLAGS 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4169 printf %s "checking whether $CC accepts -g... " >&6; } 4170 if test ${ac_cv_prog_cc_g+y} 4171 then : 4172 printf %s "(cached) " >&6 4173 else $as_nop 4174 ac_save_c_werror_flag=$ac_c_werror_flag 4175 ac_c_werror_flag=yes 4176 ac_cv_prog_cc_g=no 4177 CFLAGS="-g" 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179 /* end confdefs.h. */ 4180 4181 int 4182 main (void) 4183 { 4184 4185 ; 4186 return 0; 4187 } 4188 _ACEOF 4189 if ac_fn_c_try_compile "$LINENO" 4190 then : 4191 ac_cv_prog_cc_g=yes 4192 else $as_nop 4193 CFLAGS="" 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195 /* end confdefs.h. */ 4196 4197 int 4198 main (void) 4199 { 4200 4201 ; 4202 return 0; 4203 } 4204 _ACEOF 4205 if ac_fn_c_try_compile "$LINENO" 4206 then : 4207 4208 else $as_nop 4209 ac_c_werror_flag=$ac_save_c_werror_flag 4210 CFLAGS="-g" 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212 /* end confdefs.h. */ 4213 4214 int 4215 main (void) 4216 { 4217 4218 ; 4219 return 0; 4220 } 4221 _ACEOF 4222 if ac_fn_c_try_compile "$LINENO" 4223 then : 4224 ac_cv_prog_cc_g=yes 4225 fi 4226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4227 fi 4228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4229 fi 4230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4231 ac_c_werror_flag=$ac_save_c_werror_flag 4232 fi 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4234 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4235 if test $ac_test_CFLAGS; then 4236 CFLAGS=$ac_save_CFLAGS 4237 elif test $ac_cv_prog_cc_g = yes; then 4238 if test "$GCC" = yes; then 4239 CFLAGS="-g -O2" 4240 else 4241 CFLAGS="-g" 4242 fi 4243 else 4244 if test "$GCC" = yes; then 4245 CFLAGS="-O2" 4246 else 4247 CFLAGS= 4248 fi 4249 fi 4250 ac_prog_cc_stdc=no 4251 if test x$ac_prog_cc_stdc = xno 4252 then : 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4254 printf %s "checking for $CC option to enable C11 features... " >&6; } 4255 if test ${ac_cv_prog_cc_c11+y} 4256 then : 4257 printf %s "(cached) " >&6 4258 else $as_nop 4259 ac_cv_prog_cc_c11=no 4260 ac_save_CC=$CC 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262 /* end confdefs.h. */ 4263 $ac_c_conftest_c11_program 4264 _ACEOF 4265 for ac_arg in '' -std=gnu11 4266 do 4267 CC="$ac_save_CC $ac_arg" 4268 if ac_fn_c_try_compile "$LINENO" 4269 then : 4270 ac_cv_prog_cc_c11=$ac_arg 4271 fi 4272 rm -f core conftest.err conftest.$ac_objext conftest.beam 4273 test "x$ac_cv_prog_cc_c11" != "xno" && break 4274 done 4275 rm -f conftest.$ac_ext 4276 CC=$ac_save_CC 4277 fi 4278 4279 if test "x$ac_cv_prog_cc_c11" = xno 4280 then : 4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4282 printf "%s\n" "unsupported" >&6; } 4283 else $as_nop 4284 if test "x$ac_cv_prog_cc_c11" = x 4285 then : 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4287 printf "%s\n" "none needed" >&6; } 4288 else $as_nop 4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4290 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4291 CC="$CC $ac_cv_prog_cc_c11" 4292 fi 4293 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4294 ac_prog_cc_stdc=c11 4295 fi 4296 fi 4297 if test x$ac_prog_cc_stdc = xno 4298 then : 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4300 printf %s "checking for $CC option to enable C99 features... " >&6; } 4301 if test ${ac_cv_prog_cc_c99+y} 4302 then : 4303 printf %s "(cached) " >&6 4304 else $as_nop 4305 ac_cv_prog_cc_c99=no 4306 ac_save_CC=$CC 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308 /* end confdefs.h. */ 4309 $ac_c_conftest_c99_program 4310 _ACEOF 4311 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4312 do 4313 CC="$ac_save_CC $ac_arg" 4314 if ac_fn_c_try_compile "$LINENO" 4315 then : 4316 ac_cv_prog_cc_c99=$ac_arg 4317 fi 4318 rm -f core conftest.err conftest.$ac_objext conftest.beam 4319 test "x$ac_cv_prog_cc_c99" != "xno" && break 4320 done 4321 rm -f conftest.$ac_ext 4322 CC=$ac_save_CC 4323 fi 4324 4325 if test "x$ac_cv_prog_cc_c99" = xno 4326 then : 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4328 printf "%s\n" "unsupported" >&6; } 4329 else $as_nop 4330 if test "x$ac_cv_prog_cc_c99" = x 4331 then : 4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4333 printf "%s\n" "none needed" >&6; } 4334 else $as_nop 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4336 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4337 CC="$CC $ac_cv_prog_cc_c99" 4338 fi 4339 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4340 ac_prog_cc_stdc=c99 4341 fi 4342 fi 4343 if test x$ac_prog_cc_stdc = xno 4344 then : 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4346 printf %s "checking for $CC option to enable C89 features... " >&6; } 4347 if test ${ac_cv_prog_cc_c89+y} 4348 then : 4349 printf %s "(cached) " >&6 4350 else $as_nop 4351 ac_cv_prog_cc_c89=no 4352 ac_save_CC=$CC 4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4354 /* end confdefs.h. */ 4355 $ac_c_conftest_c89_program 4356 _ACEOF 4357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4358 do 4359 CC="$ac_save_CC $ac_arg" 4360 if ac_fn_c_try_compile "$LINENO" 4361 then : 4362 ac_cv_prog_cc_c89=$ac_arg 4363 fi 4364 rm -f core conftest.err conftest.$ac_objext conftest.beam 4365 test "x$ac_cv_prog_cc_c89" != "xno" && break 4366 done 4367 rm -f conftest.$ac_ext 4368 CC=$ac_save_CC 4369 fi 4370 4371 if test "x$ac_cv_prog_cc_c89" = xno 4372 then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4374 printf "%s\n" "unsupported" >&6; } 4375 else $as_nop 4376 if test "x$ac_cv_prog_cc_c89" = x 4377 then : 4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4379 printf "%s\n" "none needed" >&6; } 4380 else $as_nop 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4382 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4383 CC="$CC $ac_cv_prog_cc_c89" 4384 fi 4385 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4386 ac_prog_cc_stdc=c89 4387 fi 4388 fi 4389 4390 ac_ext=c 4391 ac_cpp='$CPP $CPPFLAGS' 4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4395 4396 4397 ac_header= ac_cache= 4398 for ac_item in $ac_header_c_list 4399 do 4400 if test $ac_cache; then 4401 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4402 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4403 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4404 fi 4405 ac_header= ac_cache= 4406 elif test $ac_header; then 4407 ac_cache=$ac_item 4408 else 4409 ac_header=$ac_item 4410 fi 4411 done 4412 4413 4414 4415 4416 4417 4418 4419 4420 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4421 then : 4422 4423 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4424 4425 fi 4426 4427 4428 4429 4430 4431 4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4433 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4434 if test ${ac_cv_safe_to_define___extensions__+y} 4435 then : 4436 printf %s "(cached) " >&6 4437 else $as_nop 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439 /* end confdefs.h. */ 4440 4441 # define __EXTENSIONS__ 1 4442 $ac_includes_default 4443 int 4444 main (void) 4445 { 4446 4447 ; 4448 return 0; 4449 } 4450 _ACEOF 4451 if ac_fn_c_try_compile "$LINENO" 4452 then : 4453 ac_cv_safe_to_define___extensions__=yes 4454 else $as_nop 4455 ac_cv_safe_to_define___extensions__=no 4456 fi 4457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4458 fi 4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4460 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4461 4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4463 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4464 if test ${ac_cv_should_define__xopen_source+y} 4465 then : 4466 printf %s "(cached) " >&6 4467 else $as_nop 4468 ac_cv_should_define__xopen_source=no 4469 if test $ac_cv_header_wchar_h = yes 4470 then : 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472 /* end confdefs.h. */ 4473 4474 #include <wchar.h> 4475 mbstate_t x; 4476 int 4477 main (void) 4478 { 4479 4480 ; 4481 return 0; 4482 } 4483 _ACEOF 4484 if ac_fn_c_try_compile "$LINENO" 4485 then : 4486 4487 else $as_nop 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489 /* end confdefs.h. */ 4490 4491 #define _XOPEN_SOURCE 500 4492 #include <wchar.h> 4493 mbstate_t x; 4494 int 4495 main (void) 4496 { 4497 4498 ; 4499 return 0; 4500 } 4501 _ACEOF 4502 if ac_fn_c_try_compile "$LINENO" 4503 then : 4504 ac_cv_should_define__xopen_source=yes 4505 fi 4506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4507 fi 4508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4509 fi 4510 fi 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4512 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4513 4514 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4515 4516 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4517 4518 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4519 4520 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4521 4522 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4523 4524 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4525 4526 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4527 4528 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4529 4530 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4531 4532 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4533 4534 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4535 4536 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4537 4538 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4539 4540 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4541 4542 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4543 4544 if test $ac_cv_header_minix_config_h = yes 4545 then : 4546 MINIX=yes 4547 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4548 4549 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4550 4551 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4552 4553 else $as_nop 4554 MINIX= 4555 fi 4556 if test $ac_cv_safe_to_define___extensions__ = yes 4557 then : 4558 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4559 4560 fi 4561 if test $ac_cv_should_define__xopen_source = yes 4562 then : 4563 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4564 4565 fi 4566 4567 if test "$ac_cv_header_minix_config_h" = "yes"; then 4568 4569 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4570 4571 fi 4572 4573 case "$prefix" in 4574 NONE) 4575 prefix="/usr/local" 4576 ;; 4577 esac 4578 case "$exec_prefix" in 4579 NONE) 4580 exec_prefix="$prefix" 4581 ;; 4582 esac 4583 4584 # are we on MinGW? 4585 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes" 4586 else 4587 if echo $host | grep mingw >/dev/null; then on_mingw="yes" 4588 else on_mingw="no"; fi 4589 fi 4590 4591 # 4592 # Determine configuration file 4593 # the eval is to evaluate shell expansion twice 4594 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4595 4596 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4597 4598 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4599 4600 if test $on_mingw = "no"; then 4601 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4602 else 4603 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4604 fi 4605 4606 # Check whether --with-conf_file was given. 4607 if test ${with_conf_file+y} 4608 then : 4609 withval=$with_conf_file; ub_conf_file="$withval" 4610 fi 4611 4612 4613 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4614 4615 4616 printf "%s\n" "#define CONFIGFILE \"$hdr_config\"" >>confdefs.h 4617 4618 ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4619 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4620 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4621 X"$ub_conf_file" : 'X\(//\)$' \| \ 4622 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4623 printf "%s\n" X"$ub_conf_file" | 4624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4625 s//\1/ 4626 q 4627 } 4628 /^X\(\/\/\)[^/].*/{ 4629 s//\1/ 4630 q 4631 } 4632 /^X\(\/\/\)$/{ 4633 s//\1/ 4634 q 4635 } 4636 /^X\(\/\).*/{ 4637 s//\1/ 4638 q 4639 } 4640 s/.*/./; q'` 4641 4642 4643 # Determine run, chroot directory and pidfile locations 4644 4645 # Check whether --with-run-dir was given. 4646 if test ${with_run_dir+y} 4647 then : 4648 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4649 else $as_nop 4650 if test $on_mingw = no; then 4651 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4652 else 4653 UNBOUND_RUN_DIR="" 4654 fi 4655 4656 fi 4657 4658 4659 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4660 4661 4662 printf "%s\n" "#define RUN_DIR \"$hdr_run\"" >>confdefs.h 4663 4664 4665 4666 # Check whether --with-chroot-dir was given. 4667 if test ${with_chroot_dir+y} 4668 then : 4669 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4670 else $as_nop 4671 if test $on_mingw = no; then 4672 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4673 else 4674 UNBOUND_CHROOT_DIR="" 4675 fi 4676 4677 fi 4678 4679 4680 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4681 4682 4683 printf "%s\n" "#define CHROOT_DIR \"$hdr_chroot\"" >>confdefs.h 4684 4685 4686 4687 # Check whether --with-share-dir was given. 4688 if test ${with_share_dir+y} 4689 then : 4690 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4691 else $as_nop 4692 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4693 fi 4694 4695 4696 4697 printf "%s\n" "#define SHARE_DIR \"$UNBOUND_SHARE_DIR\"" >>confdefs.h 4698 4699 4700 4701 # Check whether --with-pidfile was given. 4702 if test ${with_pidfile+y} 4703 then : 4704 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4705 else $as_nop 4706 if test $on_mingw = no; then 4707 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4708 else 4709 UNBOUND_PIDFILE="" 4710 fi 4711 4712 fi 4713 4714 4715 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4716 4717 4718 printf "%s\n" "#define PIDFILE \"$hdr_pid\"" >>confdefs.h 4719 4720 4721 4722 # Check whether --with-rootkey-file was given. 4723 if test ${with_rootkey_file+y} 4724 then : 4725 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4726 else $as_nop 4727 if test $on_mingw = no; then 4728 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4729 else 4730 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4731 fi 4732 4733 fi 4734 4735 4736 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4737 4738 4739 printf "%s\n" "#define ROOT_ANCHOR_FILE \"$hdr_rkey\"" >>confdefs.h 4740 4741 4742 4743 # Check whether --with-rootcert-file was given. 4744 if test ${with_rootcert_file+y} 4745 then : 4746 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4747 else $as_nop 4748 if test $on_mingw = no; then 4749 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4750 else 4751 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4752 fi 4753 4754 fi 4755 4756 4757 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4758 4759 4760 printf "%s\n" "#define ROOT_CERT_FILE \"$hdr_rpem\"" >>confdefs.h 4761 4762 4763 4764 # Check whether --with-username was given. 4765 if test ${with_username+y} 4766 then : 4767 withval=$with_username; UNBOUND_USERNAME="$withval" 4768 else $as_nop 4769 UNBOUND_USERNAME="unbound" 4770 fi 4771 4772 4773 4774 printf "%s\n" "#define UB_USERNAME \"$UNBOUND_USERNAME\"" >>confdefs.h 4775 4776 4777 4778 printf "%s\n" "#define WINVER 0x0502" >>confdefs.h 4779 4780 wnvs=`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/' ` 4781 4782 4783 printf "%s\n" "#define RSRC_PACKAGE_VERSION $wnvs" >>confdefs.h 4784 4785 4786 # Check for 'grep -e' program, here, since ACX_CHECK_FLTO needs that. 4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4788 printf %s "checking for grep that handles long lines and -e... " >&6; } 4789 if test ${ac_cv_path_GREP+y} 4790 then : 4791 printf %s "(cached) " >&6 4792 else $as_nop 4793 if test -z "$GREP"; then 4794 ac_path_GREP_found=false 4795 # Loop through the user's path and test for each of PROGNAME-LIST 4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4798 do 4799 IFS=$as_save_IFS 4800 case $as_dir in #((( 4801 '') as_dir=./ ;; 4802 */) ;; 4803 *) as_dir=$as_dir/ ;; 4804 esac 4805 for ac_prog in grep ggrep 4806 do 4807 for ac_exec_ext in '' $ac_executable_extensions; do 4808 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4809 as_fn_executable_p "$ac_path_GREP" || continue 4810 # Check for GNU ac_path_GREP and select it if it is found. 4811 # Check for GNU $ac_path_GREP 4812 case `"$ac_path_GREP" --version 2>&1` in 4813 *GNU*) 4814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4815 *) 4816 ac_count=0 4817 printf %s 0123456789 >"conftest.in" 4818 while : 4819 do 4820 cat "conftest.in" "conftest.in" >"conftest.tmp" 4821 mv "conftest.tmp" "conftest.in" 4822 cp "conftest.in" "conftest.nl" 4823 printf "%s\n" 'GREP' >> "conftest.nl" 4824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4826 as_fn_arith $ac_count + 1 && ac_count=$as_val 4827 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4828 # Best one so far, save it but keep looking for a better one 4829 ac_cv_path_GREP="$ac_path_GREP" 4830 ac_path_GREP_max=$ac_count 4831 fi 4832 # 10*(2^10) chars as input seems more than enough 4833 test $ac_count -gt 10 && break 4834 done 4835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4836 esac 4837 4838 $ac_path_GREP_found && break 3 4839 done 4840 done 4841 done 4842 IFS=$as_save_IFS 4843 if test -z "$ac_cv_path_GREP"; then 4844 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4845 fi 4846 else 4847 ac_cv_path_GREP=$GREP 4848 fi 4849 4850 fi 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4852 printf "%s\n" "$ac_cv_path_GREP" >&6; } 4853 GREP="$ac_cv_path_GREP" 4854 4855 4856 4857 # Checks for typedefs, structures, and compiler characteristics. 4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4859 printf %s "checking for an ANSI C-conforming const... " >&6; } 4860 if test ${ac_cv_c_const+y} 4861 then : 4862 printf %s "(cached) " >&6 4863 else $as_nop 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865 /* end confdefs.h. */ 4866 4867 int 4868 main (void) 4869 { 4870 4871 #ifndef __cplusplus 4872 /* Ultrix mips cc rejects this sort of thing. */ 4873 typedef int charset[2]; 4874 const charset cs = { 0, 0 }; 4875 /* SunOS 4.1.1 cc rejects this. */ 4876 char const *const *pcpcc; 4877 char **ppc; 4878 /* NEC SVR4.0.2 mips cc rejects this. */ 4879 struct point {int x, y;}; 4880 static struct point const zero = {0,0}; 4881 /* IBM XL C 1.02.0.0 rejects this. 4882 It does not let you subtract one const X* pointer from another in 4883 an arm of an if-expression whose if-part is not a constant 4884 expression */ 4885 const char *g = "string"; 4886 pcpcc = &g + (g ? g-g : 0); 4887 /* HPUX 7.0 cc rejects these. */ 4888 ++pcpcc; 4889 ppc = (char**) pcpcc; 4890 pcpcc = (char const *const *) ppc; 4891 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4892 char tx; 4893 char *t = &tx; 4894 char const *s = 0 ? (char *) 0 : (char const *) 0; 4895 4896 *t++ = 0; 4897 if (s) return 0; 4898 } 4899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4900 int x[] = {25, 17}; 4901 const int *foo = &x[0]; 4902 ++foo; 4903 } 4904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4905 typedef const int *iptr; 4906 iptr p = 0; 4907 ++p; 4908 } 4909 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 4910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4911 struct s { int j; const int *ap[3]; } bx; 4912 struct s *b = &bx; b->j = 5; 4913 } 4914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4915 const int foo = 10; 4916 if (!foo) return 0; 4917 } 4918 return !cs[0] && !zero.x; 4919 #endif 4920 4921 ; 4922 return 0; 4923 } 4924 _ACEOF 4925 if ac_fn_c_try_compile "$LINENO" 4926 then : 4927 ac_cv_c_const=yes 4928 else $as_nop 4929 ac_cv_c_const=no 4930 fi 4931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4932 fi 4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4934 printf "%s\n" "$ac_cv_c_const" >&6; } 4935 if test $ac_cv_c_const = no; then 4936 4937 printf "%s\n" "#define const /**/" >>confdefs.h 4938 4939 fi 4940 4941 ac_ext=c 4942 ac_cpp='$CPP $CPPFLAGS' 4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4946 4947 # allow user to override the -g -O2 flags. 4948 default_cflags=no 4949 if test "x$CFLAGS" = "x" ; then 4950 4951 4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4953 printf %s "checking whether $CC supports -g... " >&6; } 4954 cache=`echo g | sed 'y%.=/+-%___p_%'` 4955 if eval test \${cv_prog_cc_flag_$cache+y} 4956 then : 4957 printf %s "(cached) " >&6 4958 else $as_nop 4959 4960 echo 'void f(void){}' >conftest.c 4961 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4962 eval "cv_prog_cc_flag_$cache=yes" 4963 else 4964 eval "cv_prog_cc_flag_$cache=no" 4965 fi 4966 rm -f conftest conftest.o conftest.c 4967 4968 fi 4969 4970 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4972 printf "%s\n" "yes" >&6; } 4973 : 4974 CFLAGS="$CFLAGS -g" 4975 else 4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977 printf "%s\n" "no" >&6; } 4978 : 4979 4980 fi 4981 4982 4983 4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4985 printf %s "checking whether $CC supports -O2... " >&6; } 4986 cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4987 if eval test \${cv_prog_cc_flag_$cache+y} 4988 then : 4989 printf %s "(cached) " >&6 4990 else $as_nop 4991 4992 echo 'void f(void){}' >conftest.c 4993 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4994 eval "cv_prog_cc_flag_$cache=yes" 4995 else 4996 eval "cv_prog_cc_flag_$cache=no" 4997 fi 4998 rm -f conftest conftest.o conftest.c 4999 5000 fi 5001 5002 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5004 printf "%s\n" "yes" >&6; } 5005 : 5006 CFLAGS="$CFLAGS -O2" 5007 else 5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5009 printf "%s\n" "no" >&6; } 5010 : 5011 5012 fi 5013 5014 default_cflags=yes 5015 fi 5016 ac_ext=c 5017 ac_cpp='$CPP $CPPFLAGS' 5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5021 if test -n "$ac_tool_prefix"; then 5022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5023 set dummy ${ac_tool_prefix}gcc; ac_word=$2 5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5025 printf %s "checking for $ac_word... " >&6; } 5026 if test ${ac_cv_prog_CC+y} 5027 then : 5028 printf %s "(cached) " >&6 5029 else $as_nop 5030 if test -n "$CC"; then 5031 ac_cv_prog_CC="$CC" # Let the user override the test. 5032 else 5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5034 for as_dir in $PATH 5035 do 5036 IFS=$as_save_IFS 5037 case $as_dir in #((( 5038 '') as_dir=./ ;; 5039 */) ;; 5040 *) as_dir=$as_dir/ ;; 5041 esac 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5044 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5046 break 2 5047 fi 5048 done 5049 done 5050 IFS=$as_save_IFS 5051 5052 fi 5053 fi 5054 CC=$ac_cv_prog_CC 5055 if test -n "$CC"; then 5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5057 printf "%s\n" "$CC" >&6; } 5058 else 5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5060 printf "%s\n" "no" >&6; } 5061 fi 5062 5063 5064 fi 5065 if test -z "$ac_cv_prog_CC"; then 5066 ac_ct_CC=$CC 5067 # Extract the first word of "gcc", so it can be a program name with args. 5068 set dummy gcc; ac_word=$2 5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5070 printf %s "checking for $ac_word... " >&6; } 5071 if test ${ac_cv_prog_ac_ct_CC+y} 5072 then : 5073 printf %s "(cached) " >&6 5074 else $as_nop 5075 if test -n "$ac_ct_CC"; then 5076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5077 else 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079 for as_dir in $PATH 5080 do 5081 IFS=$as_save_IFS 5082 case $as_dir in #((( 5083 '') as_dir=./ ;; 5084 */) ;; 5085 *) as_dir=$as_dir/ ;; 5086 esac 5087 for ac_exec_ext in '' $ac_executable_extensions; do 5088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5089 ac_cv_prog_ac_ct_CC="gcc" 5090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5091 break 2 5092 fi 5093 done 5094 done 5095 IFS=$as_save_IFS 5096 5097 fi 5098 fi 5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5100 if test -n "$ac_ct_CC"; then 5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5102 printf "%s\n" "$ac_ct_CC" >&6; } 5103 else 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5105 printf "%s\n" "no" >&6; } 5106 fi 5107 5108 if test "x$ac_ct_CC" = x; then 5109 CC="" 5110 else 5111 case $cross_compiling:$ac_tool_warned in 5112 yes:) 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5114 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5115 ac_tool_warned=yes ;; 5116 esac 5117 CC=$ac_ct_CC 5118 fi 5119 else 5120 CC="$ac_cv_prog_CC" 5121 fi 5122 5123 if test -z "$CC"; then 5124 if test -n "$ac_tool_prefix"; then 5125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5126 set dummy ${ac_tool_prefix}cc; ac_word=$2 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5128 printf %s "checking for $ac_word... " >&6; } 5129 if test ${ac_cv_prog_CC+y} 5130 then : 5131 printf %s "(cached) " >&6 5132 else $as_nop 5133 if test -n "$CC"; then 5134 ac_cv_prog_CC="$CC" # Let the user override the test. 5135 else 5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137 for as_dir in $PATH 5138 do 5139 IFS=$as_save_IFS 5140 case $as_dir in #((( 5141 '') as_dir=./ ;; 5142 */) ;; 5143 *) as_dir=$as_dir/ ;; 5144 esac 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5147 ac_cv_prog_CC="${ac_tool_prefix}cc" 5148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5149 break 2 5150 fi 5151 done 5152 done 5153 IFS=$as_save_IFS 5154 5155 fi 5156 fi 5157 CC=$ac_cv_prog_CC 5158 if test -n "$CC"; then 5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5160 printf "%s\n" "$CC" >&6; } 5161 else 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163 printf "%s\n" "no" >&6; } 5164 fi 5165 5166 5167 fi 5168 fi 5169 if test -z "$CC"; then 5170 # Extract the first word of "cc", so it can be a program name with args. 5171 set dummy cc; ac_word=$2 5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173 printf %s "checking for $ac_word... " >&6; } 5174 if test ${ac_cv_prog_CC+y} 5175 then : 5176 printf %s "(cached) " >&6 5177 else $as_nop 5178 if test -n "$CC"; then 5179 ac_cv_prog_CC="$CC" # Let the user override the test. 5180 else 5181 ac_prog_rejected=no 5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183 for as_dir in $PATH 5184 do 5185 IFS=$as_save_IFS 5186 case $as_dir in #((( 5187 '') as_dir=./ ;; 5188 */) ;; 5189 *) as_dir=$as_dir/ ;; 5190 esac 5191 for ac_exec_ext in '' $ac_executable_extensions; do 5192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5193 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5194 ac_prog_rejected=yes 5195 continue 5196 fi 5197 ac_cv_prog_CC="cc" 5198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5199 break 2 5200 fi 5201 done 5202 done 5203 IFS=$as_save_IFS 5204 5205 if test $ac_prog_rejected = yes; then 5206 # We found a bogon in the path, so make sure we never use it. 5207 set dummy $ac_cv_prog_CC 5208 shift 5209 if test $# != 0; then 5210 # We chose a different compiler from the bogus one. 5211 # However, it has the same basename, so the bogon will be chosen 5212 # first if we set CC to just the basename; use the full file name. 5213 shift 5214 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5215 fi 5216 fi 5217 fi 5218 fi 5219 CC=$ac_cv_prog_CC 5220 if test -n "$CC"; then 5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5222 printf "%s\n" "$CC" >&6; } 5223 else 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5225 printf "%s\n" "no" >&6; } 5226 fi 5227 5228 5229 fi 5230 if test -z "$CC"; then 5231 if test -n "$ac_tool_prefix"; then 5232 for ac_prog in cl.exe 5233 do 5234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5237 printf %s "checking for $ac_word... " >&6; } 5238 if test ${ac_cv_prog_CC+y} 5239 then : 5240 printf %s "(cached) " >&6 5241 else $as_nop 5242 if test -n "$CC"; then 5243 ac_cv_prog_CC="$CC" # Let the user override the test. 5244 else 5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5246 for as_dir in $PATH 5247 do 5248 IFS=$as_save_IFS 5249 case $as_dir in #((( 5250 '') as_dir=./ ;; 5251 */) ;; 5252 *) as_dir=$as_dir/ ;; 5253 esac 5254 for ac_exec_ext in '' $ac_executable_extensions; do 5255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5258 break 2 5259 fi 5260 done 5261 done 5262 IFS=$as_save_IFS 5263 5264 fi 5265 fi 5266 CC=$ac_cv_prog_CC 5267 if test -n "$CC"; then 5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5269 printf "%s\n" "$CC" >&6; } 5270 else 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5272 printf "%s\n" "no" >&6; } 5273 fi 5274 5275 5276 test -n "$CC" && break 5277 done 5278 fi 5279 if test -z "$CC"; then 5280 ac_ct_CC=$CC 5281 for ac_prog in cl.exe 5282 do 5283 # Extract the first word of "$ac_prog", so it can be a program name with args. 5284 set dummy $ac_prog; ac_word=$2 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5286 printf %s "checking for $ac_word... " >&6; } 5287 if test ${ac_cv_prog_ac_ct_CC+y} 5288 then : 5289 printf %s "(cached) " >&6 5290 else $as_nop 5291 if test -n "$ac_ct_CC"; then 5292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5293 else 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295 for as_dir in $PATH 5296 do 5297 IFS=$as_save_IFS 5298 case $as_dir in #((( 5299 '') as_dir=./ ;; 5300 */) ;; 5301 *) as_dir=$as_dir/ ;; 5302 esac 5303 for ac_exec_ext in '' $ac_executable_extensions; do 5304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5305 ac_cv_prog_ac_ct_CC="$ac_prog" 5306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5307 break 2 5308 fi 5309 done 5310 done 5311 IFS=$as_save_IFS 5312 5313 fi 5314 fi 5315 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5316 if test -n "$ac_ct_CC"; then 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5318 printf "%s\n" "$ac_ct_CC" >&6; } 5319 else 5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5321 printf "%s\n" "no" >&6; } 5322 fi 5323 5324 5325 test -n "$ac_ct_CC" && break 5326 done 5327 5328 if test "x$ac_ct_CC" = x; then 5329 CC="" 5330 else 5331 case $cross_compiling:$ac_tool_warned in 5332 yes:) 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5335 ac_tool_warned=yes ;; 5336 esac 5337 CC=$ac_ct_CC 5338 fi 5339 fi 5340 5341 fi 5342 if test -z "$CC"; then 5343 if test -n "$ac_tool_prefix"; then 5344 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5345 set dummy ${ac_tool_prefix}clang; ac_word=$2 5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5347 printf %s "checking for $ac_word... " >&6; } 5348 if test ${ac_cv_prog_CC+y} 5349 then : 5350 printf %s "(cached) " >&6 5351 else $as_nop 5352 if test -n "$CC"; then 5353 ac_cv_prog_CC="$CC" # Let the user override the test. 5354 else 5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356 for as_dir in $PATH 5357 do 5358 IFS=$as_save_IFS 5359 case $as_dir in #((( 5360 '') as_dir=./ ;; 5361 */) ;; 5362 *) as_dir=$as_dir/ ;; 5363 esac 5364 for ac_exec_ext in '' $ac_executable_extensions; do 5365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5366 ac_cv_prog_CC="${ac_tool_prefix}clang" 5367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5368 break 2 5369 fi 5370 done 5371 done 5372 IFS=$as_save_IFS 5373 5374 fi 5375 fi 5376 CC=$ac_cv_prog_CC 5377 if test -n "$CC"; then 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5379 printf "%s\n" "$CC" >&6; } 5380 else 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382 printf "%s\n" "no" >&6; } 5383 fi 5384 5385 5386 fi 5387 if test -z "$ac_cv_prog_CC"; then 5388 ac_ct_CC=$CC 5389 # Extract the first word of "clang", so it can be a program name with args. 5390 set dummy clang; ac_word=$2 5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5392 printf %s "checking for $ac_word... " >&6; } 5393 if test ${ac_cv_prog_ac_ct_CC+y} 5394 then : 5395 printf %s "(cached) " >&6 5396 else $as_nop 5397 if test -n "$ac_ct_CC"; then 5398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5399 else 5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401 for as_dir in $PATH 5402 do 5403 IFS=$as_save_IFS 5404 case $as_dir in #((( 5405 '') as_dir=./ ;; 5406 */) ;; 5407 *) as_dir=$as_dir/ ;; 5408 esac 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5411 ac_cv_prog_ac_ct_CC="clang" 5412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415 done 5416 done 5417 IFS=$as_save_IFS 5418 5419 fi 5420 fi 5421 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5422 if test -n "$ac_ct_CC"; then 5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5424 printf "%s\n" "$ac_ct_CC" >&6; } 5425 else 5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5427 printf "%s\n" "no" >&6; } 5428 fi 5429 5430 if test "x$ac_ct_CC" = x; then 5431 CC="" 5432 else 5433 case $cross_compiling:$ac_tool_warned in 5434 yes:) 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5437 ac_tool_warned=yes ;; 5438 esac 5439 CC=$ac_ct_CC 5440 fi 5441 else 5442 CC="$ac_cv_prog_CC" 5443 fi 5444 5445 fi 5446 5447 5448 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5449 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5450 as_fn_error $? "no acceptable C compiler found in \$PATH 5451 See \`config.log' for more details" "$LINENO" 5; } 5452 5453 # Provide some information about the compiler. 5454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5455 set X $ac_compile 5456 ac_compiler=$2 5457 for ac_option in --version -v -V -qversion -version; do 5458 { { ac_try="$ac_compiler $ac_option >&5" 5459 case "(($ac_try" in 5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5461 *) ac_try_echo=$ac_try;; 5462 esac 5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5464 printf "%s\n" "$ac_try_echo"; } >&5 5465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5466 ac_status=$? 5467 if test -s conftest.err; then 5468 sed '10a\ 5469 ... rest of stderr output deleted ... 5470 10q' conftest.err >conftest.er1 5471 cat conftest.er1 >&5 5472 fi 5473 rm -f conftest.er1 conftest.err 5474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5475 test $ac_status = 0; } 5476 done 5477 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5479 printf %s "checking whether the compiler supports GNU C... " >&6; } 5480 if test ${ac_cv_c_compiler_gnu+y} 5481 then : 5482 printf %s "(cached) " >&6 5483 else $as_nop 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485 /* end confdefs.h. */ 5486 5487 int 5488 main (void) 5489 { 5490 #ifndef __GNUC__ 5491 choke me 5492 #endif 5493 5494 ; 5495 return 0; 5496 } 5497 _ACEOF 5498 if ac_fn_c_try_compile "$LINENO" 5499 then : 5500 ac_compiler_gnu=yes 5501 else $as_nop 5502 ac_compiler_gnu=no 5503 fi 5504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5505 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5506 5507 fi 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5509 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5511 5512 if test $ac_compiler_gnu = yes; then 5513 GCC=yes 5514 else 5515 GCC= 5516 fi 5517 ac_test_CFLAGS=${CFLAGS+y} 5518 ac_save_CFLAGS=$CFLAGS 5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5520 printf %s "checking whether $CC accepts -g... " >&6; } 5521 if test ${ac_cv_prog_cc_g+y} 5522 then : 5523 printf %s "(cached) " >&6 5524 else $as_nop 5525 ac_save_c_werror_flag=$ac_c_werror_flag 5526 ac_c_werror_flag=yes 5527 ac_cv_prog_cc_g=no 5528 CFLAGS="-g" 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530 /* end confdefs.h. */ 5531 5532 int 5533 main (void) 5534 { 5535 5536 ; 5537 return 0; 5538 } 5539 _ACEOF 5540 if ac_fn_c_try_compile "$LINENO" 5541 then : 5542 ac_cv_prog_cc_g=yes 5543 else $as_nop 5544 CFLAGS="" 5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546 /* end confdefs.h. */ 5547 5548 int 5549 main (void) 5550 { 5551 5552 ; 5553 return 0; 5554 } 5555 _ACEOF 5556 if ac_fn_c_try_compile "$LINENO" 5557 then : 5558 5559 else $as_nop 5560 ac_c_werror_flag=$ac_save_c_werror_flag 5561 CFLAGS="-g" 5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563 /* end confdefs.h. */ 5564 5565 int 5566 main (void) 5567 { 5568 5569 ; 5570 return 0; 5571 } 5572 _ACEOF 5573 if ac_fn_c_try_compile "$LINENO" 5574 then : 5575 ac_cv_prog_cc_g=yes 5576 fi 5577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5578 fi 5579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5580 fi 5581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5582 ac_c_werror_flag=$ac_save_c_werror_flag 5583 fi 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5585 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5586 if test $ac_test_CFLAGS; then 5587 CFLAGS=$ac_save_CFLAGS 5588 elif test $ac_cv_prog_cc_g = yes; then 5589 if test "$GCC" = yes; then 5590 CFLAGS="-g -O2" 5591 else 5592 CFLAGS="-g" 5593 fi 5594 else 5595 if test "$GCC" = yes; then 5596 CFLAGS="-O2" 5597 else 5598 CFLAGS= 5599 fi 5600 fi 5601 ac_prog_cc_stdc=no 5602 if test x$ac_prog_cc_stdc = xno 5603 then : 5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5605 printf %s "checking for $CC option to enable C11 features... " >&6; } 5606 if test ${ac_cv_prog_cc_c11+y} 5607 then : 5608 printf %s "(cached) " >&6 5609 else $as_nop 5610 ac_cv_prog_cc_c11=no 5611 ac_save_CC=$CC 5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613 /* end confdefs.h. */ 5614 $ac_c_conftest_c11_program 5615 _ACEOF 5616 for ac_arg in '' -std=gnu11 5617 do 5618 CC="$ac_save_CC $ac_arg" 5619 if ac_fn_c_try_compile "$LINENO" 5620 then : 5621 ac_cv_prog_cc_c11=$ac_arg 5622 fi 5623 rm -f core conftest.err conftest.$ac_objext conftest.beam 5624 test "x$ac_cv_prog_cc_c11" != "xno" && break 5625 done 5626 rm -f conftest.$ac_ext 5627 CC=$ac_save_CC 5628 fi 5629 5630 if test "x$ac_cv_prog_cc_c11" = xno 5631 then : 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5633 printf "%s\n" "unsupported" >&6; } 5634 else $as_nop 5635 if test "x$ac_cv_prog_cc_c11" = x 5636 then : 5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5638 printf "%s\n" "none needed" >&6; } 5639 else $as_nop 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5641 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5642 CC="$CC $ac_cv_prog_cc_c11" 5643 fi 5644 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5645 ac_prog_cc_stdc=c11 5646 fi 5647 fi 5648 if test x$ac_prog_cc_stdc = xno 5649 then : 5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5651 printf %s "checking for $CC option to enable C99 features... " >&6; } 5652 if test ${ac_cv_prog_cc_c99+y} 5653 then : 5654 printf %s "(cached) " >&6 5655 else $as_nop 5656 ac_cv_prog_cc_c99=no 5657 ac_save_CC=$CC 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659 /* end confdefs.h. */ 5660 $ac_c_conftest_c99_program 5661 _ACEOF 5662 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5663 do 5664 CC="$ac_save_CC $ac_arg" 5665 if ac_fn_c_try_compile "$LINENO" 5666 then : 5667 ac_cv_prog_cc_c99=$ac_arg 5668 fi 5669 rm -f core conftest.err conftest.$ac_objext conftest.beam 5670 test "x$ac_cv_prog_cc_c99" != "xno" && break 5671 done 5672 rm -f conftest.$ac_ext 5673 CC=$ac_save_CC 5674 fi 5675 5676 if test "x$ac_cv_prog_cc_c99" = xno 5677 then : 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5679 printf "%s\n" "unsupported" >&6; } 5680 else $as_nop 5681 if test "x$ac_cv_prog_cc_c99" = x 5682 then : 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5684 printf "%s\n" "none needed" >&6; } 5685 else $as_nop 5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5687 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5688 CC="$CC $ac_cv_prog_cc_c99" 5689 fi 5690 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5691 ac_prog_cc_stdc=c99 5692 fi 5693 fi 5694 if test x$ac_prog_cc_stdc = xno 5695 then : 5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5697 printf %s "checking for $CC option to enable C89 features... " >&6; } 5698 if test ${ac_cv_prog_cc_c89+y} 5699 then : 5700 printf %s "(cached) " >&6 5701 else $as_nop 5702 ac_cv_prog_cc_c89=no 5703 ac_save_CC=$CC 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705 /* end confdefs.h. */ 5706 $ac_c_conftest_c89_program 5707 _ACEOF 5708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5709 do 5710 CC="$ac_save_CC $ac_arg" 5711 if ac_fn_c_try_compile "$LINENO" 5712 then : 5713 ac_cv_prog_cc_c89=$ac_arg 5714 fi 5715 rm -f core conftest.err conftest.$ac_objext conftest.beam 5716 test "x$ac_cv_prog_cc_c89" != "xno" && break 5717 done 5718 rm -f conftest.$ac_ext 5719 CC=$ac_save_CC 5720 fi 5721 5722 if test "x$ac_cv_prog_cc_c89" = xno 5723 then : 5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5725 printf "%s\n" "unsupported" >&6; } 5726 else $as_nop 5727 if test "x$ac_cv_prog_cc_c89" = x 5728 then : 5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5730 printf "%s\n" "none needed" >&6; } 5731 else $as_nop 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5733 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5734 CC="$CC $ac_cv_prog_cc_c89" 5735 fi 5736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5737 ac_prog_cc_stdc=c89 5738 fi 5739 fi 5740 5741 ac_ext=c 5742 ac_cpp='$CPP $CPPFLAGS' 5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5746 5747 5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5749 printf %s "checking $CC dependency flag... " >&6; } 5750 echo 'void f(void){}' >conftest.c 5751 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5752 DEPFLAG="-MM" 5753 else 5754 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5755 DEPFLAG="-xM1" 5756 else 5757 DEPFLAG="-MM" # dunno do something 5758 fi 5759 fi 5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5761 printf "%s\n" "$DEPFLAG" >&6; } 5762 rm -f conftest.c 5763 5764 5765 5766 5767 5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5769 printf %s "checking whether $CC supports -Werror... " >&6; } 5770 cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5771 if eval test \${cv_prog_cc_flag_$cache+y} 5772 then : 5773 printf %s "(cached) " >&6 5774 else $as_nop 5775 5776 echo 'void f(void){}' >conftest.c 5777 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5778 eval "cv_prog_cc_flag_$cache=yes" 5779 else 5780 eval "cv_prog_cc_flag_$cache=no" 5781 fi 5782 rm -f conftest conftest.o conftest.c 5783 5784 fi 5785 5786 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5788 printf "%s\n" "yes" >&6; } 5789 : 5790 ERRFLAG="-Werror" 5791 else 5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793 printf "%s\n" "no" >&6; } 5794 : 5795 ERRFLAG="-errwarn" 5796 fi 5797 5798 5799 5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5801 printf %s "checking whether $CC supports -Wall... " >&6; } 5802 cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5803 if eval test \${cv_prog_cc_flag_$cache+y} 5804 then : 5805 printf %s "(cached) " >&6 5806 else $as_nop 5807 5808 echo 'void f(void){}' >conftest.c 5809 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5810 eval "cv_prog_cc_flag_$cache=yes" 5811 else 5812 eval "cv_prog_cc_flag_$cache=no" 5813 fi 5814 rm -f conftest conftest.o conftest.c 5815 5816 fi 5817 5818 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5820 printf "%s\n" "yes" >&6; } 5821 : 5822 ERRFLAG="$ERRFLAG -Wall" 5823 else 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825 printf "%s\n" "no" >&6; } 5826 : 5827 ERRFLAG="$ERRFLAG -errfmt" 5828 fi 5829 5830 5831 5832 5833 5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5835 printf %s "checking whether $CC supports -std=c99... " >&6; } 5836 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5837 if eval test \${cv_prog_cc_flag_$cache+y} 5838 then : 5839 printf %s "(cached) " >&6 5840 else $as_nop 5841 5842 echo 'void f(void){}' >conftest.c 5843 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5844 eval "cv_prog_cc_flag_$cache=yes" 5845 else 5846 eval "cv_prog_cc_flag_$cache=no" 5847 fi 5848 rm -f conftest conftest.o conftest.c 5849 5850 fi 5851 5852 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5854 printf "%s\n" "yes" >&6; } 5855 : 5856 C99FLAG="-std=c99" 5857 else 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5859 printf "%s\n" "no" >&6; } 5860 : 5861 5862 fi 5863 5864 5865 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5867 printf %s "checking whether $CC supports -xc99... " >&6; } 5868 cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5869 if eval test \${cv_prog_cc_flag_$cache+y} 5870 then : 5871 printf %s "(cached) " >&6 5872 else $as_nop 5873 5874 echo 'void f(void){}' >conftest.c 5875 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5876 eval "cv_prog_cc_flag_$cache=yes" 5877 else 5878 eval "cv_prog_cc_flag_$cache=no" 5879 fi 5880 rm -f conftest conftest.o conftest.c 5881 5882 fi 5883 5884 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5886 printf "%s\n" "yes" >&6; } 5887 : 5888 C99FLAG="-xc99" 5889 else 5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891 printf "%s\n" "no" >&6; } 5892 : 5893 5894 fi 5895 5896 5897 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 5898 " 5899 if test "x$ac_cv_header_getopt_h" = xyes 5900 then : 5901 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 5902 5903 fi 5904 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 5905 " 5906 if test "x$ac_cv_header_time_h" = xyes 5907 then : 5908 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 5909 5910 fi 5911 5912 5913 5914 5915 5916 { printf "%s\n" "$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 5917 printf %s "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; } 5918 cache=`printf "%s\n" "$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` 5919 if eval test \${cv_prog_cc_flag_needed_$cache+y} 5920 then : 5921 printf %s "(cached) " >&6 5922 else $as_nop 5923 5924 echo ' 5925 #include "confdefs.h" 5926 #include <stdlib.h> 5927 #include <ctype.h> 5928 #include <sys/time.h> 5929 #ifdef HAVE_TIME_H 5930 #include <time.h> 5931 #endif 5932 #include <unistd.h> 5933 #include <netdb.h> 5934 #ifdef HAVE_GETOPT_H 5935 #include <getopt.h> 5936 #endif 5937 5938 int test(void) { 5939 int a; 5940 char **opts = NULL; 5941 struct timeval tv; 5942 char *t; 5943 time_t time = 0; 5944 char *buf = NULL; 5945 const char* str = NULL; 5946 struct msghdr msg; 5947 msg.msg_control = 0; 5948 t = ctime_r(&time, buf); 5949 tv.tv_usec = 10; 5950 srandom(32); 5951 a = getopt(2, opts, "a"); 5952 a = isascii(32); 5953 str = gai_strerror(0); 5954 if(str && t && tv.tv_usec && msg.msg_control) 5955 a = 0; 5956 return a; 5957 } 5958 ' > conftest.c 5959 echo 'void f(void){}' >>conftest.c 5960 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5961 eval "cv_prog_cc_flag_needed_$cache=no" 5962 else 5963 5964 if 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 5965 eval "cv_prog_cc_flag_needed_$cache=yes" 5966 else 5967 eval "cv_prog_cc_flag_needed_$cache=fail" 5968 #echo 'Test with flag fails too!' 5969 #cat conftest.c 5970 #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" 5971 #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` 5972 #exit 1 5973 fi 5974 5975 fi 5976 rm -f conftest conftest.c conftest.o 5977 5978 fi 5979 5980 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5982 printf "%s\n" "yes" >&6; } 5983 : 5984 CFLAGS="$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" 5985 else 5986 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988 printf "%s\n" "no" >&6; } 5989 #echo 'Test with flag is no!' 5990 #cat conftest.c 5991 #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" 5992 #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` 5993 #exit 1 5994 : 5995 5996 else 5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5998 printf "%s\n" "failed" >&6; } 5999 : 6000 6001 fi 6002 fi 6003 6004 6005 6006 6007 6008 { printf "%s\n" "$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 6009 printf %s "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; } 6010 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 6011 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6012 then : 6013 printf %s "(cached) " >&6 6014 else $as_nop 6015 6016 echo ' 6017 #include "confdefs.h" 6018 #include <stdlib.h> 6019 #include <ctype.h> 6020 #include <sys/time.h> 6021 #ifdef HAVE_TIME_H 6022 #include <time.h> 6023 #endif 6024 #include <unistd.h> 6025 #include <netdb.h> 6026 #ifdef HAVE_GETOPT_H 6027 #include <getopt.h> 6028 #endif 6029 6030 int test(void) { 6031 int a; 6032 char **opts = NULL; 6033 struct timeval tv; 6034 char *t; 6035 time_t time = 0; 6036 char *buf = NULL; 6037 const char* str = NULL; 6038 struct msghdr msg; 6039 msg.msg_control = 0; 6040 t = ctime_r(&time, buf); 6041 tv.tv_usec = 10; 6042 srandom(32); 6043 a = getopt(2, opts, "a"); 6044 a = isascii(32); 6045 str = gai_strerror(0); 6046 if(str && t && tv.tv_usec && msg.msg_control) 6047 a = 0; 6048 return a; 6049 } 6050 ' > conftest.c 6051 echo 'void f(void){}' >>conftest.c 6052 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6053 eval "cv_prog_cc_flag_needed_$cache=no" 6054 else 6055 6056 if 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 6057 eval "cv_prog_cc_flag_needed_$cache=yes" 6058 else 6059 eval "cv_prog_cc_flag_needed_$cache=fail" 6060 #echo 'Test with flag fails too!' 6061 #cat conftest.c 6062 #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" 6063 #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` 6064 #exit 1 6065 fi 6066 6067 fi 6068 rm -f conftest conftest.c conftest.o 6069 6070 fi 6071 6072 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6074 printf "%s\n" "yes" >&6; } 6075 : 6076 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 6077 else 6078 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080 printf "%s\n" "no" >&6; } 6081 #echo 'Test with flag is no!' 6082 #cat conftest.c 6083 #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" 6084 #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` 6085 #exit 1 6086 : 6087 6088 else 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6090 printf "%s\n" "failed" >&6; } 6091 : 6092 6093 fi 6094 fi 6095 6096 6097 6098 6099 6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 6101 printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 6102 cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh` 6103 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6104 then : 6105 printf %s "(cached) " >&6 6106 else $as_nop 6107 6108 echo ' 6109 #include <stdbool.h> 6110 #include <ctype.h> 6111 int test(void) { 6112 int a = 0; 6113 return a; 6114 } 6115 ' > conftest.c 6116 echo 'void f(void){}' >>conftest.c 6117 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6118 eval "cv_prog_cc_flag_needed_$cache=no" 6119 else 6120 6121 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 6122 eval "cv_prog_cc_flag_needed_$cache=yes" 6123 else 6124 eval "cv_prog_cc_flag_needed_$cache=fail" 6125 #echo 'Test with flag fails too!' 6126 #cat conftest.c 6127 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 6128 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 6129 #exit 1 6130 fi 6131 6132 fi 6133 rm -f conftest conftest.c conftest.o 6134 6135 fi 6136 6137 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6139 printf "%s\n" "yes" >&6; } 6140 : 6141 CFLAGS="$CFLAGS $C99FLAG" 6142 else 6143 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6145 printf "%s\n" "no" >&6; } 6146 #echo 'Test with flag is no!' 6147 #cat conftest.c 6148 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 6149 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 6150 #exit 1 6151 : 6152 6153 else 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6155 printf "%s\n" "failed" >&6; } 6156 : 6157 6158 fi 6159 fi 6160 6161 6162 6163 6164 6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 6166 printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 6167 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 6168 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6169 then : 6170 printf %s "(cached) " >&6 6171 else $as_nop 6172 6173 echo ' 6174 #include <ctype.h> 6175 6176 int test(void) { 6177 int a; 6178 a = isascii(32); 6179 return a; 6180 } 6181 ' > conftest.c 6182 echo 'void f(void){}' >>conftest.c 6183 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6184 eval "cv_prog_cc_flag_needed_$cache=no" 6185 else 6186 6187 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6188 eval "cv_prog_cc_flag_needed_$cache=yes" 6189 else 6190 eval "cv_prog_cc_flag_needed_$cache=fail" 6191 #echo 'Test with flag fails too!' 6192 #cat conftest.c 6193 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 6194 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 6195 #exit 1 6196 fi 6197 6198 fi 6199 rm -f conftest conftest.c conftest.o 6200 6201 fi 6202 6203 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6205 printf "%s\n" "yes" >&6; } 6206 : 6207 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 6208 else 6209 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6211 printf "%s\n" "no" >&6; } 6212 #echo 'Test with flag is no!' 6213 #cat conftest.c 6214 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 6215 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 6216 #exit 1 6217 : 6218 6219 else 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6221 printf "%s\n" "failed" >&6; } 6222 : 6223 6224 fi 6225 fi 6226 6227 6228 6229 6230 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 6232 printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 6233 cache=_D_GNU_SOURCE 6234 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6235 then : 6236 printf %s "(cached) " >&6 6237 else $as_nop 6238 6239 echo ' 6240 #include <netinet/in.h> 6241 6242 int test(void) { 6243 struct in6_pktinfo inf; 6244 int a = (int)sizeof(inf); 6245 return a; 6246 } 6247 ' > conftest.c 6248 echo 'void f(void){}' >>conftest.c 6249 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6250 eval "cv_prog_cc_flag_needed_$cache=no" 6251 else 6252 6253 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6254 eval "cv_prog_cc_flag_needed_$cache=yes" 6255 else 6256 eval "cv_prog_cc_flag_needed_$cache=fail" 6257 #echo 'Test with flag fails too!' 6258 #cat conftest.c 6259 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 6260 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 6261 #exit 1 6262 fi 6263 6264 fi 6265 rm -f conftest conftest.c conftest.o 6266 6267 fi 6268 6269 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6271 printf "%s\n" "yes" >&6; } 6272 : 6273 CFLAGS="$CFLAGS -D_GNU_SOURCE" 6274 else 6275 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6277 printf "%s\n" "no" >&6; } 6278 #echo 'Test with flag is no!' 6279 #cat conftest.c 6280 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 6281 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 6282 #exit 1 6283 : 6284 6285 else 6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6287 printf "%s\n" "failed" >&6; } 6288 : 6289 6290 fi 6291 fi 6292 6293 6294 # check again for GNU_SOURCE for setresgid. May fail if setresgid 6295 # is not available at all. -D_FRSRESGID is to make this check unique. 6296 # otherwise we would get the previous cached result. 6297 6298 6299 6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 6301 printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 6302 cache=_D_GNU_SOURCE__D_FRSRESGID 6303 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6304 then : 6305 printf %s "(cached) " >&6 6306 else $as_nop 6307 6308 echo ' 6309 #include <unistd.h> 6310 6311 int test(void) { 6312 int a = setresgid(0,0,0); 6313 a = setresuid(0,0,0); 6314 return a; 6315 } 6316 ' > conftest.c 6317 echo 'void f(void){}' >>conftest.c 6318 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6319 eval "cv_prog_cc_flag_needed_$cache=no" 6320 else 6321 6322 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 6323 eval "cv_prog_cc_flag_needed_$cache=yes" 6324 else 6325 eval "cv_prog_cc_flag_needed_$cache=fail" 6326 #echo 'Test with flag fails too!' 6327 #cat conftest.c 6328 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 6329 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 6330 #exit 1 6331 fi 6332 6333 fi 6334 rm -f conftest conftest.c conftest.o 6335 6336 fi 6337 6338 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6340 printf "%s\n" "yes" >&6; } 6341 : 6342 CFLAGS="$CFLAGS -D_GNU_SOURCE" 6343 else 6344 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6346 printf "%s\n" "no" >&6; } 6347 #echo 'Test with flag is no!' 6348 #cat conftest.c 6349 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 6350 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 6351 #exit 1 6352 : 6353 6354 else 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6356 printf "%s\n" "failed" >&6; } 6357 : 6358 6359 fi 6360 fi 6361 6362 6363 6364 6365 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 6367 printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 6368 cache=_D_POSIX_C_SOURCE_200112 6369 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6370 then : 6371 printf %s "(cached) " >&6 6372 else $as_nop 6373 6374 echo ' 6375 #include "confdefs.h" 6376 #ifdef HAVE_TIME_H 6377 #include <time.h> 6378 #endif 6379 #include <netdb.h> 6380 6381 int test(void) { 6382 int a = 0; 6383 char *t; 6384 time_t time = 0; 6385 char *buf = NULL; 6386 const char* str = NULL; 6387 t = ctime_r(&time, buf); 6388 str = gai_strerror(0); 6389 if(t && str) 6390 a = 0; 6391 return a; 6392 } 6393 ' > conftest.c 6394 echo 'void f(void){}' >>conftest.c 6395 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6396 eval "cv_prog_cc_flag_needed_$cache=no" 6397 else 6398 6399 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 6400 eval "cv_prog_cc_flag_needed_$cache=yes" 6401 else 6402 eval "cv_prog_cc_flag_needed_$cache=fail" 6403 #echo 'Test with flag fails too!' 6404 #cat conftest.c 6405 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 6406 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 6407 #exit 1 6408 fi 6409 6410 fi 6411 rm -f conftest conftest.c conftest.o 6412 6413 fi 6414 6415 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6417 printf "%s\n" "yes" >&6; } 6418 : 6419 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 6420 else 6421 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6423 printf "%s\n" "no" >&6; } 6424 #echo 'Test with flag is no!' 6425 #cat conftest.c 6426 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 6427 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 6428 #exit 1 6429 : 6430 6431 else 6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6433 printf "%s\n" "failed" >&6; } 6434 : 6435 6436 fi 6437 fi 6438 6439 6440 6441 6442 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 6444 printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 6445 cache=_D__EXTENSIONS__ 6446 if eval test \${cv_prog_cc_flag_needed_$cache+y} 6447 then : 6448 printf %s "(cached) " >&6 6449 else $as_nop 6450 6451 echo ' 6452 #include "confdefs.h" 6453 #include <stdlib.h> 6454 #include <ctype.h> 6455 #include <sys/time.h> 6456 #ifdef HAVE_TIME_H 6457 #include <time.h> 6458 #endif 6459 #include <unistd.h> 6460 #ifdef HAVE_GETOPT_H 6461 #include <getopt.h> 6462 #endif 6463 6464 int test(void) { 6465 int a; 6466 char **opts = NULL; 6467 struct timeval tv; 6468 tv.tv_usec = 10; 6469 srandom(32); 6470 a = getopt(2, opts, "a"); 6471 a = isascii(32); 6472 if(tv.tv_usec) 6473 a = 0; 6474 return a; 6475 } 6476 ' > conftest.c 6477 echo 'void f(void){}' >>conftest.c 6478 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6479 eval "cv_prog_cc_flag_needed_$cache=no" 6480 else 6481 6482 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 6483 eval "cv_prog_cc_flag_needed_$cache=yes" 6484 else 6485 eval "cv_prog_cc_flag_needed_$cache=fail" 6486 #echo 'Test with flag fails too!' 6487 #cat conftest.c 6488 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 6489 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 6490 #exit 1 6491 fi 6492 6493 fi 6494 rm -f conftest conftest.c conftest.o 6495 6496 fi 6497 6498 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6500 printf "%s\n" "yes" >&6; } 6501 : 6502 CFLAGS="$CFLAGS -D__EXTENSIONS__" 6503 else 6504 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6506 printf "%s\n" "no" >&6; } 6507 #echo 'Test with flag is no!' 6508 #cat conftest.c 6509 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 6510 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 6511 #exit 1 6512 : 6513 6514 else 6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6516 printf "%s\n" "failed" >&6; } 6517 : 6518 6519 fi 6520 fi 6521 6522 6523 6524 6525 # debug mode flags warnings 6526 # Check whether --enable-checking was given. 6527 if test ${enable_checking+y} 6528 then : 6529 enableval=$enable_checking; 6530 fi 6531 6532 # Check whether --enable-debug was given. 6533 if test ${enable_debug+y} 6534 then : 6535 enableval=$enable_debug; 6536 fi 6537 6538 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 6539 else debug_enabled="$enable_checking"; fi 6540 6541 case "$debug_enabled" in 6542 yes) 6543 6544 6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 6546 printf %s "checking whether $CC supports -W... " >&6; } 6547 cache=`echo W | sed 'y%.=/+-%___p_%'` 6548 if eval test \${cv_prog_cc_flag_$cache+y} 6549 then : 6550 printf %s "(cached) " >&6 6551 else $as_nop 6552 6553 echo 'void f(void){}' >conftest.c 6554 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 6555 eval "cv_prog_cc_flag_$cache=yes" 6556 else 6557 eval "cv_prog_cc_flag_$cache=no" 6558 fi 6559 rm -f conftest conftest.o conftest.c 6560 6561 fi 6562 6563 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6565 printf "%s\n" "yes" >&6; } 6566 : 6567 CFLAGS="$CFLAGS -W" 6568 else 6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6570 printf "%s\n" "no" >&6; } 6571 : 6572 6573 fi 6574 6575 6576 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 6578 printf %s "checking whether $CC supports -Wall... " >&6; } 6579 cache=`echo Wall | sed 'y%.=/+-%___p_%'` 6580 if eval test \${cv_prog_cc_flag_$cache+y} 6581 then : 6582 printf %s "(cached) " >&6 6583 else $as_nop 6584 6585 echo 'void f(void){}' >conftest.c 6586 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 6587 eval "cv_prog_cc_flag_$cache=yes" 6588 else 6589 eval "cv_prog_cc_flag_$cache=no" 6590 fi 6591 rm -f conftest conftest.o conftest.c 6592 6593 fi 6594 6595 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6597 printf "%s\n" "yes" >&6; } 6598 : 6599 CFLAGS="$CFLAGS -Wall" 6600 else 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602 printf "%s\n" "no" >&6; } 6603 : 6604 6605 fi 6606 6607 6608 6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 6610 printf %s "checking whether $CC supports -Wextra... " >&6; } 6611 cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 6612 if eval test \${cv_prog_cc_flag_$cache+y} 6613 then : 6614 printf %s "(cached) " >&6 6615 else $as_nop 6616 6617 echo 'void f(void){}' >conftest.c 6618 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 6619 eval "cv_prog_cc_flag_$cache=yes" 6620 else 6621 eval "cv_prog_cc_flag_$cache=no" 6622 fi 6623 rm -f conftest conftest.o conftest.c 6624 6625 fi 6626 6627 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6629 printf "%s\n" "yes" >&6; } 6630 : 6631 CFLAGS="$CFLAGS -Wextra" 6632 else 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634 printf "%s\n" "no" >&6; } 6635 : 6636 6637 fi 6638 6639 6640 6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 6642 printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 6643 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 6644 if eval test \${cv_prog_cc_flag_$cache+y} 6645 then : 6646 printf %s "(cached) " >&6 6647 else $as_nop 6648 6649 echo 'void f(void){}' >conftest.c 6650 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 6651 eval "cv_prog_cc_flag_$cache=yes" 6652 else 6653 eval "cv_prog_cc_flag_$cache=no" 6654 fi 6655 rm -f conftest conftest.o conftest.c 6656 6657 fi 6658 6659 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6661 printf "%s\n" "yes" >&6; } 6662 : 6663 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6664 else 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6666 printf "%s\n" "no" >&6; } 6667 : 6668 6669 fi 6670 6671 6672 printf "%s\n" "#define UNBOUND_DEBUG /**/" >>confdefs.h 6673 6674 ;; 6675 no|*) 6676 # nothing to do. 6677 ;; 6678 esac 6679 if test "$default_cflags" = "yes"; then 6680 # only when CFLAGS was "" at the start, if the users wants to 6681 # override we shouldn't add default cflags, because they wouldn't 6682 # be able to turn off these options and set the CFLAGS wanted. 6683 6684 # Check whether --enable-flto was given. 6685 if test ${enable_flto+y} 6686 then : 6687 enableval=$enable_flto; 6688 fi 6689 6690 if test "x$enable_flto" != "xno" 6691 then : 6692 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6694 printf %s "checking if $CC supports -flto... " >&6; } 6695 BAKCFLAGS="$CFLAGS" 6696 CFLAGS="$CFLAGS -flto" 6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6698 /* end confdefs.h. */ 6699 6700 int 6701 main (void) 6702 { 6703 6704 ; 6705 return 0; 6706 } 6707 _ACEOF 6708 if ac_fn_c_try_link "$LINENO" 6709 then : 6710 6711 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6712 CFLAGS="$BAKCFLAGS" 6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714 printf "%s\n" "no" >&6; } 6715 else 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6717 printf "%s\n" "yes" >&6; } 6718 fi 6719 rm -f conftest conftest.c conftest.o 6720 6721 else $as_nop 6722 CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6723 printf "%s\n" "no" >&6; } 6724 fi 6725 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6726 conftest$ac_exeext conftest.$ac_ext 6727 6728 fi 6729 6730 6731 # Check whether --enable-pie was given. 6732 if test ${enable_pie+y} 6733 then : 6734 enableval=$enable_pie; 6735 fi 6736 6737 if test "x$enable_pie" = "xyes" 6738 then : 6739 6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6741 printf %s "checking if $CC supports PIE... " >&6; } 6742 BAKLDFLAGS="$LDFLAGS" 6743 BAKCFLAGS="$CFLAGS" 6744 LDFLAGS="$LDFLAGS -pie" 6745 CFLAGS="$CFLAGS -fPIE" 6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6747 /* end confdefs.h. */ 6748 6749 int 6750 main (void) 6751 { 6752 6753 ; 6754 return 0; 6755 } 6756 _ACEOF 6757 if ac_fn_c_try_link "$LINENO" 6758 then : 6759 6760 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6761 LDFLAGS="$BAKLDFLAGS" 6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763 printf "%s\n" "no" >&6; } 6764 else 6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6766 printf "%s\n" "yes" >&6; } 6767 fi 6768 rm -f conftest conftest.c conftest.o 6769 6770 else $as_nop 6771 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772 printf "%s\n" "no" >&6; } 6773 fi 6774 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6775 conftest$ac_exeext conftest.$ac_ext 6776 6777 fi 6778 6779 6780 # Check whether --enable-relro_now was given. 6781 if test ${enable_relro_now+y} 6782 then : 6783 enableval=$enable_relro_now; 6784 fi 6785 6786 if test "x$enable_relro_now" = "xyes" 6787 then : 6788 6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6790 printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6791 BAKLDFLAGS="$LDFLAGS" 6792 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794 /* end confdefs.h. */ 6795 6796 int 6797 main (void) 6798 { 6799 6800 ; 6801 return 0; 6802 } 6803 _ACEOF 6804 if ac_fn_c_try_link "$LINENO" 6805 then : 6806 6807 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6808 LDFLAGS="$BAKLDFLAGS" 6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6810 printf "%s\n" "no" >&6; } 6811 else 6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6813 printf "%s\n" "yes" >&6; } 6814 fi 6815 rm -f conftest conftest.c conftest.o 6816 6817 else $as_nop 6818 LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6819 printf "%s\n" "no" >&6; } 6820 fi 6821 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6822 conftest$ac_exeext conftest.$ac_ext 6823 6824 fi 6825 6826 fi 6827 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6829 printf %s "checking for inline... " >&6; } 6830 if test ${ac_cv_c_inline+y} 6831 then : 6832 printf %s "(cached) " >&6 6833 else $as_nop 6834 ac_cv_c_inline=no 6835 for ac_kw in inline __inline__ __inline; do 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837 /* end confdefs.h. */ 6838 #ifndef __cplusplus 6839 typedef int foo_t; 6840 static $ac_kw foo_t static_foo (void) {return 0; } 6841 $ac_kw foo_t foo (void) {return 0; } 6842 #endif 6843 6844 _ACEOF 6845 if ac_fn_c_try_compile "$LINENO" 6846 then : 6847 ac_cv_c_inline=$ac_kw 6848 fi 6849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6850 test "$ac_cv_c_inline" != no && break 6851 done 6852 6853 fi 6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6855 printf "%s\n" "$ac_cv_c_inline" >&6; } 6856 6857 case $ac_cv_c_inline in 6858 inline | yes) ;; 6859 *) 6860 case $ac_cv_c_inline in 6861 no) ac_val=;; 6862 *) ac_val=$ac_cv_c_inline;; 6863 esac 6864 cat >>confdefs.h <<_ACEOF 6865 #ifndef __cplusplus 6866 #define inline $ac_val 6867 #endif 6868 _ACEOF 6869 ;; 6870 esac 6871 6872 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6874 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6875 if test ${ac_cv_c_format_attribute+y} 6876 then : 6877 printf %s "(cached) " >&6 6878 else $as_nop 6879 ac_cv_c_format_attribute=no 6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881 /* end confdefs.h. */ 6882 #include <stdio.h> 6883 void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6884 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6885 6886 int 6887 main (void) 6888 { 6889 6890 f ("%s", "str"); 6891 6892 ; 6893 return 0; 6894 } 6895 _ACEOF 6896 if ac_fn_c_try_compile "$LINENO" 6897 then : 6898 ac_cv_c_format_attribute="yes" 6899 else $as_nop 6900 ac_cv_c_format_attribute="no" 6901 fi 6902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6903 6904 fi 6905 6906 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6908 printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 6909 if test $ac_cv_c_format_attribute = yes; then 6910 6911 printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6912 6913 fi 6914 6915 6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6917 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6918 if test ${ac_cv_c_unused_attribute+y} 6919 then : 6920 printf %s "(cached) " >&6 6921 else $as_nop 6922 ac_cv_c_unused_attribute=no 6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6924 /* end confdefs.h. */ 6925 #include <stdio.h> 6926 void f (char *u __attribute__((unused))); 6927 6928 int 6929 main (void) 6930 { 6931 6932 f ("x"); 6933 6934 ; 6935 return 0; 6936 } 6937 _ACEOF 6938 if ac_fn_c_try_compile "$LINENO" 6939 then : 6940 ac_cv_c_unused_attribute="yes" 6941 else $as_nop 6942 ac_cv_c_unused_attribute="no" 6943 fi 6944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6945 6946 fi 6947 6948 6949 6950 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6952 printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 6953 if test $ac_cv_c_unused_attribute = yes; then 6954 6955 printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6956 6957 fi 6958 6959 6960 6961 BAKCFLAGS="$CFLAGS" 6962 CFLAGS="$CFLAGS $ERRFLAG" 6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"nonstring\" attribute" >&5 6964 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"nonstring\" attribute... " >&6; } 6965 if test ${ac_cv_c_nonstring_attribute+y} 6966 then : 6967 printf %s "(cached) " >&6 6968 else $as_nop 6969 ac_cv_c_nonstring_attribute=no 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971 /* end confdefs.h. */ 6972 #include <stdio.h> 6973 struct test { 6974 char __attribute__((nonstring)) s[1]; 6975 }; 6976 6977 int 6978 main (void) 6979 { 6980 6981 struct test t = { "1" }; 6982 (void) t; 6983 6984 ; 6985 return 0; 6986 } 6987 _ACEOF 6988 if ac_fn_c_try_compile "$LINENO" 6989 then : 6990 ac_cv_c_nonstring_attribute="yes" 6991 else $as_nop 6992 ac_cv_c_nonstring_attribute="no" 6993 fi 6994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6995 CFLAGS="$BAKCFLAGS" 6996 6997 fi 6998 6999 7000 7001 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_nonstring_attribute" >&5 7003 printf "%s\n" "$ac_cv_c_nonstring_attribute" >&6; } 7004 if test $ac_cv_c_nonstring_attribute = yes; then 7005 7006 printf "%s\n" "#define HAVE_ATTR_NONSTRING 1" >>confdefs.h 7007 7008 fi 7009 7010 7011 7012 7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 7014 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 7015 if test ${ac_cv_c_weak_attribute+y} 7016 then : 7017 printf %s "(cached) " >&6 7018 else $as_nop 7019 ac_cv_c_weak_attribute=no 7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021 /* end confdefs.h. */ 7022 #include <stdio.h> 7023 __attribute__((weak)) void f(int x) { printf("%d", x); } 7024 7025 int 7026 main (void) 7027 { 7028 7029 f(1); 7030 7031 ; 7032 return 0; 7033 } 7034 _ACEOF 7035 if ac_fn_c_try_compile "$LINENO" 7036 then : 7037 ac_cv_c_weak_attribute="yes" 7038 else $as_nop 7039 ac_cv_c_weak_attribute="no" 7040 fi 7041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7042 7043 fi 7044 7045 7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 7047 printf "%s\n" "$ac_cv_c_weak_attribute" >&6; } 7048 if test $ac_cv_c_weak_attribute = yes; then 7049 7050 printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h 7051 7052 7053 printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 7054 7055 else 7056 7057 printf "%s\n" "#define ATTR_WEAK /**/" >>confdefs.h 7058 7059 fi 7060 7061 7062 7063 7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 7065 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 7066 if test ${ac_cv_c_noreturn_attribute+y} 7067 then : 7068 printf %s "(cached) " >&6 7069 else $as_nop 7070 ac_cv_c_noreturn_attribute=no 7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7072 /* end confdefs.h. */ 7073 #include <stdio.h> 7074 #ifdef STDC_HEADERS 7075 # include <stdlib.h> 7076 #else 7077 # ifdef HAVE_STDLIB_H 7078 # include <stdlib.h> 7079 # endif 7080 #endif 7081 __attribute__((noreturn)) void f(int x) { printf("%d", x); exit(1); } 7082 7083 int 7084 main (void) 7085 { 7086 7087 f(1); 7088 7089 ; 7090 return 0; 7091 } 7092 _ACEOF 7093 if ac_fn_c_try_compile "$LINENO" 7094 then : 7095 ac_cv_c_noreturn_attribute="yes" 7096 else $as_nop 7097 ac_cv_c_noreturn_attribute="no" 7098 fi 7099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7100 7101 fi 7102 7103 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 7105 printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; } 7106 if test $ac_cv_c_noreturn_attribute = yes; then 7107 7108 printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 7109 7110 7111 printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 7112 7113 else 7114 7115 printf "%s\n" "#define ATTR_NORETURN /**/" >>confdefs.h 7116 7117 fi 7118 7119 7120 7121 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute" >&5 7123 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute... " >&6; } 7124 BAKCFLAGS="$CFLAGS" 7125 CFLAGS="$CFLAGS -Werror" 7126 if test ${ac_cv_c_fallthrough_attribute+y} 7127 then : 7128 printf %s "(cached) " >&6 7129 else $as_nop 7130 ac_cv_c_fallthrough_attribute=no 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132 /* end confdefs.h. */ 7133 #include <stdio.h> 7134 void f(int x) { 7135 int y = 0; 7136 switch(x) { 7137 case 1: 7138 y = 1; 7139 __attribute__((fallthrough)); 7140 /* fallthrough */ 7141 case 2: 7142 y++; 7143 break; 7144 case 3: 7145 y = 3; 7146 break; 7147 } 7148 printf("%d", y); 7149 } 7150 7151 int 7152 main (void) 7153 { 7154 7155 f(1); 7156 7157 ; 7158 return 0; 7159 } 7160 _ACEOF 7161 if ac_fn_c_try_compile "$LINENO" 7162 then : 7163 ac_cv_c_fallthrough_attribute="yes" 7164 else $as_nop 7165 ac_cv_c_fallthrough_attribute="no" 7166 fi 7167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7168 7169 fi 7170 7171 CFLAGS="$BAKCFLAGS" 7172 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fallthrough_attribute" >&5 7174 printf "%s\n" "$ac_cv_c_fallthrough_attribute" >&6; } 7175 if test $ac_cv_c_fallthrough_attribute = yes; then 7176 7177 printf "%s\n" "#define HAVE_ATTR_FALLTHROUGH 1" >>confdefs.h 7178 7179 7180 printf "%s\n" "#define ATTR_FALLTHROUGH __attribute__((fallthrough));" >>confdefs.h 7181 7182 else 7183 7184 printf "%s\n" "#define ATTR_FALLTHROUGH /**/" >>confdefs.h 7185 7186 fi 7187 7188 7189 if test "$srcdir" != "."; then 7190 CPPFLAGS="$CPPFLAGS -I$srcdir" 7191 fi 7192 7193 7194 7195 7196 7197 for ac_prog in flex lex 7198 do 7199 # Extract the first word of "$ac_prog", so it can be a program name with args. 7200 set dummy $ac_prog; ac_word=$2 7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7202 printf %s "checking for $ac_word... " >&6; } 7203 if test ${ac_cv_prog_LEX+y} 7204 then : 7205 printf %s "(cached) " >&6 7206 else $as_nop 7207 if test -n "$LEX"; then 7208 ac_cv_prog_LEX="$LEX" # Let the user override the test. 7209 else 7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7211 for as_dir in $PATH 7212 do 7213 IFS=$as_save_IFS 7214 case $as_dir in #((( 7215 '') as_dir=./ ;; 7216 */) ;; 7217 *) as_dir=$as_dir/ ;; 7218 esac 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_LEX="$ac_prog" 7222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225 done 7226 done 7227 IFS=$as_save_IFS 7228 7229 fi 7230 fi 7231 LEX=$ac_cv_prog_LEX 7232 if test -n "$LEX"; then 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 7234 printf "%s\n" "$LEX" >&6; } 7235 else 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237 printf "%s\n" "no" >&6; } 7238 fi 7239 7240 7241 test -n "$LEX" && break 7242 done 7243 test -n "$LEX" || LEX=":" 7244 7245 if test "x$LEX" != "x:"; then 7246 cat >conftest.l <<_ACEOF 7247 %{ 7248 #ifdef __cplusplus 7249 extern "C" 7250 #endif 7251 int yywrap(void); 7252 %} 7253 %% 7254 a { ECHO; } 7255 b { REJECT; } 7256 c { yymore (); } 7257 d { yyless (1); } 7258 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 7259 #ifdef __cplusplus 7260 yyless ((yyinput () != 0)); 7261 #else 7262 yyless ((input () != 0)); 7263 #endif 7264 } 7265 f { unput (yytext[0]); } 7266 . { BEGIN INITIAL; } 7267 %% 7268 #ifdef YYTEXT_POINTER 7269 extern char *yytext; 7270 #endif 7271 int 7272 yywrap (void) 7273 { 7274 return 1; 7275 } 7276 int 7277 main (void) 7278 { 7279 return ! yylex (); 7280 } 7281 _ACEOF 7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 7283 printf %s "checking for lex output file root... " >&6; } 7284 if test ${ac_cv_prog_lex_root+y} 7285 then : 7286 printf %s "(cached) " >&6 7287 else $as_nop 7288 7289 ac_cv_prog_lex_root=unknown 7290 { { ac_try="$LEX conftest.l" 7291 case "(($ac_try" in 7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7293 *) ac_try_echo=$ac_try;; 7294 esac 7295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7296 printf "%s\n" "$ac_try_echo"; } >&5 7297 (eval "$LEX conftest.l") 2>&5 7298 ac_status=$? 7299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7300 test $ac_status = 0; } && 7301 if test -f lex.yy.c; then 7302 ac_cv_prog_lex_root=lex.yy 7303 elif test -f lexyy.c; then 7304 ac_cv_prog_lex_root=lexyy 7305 fi 7306 fi 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 7308 printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 7309 if test "$ac_cv_prog_lex_root" = unknown 7310 then : 7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 7312 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 7313 LEX=: LEXLIB= 7314 fi 7315 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 7316 7317 if test ${LEXLIB+y} 7318 then : 7319 7320 else $as_nop 7321 7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 7323 printf %s "checking for lex library... " >&6; } 7324 if test ${ac_cv_lib_lex+y} 7325 then : 7326 printf %s "(cached) " >&6 7327 else $as_nop 7328 7329 ac_save_LIBS="$LIBS" 7330 ac_found=false 7331 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 7332 case $ac_cv_lib_lex in #( 7333 'none needed') : 7334 ;; #( 7335 'not found') : 7336 break ;; #( 7337 *) : 7338 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 7339 *) : 7340 ;; 7341 esac 7342 7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344 /* end confdefs.h. */ 7345 `cat $LEX_OUTPUT_ROOT.c` 7346 _ACEOF 7347 if ac_fn_c_try_link "$LINENO" 7348 then : 7349 ac_found=: 7350 fi 7351 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7352 conftest$ac_exeext conftest.$ac_ext 7353 if $ac_found; then 7354 break 7355 fi 7356 done 7357 LIBS="$ac_save_LIBS" 7358 7359 fi 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 7361 printf "%s\n" "$ac_cv_lib_lex" >&6; } 7362 if test "$ac_cv_lib_lex" = 'not found' 7363 then : 7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 7365 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 7366 LEX=: LEXLIB= 7367 elif test "$ac_cv_lib_lex" = 'none needed' 7368 then : 7369 LEXLIB='' 7370 else $as_nop 7371 LEXLIB=$ac_cv_lib_lex 7372 fi 7373 7374 fi 7375 7376 7377 if test "$LEX" != : 7378 then : 7379 7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 7381 printf %s "checking whether yytext is a pointer... " >&6; } 7382 if test ${ac_cv_prog_lex_yytext_pointer+y} 7383 then : 7384 printf %s "(cached) " >&6 7385 else $as_nop 7386 # POSIX says lex can declare yytext either as a pointer or an array; the 7387 # default is implementation-dependent. Figure out which it is, since 7388 # not all implementations provide the %pointer and %array declarations. 7389 ac_cv_prog_lex_yytext_pointer=no 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391 /* end confdefs.h. */ 7392 7393 #define YYTEXT_POINTER 1 7394 `cat $LEX_OUTPUT_ROOT.c` 7395 _ACEOF 7396 if ac_fn_c_try_compile "$LINENO" 7397 then : 7398 ac_cv_prog_lex_yytext_pointer=yes 7399 fi 7400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7401 7402 fi 7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 7404 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 7405 if test $ac_cv_prog_lex_yytext_pointer = yes; then 7406 7407 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 7408 7409 fi 7410 7411 fi 7412 rm -f conftest.l $LEX_OUTPUT_ROOT.c 7413 7414 fi 7415 if test "$LEX" != "" -a "$LEX" != ":"; then 7416 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 7418 printf %s "checking for yylex_destroy... " >&6; } 7419 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 7420 7421 printf "%s\n" "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 7422 7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7424 printf "%s\n" "yes" >&6; } 7425 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426 printf "%s\n" "no" >&6; }; 7427 LEX=":" 7428 fi 7429 7430 fi 7431 if test "$LEX" != "" -a "$LEX" != ":"; then 7432 7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 7434 printf %s "checking for lex %option... " >&6; } 7435 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 7436 %option nounput 7437 %% 7438 EOF 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7440 printf "%s\n" "yes" >&6; } 7441 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7442 printf "%s\n" "no" >&6; }; 7443 LEX=":" 7444 fi 7445 7446 fi 7447 if test "$LEX" = "" -o "$LEX" = ":"; then 7448 if test ! -f util/configlexer.c; then 7449 as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5 7450 fi 7451 fi 7452 for ac_prog in 'bison -y' byacc 7453 do 7454 # Extract the first word of "$ac_prog", so it can be a program name with args. 7455 set dummy $ac_prog; ac_word=$2 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7457 printf %s "checking for $ac_word... " >&6; } 7458 if test ${ac_cv_prog_YACC+y} 7459 then : 7460 printf %s "(cached) " >&6 7461 else $as_nop 7462 if test -n "$YACC"; then 7463 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7464 else 7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466 for as_dir in $PATH 7467 do 7468 IFS=$as_save_IFS 7469 case $as_dir in #((( 7470 '') as_dir=./ ;; 7471 */) ;; 7472 *) as_dir=$as_dir/ ;; 7473 esac 7474 for ac_exec_ext in '' $ac_executable_extensions; do 7475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7476 ac_cv_prog_YACC="$ac_prog" 7477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7478 break 2 7479 fi 7480 done 7481 done 7482 IFS=$as_save_IFS 7483 7484 fi 7485 fi 7486 YACC=$ac_cv_prog_YACC 7487 if test -n "$YACC"; then 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7489 printf "%s\n" "$YACC" >&6; } 7490 else 7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7492 printf "%s\n" "no" >&6; } 7493 fi 7494 7495 7496 test -n "$YACC" && break 7497 done 7498 test -n "$YACC" || YACC="yacc" 7499 7500 if test "$YACC" = "" -o "$YACC" = ":"; then 7501 if test ! -f util/configparser.c; then 7502 as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5 7503 fi 7504 fi 7505 # Extract the first word of "doxygen", so it can be a program name with args. 7506 set dummy doxygen; ac_word=$2 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508 printf %s "checking for $ac_word... " >&6; } 7509 if test ${ac_cv_prog_doxygen+y} 7510 then : 7511 printf %s "(cached) " >&6 7512 else $as_nop 7513 if test -n "$doxygen"; then 7514 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 7515 else 7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517 for as_dir in $PATH 7518 do 7519 IFS=$as_save_IFS 7520 case $as_dir in #((( 7521 '') as_dir=./ ;; 7522 */) ;; 7523 *) as_dir=$as_dir/ ;; 7524 esac 7525 for ac_exec_ext in '' $ac_executable_extensions; do 7526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7527 ac_cv_prog_doxygen="doxygen" 7528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7529 break 2 7530 fi 7531 done 7532 done 7533 IFS=$as_save_IFS 7534 7535 fi 7536 fi 7537 doxygen=$ac_cv_prog_doxygen 7538 if test -n "$doxygen"; then 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 7540 printf "%s\n" "$doxygen" >&6; } 7541 else 7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543 printf "%s\n" "no" >&6; } 7544 fi 7545 7546 7547 if test -n "$ac_tool_prefix"; then 7548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7549 set dummy ${ac_tool_prefix}strip; ac_word=$2 7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551 printf %s "checking for $ac_word... " >&6; } 7552 if test ${ac_cv_prog_STRIP+y} 7553 then : 7554 printf %s "(cached) " >&6 7555 else $as_nop 7556 if test -n "$STRIP"; then 7557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7558 else 7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7560 for as_dir in $PATH 7561 do 7562 IFS=$as_save_IFS 7563 case $as_dir in #((( 7564 '') as_dir=./ ;; 7565 */) ;; 7566 *) as_dir=$as_dir/ ;; 7567 esac 7568 for ac_exec_ext in '' $ac_executable_extensions; do 7569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7570 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7572 break 2 7573 fi 7574 done 7575 done 7576 IFS=$as_save_IFS 7577 7578 fi 7579 fi 7580 STRIP=$ac_cv_prog_STRIP 7581 if test -n "$STRIP"; then 7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7583 printf "%s\n" "$STRIP" >&6; } 7584 else 7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7586 printf "%s\n" "no" >&6; } 7587 fi 7588 7589 7590 fi 7591 if test -z "$ac_cv_prog_STRIP"; then 7592 ac_ct_STRIP=$STRIP 7593 # Extract the first word of "strip", so it can be a program name with args. 7594 set dummy strip; ac_word=$2 7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7596 printf %s "checking for $ac_word... " >&6; } 7597 if test ${ac_cv_prog_ac_ct_STRIP+y} 7598 then : 7599 printf %s "(cached) " >&6 7600 else $as_nop 7601 if test -n "$ac_ct_STRIP"; then 7602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7603 else 7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605 for as_dir in $PATH 7606 do 7607 IFS=$as_save_IFS 7608 case $as_dir in #((( 7609 '') as_dir=./ ;; 7610 */) ;; 7611 *) as_dir=$as_dir/ ;; 7612 esac 7613 for ac_exec_ext in '' $ac_executable_extensions; do 7614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7615 ac_cv_prog_ac_ct_STRIP="strip" 7616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7617 break 2 7618 fi 7619 done 7620 done 7621 IFS=$as_save_IFS 7622 7623 fi 7624 fi 7625 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7626 if test -n "$ac_ct_STRIP"; then 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7628 printf "%s\n" "$ac_ct_STRIP" >&6; } 7629 else 7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7631 printf "%s\n" "no" >&6; } 7632 fi 7633 7634 if test "x$ac_ct_STRIP" = x; then 7635 STRIP="" 7636 else 7637 case $cross_compiling:$ac_tool_warned in 7638 yes:) 7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7641 ac_tool_warned=yes ;; 7642 esac 7643 STRIP=$ac_ct_STRIP 7644 fi 7645 else 7646 STRIP="$ac_cv_prog_STRIP" 7647 fi 7648 7649 7650 7651 7652 # Make sure we can run config.sub. 7653 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 7654 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 7655 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7657 printf %s "checking build system type... " >&6; } 7658 if test ${ac_cv_build+y} 7659 then : 7660 printf %s "(cached) " >&6 7661 else $as_nop 7662 ac_build_alias=$build_alias 7663 test "x$ac_build_alias" = x && 7664 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 7665 test "x$ac_build_alias" = x && 7666 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7667 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 7668 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 7669 7670 fi 7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7672 printf "%s\n" "$ac_cv_build" >&6; } 7673 case $ac_cv_build in 7674 *-*-*) ;; 7675 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7676 esac 7677 build=$ac_cv_build 7678 ac_save_IFS=$IFS; IFS='-' 7679 set x $ac_cv_build 7680 shift 7681 build_cpu=$1 7682 build_vendor=$2 7683 shift; shift 7684 # Remember, the first character of IFS is used to create $*, 7685 # except with old shells: 7686 build_os=$* 7687 IFS=$ac_save_IFS 7688 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7689 7690 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7692 printf %s "checking host system type... " >&6; } 7693 if test ${ac_cv_host+y} 7694 then : 7695 printf %s "(cached) " >&6 7696 else $as_nop 7697 if test "x$host_alias" = x; then 7698 ac_cv_host=$ac_cv_build 7699 else 7700 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7701 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7702 fi 7703 7704 fi 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7706 printf "%s\n" "$ac_cv_host" >&6; } 7707 case $ac_cv_host in 7708 *-*-*) ;; 7709 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7710 esac 7711 host=$ac_cv_host 7712 ac_save_IFS=$IFS; IFS='-' 7713 set x $ac_cv_host 7714 shift 7715 host_cpu=$1 7716 host_vendor=$2 7717 shift; shift 7718 # Remember, the first character of IFS is used to create $*, 7719 # except with old shells: 7720 host_os=$* 7721 IFS=$ac_save_IFS 7722 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7723 7724 7725 7726 # skip these tests, we do not need them. 7727 7728 7729 7730 7731 7732 7733 7734 7735 # always use ./libtool unless override from commandline (libtool=mylibtool) 7736 if test -z "$libtool"; then 7737 libtool="./libtool" 7738 fi 7739 7740 # avoid libtool max commandline length test on systems that fork slowly. 7741 7742 if echo "$host_os" | grep "sunos4" >/dev/null; then 7743 lt_cv_sys_max_cmd_len=32750; 7744 fi 7745 if test -n "$ac_tool_prefix"; then 7746 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7747 set dummy ${ac_tool_prefix}ar; ac_word=$2 7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7749 printf %s "checking for $ac_word... " >&6; } 7750 if test ${ac_cv_path_AR+y} 7751 then : 7752 printf %s "(cached) " >&6 7753 else $as_nop 7754 case $AR in 7755 [\\/]* | ?:[\\/]*) 7756 ac_cv_path_AR="$AR" # Let the user override the test with a path. 7757 ;; 7758 *) 7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7760 for as_dir in $PATH 7761 do 7762 IFS=$as_save_IFS 7763 case $as_dir in #((( 7764 '') as_dir=./ ;; 7765 */) ;; 7766 *) as_dir=$as_dir/ ;; 7767 esac 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7770 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 7771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774 done 7775 done 7776 IFS=$as_save_IFS 7777 7778 ;; 7779 esac 7780 fi 7781 AR=$ac_cv_path_AR 7782 if test -n "$AR"; then 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7784 printf "%s\n" "$AR" >&6; } 7785 else 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7787 printf "%s\n" "no" >&6; } 7788 fi 7789 7790 7791 fi 7792 if test -z "$ac_cv_path_AR"; then 7793 ac_pt_AR=$AR 7794 # Extract the first word of "ar", so it can be a program name with args. 7795 set dummy ar; ac_word=$2 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7797 printf %s "checking for $ac_word... " >&6; } 7798 if test ${ac_cv_path_ac_pt_AR+y} 7799 then : 7800 printf %s "(cached) " >&6 7801 else $as_nop 7802 case $ac_pt_AR in 7803 [\\/]* | ?:[\\/]*) 7804 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 7805 ;; 7806 *) 7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7808 for as_dir in $PATH 7809 do 7810 IFS=$as_save_IFS 7811 case $as_dir in #((( 7812 '') as_dir=./ ;; 7813 */) ;; 7814 *) as_dir=$as_dir/ ;; 7815 esac 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7818 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822 done 7823 done 7824 IFS=$as_save_IFS 7825 7826 ;; 7827 esac 7828 fi 7829 ac_pt_AR=$ac_cv_path_ac_pt_AR 7830 if test -n "$ac_pt_AR"; then 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 7832 printf "%s\n" "$ac_pt_AR" >&6; } 7833 else 7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7835 printf "%s\n" "no" >&6; } 7836 fi 7837 7838 if test "x$ac_pt_AR" = x; then 7839 AR="false" 7840 else 7841 case $cross_compiling:$ac_tool_warned in 7842 yes:) 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7845 ac_tool_warned=yes ;; 7846 esac 7847 AR=$ac_pt_AR 7848 fi 7849 else 7850 AR="$ac_cv_path_AR" 7851 fi 7852 7853 if test $AR = false; then 7854 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 7855 fi 7856 7857 7858 case `pwd` in 7859 *\ * | *\ *) 7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7861 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7862 esac 7863 7864 7865 7866 macro_version='2.5.4' 7867 macro_revision='2.5.4' 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 ltmain=$ac_aux_dir/ltmain.sh 7883 7884 # Backslashify metacharacters that are still active within 7885 # double-quoted strings. 7886 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7887 7888 # Same as above, but do not quote variable references. 7889 double_quote_subst='s/\(["`\\]\)/\\\1/g' 7890 7891 # Sed substitution to delay expansion of an escaped shell variable in a 7892 # double_quote_subst'ed string. 7893 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7894 7895 # Sed substitution to delay expansion of an escaped single quote. 7896 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7897 7898 # Sed substitution to avoid accidental globbing in evaled expressions 7899 no_glob_subst='s/\*/\\\*/g' 7900 7901 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7902 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7904 7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7906 printf %s "checking how to print strings... " >&6; } 7907 # Test print first, because it will be a builtin if present. 7908 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7909 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7910 ECHO='print -r --' 7911 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7912 ECHO='printf %s\n' 7913 else 7914 # Use this function as a fallback that always works. 7915 func_fallback_echo () 7916 { 7917 eval 'cat <<_LTECHO_EOF 7918 $1 7919 _LTECHO_EOF' 7920 } 7921 ECHO='func_fallback_echo' 7922 fi 7923 7924 # func_echo_all arg... 7925 # Invoke $ECHO with all args, space-separated. 7926 func_echo_all () 7927 { 7928 $ECHO "" 7929 } 7930 7931 case $ECHO in 7932 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7933 printf "%s\n" "printf" >&6; } ;; 7934 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7935 printf "%s\n" "print -r" >&6; } ;; 7936 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7937 printf "%s\n" "cat" >&6; } ;; 7938 esac 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7954 printf %s "checking for a sed that does not truncate output... " >&6; } 7955 if test ${ac_cv_path_SED+y} 7956 then : 7957 printf %s "(cached) " >&6 7958 else $as_nop 7959 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7960 for ac_i in 1 2 3 4 5 6 7; do 7961 ac_script="$ac_script$as_nl$ac_script" 7962 done 7963 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7964 { ac_script=; unset ac_script;} 7965 if test -z "$SED"; then 7966 ac_path_SED_found=false 7967 # Loop through the user's path and test for each of PROGNAME-LIST 7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969 for as_dir in $PATH 7970 do 7971 IFS=$as_save_IFS 7972 case $as_dir in #((( 7973 '') as_dir=./ ;; 7974 */) ;; 7975 *) as_dir=$as_dir/ ;; 7976 esac 7977 for ac_prog in sed gsed 7978 do 7979 for ac_exec_ext in '' $ac_executable_extensions; do 7980 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 7981 as_fn_executable_p "$ac_path_SED" || continue 7982 # Check for GNU ac_path_SED and select it if it is found. 7983 # Check for GNU $ac_path_SED 7984 case `"$ac_path_SED" --version 2>&1` in 7985 *GNU*) 7986 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7987 *) 7988 ac_count=0 7989 printf %s 0123456789 >"conftest.in" 7990 while : 7991 do 7992 cat "conftest.in" "conftest.in" >"conftest.tmp" 7993 mv "conftest.tmp" "conftest.in" 7994 cp "conftest.in" "conftest.nl" 7995 printf "%s\n" '' >> "conftest.nl" 7996 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7998 as_fn_arith $ac_count + 1 && ac_count=$as_val 7999 if test $ac_count -gt ${ac_path_SED_max-0}; then 8000 # Best one so far, save it but keep looking for a better one 8001 ac_cv_path_SED="$ac_path_SED" 8002 ac_path_SED_max=$ac_count 8003 fi 8004 # 10*(2^10) chars as input seems more than enough 8005 test $ac_count -gt 10 && break 8006 done 8007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8008 esac 8009 8010 $ac_path_SED_found && break 3 8011 done 8012 done 8013 done 8014 IFS=$as_save_IFS 8015 if test -z "$ac_cv_path_SED"; then 8016 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8017 fi 8018 else 8019 ac_cv_path_SED=$SED 8020 fi 8021 8022 fi 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8024 printf "%s\n" "$ac_cv_path_SED" >&6; } 8025 SED="$ac_cv_path_SED" 8026 rm -f conftest.sed 8027 8028 test -z "$SED" && SED=sed 8029 Xsed="$SED -e 1s/^X//" 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 8042 printf %s "checking for egrep... " >&6; } 8043 if test ${ac_cv_path_EGREP+y} 8044 then : 8045 printf %s "(cached) " >&6 8046 else $as_nop 8047 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 8048 then ac_cv_path_EGREP="$GREP -E" 8049 else 8050 if test -z "$EGREP"; then 8051 ac_path_EGREP_found=false 8052 # Loop through the user's path and test for each of PROGNAME-LIST 8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8055 do 8056 IFS=$as_save_IFS 8057 case $as_dir in #((( 8058 '') as_dir=./ ;; 8059 */) ;; 8060 *) as_dir=$as_dir/ ;; 8061 esac 8062 for ac_prog in egrep 8063 do 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 8066 as_fn_executable_p "$ac_path_EGREP" || continue 8067 # Check for GNU ac_path_EGREP and select it if it is found. 8068 # Check for GNU $ac_path_EGREP 8069 case `"$ac_path_EGREP" --version 2>&1` in 8070 *GNU*) 8071 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 8072 *) 8073 ac_count=0 8074 printf %s 0123456789 >"conftest.in" 8075 while : 8076 do 8077 cat "conftest.in" "conftest.in" >"conftest.tmp" 8078 mv "conftest.tmp" "conftest.in" 8079 cp "conftest.in" "conftest.nl" 8080 printf "%s\n" 'EGREP' >> "conftest.nl" 8081 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8083 as_fn_arith $ac_count + 1 && ac_count=$as_val 8084 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 8085 # Best one so far, save it but keep looking for a better one 8086 ac_cv_path_EGREP="$ac_path_EGREP" 8087 ac_path_EGREP_max=$ac_count 8088 fi 8089 # 10*(2^10) chars as input seems more than enough 8090 test $ac_count -gt 10 && break 8091 done 8092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8093 esac 8094 8095 $ac_path_EGREP_found && break 3 8096 done 8097 done 8098 done 8099 IFS=$as_save_IFS 8100 if test -z "$ac_cv_path_EGREP"; then 8101 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8102 fi 8103 else 8104 ac_cv_path_EGREP=$EGREP 8105 fi 8106 8107 fi 8108 fi 8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 8110 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 8111 EGREP="$ac_cv_path_EGREP" 8112 8113 8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8115 printf %s "checking for fgrep... " >&6; } 8116 if test ${ac_cv_path_FGREP+y} 8117 then : 8118 printf %s "(cached) " >&6 8119 else $as_nop 8120 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8121 then ac_cv_path_FGREP="$GREP -F" 8122 else 8123 if test -z "$FGREP"; then 8124 ac_path_FGREP_found=false 8125 # Loop through the user's path and test for each of PROGNAME-LIST 8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8128 do 8129 IFS=$as_save_IFS 8130 case $as_dir in #((( 8131 '') as_dir=./ ;; 8132 */) ;; 8133 *) as_dir=$as_dir/ ;; 8134 esac 8135 for ac_prog in fgrep 8136 do 8137 for ac_exec_ext in '' $ac_executable_extensions; do 8138 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 8139 as_fn_executable_p "$ac_path_FGREP" || continue 8140 # Check for GNU ac_path_FGREP and select it if it is found. 8141 # Check for GNU $ac_path_FGREP 8142 case `"$ac_path_FGREP" --version 2>&1` in 8143 *GNU*) 8144 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8145 *) 8146 ac_count=0 8147 printf %s 0123456789 >"conftest.in" 8148 while : 8149 do 8150 cat "conftest.in" "conftest.in" >"conftest.tmp" 8151 mv "conftest.tmp" "conftest.in" 8152 cp "conftest.in" "conftest.nl" 8153 printf "%s\n" 'FGREP' >> "conftest.nl" 8154 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8156 as_fn_arith $ac_count + 1 && ac_count=$as_val 8157 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8158 # Best one so far, save it but keep looking for a better one 8159 ac_cv_path_FGREP="$ac_path_FGREP" 8160 ac_path_FGREP_max=$ac_count 8161 fi 8162 # 10*(2^10) chars as input seems more than enough 8163 test $ac_count -gt 10 && break 8164 done 8165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8166 esac 8167 8168 $ac_path_FGREP_found && break 3 8169 done 8170 done 8171 done 8172 IFS=$as_save_IFS 8173 if test -z "$ac_cv_path_FGREP"; then 8174 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8175 fi 8176 else 8177 ac_cv_path_FGREP=$FGREP 8178 fi 8179 8180 fi 8181 fi 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8183 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 8184 FGREP="$ac_cv_path_FGREP" 8185 8186 8187 test -z "$GREP" && GREP=grep 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 # Check whether --with-gnu-ld was given. 8208 if test ${with_gnu_ld+y} 8209 then : 8210 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8211 else $as_nop 8212 with_gnu_ld=no 8213 fi 8214 8215 ac_prog=ld 8216 if test yes = "$GCC"; then 8217 # Check if gcc -print-prog-name=ld gives a path. 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8219 printf %s "checking for ld used by $CC... " >&6; } 8220 case $host in 8221 *-*-mingw* | *-*-windows*) 8222 # gcc leaves a trailing carriage return, which upsets mingw 8223 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8224 *) 8225 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8226 esac 8227 case $ac_prog in 8228 # Accept absolute paths. 8229 [\\/]* | ?:[\\/]*) 8230 re_direlt='/[^/][^/]*/\.\./' 8231 # Canonicalize the pathname of ld 8232 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8233 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8234 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8235 done 8236 test -z "$LD" && LD=$ac_prog 8237 ;; 8238 "") 8239 # If it fails, then pretend we aren't using GCC. 8240 ac_prog=ld 8241 ;; 8242 *) 8243 # If it is relative, then search for the first ld in PATH. 8244 with_gnu_ld=unknown 8245 ;; 8246 esac 8247 elif test yes = "$with_gnu_ld"; then 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8249 printf %s "checking for GNU ld... " >&6; } 8250 else 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8252 printf %s "checking for non-GNU ld... " >&6; } 8253 fi 8254 if test ${lt_cv_path_LD+y} 8255 then : 8256 printf %s "(cached) " >&6 8257 else $as_nop 8258 if test -z "$LD"; then 8259 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8260 for ac_dir in $PATH; do 8261 IFS=$lt_save_ifs 8262 test -z "$ac_dir" && ac_dir=. 8263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8264 lt_cv_path_LD=$ac_dir/$ac_prog 8265 # Check to see if the program is GNU ld. I'd rather use --version, 8266 # but apparently some variants of GNU ld only accept -v. 8267 # Break only if it was the GNU/non-GNU ld that we prefer. 8268 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8269 *GNU* | *'with BFD'*) 8270 test no != "$with_gnu_ld" && break 8271 ;; 8272 *) 8273 test yes != "$with_gnu_ld" && break 8274 ;; 8275 esac 8276 fi 8277 done 8278 IFS=$lt_save_ifs 8279 else 8280 lt_cv_path_LD=$LD # Let the user override the test with a path. 8281 fi 8282 fi 8283 8284 LD=$lt_cv_path_LD 8285 if test -n "$LD"; then 8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8287 printf "%s\n" "$LD" >&6; } 8288 else 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8290 printf "%s\n" "no" >&6; } 8291 fi 8292 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8294 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8295 if test ${lt_cv_prog_gnu_ld+y} 8296 then : 8297 printf %s "(cached) " >&6 8298 else $as_nop 8299 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8300 case `$LD -v 2>&1 </dev/null` in 8301 *GNU* | *'with BFD'*) 8302 lt_cv_prog_gnu_ld=yes 8303 ;; 8304 *) 8305 lt_cv_prog_gnu_ld=no 8306 ;; 8307 esac 8308 fi 8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8310 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8311 with_gnu_ld=$lt_cv_prog_gnu_ld 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8322 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8323 if test ${lt_cv_path_NM+y} 8324 then : 8325 printf %s "(cached) " >&6 8326 else $as_nop 8327 if test -n "$NM"; then 8328 # Let the user override the test. 8329 lt_cv_path_NM=$NM 8330 else 8331 lt_nm_to_check=${ac_tool_prefix}nm 8332 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8333 lt_nm_to_check="$lt_nm_to_check nm" 8334 fi 8335 for lt_tmp_nm in $lt_nm_to_check; do 8336 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8337 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8338 IFS=$lt_save_ifs 8339 test -z "$ac_dir" && ac_dir=. 8340 tmp_nm=$ac_dir/$lt_tmp_nm 8341 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8342 # Check to see if the nm accepts a BSD-compat flag. 8343 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8344 # nm: unknown option "B" ignored 8345 # Tru64's nm complains that /dev/null is an invalid object file 8346 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8347 case $build_os in 8348 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 8349 *) lt_bad_file=/dev/null ;; 8350 esac 8351 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 8352 *$lt_bad_file* | *'Invalid file or object type'*) 8353 lt_cv_path_NM="$tmp_nm -B" 8354 break 2 8355 ;; 8356 *) 8357 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 8358 */dev/null*) 8359 lt_cv_path_NM="$tmp_nm -p" 8360 break 2 8361 ;; 8362 *) 8363 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8364 continue # so that we can try to find one that supports BSD flags 8365 ;; 8366 esac 8367 ;; 8368 esac 8369 fi 8370 done 8371 IFS=$lt_save_ifs 8372 done 8373 : ${lt_cv_path_NM=no} 8374 fi 8375 fi 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8377 printf "%s\n" "$lt_cv_path_NM" >&6; } 8378 if test no != "$lt_cv_path_NM"; then 8379 NM=$lt_cv_path_NM 8380 else 8381 # Didn't find any BSD compatible name lister, look for dumpbin. 8382 if test -n "$DUMPBIN"; then : 8383 # Let the user override the test. 8384 else 8385 if test -n "$ac_tool_prefix"; then 8386 for ac_prog in dumpbin "link -dump" 8387 do 8388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391 printf %s "checking for $ac_word... " >&6; } 8392 if test ${ac_cv_prog_DUMPBIN+y} 8393 then : 8394 printf %s "(cached) " >&6 8395 else $as_nop 8396 if test -n "$DUMPBIN"; then 8397 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8398 else 8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8400 for as_dir in $PATH 8401 do 8402 IFS=$as_save_IFS 8403 case $as_dir in #((( 8404 '') as_dir=./ ;; 8405 */) ;; 8406 *) as_dir=$as_dir/ ;; 8407 esac 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414 done 8415 done 8416 IFS=$as_save_IFS 8417 8418 fi 8419 fi 8420 DUMPBIN=$ac_cv_prog_DUMPBIN 8421 if test -n "$DUMPBIN"; then 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8423 printf "%s\n" "$DUMPBIN" >&6; } 8424 else 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8426 printf "%s\n" "no" >&6; } 8427 fi 8428 8429 8430 test -n "$DUMPBIN" && break 8431 done 8432 fi 8433 if test -z "$DUMPBIN"; then 8434 ac_ct_DUMPBIN=$DUMPBIN 8435 for ac_prog in dumpbin "link -dump" 8436 do 8437 # Extract the first word of "$ac_prog", so it can be a program name with args. 8438 set dummy $ac_prog; ac_word=$2 8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8440 printf %s "checking for $ac_word... " >&6; } 8441 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 8442 then : 8443 printf %s "(cached) " >&6 8444 else $as_nop 8445 if test -n "$ac_ct_DUMPBIN"; then 8446 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8447 else 8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8449 for as_dir in $PATH 8450 do 8451 IFS=$as_save_IFS 8452 case $as_dir in #((( 8453 '') as_dir=./ ;; 8454 */) ;; 8455 *) as_dir=$as_dir/ ;; 8456 esac 8457 for ac_exec_ext in '' $ac_executable_extensions; do 8458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8459 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8461 break 2 8462 fi 8463 done 8464 done 8465 IFS=$as_save_IFS 8466 8467 fi 8468 fi 8469 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8470 if test -n "$ac_ct_DUMPBIN"; then 8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8472 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 8473 else 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8475 printf "%s\n" "no" >&6; } 8476 fi 8477 8478 8479 test -n "$ac_ct_DUMPBIN" && break 8480 done 8481 8482 if test "x$ac_ct_DUMPBIN" = x; then 8483 DUMPBIN=":" 8484 else 8485 case $cross_compiling:$ac_tool_warned in 8486 yes:) 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8488 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8489 ac_tool_warned=yes ;; 8490 esac 8491 DUMPBIN=$ac_ct_DUMPBIN 8492 fi 8493 fi 8494 8495 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 8496 *COFF*) 8497 DUMPBIN="$DUMPBIN -symbols -headers" 8498 ;; 8499 *) 8500 DUMPBIN=: 8501 ;; 8502 esac 8503 fi 8504 8505 if test : != "$DUMPBIN"; then 8506 NM=$DUMPBIN 8507 fi 8508 fi 8509 test -z "$NM" && NM=nm 8510 8511 8512 8513 8514 8515 8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8517 printf %s "checking the name lister ($NM) interface... " >&6; } 8518 if test ${lt_cv_nm_interface+y} 8519 then : 8520 printf %s "(cached) " >&6 8521 else $as_nop 8522 lt_cv_nm_interface="BSD nm" 8523 echo "int some_variable = 0;" > conftest.$ac_ext 8524 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8525 (eval "$ac_compile" 2>conftest.err) 8526 cat conftest.err >&5 8527 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8528 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8529 cat conftest.err >&5 8530 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8531 cat conftest.out >&5 8532 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8533 lt_cv_nm_interface="MS dumpbin" 8534 fi 8535 rm -f conftest* 8536 fi 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8538 printf "%s\n" "$lt_cv_nm_interface" >&6; } 8539 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8541 printf %s "checking whether ln -s works... " >&6; } 8542 LN_S=$as_ln_s 8543 if test "$LN_S" = "ln -s"; then 8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8545 printf "%s\n" "yes" >&6; } 8546 else 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8548 printf "%s\n" "no, using $LN_S" >&6; } 8549 fi 8550 8551 # find the maximum length of command line arguments 8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8553 printf %s "checking the maximum length of command line arguments... " >&6; } 8554 if test ${lt_cv_sys_max_cmd_len+y} 8555 then : 8556 printf %s "(cached) " >&6 8557 else $as_nop 8558 i=0 8559 teststring=ABCD 8560 8561 case $build_os in 8562 msdosdjgpp*) 8563 # On DJGPP, this test can blow up pretty badly due to problems in libc 8564 # (any single argument exceeding 2000 bytes causes a buffer overrun 8565 # during glob expansion). Even if it were fixed, the result of this 8566 # check would be larger than it should be. 8567 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8568 ;; 8569 8570 gnu* | ironclad*) 8571 # Under GNU Hurd and Ironclad, this test is not required because there 8572 # is no limit to the length of command line arguments. 8573 # Libtool will interpret -1 as no limit whatsoever 8574 lt_cv_sys_max_cmd_len=-1; 8575 ;; 8576 8577 cygwin* | mingw* | windows* | cegcc*) 8578 # On Win9x/ME, this test blows up -- it succeeds, but takes 8579 # about 5 minutes as the teststring grows exponentially. 8580 # Worse, since 9x/ME are not pre-emptively multitasking, 8581 # you end up with a "frozen" computer, even though with patience 8582 # the test eventually succeeds (with a max line length of 256k). 8583 # Instead, let's just punt: use the minimum linelength reported by 8584 # all of the supported platforms: 8192 (on NT/2K/XP). 8585 lt_cv_sys_max_cmd_len=8192; 8586 ;; 8587 8588 mint*) 8589 # On MiNT this can take a long time and run out of memory. 8590 lt_cv_sys_max_cmd_len=8192; 8591 ;; 8592 8593 amigaos*) 8594 # On AmigaOS with pdksh, this test takes hours, literally. 8595 # So we just punt and use a minimum line length of 8192. 8596 lt_cv_sys_max_cmd_len=8192; 8597 ;; 8598 8599 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 8600 # This has been around since 386BSD, at least. Likely further. 8601 if test -x /sbin/sysctl; then 8602 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8603 elif test -x /usr/sbin/sysctl; then 8604 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8605 else 8606 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8607 fi 8608 # And add a safety zone 8609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8611 ;; 8612 8613 interix*) 8614 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8615 lt_cv_sys_max_cmd_len=196608 8616 ;; 8617 8618 os2*) 8619 # The test takes a long time on OS/2. 8620 lt_cv_sys_max_cmd_len=8192 8621 ;; 8622 8623 osf*) 8624 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8625 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8626 # nice to cause kernel panics so lets avoid the loop below. 8627 # First set a reasonable default. 8628 lt_cv_sys_max_cmd_len=16384 8629 # 8630 if test -x /sbin/sysconfig; then 8631 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8632 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8633 esac 8634 fi 8635 ;; 8636 sco3.2v5*) 8637 lt_cv_sys_max_cmd_len=102400 8638 ;; 8639 sysv5* | sco5v6* | sysv4.2uw2*) 8640 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8641 if test -n "$kargmax"; then 8642 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 8643 else 8644 lt_cv_sys_max_cmd_len=32768 8645 fi 8646 ;; 8647 *) 8648 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8649 if test -n "$lt_cv_sys_max_cmd_len" && \ 8650 test undefined != "$lt_cv_sys_max_cmd_len"; then 8651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8653 else 8654 # Make teststring a little bigger before we do anything with it. 8655 # a 1K string should be a reasonable start. 8656 for i in 1 2 3 4 5 6 7 8; do 8657 teststring=$teststring$teststring 8658 done 8659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8660 # If test is not a shell built-in, we'll probably end up computing a 8661 # maximum length that is only half of the actual maximum length, but 8662 # we can't tell. 8663 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8664 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8665 test 17 != "$i" # 1/2 MB should be enough 8666 do 8667 i=`expr $i + 1` 8668 teststring=$teststring$teststring 8669 done 8670 # Only check the string length outside the loop. 8671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8672 teststring= 8673 # Add a significant safety factor because C++ compilers can tack on 8674 # massive amounts of additional arguments before passing them to the 8675 # linker. It appears as though 1/2 is a usable value. 8676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8677 fi 8678 ;; 8679 esac 8680 8681 fi 8682 8683 if test -n "$lt_cv_sys_max_cmd_len"; then 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8685 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 8686 else 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 8688 printf "%s\n" "none" >&6; } 8689 fi 8690 max_cmd_len=$lt_cv_sys_max_cmd_len 8691 8692 8693 8694 8695 8696 8697 : ${CP="cp -f"} 8698 : ${MV="mv -f"} 8699 : ${RM="rm -f"} 8700 8701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8702 lt_unset=unset 8703 else 8704 lt_unset=false 8705 fi 8706 8707 8708 8709 8710 8711 # test EBCDIC or ASCII 8712 case `echo X|tr X '\101'` in 8713 A) # ASCII based system 8714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8715 lt_SP2NL='tr \040 \012' 8716 lt_NL2SP='tr \015\012 \040\040' 8717 ;; 8718 *) # EBCDIC based system 8719 lt_SP2NL='tr \100 \n' 8720 lt_NL2SP='tr \r\n \100\100' 8721 ;; 8722 esac 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8733 printf %s "checking how to convert $build file names to $host format... " >&6; } 8734 if test ${lt_cv_to_host_file_cmd+y} 8735 then : 8736 printf %s "(cached) " >&6 8737 else $as_nop 8738 case $host in 8739 *-*-mingw* ) 8740 case $build in 8741 *-*-mingw* | *-*-windows* ) # actually msys 8742 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8743 ;; 8744 *-*-cygwin* ) 8745 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8746 ;; 8747 * ) # otherwise, assume *nix 8748 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8749 ;; 8750 esac 8751 ;; 8752 *-*-cygwin* ) 8753 case $build in 8754 *-*-mingw* | *-*-windows* ) # actually msys 8755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8756 ;; 8757 *-*-cygwin* ) 8758 lt_cv_to_host_file_cmd=func_convert_file_noop 8759 ;; 8760 * ) # otherwise, assume *nix 8761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8762 ;; 8763 esac 8764 ;; 8765 * ) # unhandled hosts (and "normal" native builds) 8766 lt_cv_to_host_file_cmd=func_convert_file_noop 8767 ;; 8768 esac 8769 8770 fi 8771 8772 to_host_file_cmd=$lt_cv_to_host_file_cmd 8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8774 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 8775 8776 8777 8778 8779 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8781 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 8782 if test ${lt_cv_to_tool_file_cmd+y} 8783 then : 8784 printf %s "(cached) " >&6 8785 else $as_nop 8786 #assume ordinary cross tools, or native build. 8787 lt_cv_to_tool_file_cmd=func_convert_file_noop 8788 case $host in 8789 *-*-mingw* | *-*-windows* ) 8790 case $build in 8791 *-*-mingw* | *-*-windows* ) # actually msys 8792 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8793 ;; 8794 esac 8795 ;; 8796 esac 8797 8798 fi 8799 8800 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8802 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 8803 8804 8805 8806 8807 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8809 printf %s "checking for $LD option to reload object files... " >&6; } 8810 if test ${lt_cv_ld_reload_flag+y} 8811 then : 8812 printf %s "(cached) " >&6 8813 else $as_nop 8814 lt_cv_ld_reload_flag='-r' 8815 fi 8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8817 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 8818 reload_flag=$lt_cv_ld_reload_flag 8819 case $reload_flag in 8820 "" | " "*) ;; 8821 *) reload_flag=" $reload_flag" ;; 8822 esac 8823 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8824 case $host_os in 8825 cygwin* | mingw* | windows* | pw32* | cegcc*) 8826 if test yes != "$GCC"; then 8827 reload_cmds=false 8828 fi 8829 ;; 8830 darwin*) 8831 if test yes = "$GCC"; then 8832 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8833 else 8834 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8835 fi 8836 ;; 8837 esac 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 # Extract the first word of "file", so it can be a program name with args. 8848 set dummy file; ac_word=$2 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8850 printf %s "checking for $ac_word... " >&6; } 8851 if test ${ac_cv_prog_FILECMD+y} 8852 then : 8853 printf %s "(cached) " >&6 8854 else $as_nop 8855 if test -n "$FILECMD"; then 8856 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 8857 else 8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8859 for as_dir in $PATH 8860 do 8861 IFS=$as_save_IFS 8862 case $as_dir in #((( 8863 '') as_dir=./ ;; 8864 */) ;; 8865 *) as_dir=$as_dir/ ;; 8866 esac 8867 for ac_exec_ext in '' $ac_executable_extensions; do 8868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8869 ac_cv_prog_FILECMD="file" 8870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8871 break 2 8872 fi 8873 done 8874 done 8875 IFS=$as_save_IFS 8876 8877 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 8878 fi 8879 fi 8880 FILECMD=$ac_cv_prog_FILECMD 8881 if test -n "$FILECMD"; then 8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 8883 printf "%s\n" "$FILECMD" >&6; } 8884 else 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8886 printf "%s\n" "no" >&6; } 8887 fi 8888 8889 8890 8891 8892 8893 8894 8895 8896 if test -n "$ac_tool_prefix"; then 8897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8898 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8900 printf %s "checking for $ac_word... " >&6; } 8901 if test ${ac_cv_prog_OBJDUMP+y} 8902 then : 8903 printf %s "(cached) " >&6 8904 else $as_nop 8905 if test -n "$OBJDUMP"; then 8906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8907 else 8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8909 for as_dir in $PATH 8910 do 8911 IFS=$as_save_IFS 8912 case $as_dir in #((( 8913 '') as_dir=./ ;; 8914 */) ;; 8915 *) as_dir=$as_dir/ ;; 8916 esac 8917 for ac_exec_ext in '' $ac_executable_extensions; do 8918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8921 break 2 8922 fi 8923 done 8924 done 8925 IFS=$as_save_IFS 8926 8927 fi 8928 fi 8929 OBJDUMP=$ac_cv_prog_OBJDUMP 8930 if test -n "$OBJDUMP"; then 8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8932 printf "%s\n" "$OBJDUMP" >&6; } 8933 else 8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8935 printf "%s\n" "no" >&6; } 8936 fi 8937 8938 8939 fi 8940 if test -z "$ac_cv_prog_OBJDUMP"; then 8941 ac_ct_OBJDUMP=$OBJDUMP 8942 # Extract the first word of "objdump", so it can be a program name with args. 8943 set dummy objdump; ac_word=$2 8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8945 printf %s "checking for $ac_word... " >&6; } 8946 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 8947 then : 8948 printf %s "(cached) " >&6 8949 else $as_nop 8950 if test -n "$ac_ct_OBJDUMP"; then 8951 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8952 else 8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8954 for as_dir in $PATH 8955 do 8956 IFS=$as_save_IFS 8957 case $as_dir in #((( 8958 '') as_dir=./ ;; 8959 */) ;; 8960 *) as_dir=$as_dir/ ;; 8961 esac 8962 for ac_exec_ext in '' $ac_executable_extensions; do 8963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8964 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8966 break 2 8967 fi 8968 done 8969 done 8970 IFS=$as_save_IFS 8971 8972 fi 8973 fi 8974 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8975 if test -n "$ac_ct_OBJDUMP"; then 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8977 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 8978 else 8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980 printf "%s\n" "no" >&6; } 8981 fi 8982 8983 if test "x$ac_ct_OBJDUMP" = x; then 8984 OBJDUMP="false" 8985 else 8986 case $cross_compiling:$ac_tool_warned in 8987 yes:) 8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8990 ac_tool_warned=yes ;; 8991 esac 8992 OBJDUMP=$ac_ct_OBJDUMP 8993 fi 8994 else 8995 OBJDUMP="$ac_cv_prog_OBJDUMP" 8996 fi 8997 8998 test -z "$OBJDUMP" && OBJDUMP=objdump 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9009 printf %s "checking how to recognize dependent libraries... " >&6; } 9010 if test ${lt_cv_deplibs_check_method+y} 9011 then : 9012 printf %s "(cached) " >&6 9013 else $as_nop 9014 lt_cv_file_magic_cmd='$MAGIC_CMD' 9015 lt_cv_file_magic_test_file= 9016 lt_cv_deplibs_check_method='unknown' 9017 # Need to set the preceding variable on all platforms that support 9018 # interlibrary dependencies. 9019 # 'none' -- dependencies not supported. 9020 # 'unknown' -- same as none, but documents that we really don't know. 9021 # 'pass_all' -- all dependencies passed with no checks. 9022 # 'file_magic [[regex]]' -- check by looking for files in library path 9023 # that responds to the $file_magic_cmd with a given extended regex. 9024 # If you have 'file' or equivalent on your system and you're not sure 9025 # whether 'pass_all' will *always* work, you probably want this one. 9026 9027 case $host_os in 9028 aix[4-9]*) 9029 lt_cv_deplibs_check_method=pass_all 9030 ;; 9031 9032 beos*) 9033 lt_cv_deplibs_check_method=pass_all 9034 ;; 9035 9036 bsdi[45]*) 9037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9038 lt_cv_file_magic_cmd='$FILECMD -L' 9039 lt_cv_file_magic_test_file=/shlib/libc.so 9040 ;; 9041 9042 cygwin*) 9043 # func_win32_libid is a shell function defined in ltmain.sh 9044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9045 lt_cv_file_magic_cmd='func_win32_libid' 9046 ;; 9047 9048 mingw* | windows* | pw32*) 9049 # Base MSYS/MinGW do not provide the 'file' command needed by 9050 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9051 # unless we find 'file', for example because we are cross-compiling. 9052 if ( file / ) >/dev/null 2>&1; then 9053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9054 lt_cv_file_magic_cmd='func_win32_libid' 9055 else 9056 # Keep this pattern in sync with the one in func_win32_libid. 9057 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 9058 lt_cv_file_magic_cmd='$OBJDUMP -f' 9059 fi 9060 ;; 9061 9062 cegcc*) 9063 # use the weaker test based on 'objdump'. See mingw*. 9064 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9065 lt_cv_file_magic_cmd='$OBJDUMP -f' 9066 ;; 9067 9068 darwin* | rhapsody*) 9069 lt_cv_deplibs_check_method=pass_all 9070 ;; 9071 9072 freebsd* | dragonfly* | midnightbsd*) 9073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9074 case $host_cpu in 9075 i*86 ) 9076 # Not sure whether the presence of OpenBSD here was a mistake. 9077 # Let's accept both of them until this is cleared up. 9078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9079 lt_cv_file_magic_cmd=$FILECMD 9080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9081 ;; 9082 esac 9083 else 9084 lt_cv_deplibs_check_method=pass_all 9085 fi 9086 ;; 9087 9088 haiku*) 9089 lt_cv_deplibs_check_method=pass_all 9090 ;; 9091 9092 hpux10.20* | hpux11*) 9093 lt_cv_file_magic_cmd=$FILECMD 9094 case $host_cpu in 9095 ia64*) 9096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9097 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9098 ;; 9099 hppa*64*) 9100 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]' 9101 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9102 ;; 9103 *) 9104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9105 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9106 ;; 9107 esac 9108 ;; 9109 9110 interix[3-9]*) 9111 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9113 ;; 9114 9115 irix5* | irix6* | nonstopux*) 9116 case $LD in 9117 *-32|*"-32 ") libmagic=32-bit;; 9118 *-n32|*"-n32 ") libmagic=N32;; 9119 *-64|*"-64 ") libmagic=64-bit;; 9120 *) libmagic=never-match;; 9121 esac 9122 lt_cv_deplibs_check_method=pass_all 9123 ;; 9124 9125 # This must be glibc/ELF. 9126 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9127 lt_cv_deplibs_check_method=pass_all 9128 ;; 9129 9130 *-mlibc) 9131 lt_cv_deplibs_check_method=pass_all 9132 ;; 9133 9134 netbsd* | netbsdelf*-gnu) 9135 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9137 else 9138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9139 fi 9140 ;; 9141 9142 newos6*) 9143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9144 lt_cv_file_magic_cmd=$FILECMD 9145 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9146 ;; 9147 9148 *nto* | *qnx*) 9149 lt_cv_deplibs_check_method=pass_all 9150 ;; 9151 9152 openbsd*) 9153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9155 else 9156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9157 fi 9158 ;; 9159 9160 osf3* | osf4* | osf5*) 9161 lt_cv_deplibs_check_method=pass_all 9162 ;; 9163 9164 rdos*) 9165 lt_cv_deplibs_check_method=pass_all 9166 ;; 9167 9168 serenity*) 9169 lt_cv_deplibs_check_method=pass_all 9170 ;; 9171 9172 solaris*) 9173 lt_cv_deplibs_check_method=pass_all 9174 ;; 9175 9176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9177 lt_cv_deplibs_check_method=pass_all 9178 ;; 9179 9180 sysv4 | sysv4.3*) 9181 case $host_vendor in 9182 motorola) 9183 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]' 9184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9185 ;; 9186 ncr) 9187 lt_cv_deplibs_check_method=pass_all 9188 ;; 9189 sequent) 9190 lt_cv_file_magic_cmd='/bin/file' 9191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9192 ;; 9193 sni) 9194 lt_cv_file_magic_cmd='/bin/file' 9195 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9196 lt_cv_file_magic_test_file=/lib/libc.so 9197 ;; 9198 siemens) 9199 lt_cv_deplibs_check_method=pass_all 9200 ;; 9201 pc) 9202 lt_cv_deplibs_check_method=pass_all 9203 ;; 9204 esac 9205 ;; 9206 9207 tpf*) 9208 lt_cv_deplibs_check_method=pass_all 9209 ;; 9210 os2*) 9211 lt_cv_deplibs_check_method=pass_all 9212 ;; 9213 esac 9214 9215 fi 9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9217 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 9218 9219 file_magic_glob= 9220 want_nocaseglob=no 9221 if test "$build" = "$host"; then 9222 case $host_os in 9223 mingw* | windows* | pw32*) 9224 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9225 want_nocaseglob=yes 9226 else 9227 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9228 fi 9229 ;; 9230 esac 9231 fi 9232 9233 file_magic_cmd=$lt_cv_file_magic_cmd 9234 deplibs_check_method=$lt_cv_deplibs_check_method 9235 test -z "$deplibs_check_method" && deplibs_check_method=unknown 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 if test -n "$ac_tool_prefix"; then 9259 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9260 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9262 printf %s "checking for $ac_word... " >&6; } 9263 if test ${ac_cv_prog_DLLTOOL+y} 9264 then : 9265 printf %s "(cached) " >&6 9266 else $as_nop 9267 if test -n "$DLLTOOL"; then 9268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9269 else 9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9271 for as_dir in $PATH 9272 do 9273 IFS=$as_save_IFS 9274 case $as_dir in #((( 9275 '') as_dir=./ ;; 9276 */) ;; 9277 *) as_dir=$as_dir/ ;; 9278 esac 9279 for ac_exec_ext in '' $ac_executable_extensions; do 9280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9281 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9283 break 2 9284 fi 9285 done 9286 done 9287 IFS=$as_save_IFS 9288 9289 fi 9290 fi 9291 DLLTOOL=$ac_cv_prog_DLLTOOL 9292 if test -n "$DLLTOOL"; then 9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9294 printf "%s\n" "$DLLTOOL" >&6; } 9295 else 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9297 printf "%s\n" "no" >&6; } 9298 fi 9299 9300 9301 fi 9302 if test -z "$ac_cv_prog_DLLTOOL"; then 9303 ac_ct_DLLTOOL=$DLLTOOL 9304 # Extract the first word of "dlltool", so it can be a program name with args. 9305 set dummy dlltool; ac_word=$2 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9307 printf %s "checking for $ac_word... " >&6; } 9308 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9309 then : 9310 printf %s "(cached) " >&6 9311 else $as_nop 9312 if test -n "$ac_ct_DLLTOOL"; then 9313 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9314 else 9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9316 for as_dir in $PATH 9317 do 9318 IFS=$as_save_IFS 9319 case $as_dir in #((( 9320 '') as_dir=./ ;; 9321 */) ;; 9322 *) as_dir=$as_dir/ ;; 9323 esac 9324 for ac_exec_ext in '' $ac_executable_extensions; do 9325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9326 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9328 break 2 9329 fi 9330 done 9331 done 9332 IFS=$as_save_IFS 9333 9334 fi 9335 fi 9336 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9337 if test -n "$ac_ct_DLLTOOL"; then 9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9339 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9340 else 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9342 printf "%s\n" "no" >&6; } 9343 fi 9344 9345 if test "x$ac_ct_DLLTOOL" = x; then 9346 DLLTOOL="false" 9347 else 9348 case $cross_compiling:$ac_tool_warned in 9349 yes:) 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9351 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9352 ac_tool_warned=yes ;; 9353 esac 9354 DLLTOOL=$ac_ct_DLLTOOL 9355 fi 9356 else 9357 DLLTOOL="$ac_cv_prog_DLLTOOL" 9358 fi 9359 9360 test -z "$DLLTOOL" && DLLTOOL=dlltool 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9372 printf %s "checking how to associate runtime and link libraries... " >&6; } 9373 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 9374 then : 9375 printf %s "(cached) " >&6 9376 else $as_nop 9377 lt_cv_sharedlib_from_linklib_cmd='unknown' 9378 9379 case $host_os in 9380 cygwin* | mingw* | windows* | pw32* | cegcc*) 9381 # two different shell functions defined in ltmain.sh; 9382 # decide which one to use based on capabilities of $DLLTOOL 9383 case `$DLLTOOL --help 2>&1` in 9384 *--identify-strict*) 9385 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9386 ;; 9387 *) 9388 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9389 ;; 9390 esac 9391 ;; 9392 *) 9393 # fallback: assume linklib IS sharedlib 9394 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9395 ;; 9396 esac 9397 9398 fi 9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9400 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9401 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9402 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9403 9404 9405 9406 9407 9408 9409 9410 if test -n "$ac_tool_prefix"; then 9411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9414 printf %s "checking for $ac_word... " >&6; } 9415 if test ${ac_cv_prog_RANLIB+y} 9416 then : 9417 printf %s "(cached) " >&6 9418 else $as_nop 9419 if test -n "$RANLIB"; then 9420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9421 else 9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9423 for as_dir in $PATH 9424 do 9425 IFS=$as_save_IFS 9426 case $as_dir in #((( 9427 '') as_dir=./ ;; 9428 */) ;; 9429 *) as_dir=$as_dir/ ;; 9430 esac 9431 for ac_exec_ext in '' $ac_executable_extensions; do 9432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9435 break 2 9436 fi 9437 done 9438 done 9439 IFS=$as_save_IFS 9440 9441 fi 9442 fi 9443 RANLIB=$ac_cv_prog_RANLIB 9444 if test -n "$RANLIB"; then 9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9446 printf "%s\n" "$RANLIB" >&6; } 9447 else 9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9449 printf "%s\n" "no" >&6; } 9450 fi 9451 9452 9453 fi 9454 if test -z "$ac_cv_prog_RANLIB"; then 9455 ac_ct_RANLIB=$RANLIB 9456 # Extract the first word of "ranlib", so it can be a program name with args. 9457 set dummy ranlib; ac_word=$2 9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9459 printf %s "checking for $ac_word... " >&6; } 9460 if test ${ac_cv_prog_ac_ct_RANLIB+y} 9461 then : 9462 printf %s "(cached) " >&6 9463 else $as_nop 9464 if test -n "$ac_ct_RANLIB"; then 9465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9466 else 9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9468 for as_dir in $PATH 9469 do 9470 IFS=$as_save_IFS 9471 case $as_dir in #((( 9472 '') as_dir=./ ;; 9473 */) ;; 9474 *) as_dir=$as_dir/ ;; 9475 esac 9476 for ac_exec_ext in '' $ac_executable_extensions; do 9477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9478 ac_cv_prog_ac_ct_RANLIB="ranlib" 9479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9480 break 2 9481 fi 9482 done 9483 done 9484 IFS=$as_save_IFS 9485 9486 fi 9487 fi 9488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9489 if test -n "$ac_ct_RANLIB"; then 9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9491 printf "%s\n" "$ac_ct_RANLIB" >&6; } 9492 else 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494 printf "%s\n" "no" >&6; } 9495 fi 9496 9497 if test "x$ac_ct_RANLIB" = x; then 9498 RANLIB=":" 9499 else 9500 case $cross_compiling:$ac_tool_warned in 9501 yes:) 9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9504 ac_tool_warned=yes ;; 9505 esac 9506 RANLIB=$ac_ct_RANLIB 9507 fi 9508 else 9509 RANLIB="$ac_cv_prog_RANLIB" 9510 fi 9511 9512 if test -n "$ac_tool_prefix"; then 9513 for ac_prog in ar 9514 do 9515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9518 printf %s "checking for $ac_word... " >&6; } 9519 if test ${ac_cv_prog_AR+y} 9520 then : 9521 printf %s "(cached) " >&6 9522 else $as_nop 9523 if test -n "$AR"; then 9524 ac_cv_prog_AR="$AR" # Let the user override the test. 9525 else 9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9527 for as_dir in $PATH 9528 do 9529 IFS=$as_save_IFS 9530 case $as_dir in #((( 9531 '') as_dir=./ ;; 9532 */) ;; 9533 *) as_dir=$as_dir/ ;; 9534 esac 9535 for ac_exec_ext in '' $ac_executable_extensions; do 9536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9537 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9539 break 2 9540 fi 9541 done 9542 done 9543 IFS=$as_save_IFS 9544 9545 fi 9546 fi 9547 AR=$ac_cv_prog_AR 9548 if test -n "$AR"; then 9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9550 printf "%s\n" "$AR" >&6; } 9551 else 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9553 printf "%s\n" "no" >&6; } 9554 fi 9555 9556 9557 test -n "$AR" && break 9558 done 9559 fi 9560 if test -z "$AR"; then 9561 ac_ct_AR=$AR 9562 for ac_prog in ar 9563 do 9564 # Extract the first word of "$ac_prog", so it can be a program name with args. 9565 set dummy $ac_prog; ac_word=$2 9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9567 printf %s "checking for $ac_word... " >&6; } 9568 if test ${ac_cv_prog_ac_ct_AR+y} 9569 then : 9570 printf %s "(cached) " >&6 9571 else $as_nop 9572 if test -n "$ac_ct_AR"; then 9573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9574 else 9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9576 for as_dir in $PATH 9577 do 9578 IFS=$as_save_IFS 9579 case $as_dir in #((( 9580 '') as_dir=./ ;; 9581 */) ;; 9582 *) as_dir=$as_dir/ ;; 9583 esac 9584 for ac_exec_ext in '' $ac_executable_extensions; do 9585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9586 ac_cv_prog_ac_ct_AR="$ac_prog" 9587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9588 break 2 9589 fi 9590 done 9591 done 9592 IFS=$as_save_IFS 9593 9594 fi 9595 fi 9596 ac_ct_AR=$ac_cv_prog_ac_ct_AR 9597 if test -n "$ac_ct_AR"; then 9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9599 printf "%s\n" "$ac_ct_AR" >&6; } 9600 else 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9602 printf "%s\n" "no" >&6; } 9603 fi 9604 9605 9606 test -n "$ac_ct_AR" && break 9607 done 9608 9609 if test "x$ac_ct_AR" = x; then 9610 AR="false" 9611 else 9612 case $cross_compiling:$ac_tool_warned in 9613 yes:) 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9616 ac_tool_warned=yes ;; 9617 esac 9618 AR=$ac_ct_AR 9619 fi 9620 fi 9621 9622 : ${AR=ar} 9623 9624 9625 9626 9627 9628 9629 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 9630 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 9631 # higher priority because that's what people were doing historically (setting 9632 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 9633 # variable obsoleted/removed. 9634 9635 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 9636 lt_ar_flags=$AR_FLAGS 9637 9638 9639 9640 9641 9642 9643 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 9644 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 9645 9646 9647 9648 9649 9650 9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9652 printf %s "checking for archiver @FILE support... " >&6; } 9653 if test ${lt_cv_ar_at_file+y} 9654 then : 9655 printf %s "(cached) " >&6 9656 else $as_nop 9657 lt_cv_ar_at_file=no 9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9659 /* end confdefs.h. */ 9660 9661 int 9662 main (void) 9663 { 9664 9665 ; 9666 return 0; 9667 } 9668 _ACEOF 9669 if ac_fn_c_try_compile "$LINENO" 9670 then : 9671 echo conftest.$ac_objext > conftest.lst 9672 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9674 (eval $lt_ar_try) 2>&5 9675 ac_status=$? 9676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9677 test $ac_status = 0; } 9678 if test 0 -eq "$ac_status"; then 9679 # Ensure the archiver fails upon bogus file names. 9680 rm -f conftest.$ac_objext libconftest.a 9681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9682 (eval $lt_ar_try) 2>&5 9683 ac_status=$? 9684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9685 test $ac_status = 0; } 9686 if test 0 -ne "$ac_status"; then 9687 lt_cv_ar_at_file=@ 9688 fi 9689 fi 9690 rm -f conftest.* libconftest.a 9691 9692 fi 9693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9694 9695 fi 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9697 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 9698 9699 if test no = "$lt_cv_ar_at_file"; then 9700 archiver_list_spec= 9701 else 9702 archiver_list_spec=$lt_cv_ar_at_file 9703 fi 9704 9705 9706 9707 9708 9709 9710 9711 if test -n "$ac_tool_prefix"; then 9712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9713 set dummy ${ac_tool_prefix}strip; ac_word=$2 9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9715 printf %s "checking for $ac_word... " >&6; } 9716 if test ${ac_cv_prog_STRIP+y} 9717 then : 9718 printf %s "(cached) " >&6 9719 else $as_nop 9720 if test -n "$STRIP"; then 9721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9722 else 9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9724 for as_dir in $PATH 9725 do 9726 IFS=$as_save_IFS 9727 case $as_dir in #((( 9728 '') as_dir=./ ;; 9729 */) ;; 9730 *) as_dir=$as_dir/ ;; 9731 esac 9732 for ac_exec_ext in '' $ac_executable_extensions; do 9733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9734 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9736 break 2 9737 fi 9738 done 9739 done 9740 IFS=$as_save_IFS 9741 9742 fi 9743 fi 9744 STRIP=$ac_cv_prog_STRIP 9745 if test -n "$STRIP"; then 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9747 printf "%s\n" "$STRIP" >&6; } 9748 else 9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9750 printf "%s\n" "no" >&6; } 9751 fi 9752 9753 9754 fi 9755 if test -z "$ac_cv_prog_STRIP"; then 9756 ac_ct_STRIP=$STRIP 9757 # Extract the first word of "strip", so it can be a program name with args. 9758 set dummy strip; ac_word=$2 9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9760 printf %s "checking for $ac_word... " >&6; } 9761 if test ${ac_cv_prog_ac_ct_STRIP+y} 9762 then : 9763 printf %s "(cached) " >&6 9764 else $as_nop 9765 if test -n "$ac_ct_STRIP"; then 9766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9767 else 9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9769 for as_dir in $PATH 9770 do 9771 IFS=$as_save_IFS 9772 case $as_dir in #((( 9773 '') as_dir=./ ;; 9774 */) ;; 9775 *) as_dir=$as_dir/ ;; 9776 esac 9777 for ac_exec_ext in '' $ac_executable_extensions; do 9778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9779 ac_cv_prog_ac_ct_STRIP="strip" 9780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9781 break 2 9782 fi 9783 done 9784 done 9785 IFS=$as_save_IFS 9786 9787 fi 9788 fi 9789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9790 if test -n "$ac_ct_STRIP"; then 9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9792 printf "%s\n" "$ac_ct_STRIP" >&6; } 9793 else 9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9795 printf "%s\n" "no" >&6; } 9796 fi 9797 9798 if test "x$ac_ct_STRIP" = x; then 9799 STRIP=":" 9800 else 9801 case $cross_compiling:$ac_tool_warned in 9802 yes:) 9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9805 ac_tool_warned=yes ;; 9806 esac 9807 STRIP=$ac_ct_STRIP 9808 fi 9809 else 9810 STRIP="$ac_cv_prog_STRIP" 9811 fi 9812 9813 test -z "$STRIP" && STRIP=: 9814 9815 9816 9817 9818 9819 9820 9821 test -z "$RANLIB" && RANLIB=: 9822 9823 9824 9825 9826 9827 9828 # Determine commands to create old-style static archives. 9829 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9830 old_postinstall_cmds='chmod 644 $oldlib' 9831 old_postuninstall_cmds= 9832 9833 if test -n "$RANLIB"; then 9834 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9835 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9836 fi 9837 9838 case $host_os in 9839 darwin*) 9840 lock_old_archive_extraction=yes ;; 9841 *) 9842 lock_old_archive_extraction=no ;; 9843 esac 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 for ac_prog in gawk mawk nawk awk 9866 do 9867 # Extract the first word of "$ac_prog", so it can be a program name with args. 9868 set dummy $ac_prog; ac_word=$2 9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9870 printf %s "checking for $ac_word... " >&6; } 9871 if test ${ac_cv_prog_AWK+y} 9872 then : 9873 printf %s "(cached) " >&6 9874 else $as_nop 9875 if test -n "$AWK"; then 9876 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9877 else 9878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9879 for as_dir in $PATH 9880 do 9881 IFS=$as_save_IFS 9882 case $as_dir in #((( 9883 '') as_dir=./ ;; 9884 */) ;; 9885 *) as_dir=$as_dir/ ;; 9886 esac 9887 for ac_exec_ext in '' $ac_executable_extensions; do 9888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9889 ac_cv_prog_AWK="$ac_prog" 9890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9891 break 2 9892 fi 9893 done 9894 done 9895 IFS=$as_save_IFS 9896 9897 fi 9898 fi 9899 AWK=$ac_cv_prog_AWK 9900 if test -n "$AWK"; then 9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9902 printf "%s\n" "$AWK" >&6; } 9903 else 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9905 printf "%s\n" "no" >&6; } 9906 fi 9907 9908 9909 test -n "$AWK" && break 9910 done 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 # If no C compiler was specified, use CC. 9931 LTCC=${LTCC-"$CC"} 9932 9933 # If no C compiler flags were specified, use CFLAGS. 9934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9935 9936 # Allow CC to be a program name with arguments. 9937 compiler=$CC 9938 9939 9940 # Check for command to grab the raw symbol name followed by C symbol from nm. 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9942 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 9943 if test ${lt_cv_sys_global_symbol_pipe+y} 9944 then : 9945 printf %s "(cached) " >&6 9946 else $as_nop 9947 9948 # These are sane defaults that work on at least a few old systems. 9949 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9950 9951 # Character class describing NM global symbol codes. 9952 symcode='[BCDEGRST]' 9953 9954 # Regexp to match symbols that can be accessed directly from C. 9955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9956 9957 # Define system-specific variables. 9958 case $host_os in 9959 aix*) 9960 symcode='[BCDT]' 9961 ;; 9962 cygwin* | mingw* | windows* | pw32* | cegcc*) 9963 symcode='[ABCDGISTW]' 9964 ;; 9965 hpux*) 9966 if test ia64 = "$host_cpu"; then 9967 symcode='[ABCDEGRST]' 9968 fi 9969 ;; 9970 irix* | nonstopux*) 9971 symcode='[BCDEGRST]' 9972 ;; 9973 osf*) 9974 symcode='[BCDEGQRST]' 9975 ;; 9976 solaris*) 9977 symcode='[BCDRT]' 9978 ;; 9979 sco3.2v5*) 9980 symcode='[DT]' 9981 ;; 9982 sysv4.2uw2*) 9983 symcode='[DT]' 9984 ;; 9985 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9986 symcode='[ABDT]' 9987 ;; 9988 sysv4) 9989 symcode='[DFNSTU]' 9990 ;; 9991 esac 9992 9993 # If we're using GNU nm, then use its standard symbol codes. 9994 case `$NM -V 2>&1` in 9995 *GNU* | *'with BFD'*) 9996 symcode='[ABCDGIRSTW]' ;; 9997 esac 9998 9999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10000 # Gets list of data symbols to import. 10001 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 10002 # Adjust the below global symbol transforms to fixup imported variables. 10003 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10004 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10005 lt_c_name_lib_hook="\ 10006 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10007 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10008 else 10009 # Disable hooks by default. 10010 lt_cv_sys_global_symbol_to_import= 10011 lt_cdecl_hook= 10012 lt_c_name_hook= 10013 lt_c_name_lib_hook= 10014 fi 10015 10016 # Transform an extracted symbol line into a proper C declaration. 10017 # Some systems (esp. on ia64) link data and code symbols differently, 10018 # so use this general approach. 10019 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 10020 $lt_cdecl_hook\ 10021 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10022 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10023 10024 # Transform an extracted symbol line into symbol name and symbol address 10025 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 10026 $lt_c_name_hook\ 10027 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10028 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10029 10030 # Transform an extracted symbol line into symbol name with lib prefix and 10031 # symbol address. 10032 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 10033 $lt_c_name_lib_hook\ 10034 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10035 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10036 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10037 10038 # Handle CRLF in mingw tool chain 10039 opt_cr= 10040 case $build_os in 10041 mingw* | windows*) 10042 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10043 ;; 10044 esac 10045 10046 # Try without a prefix underscore, then with it. 10047 for ac_symprfx in "" "_"; do 10048 10049 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10050 symxfrm="\\1 $ac_symprfx\\2 \\2" 10051 10052 # Write the raw and C identifiers. 10053 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10054 # Fake it for dumpbin and say T for any non-static function, 10055 # D for any global variable and I for any imported variable. 10056 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 10057 # which start with @ or ?. 10058 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10059 " {last_section=section; section=\$ 3};"\ 10060 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10061 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10062 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10063 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10064 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10065 " \$ 0!~/External *\|/{next};"\ 10066 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10067 " {if(hide[section]) next};"\ 10068 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10069 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10070 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10071 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10072 " ' prfx=^$ac_symprfx" 10073 else 10074 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10075 fi 10076 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 10077 10078 # Check to see that the pipe works correctly. 10079 pipe_works=no 10080 10081 rm -f conftest* 10082 cat > conftest.$ac_ext <<_LT_EOF 10083 #ifdef __cplusplus 10084 extern "C" { 10085 #endif 10086 char nm_test_var; 10087 void nm_test_func(void); 10088 void nm_test_func(void){} 10089 #ifdef __cplusplus 10090 } 10091 #endif 10092 int main(void){nm_test_var='a';nm_test_func();return(0);} 10093 _LT_EOF 10094 10095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10096 (eval $ac_compile) 2>&5 10097 ac_status=$? 10098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10099 test $ac_status = 0; }; then 10100 # Now try to grab the symbols. 10101 nlist=conftest.nm 10102 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 10103 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 10104 # Try sorting and uniquifying the output. 10105 if sort "$nlist" | uniq > "$nlist"T; then 10106 mv -f "$nlist"T "$nlist" 10107 else 10108 rm -f "$nlist"T 10109 fi 10110 10111 # Make sure that we snagged all the symbols we need. 10112 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10113 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10114 cat <<_LT_EOF > conftest.$ac_ext 10115 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10116 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10117 /* DATA imports from DLLs on WIN32 can't be const, because runtime 10118 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10119 # define LT_DLSYM_CONST 10120 #elif defined __osf__ 10121 /* This system does not cope well with relocations in const data. */ 10122 # define LT_DLSYM_CONST 10123 #else 10124 # define LT_DLSYM_CONST const 10125 #endif 10126 10127 #ifdef __cplusplus 10128 extern "C" { 10129 #endif 10130 10131 _LT_EOF 10132 # Now generate the symbol file. 10133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10134 10135 cat <<_LT_EOF >> conftest.$ac_ext 10136 10137 /* The mapping between symbol names and symbols. */ 10138 LT_DLSYM_CONST struct { 10139 const char *name; 10140 void *address; 10141 } 10142 lt__PROGRAM__LTX_preloaded_symbols[] = 10143 { 10144 { "@PROGRAM@", (void *) 0 }, 10145 _LT_EOF 10146 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10147 cat <<\_LT_EOF >> conftest.$ac_ext 10148 {0, (void *) 0} 10149 }; 10150 10151 /* This works around a problem in FreeBSD linker */ 10152 #ifdef FREEBSD_WORKAROUND 10153 static const void *lt_preloaded_setup() { 10154 return lt__PROGRAM__LTX_preloaded_symbols; 10155 } 10156 #endif 10157 10158 #ifdef __cplusplus 10159 } 10160 #endif 10161 _LT_EOF 10162 # Now try linking the two files. 10163 mv conftest.$ac_objext conftstm.$ac_objext 10164 lt_globsym_save_LIBS=$LIBS 10165 lt_globsym_save_CFLAGS=$CFLAGS 10166 LIBS=conftstm.$ac_objext 10167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10169 (eval $ac_link) 2>&5 10170 ac_status=$? 10171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10172 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10173 pipe_works=yes 10174 fi 10175 LIBS=$lt_globsym_save_LIBS 10176 CFLAGS=$lt_globsym_save_CFLAGS 10177 else 10178 echo "cannot find nm_test_func in $nlist" >&5 10179 fi 10180 else 10181 echo "cannot find nm_test_var in $nlist" >&5 10182 fi 10183 else 10184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10185 fi 10186 else 10187 echo "$progname: failed program was:" >&5 10188 cat conftest.$ac_ext >&5 10189 fi 10190 rm -rf conftest* conftst* 10191 10192 # Do not use the global_symbol_pipe unless it works. 10193 if test yes = "$pipe_works"; then 10194 break 10195 else 10196 lt_cv_sys_global_symbol_pipe= 10197 fi 10198 done 10199 10200 fi 10201 10202 if test -z "$lt_cv_sys_global_symbol_pipe"; then 10203 lt_cv_sys_global_symbol_to_cdecl= 10204 fi 10205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10207 printf "%s\n" "failed" >&6; } 10208 else 10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10210 printf "%s\n" "ok" >&6; } 10211 fi 10212 10213 # Response file support. 10214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10215 nm_file_list_spec='@' 10216 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10217 nm_file_list_spec='@' 10218 fi 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10257 printf %s "checking for sysroot... " >&6; } 10258 10259 # Check whether --with-sysroot was given. 10260 if test ${with_sysroot+y} 10261 then : 10262 withval=$with_sysroot; 10263 else $as_nop 10264 with_sysroot=no 10265 fi 10266 10267 10268 lt_sysroot= 10269 case $with_sysroot in #( 10270 yes) 10271 if test yes = "$GCC"; then 10272 # Trim trailing / since we'll always append absolute paths and we want 10273 # to avoid //, if only for less confusing output for the user. 10274 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 10275 fi 10276 ;; #( 10277 /*) 10278 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 10279 ;; #( 10280 no|'') 10281 ;; #( 10282 *) 10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10284 printf "%s\n" "$with_sysroot" >&6; } 10285 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10286 ;; 10287 esac 10288 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10290 printf "%s\n" "${lt_sysroot:-no}" >&6; } 10291 10292 10293 10294 10295 10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10297 printf %s "checking for a working dd... " >&6; } 10298 if test ${ac_cv_path_lt_DD+y} 10299 then : 10300 printf %s "(cached) " >&6 10301 else $as_nop 10302 printf 0123456789abcdef0123456789abcdef >conftest.i 10303 cat conftest.i conftest.i >conftest2.i 10304 : ${lt_DD:=$DD} 10305 if test -z "$lt_DD"; then 10306 ac_path_lt_DD_found=false 10307 # Loop through the user's path and test for each of PROGNAME-LIST 10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10309 for as_dir in $PATH 10310 do 10311 IFS=$as_save_IFS 10312 case $as_dir in #((( 10313 '') as_dir=./ ;; 10314 */) ;; 10315 *) as_dir=$as_dir/ ;; 10316 esac 10317 for ac_prog in dd 10318 do 10319 for ac_exec_ext in '' $ac_executable_extensions; do 10320 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 10321 as_fn_executable_p "$ac_path_lt_DD" || continue 10322 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10323 cmp -s conftest.i conftest.out \ 10324 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10325 fi 10326 $ac_path_lt_DD_found && break 3 10327 done 10328 done 10329 done 10330 IFS=$as_save_IFS 10331 if test -z "$ac_cv_path_lt_DD"; then 10332 : 10333 fi 10334 else 10335 ac_cv_path_lt_DD=$lt_DD 10336 fi 10337 10338 rm -f conftest.i conftest2.i conftest.out 10339 fi 10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10341 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 10342 10343 10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10345 printf %s "checking how to truncate binary pipes... " >&6; } 10346 if test ${lt_cv_truncate_bin+y} 10347 then : 10348 printf %s "(cached) " >&6 10349 else $as_nop 10350 printf 0123456789abcdef0123456789abcdef >conftest.i 10351 cat conftest.i conftest.i >conftest2.i 10352 lt_cv_truncate_bin= 10353 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10354 cmp -s conftest.i conftest.out \ 10355 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10356 fi 10357 rm -f conftest.i conftest2.i conftest.out 10358 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10359 fi 10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10361 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 10362 10363 10364 10365 10366 10367 10368 10369 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10370 func_cc_basename () 10371 { 10372 for cc_temp in $*""; do 10373 case $cc_temp in 10374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10376 \-*) ;; 10377 *) break;; 10378 esac 10379 done 10380 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10381 } 10382 10383 # Check whether --enable-libtool-lock was given. 10384 if test ${enable_libtool_lock+y} 10385 then : 10386 enableval=$enable_libtool_lock; 10387 fi 10388 10389 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10390 10391 # Some flags need to be propagated to the compiler or linker for good 10392 # libtool support. 10393 case $host in 10394 ia64-*-hpux*) 10395 # Find out what ABI is being produced by ac_compile, and set mode 10396 # options accordingly. 10397 echo 'int i;' > conftest.$ac_ext 10398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10399 (eval $ac_compile) 2>&5 10400 ac_status=$? 10401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10402 test $ac_status = 0; }; then 10403 case `$FILECMD conftest.$ac_objext` in 10404 *ELF-32*) 10405 HPUX_IA64_MODE=32 10406 ;; 10407 *ELF-64*) 10408 HPUX_IA64_MODE=64 10409 ;; 10410 esac 10411 fi 10412 rm -rf conftest* 10413 ;; 10414 *-*-irix6*) 10415 # Find out what ABI is being produced by ac_compile, and set linker 10416 # options accordingly. 10417 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10419 (eval $ac_compile) 2>&5 10420 ac_status=$? 10421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10422 test $ac_status = 0; }; then 10423 if test yes = "$lt_cv_prog_gnu_ld"; then 10424 case `$FILECMD conftest.$ac_objext` in 10425 *32-bit*) 10426 LD="${LD-ld} -melf32bsmip" 10427 ;; 10428 *N32*) 10429 LD="${LD-ld} -melf32bmipn32" 10430 ;; 10431 *64-bit*) 10432 LD="${LD-ld} -melf64bmip" 10433 ;; 10434 esac 10435 else 10436 case `$FILECMD conftest.$ac_objext` in 10437 *32-bit*) 10438 LD="${LD-ld} -32" 10439 ;; 10440 *N32*) 10441 LD="${LD-ld} -n32" 10442 ;; 10443 *64-bit*) 10444 LD="${LD-ld} -64" 10445 ;; 10446 esac 10447 fi 10448 fi 10449 rm -rf conftest* 10450 ;; 10451 10452 mips64*-*linux*) 10453 # Find out what ABI is being produced by ac_compile, and set linker 10454 # options accordingly. 10455 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10457 (eval $ac_compile) 2>&5 10458 ac_status=$? 10459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10460 test $ac_status = 0; }; then 10461 emul=elf 10462 case `$FILECMD conftest.$ac_objext` in 10463 *32-bit*) 10464 emul="${emul}32" 10465 ;; 10466 *64-bit*) 10467 emul="${emul}64" 10468 ;; 10469 esac 10470 case `$FILECMD conftest.$ac_objext` in 10471 *MSB*) 10472 emul="${emul}btsmip" 10473 ;; 10474 *LSB*) 10475 emul="${emul}ltsmip" 10476 ;; 10477 esac 10478 case `$FILECMD conftest.$ac_objext` in 10479 *N32*) 10480 emul="${emul}n32" 10481 ;; 10482 esac 10483 LD="${LD-ld} -m $emul" 10484 fi 10485 rm -rf conftest* 10486 ;; 10487 10488 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10489 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 10490 # Find out what ABI is being produced by ac_compile, and set linker 10491 # options accordingly. Note that the listed cases only cover the 10492 # situations where additional linker options are needed (such as when 10493 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10494 # vice versa); the common cases where no linker options are needed do 10495 # not appear in the list. 10496 echo 'int i;' > conftest.$ac_ext 10497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10498 (eval $ac_compile) 2>&5 10499 ac_status=$? 10500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10501 test $ac_status = 0; }; then 10502 case `$FILECMD conftest.o` in 10503 *32-bit*) 10504 case $host in 10505 x86_64-*kfreebsd*-gnu) 10506 LD="${LD-ld} -m elf_i386_fbsd" 10507 ;; 10508 x86_64-*linux*|x86_64-gnu*) 10509 case `$FILECMD conftest.o` in 10510 *x86-64*) 10511 LD="${LD-ld} -m elf32_x86_64" 10512 ;; 10513 *) 10514 LD="${LD-ld} -m elf_i386" 10515 ;; 10516 esac 10517 ;; 10518 powerpc64le-*linux*) 10519 LD="${LD-ld} -m elf32lppclinux" 10520 ;; 10521 powerpc64-*linux*) 10522 LD="${LD-ld} -m elf32ppclinux" 10523 ;; 10524 s390x-*linux*) 10525 LD="${LD-ld} -m elf_s390" 10526 ;; 10527 sparc64-*linux*) 10528 LD="${LD-ld} -m elf32_sparc" 10529 ;; 10530 esac 10531 ;; 10532 *64-bit*) 10533 case $host in 10534 x86_64-*kfreebsd*-gnu) 10535 LD="${LD-ld} -m elf_x86_64_fbsd" 10536 ;; 10537 x86_64-*linux*|x86_64-gnu*) 10538 LD="${LD-ld} -m elf_x86_64" 10539 ;; 10540 powerpcle-*linux*) 10541 LD="${LD-ld} -m elf64lppc" 10542 ;; 10543 powerpc-*linux*) 10544 LD="${LD-ld} -m elf64ppc" 10545 ;; 10546 s390*-*linux*|s390*-*tpf*) 10547 LD="${LD-ld} -m elf64_s390" 10548 ;; 10549 sparc*-*linux*) 10550 LD="${LD-ld} -m elf64_sparc" 10551 ;; 10552 esac 10553 ;; 10554 esac 10555 fi 10556 rm -rf conftest* 10557 ;; 10558 10559 *-*-sco3.2v5*) 10560 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10561 SAVE_CFLAGS=$CFLAGS 10562 CFLAGS="$CFLAGS -belf" 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10564 printf %s "checking whether the C compiler needs -belf... " >&6; } 10565 if test ${lt_cv_cc_needs_belf+y} 10566 then : 10567 printf %s "(cached) " >&6 10568 else $as_nop 10569 ac_ext=c 10570 ac_cpp='$CPP $CPPFLAGS' 10571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10573 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10574 10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10576 /* end confdefs.h. */ 10577 10578 int 10579 main (void) 10580 { 10581 10582 ; 10583 return 0; 10584 } 10585 _ACEOF 10586 if ac_fn_c_try_link "$LINENO" 10587 then : 10588 lt_cv_cc_needs_belf=yes 10589 else $as_nop 10590 lt_cv_cc_needs_belf=no 10591 fi 10592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10593 conftest$ac_exeext conftest.$ac_ext 10594 ac_ext=c 10595 ac_cpp='$CPP $CPPFLAGS' 10596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10598 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10599 10600 fi 10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10602 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 10603 if test yes != "$lt_cv_cc_needs_belf"; then 10604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10605 CFLAGS=$SAVE_CFLAGS 10606 fi 10607 ;; 10608 *-*solaris*) 10609 # Find out what ABI is being produced by ac_compile, and set linker 10610 # options accordingly. 10611 echo 'int i;' > conftest.$ac_ext 10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10613 (eval $ac_compile) 2>&5 10614 ac_status=$? 10615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10616 test $ac_status = 0; }; then 10617 case `$FILECMD conftest.o` in 10618 *64-bit*) 10619 case $lt_cv_prog_gnu_ld in 10620 yes*) 10621 case $host in 10622 i?86-*-solaris*|x86_64-*-solaris*) 10623 LD="${LD-ld} -m elf_x86_64" 10624 ;; 10625 sparc*-*-solaris*) 10626 LD="${LD-ld} -m elf64_sparc" 10627 ;; 10628 esac 10629 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10630 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10631 LD=${LD-ld}_sol2 10632 fi 10633 ;; 10634 *) 10635 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10636 LD="${LD-ld} -64" 10637 fi 10638 ;; 10639 esac 10640 ;; 10641 esac 10642 fi 10643 rm -rf conftest* 10644 ;; 10645 esac 10646 10647 need_locks=$enable_libtool_lock 10648 10649 if test -n "$ac_tool_prefix"; then 10650 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10651 set dummy ${ac_tool_prefix}mt; ac_word=$2 10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10653 printf %s "checking for $ac_word... " >&6; } 10654 if test ${ac_cv_prog_MANIFEST_TOOL+y} 10655 then : 10656 printf %s "(cached) " >&6 10657 else $as_nop 10658 if test -n "$MANIFEST_TOOL"; then 10659 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10660 else 10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10662 for as_dir in $PATH 10663 do 10664 IFS=$as_save_IFS 10665 case $as_dir in #((( 10666 '') as_dir=./ ;; 10667 */) ;; 10668 *) as_dir=$as_dir/ ;; 10669 esac 10670 for ac_exec_ext in '' $ac_executable_extensions; do 10671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10672 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10674 break 2 10675 fi 10676 done 10677 done 10678 IFS=$as_save_IFS 10679 10680 fi 10681 fi 10682 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10683 if test -n "$MANIFEST_TOOL"; then 10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10685 printf "%s\n" "$MANIFEST_TOOL" >&6; } 10686 else 10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10688 printf "%s\n" "no" >&6; } 10689 fi 10690 10691 10692 fi 10693 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10694 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10695 # Extract the first word of "mt", so it can be a program name with args. 10696 set dummy mt; ac_word=$2 10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10698 printf %s "checking for $ac_word... " >&6; } 10699 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 10700 then : 10701 printf %s "(cached) " >&6 10702 else $as_nop 10703 if test -n "$ac_ct_MANIFEST_TOOL"; then 10704 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10705 else 10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10707 for as_dir in $PATH 10708 do 10709 IFS=$as_save_IFS 10710 case $as_dir in #((( 10711 '') as_dir=./ ;; 10712 */) ;; 10713 *) as_dir=$as_dir/ ;; 10714 esac 10715 for ac_exec_ext in '' $ac_executable_extensions; do 10716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10717 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10719 break 2 10720 fi 10721 done 10722 done 10723 IFS=$as_save_IFS 10724 10725 fi 10726 fi 10727 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10728 if test -n "$ac_ct_MANIFEST_TOOL"; then 10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10730 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 10731 else 10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10733 printf "%s\n" "no" >&6; } 10734 fi 10735 10736 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10737 MANIFEST_TOOL=":" 10738 else 10739 case $cross_compiling:$ac_tool_warned in 10740 yes:) 10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10742 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10743 ac_tool_warned=yes ;; 10744 esac 10745 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10746 fi 10747 else 10748 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10749 fi 10750 10751 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10753 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10754 if test ${lt_cv_path_manifest_tool+y} 10755 then : 10756 printf %s "(cached) " >&6 10757 else $as_nop 10758 lt_cv_path_manifest_tool=no 10759 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10760 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10761 cat conftest.err >&5 10762 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10763 lt_cv_path_manifest_tool=yes 10764 fi 10765 rm -f conftest* 10766 fi 10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 10768 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 10769 if test yes != "$lt_cv_path_manifest_tool"; then 10770 MANIFEST_TOOL=: 10771 fi 10772 10773 10774 10775 10776 10777 10778 case $host_os in 10779 rhapsody* | darwin*) 10780 if test -n "$ac_tool_prefix"; then 10781 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10784 printf %s "checking for $ac_word... " >&6; } 10785 if test ${ac_cv_prog_DSYMUTIL+y} 10786 then : 10787 printf %s "(cached) " >&6 10788 else $as_nop 10789 if test -n "$DSYMUTIL"; then 10790 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10791 else 10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10793 for as_dir in $PATH 10794 do 10795 IFS=$as_save_IFS 10796 case $as_dir in #((( 10797 '') as_dir=./ ;; 10798 */) ;; 10799 *) as_dir=$as_dir/ ;; 10800 esac 10801 for ac_exec_ext in '' $ac_executable_extensions; do 10802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10803 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10805 break 2 10806 fi 10807 done 10808 done 10809 IFS=$as_save_IFS 10810 10811 fi 10812 fi 10813 DSYMUTIL=$ac_cv_prog_DSYMUTIL 10814 if test -n "$DSYMUTIL"; then 10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10816 printf "%s\n" "$DSYMUTIL" >&6; } 10817 else 10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10819 printf "%s\n" "no" >&6; } 10820 fi 10821 10822 10823 fi 10824 if test -z "$ac_cv_prog_DSYMUTIL"; then 10825 ac_ct_DSYMUTIL=$DSYMUTIL 10826 # Extract the first word of "dsymutil", so it can be a program name with args. 10827 set dummy dsymutil; ac_word=$2 10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10829 printf %s "checking for $ac_word... " >&6; } 10830 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 10831 then : 10832 printf %s "(cached) " >&6 10833 else $as_nop 10834 if test -n "$ac_ct_DSYMUTIL"; then 10835 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10836 else 10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10838 for as_dir in $PATH 10839 do 10840 IFS=$as_save_IFS 10841 case $as_dir in #((( 10842 '') as_dir=./ ;; 10843 */) ;; 10844 *) as_dir=$as_dir/ ;; 10845 esac 10846 for ac_exec_ext in '' $ac_executable_extensions; do 10847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10848 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10850 break 2 10851 fi 10852 done 10853 done 10854 IFS=$as_save_IFS 10855 10856 fi 10857 fi 10858 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10859 if test -n "$ac_ct_DSYMUTIL"; then 10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10861 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 10862 else 10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10864 printf "%s\n" "no" >&6; } 10865 fi 10866 10867 if test "x$ac_ct_DSYMUTIL" = x; then 10868 DSYMUTIL=":" 10869 else 10870 case $cross_compiling:$ac_tool_warned in 10871 yes:) 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10873 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10874 ac_tool_warned=yes ;; 10875 esac 10876 DSYMUTIL=$ac_ct_DSYMUTIL 10877 fi 10878 else 10879 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10880 fi 10881 10882 if test -n "$ac_tool_prefix"; then 10883 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10884 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10886 printf %s "checking for $ac_word... " >&6; } 10887 if test ${ac_cv_prog_NMEDIT+y} 10888 then : 10889 printf %s "(cached) " >&6 10890 else $as_nop 10891 if test -n "$NMEDIT"; then 10892 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10893 else 10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10895 for as_dir in $PATH 10896 do 10897 IFS=$as_save_IFS 10898 case $as_dir in #((( 10899 '') as_dir=./ ;; 10900 */) ;; 10901 *) as_dir=$as_dir/ ;; 10902 esac 10903 for ac_exec_ext in '' $ac_executable_extensions; do 10904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10905 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10907 break 2 10908 fi 10909 done 10910 done 10911 IFS=$as_save_IFS 10912 10913 fi 10914 fi 10915 NMEDIT=$ac_cv_prog_NMEDIT 10916 if test -n "$NMEDIT"; then 10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10918 printf "%s\n" "$NMEDIT" >&6; } 10919 else 10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10921 printf "%s\n" "no" >&6; } 10922 fi 10923 10924 10925 fi 10926 if test -z "$ac_cv_prog_NMEDIT"; then 10927 ac_ct_NMEDIT=$NMEDIT 10928 # Extract the first word of "nmedit", so it can be a program name with args. 10929 set dummy nmedit; ac_word=$2 10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10931 printf %s "checking for $ac_word... " >&6; } 10932 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 10933 then : 10934 printf %s "(cached) " >&6 10935 else $as_nop 10936 if test -n "$ac_ct_NMEDIT"; then 10937 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10938 else 10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10940 for as_dir in $PATH 10941 do 10942 IFS=$as_save_IFS 10943 case $as_dir in #((( 10944 '') as_dir=./ ;; 10945 */) ;; 10946 *) as_dir=$as_dir/ ;; 10947 esac 10948 for ac_exec_ext in '' $ac_executable_extensions; do 10949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10950 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10952 break 2 10953 fi 10954 done 10955 done 10956 IFS=$as_save_IFS 10957 10958 fi 10959 fi 10960 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10961 if test -n "$ac_ct_NMEDIT"; then 10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10963 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 10964 else 10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10966 printf "%s\n" "no" >&6; } 10967 fi 10968 10969 if test "x$ac_ct_NMEDIT" = x; then 10970 NMEDIT=":" 10971 else 10972 case $cross_compiling:$ac_tool_warned in 10973 yes:) 10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10976 ac_tool_warned=yes ;; 10977 esac 10978 NMEDIT=$ac_ct_NMEDIT 10979 fi 10980 else 10981 NMEDIT="$ac_cv_prog_NMEDIT" 10982 fi 10983 10984 if test -n "$ac_tool_prefix"; then 10985 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10986 set dummy ${ac_tool_prefix}lipo; ac_word=$2 10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10988 printf %s "checking for $ac_word... " >&6; } 10989 if test ${ac_cv_prog_LIPO+y} 10990 then : 10991 printf %s "(cached) " >&6 10992 else $as_nop 10993 if test -n "$LIPO"; then 10994 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10995 else 10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10997 for as_dir in $PATH 10998 do 10999 IFS=$as_save_IFS 11000 case $as_dir in #((( 11001 '') as_dir=./ ;; 11002 */) ;; 11003 *) as_dir=$as_dir/ ;; 11004 esac 11005 for ac_exec_ext in '' $ac_executable_extensions; do 11006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11007 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11009 break 2 11010 fi 11011 done 11012 done 11013 IFS=$as_save_IFS 11014 11015 fi 11016 fi 11017 LIPO=$ac_cv_prog_LIPO 11018 if test -n "$LIPO"; then 11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11020 printf "%s\n" "$LIPO" >&6; } 11021 else 11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11023 printf "%s\n" "no" >&6; } 11024 fi 11025 11026 11027 fi 11028 if test -z "$ac_cv_prog_LIPO"; then 11029 ac_ct_LIPO=$LIPO 11030 # Extract the first word of "lipo", so it can be a program name with args. 11031 set dummy lipo; ac_word=$2 11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11033 printf %s "checking for $ac_word... " >&6; } 11034 if test ${ac_cv_prog_ac_ct_LIPO+y} 11035 then : 11036 printf %s "(cached) " >&6 11037 else $as_nop 11038 if test -n "$ac_ct_LIPO"; then 11039 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11040 else 11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11042 for as_dir in $PATH 11043 do 11044 IFS=$as_save_IFS 11045 case $as_dir in #((( 11046 '') as_dir=./ ;; 11047 */) ;; 11048 *) as_dir=$as_dir/ ;; 11049 esac 11050 for ac_exec_ext in '' $ac_executable_extensions; do 11051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11052 ac_cv_prog_ac_ct_LIPO="lipo" 11053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11054 break 2 11055 fi 11056 done 11057 done 11058 IFS=$as_save_IFS 11059 11060 fi 11061 fi 11062 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11063 if test -n "$ac_ct_LIPO"; then 11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11065 printf "%s\n" "$ac_ct_LIPO" >&6; } 11066 else 11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11068 printf "%s\n" "no" >&6; } 11069 fi 11070 11071 if test "x$ac_ct_LIPO" = x; then 11072 LIPO=":" 11073 else 11074 case $cross_compiling:$ac_tool_warned in 11075 yes:) 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11077 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11078 ac_tool_warned=yes ;; 11079 esac 11080 LIPO=$ac_ct_LIPO 11081 fi 11082 else 11083 LIPO="$ac_cv_prog_LIPO" 11084 fi 11085 11086 if test -n "$ac_tool_prefix"; then 11087 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11088 set dummy ${ac_tool_prefix}otool; ac_word=$2 11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11090 printf %s "checking for $ac_word... " >&6; } 11091 if test ${ac_cv_prog_OTOOL+y} 11092 then : 11093 printf %s "(cached) " >&6 11094 else $as_nop 11095 if test -n "$OTOOL"; then 11096 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11097 else 11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11099 for as_dir in $PATH 11100 do 11101 IFS=$as_save_IFS 11102 case $as_dir in #((( 11103 '') as_dir=./ ;; 11104 */) ;; 11105 *) as_dir=$as_dir/ ;; 11106 esac 11107 for ac_exec_ext in '' $ac_executable_extensions; do 11108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11109 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11111 break 2 11112 fi 11113 done 11114 done 11115 IFS=$as_save_IFS 11116 11117 fi 11118 fi 11119 OTOOL=$ac_cv_prog_OTOOL 11120 if test -n "$OTOOL"; then 11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11122 printf "%s\n" "$OTOOL" >&6; } 11123 else 11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11125 printf "%s\n" "no" >&6; } 11126 fi 11127 11128 11129 fi 11130 if test -z "$ac_cv_prog_OTOOL"; then 11131 ac_ct_OTOOL=$OTOOL 11132 # Extract the first word of "otool", so it can be a program name with args. 11133 set dummy otool; ac_word=$2 11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11135 printf %s "checking for $ac_word... " >&6; } 11136 if test ${ac_cv_prog_ac_ct_OTOOL+y} 11137 then : 11138 printf %s "(cached) " >&6 11139 else $as_nop 11140 if test -n "$ac_ct_OTOOL"; then 11141 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11142 else 11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11144 for as_dir in $PATH 11145 do 11146 IFS=$as_save_IFS 11147 case $as_dir in #((( 11148 '') as_dir=./ ;; 11149 */) ;; 11150 *) as_dir=$as_dir/ ;; 11151 esac 11152 for ac_exec_ext in '' $ac_executable_extensions; do 11153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11154 ac_cv_prog_ac_ct_OTOOL="otool" 11155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11156 break 2 11157 fi 11158 done 11159 done 11160 IFS=$as_save_IFS 11161 11162 fi 11163 fi 11164 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11165 if test -n "$ac_ct_OTOOL"; then 11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11167 printf "%s\n" "$ac_ct_OTOOL" >&6; } 11168 else 11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11170 printf "%s\n" "no" >&6; } 11171 fi 11172 11173 if test "x$ac_ct_OTOOL" = x; then 11174 OTOOL=":" 11175 else 11176 case $cross_compiling:$ac_tool_warned in 11177 yes:) 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11179 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11180 ac_tool_warned=yes ;; 11181 esac 11182 OTOOL=$ac_ct_OTOOL 11183 fi 11184 else 11185 OTOOL="$ac_cv_prog_OTOOL" 11186 fi 11187 11188 if test -n "$ac_tool_prefix"; then 11189 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11190 set dummy ${ac_tool_prefix}otool64; ac_word=$2 11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11192 printf %s "checking for $ac_word... " >&6; } 11193 if test ${ac_cv_prog_OTOOL64+y} 11194 then : 11195 printf %s "(cached) " >&6 11196 else $as_nop 11197 if test -n "$OTOOL64"; then 11198 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11199 else 11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11201 for as_dir in $PATH 11202 do 11203 IFS=$as_save_IFS 11204 case $as_dir in #((( 11205 '') as_dir=./ ;; 11206 */) ;; 11207 *) as_dir=$as_dir/ ;; 11208 esac 11209 for ac_exec_ext in '' $ac_executable_extensions; do 11210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11211 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11213 break 2 11214 fi 11215 done 11216 done 11217 IFS=$as_save_IFS 11218 11219 fi 11220 fi 11221 OTOOL64=$ac_cv_prog_OTOOL64 11222 if test -n "$OTOOL64"; then 11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11224 printf "%s\n" "$OTOOL64" >&6; } 11225 else 11226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11227 printf "%s\n" "no" >&6; } 11228 fi 11229 11230 11231 fi 11232 if test -z "$ac_cv_prog_OTOOL64"; then 11233 ac_ct_OTOOL64=$OTOOL64 11234 # Extract the first word of "otool64", so it can be a program name with args. 11235 set dummy otool64; ac_word=$2 11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11237 printf %s "checking for $ac_word... " >&6; } 11238 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 11239 then : 11240 printf %s "(cached) " >&6 11241 else $as_nop 11242 if test -n "$ac_ct_OTOOL64"; then 11243 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11244 else 11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11246 for as_dir in $PATH 11247 do 11248 IFS=$as_save_IFS 11249 case $as_dir in #((( 11250 '') as_dir=./ ;; 11251 */) ;; 11252 *) as_dir=$as_dir/ ;; 11253 esac 11254 for ac_exec_ext in '' $ac_executable_extensions; do 11255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11256 ac_cv_prog_ac_ct_OTOOL64="otool64" 11257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11258 break 2 11259 fi 11260 done 11261 done 11262 IFS=$as_save_IFS 11263 11264 fi 11265 fi 11266 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11267 if test -n "$ac_ct_OTOOL64"; then 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11269 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 11270 else 11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11272 printf "%s\n" "no" >&6; } 11273 fi 11274 11275 if test "x$ac_ct_OTOOL64" = x; then 11276 OTOOL64=":" 11277 else 11278 case $cross_compiling:$ac_tool_warned in 11279 yes:) 11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11282 ac_tool_warned=yes ;; 11283 esac 11284 OTOOL64=$ac_ct_OTOOL64 11285 fi 11286 else 11287 OTOOL64="$ac_cv_prog_OTOOL64" 11288 fi 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11317 printf %s "checking for -single_module linker flag... " >&6; } 11318 if test ${lt_cv_apple_cc_single_mod+y} 11319 then : 11320 printf %s "(cached) " >&6 11321 else $as_nop 11322 lt_cv_apple_cc_single_mod=no 11323 if test -z "$LT_MULTI_MODULE"; then 11324 # By default we will add the -single_module flag. You can override 11325 # by either setting the environment variable LT_MULTI_MODULE 11326 # non-empty at configure time, or by adding -multi_module to the 11327 # link flags. 11328 rm -rf libconftest.dylib* 11329 echo "int foo(void){return 1;}" > conftest.c 11330 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11331 -dynamiclib -Wl,-single_module conftest.c" >&5 11332 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11333 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11334 _lt_result=$? 11335 # If there is a non-empty error log, and "single_module" 11336 # appears in it, assume the flag caused a linker warning 11337 if test -s conftest.err && $GREP single_module conftest.err; then 11338 cat conftest.err >&5 11339 # Otherwise, if the output was created with a 0 exit code from 11340 # the compiler, it worked. 11341 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11342 lt_cv_apple_cc_single_mod=yes 11343 else 11344 cat conftest.err >&5 11345 fi 11346 rm -rf libconftest.dylib* 11347 rm -f conftest.* 11348 fi 11349 fi 11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11351 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 11352 11353 # Feature test to disable chained fixups since it is not 11354 # compatible with '-undefined dynamic_lookup' 11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 11356 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 11357 if test ${lt_cv_support_no_fixup_chains+y} 11358 then : 11359 printf %s "(cached) " >&6 11360 else $as_nop 11361 save_LDFLAGS=$LDFLAGS 11362 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11364 /* end confdefs.h. */ 11365 11366 int 11367 main (void) 11368 { 11369 11370 ; 11371 return 0; 11372 } 11373 _ACEOF 11374 if ac_fn_c_try_link "$LINENO" 11375 then : 11376 lt_cv_support_no_fixup_chains=yes 11377 else $as_nop 11378 lt_cv_support_no_fixup_chains=no 11379 11380 fi 11381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11382 conftest$ac_exeext conftest.$ac_ext 11383 LDFLAGS=$save_LDFLAGS 11384 11385 11386 fi 11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 11388 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 11389 11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11391 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 11392 if test ${lt_cv_ld_exported_symbols_list+y} 11393 then : 11394 printf %s "(cached) " >&6 11395 else $as_nop 11396 lt_cv_ld_exported_symbols_list=no 11397 save_LDFLAGS=$LDFLAGS 11398 echo "_main" > conftest.sym 11399 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11401 /* end confdefs.h. */ 11402 11403 int 11404 main (void) 11405 { 11406 11407 ; 11408 return 0; 11409 } 11410 _ACEOF 11411 if ac_fn_c_try_link "$LINENO" 11412 then : 11413 lt_cv_ld_exported_symbols_list=yes 11414 else $as_nop 11415 lt_cv_ld_exported_symbols_list=no 11416 fi 11417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11418 conftest$ac_exeext conftest.$ac_ext 11419 LDFLAGS=$save_LDFLAGS 11420 11421 fi 11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11423 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 11424 11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11426 printf %s "checking for -force_load linker flag... " >&6; } 11427 if test ${lt_cv_ld_force_load+y} 11428 then : 11429 printf %s "(cached) " >&6 11430 else $as_nop 11431 lt_cv_ld_force_load=no 11432 cat > conftest.c << _LT_EOF 11433 int forced_loaded() { return 2;} 11434 _LT_EOF 11435 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11436 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11437 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 11438 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 11439 echo "$RANLIB libconftest.a" >&5 11440 $RANLIB libconftest.a 2>&5 11441 cat > conftest.c << _LT_EOF 11442 int main(void) { return 0;} 11443 _LT_EOF 11444 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11445 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11446 _lt_result=$? 11447 if test -s conftest.err && $GREP force_load conftest.err; then 11448 cat conftest.err >&5 11449 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11450 lt_cv_ld_force_load=yes 11451 else 11452 cat conftest.err >&5 11453 fi 11454 rm -f conftest.err libconftest.a conftest conftest.c 11455 rm -rf conftest.dSYM 11456 11457 fi 11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11459 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 11460 case $host_os in 11461 rhapsody* | darwin1.[012]) 11462 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11463 darwin1.*) 11464 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11465 darwin*) 11466 case $MACOSX_DEPLOYMENT_TARGET,$host in 11467 10.[012],*|,*powerpc*-darwin[5-8]*) 11468 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11469 *) 11470 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 11471 if test yes = "$lt_cv_support_no_fixup_chains"; then 11472 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 11473 fi 11474 ;; 11475 esac 11476 ;; 11477 esac 11478 if test yes = "$lt_cv_apple_cc_single_mod"; then 11479 _lt_dar_single_mod='$single_module' 11480 fi 11481 _lt_dar_needs_single_mod=no 11482 case $host_os in 11483 rhapsody* | darwin1.*) 11484 _lt_dar_needs_single_mod=yes ;; 11485 darwin*) 11486 # When targeting Mac OS X 10.4 (darwin 8) or later, 11487 # -single_module is the default and -multi_module is unsupported. 11488 # The toolchain on macOS 10.14 (darwin 18) and later cannot 11489 # target any OS version that needs -single_module. 11490 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11491 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 11492 _lt_dar_needs_single_mod=yes ;; 11493 esac 11494 ;; 11495 esac 11496 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11497 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11498 else 11499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11500 fi 11501 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11502 _lt_dsymutil='~$DSYMUTIL $lib || :' 11503 else 11504 _lt_dsymutil= 11505 fi 11506 ;; 11507 esac 11508 11509 # func_munge_path_list VARIABLE PATH 11510 # ----------------------------------- 11511 # VARIABLE is name of variable containing _space_ separated list of 11512 # directories to be munged by the contents of PATH, which is string 11513 # having a format: 11514 # "DIR[:DIR]:" 11515 # string "DIR[ DIR]" will be prepended to VARIABLE 11516 # ":DIR[:DIR]" 11517 # string "DIR[ DIR]" will be appended to VARIABLE 11518 # "DIRP[:DIRP]::[DIRA:]DIRA" 11519 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11520 # "DIRA[ DIRA]" will be appended to VARIABLE 11521 # "DIR[:DIR]" 11522 # VARIABLE will be replaced by "DIR[ DIR]" 11523 func_munge_path_list () 11524 { 11525 case x$2 in 11526 x) 11527 ;; 11528 *:) 11529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11530 ;; 11531 x:*) 11532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11533 ;; 11534 *::*) 11535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11537 ;; 11538 *) 11539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11540 ;; 11541 esac 11542 } 11543 11544 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11545 " 11546 if test "x$ac_cv_header_dlfcn_h" = xyes 11547 then : 11548 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 11549 11550 fi 11551 11552 11553 11554 11555 11556 11557 11558 # Set options 11559 11560 11561 11562 enable_dlopen=no 11563 11564 11565 enable_win32_dll=no 11566 11567 11568 # Check whether --enable-shared was given. 11569 if test ${enable_shared+y} 11570 then : 11571 enableval=$enable_shared; p=${PACKAGE-default} 11572 case $enableval in 11573 yes) enable_shared=yes ;; 11574 no) enable_shared=no ;; 11575 *) 11576 enable_shared=no 11577 # Look at the argument we got. We use all the common list separators. 11578 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11579 for pkg in $enableval; do 11580 IFS=$lt_save_ifs 11581 if test "X$pkg" = "X$p"; then 11582 enable_shared=yes 11583 fi 11584 done 11585 IFS=$lt_save_ifs 11586 ;; 11587 esac 11588 else $as_nop 11589 enable_shared=yes 11590 fi 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 # Check whether --enable-static was given. 11601 if test ${enable_static+y} 11602 then : 11603 enableval=$enable_static; p=${PACKAGE-default} 11604 case $enableval in 11605 yes) enable_static=yes ;; 11606 no) enable_static=no ;; 11607 *) 11608 enable_static=no 11609 # Look at the argument we got. We use all the common list separators. 11610 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11611 for pkg in $enableval; do 11612 IFS=$lt_save_ifs 11613 if test "X$pkg" = "X$p"; then 11614 enable_static=yes 11615 fi 11616 done 11617 IFS=$lt_save_ifs 11618 ;; 11619 esac 11620 else $as_nop 11621 enable_static=yes 11622 fi 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 # Check whether --enable-pic was given. 11633 if test ${enable_pic+y} 11634 then : 11635 enableval=$enable_pic; lt_p=${PACKAGE-default} 11636 case $enableval in 11637 yes|no) pic_mode=$enableval ;; 11638 *) 11639 pic_mode=default 11640 # Look at the argument we got. We use all the common list separators. 11641 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11642 for lt_pkg in $enableval; do 11643 IFS=$lt_save_ifs 11644 if test "X$lt_pkg" = "X$lt_p"; then 11645 pic_mode=yes 11646 fi 11647 done 11648 IFS=$lt_save_ifs 11649 ;; 11650 esac 11651 else $as_nop 11652 # Check whether --with-pic was given. 11653 if test ${with_pic+y} 11654 then : 11655 withval=$with_pic; lt_p=${PACKAGE-default} 11656 case $withval in 11657 yes|no) pic_mode=$withval ;; 11658 *) 11659 pic_mode=default 11660 # Look at the argument we got. We use all the common list separators. 11661 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11662 for lt_pkg in $withval; do 11663 IFS=$lt_save_ifs 11664 if test "X$lt_pkg" = "X$lt_p"; then 11665 pic_mode=yes 11666 fi 11667 done 11668 IFS=$lt_save_ifs 11669 ;; 11670 esac 11671 else $as_nop 11672 pic_mode=default 11673 fi 11674 11675 11676 fi 11677 11678 11679 11680 11681 11682 11683 11684 11685 # Check whether --enable-fast-install was given. 11686 if test ${enable_fast_install+y} 11687 then : 11688 enableval=$enable_fast_install; p=${PACKAGE-default} 11689 case $enableval in 11690 yes) enable_fast_install=yes ;; 11691 no) enable_fast_install=no ;; 11692 *) 11693 enable_fast_install=no 11694 # Look at the argument we got. We use all the common list separators. 11695 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11696 for pkg in $enableval; do 11697 IFS=$lt_save_ifs 11698 if test "X$pkg" = "X$p"; then 11699 enable_fast_install=yes 11700 fi 11701 done 11702 IFS=$lt_save_ifs 11703 ;; 11704 esac 11705 else $as_nop 11706 enable_fast_install=yes 11707 fi 11708 11709 11710 11711 11712 11713 11714 11715 11716 shared_archive_member_spec= 11717 case $host,$enable_shared in 11718 power*-*-aix[5-9]*,yes) 11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11720 printf %s "checking which variant of shared library versioning to provide... " >&6; } 11721 # Check whether --enable-aix-soname was given. 11722 if test ${enable_aix_soname+y} 11723 then : 11724 enableval=$enable_aix_soname; case $enableval in 11725 aix|svr4|both) 11726 ;; 11727 *) 11728 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 11729 ;; 11730 esac 11731 lt_cv_with_aix_soname=$enable_aix_soname 11732 else $as_nop 11733 # Check whether --with-aix-soname was given. 11734 if test ${with_aix_soname+y} 11735 then : 11736 withval=$with_aix_soname; case $withval in 11737 aix|svr4|both) 11738 ;; 11739 *) 11740 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11741 ;; 11742 esac 11743 lt_cv_with_aix_soname=$with_aix_soname 11744 else $as_nop 11745 if test ${lt_cv_with_aix_soname+y} 11746 then : 11747 printf %s "(cached) " >&6 11748 else $as_nop 11749 lt_cv_with_aix_soname=aix 11750 fi 11751 11752 fi 11753 11754 enable_aix_soname=$lt_cv_with_aix_soname 11755 fi 11756 11757 with_aix_soname=$enable_aix_soname 11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11759 printf "%s\n" "$with_aix_soname" >&6; } 11760 if test aix != "$with_aix_soname"; then 11761 # For the AIX way of multilib, we name the shared archive member 11762 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11763 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11764 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11765 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11766 if test 64 = "${OBJECT_MODE-32}"; then 11767 shared_archive_member_spec=shr_64 11768 else 11769 shared_archive_member_spec=shr 11770 fi 11771 fi 11772 ;; 11773 *) 11774 with_aix_soname=aix 11775 ;; 11776 esac 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 # This can be used to rebuild libtool when needed 11788 LIBTOOL_DEPS=$ltmain 11789 11790 # Always use our own libtool. 11791 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 test -z "$LN_S" && LN_S="ln -s" 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 if test -n "${ZSH_VERSION+set}"; then 11838 setopt NO_GLOB_SUBST 11839 fi 11840 11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11842 printf %s "checking for objdir... " >&6; } 11843 if test ${lt_cv_objdir+y} 11844 then : 11845 printf %s "(cached) " >&6 11846 else $as_nop 11847 rm -f .libs 2>/dev/null 11848 mkdir .libs 2>/dev/null 11849 if test -d .libs; then 11850 lt_cv_objdir=.libs 11851 else 11852 # MS-DOS does not allow filenames that begin with a dot. 11853 lt_cv_objdir=_libs 11854 fi 11855 rmdir .libs 2>/dev/null 11856 fi 11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11858 printf "%s\n" "$lt_cv_objdir" >&6; } 11859 objdir=$lt_cv_objdir 11860 11861 11862 11863 11864 11865 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 11866 11867 11868 11869 11870 case $host_os in 11871 aix3*) 11872 # AIX sometimes has problems with the GCC collect2 program. For some 11873 # reason, if we set the COLLECT_NAMES environment variable, the problems 11874 # vanish in a puff of smoke. 11875 if test set != "${COLLECT_NAMES+set}"; then 11876 COLLECT_NAMES= 11877 export COLLECT_NAMES 11878 fi 11879 ;; 11880 esac 11881 11882 # Global variables: 11883 ofile=libtool 11884 can_build_shared=yes 11885 11886 # All known linkers require a '.a' archive for static linking (except MSVC and 11887 # ICC, which need '.lib'). 11888 libext=a 11889 11890 with_gnu_ld=$lt_cv_prog_gnu_ld 11891 11892 old_CC=$CC 11893 old_CFLAGS=$CFLAGS 11894 11895 # Set sane defaults for various variables 11896 test -z "$CC" && CC=cc 11897 test -z "$LTCC" && LTCC=$CC 11898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11899 test -z "$LD" && LD=ld 11900 test -z "$ac_objext" && ac_objext=o 11901 11902 func_cc_basename $compiler 11903 cc_basename=$func_cc_basename_result 11904 11905 11906 # Only perform the check for file, if the check method requires it 11907 test -z "$MAGIC_CMD" && MAGIC_CMD=file 11908 case $deplibs_check_method in 11909 file_magic*) 11910 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11912 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 11913 if test ${lt_cv_path_MAGIC_CMD+y} 11914 then : 11915 printf %s "(cached) " >&6 11916 else $as_nop 11917 case $MAGIC_CMD in 11918 [\\/*] | ?:[\\/]*) 11919 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11920 ;; 11921 *) 11922 lt_save_MAGIC_CMD=$MAGIC_CMD 11923 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11925 for ac_dir in $ac_dummy; do 11926 IFS=$lt_save_ifs 11927 test -z "$ac_dir" && ac_dir=. 11928 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11929 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11930 if test -n "$file_magic_test_file"; then 11931 case $deplibs_check_method in 11932 "file_magic "*) 11933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11934 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11936 $EGREP "$file_magic_regex" > /dev/null; then 11937 : 11938 else 11939 cat <<_LT_EOF 1>&2 11940 11941 *** Warning: the command libtool uses to detect shared libraries, 11942 *** $file_magic_cmd, produces output that libtool cannot recognize. 11943 *** The result is that libtool may fail to recognize shared libraries 11944 *** as such. This will affect the creation of libtool libraries that 11945 *** depend on shared libraries, but programs linked with such libtool 11946 *** libraries will work regardless of this problem. Nevertheless, you 11947 *** may want to report the problem to your system manager and/or to 11948 *** bug-libtool@gnu.org 11949 11950 _LT_EOF 11951 fi ;; 11952 esac 11953 fi 11954 break 11955 fi 11956 done 11957 IFS=$lt_save_ifs 11958 MAGIC_CMD=$lt_save_MAGIC_CMD 11959 ;; 11960 esac 11961 fi 11962 11963 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11964 if test -n "$MAGIC_CMD"; then 11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11966 printf "%s\n" "$MAGIC_CMD" >&6; } 11967 else 11968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11969 printf "%s\n" "no" >&6; } 11970 fi 11971 11972 11973 11974 11975 11976 if test -z "$lt_cv_path_MAGIC_CMD"; then 11977 if test -n "$ac_tool_prefix"; then 11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11979 printf %s "checking for file... " >&6; } 11980 if test ${lt_cv_path_MAGIC_CMD+y} 11981 then : 11982 printf %s "(cached) " >&6 11983 else $as_nop 11984 case $MAGIC_CMD in 11985 [\\/*] | ?:[\\/]*) 11986 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11987 ;; 11988 *) 11989 lt_save_MAGIC_CMD=$MAGIC_CMD 11990 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11992 for ac_dir in $ac_dummy; do 11993 IFS=$lt_save_ifs 11994 test -z "$ac_dir" && ac_dir=. 11995 if test -f "$ac_dir/file"; then 11996 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11997 if test -n "$file_magic_test_file"; then 11998 case $deplibs_check_method in 11999 "file_magic "*) 12000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12001 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12003 $EGREP "$file_magic_regex" > /dev/null; then 12004 : 12005 else 12006 cat <<_LT_EOF 1>&2 12007 12008 *** Warning: the command libtool uses to detect shared libraries, 12009 *** $file_magic_cmd, produces output that libtool cannot recognize. 12010 *** The result is that libtool may fail to recognize shared libraries 12011 *** as such. This will affect the creation of libtool libraries that 12012 *** depend on shared libraries, but programs linked with such libtool 12013 *** libraries will work regardless of this problem. Nevertheless, you 12014 *** may want to report the problem to your system manager and/or to 12015 *** bug-libtool@gnu.org 12016 12017 _LT_EOF 12018 fi ;; 12019 esac 12020 fi 12021 break 12022 fi 12023 done 12024 IFS=$lt_save_ifs 12025 MAGIC_CMD=$lt_save_MAGIC_CMD 12026 ;; 12027 esac 12028 fi 12029 12030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12031 if test -n "$MAGIC_CMD"; then 12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12033 printf "%s\n" "$MAGIC_CMD" >&6; } 12034 else 12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12036 printf "%s\n" "no" >&6; } 12037 fi 12038 12039 12040 else 12041 MAGIC_CMD=: 12042 fi 12043 fi 12044 12045 fi 12046 ;; 12047 esac 12048 12049 # Use C for the default configuration in the libtool script 12050 12051 lt_save_CC=$CC 12052 ac_ext=c 12053 ac_cpp='$CPP $CPPFLAGS' 12054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12056 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12057 12058 12059 # Source file extension for C test sources. 12060 ac_ext=c 12061 12062 # Object file extension for compiled C test sources. 12063 objext=o 12064 objext=$objext 12065 12066 # Code to be used in simple compile tests 12067 lt_simple_compile_test_code="int some_variable = 0;" 12068 12069 # Code to be used in simple link tests 12070 lt_simple_link_test_code='int main(void){return(0);}' 12071 12072 12073 12074 12075 12076 12077 12078 # If no C compiler was specified, use CC. 12079 LTCC=${LTCC-"$CC"} 12080 12081 # If no C compiler flags were specified, use CFLAGS. 12082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12083 12084 # Allow CC to be a program name with arguments. 12085 compiler=$CC 12086 12087 # Save the default compiler, since it gets overwritten when the other 12088 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12089 compiler_DEFAULT=$CC 12090 12091 # save warnings/boilerplate of simple test code 12092 ac_outfile=conftest.$ac_objext 12093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12095 _lt_compiler_boilerplate=`cat conftest.err` 12096 $RM conftest* 12097 12098 ac_outfile=conftest.$ac_objext 12099 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12101 _lt_linker_boilerplate=`cat conftest.err` 12102 $RM -r conftest* 12103 12104 12105 if test -n "$compiler"; then 12106 12107 lt_prog_compiler_no_builtin_flag= 12108 12109 if test yes = "$GCC"; then 12110 case $cc_basename in 12111 nvcc*) 12112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12113 *) 12114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12115 esac 12116 12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12118 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12119 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 12120 then : 12121 printf %s "(cached) " >&6 12122 else $as_nop 12123 lt_cv_prog_compiler_rtti_exceptions=no 12124 ac_outfile=conftest.$ac_objext 12125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12126 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12127 # Insert the option either (1) after the last *FLAGS variable, or 12128 # (2) before a word containing "conftest.", or (3) at the end. 12129 # Note that $ac_compile itself does not contain backslashes and begins 12130 # with a dollar sign (not a hyphen), so the echo should work correctly. 12131 # The option is referenced via a variable to avoid confusing sed. 12132 lt_compile=`echo "$ac_compile" | $SED \ 12133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12135 -e 's:$: $lt_compiler_flag:'` 12136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12137 (eval "$lt_compile" 2>conftest.err) 12138 ac_status=$? 12139 cat conftest.err >&5 12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12141 if (exit $ac_status) && test -s "$ac_outfile"; then 12142 # The compiler can only warn and ignore the option if not recognized 12143 # So say no if there are warnings other than the usual output. 12144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12147 lt_cv_prog_compiler_rtti_exceptions=yes 12148 fi 12149 fi 12150 $RM conftest* 12151 12152 fi 12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12154 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12155 12156 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12157 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12158 else 12159 : 12160 fi 12161 12162 fi 12163 12164 12165 12166 12167 12168 12169 lt_prog_compiler_wl= 12170 lt_prog_compiler_pic= 12171 lt_prog_compiler_static= 12172 12173 12174 if test yes = "$GCC"; then 12175 lt_prog_compiler_wl='-Wl,' 12176 lt_prog_compiler_static='-static' 12177 12178 case $host_os in 12179 aix*) 12180 # All AIX code is PIC. 12181 if test ia64 = "$host_cpu"; then 12182 # AIX 5 now supports IA64 processor 12183 lt_prog_compiler_static='-Bstatic' 12184 fi 12185 lt_prog_compiler_pic='-fPIC' 12186 ;; 12187 12188 amigaos*) 12189 case $host_cpu in 12190 powerpc) 12191 # see comment about AmigaOS4 .so support 12192 lt_prog_compiler_pic='-fPIC' 12193 ;; 12194 m68k) 12195 # FIXME: we need at least 68020 code to build shared libraries, but 12196 # adding the '-m68020' flag to GCC prevents building anything better, 12197 # like '-m68040'. 12198 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12199 ;; 12200 esac 12201 ;; 12202 12203 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12204 # PIC is the default for these OSes. 12205 ;; 12206 12207 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12208 # This hack is so that the source file can tell whether it is being 12209 # built for inclusion in a dll (and should export symbols for example). 12210 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12211 # (--disable-auto-import) libraries 12212 lt_prog_compiler_pic='-DDLL_EXPORT' 12213 case $host_os in 12214 os2*) 12215 lt_prog_compiler_static='$wl-static' 12216 ;; 12217 esac 12218 ;; 12219 12220 darwin* | rhapsody*) 12221 # PIC is the default on this platform 12222 # Common symbols not allowed in MH_DYLIB files 12223 lt_prog_compiler_pic='-fno-common' 12224 ;; 12225 12226 haiku*) 12227 # PIC is the default for Haiku. 12228 # The "-static" flag exists, but is broken. 12229 lt_prog_compiler_static= 12230 ;; 12231 12232 hpux*) 12233 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12234 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12235 # sets the default TLS model and affects inlining. 12236 case $host_cpu in 12237 hppa*64*) 12238 # +Z the default 12239 ;; 12240 *) 12241 lt_prog_compiler_pic='-fPIC' 12242 ;; 12243 esac 12244 ;; 12245 12246 interix[3-9]*) 12247 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12248 # Instead, we relocate shared libraries at runtime. 12249 ;; 12250 12251 msdosdjgpp*) 12252 # Just because we use GCC doesn't mean we suddenly get shared libraries 12253 # on systems that don't support them. 12254 lt_prog_compiler_can_build_shared=no 12255 enable_shared=no 12256 ;; 12257 12258 *nto* | *qnx*) 12259 # QNX uses GNU C++, but need to define -shared option too, otherwise 12260 # it will coredump. 12261 lt_prog_compiler_pic='-fPIC -shared' 12262 ;; 12263 12264 sysv4*MP*) 12265 if test -d /usr/nec; then 12266 lt_prog_compiler_pic=-Kconform_pic 12267 fi 12268 ;; 12269 12270 *) 12271 lt_prog_compiler_pic='-fPIC' 12272 ;; 12273 esac 12274 12275 case $cc_basename in 12276 nvcc*) # Cuda Compiler Driver 2.2 12277 lt_prog_compiler_wl='-Xlinker ' 12278 if test -n "$lt_prog_compiler_pic"; then 12279 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12280 fi 12281 ;; 12282 esac 12283 else 12284 # PORTME Check for flag to pass linker flags through the system compiler. 12285 case $host_os in 12286 aix*) 12287 lt_prog_compiler_wl='-Wl,' 12288 if test ia64 = "$host_cpu"; then 12289 # AIX 5 now supports IA64 processor 12290 lt_prog_compiler_static='-Bstatic' 12291 else 12292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12293 fi 12294 ;; 12295 12296 darwin* | rhapsody*) 12297 # PIC is the default on this platform 12298 # Common symbols not allowed in MH_DYLIB files 12299 lt_prog_compiler_pic='-fno-common' 12300 case $cc_basename in 12301 nagfor*) 12302 # NAG Fortran compiler 12303 lt_prog_compiler_wl='-Wl,-Wl,,' 12304 lt_prog_compiler_pic='-PIC' 12305 lt_prog_compiler_static='-Bstatic' 12306 ;; 12307 esac 12308 ;; 12309 12310 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12311 # This hack is so that the source file can tell whether it is being 12312 # built for inclusion in a dll (and should export symbols for example). 12313 lt_prog_compiler_pic='-DDLL_EXPORT' 12314 case $host_os in 12315 os2*) 12316 lt_prog_compiler_static='$wl-static' 12317 ;; 12318 esac 12319 ;; 12320 12321 hpux9* | hpux10* | hpux11*) 12322 lt_prog_compiler_wl='-Wl,' 12323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12324 # not for PA HP-UX. 12325 case $host_cpu in 12326 hppa*64*|ia64*) 12327 # +Z the default 12328 ;; 12329 *) 12330 lt_prog_compiler_pic='+Z' 12331 ;; 12332 esac 12333 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12334 lt_prog_compiler_static='$wl-a ${wl}archive' 12335 ;; 12336 12337 irix5* | irix6* | nonstopux*) 12338 lt_prog_compiler_wl='-Wl,' 12339 # PIC (with -KPIC) is the default. 12340 lt_prog_compiler_static='-non_shared' 12341 ;; 12342 12343 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12344 case $cc_basename in 12345 # old Intel for x86_64, which still supported -KPIC. 12346 ecc*) 12347 lt_prog_compiler_wl='-Wl,' 12348 lt_prog_compiler_pic='-KPIC' 12349 lt_prog_compiler_static='-static' 12350 ;; 12351 *flang* | ftn | f18* | f95*) 12352 # Flang compiler. 12353 lt_prog_compiler_wl='-Wl,' 12354 lt_prog_compiler_pic='-fPIC' 12355 lt_prog_compiler_static='-static' 12356 ;; 12357 # icc used to be incompatible with GCC. 12358 # ICC 10 doesn't accept -KPIC any more. 12359 icc* | ifort*) 12360 lt_prog_compiler_wl='-Wl,' 12361 lt_prog_compiler_pic='-fPIC' 12362 lt_prog_compiler_static='-static' 12363 ;; 12364 # Lahey Fortran 8.1. 12365 lf95*) 12366 lt_prog_compiler_wl='-Wl,' 12367 lt_prog_compiler_pic='--shared' 12368 lt_prog_compiler_static='--static' 12369 ;; 12370 nagfor*) 12371 # NAG Fortran compiler 12372 lt_prog_compiler_wl='-Wl,-Wl,,' 12373 lt_prog_compiler_pic='-PIC' 12374 lt_prog_compiler_static='-Bstatic' 12375 ;; 12376 tcc*) 12377 # Fabrice Bellard et al's Tiny C Compiler 12378 lt_prog_compiler_wl='-Wl,' 12379 lt_prog_compiler_pic='-fPIC' 12380 lt_prog_compiler_static='-static' 12381 ;; 12382 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12383 # Portland Group compilers (*not* the Pentium gcc compiler, 12384 # which looks to be a dead project) 12385 lt_prog_compiler_wl='-Wl,' 12386 lt_prog_compiler_pic='-fpic' 12387 lt_prog_compiler_static='-Bstatic' 12388 ;; 12389 ccc*) 12390 lt_prog_compiler_wl='-Wl,' 12391 # All Alpha code is PIC. 12392 lt_prog_compiler_static='-non_shared' 12393 ;; 12394 xl* | bgxl* | bgf* | mpixl*) 12395 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12396 lt_prog_compiler_wl='-Wl,' 12397 lt_prog_compiler_pic='-qpic' 12398 lt_prog_compiler_static='-qstaticlink' 12399 ;; 12400 *) 12401 case `$CC -V 2>&1 | $SED 5q` in 12402 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12403 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12404 lt_prog_compiler_pic='-KPIC' 12405 lt_prog_compiler_static='-Bstatic' 12406 lt_prog_compiler_wl='' 12407 ;; 12408 *Sun\ F* | *Sun*Fortran*) 12409 lt_prog_compiler_pic='-KPIC' 12410 lt_prog_compiler_static='-Bstatic' 12411 lt_prog_compiler_wl='-Qoption ld ' 12412 ;; 12413 *Sun\ C*) 12414 # Sun C 5.9 12415 lt_prog_compiler_pic='-KPIC' 12416 lt_prog_compiler_static='-Bstatic' 12417 lt_prog_compiler_wl='-Wl,' 12418 ;; 12419 *Intel*\ [CF]*Compiler*) 12420 lt_prog_compiler_wl='-Wl,' 12421 lt_prog_compiler_pic='-fPIC' 12422 lt_prog_compiler_static='-static' 12423 ;; 12424 *Portland\ Group*) 12425 lt_prog_compiler_wl='-Wl,' 12426 lt_prog_compiler_pic='-fpic' 12427 lt_prog_compiler_static='-Bstatic' 12428 ;; 12429 esac 12430 ;; 12431 esac 12432 ;; 12433 12434 newsos6) 12435 lt_prog_compiler_pic='-KPIC' 12436 lt_prog_compiler_static='-Bstatic' 12437 ;; 12438 12439 *-mlibc) 12440 lt_prog_compiler_wl='-Wl,' 12441 lt_prog_compiler_pic='-fPIC' 12442 lt_prog_compiler_static='-static' 12443 ;; 12444 12445 *nto* | *qnx*) 12446 # QNX uses GNU C++, but need to define -shared option too, otherwise 12447 # it will coredump. 12448 lt_prog_compiler_pic='-fPIC -shared' 12449 ;; 12450 12451 osf3* | osf4* | osf5*) 12452 lt_prog_compiler_wl='-Wl,' 12453 # All OSF/1 code is PIC. 12454 lt_prog_compiler_static='-non_shared' 12455 ;; 12456 12457 rdos*) 12458 lt_prog_compiler_static='-non_shared' 12459 ;; 12460 12461 serenity*) 12462 ;; 12463 12464 solaris*) 12465 lt_prog_compiler_pic='-KPIC' 12466 lt_prog_compiler_static='-Bstatic' 12467 case $cc_basename in 12468 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12469 lt_prog_compiler_wl='-Qoption ld ';; 12470 *) 12471 lt_prog_compiler_wl='-Wl,';; 12472 esac 12473 ;; 12474 12475 sunos4*) 12476 lt_prog_compiler_wl='-Qoption ld ' 12477 lt_prog_compiler_pic='-PIC' 12478 lt_prog_compiler_static='-Bstatic' 12479 ;; 12480 12481 sysv4 | sysv4.2uw2* | sysv4.3*) 12482 lt_prog_compiler_wl='-Wl,' 12483 lt_prog_compiler_pic='-KPIC' 12484 lt_prog_compiler_static='-Bstatic' 12485 ;; 12486 12487 sysv4*MP*) 12488 if test -d /usr/nec; then 12489 lt_prog_compiler_pic='-Kconform_pic' 12490 lt_prog_compiler_static='-Bstatic' 12491 fi 12492 ;; 12493 12494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12495 lt_prog_compiler_wl='-Wl,' 12496 lt_prog_compiler_pic='-KPIC' 12497 lt_prog_compiler_static='-Bstatic' 12498 ;; 12499 12500 unicos*) 12501 lt_prog_compiler_wl='-Wl,' 12502 lt_prog_compiler_can_build_shared=no 12503 ;; 12504 12505 uts4*) 12506 lt_prog_compiler_pic='-pic' 12507 lt_prog_compiler_static='-Bstatic' 12508 ;; 12509 12510 *) 12511 lt_prog_compiler_can_build_shared=no 12512 ;; 12513 esac 12514 fi 12515 12516 case $host_os in 12517 # For platforms that do not support PIC, -DPIC is meaningless: 12518 *djgpp*) 12519 lt_prog_compiler_pic= 12520 ;; 12521 *) 12522 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12523 ;; 12524 esac 12525 12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12527 printf %s "checking for $compiler option to produce PIC... " >&6; } 12528 if test ${lt_cv_prog_compiler_pic+y} 12529 then : 12530 printf %s "(cached) " >&6 12531 else $as_nop 12532 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12533 fi 12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12535 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12536 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12537 12538 # 12539 # Check to make sure the PIC flag actually works. 12540 # 12541 if test -n "$lt_prog_compiler_pic"; then 12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12543 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12544 if test ${lt_cv_prog_compiler_pic_works+y} 12545 then : 12546 printf %s "(cached) " >&6 12547 else $as_nop 12548 lt_cv_prog_compiler_pic_works=no 12549 ac_outfile=conftest.$ac_objext 12550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12551 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12552 # Insert the option either (1) after the last *FLAGS variable, or 12553 # (2) before a word containing "conftest.", or (3) at the end. 12554 # Note that $ac_compile itself does not contain backslashes and begins 12555 # with a dollar sign (not a hyphen), so the echo should work correctly. 12556 # The option is referenced via a variable to avoid confusing sed. 12557 lt_compile=`echo "$ac_compile" | $SED \ 12558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12560 -e 's:$: $lt_compiler_flag:'` 12561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12562 (eval "$lt_compile" 2>conftest.err) 12563 ac_status=$? 12564 cat conftest.err >&5 12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12566 if (exit $ac_status) && test -s "$ac_outfile"; then 12567 # The compiler can only warn and ignore the option if not recognized 12568 # So say no if there are warnings other than the usual output. 12569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12572 lt_cv_prog_compiler_pic_works=yes 12573 fi 12574 fi 12575 $RM conftest* 12576 12577 fi 12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12579 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12580 12581 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12582 case $lt_prog_compiler_pic in 12583 "" | " "*) ;; 12584 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12585 esac 12586 else 12587 lt_prog_compiler_pic= 12588 lt_prog_compiler_can_build_shared=no 12589 fi 12590 12591 fi 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 # 12604 # Check to make sure the static flag actually works. 12605 # 12606 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12608 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12609 if test ${lt_cv_prog_compiler_static_works+y} 12610 then : 12611 printf %s "(cached) " >&6 12612 else $as_nop 12613 lt_cv_prog_compiler_static_works=no 12614 save_LDFLAGS=$LDFLAGS 12615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12616 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12618 # The linker can only warn and ignore the option if not recognized 12619 # So say no if there are warnings 12620 if test -s conftest.err; then 12621 # Append any errors to the config.log. 12622 cat conftest.err 1>&5 12623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12625 if diff conftest.exp conftest.er2 >/dev/null; then 12626 lt_cv_prog_compiler_static_works=yes 12627 fi 12628 else 12629 lt_cv_prog_compiler_static_works=yes 12630 fi 12631 fi 12632 $RM -r conftest* 12633 LDFLAGS=$save_LDFLAGS 12634 12635 fi 12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12637 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12638 12639 if test yes = "$lt_cv_prog_compiler_static_works"; then 12640 : 12641 else 12642 lt_prog_compiler_static= 12643 fi 12644 12645 12646 12647 12648 12649 12650 12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12652 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12653 if test ${lt_cv_prog_compiler_c_o+y} 12654 then : 12655 printf %s "(cached) " >&6 12656 else $as_nop 12657 lt_cv_prog_compiler_c_o=no 12658 $RM -r conftest 2>/dev/null 12659 mkdir conftest 12660 cd conftest 12661 mkdir out 12662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12663 12664 lt_compiler_flag="-o out/conftest2.$ac_objext" 12665 # Insert the option either (1) after the last *FLAGS variable, or 12666 # (2) before a word containing "conftest.", or (3) at the end. 12667 # Note that $ac_compile itself does not contain backslashes and begins 12668 # with a dollar sign (not a hyphen), so the echo should work correctly. 12669 lt_compile=`echo "$ac_compile" | $SED \ 12670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12672 -e 's:$: $lt_compiler_flag:'` 12673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12674 (eval "$lt_compile" 2>out/conftest.err) 12675 ac_status=$? 12676 cat out/conftest.err >&5 12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12678 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12679 then 12680 # The compiler can only warn and ignore the option if not recognized 12681 # So say no if there are warnings 12682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12685 lt_cv_prog_compiler_c_o=yes 12686 fi 12687 fi 12688 chmod u+w . 2>&5 12689 $RM conftest* 12690 # SGI C++ compiler will create directory out/ii_files/ for 12691 # template instantiation 12692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12693 $RM out/* && rmdir out 12694 cd .. 12695 $RM -r conftest 12696 $RM conftest* 12697 12698 fi 12699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12700 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12701 12702 12703 12704 12705 12706 12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12708 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12709 if test ${lt_cv_prog_compiler_c_o+y} 12710 then : 12711 printf %s "(cached) " >&6 12712 else $as_nop 12713 lt_cv_prog_compiler_c_o=no 12714 $RM -r conftest 2>/dev/null 12715 mkdir conftest 12716 cd conftest 12717 mkdir out 12718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12719 12720 lt_compiler_flag="-o out/conftest2.$ac_objext" 12721 # Insert the option either (1) after the last *FLAGS variable, or 12722 # (2) before a word containing "conftest.", or (3) at the end. 12723 # Note that $ac_compile itself does not contain backslashes and begins 12724 # with a dollar sign (not a hyphen), so the echo should work correctly. 12725 lt_compile=`echo "$ac_compile" | $SED \ 12726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12728 -e 's:$: $lt_compiler_flag:'` 12729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12730 (eval "$lt_compile" 2>out/conftest.err) 12731 ac_status=$? 12732 cat out/conftest.err >&5 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12735 then 12736 # The compiler can only warn and ignore the option if not recognized 12737 # So say no if there are warnings 12738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12741 lt_cv_prog_compiler_c_o=yes 12742 fi 12743 fi 12744 chmod u+w . 2>&5 12745 $RM conftest* 12746 # SGI C++ compiler will create directory out/ii_files/ for 12747 # template instantiation 12748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12749 $RM out/* && rmdir out 12750 cd .. 12751 $RM -r conftest 12752 $RM conftest* 12753 12754 fi 12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12756 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12757 12758 12759 12760 12761 hard_links=nottested 12762 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12763 # do not overwrite the value of need_locks provided by the user 12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12765 printf %s "checking if we can lock with hard links... " >&6; } 12766 hard_links=yes 12767 $RM conftest* 12768 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12769 touch conftest.a 12770 ln conftest.a conftest.b 2>&5 || hard_links=no 12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12773 printf "%s\n" "$hard_links" >&6; } 12774 if test no = "$hard_links"; then 12775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12776 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12777 need_locks=warn 12778 fi 12779 else 12780 need_locks=no 12781 fi 12782 12783 12784 12785 12786 12787 12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12789 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12790 12791 runpath_var= 12792 allow_undefined_flag= 12793 always_export_symbols=no 12794 archive_cmds= 12795 archive_expsym_cmds= 12796 compiler_needs_object=no 12797 enable_shared_with_static_runtimes=no 12798 export_dynamic_flag_spec= 12799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12800 hardcode_automatic=no 12801 hardcode_direct=no 12802 hardcode_direct_absolute=no 12803 hardcode_libdir_flag_spec= 12804 hardcode_libdir_separator= 12805 hardcode_minus_L=no 12806 hardcode_shlibpath_var=unsupported 12807 inherit_rpath=no 12808 link_all_deplibs=unknown 12809 module_cmds= 12810 module_expsym_cmds= 12811 old_archive_from_new_cmds= 12812 old_archive_from_expsyms_cmds= 12813 thread_safe_flag_spec= 12814 whole_archive_flag_spec= 12815 # include_expsyms should be a list of space-separated symbols to be *always* 12816 # included in the symbol list 12817 include_expsyms= 12818 # exclude_expsyms can be an extended regexp of symbols to exclude 12819 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12820 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12821 # as well as any symbol that contains 'd'. 12822 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12824 # platforms (ab)use it in PIC code, but their linkers get confused if 12825 # the symbol is explicitly referenced. Since portable code cannot 12826 # rely on this symbol name, it's probably fine to never include it in 12827 # preloaded symbol tables. 12828 # Exclude shared library initialization/finalization symbols. 12829 extract_expsyms_cmds= 12830 12831 case $host_os in 12832 cygwin* | mingw* | windows* | pw32* | cegcc*) 12833 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 12834 # When not using gcc, we currently assume that we are using 12835 # Microsoft Visual C++ or Intel C++ Compiler. 12836 if test yes != "$GCC"; then 12837 with_gnu_ld=no 12838 fi 12839 ;; 12840 interix*) 12841 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 12842 with_gnu_ld=yes 12843 ;; 12844 esac 12845 12846 ld_shlibs=yes 12847 12848 # On some targets, GNU ld is compatible enough with the native linker 12849 # that we're better off using the native interface for both. 12850 lt_use_gnu_ld_interface=no 12851 if test yes = "$with_gnu_ld"; then 12852 case $host_os in 12853 aix*) 12854 # The AIX port of GNU ld has always aspired to compatibility 12855 # with the native linker. However, as the warning in the GNU ld 12856 # block says, versions before 2.19.5* couldn't really create working 12857 # shared libraries, regardless of the interface used. 12858 case `$LD -v 2>&1` in 12859 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12860 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12861 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12862 *) 12863 lt_use_gnu_ld_interface=yes 12864 ;; 12865 esac 12866 ;; 12867 *) 12868 lt_use_gnu_ld_interface=yes 12869 ;; 12870 esac 12871 fi 12872 12873 if test yes = "$lt_use_gnu_ld_interface"; then 12874 # If archive_cmds runs LD, not CC, wlarc should be empty 12875 wlarc='$wl' 12876 12877 # Set some defaults for GNU ld with shared library support. These 12878 # are reset later if shared libraries are not supported. Putting them 12879 # here allows them to be overridden if necessary. 12880 runpath_var=LD_RUN_PATH 12881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12882 export_dynamic_flag_spec='$wl--export-dynamic' 12883 # ancient GNU ld didn't support --whole-archive et. al. 12884 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12885 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12886 else 12887 whole_archive_flag_spec= 12888 fi 12889 supports_anon_versioning=no 12890 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 12891 *GNU\ gold*) supports_anon_versioning=yes ;; 12892 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12893 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12894 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12895 *\ 2.11.*) ;; # other 2.11 versions 12896 *) supports_anon_versioning=yes ;; 12897 esac 12898 12899 # See if GNU ld supports shared libraries. 12900 case $host_os in 12901 aix[3-9]*) 12902 # On AIX/PPC, the GNU linker is very broken 12903 if test ia64 != "$host_cpu"; then 12904 ld_shlibs=no 12905 cat <<_LT_EOF 1>&2 12906 12907 *** Warning: the GNU linker, at least up to release 2.19, is reported 12908 *** to be unable to reliably create shared libraries on AIX. 12909 *** Therefore, libtool is disabling shared libraries support. If you 12910 *** really care for shared libraries, you may want to install binutils 12911 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12912 *** You will then need to restart the configuration process. 12913 12914 _LT_EOF 12915 fi 12916 ;; 12917 12918 amigaos*) 12919 case $host_cpu in 12920 powerpc) 12921 # see comment about AmigaOS4 .so support 12922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12923 archive_expsym_cmds='' 12924 ;; 12925 m68k) 12926 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)' 12927 hardcode_libdir_flag_spec='-L$libdir' 12928 hardcode_minus_L=yes 12929 ;; 12930 esac 12931 ;; 12932 12933 beos*) 12934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12935 allow_undefined_flag=unsupported 12936 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12937 # support --undefined. This deserves some investigation. FIXME 12938 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12939 else 12940 ld_shlibs=no 12941 fi 12942 ;; 12943 12944 cygwin* | mingw* | windows* | pw32* | cegcc*) 12945 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12946 # as there is no search path for DLLs. 12947 hardcode_libdir_flag_spec='-L$libdir' 12948 export_dynamic_flag_spec='$wl--export-all-symbols' 12949 allow_undefined_flag=unsupported 12950 always_export_symbols=no 12951 enable_shared_with_static_runtimes=yes 12952 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' 12953 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12954 file_list_spec='@' 12955 12956 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12958 # If the export-symbols file already is a .def file, use it as 12959 # is; otherwise, prepend EXPORTS... 12960 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12961 cp $export_symbols $output_objdir/$soname.def; 12962 else 12963 echo EXPORTS > $output_objdir/$soname.def; 12964 cat $export_symbols >> $output_objdir/$soname.def; 12965 fi~ 12966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12967 else 12968 ld_shlibs=no 12969 fi 12970 ;; 12971 12972 haiku*) 12973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12974 link_all_deplibs=no 12975 ;; 12976 12977 os2*) 12978 hardcode_libdir_flag_spec='-L$libdir' 12979 hardcode_minus_L=yes 12980 allow_undefined_flag=unsupported 12981 shrext_cmds=.dll 12982 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12983 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12984 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12985 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12986 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12987 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12988 emximp -o $lib $output_objdir/$libname.def' 12989 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12990 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12991 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12992 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12993 prefix_cmds="$SED"~ 12994 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12995 prefix_cmds="$prefix_cmds -e 1d"; 12996 fi~ 12997 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12998 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12999 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13000 emximp -o $lib $output_objdir/$libname.def' 13001 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13002 enable_shared_with_static_runtimes=yes 13003 file_list_spec='@' 13004 ;; 13005 13006 interix[3-9]*) 13007 hardcode_direct=no 13008 hardcode_shlibpath_var=no 13009 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13010 export_dynamic_flag_spec='$wl-E' 13011 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13012 # Instead, shared libraries are loaded at an image base (0x10000000 by 13013 # default) and relocated if they conflict, which is a slow very memory 13014 # consuming and fragmenting process. To avoid this, we pick a random, 13015 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13016 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13018 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' 13019 ;; 13020 13021 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13022 tmp_diet=no 13023 if test linux-dietlibc = "$host_os"; then 13024 case $cc_basename in 13025 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13026 esac 13027 fi 13028 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13029 && test no = "$tmp_diet" 13030 then 13031 tmp_addflag=' $pic_flag' 13032 tmp_sharedflag='-shared' 13033 case $cc_basename,$host_cpu in 13034 pgcc*) # Portland Group C compiler 13035 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' 13036 tmp_addflag=' $pic_flag' 13037 ;; 13038 pgf77* | pgf90* | pgf95* | pgfortran*) 13039 # Portland Group f77 and f90 compilers 13040 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' 13041 tmp_addflag=' $pic_flag -Mnomain' ;; 13042 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13043 tmp_addflag=' -i_dynamic' ;; 13044 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13045 tmp_addflag=' -i_dynamic -nofor_main' ;; 13046 ifc* | ifort*) # Intel Fortran compiler 13047 tmp_addflag=' -nofor_main' ;; 13048 lf95*) # Lahey Fortran 8.1 13049 whole_archive_flag_spec= 13050 tmp_sharedflag='--shared' ;; 13051 nagfor*) # NAGFOR 5.3 13052 tmp_sharedflag='-Wl,-shared' ;; 13053 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13054 tmp_sharedflag='-qmkshrobj' 13055 tmp_addflag= ;; 13056 nvcc*) # Cuda Compiler Driver 2.2 13057 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' 13058 compiler_needs_object=yes 13059 ;; 13060 esac 13061 case `$CC -V 2>&1 | $SED 5q` in 13062 *Sun\ C*) # Sun C 5.9 13063 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' 13064 compiler_needs_object=yes 13065 tmp_sharedflag='-G' ;; 13066 *Sun\ F*) # Sun Fortran 8.3 13067 tmp_sharedflag='-G' ;; 13068 esac 13069 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13070 13071 if test yes = "$supports_anon_versioning"; then 13072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13073 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13074 echo "local: *; };" >> $output_objdir/$libname.ver~ 13075 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13076 fi 13077 13078 case $cc_basename in 13079 tcc*) 13080 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13081 export_dynamic_flag_spec='-rdynamic' 13082 ;; 13083 xlf* | bgf* | bgxlf* | mpixlf*) 13084 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13085 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13087 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13088 if test yes = "$supports_anon_versioning"; then 13089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13090 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13091 echo "local: *; };" >> $output_objdir/$libname.ver~ 13092 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13093 fi 13094 ;; 13095 esac 13096 else 13097 ld_shlibs=no 13098 fi 13099 ;; 13100 13101 *-mlibc) 13102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13104 ;; 13105 13106 netbsd* | netbsdelf*-gnu) 13107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13108 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13109 wlarc= 13110 else 13111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13112 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13113 fi 13114 ;; 13115 13116 solaris*) 13117 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13118 ld_shlibs=no 13119 cat <<_LT_EOF 1>&2 13120 13121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 13122 *** create shared libraries on Solaris systems. Therefore, libtool 13123 *** is disabling shared libraries support. We urge you to upgrade GNU 13124 *** binutils to release 2.9.1 or newer. Another option is to modify 13125 *** your PATH or compiler configuration so that the native linker is 13126 *** used, and then restart. 13127 13128 _LT_EOF 13129 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13131 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13132 else 13133 ld_shlibs=no 13134 fi 13135 ;; 13136 13137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13138 case `$LD -v 2>&1` in 13139 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13140 ld_shlibs=no 13141 cat <<_LT_EOF 1>&2 13142 13143 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13144 *** reliably create shared libraries on SCO systems. Therefore, libtool 13145 *** is disabling shared libraries support. We urge you to upgrade GNU 13146 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13147 *** your PATH or compiler configuration so that the native linker is 13148 *** used, and then restart. 13149 13150 _LT_EOF 13151 ;; 13152 *) 13153 # For security reasons, it is highly recommended that you always 13154 # use absolute paths for naming shared libraries, and exclude the 13155 # DT_RUNPATH tag from executables and libraries. But doing so 13156 # requires that you compile everything twice, which is a pain. 13157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13161 else 13162 ld_shlibs=no 13163 fi 13164 ;; 13165 esac 13166 ;; 13167 13168 sunos4*) 13169 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13170 wlarc= 13171 hardcode_direct=yes 13172 hardcode_shlibpath_var=no 13173 ;; 13174 13175 *) 13176 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13178 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13179 else 13180 ld_shlibs=no 13181 fi 13182 ;; 13183 esac 13184 13185 if test no = "$ld_shlibs"; then 13186 runpath_var= 13187 hardcode_libdir_flag_spec= 13188 export_dynamic_flag_spec= 13189 whole_archive_flag_spec= 13190 fi 13191 else 13192 # PORTME fill in a description of your system's linker (not GNU ld) 13193 case $host_os in 13194 aix3*) 13195 allow_undefined_flag=unsupported 13196 always_export_symbols=yes 13197 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' 13198 # Note: this linker hardcodes the directories in LIBPATH if there 13199 # are no directories specified by -L. 13200 hardcode_minus_L=yes 13201 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13202 # Neither direct hardcoding nor static linking is supported with a 13203 # broken collect2. 13204 hardcode_direct=unsupported 13205 fi 13206 ;; 13207 13208 aix[4-9]*) 13209 if test ia64 = "$host_cpu"; then 13210 # On IA64, the linker does run time linking by default, so we don't 13211 # have to do anything special. 13212 aix_use_runtimelinking=no 13213 exp_sym_flag='-Bexport' 13214 no_entry_flag= 13215 else 13216 # If we're using GNU nm, then we don't want the "-C" option. 13217 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13218 # Without the "-l" option, or with the "-B" option, AIX nm treats 13219 # weak defined symbols like other global defined symbols, whereas 13220 # GNU nm marks them as "W". 13221 # While the 'weak' keyword is ignored in the Export File, we need 13222 # it in the Import File for the 'aix-soname' feature, so we have 13223 # to replace the "-B" option with "-P" for AIX nm. 13224 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13225 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' 13226 else 13227 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 == "L") || (\$ 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' 13228 fi 13229 aix_use_runtimelinking=no 13230 13231 # Test if we are trying to use run time linking or normal 13232 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13233 # have runtime linking enabled, and use it for executables. 13234 # For shared libraries, we enable/disable runtime linking 13235 # depending on the kind of the shared library created - 13236 # when "with_aix_soname,aix_use_runtimelinking" is: 13237 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13238 # "aix,yes" lib.so shared, rtl:yes, for executables 13239 # lib.a static archive 13240 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13241 # lib.a(lib.so.V) shared, rtl:no, for executables 13242 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13243 # lib.a(lib.so.V) shared, rtl:no 13244 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13245 # lib.a static archive 13246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13247 for ld_flag in $LDFLAGS; do 13248 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13249 aix_use_runtimelinking=yes 13250 break 13251 fi 13252 done 13253 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13254 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13255 # so we don't have lib.a shared libs to link our executables. 13256 # We have to force runtime linking in this case. 13257 aix_use_runtimelinking=yes 13258 LDFLAGS="$LDFLAGS -Wl,-brtl" 13259 fi 13260 ;; 13261 esac 13262 13263 exp_sym_flag='-bexport' 13264 no_entry_flag='-bnoentry' 13265 fi 13266 13267 # When large executables or shared objects are built, AIX ld can 13268 # have problems creating the table of contents. If linking a library 13269 # or program results in "error TOC overflow" add -mminimal-toc to 13270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13272 13273 archive_cmds='' 13274 hardcode_direct=yes 13275 hardcode_direct_absolute=yes 13276 hardcode_libdir_separator=':' 13277 link_all_deplibs=yes 13278 file_list_spec='$wl-f,' 13279 case $with_aix_soname,$aix_use_runtimelinking in 13280 aix,*) ;; # traditional, no import file 13281 svr4,* | *,yes) # use import file 13282 # The Import File defines what to hardcode. 13283 hardcode_direct=no 13284 hardcode_direct_absolute=no 13285 ;; 13286 esac 13287 13288 if test yes = "$GCC"; then 13289 case $host_os in aix4.[012]|aix4.[012].*) 13290 # We only want to do this on AIX 4.2 and lower, the check 13291 # below for broken collect2 doesn't work under 4.3+ 13292 collect2name=`$CC -print-prog-name=collect2` 13293 if test -f "$collect2name" && 13294 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13295 then 13296 # We have reworked collect2 13297 : 13298 else 13299 # We have old collect2 13300 hardcode_direct=unsupported 13301 # It fails to find uninstalled libraries when the uninstalled 13302 # path is not listed in the libpath. Setting hardcode_minus_L 13303 # to unsupported forces relinking 13304 hardcode_minus_L=yes 13305 hardcode_libdir_flag_spec='-L$libdir' 13306 hardcode_libdir_separator= 13307 fi 13308 ;; 13309 esac 13310 shared_flag='-shared' 13311 if test yes = "$aix_use_runtimelinking"; then 13312 shared_flag="$shared_flag "'$wl-G' 13313 fi 13314 # Need to ensure runtime linking is disabled for the traditional 13315 # shared library, or the linker may eventually find shared libraries 13316 # /with/ Import File - we do not want to mix them. 13317 shared_flag_aix='-shared' 13318 shared_flag_svr4='-shared $wl-G' 13319 else 13320 # not using gcc 13321 if test ia64 = "$host_cpu"; then 13322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13323 # chokes on -Wl,-G. The following line is correct: 13324 shared_flag='-G' 13325 else 13326 if test yes = "$aix_use_runtimelinking"; then 13327 shared_flag='$wl-G' 13328 else 13329 shared_flag='$wl-bM:SRE' 13330 fi 13331 shared_flag_aix='$wl-bM:SRE' 13332 shared_flag_svr4='$wl-G' 13333 fi 13334 fi 13335 13336 export_dynamic_flag_spec='$wl-bexpall' 13337 # It seems that -bexpall does not export symbols beginning with 13338 # underscore (_), so it is better to generate a list of symbols to export. 13339 always_export_symbols=yes 13340 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13341 # Warning - without using the other runtime loading flags (-brtl), 13342 # -berok will link without error, but may produce a broken library. 13343 allow_undefined_flag='-berok' 13344 # Determine the default libpath from the value encoded in an 13345 # empty executable. 13346 if test set = "${lt_cv_aix_libpath+set}"; then 13347 aix_libpath=$lt_cv_aix_libpath 13348 else 13349 if test ${lt_cv_aix_libpath_+y} 13350 then : 13351 printf %s "(cached) " >&6 13352 else $as_nop 13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13354 /* end confdefs.h. */ 13355 13356 int 13357 main (void) 13358 { 13359 13360 ; 13361 return 0; 13362 } 13363 _ACEOF 13364 if ac_fn_c_try_link "$LINENO" 13365 then : 13366 13367 lt_aix_libpath_sed=' 13368 /Import File Strings/,/^$/ { 13369 /^0/ { 13370 s/^0 *\([^ ]*\) *$/\1/ 13371 p 13372 } 13373 }' 13374 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13375 # Check for a 64-bit object if we didn't find anything. 13376 if test -z "$lt_cv_aix_libpath_"; then 13377 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13378 fi 13379 fi 13380 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13381 conftest$ac_exeext conftest.$ac_ext 13382 if test -z "$lt_cv_aix_libpath_"; then 13383 lt_cv_aix_libpath_=/usr/lib:/lib 13384 fi 13385 13386 fi 13387 13388 aix_libpath=$lt_cv_aix_libpath_ 13389 fi 13390 13391 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13392 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 13393 else 13394 if test ia64 = "$host_cpu"; then 13395 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13396 allow_undefined_flag="-z nodefs" 13397 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" 13398 else 13399 # Determine the default libpath from the value encoded in an 13400 # empty executable. 13401 if test set = "${lt_cv_aix_libpath+set}"; then 13402 aix_libpath=$lt_cv_aix_libpath 13403 else 13404 if test ${lt_cv_aix_libpath_+y} 13405 then : 13406 printf %s "(cached) " >&6 13407 else $as_nop 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13409 /* end confdefs.h. */ 13410 13411 int 13412 main (void) 13413 { 13414 13415 ; 13416 return 0; 13417 } 13418 _ACEOF 13419 if ac_fn_c_try_link "$LINENO" 13420 then : 13421 13422 lt_aix_libpath_sed=' 13423 /Import File Strings/,/^$/ { 13424 /^0/ { 13425 s/^0 *\([^ ]*\) *$/\1/ 13426 p 13427 } 13428 }' 13429 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13430 # Check for a 64-bit object if we didn't find anything. 13431 if test -z "$lt_cv_aix_libpath_"; then 13432 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13433 fi 13434 fi 13435 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13436 conftest$ac_exeext conftest.$ac_ext 13437 if test -z "$lt_cv_aix_libpath_"; then 13438 lt_cv_aix_libpath_=/usr/lib:/lib 13439 fi 13440 13441 fi 13442 13443 aix_libpath=$lt_cv_aix_libpath_ 13444 fi 13445 13446 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13447 # Warning - without using the other run time loading flags, 13448 # -berok will link without error, but may produce a broken library. 13449 no_undefined_flag=' $wl-bernotok' 13450 allow_undefined_flag=' $wl-berok' 13451 if test yes = "$with_gnu_ld"; then 13452 # We only use this code for GNU lds that support --whole-archive. 13453 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13454 else 13455 # Exported symbols can be pulled into shared objects from archives 13456 whole_archive_flag_spec='$convenience' 13457 fi 13458 archive_cmds_need_lc=yes 13459 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13460 # -brtl affects multiple linker settings, -berok does not and is overridden later 13461 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13462 if test svr4 != "$with_aix_soname"; then 13463 # This is similar to how AIX traditionally builds its shared libraries. 13464 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' 13465 fi 13466 if test aix != "$with_aix_soname"; then 13467 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' 13468 else 13469 # used by -dlpreopen to get the symbols 13470 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13471 fi 13472 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13473 fi 13474 fi 13475 ;; 13476 13477 amigaos*) 13478 case $host_cpu in 13479 powerpc) 13480 # see comment about AmigaOS4 .so support 13481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13482 archive_expsym_cmds='' 13483 ;; 13484 m68k) 13485 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)' 13486 hardcode_libdir_flag_spec='-L$libdir' 13487 hardcode_minus_L=yes 13488 ;; 13489 esac 13490 ;; 13491 13492 bsdi[45]*) 13493 export_dynamic_flag_spec=-rdynamic 13494 ;; 13495 13496 cygwin* | mingw* | windows* | pw32* | cegcc*) 13497 # When not using gcc, we currently assume that we are using 13498 # Microsoft Visual C++ or Intel C++ Compiler. 13499 # hardcode_libdir_flag_spec is actually meaningless, as there is 13500 # no search path for DLLs. 13501 case $cc_basename in 13502 cl* | icl*) 13503 # Native MSVC or ICC 13504 hardcode_libdir_flag_spec=' ' 13505 allow_undefined_flag=unsupported 13506 always_export_symbols=yes 13507 file_list_spec='@' 13508 # Tell ltmain to make .lib files, not .a files. 13509 libext=lib 13510 # Tell ltmain to make .dll files, not .so files. 13511 shrext_cmds=.dll 13512 # FIXME: Setting linknames here is a bad hack. 13513 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13514 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13515 cp "$export_symbols" "$output_objdir/$soname.def"; 13516 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13517 else 13518 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13519 fi~ 13520 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13521 linknames=' 13522 # The linker will not automatically build a static lib if we build a DLL. 13523 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13524 enable_shared_with_static_runtimes=yes 13525 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13527 # Don't use ranlib 13528 old_postinstall_cmds='chmod 644 $oldlib' 13529 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13530 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13531 case $lt_outputfile in 13532 *.exe|*.EXE) ;; 13533 *) 13534 lt_outputfile=$lt_outputfile.exe 13535 lt_tool_outputfile=$lt_tool_outputfile.exe 13536 ;; 13537 esac~ 13538 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13539 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13540 $RM "$lt_outputfile.manifest"; 13541 fi' 13542 ;; 13543 *) 13544 # Assume MSVC and ICC wrapper 13545 hardcode_libdir_flag_spec=' ' 13546 allow_undefined_flag=unsupported 13547 # Tell ltmain to make .lib files, not .a files. 13548 libext=lib 13549 # Tell ltmain to make .dll files, not .so files. 13550 shrext_cmds=.dll 13551 # FIXME: Setting linknames here is a bad hack. 13552 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13553 # The linker will automatically build a .lib file if we build a DLL. 13554 old_archive_from_new_cmds='true' 13555 # FIXME: Should let the user specify the lib program. 13556 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13557 enable_shared_with_static_runtimes=yes 13558 ;; 13559 esac 13560 ;; 13561 13562 darwin* | rhapsody*) 13563 13564 13565 archive_cmds_need_lc=no 13566 hardcode_direct=no 13567 hardcode_automatic=yes 13568 hardcode_shlibpath_var=unsupported 13569 if test yes = "$lt_cv_ld_force_load"; then 13570 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\"`' 13571 13572 else 13573 whole_archive_flag_spec='' 13574 fi 13575 link_all_deplibs=yes 13576 allow_undefined_flag=$_lt_dar_allow_undefined 13577 case $cc_basename in 13578 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13579 *) _lt_dar_can_shared=$GCC ;; 13580 esac 13581 if test yes = "$_lt_dar_can_shared"; then 13582 output_verbose_link_cmd=func_echo_all 13583 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13584 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13585 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" 13586 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" 13587 13588 else 13589 ld_shlibs=no 13590 fi 13591 13592 ;; 13593 13594 dgux*) 13595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13596 hardcode_libdir_flag_spec='-L$libdir' 13597 hardcode_shlibpath_var=no 13598 ;; 13599 13600 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13601 # support. Future versions do this automatically, but an explicit c++rt0.o 13602 # does not break anything, and helps significantly (at the cost of a little 13603 # extra space). 13604 freebsd2.2*) 13605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13606 hardcode_libdir_flag_spec='-R$libdir' 13607 hardcode_direct=yes 13608 hardcode_shlibpath_var=no 13609 ;; 13610 13611 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13612 freebsd2.*) 13613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13614 hardcode_direct=yes 13615 hardcode_minus_L=yes 13616 hardcode_shlibpath_var=no 13617 ;; 13618 13619 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13620 freebsd* | dragonfly* | midnightbsd*) 13621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13622 hardcode_libdir_flag_spec='-R$libdir' 13623 hardcode_direct=yes 13624 hardcode_shlibpath_var=no 13625 ;; 13626 13627 hpux9*) 13628 if test yes = "$GCC"; then 13629 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' 13630 else 13631 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' 13632 fi 13633 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13634 hardcode_libdir_separator=: 13635 hardcode_direct=yes 13636 13637 # hardcode_minus_L: Not really in the search PATH, 13638 # but as the default location of the library. 13639 hardcode_minus_L=yes 13640 export_dynamic_flag_spec='$wl-E' 13641 ;; 13642 13643 hpux10*) 13644 if test yes,no = "$GCC,$with_gnu_ld"; then 13645 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13646 else 13647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13648 fi 13649 if test no = "$with_gnu_ld"; then 13650 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13651 hardcode_libdir_separator=: 13652 hardcode_direct=yes 13653 hardcode_direct_absolute=yes 13654 export_dynamic_flag_spec='$wl-E' 13655 # hardcode_minus_L: Not really in the search PATH, 13656 # but as the default location of the library. 13657 hardcode_minus_L=yes 13658 fi 13659 ;; 13660 13661 hpux11*) 13662 if test yes,no = "$GCC,$with_gnu_ld"; then 13663 case $host_cpu in 13664 hppa*64*) 13665 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13666 ;; 13667 ia64*) 13668 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13669 ;; 13670 *) 13671 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13672 ;; 13673 esac 13674 else 13675 case $host_cpu in 13676 hppa*64*) 13677 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13678 ;; 13679 ia64*) 13680 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13681 ;; 13682 *) 13683 13684 # Older versions of the 11.00 compiler do not understand -b yet 13685 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13687 printf %s "checking if $CC understands -b... " >&6; } 13688 if test ${lt_cv_prog_compiler__b+y} 13689 then : 13690 printf %s "(cached) " >&6 13691 else $as_nop 13692 lt_cv_prog_compiler__b=no 13693 save_LDFLAGS=$LDFLAGS 13694 LDFLAGS="$LDFLAGS -b" 13695 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13697 # The linker can only warn and ignore the option if not recognized 13698 # So say no if there are warnings 13699 if test -s conftest.err; then 13700 # Append any errors to the config.log. 13701 cat conftest.err 1>&5 13702 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13704 if diff conftest.exp conftest.er2 >/dev/null; then 13705 lt_cv_prog_compiler__b=yes 13706 fi 13707 else 13708 lt_cv_prog_compiler__b=yes 13709 fi 13710 fi 13711 $RM -r conftest* 13712 LDFLAGS=$save_LDFLAGS 13713 13714 fi 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13716 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 13717 13718 if test yes = "$lt_cv_prog_compiler__b"; then 13719 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13720 else 13721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13722 fi 13723 13724 ;; 13725 esac 13726 fi 13727 if test no = "$with_gnu_ld"; then 13728 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13729 hardcode_libdir_separator=: 13730 13731 case $host_cpu in 13732 hppa*64*|ia64*) 13733 hardcode_direct=no 13734 hardcode_shlibpath_var=no 13735 ;; 13736 *) 13737 hardcode_direct=yes 13738 hardcode_direct_absolute=yes 13739 export_dynamic_flag_spec='$wl-E' 13740 13741 # hardcode_minus_L: Not really in the search PATH, 13742 # but as the default location of the library. 13743 hardcode_minus_L=yes 13744 ;; 13745 esac 13746 fi 13747 ;; 13748 13749 irix5* | irix6* | nonstopux*) 13750 if test yes = "$GCC"; then 13751 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' 13752 # Try to use the -exported_symbol ld option, if it does not 13753 # work, assume that -exports_file does not work either and 13754 # implicitly export all symbols. 13755 # This should be the same for all languages, so no per-tag cache variable. 13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13757 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13758 if test ${lt_cv_irix_exported_symbol+y} 13759 then : 13760 printf %s "(cached) " >&6 13761 else $as_nop 13762 save_LDFLAGS=$LDFLAGS 13763 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13765 /* end confdefs.h. */ 13766 int foo (void) { return 0; } 13767 _ACEOF 13768 if ac_fn_c_try_link "$LINENO" 13769 then : 13770 lt_cv_irix_exported_symbol=yes 13771 else $as_nop 13772 lt_cv_irix_exported_symbol=no 13773 fi 13774 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13775 conftest$ac_exeext conftest.$ac_ext 13776 LDFLAGS=$save_LDFLAGS 13777 fi 13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13779 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 13780 if test yes = "$lt_cv_irix_exported_symbol"; then 13781 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' 13782 fi 13783 else 13784 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' 13785 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' 13786 fi 13787 archive_cmds_need_lc='no' 13788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13789 hardcode_libdir_separator=: 13790 inherit_rpath=yes 13791 link_all_deplibs=yes 13792 ;; 13793 13794 linux*) 13795 case $cc_basename in 13796 tcc*) 13797 # Fabrice Bellard et al's Tiny C Compiler 13798 ld_shlibs=yes 13799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13801 ;; 13802 esac 13803 ;; 13804 13805 *-mlibc) 13806 ;; 13807 13808 netbsd* | netbsdelf*-gnu) 13809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13811 else 13812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13813 fi 13814 hardcode_libdir_flag_spec='-R$libdir' 13815 hardcode_direct=yes 13816 hardcode_shlibpath_var=no 13817 ;; 13818 13819 newsos6) 13820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13821 hardcode_direct=yes 13822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13823 hardcode_libdir_separator=: 13824 hardcode_shlibpath_var=no 13825 ;; 13826 13827 *nto* | *qnx*) 13828 ;; 13829 13830 openbsd*) 13831 if test -f /usr/libexec/ld.so; then 13832 hardcode_direct=yes 13833 hardcode_shlibpath_var=no 13834 hardcode_direct_absolute=yes 13835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13838 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13839 export_dynamic_flag_spec='$wl-E' 13840 else 13841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13842 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13843 fi 13844 else 13845 ld_shlibs=no 13846 fi 13847 ;; 13848 13849 os2*) 13850 hardcode_libdir_flag_spec='-L$libdir' 13851 hardcode_minus_L=yes 13852 allow_undefined_flag=unsupported 13853 shrext_cmds=.dll 13854 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13855 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13856 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13857 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13858 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13859 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13860 emximp -o $lib $output_objdir/$libname.def' 13861 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13864 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13865 prefix_cmds="$SED"~ 13866 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13867 prefix_cmds="$prefix_cmds -e 1d"; 13868 fi~ 13869 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13870 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13871 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13872 emximp -o $lib $output_objdir/$libname.def' 13873 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13874 enable_shared_with_static_runtimes=yes 13875 file_list_spec='@' 13876 ;; 13877 13878 osf3*) 13879 if test yes = "$GCC"; then 13880 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13881 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' 13882 else 13883 allow_undefined_flag=' -expect_unresolved \*' 13884 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' 13885 fi 13886 archive_cmds_need_lc='no' 13887 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13888 hardcode_libdir_separator=: 13889 ;; 13890 13891 osf4* | osf5*) # as osf3* with the addition of -msym flag 13892 if test yes = "$GCC"; then 13893 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13894 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' 13895 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13896 else 13897 allow_undefined_flag=' -expect_unresolved \*' 13898 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' 13899 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~ 13900 $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' 13901 13902 # Both c and cxx compiler support -rpath directly 13903 hardcode_libdir_flag_spec='-rpath $libdir' 13904 fi 13905 archive_cmds_need_lc='no' 13906 hardcode_libdir_separator=: 13907 ;; 13908 13909 serenity*) 13910 ;; 13911 13912 solaris*) 13913 no_undefined_flag=' -z defs' 13914 if test yes = "$GCC"; then 13915 wlarc='$wl' 13916 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13918 $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' 13919 else 13920 case `$CC -V 2>&1` in 13921 *"Compilers 5.0"*) 13922 wlarc='' 13923 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13924 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13925 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13926 ;; 13927 *) 13928 wlarc='$wl' 13929 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13931 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13932 ;; 13933 esac 13934 fi 13935 hardcode_libdir_flag_spec='-R$libdir' 13936 hardcode_shlibpath_var=no 13937 case $host_os in 13938 solaris2.[0-5] | solaris2.[0-5].*) ;; 13939 *) 13940 # The compiler driver will combine and reorder linker options, 13941 # but understands '-z linker_flag'. GCC discards it without '$wl', 13942 # but is careful enough not to reorder. 13943 # Supported since Solaris 2.6 (maybe 2.5.1?) 13944 if test yes = "$GCC"; then 13945 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13946 else 13947 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13948 fi 13949 ;; 13950 esac 13951 link_all_deplibs=yes 13952 ;; 13953 13954 sunos4*) 13955 if test sequent = "$host_vendor"; then 13956 # Use $CC to link under sequent, because it throws in some extra .o 13957 # files that make .init and .fini sections work. 13958 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13959 else 13960 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13961 fi 13962 hardcode_libdir_flag_spec='-L$libdir' 13963 hardcode_direct=yes 13964 hardcode_minus_L=yes 13965 hardcode_shlibpath_var=no 13966 ;; 13967 13968 sysv4) 13969 case $host_vendor in 13970 sni) 13971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13972 hardcode_direct=yes # is this really true??? 13973 ;; 13974 siemens) 13975 ## LD is ld it makes a PLAMLIB 13976 ## CC just makes a GrossModule. 13977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13978 reload_cmds='$CC -r -o $output$reload_objs' 13979 hardcode_direct=no 13980 ;; 13981 motorola) 13982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13983 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13984 ;; 13985 esac 13986 runpath_var='LD_RUN_PATH' 13987 hardcode_shlibpath_var=no 13988 ;; 13989 13990 sysv4.3*) 13991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13992 hardcode_shlibpath_var=no 13993 export_dynamic_flag_spec='-Bexport' 13994 ;; 13995 13996 sysv4*MP*) 13997 if test -d /usr/nec; then 13998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13999 hardcode_shlibpath_var=no 14000 runpath_var=LD_RUN_PATH 14001 hardcode_runpath_var=yes 14002 ld_shlibs=yes 14003 fi 14004 ;; 14005 14006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14007 no_undefined_flag='$wl-z,text' 14008 archive_cmds_need_lc=no 14009 hardcode_shlibpath_var=no 14010 runpath_var='LD_RUN_PATH' 14011 14012 if test yes = "$GCC"; then 14013 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14014 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14015 else 14016 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14017 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14018 fi 14019 ;; 14020 14021 sysv5* | sco3.2v5* | sco5v6*) 14022 # Note: We CANNOT use -z defs as we might desire, because we do not 14023 # link with -lc, and that would cause any symbols used from libc to 14024 # always be unresolved, which means just about no library would 14025 # ever link correctly. If we're not using GNU ld we use -z text 14026 # though, which does catch some bad symbols but isn't as heavy-handed 14027 # as -z defs. 14028 no_undefined_flag='$wl-z,text' 14029 allow_undefined_flag='$wl-z,nodefs' 14030 archive_cmds_need_lc=no 14031 hardcode_shlibpath_var=no 14032 hardcode_libdir_flag_spec='$wl-R,$libdir' 14033 hardcode_libdir_separator=':' 14034 link_all_deplibs=yes 14035 export_dynamic_flag_spec='$wl-Bexport' 14036 runpath_var='LD_RUN_PATH' 14037 14038 if test yes = "$GCC"; then 14039 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14040 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14041 else 14042 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14043 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14044 fi 14045 ;; 14046 14047 uts4*) 14048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14049 hardcode_libdir_flag_spec='-L$libdir' 14050 hardcode_shlibpath_var=no 14051 ;; 14052 14053 *) 14054 ld_shlibs=no 14055 ;; 14056 esac 14057 14058 if test sni = "$host_vendor"; then 14059 case $host in 14060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14061 export_dynamic_flag_spec='$wl-Blargedynsym' 14062 ;; 14063 esac 14064 fi 14065 fi 14066 14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14068 printf "%s\n" "$ld_shlibs" >&6; } 14069 test no = "$ld_shlibs" && can_build_shared=no 14070 14071 with_gnu_ld=$with_gnu_ld 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 # 14088 # Do we need to explicitly link libc? 14089 # 14090 case "x$archive_cmds_need_lc" in 14091 x|xyes) 14092 # Assume -lc should be added 14093 archive_cmds_need_lc=yes 14094 14095 if test yes,yes = "$GCC,$enable_shared"; then 14096 case $archive_cmds in 14097 *'~'*) 14098 # FIXME: we may have to deal with multi-command sequences. 14099 ;; 14100 '$CC '*) 14101 # Test whether the compiler implicitly links with -lc since on some 14102 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14103 # to ld, don't add -lc before -lgcc. 14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14105 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 14106 if test ${lt_cv_archive_cmds_need_lc+y} 14107 then : 14108 printf %s "(cached) " >&6 14109 else $as_nop 14110 $RM conftest* 14111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14112 14113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14114 (eval $ac_compile) 2>&5 14115 ac_status=$? 14116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14117 test $ac_status = 0; } 2>conftest.err; then 14118 soname=conftest 14119 lib=conftest 14120 libobjs=conftest.$ac_objext 14121 deplibs= 14122 wl=$lt_prog_compiler_wl 14123 pic_flag=$lt_prog_compiler_pic 14124 compiler_flags=-v 14125 linker_flags=-v 14126 verstring= 14127 output_objdir=. 14128 libname=conftest 14129 lt_save_allow_undefined_flag=$allow_undefined_flag 14130 allow_undefined_flag= 14131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14132 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14133 ac_status=$? 14134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14135 test $ac_status = 0; } 14136 then 14137 lt_cv_archive_cmds_need_lc=no 14138 else 14139 lt_cv_archive_cmds_need_lc=yes 14140 fi 14141 allow_undefined_flag=$lt_save_allow_undefined_flag 14142 else 14143 cat conftest.err 1>&5 14144 fi 14145 $RM conftest* 14146 14147 fi 14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14149 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 14150 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14151 ;; 14152 esac 14153 fi 14154 ;; 14155 esac 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14309 printf %s "checking dynamic linker characteristics... " >&6; } 14310 14311 if test yes = "$GCC"; then 14312 case $host_os in 14313 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14314 *) lt_awk_arg='/^libraries:/' ;; 14315 esac 14316 case $host_os in 14317 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14318 *) lt_sed_strip_eq='s|=/|/|g' ;; 14319 esac 14320 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14321 case $lt_search_path_spec in 14322 *\;*) 14323 # if the path contains ";" then we assume it to be the separator 14324 # otherwise default to the standard path separator (i.e. ":") - it is 14325 # assumed that no part of a normal pathname contains ";" but that should 14326 # okay in the real world where ";" in dirpaths is itself problematic. 14327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14328 ;; 14329 *) 14330 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14331 ;; 14332 esac 14333 # Ok, now we have the path, separated by spaces, we can step through it 14334 # and add multilib dir if necessary... 14335 lt_tmp_lt_search_path_spec= 14336 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14337 # ...but if some path component already ends with the multilib dir we assume 14338 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14339 case "$lt_multi_os_dir; $lt_search_path_spec " in 14340 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14341 lt_multi_os_dir= 14342 ;; 14343 esac 14344 for lt_sys_path in $lt_search_path_spec; do 14345 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14346 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14347 elif test -n "$lt_multi_os_dir"; then 14348 test -d "$lt_sys_path" && \ 14349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14350 fi 14351 done 14352 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14353 BEGIN {RS = " "; FS = "/|\n";} { 14354 lt_foo = ""; 14355 lt_count = 0; 14356 for (lt_i = NF; lt_i > 0; lt_i--) { 14357 if ($lt_i != "" && $lt_i != ".") { 14358 if ($lt_i == "..") { 14359 lt_count++; 14360 } else { 14361 if (lt_count == 0) { 14362 lt_foo = "/" $lt_i lt_foo; 14363 } else { 14364 lt_count--; 14365 } 14366 } 14367 } 14368 } 14369 if (lt_foo != "") { lt_freq[lt_foo]++; } 14370 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14371 }'` 14372 # AWK program above erroneously prepends '/' to C:/dos/paths 14373 # for these hosts. 14374 case $host_os in 14375 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14376 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14377 esac 14378 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14379 else 14380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14381 fi 14382 library_names_spec= 14383 libname_spec='lib$name' 14384 soname_spec= 14385 shrext_cmds=.so 14386 postinstall_cmds= 14387 postuninstall_cmds= 14388 finish_cmds= 14389 finish_eval= 14390 shlibpath_var= 14391 shlibpath_overrides_runpath=unknown 14392 version_type=none 14393 dynamic_linker="$host_os ld.so" 14394 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14395 need_lib_prefix=unknown 14396 hardcode_into_libs=no 14397 14398 # when you set need_version to no, make sure it does not cause -set_version 14399 # flags to be left without arguments 14400 need_version=unknown 14401 14402 14403 14404 case $host_os in 14405 aix3*) 14406 version_type=linux # correct to gnu/linux during the next big refactor 14407 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14408 shlibpath_var=LIBPATH 14409 14410 # AIX 3 has no versioning support, so we append a major version to the name. 14411 soname_spec='$libname$release$shared_ext$major' 14412 ;; 14413 14414 aix[4-9]*) 14415 version_type=linux # correct to gnu/linux during the next big refactor 14416 need_lib_prefix=no 14417 need_version=no 14418 hardcode_into_libs=yes 14419 if test ia64 = "$host_cpu"; then 14420 # AIX 5 supports IA64 14421 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14422 shlibpath_var=LD_LIBRARY_PATH 14423 else 14424 # With GCC up to 2.95.x, collect2 would create an import file 14425 # for dependence libraries. The import file would start with 14426 # the line '#! .'. This would cause the generated library to 14427 # depend on '.', always an invalid library. This was fixed in 14428 # development snapshots of GCC prior to 3.0. 14429 case $host_os in 14430 aix4 | aix4.[01] | aix4.[01].*) 14431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14432 echo ' yes ' 14433 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14434 : 14435 else 14436 can_build_shared=no 14437 fi 14438 ;; 14439 esac 14440 # Using Import Files as archive members, it is possible to support 14441 # filename-based versioning of shared library archives on AIX. While 14442 # this would work for both with and without runtime linking, it will 14443 # prevent static linking of such archives. So we do filename-based 14444 # shared library versioning with .so extension only, which is used 14445 # when both runtime linking and shared linking is enabled. 14446 # Unfortunately, runtime linking may impact performance, so we do 14447 # not want this to be the default eventually. Also, we use the 14448 # versioned .so libs for executables only if there is the -brtl 14449 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 14450 # To allow for filename-based versioning support, we need to create 14451 # libNAME.so.V as an archive file, containing: 14452 # *) an Import File, referring to the versioned filename of the 14453 # archive as well as the shared archive member, telling the 14454 # bitwidth (32 or 64) of that shared object, and providing the 14455 # list of exported symbols of that shared object, eventually 14456 # decorated with the 'weak' keyword 14457 # *) the shared object with the F_LOADONLY flag set, to really avoid 14458 # it being seen by the linker. 14459 # At run time we better use the real file rather than another symlink, 14460 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14461 14462 case $with_aix_soname,$aix_use_runtimelinking in 14463 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14464 # soname into executable. Probably we can add versioning support to 14465 # collect2, so additional links can be useful in future. 14466 aix,yes) # traditional libtool 14467 dynamic_linker='AIX unversionable lib.so' 14468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14469 # instead of lib<name>.a to let people know that these are not 14470 # typical AIX shared libraries. 14471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14472 ;; 14473 aix,no) # traditional AIX only 14474 dynamic_linker='AIX lib.a(lib.so.V)' 14475 # We preserve .a as extension for shared libraries through AIX4.2 14476 # and later when we are not doing run time linking. 14477 library_names_spec='$libname$release.a $libname.a' 14478 soname_spec='$libname$release$shared_ext$major' 14479 ;; 14480 svr4,*) # full svr4 only 14481 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14482 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14483 # We do not specify a path in Import Files, so LIBPATH fires. 14484 shlibpath_overrides_runpath=yes 14485 ;; 14486 *,yes) # both, prefer svr4 14487 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14488 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14489 # unpreferred sharedlib libNAME.a needs extra handling 14490 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"' 14491 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"' 14492 # We do not specify a path in Import Files, so LIBPATH fires. 14493 shlibpath_overrides_runpath=yes 14494 ;; 14495 *,no) # both, prefer aix 14496 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14497 library_names_spec='$libname$release.a $libname.a' 14498 soname_spec='$libname$release$shared_ext$major' 14499 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14500 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)' 14501 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"' 14502 ;; 14503 esac 14504 shlibpath_var=LIBPATH 14505 fi 14506 ;; 14507 14508 amigaos*) 14509 case $host_cpu in 14510 powerpc) 14511 # Since July 2007 AmigaOS4 officially supports .so libraries. 14512 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14514 ;; 14515 m68k) 14516 library_names_spec='$libname.ixlibrary $libname.a' 14517 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14518 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' 14519 ;; 14520 esac 14521 ;; 14522 14523 beos*) 14524 library_names_spec='$libname$shared_ext' 14525 dynamic_linker="$host_os ld.so" 14526 shlibpath_var=LIBRARY_PATH 14527 ;; 14528 14529 bsdi[45]*) 14530 version_type=linux # correct to gnu/linux during the next big refactor 14531 need_version=no 14532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14533 soname_spec='$libname$release$shared_ext$major' 14534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14535 shlibpath_var=LD_LIBRARY_PATH 14536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14538 # the default ld.so.conf also contains /usr/contrib/lib and 14539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14540 # libtool to hard-code these into programs 14541 ;; 14542 14543 cygwin* | mingw* | windows* | pw32* | cegcc*) 14544 version_type=windows 14545 shrext_cmds=.dll 14546 need_version=no 14547 need_lib_prefix=no 14548 14549 case $GCC,$cc_basename in 14550 yes,*) 14551 # gcc 14552 library_names_spec='$libname.dll.a' 14553 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14554 # If user builds GCC with multilib enabled, 14555 # it should just install on $(libdir) 14556 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 14557 if test xyes = x"$multilib"; then 14558 postinstall_cmds='base_file=`basename \$file`~ 14559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14560 dldir=$destdir/`dirname \$dlpath`~ 14561 $install_prog $dir/$dlname $destdir/$dlname~ 14562 chmod a+x $destdir/$dlname~ 14563 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14564 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 14565 fi' 14566 else 14567 postinstall_cmds='base_file=`basename \$file`~ 14568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14569 dldir=$destdir/`dirname \$dlpath`~ 14570 test -d \$dldir || mkdir -p \$dldir~ 14571 $install_prog $dir/$dlname \$dldir/$dlname~ 14572 chmod a+x \$dldir/$dlname~ 14573 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14574 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14575 fi' 14576 fi 14577 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14578 dlpath=$dir/\$dldll~ 14579 $RM \$dlpath' 14580 shlibpath_overrides_runpath=yes 14581 14582 case $host_os in 14583 cygwin*) 14584 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14585 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14586 14587 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14588 ;; 14589 mingw* | windows* | cegcc*) 14590 # MinGW DLLs use traditional 'lib' prefix 14591 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14592 ;; 14593 pw32*) 14594 # pw32 DLLs use 'pw' prefix rather than 'lib' 14595 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14596 ;; 14597 esac 14598 dynamic_linker='Win32 ld.exe' 14599 ;; 14600 14601 *,cl* | *,icl*) 14602 # Native MSVC or ICC 14603 libname_spec='$name' 14604 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14605 library_names_spec='$libname.dll.lib' 14606 14607 case $build_os in 14608 mingw* | windows*) 14609 sys_lib_search_path_spec= 14610 lt_save_ifs=$IFS 14611 IFS=';' 14612 for lt_path in $LIB 14613 do 14614 IFS=$lt_save_ifs 14615 # Let DOS variable expansion print the short 8.3 style file name. 14616 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14617 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14618 done 14619 IFS=$lt_save_ifs 14620 # Convert to MSYS style. 14621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14622 ;; 14623 cygwin*) 14624 # Convert to unix form, then to dos form, then back to unix form 14625 # but this time dos style (no spaces!) so that the unix form looks 14626 # like /cygdrive/c/PROGRA~1:/cygdr... 14627 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14628 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14629 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14630 ;; 14631 *) 14632 sys_lib_search_path_spec=$LIB 14633 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14634 # It is most probably a Windows format PATH. 14635 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14636 else 14637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14638 fi 14639 # FIXME: find the short name or the path components, as spaces are 14640 # common. (e.g. "Program Files" -> "PROGRA~1") 14641 ;; 14642 esac 14643 14644 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14645 postinstall_cmds='base_file=`basename \$file`~ 14646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14647 dldir=$destdir/`dirname \$dlpath`~ 14648 test -d \$dldir || mkdir -p \$dldir~ 14649 $install_prog $dir/$dlname \$dldir/$dlname' 14650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14651 dlpath=$dir/\$dldll~ 14652 $RM \$dlpath' 14653 shlibpath_overrides_runpath=yes 14654 dynamic_linker='Win32 link.exe' 14655 ;; 14656 14657 *) 14658 # Assume MSVC and ICC wrapper 14659 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14660 dynamic_linker='Win32 ld.exe' 14661 ;; 14662 esac 14663 # FIXME: first we should search . and the directory the executable is in 14664 shlibpath_var=PATH 14665 ;; 14666 14667 darwin* | rhapsody*) 14668 dynamic_linker="$host_os dyld" 14669 version_type=darwin 14670 need_lib_prefix=no 14671 need_version=no 14672 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14673 soname_spec='$libname$release$major$shared_ext' 14674 shlibpath_overrides_runpath=yes 14675 shlibpath_var=DYLD_LIBRARY_PATH 14676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14677 14678 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14680 ;; 14681 14682 dgux*) 14683 version_type=linux # correct to gnu/linux during the next big refactor 14684 need_lib_prefix=no 14685 need_version=no 14686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14687 soname_spec='$libname$release$shared_ext$major' 14688 shlibpath_var=LD_LIBRARY_PATH 14689 ;; 14690 14691 freebsd* | dragonfly* | midnightbsd*) 14692 # DragonFly does not have aout. When/if they implement a new 14693 # versioning mechanism, adjust this. 14694 if test -x /usr/bin/objformat; then 14695 objformat=`/usr/bin/objformat` 14696 else 14697 case $host_os in 14698 freebsd[23].*) objformat=aout ;; 14699 *) objformat=elf ;; 14700 esac 14701 fi 14702 version_type=freebsd-$objformat 14703 case $version_type in 14704 freebsd-elf*) 14705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14706 soname_spec='$libname$release$shared_ext$major' 14707 need_version=no 14708 need_lib_prefix=no 14709 ;; 14710 freebsd-*) 14711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14712 need_version=yes 14713 ;; 14714 esac 14715 case $host_cpu in 14716 powerpc64) 14717 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 14718 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720 /* end confdefs.h. */ 14721 int test_pointer_size[sizeof (void *) - 5]; 14722 14723 _ACEOF 14724 if ac_fn_c_try_compile "$LINENO" 14725 then : 14726 shlibpath_var=LD_LIBRARY_PATH 14727 else $as_nop 14728 shlibpath_var=LD_32_LIBRARY_PATH 14729 fi 14730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14731 ;; 14732 *) 14733 shlibpath_var=LD_LIBRARY_PATH 14734 ;; 14735 esac 14736 case $host_os in 14737 freebsd2.*) 14738 shlibpath_overrides_runpath=yes 14739 ;; 14740 freebsd3.[01]* | freebsdelf3.[01]*) 14741 shlibpath_overrides_runpath=yes 14742 hardcode_into_libs=yes 14743 ;; 14744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14746 shlibpath_overrides_runpath=no 14747 hardcode_into_libs=yes 14748 ;; 14749 *) # from 4.6 on, and DragonFly 14750 shlibpath_overrides_runpath=yes 14751 hardcode_into_libs=yes 14752 ;; 14753 esac 14754 ;; 14755 14756 haiku*) 14757 version_type=linux # correct to gnu/linux during the next big refactor 14758 need_lib_prefix=no 14759 need_version=no 14760 dynamic_linker="$host_os runtime_loader" 14761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14762 soname_spec='$libname$release$shared_ext$major' 14763 shlibpath_var=LIBRARY_PATH 14764 shlibpath_overrides_runpath=no 14765 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 14766 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 14767 hardcode_into_libs=no 14768 ;; 14769 14770 hpux9* | hpux10* | hpux11*) 14771 # Give a soname corresponding to the major version so that dld.sl refuses to 14772 # link against other versions. 14773 version_type=sunos 14774 need_lib_prefix=no 14775 need_version=no 14776 case $host_cpu in 14777 ia64*) 14778 shrext_cmds='.so' 14779 hardcode_into_libs=yes 14780 dynamic_linker="$host_os dld.so" 14781 shlibpath_var=LD_LIBRARY_PATH 14782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14784 soname_spec='$libname$release$shared_ext$major' 14785 if test 32 = "$HPUX_IA64_MODE"; then 14786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14787 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14788 else 14789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14790 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14791 fi 14792 ;; 14793 hppa*64*) 14794 shrext_cmds='.sl' 14795 hardcode_into_libs=yes 14796 dynamic_linker="$host_os dld.sl" 14797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14800 soname_spec='$libname$release$shared_ext$major' 14801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14803 ;; 14804 *) 14805 shrext_cmds='.sl' 14806 dynamic_linker="$host_os dld.sl" 14807 shlibpath_var=SHLIB_PATH 14808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14810 soname_spec='$libname$release$shared_ext$major' 14811 ;; 14812 esac 14813 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14814 postinstall_cmds='chmod 555 $lib' 14815 # or fails outright, so override atomically: 14816 install_override_mode=555 14817 ;; 14818 14819 interix[3-9]*) 14820 version_type=linux # correct to gnu/linux during the next big refactor 14821 need_lib_prefix=no 14822 need_version=no 14823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14824 soname_spec='$libname$release$shared_ext$major' 14825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14826 shlibpath_var=LD_LIBRARY_PATH 14827 shlibpath_overrides_runpath=no 14828 hardcode_into_libs=yes 14829 ;; 14830 14831 irix5* | irix6* | nonstopux*) 14832 case $host_os in 14833 nonstopux*) version_type=nonstopux ;; 14834 *) 14835 if test yes = "$lt_cv_prog_gnu_ld"; then 14836 version_type=linux # correct to gnu/linux during the next big refactor 14837 else 14838 version_type=irix 14839 fi ;; 14840 esac 14841 need_lib_prefix=no 14842 need_version=no 14843 soname_spec='$libname$release$shared_ext$major' 14844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14845 case $host_os in 14846 irix5* | nonstopux*) 14847 libsuff= shlibsuff= 14848 ;; 14849 *) 14850 case $LD in # libtool.m4 will add one of these switches to LD 14851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14852 libsuff= shlibsuff= libmagic=32-bit;; 14853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14854 libsuff=32 shlibsuff=N32 libmagic=N32;; 14855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14856 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14857 *) libsuff= shlibsuff= libmagic=never-match;; 14858 esac 14859 ;; 14860 esac 14861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14862 shlibpath_overrides_runpath=no 14863 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14864 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14865 hardcode_into_libs=yes 14866 ;; 14867 14868 # No shared lib support for Linux oldld, aout, or coff. 14869 linux*oldld* | linux*aout* | linux*coff*) 14870 dynamic_linker=no 14871 ;; 14872 14873 linux*android*) 14874 version_type=none # Android doesn't support versioned libraries. 14875 need_lib_prefix=no 14876 need_version=no 14877 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 14878 soname_spec='$libname$release$shared_ext' 14879 finish_cmds= 14880 shlibpath_var=LD_LIBRARY_PATH 14881 shlibpath_overrides_runpath=yes 14882 14883 # This implies no fast_install, which is unacceptable. 14884 # Some rework will be needed to allow for fast_install 14885 # before this can be enabled. 14886 hardcode_into_libs=yes 14887 14888 dynamic_linker='Android linker' 14889 # -rpath works at least for libraries that are not overridden by 14890 # libraries installed in system locations. 14891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14892 ;; 14893 14894 # This must be glibc/ELF. 14895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14896 version_type=linux # correct to gnu/linux during the next big refactor 14897 need_lib_prefix=no 14898 need_version=no 14899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14900 soname_spec='$libname$release$shared_ext$major' 14901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14902 shlibpath_var=LD_LIBRARY_PATH 14903 shlibpath_overrides_runpath=no 14904 14905 # Some binutils ld are patched to set DT_RUNPATH 14906 if test ${lt_cv_shlibpath_overrides_runpath+y} 14907 then : 14908 printf %s "(cached) " >&6 14909 else $as_nop 14910 lt_cv_shlibpath_overrides_runpath=no 14911 save_LDFLAGS=$LDFLAGS 14912 save_libdir=$libdir 14913 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14914 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916 /* end confdefs.h. */ 14917 14918 int 14919 main (void) 14920 { 14921 14922 ; 14923 return 0; 14924 } 14925 _ACEOF 14926 if ac_fn_c_try_link "$LINENO" 14927 then : 14928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 14929 then : 14930 lt_cv_shlibpath_overrides_runpath=yes 14931 fi 14932 fi 14933 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14934 conftest$ac_exeext conftest.$ac_ext 14935 LDFLAGS=$save_LDFLAGS 14936 libdir=$save_libdir 14937 14938 fi 14939 14940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14941 14942 # This implies no fast_install, which is unacceptable. 14943 # Some rework will be needed to allow for fast_install 14944 # before this can be enabled. 14945 hardcode_into_libs=yes 14946 14947 # Add ABI-specific directories to the system library path. 14948 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 14949 14950 # Ideally, we could use ldconfig to report *all* directories which are 14951 # searched for libraries, however this is still not possible. Aside from not 14952 # being certain /sbin/ldconfig is available, command 14953 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14954 # even though it is searched at run-time. Try to do the best guess by 14955 # appending ld.so.conf contents (and includes) to the search path. 14956 if test -f /etc/ld.so.conf; then 14957 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' ' '` 14958 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14959 fi 14960 14961 # We used to test for /lib/ld.so.1 and disable shared libraries on 14962 # powerpc, because MkLinux only supported shared libraries with the 14963 # GNU dynamic linker. Since this was broken with cross compilers, 14964 # most powerpc-linux boxes support dynamic linking these days and 14965 # people can always --disable-shared, the test was removed, and we 14966 # assume the GNU/Linux dynamic linker is in use. 14967 dynamic_linker='GNU/Linux ld.so' 14968 ;; 14969 14970 netbsdelf*-gnu) 14971 version_type=linux 14972 need_lib_prefix=no 14973 need_version=no 14974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14975 soname_spec='$libname$release$shared_ext$major' 14976 shlibpath_var=LD_LIBRARY_PATH 14977 shlibpath_overrides_runpath=no 14978 hardcode_into_libs=yes 14979 dynamic_linker='NetBSD ld.elf_so' 14980 ;; 14981 14982 netbsd*) 14983 version_type=sunos 14984 need_lib_prefix=no 14985 need_version=no 14986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14987 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14989 dynamic_linker='NetBSD (a.out) ld.so' 14990 else 14991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14992 soname_spec='$libname$release$shared_ext$major' 14993 dynamic_linker='NetBSD ld.elf_so' 14994 fi 14995 shlibpath_var=LD_LIBRARY_PATH 14996 shlibpath_overrides_runpath=yes 14997 hardcode_into_libs=yes 14998 ;; 14999 15000 *-mlibc) 15001 version_type=linux # correct to gnu/linux during the next big refactor 15002 need_lib_prefix=no 15003 need_version=no 15004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15005 soname_spec='$libname$release$shared_ext$major' 15006 dynamic_linker='mlibc ld.so' 15007 shlibpath_var=LD_LIBRARY_PATH 15008 shlibpath_overrides_runpath=no 15009 hardcode_into_libs=yes 15010 ;; 15011 15012 newsos6) 15013 version_type=linux # correct to gnu/linux during the next big refactor 15014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15015 shlibpath_var=LD_LIBRARY_PATH 15016 shlibpath_overrides_runpath=yes 15017 ;; 15018 15019 *nto* | *qnx*) 15020 version_type=qnx 15021 need_lib_prefix=no 15022 need_version=no 15023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15024 soname_spec='$libname$release$shared_ext$major' 15025 shlibpath_var=LD_LIBRARY_PATH 15026 shlibpath_overrides_runpath=no 15027 hardcode_into_libs=yes 15028 dynamic_linker='ldqnx.so' 15029 ;; 15030 15031 openbsd*) 15032 version_type=sunos 15033 sys_lib_dlsearch_path_spec=/usr/lib 15034 need_lib_prefix=no 15035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15036 need_version=no 15037 else 15038 need_version=yes 15039 fi 15040 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15042 shlibpath_var=LD_LIBRARY_PATH 15043 shlibpath_overrides_runpath=yes 15044 ;; 15045 15046 os2*) 15047 libname_spec='$name' 15048 version_type=windows 15049 shrext_cmds=.dll 15050 need_version=no 15051 need_lib_prefix=no 15052 # OS/2 can only load a DLL with a base name of 8 characters or less. 15053 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15054 v=$($ECHO $release$versuffix | tr -d .-); 15055 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15056 $ECHO $n$v`$shared_ext' 15057 library_names_spec='${libname}_dll.$libext' 15058 dynamic_linker='OS/2 ld.exe' 15059 shlibpath_var=BEGINLIBPATH 15060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15062 postinstall_cmds='base_file=`basename \$file`~ 15063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15064 dldir=$destdir/`dirname \$dlpath`~ 15065 test -d \$dldir || mkdir -p \$dldir~ 15066 $install_prog $dir/$dlname \$dldir/$dlname~ 15067 chmod a+x \$dldir/$dlname~ 15068 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15069 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15070 fi' 15071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15072 dlpath=$dir/\$dldll~ 15073 $RM \$dlpath' 15074 ;; 15075 15076 osf3* | osf4* | osf5*) 15077 version_type=osf 15078 need_lib_prefix=no 15079 need_version=no 15080 soname_spec='$libname$release$shared_ext$major' 15081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15082 shlibpath_var=LD_LIBRARY_PATH 15083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15085 ;; 15086 15087 rdos*) 15088 dynamic_linker=no 15089 ;; 15090 15091 serenity*) 15092 version_type=linux # correct to gnu/linux during the next big refactor 15093 need_lib_prefix=no 15094 need_version=no 15095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15096 soname_spec='$libname$release$shared_ext$major' 15097 shlibpath_var=LD_LIBRARY_PATH 15098 shlibpath_overrides_runpath=no 15099 dynamic_linker='SerenityOS LibELF' 15100 ;; 15101 15102 solaris*) 15103 version_type=linux # correct to gnu/linux during the next big refactor 15104 need_lib_prefix=no 15105 need_version=no 15106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15107 soname_spec='$libname$release$shared_ext$major' 15108 shlibpath_var=LD_LIBRARY_PATH 15109 shlibpath_overrides_runpath=yes 15110 hardcode_into_libs=yes 15111 # ldd complains unless libraries are executable 15112 postinstall_cmds='chmod +x $lib' 15113 ;; 15114 15115 sunos4*) 15116 version_type=sunos 15117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15119 shlibpath_var=LD_LIBRARY_PATH 15120 shlibpath_overrides_runpath=yes 15121 if test yes = "$with_gnu_ld"; then 15122 need_lib_prefix=no 15123 fi 15124 need_version=yes 15125 ;; 15126 15127 sysv4 | sysv4.3*) 15128 version_type=linux # correct to gnu/linux during the next big refactor 15129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15130 soname_spec='$libname$release$shared_ext$major' 15131 shlibpath_var=LD_LIBRARY_PATH 15132 case $host_vendor in 15133 sni) 15134 shlibpath_overrides_runpath=no 15135 need_lib_prefix=no 15136 runpath_var=LD_RUN_PATH 15137 ;; 15138 siemens) 15139 need_lib_prefix=no 15140 ;; 15141 motorola) 15142 need_lib_prefix=no 15143 need_version=no 15144 shlibpath_overrides_runpath=no 15145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15146 ;; 15147 esac 15148 ;; 15149 15150 sysv4*MP*) 15151 if test -d /usr/nec; then 15152 version_type=linux # correct to gnu/linux during the next big refactor 15153 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15154 soname_spec='$libname$shared_ext.$major' 15155 shlibpath_var=LD_LIBRARY_PATH 15156 fi 15157 ;; 15158 15159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15160 version_type=sco 15161 need_lib_prefix=no 15162 need_version=no 15163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15164 soname_spec='$libname$release$shared_ext$major' 15165 shlibpath_var=LD_LIBRARY_PATH 15166 shlibpath_overrides_runpath=yes 15167 hardcode_into_libs=yes 15168 if test yes = "$with_gnu_ld"; then 15169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15170 else 15171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15172 case $host_os in 15173 sco3.2v5*) 15174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15175 ;; 15176 esac 15177 fi 15178 sys_lib_dlsearch_path_spec='/usr/lib' 15179 ;; 15180 15181 tpf*) 15182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15183 version_type=linux # correct to gnu/linux during the next big refactor 15184 need_lib_prefix=no 15185 need_version=no 15186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15187 shlibpath_var=LD_LIBRARY_PATH 15188 shlibpath_overrides_runpath=no 15189 hardcode_into_libs=yes 15190 ;; 15191 15192 uts4*) 15193 version_type=linux # correct to gnu/linux during the next big refactor 15194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15195 soname_spec='$libname$release$shared_ext$major' 15196 shlibpath_var=LD_LIBRARY_PATH 15197 ;; 15198 15199 emscripten*) 15200 version_type=none 15201 need_lib_prefix=no 15202 need_version=no 15203 library_names_spec='$libname$release$shared_ext' 15204 soname_spec='$libname$release$shared_ext' 15205 finish_cmds= 15206 dynamic_linker="Emscripten linker" 15207 lt_prog_compiler_wl= 15208 lt_prog_compiler_pic= 15209 lt_prog_compiler_static= 15210 15211 15212 if test yes = "$GCC"; then 15213 lt_prog_compiler_wl='-Wl,' 15214 lt_prog_compiler_static='-static' 15215 15216 case $host_os in 15217 aix*) 15218 # All AIX code is PIC. 15219 if test ia64 = "$host_cpu"; then 15220 # AIX 5 now supports IA64 processor 15221 lt_prog_compiler_static='-Bstatic' 15222 fi 15223 lt_prog_compiler_pic='-fPIC' 15224 ;; 15225 15226 amigaos*) 15227 case $host_cpu in 15228 powerpc) 15229 # see comment about AmigaOS4 .so support 15230 lt_prog_compiler_pic='-fPIC' 15231 ;; 15232 m68k) 15233 # FIXME: we need at least 68020 code to build shared libraries, but 15234 # adding the '-m68020' flag to GCC prevents building anything better, 15235 # like '-m68040'. 15236 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15237 ;; 15238 esac 15239 ;; 15240 15241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15242 # PIC is the default for these OSes. 15243 ;; 15244 15245 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 15246 # This hack is so that the source file can tell whether it is being 15247 # built for inclusion in a dll (and should export symbols for example). 15248 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15249 # (--disable-auto-import) libraries 15250 lt_prog_compiler_pic='-DDLL_EXPORT' 15251 case $host_os in 15252 os2*) 15253 lt_prog_compiler_static='$wl-static' 15254 ;; 15255 esac 15256 ;; 15257 15258 darwin* | rhapsody*) 15259 # PIC is the default on this platform 15260 # Common symbols not allowed in MH_DYLIB files 15261 lt_prog_compiler_pic='-fno-common' 15262 ;; 15263 15264 haiku*) 15265 # PIC is the default for Haiku. 15266 # The "-static" flag exists, but is broken. 15267 lt_prog_compiler_static= 15268 ;; 15269 15270 hpux*) 15271 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15272 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15273 # sets the default TLS model and affects inlining. 15274 case $host_cpu in 15275 hppa*64*) 15276 # +Z the default 15277 ;; 15278 *) 15279 lt_prog_compiler_pic='-fPIC' 15280 ;; 15281 esac 15282 ;; 15283 15284 interix[3-9]*) 15285 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15286 # Instead, we relocate shared libraries at runtime. 15287 ;; 15288 15289 msdosdjgpp*) 15290 # Just because we use GCC doesn't mean we suddenly get shared libraries 15291 # on systems that don't support them. 15292 lt_prog_compiler_can_build_shared=no 15293 enable_shared=no 15294 ;; 15295 15296 *nto* | *qnx*) 15297 # QNX uses GNU C++, but need to define -shared option too, otherwise 15298 # it will coredump. 15299 lt_prog_compiler_pic='-fPIC -shared' 15300 ;; 15301 15302 sysv4*MP*) 15303 if test -d /usr/nec; then 15304 lt_prog_compiler_pic=-Kconform_pic 15305 fi 15306 ;; 15307 15308 *) 15309 lt_prog_compiler_pic='-fPIC' 15310 ;; 15311 esac 15312 15313 case $cc_basename in 15314 nvcc*) # Cuda Compiler Driver 2.2 15315 lt_prog_compiler_wl='-Xlinker ' 15316 if test -n "$lt_prog_compiler_pic"; then 15317 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15318 fi 15319 ;; 15320 esac 15321 else 15322 # PORTME Check for flag to pass linker flags through the system compiler. 15323 case $host_os in 15324 aix*) 15325 lt_prog_compiler_wl='-Wl,' 15326 if test ia64 = "$host_cpu"; then 15327 # AIX 5 now supports IA64 processor 15328 lt_prog_compiler_static='-Bstatic' 15329 else 15330 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15331 fi 15332 ;; 15333 15334 darwin* | rhapsody*) 15335 # PIC is the default on this platform 15336 # Common symbols not allowed in MH_DYLIB files 15337 lt_prog_compiler_pic='-fno-common' 15338 case $cc_basename in 15339 nagfor*) 15340 # NAG Fortran compiler 15341 lt_prog_compiler_wl='-Wl,-Wl,,' 15342 lt_prog_compiler_pic='-PIC' 15343 lt_prog_compiler_static='-Bstatic' 15344 ;; 15345 esac 15346 ;; 15347 15348 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 15349 # This hack is so that the source file can tell whether it is being 15350 # built for inclusion in a dll (and should export symbols for example). 15351 lt_prog_compiler_pic='-DDLL_EXPORT' 15352 case $host_os in 15353 os2*) 15354 lt_prog_compiler_static='$wl-static' 15355 ;; 15356 esac 15357 ;; 15358 15359 hpux9* | hpux10* | hpux11*) 15360 lt_prog_compiler_wl='-Wl,' 15361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15362 # not for PA HP-UX. 15363 case $host_cpu in 15364 hppa*64*|ia64*) 15365 # +Z the default 15366 ;; 15367 *) 15368 lt_prog_compiler_pic='+Z' 15369 ;; 15370 esac 15371 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15372 lt_prog_compiler_static='$wl-a ${wl}archive' 15373 ;; 15374 15375 irix5* | irix6* | nonstopux*) 15376 lt_prog_compiler_wl='-Wl,' 15377 # PIC (with -KPIC) is the default. 15378 lt_prog_compiler_static='-non_shared' 15379 ;; 15380 15381 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15382 case $cc_basename in 15383 # old Intel for x86_64, which still supported -KPIC. 15384 ecc*) 15385 lt_prog_compiler_wl='-Wl,' 15386 lt_prog_compiler_pic='-KPIC' 15387 lt_prog_compiler_static='-static' 15388 ;; 15389 *flang* | ftn | f18* | f95*) 15390 # Flang compiler. 15391 lt_prog_compiler_wl='-Wl,' 15392 lt_prog_compiler_pic='-fPIC' 15393 lt_prog_compiler_static='-static' 15394 ;; 15395 # icc used to be incompatible with GCC. 15396 # ICC 10 doesn't accept -KPIC any more. 15397 icc* | ifort*) 15398 lt_prog_compiler_wl='-Wl,' 15399 lt_prog_compiler_pic='-fPIC' 15400 lt_prog_compiler_static='-static' 15401 ;; 15402 # Lahey Fortran 8.1. 15403 lf95*) 15404 lt_prog_compiler_wl='-Wl,' 15405 lt_prog_compiler_pic='--shared' 15406 lt_prog_compiler_static='--static' 15407 ;; 15408 nagfor*) 15409 # NAG Fortran compiler 15410 lt_prog_compiler_wl='-Wl,-Wl,,' 15411 lt_prog_compiler_pic='-PIC' 15412 lt_prog_compiler_static='-Bstatic' 15413 ;; 15414 tcc*) 15415 # Fabrice Bellard et al's Tiny C Compiler 15416 lt_prog_compiler_wl='-Wl,' 15417 lt_prog_compiler_pic='-fPIC' 15418 lt_prog_compiler_static='-static' 15419 ;; 15420 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15421 # Portland Group compilers (*not* the Pentium gcc compiler, 15422 # which looks to be a dead project) 15423 lt_prog_compiler_wl='-Wl,' 15424 lt_prog_compiler_pic='-fpic' 15425 lt_prog_compiler_static='-Bstatic' 15426 ;; 15427 ccc*) 15428 lt_prog_compiler_wl='-Wl,' 15429 # All Alpha code is PIC. 15430 lt_prog_compiler_static='-non_shared' 15431 ;; 15432 xl* | bgxl* | bgf* | mpixl*) 15433 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15434 lt_prog_compiler_wl='-Wl,' 15435 lt_prog_compiler_pic='-qpic' 15436 lt_prog_compiler_static='-qstaticlink' 15437 ;; 15438 *) 15439 case `$CC -V 2>&1 | $SED 5q` in 15440 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15441 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15442 lt_prog_compiler_pic='-KPIC' 15443 lt_prog_compiler_static='-Bstatic' 15444 lt_prog_compiler_wl='' 15445 ;; 15446 *Sun\ F* | *Sun*Fortran*) 15447 lt_prog_compiler_pic='-KPIC' 15448 lt_prog_compiler_static='-Bstatic' 15449 lt_prog_compiler_wl='-Qoption ld ' 15450 ;; 15451 *Sun\ C*) 15452 # Sun C 5.9 15453 lt_prog_compiler_pic='-KPIC' 15454 lt_prog_compiler_static='-Bstatic' 15455 lt_prog_compiler_wl='-Wl,' 15456 ;; 15457 *Intel*\ [CF]*Compiler*) 15458 lt_prog_compiler_wl='-Wl,' 15459 lt_prog_compiler_pic='-fPIC' 15460 lt_prog_compiler_static='-static' 15461 ;; 15462 *Portland\ Group*) 15463 lt_prog_compiler_wl='-Wl,' 15464 lt_prog_compiler_pic='-fpic' 15465 lt_prog_compiler_static='-Bstatic' 15466 ;; 15467 esac 15468 ;; 15469 esac 15470 ;; 15471 15472 newsos6) 15473 lt_prog_compiler_pic='-KPIC' 15474 lt_prog_compiler_static='-Bstatic' 15475 ;; 15476 15477 *-mlibc) 15478 lt_prog_compiler_wl='-Wl,' 15479 lt_prog_compiler_pic='-fPIC' 15480 lt_prog_compiler_static='-static' 15481 ;; 15482 15483 *nto* | *qnx*) 15484 # QNX uses GNU C++, but need to define -shared option too, otherwise 15485 # it will coredump. 15486 lt_prog_compiler_pic='-fPIC -shared' 15487 ;; 15488 15489 osf3* | osf4* | osf5*) 15490 lt_prog_compiler_wl='-Wl,' 15491 # All OSF/1 code is PIC. 15492 lt_prog_compiler_static='-non_shared' 15493 ;; 15494 15495 rdos*) 15496 lt_prog_compiler_static='-non_shared' 15497 ;; 15498 15499 serenity*) 15500 ;; 15501 15502 solaris*) 15503 lt_prog_compiler_pic='-KPIC' 15504 lt_prog_compiler_static='-Bstatic' 15505 case $cc_basename in 15506 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15507 lt_prog_compiler_wl='-Qoption ld ';; 15508 *) 15509 lt_prog_compiler_wl='-Wl,';; 15510 esac 15511 ;; 15512 15513 sunos4*) 15514 lt_prog_compiler_wl='-Qoption ld ' 15515 lt_prog_compiler_pic='-PIC' 15516 lt_prog_compiler_static='-Bstatic' 15517 ;; 15518 15519 sysv4 | sysv4.2uw2* | sysv4.3*) 15520 lt_prog_compiler_wl='-Wl,' 15521 lt_prog_compiler_pic='-KPIC' 15522 lt_prog_compiler_static='-Bstatic' 15523 ;; 15524 15525 sysv4*MP*) 15526 if test -d /usr/nec; then 15527 lt_prog_compiler_pic='-Kconform_pic' 15528 lt_prog_compiler_static='-Bstatic' 15529 fi 15530 ;; 15531 15532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15533 lt_prog_compiler_wl='-Wl,' 15534 lt_prog_compiler_pic='-KPIC' 15535 lt_prog_compiler_static='-Bstatic' 15536 ;; 15537 15538 unicos*) 15539 lt_prog_compiler_wl='-Wl,' 15540 lt_prog_compiler_can_build_shared=no 15541 ;; 15542 15543 uts4*) 15544 lt_prog_compiler_pic='-pic' 15545 lt_prog_compiler_static='-Bstatic' 15546 ;; 15547 15548 *) 15549 lt_prog_compiler_can_build_shared=no 15550 ;; 15551 esac 15552 fi 15553 15554 case $host_os in 15555 # For platforms that do not support PIC, -DPIC is meaningless: 15556 *djgpp*) 15557 lt_prog_compiler_pic= 15558 ;; 15559 *) 15560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15561 ;; 15562 esac 15563 15564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15565 printf %s "checking for $compiler option to produce PIC... " >&6; } 15566 if test ${lt_cv_prog_compiler_pic+y} 15567 then : 15568 printf %s "(cached) " >&6 15569 else $as_nop 15570 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15571 fi 15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15573 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15574 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15575 15576 # 15577 # Check to make sure the PIC flag actually works. 15578 # 15579 if test -n "$lt_prog_compiler_pic"; then 15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15581 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15582 if test ${lt_cv_prog_compiler_pic_works+y} 15583 then : 15584 printf %s "(cached) " >&6 15585 else $as_nop 15586 lt_cv_prog_compiler_pic_works=no 15587 ac_outfile=conftest.$ac_objext 15588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15589 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15590 # Insert the option either (1) after the last *FLAGS variable, or 15591 # (2) before a word containing "conftest.", or (3) at the end. 15592 # Note that $ac_compile itself does not contain backslashes and begins 15593 # with a dollar sign (not a hyphen), so the echo should work correctly. 15594 # The option is referenced via a variable to avoid confusing sed. 15595 lt_compile=`echo "$ac_compile" | $SED \ 15596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15598 -e 's:$: $lt_compiler_flag:'` 15599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15600 (eval "$lt_compile" 2>conftest.err) 15601 ac_status=$? 15602 cat conftest.err >&5 15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15604 if (exit $ac_status) && test -s "$ac_outfile"; then 15605 # The compiler can only warn and ignore the option if not recognized 15606 # So say no if there are warnings other than the usual output. 15607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15610 lt_cv_prog_compiler_pic_works=yes 15611 fi 15612 fi 15613 $RM conftest* 15614 15615 fi 15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15617 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15618 15619 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15620 case $lt_prog_compiler_pic in 15621 "" | " "*) ;; 15622 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15623 esac 15624 else 15625 lt_prog_compiler_pic= 15626 lt_prog_compiler_can_build_shared=no 15627 fi 15628 15629 fi 15630 15631 15632 15633 15634 15635 # 15636 # Check to make sure the static flag actually works. 15637 # 15638 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15640 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15641 if test ${lt_cv_prog_compiler_static_works+y} 15642 then : 15643 printf %s "(cached) " >&6 15644 else $as_nop 15645 lt_cv_prog_compiler_static_works=no 15646 save_LDFLAGS=$LDFLAGS 15647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15648 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15650 # The linker can only warn and ignore the option if not recognized 15651 # So say no if there are warnings 15652 if test -s conftest.err; then 15653 # Append any errors to the config.log. 15654 cat conftest.err 1>&5 15655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15657 if diff conftest.exp conftest.er2 >/dev/null; then 15658 lt_cv_prog_compiler_static_works=yes 15659 fi 15660 else 15661 lt_cv_prog_compiler_static_works=yes 15662 fi 15663 fi 15664 $RM -r conftest* 15665 LDFLAGS=$save_LDFLAGS 15666 15667 fi 15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15669 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 15670 15671 if test yes = "$lt_cv_prog_compiler_static_works"; then 15672 : 15673 else 15674 lt_prog_compiler_static= 15675 fi 15676 15677 15678 15679 ='-fPIC' 15680 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 15681 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 15682 archive_cmds_need_lc=no 15683 no_undefined_flag= 15684 ;; 15685 15686 *) 15687 dynamic_linker=no 15688 ;; 15689 esac 15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15691 printf "%s\n" "$dynamic_linker" >&6; } 15692 test no = "$dynamic_linker" && can_build_shared=no 15693 15694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15695 if test yes = "$GCC"; then 15696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15697 fi 15698 15699 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15700 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15701 fi 15702 15703 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15704 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15705 fi 15706 15707 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15708 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15709 15710 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15711 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15712 15713 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15714 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15813 printf %s "checking how to hardcode library paths into programs... " >&6; } 15814 hardcode_action= 15815 if test -n "$hardcode_libdir_flag_spec" || 15816 test -n "$runpath_var" || 15817 test yes = "$hardcode_automatic"; then 15818 15819 # We can hardcode non-existent directories. 15820 if test no != "$hardcode_direct" && 15821 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15822 # have to relink, otherwise we might link with an installed library 15823 # when we should be linking with a yet-to-be-installed one 15824 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15825 test no != "$hardcode_minus_L"; then 15826 # Linking always hardcodes the temporary library directory. 15827 hardcode_action=relink 15828 else 15829 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15830 hardcode_action=immediate 15831 fi 15832 else 15833 # We cannot hardcode anything, or else we can only hardcode existing 15834 # directories. 15835 hardcode_action=unsupported 15836 fi 15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15838 printf "%s\n" "$hardcode_action" >&6; } 15839 15840 if test relink = "$hardcode_action" || 15841 test yes = "$inherit_rpath"; then 15842 # Fast installation is not supported 15843 enable_fast_install=no 15844 elif test yes = "$shlibpath_overrides_runpath" || 15845 test no = "$enable_shared"; then 15846 # Fast installation is not necessary 15847 enable_fast_install=needless 15848 fi 15849 15850 15851 15852 15853 15854 15855 if test yes != "$enable_dlopen"; then 15856 enable_dlopen=unknown 15857 enable_dlopen_self=unknown 15858 enable_dlopen_self_static=unknown 15859 else 15860 lt_cv_dlopen=no 15861 lt_cv_dlopen_libs= 15862 15863 case $host_os in 15864 beos*) 15865 lt_cv_dlopen=load_add_on 15866 lt_cv_dlopen_libs= 15867 lt_cv_dlopen_self=yes 15868 ;; 15869 15870 mingw* | windows* | pw32* | cegcc*) 15871 lt_cv_dlopen=LoadLibrary 15872 lt_cv_dlopen_libs= 15873 ;; 15874 15875 cygwin*) 15876 lt_cv_dlopen=dlopen 15877 lt_cv_dlopen_libs= 15878 ;; 15879 15880 darwin*) 15881 # if libdl is installed we need to link against it 15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15883 printf %s "checking for dlopen in -ldl... " >&6; } 15884 if test ${ac_cv_lib_dl_dlopen+y} 15885 then : 15886 printf %s "(cached) " >&6 15887 else $as_nop 15888 ac_check_lib_save_LIBS=$LIBS 15889 LIBS="-ldl $LIBS" 15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15891 /* end confdefs.h. */ 15892 15893 /* Override any GCC internal prototype to avoid an error. 15894 Use char because int might match the return type of a GCC 15895 builtin and then its argument prototype would still apply. */ 15896 char dlopen (); 15897 int 15898 main (void) 15899 { 15900 return dlopen (); 15901 ; 15902 return 0; 15903 } 15904 _ACEOF 15905 if ac_fn_c_try_link "$LINENO" 15906 then : 15907 ac_cv_lib_dl_dlopen=yes 15908 else $as_nop 15909 ac_cv_lib_dl_dlopen=no 15910 fi 15911 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15912 conftest$ac_exeext conftest.$ac_ext 15913 LIBS=$ac_check_lib_save_LIBS 15914 fi 15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15916 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15917 if test "x$ac_cv_lib_dl_dlopen" = xyes 15918 then : 15919 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15920 else $as_nop 15921 15922 lt_cv_dlopen=dyld 15923 lt_cv_dlopen_libs= 15924 lt_cv_dlopen_self=yes 15925 15926 fi 15927 15928 ;; 15929 15930 tpf*) 15931 # Don't try to run any link tests for TPF. We know it's impossible 15932 # because TPF is a cross-compiler, and we know how we open DSOs. 15933 lt_cv_dlopen=dlopen 15934 lt_cv_dlopen_libs= 15935 lt_cv_dlopen_self=no 15936 ;; 15937 15938 *) 15939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15940 if test "x$ac_cv_func_shl_load" = xyes 15941 then : 15942 lt_cv_dlopen=shl_load 15943 else $as_nop 15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15945 printf %s "checking for shl_load in -ldld... " >&6; } 15946 if test ${ac_cv_lib_dld_shl_load+y} 15947 then : 15948 printf %s "(cached) " >&6 15949 else $as_nop 15950 ac_check_lib_save_LIBS=$LIBS 15951 LIBS="-ldld $LIBS" 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953 /* end confdefs.h. */ 15954 15955 /* Override any GCC internal prototype to avoid an error. 15956 Use char because int might match the return type of a GCC 15957 builtin and then its argument prototype would still apply. */ 15958 char shl_load (); 15959 int 15960 main (void) 15961 { 15962 return shl_load (); 15963 ; 15964 return 0; 15965 } 15966 _ACEOF 15967 if ac_fn_c_try_link "$LINENO" 15968 then : 15969 ac_cv_lib_dld_shl_load=yes 15970 else $as_nop 15971 ac_cv_lib_dld_shl_load=no 15972 fi 15973 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15974 conftest$ac_exeext conftest.$ac_ext 15975 LIBS=$ac_check_lib_save_LIBS 15976 fi 15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15978 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 15979 if test "x$ac_cv_lib_dld_shl_load" = xyes 15980 then : 15981 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15982 else $as_nop 15983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15984 if test "x$ac_cv_func_dlopen" = xyes 15985 then : 15986 lt_cv_dlopen=dlopen 15987 else $as_nop 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15989 printf %s "checking for dlopen in -ldl... " >&6; } 15990 if test ${ac_cv_lib_dl_dlopen+y} 15991 then : 15992 printf %s "(cached) " >&6 15993 else $as_nop 15994 ac_check_lib_save_LIBS=$LIBS 15995 LIBS="-ldl $LIBS" 15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15997 /* end confdefs.h. */ 15998 15999 /* Override any GCC internal prototype to avoid an error. 16000 Use char because int might match the return type of a GCC 16001 builtin and then its argument prototype would still apply. */ 16002 char dlopen (); 16003 int 16004 main (void) 16005 { 16006 return dlopen (); 16007 ; 16008 return 0; 16009 } 16010 _ACEOF 16011 if ac_fn_c_try_link "$LINENO" 16012 then : 16013 ac_cv_lib_dl_dlopen=yes 16014 else $as_nop 16015 ac_cv_lib_dl_dlopen=no 16016 fi 16017 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16018 conftest$ac_exeext conftest.$ac_ext 16019 LIBS=$ac_check_lib_save_LIBS 16020 fi 16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16022 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16023 if test "x$ac_cv_lib_dl_dlopen" = xyes 16024 then : 16025 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16026 else $as_nop 16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16028 printf %s "checking for dlopen in -lsvld... " >&6; } 16029 if test ${ac_cv_lib_svld_dlopen+y} 16030 then : 16031 printf %s "(cached) " >&6 16032 else $as_nop 16033 ac_check_lib_save_LIBS=$LIBS 16034 LIBS="-lsvld $LIBS" 16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036 /* end confdefs.h. */ 16037 16038 /* Override any GCC internal prototype to avoid an error. 16039 Use char because int might match the return type of a GCC 16040 builtin and then its argument prototype would still apply. */ 16041 char dlopen (); 16042 int 16043 main (void) 16044 { 16045 return dlopen (); 16046 ; 16047 return 0; 16048 } 16049 _ACEOF 16050 if ac_fn_c_try_link "$LINENO" 16051 then : 16052 ac_cv_lib_svld_dlopen=yes 16053 else $as_nop 16054 ac_cv_lib_svld_dlopen=no 16055 fi 16056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16057 conftest$ac_exeext conftest.$ac_ext 16058 LIBS=$ac_check_lib_save_LIBS 16059 fi 16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16061 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 16062 if test "x$ac_cv_lib_svld_dlopen" = xyes 16063 then : 16064 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16065 else $as_nop 16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16067 printf %s "checking for dld_link in -ldld... " >&6; } 16068 if test ${ac_cv_lib_dld_dld_link+y} 16069 then : 16070 printf %s "(cached) " >&6 16071 else $as_nop 16072 ac_check_lib_save_LIBS=$LIBS 16073 LIBS="-ldld $LIBS" 16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16075 /* end confdefs.h. */ 16076 16077 /* Override any GCC internal prototype to avoid an error. 16078 Use char because int might match the return type of a GCC 16079 builtin and then its argument prototype would still apply. */ 16080 char dld_link (); 16081 int 16082 main (void) 16083 { 16084 return dld_link (); 16085 ; 16086 return 0; 16087 } 16088 _ACEOF 16089 if ac_fn_c_try_link "$LINENO" 16090 then : 16091 ac_cv_lib_dld_dld_link=yes 16092 else $as_nop 16093 ac_cv_lib_dld_dld_link=no 16094 fi 16095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16096 conftest$ac_exeext conftest.$ac_ext 16097 LIBS=$ac_check_lib_save_LIBS 16098 fi 16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16100 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 16101 if test "x$ac_cv_lib_dld_dld_link" = xyes 16102 then : 16103 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16104 fi 16105 16106 16107 fi 16108 16109 16110 fi 16111 16112 16113 fi 16114 16115 16116 fi 16117 16118 16119 fi 16120 16121 ;; 16122 esac 16123 16124 if test no = "$lt_cv_dlopen"; then 16125 enable_dlopen=no 16126 else 16127 enable_dlopen=yes 16128 fi 16129 16130 case $lt_cv_dlopen in 16131 dlopen) 16132 save_CPPFLAGS=$CPPFLAGS 16133 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16134 16135 save_LDFLAGS=$LDFLAGS 16136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16137 16138 save_LIBS=$LIBS 16139 LIBS="$lt_cv_dlopen_libs $LIBS" 16140 16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16142 printf %s "checking whether a program can dlopen itself... " >&6; } 16143 if test ${lt_cv_dlopen_self+y} 16144 then : 16145 printf %s "(cached) " >&6 16146 else $as_nop 16147 if test yes = "$cross_compiling"; then : 16148 lt_cv_dlopen_self=cross 16149 else 16150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16151 lt_status=$lt_dlunknown 16152 cat > conftest.$ac_ext <<_LT_EOF 16153 #line $LINENO "configure" 16154 #include "confdefs.h" 16155 16156 #if HAVE_DLFCN_H 16157 #include <dlfcn.h> 16158 #endif 16159 16160 #include <stdio.h> 16161 16162 #ifdef RTLD_GLOBAL 16163 # define LT_DLGLOBAL RTLD_GLOBAL 16164 #else 16165 # ifdef DL_GLOBAL 16166 # define LT_DLGLOBAL DL_GLOBAL 16167 # else 16168 # define LT_DLGLOBAL 0 16169 # endif 16170 #endif 16171 16172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16173 find out it does not work in some platform. */ 16174 #ifndef LT_DLLAZY_OR_NOW 16175 # ifdef RTLD_LAZY 16176 # define LT_DLLAZY_OR_NOW RTLD_LAZY 16177 # else 16178 # ifdef DL_LAZY 16179 # define LT_DLLAZY_OR_NOW DL_LAZY 16180 # else 16181 # ifdef RTLD_NOW 16182 # define LT_DLLAZY_OR_NOW RTLD_NOW 16183 # else 16184 # ifdef DL_NOW 16185 # define LT_DLLAZY_OR_NOW DL_NOW 16186 # else 16187 # define LT_DLLAZY_OR_NOW 0 16188 # endif 16189 # endif 16190 # endif 16191 # endif 16192 #endif 16193 16194 /* When -fvisibility=hidden is used, assume the code has been annotated 16195 correspondingly for the symbols needed. */ 16196 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16197 int fnord (void) __attribute__((visibility("default"))); 16198 #endif 16199 16200 int fnord (void) { return 42; } 16201 int main (void) 16202 { 16203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16204 int status = $lt_dlunknown; 16205 16206 if (self) 16207 { 16208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16209 else 16210 { 16211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16212 else puts (dlerror ()); 16213 } 16214 /* dlclose (self); */ 16215 } 16216 else 16217 puts (dlerror ()); 16218 16219 return status; 16220 } 16221 _LT_EOF 16222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16223 (eval $ac_link) 2>&5 16224 ac_status=$? 16225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16226 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16227 (./conftest; exit; ) >&5 2>/dev/null 16228 lt_status=$? 16229 case x$lt_status in 16230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16233 esac 16234 else : 16235 # compilation failed 16236 lt_cv_dlopen_self=no 16237 fi 16238 fi 16239 rm -fr conftest* 16240 16241 16242 fi 16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16244 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 16245 16246 if test yes = "$lt_cv_dlopen_self"; then 16247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16249 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 16250 if test ${lt_cv_dlopen_self_static+y} 16251 then : 16252 printf %s "(cached) " >&6 16253 else $as_nop 16254 if test yes = "$cross_compiling"; then : 16255 lt_cv_dlopen_self_static=cross 16256 else 16257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16258 lt_status=$lt_dlunknown 16259 cat > conftest.$ac_ext <<_LT_EOF 16260 #line $LINENO "configure" 16261 #include "confdefs.h" 16262 16263 #if HAVE_DLFCN_H 16264 #include <dlfcn.h> 16265 #endif 16266 16267 #include <stdio.h> 16268 16269 #ifdef RTLD_GLOBAL 16270 # define LT_DLGLOBAL RTLD_GLOBAL 16271 #else 16272 # ifdef DL_GLOBAL 16273 # define LT_DLGLOBAL DL_GLOBAL 16274 # else 16275 # define LT_DLGLOBAL 0 16276 # endif 16277 #endif 16278 16279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16280 find out it does not work in some platform. */ 16281 #ifndef LT_DLLAZY_OR_NOW 16282 # ifdef RTLD_LAZY 16283 # define LT_DLLAZY_OR_NOW RTLD_LAZY 16284 # else 16285 # ifdef DL_LAZY 16286 # define LT_DLLAZY_OR_NOW DL_LAZY 16287 # else 16288 # ifdef RTLD_NOW 16289 # define LT_DLLAZY_OR_NOW RTLD_NOW 16290 # else 16291 # ifdef DL_NOW 16292 # define LT_DLLAZY_OR_NOW DL_NOW 16293 # else 16294 # define LT_DLLAZY_OR_NOW 0 16295 # endif 16296 # endif 16297 # endif 16298 # endif 16299 #endif 16300 16301 /* When -fvisibility=hidden is used, assume the code has been annotated 16302 correspondingly for the symbols needed. */ 16303 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16304 int fnord (void) __attribute__((visibility("default"))); 16305 #endif 16306 16307 int fnord (void) { return 42; } 16308 int main (void) 16309 { 16310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16311 int status = $lt_dlunknown; 16312 16313 if (self) 16314 { 16315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16316 else 16317 { 16318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16319 else puts (dlerror ()); 16320 } 16321 /* dlclose (self); */ 16322 } 16323 else 16324 puts (dlerror ()); 16325 16326 return status; 16327 } 16328 _LT_EOF 16329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16330 (eval $ac_link) 2>&5 16331 ac_status=$? 16332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16333 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16334 (./conftest; exit; ) >&5 2>/dev/null 16335 lt_status=$? 16336 case x$lt_status in 16337 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16338 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16339 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16340 esac 16341 else : 16342 # compilation failed 16343 lt_cv_dlopen_self_static=no 16344 fi 16345 fi 16346 rm -fr conftest* 16347 16348 16349 fi 16350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16351 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 16352 fi 16353 16354 CPPFLAGS=$save_CPPFLAGS 16355 LDFLAGS=$save_LDFLAGS 16356 LIBS=$save_LIBS 16357 ;; 16358 esac 16359 16360 case $lt_cv_dlopen_self in 16361 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16362 *) enable_dlopen_self=unknown ;; 16363 esac 16364 16365 case $lt_cv_dlopen_self_static in 16366 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16367 *) enable_dlopen_self_static=unknown ;; 16368 esac 16369 fi 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 striplib= 16388 old_striplib= 16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16390 printf %s "checking whether stripping libraries is possible... " >&6; } 16391 if test -z "$STRIP"; then 16392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16393 printf "%s\n" "no" >&6; } 16394 else 16395 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16396 old_striplib="$STRIP --strip-debug" 16397 striplib="$STRIP --strip-unneeded" 16398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16399 printf "%s\n" "yes" >&6; } 16400 else 16401 case $host_os in 16402 darwin*) 16403 # FIXME - insert some real tests, host_os isn't really good enough 16404 striplib="$STRIP -x" 16405 old_striplib="$STRIP -S" 16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16407 printf "%s\n" "yes" >&6; } 16408 ;; 16409 freebsd*) 16410 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 16411 old_striplib="$STRIP --strip-debug" 16412 striplib="$STRIP --strip-unneeded" 16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16414 printf "%s\n" "yes" >&6; } 16415 else 16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16417 printf "%s\n" "no" >&6; } 16418 fi 16419 ;; 16420 *) 16421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16422 printf "%s\n" "no" >&6; } 16423 ;; 16424 esac 16425 fi 16426 fi 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 # Report what library types will actually be built 16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16441 printf %s "checking if libtool supports shared libraries... " >&6; } 16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16443 printf "%s\n" "$can_build_shared" >&6; } 16444 16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16446 printf %s "checking whether to build shared libraries... " >&6; } 16447 test no = "$can_build_shared" && enable_shared=no 16448 16449 # On AIX, shared libraries and static libraries use the same namespace, and 16450 # are all built from PIC. 16451 case $host_os in 16452 aix3*) 16453 test yes = "$enable_shared" && enable_static=no 16454 if test -n "$RANLIB"; then 16455 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16456 postinstall_cmds='$RANLIB $lib' 16457 fi 16458 ;; 16459 16460 aix[4-9]*) 16461 if test ia64 != "$host_cpu"; then 16462 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16463 yes,aix,yes) ;; # shared object as lib.so file only 16464 yes,svr4,*) ;; # shared object as lib.so archive member only 16465 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16466 esac 16467 fi 16468 ;; 16469 esac 16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16471 printf "%s\n" "$enable_shared" >&6; } 16472 16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16474 printf %s "checking whether to build static libraries... " >&6; } 16475 # Make sure either enable_shared or enable_static is yes. 16476 test yes = "$enable_shared" || enable_static=yes 16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16478 printf "%s\n" "$enable_static" >&6; } 16479 16480 16481 16482 16483 fi 16484 ac_ext=c 16485 ac_cpp='$CPP $CPPFLAGS' 16486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16488 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16489 16490 CC=$lt_save_CC 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 ac_config_commands="$ac_config_commands libtool" 16507 16508 16509 16510 16511 # Only expand once: 16512 16513 16514 16515 16516 # pkg-config is only needed for these options, do not require it otherwise 16517 if test "$enable_systemd" = "yes" -o "$enable_dnstap" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then 16518 16519 16520 16521 16522 16523 16524 16525 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16526 if test -n "$ac_tool_prefix"; then 16527 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16528 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16530 printf %s "checking for $ac_word... " >&6; } 16531 if test ${ac_cv_path_PKG_CONFIG+y} 16532 then : 16533 printf %s "(cached) " >&6 16534 else $as_nop 16535 case $PKG_CONFIG in 16536 [\\/]* | ?:[\\/]*) 16537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16538 ;; 16539 *) 16540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16541 for as_dir in $PATH 16542 do 16543 IFS=$as_save_IFS 16544 case $as_dir in #((( 16545 '') as_dir=./ ;; 16546 */) ;; 16547 *) as_dir=$as_dir/ ;; 16548 esac 16549 for ac_exec_ext in '' $ac_executable_extensions; do 16550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16551 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 16552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16553 break 2 16554 fi 16555 done 16556 done 16557 IFS=$as_save_IFS 16558 16559 ;; 16560 esac 16561 fi 16562 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16563 if test -n "$PKG_CONFIG"; then 16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16565 printf "%s\n" "$PKG_CONFIG" >&6; } 16566 else 16567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16568 printf "%s\n" "no" >&6; } 16569 fi 16570 16571 16572 fi 16573 if test -z "$ac_cv_path_PKG_CONFIG"; then 16574 ac_pt_PKG_CONFIG=$PKG_CONFIG 16575 # Extract the first word of "pkg-config", so it can be a program name with args. 16576 set dummy pkg-config; ac_word=$2 16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16578 printf %s "checking for $ac_word... " >&6; } 16579 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 16580 then : 16581 printf %s "(cached) " >&6 16582 else $as_nop 16583 case $ac_pt_PKG_CONFIG in 16584 [\\/]* | ?:[\\/]*) 16585 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16586 ;; 16587 *) 16588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16589 for as_dir in $PATH 16590 do 16591 IFS=$as_save_IFS 16592 case $as_dir in #((( 16593 '') as_dir=./ ;; 16594 */) ;; 16595 *) as_dir=$as_dir/ ;; 16596 esac 16597 for ac_exec_ext in '' $ac_executable_extensions; do 16598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16599 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 16600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16601 break 2 16602 fi 16603 done 16604 done 16605 IFS=$as_save_IFS 16606 16607 ;; 16608 esac 16609 fi 16610 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16611 if test -n "$ac_pt_PKG_CONFIG"; then 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16613 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 16614 else 16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16616 printf "%s\n" "no" >&6; } 16617 fi 16618 16619 if test "x$ac_pt_PKG_CONFIG" = x; then 16620 PKG_CONFIG="" 16621 else 16622 case $cross_compiling:$ac_tool_warned in 16623 yes:) 16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16626 ac_tool_warned=yes ;; 16627 esac 16628 PKG_CONFIG=$ac_pt_PKG_CONFIG 16629 fi 16630 else 16631 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16632 fi 16633 16634 fi 16635 if test -n "$PKG_CONFIG"; then 16636 _pkg_min_version=0.9.0 16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16638 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16639 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16641 printf "%s\n" "yes" >&6; } 16642 else 16643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16644 printf "%s\n" "no" >&6; } 16645 PKG_CONFIG="" 16646 fi 16647 fi 16648 if test -z "$PKG_CONFIG"; then 16649 as_fn_error $? "pkg-config not found" "$LINENO" 5 16650 fi 16651 fi 16652 16653 # Checks for header files. 16654 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 16655 " 16656 if test "x$ac_cv_header_stdarg_h" = xyes 16657 then : 16658 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 16659 16660 fi 16661 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default 16662 " 16663 if test "x$ac_cv_header_stdbool_h" = xyes 16664 then : 16665 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 16666 16667 fi 16668 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 16669 " 16670 if test "x$ac_cv_header_netinet_in_h" = xyes 16671 then : 16672 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 16673 16674 fi 16675 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default 16676 " 16677 if test "x$ac_cv_header_netinet_tcp_h" = xyes 16678 then : 16679 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 16680 16681 fi 16682 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 16683 " 16684 if test "x$ac_cv_header_sys_param_h" = xyes 16685 then : 16686 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 16687 16688 fi 16689 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 16690 " 16691 if test "x$ac_cv_header_sys_select_h" = xyes 16692 then : 16693 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 16694 16695 fi 16696 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 16697 " 16698 if test "x$ac_cv_header_sys_socket_h" = xyes 16699 then : 16700 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 16701 16702 fi 16703 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default 16704 " 16705 if test "x$ac_cv_header_sys_un_h" = xyes 16706 then : 16707 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 16708 16709 fi 16710 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default 16711 " 16712 if test "x$ac_cv_header_sys_uio_h" = xyes 16713 then : 16714 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 16715 16716 fi 16717 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default 16718 " 16719 if test "x$ac_cv_header_sys_resource_h" = xyes 16720 then : 16721 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 16722 16723 fi 16724 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 16725 " 16726 if test "x$ac_cv_header_arpa_inet_h" = xyes 16727 then : 16728 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 16729 16730 fi 16731 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default 16732 " 16733 if test "x$ac_cv_header_syslog_h" = xyes 16734 then : 16735 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 16736 16737 fi 16738 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 16739 " 16740 if test "x$ac_cv_header_netdb_h" = xyes 16741 then : 16742 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 16743 16744 fi 16745 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default 16746 " 16747 if test "x$ac_cv_header_sys_wait_h" = xyes 16748 then : 16749 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 16750 16751 fi 16752 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default 16753 " 16754 if test "x$ac_cv_header_pwd_h" = xyes 16755 then : 16756 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 16757 16758 fi 16759 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default 16760 " 16761 if test "x$ac_cv_header_glob_h" = xyes 16762 then : 16763 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 16764 16765 fi 16766 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default 16767 " 16768 if test "x$ac_cv_header_fnmatch_h" = xyes 16769 then : 16770 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 16771 16772 fi 16773 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default 16774 " 16775 if test "x$ac_cv_header_grp_h" = xyes 16776 then : 16777 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 16778 16779 fi 16780 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default 16781 " 16782 if test "x$ac_cv_header_login_cap_h" = xyes 16783 then : 16784 printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h 16785 16786 fi 16787 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default 16788 " 16789 if test "x$ac_cv_header_winsock2_h" = xyes 16790 then : 16791 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 16792 16793 fi 16794 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default 16795 " 16796 if test "x$ac_cv_header_ws2tcpip_h" = xyes 16797 then : 16798 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 16799 16800 fi 16801 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default 16802 " 16803 if test "x$ac_cv_header_endian_h" = xyes 16804 then : 16805 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 16806 16807 fi 16808 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default 16809 " 16810 if test "x$ac_cv_header_sys_endian_h" = xyes 16811 then : 16812 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 16813 16814 fi 16815 ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default 16816 " 16817 if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes 16818 then : 16819 printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h 16820 16821 fi 16822 ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default 16823 " 16824 if test "x$ac_cv_header_sys_ipc_h" = xyes 16825 then : 16826 printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h 16827 16828 fi 16829 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default 16830 " 16831 if test "x$ac_cv_header_sys_shm_h" = xyes 16832 then : 16833 printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h 16834 16835 fi 16836 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default 16837 " 16838 if test "x$ac_cv_header_ifaddrs_h" = xyes 16839 then : 16840 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 16841 16842 fi 16843 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default 16844 " 16845 if test "x$ac_cv_header_poll_h" = xyes 16846 then : 16847 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 16848 16849 fi 16850 16851 # net/if.h portability for Darwin see: 16852 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html 16853 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 16854 #include <stdio.h> 16855 #ifdef STDC_HEADERS 16856 # include <stdlib.h> 16857 # include <stddef.h> 16858 #else 16859 # ifdef HAVE_STDLIB_H 16860 # include <stdlib.h> 16861 # endif 16862 #endif 16863 #ifdef HAVE_SYS_SOCKET_H 16864 # include <sys/socket.h> 16865 #endif 16866 16867 " 16868 if test "x$ac_cv_header_net_if_h" = xyes 16869 then : 16870 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 16871 16872 fi 16873 16874 16875 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 16876 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default 16877 " 16878 if test "x$ac_cv_header_TargetConditionals_h" = xyes 16879 then : 16880 printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h 16881 16882 fi 16883 16884 ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default 16885 #if HAVE_SYS_PARAM_H 16886 #include <sys/param.h> 16887 #endif 16888 16889 #ifdef HAVE_SYS_SOCKET_H 16890 #include <sys/socket.h> 16891 #endif 16892 16893 #ifdef HAVE_SYS_UIO_H 16894 #include <sys/uio.h> 16895 #endif 16896 16897 #ifdef HAVE_NETINET_IN_H 16898 #include <netinet/in.h> 16899 #endif 16900 16901 #ifdef HAVE_NETINET_TCP_H 16902 #include <netinet/tcp.h> 16903 #endif 16904 16905 #ifdef HAVE_ARPA_INET_H 16906 #include <arpa/inet.h> 16907 #endif 16908 16909 #ifdef HAVE_WINSOCK2_H 16910 #include <winsock2.h> 16911 #endif 16912 16913 #ifdef HAVE_WS2TCPIP_H 16914 #include <ws2tcpip.h> 16915 #endif 16916 16917 " 16918 if test "x$ac_cv_header_netioapi_h" = xyes 16919 then : 16920 printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h 16921 16922 fi 16923 16924 16925 # Check for Linux timestamping headers 16926 ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default 16927 " 16928 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes 16929 then : 16930 printf "%s\n" "#define HAVE_LINUX_NET_TSTAMP_H 1" >>confdefs.h 16931 16932 fi 16933 16934 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default 16935 " 16936 if test "x$ac_cv_header_stdatomic_h" = xyes 16937 then : 16938 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h 16939 16940 fi 16941 16942 16943 # check for types. 16944 # Using own tests for int64* because autoconf builtin only give 32bit. 16945 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 16946 if test "x$ac_cv_type_int8_t" = xyes 16947 then : 16948 16949 else $as_nop 16950 16951 printf "%s\n" "#define int8_t signed char" >>confdefs.h 16952 16953 fi 16954 16955 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 16956 if test "x$ac_cv_type_int16_t" = xyes 16957 then : 16958 16959 else $as_nop 16960 16961 printf "%s\n" "#define int16_t short" >>confdefs.h 16962 16963 fi 16964 16965 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 16966 if test "x$ac_cv_type_int32_t" = xyes 16967 then : 16968 16969 else $as_nop 16970 16971 printf "%s\n" "#define int32_t int" >>confdefs.h 16972 16973 fi 16974 16975 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 16976 if test "x$ac_cv_type_int64_t" = xyes 16977 then : 16978 16979 else $as_nop 16980 16981 printf "%s\n" "#define int64_t long long" >>confdefs.h 16982 16983 fi 16984 16985 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 16986 if test "x$ac_cv_type_uint8_t" = xyes 16987 then : 16988 16989 else $as_nop 16990 16991 printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 16992 16993 fi 16994 16995 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 16996 if test "x$ac_cv_type_uint16_t" = xyes 16997 then : 16998 16999 else $as_nop 17000 17001 printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 17002 17003 fi 17004 17005 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 17006 if test "x$ac_cv_type_uint32_t" = xyes 17007 then : 17008 17009 else $as_nop 17010 17011 printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 17012 17013 fi 17014 17015 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 17016 if test "x$ac_cv_type_uint64_t" = xyes 17017 then : 17018 17019 else $as_nop 17020 17021 printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 17022 17023 fi 17024 17025 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17026 if test "x$ac_cv_type_size_t" = xyes 17027 then : 17028 17029 else $as_nop 17030 17031 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 17032 17033 fi 17034 17035 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 17036 if test "x$ac_cv_type_ssize_t" = xyes 17037 then : 17038 17039 else $as_nop 17040 17041 printf "%s\n" "#define ssize_t int" >>confdefs.h 17042 17043 fi 17044 17045 ac_ext=c 17046 ac_cpp='$CPP $CPPFLAGS' 17047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17049 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 17051 printf %s "checking how to run the C preprocessor... " >&6; } 17052 # On Suns, sometimes $CPP names a directory. 17053 if test -n "$CPP" && test -d "$CPP"; then 17054 CPP= 17055 fi 17056 if test -z "$CPP"; then 17057 if test ${ac_cv_prog_CPP+y} 17058 then : 17059 printf %s "(cached) " >&6 17060 else $as_nop 17061 # Double quotes because $CC needs to be expanded 17062 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 17063 do 17064 ac_preproc_ok=false 17065 for ac_c_preproc_warn_flag in '' yes 17066 do 17067 # Use a header file that comes with gcc, so configuring glibc 17068 # with a fresh cross-compiler works. 17069 # On the NeXT, cc -E runs the code through the compiler's parser, 17070 # not just through cpp. "Syntax error" is here to catch this case. 17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072 /* end confdefs.h. */ 17073 #include <limits.h> 17074 Syntax error 17075 _ACEOF 17076 if ac_fn_c_try_cpp "$LINENO" 17077 then : 17078 17079 else $as_nop 17080 # Broken: fails on valid input. 17081 continue 17082 fi 17083 rm -f conftest.err conftest.i conftest.$ac_ext 17084 17085 # OK, works on sane cases. Now check whether nonexistent headers 17086 # can be detected and how. 17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17088 /* end confdefs.h. */ 17089 #include <ac_nonexistent.h> 17090 _ACEOF 17091 if ac_fn_c_try_cpp "$LINENO" 17092 then : 17093 # Broken: success on invalid input. 17094 continue 17095 else $as_nop 17096 # Passes both tests. 17097 ac_preproc_ok=: 17098 break 17099 fi 17100 rm -f conftest.err conftest.i conftest.$ac_ext 17101 17102 done 17103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17104 rm -f conftest.i conftest.err conftest.$ac_ext 17105 if $ac_preproc_ok 17106 then : 17107 break 17108 fi 17109 17110 done 17111 ac_cv_prog_CPP=$CPP 17112 17113 fi 17114 CPP=$ac_cv_prog_CPP 17115 else 17116 ac_cv_prog_CPP=$CPP 17117 fi 17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 17119 printf "%s\n" "$CPP" >&6; } 17120 ac_preproc_ok=false 17121 for ac_c_preproc_warn_flag in '' yes 17122 do 17123 # Use a header file that comes with gcc, so configuring glibc 17124 # with a fresh cross-compiler works. 17125 # On the NeXT, cc -E runs the code through the compiler's parser, 17126 # not just through cpp. "Syntax error" is here to catch this case. 17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128 /* end confdefs.h. */ 17129 #include <limits.h> 17130 Syntax error 17131 _ACEOF 17132 if ac_fn_c_try_cpp "$LINENO" 17133 then : 17134 17135 else $as_nop 17136 # Broken: fails on valid input. 17137 continue 17138 fi 17139 rm -f conftest.err conftest.i conftest.$ac_ext 17140 17141 # OK, works on sane cases. Now check whether nonexistent headers 17142 # can be detected and how. 17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17144 /* end confdefs.h. */ 17145 #include <ac_nonexistent.h> 17146 _ACEOF 17147 if ac_fn_c_try_cpp "$LINENO" 17148 then : 17149 # Broken: success on invalid input. 17150 continue 17151 else $as_nop 17152 # Passes both tests. 17153 ac_preproc_ok=: 17154 break 17155 fi 17156 rm -f conftest.err conftest.i conftest.$ac_ext 17157 17158 done 17159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17160 rm -f conftest.i conftest.err conftest.$ac_ext 17161 if $ac_preproc_ok 17162 then : 17163 17164 else $as_nop 17165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17166 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 17168 See \`config.log' for more details" "$LINENO" 5; } 17169 fi 17170 17171 ac_ext=c 17172 ac_cpp='$CPP $CPPFLAGS' 17173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17175 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17176 17177 17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17179 printf %s "checking for uid_t in sys/types.h... " >&6; } 17180 if test ${ac_cv_type_uid_t+y} 17181 then : 17182 printf %s "(cached) " >&6 17183 else $as_nop 17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185 /* end confdefs.h. */ 17186 #include <sys/types.h> 17187 17188 _ACEOF 17189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17190 $EGREP "uid_t" >/dev/null 2>&1 17191 then : 17192 ac_cv_type_uid_t=yes 17193 else $as_nop 17194 ac_cv_type_uid_t=no 17195 fi 17196 rm -rf conftest* 17197 17198 fi 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17200 printf "%s\n" "$ac_cv_type_uid_t" >&6; } 17201 if test $ac_cv_type_uid_t = no; then 17202 17203 printf "%s\n" "#define uid_t int" >>confdefs.h 17204 17205 17206 printf "%s\n" "#define gid_t int" >>confdefs.h 17207 17208 fi 17209 17210 17211 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 17212 " 17213 if test "x$ac_cv_type_pid_t" = xyes 17214 then : 17215 17216 else $as_nop 17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17218 /* end confdefs.h. */ 17219 17220 #if defined _WIN64 && !defined __CYGWIN__ 17221 LLP64 17222 #endif 17223 17224 int 17225 main (void) 17226 { 17227 17228 ; 17229 return 0; 17230 } 17231 17232 _ACEOF 17233 if ac_fn_c_try_compile "$LINENO" 17234 then : 17235 ac_pid_type='int' 17236 else $as_nop 17237 ac_pid_type='__int64' 17238 fi 17239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17240 17241 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 17242 17243 17244 fi 17245 17246 17247 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17248 if test "x$ac_cv_type_off_t" = xyes 17249 then : 17250 17251 else $as_nop 17252 17253 printf "%s\n" "#define off_t long int" >>confdefs.h 17254 17255 fi 17256 17257 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 17258 $ac_includes_default 17259 #ifdef HAVE_WINSOCK2_H 17260 # include <winsock2.h> 17261 #endif 17262 17263 " 17264 if test "x$ac_cv_type_u_char" = xyes 17265 then : 17266 17267 else $as_nop 17268 17269 printf "%s\n" "#define u_char unsigned char" >>confdefs.h 17270 17271 fi 17272 17273 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 17274 $ac_includes_default 17275 #ifdef HAVE_SYS_RESOURCE_H 17276 # include <sys/resource.h> 17277 #endif 17278 17279 " 17280 if test "x$ac_cv_type_rlim_t" = xyes 17281 then : 17282 17283 else $as_nop 17284 17285 printf "%s\n" "#define rlim_t unsigned long" >>confdefs.h 17286 17287 fi 17288 17289 17290 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 17291 $ac_includes_default 17292 #ifdef HAVE_SYS_SOCKET_H 17293 # include <sys/socket.h> 17294 #endif 17295 #ifdef HAVE_WS2TCPIP_H 17296 # include <ws2tcpip.h> 17297 #endif 17298 17299 " 17300 if test "x$ac_cv_type_socklen_t" = xyes 17301 then : 17302 17303 else $as_nop 17304 17305 printf "%s\n" "#define socklen_t int" >>confdefs.h 17306 17307 fi 17308 17309 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 17310 $ac_includes_default 17311 #ifdef HAVE_SYS_TYPES_H 17312 # include <sys/types.h> 17313 #endif 17314 #ifdef HAVE_NETINET_IN_H 17315 # include <netinet/in.h> 17316 #endif 17317 17318 " 17319 if test "x$ac_cv_type_in_addr_t" = xyes 17320 then : 17321 17322 else $as_nop 17323 17324 printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 17325 17326 fi 17327 17328 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 17329 $ac_includes_default 17330 #ifdef HAVE_SYS_TYPES_H 17331 # include <sys/types.h> 17332 #endif 17333 #ifdef HAVE_NETINET_IN_H 17334 # include <netinet/in.h> 17335 #endif 17336 17337 " 17338 if test "x$ac_cv_type_in_port_t" = xyes 17339 then : 17340 17341 else $as_nop 17342 17343 printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h 17344 17345 fi 17346 17347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 17348 printf %s "checking if memcmp compares unsigned... " >&6; } 17349 if test "$cross_compiling" = yes 17350 then : 17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 17352 printf "%s\n" "cross-compile no" >&6; } 17353 17354 printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 17355 17356 case " $LIBOBJS " in 17357 *" memcmp.$ac_objext "* ) ;; 17358 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 17359 ;; 17360 esac 17361 17362 17363 else $as_nop 17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17365 /* end confdefs.h. */ 17366 17367 #include <stdio.h> 17368 #include <stdlib.h> 17369 #include <string.h> 17370 int main(void) 17371 { 17372 char a = 255, b = 0; 17373 if(memcmp(&a, &b, 1) < 0) 17374 return 1; 17375 return 0; 17376 } 17377 17378 _ACEOF 17379 if ac_fn_c_try_run "$LINENO" 17380 then : 17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17382 printf "%s\n" "yes" >&6; } 17383 else $as_nop 17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17385 printf "%s\n" "no" >&6; } 17386 17387 printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 17388 17389 case " $LIBOBJS " in 17390 *" memcmp.$ac_objext "* ) ;; 17391 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 17392 ;; 17393 esac 17394 17395 17396 fi 17397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17398 conftest.$ac_objext conftest.beam conftest.$ac_ext 17399 fi 17400 17401 17402 # The cast to long int works around a bug in the HP C Compiler 17403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17405 # This bug is HP SR number 8606223364. 17406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 17407 printf %s "checking size of time_t... " >&6; } 17408 if test ${ac_cv_sizeof_time_t+y} 17409 then : 17410 printf %s "(cached) " >&6 17411 else $as_nop 17412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 17413 $ac_includes_default 17414 #ifdef TIME_WITH_SYS_TIME 17415 # include <sys/time.h> 17416 # include <time.h> 17417 #else 17418 # ifdef HAVE_SYS_TIME_H 17419 # include <sys/time.h> 17420 # else 17421 # include <time.h> 17422 # endif 17423 #endif 17424 17425 " 17426 then : 17427 17428 else $as_nop 17429 if test "$ac_cv_type_time_t" = yes; then 17430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17431 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17432 as_fn_error 77 "cannot compute sizeof (time_t) 17433 See \`config.log' for more details" "$LINENO" 5; } 17434 else 17435 ac_cv_sizeof_time_t=0 17436 fi 17437 fi 17438 17439 fi 17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 17441 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 17442 17443 17444 17445 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 17446 17447 17448 # The cast to long int works around a bug in the HP C Compiler 17449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17451 # This bug is HP SR number 8606223364. 17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 17453 printf %s "checking size of size_t... " >&6; } 17454 if test ${ac_cv_sizeof_size_t+y} 17455 then : 17456 printf %s "(cached) " >&6 17457 else $as_nop 17458 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 17459 then : 17460 17461 else $as_nop 17462 if test "$ac_cv_type_size_t" = yes; then 17463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17464 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17465 as_fn_error 77 "cannot compute sizeof (size_t) 17466 See \`config.log' for more details" "$LINENO" 5; } 17467 else 17468 ac_cv_sizeof_size_t=0 17469 fi 17470 fi 17471 17472 fi 17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 17474 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 17475 17476 17477 17478 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 17479 17480 17481 17482 # add option to disable the evil rpath 17483 17484 # Check whether --enable-rpath was given. 17485 if test ${enable_rpath+y} 17486 then : 17487 enableval=$enable_rpath; enable_rpath=$enableval 17488 else $as_nop 17489 enable_rpath=yes 17490 fi 17491 17492 if test "x$enable_rpath" = xno; then 17493 ac_config_commands="$ac_config_commands disable-rpath" 17494 17495 fi 17496 17497 17498 17499 # check to see if libraries are needed for these functions. 17500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 17501 printf %s "checking for library containing inet_pton... " >&6; } 17502 if test ${ac_cv_search_inet_pton+y} 17503 then : 17504 printf %s "(cached) " >&6 17505 else $as_nop 17506 ac_func_search_save_LIBS=$LIBS 17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17508 /* end confdefs.h. */ 17509 17510 /* Override any GCC internal prototype to avoid an error. 17511 Use char because int might match the return type of a GCC 17512 builtin and then its argument prototype would still apply. */ 17513 char inet_pton (); 17514 int 17515 main (void) 17516 { 17517 return inet_pton (); 17518 ; 17519 return 0; 17520 } 17521 _ACEOF 17522 for ac_lib in '' nsl 17523 do 17524 if test -z "$ac_lib"; then 17525 ac_res="none required" 17526 else 17527 ac_res=-l$ac_lib 17528 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17529 fi 17530 if ac_fn_c_try_link "$LINENO" 17531 then : 17532 ac_cv_search_inet_pton=$ac_res 17533 fi 17534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17535 conftest$ac_exeext 17536 if test ${ac_cv_search_inet_pton+y} 17537 then : 17538 break 17539 fi 17540 done 17541 if test ${ac_cv_search_inet_pton+y} 17542 then : 17543 17544 else $as_nop 17545 ac_cv_search_inet_pton=no 17546 fi 17547 rm conftest.$ac_ext 17548 LIBS=$ac_func_search_save_LIBS 17549 fi 17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 17551 printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 17552 ac_res=$ac_cv_search_inet_pton 17553 if test "$ac_res" != no 17554 then : 17555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17556 17557 fi 17558 17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 17560 printf %s "checking for library containing socket... " >&6; } 17561 if test ${ac_cv_search_socket+y} 17562 then : 17563 printf %s "(cached) " >&6 17564 else $as_nop 17565 ac_func_search_save_LIBS=$LIBS 17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17567 /* end confdefs.h. */ 17568 17569 /* Override any GCC internal prototype to avoid an error. 17570 Use char because int might match the return type of a GCC 17571 builtin and then its argument prototype would still apply. */ 17572 char socket (); 17573 int 17574 main (void) 17575 { 17576 return socket (); 17577 ; 17578 return 0; 17579 } 17580 _ACEOF 17581 for ac_lib in '' socket 17582 do 17583 if test -z "$ac_lib"; then 17584 ac_res="none required" 17585 else 17586 ac_res=-l$ac_lib 17587 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17588 fi 17589 if ac_fn_c_try_link "$LINENO" 17590 then : 17591 ac_cv_search_socket=$ac_res 17592 fi 17593 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17594 conftest$ac_exeext 17595 if test ${ac_cv_search_socket+y} 17596 then : 17597 break 17598 fi 17599 done 17600 if test ${ac_cv_search_socket+y} 17601 then : 17602 17603 else $as_nop 17604 ac_cv_search_socket=no 17605 fi 17606 rm conftest.$ac_ext 17607 LIBS=$ac_func_search_save_LIBS 17608 fi 17609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 17610 printf "%s\n" "$ac_cv_search_socket" >&6; } 17611 ac_res=$ac_cv_search_socket 17612 if test "$ac_res" != no 17613 then : 17614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17615 17616 fi 17617 17618 17619 # check whether strptime also works 17620 17621 # check some functions of the OS before linking libs (while still runnable). 17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 17623 printf %s "checking for working chown... " >&6; } 17624 if test ${ac_cv_func_chown_works+y} 17625 then : 17626 printf %s "(cached) " >&6 17627 else $as_nop 17628 if test "$cross_compiling" = yes 17629 then : 17630 case "$host_os" in # (( 17631 # Guess yes on glibc systems. 17632 *-gnu*) ac_cv_func_chown_works=yes ;; 17633 # If we don't know, assume the worst. 17634 *) ac_cv_func_chown_works=no ;; 17635 esac 17636 else $as_nop 17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17638 /* end confdefs.h. */ 17639 $ac_includes_default 17640 #include <fcntl.h> 17641 17642 int 17643 main (void) 17644 { 17645 char *f = "conftest.chown"; 17646 struct stat before, after; 17647 17648 if (creat (f, 0600) < 0) 17649 return 1; 17650 if (stat (f, &before) < 0) 17651 return 1; 17652 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 17653 return 1; 17654 if (stat (f, &after) < 0) 17655 return 1; 17656 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 17657 17658 ; 17659 return 0; 17660 } 17661 _ACEOF 17662 if ac_fn_c_try_run "$LINENO" 17663 then : 17664 ac_cv_func_chown_works=yes 17665 else $as_nop 17666 ac_cv_func_chown_works=no 17667 fi 17668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17669 conftest.$ac_objext conftest.beam conftest.$ac_ext 17670 fi 17671 17672 rm -f conftest.chown 17673 17674 fi 17675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 17676 printf "%s\n" "$ac_cv_func_chown_works" >&6; } 17677 if test $ac_cv_func_chown_works = yes; then 17678 17679 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 17680 17681 fi 17682 17683 17684 ac_func= 17685 for ac_item in $ac_func_c_list 17686 do 17687 if test $ac_func; then 17688 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 17689 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 17690 echo "#define $ac_item 1" >> confdefs.h 17691 fi 17692 ac_func= 17693 else 17694 ac_func=$ac_item 17695 fi 17696 done 17697 17698 17699 17700 if test "x$ac_cv_func_fork" = xyes; then 17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 17702 printf %s "checking for working fork... " >&6; } 17703 if test ${ac_cv_func_fork_works+y} 17704 then : 17705 printf %s "(cached) " >&6 17706 else $as_nop 17707 if test "$cross_compiling" = yes 17708 then : 17709 ac_cv_func_fork_works=cross 17710 else $as_nop 17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17712 /* end confdefs.h. */ 17713 $ac_includes_default 17714 int 17715 main (void) 17716 { 17717 17718 /* By Ruediger Kuhlmann. */ 17719 return fork () < 0; 17720 17721 ; 17722 return 0; 17723 } 17724 _ACEOF 17725 if ac_fn_c_try_run "$LINENO" 17726 then : 17727 ac_cv_func_fork_works=yes 17728 else $as_nop 17729 ac_cv_func_fork_works=no 17730 fi 17731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17732 conftest.$ac_objext conftest.beam conftest.$ac_ext 17733 fi 17734 17735 fi 17736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 17737 printf "%s\n" "$ac_cv_func_fork_works" >&6; } 17738 17739 else 17740 ac_cv_func_fork_works=$ac_cv_func_fork 17741 fi 17742 if test "x$ac_cv_func_fork_works" = xcross; then 17743 case $host in 17744 *-*-amigaos* | *-*-msdosdjgpp*) 17745 # Override, as these systems have only a dummy fork() stub 17746 ac_cv_func_fork_works=no 17747 ;; 17748 *) 17749 ac_cv_func_fork_works=yes 17750 ;; 17751 esac 17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 17753 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 17754 fi 17755 ac_cv_func_vfork_works=$ac_cv_func_vfork 17756 if test "x$ac_cv_func_vfork" = xyes; then 17757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 17758 printf %s "checking for working vfork... " >&6; } 17759 if test ${ac_cv_func_vfork_works+y} 17760 then : 17761 printf %s "(cached) " >&6 17762 else $as_nop 17763 if test "$cross_compiling" = yes 17764 then : 17765 ac_cv_func_vfork_works=cross 17766 else $as_nop 17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17768 /* end confdefs.h. */ 17769 /* Thanks to Paul Eggert for this test. */ 17770 $ac_includes_default 17771 #include <signal.h> 17772 #include <sys/wait.h> 17773 #ifdef HAVE_VFORK_H 17774 # include <vfork.h> 17775 #endif 17776 17777 static void 17778 do_nothing (int sig) 17779 { 17780 (void) sig; 17781 } 17782 17783 /* On some sparc systems, changes by the child to local and incoming 17784 argument registers are propagated back to the parent. The compiler 17785 is told about this with #include <vfork.h>, but some compilers 17786 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 17787 static variable whose address is put into a register that is 17788 clobbered by the vfork. */ 17789 static void 17790 sparc_address_test (int arg) 17791 { 17792 static pid_t child; 17793 if (!child) { 17794 child = vfork (); 17795 if (child < 0) { 17796 perror ("vfork"); 17797 _exit(2); 17798 } 17799 if (!child) { 17800 arg = getpid(); 17801 write(-1, "", 0); 17802 _exit (arg); 17803 } 17804 } 17805 } 17806 17807 int 17808 main (void) 17809 { 17810 pid_t parent = getpid (); 17811 pid_t child; 17812 17813 sparc_address_test (0); 17814 17815 /* On Solaris 2.4, changes by the child to the signal handler 17816 also munge signal handlers in the parent. To detect this, 17817 start by putting the parent's handler in a known state. */ 17818 signal (SIGTERM, SIG_DFL); 17819 17820 child = vfork (); 17821 17822 if (child == 0) { 17823 /* Here is another test for sparc vfork register problems. This 17824 test uses lots of local variables, at least as many local 17825 variables as main has allocated so far including compiler 17826 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 17827 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 17828 reuse the register of parent for one of the local variables, 17829 since it will think that parent can't possibly be used any more 17830 in this routine. Assigning to the local variable will thus 17831 munge parent in the parent process. */ 17832 pid_t 17833 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 17834 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 17835 /* Convince the compiler that p..p7 are live; otherwise, it might 17836 use the same hardware register for all 8 local variables. */ 17837 if (p != p1 || p != p2 || p != p3 || p != p4 17838 || p != p5 || p != p6 || p != p7) 17839 _exit(1); 17840 17841 /* Alter the child's signal handler. */ 17842 if (signal (SIGTERM, do_nothing) != SIG_DFL) 17843 _exit(1); 17844 17845 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 17846 from child file descriptors. If the child closes a descriptor 17847 before it execs or exits, this munges the parent's descriptor 17848 as well. Test for this by closing stdout in the child. */ 17849 _exit(close(fileno(stdout)) != 0); 17850 } else { 17851 int status; 17852 struct stat st; 17853 17854 while (wait(&status) != child) 17855 ; 17856 return ( 17857 /* Was there some problem with vforking? */ 17858 child < 0 17859 17860 /* Did the child munge the parent's signal handler? */ 17861 || signal (SIGTERM, SIG_DFL) != SIG_DFL 17862 17863 /* Did the child fail? (This shouldn't happen.) */ 17864 || status 17865 17866 /* Did the vfork/compiler bug occur? */ 17867 || parent != getpid() 17868 17869 /* Did the file descriptor bug occur? */ 17870 || fstat(fileno(stdout), &st) != 0 17871 ); 17872 } 17873 } 17874 _ACEOF 17875 if ac_fn_c_try_run "$LINENO" 17876 then : 17877 ac_cv_func_vfork_works=yes 17878 else $as_nop 17879 ac_cv_func_vfork_works=no 17880 fi 17881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17882 conftest.$ac_objext conftest.beam conftest.$ac_ext 17883 fi 17884 17885 fi 17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 17887 printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 17888 17889 fi; 17890 if test "x$ac_cv_func_fork_works" = xcross; then 17891 ac_cv_func_vfork_works=$ac_cv_func_vfork 17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 17893 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 17894 fi 17895 17896 if test "x$ac_cv_func_vfork_works" = xyes; then 17897 17898 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 17899 17900 else 17901 17902 printf "%s\n" "#define vfork fork" >>confdefs.h 17903 17904 fi 17905 if test "x$ac_cv_func_fork_works" = xyes; then 17906 17907 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 17908 17909 fi 17910 17911 17912 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 17913 17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17915 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 17916 if test ${ac_cv_sys_largefile_source+y} 17917 then : 17918 printf %s "(cached) " >&6 17919 else $as_nop 17920 while :; do 17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17922 /* end confdefs.h. */ 17923 #include <sys/types.h> /* for off_t */ 17924 #include <stdio.h> 17925 int 17926 main (void) 17927 { 17928 int (*fp) (FILE *, off_t, int) = fseeko; 17929 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17930 ; 17931 return 0; 17932 } 17933 _ACEOF 17934 if ac_fn_c_try_link "$LINENO" 17935 then : 17936 ac_cv_sys_largefile_source=no; break 17937 fi 17938 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17939 conftest$ac_exeext conftest.$ac_ext 17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17941 /* end confdefs.h. */ 17942 #define _LARGEFILE_SOURCE 1 17943 #include <sys/types.h> /* for off_t */ 17944 #include <stdio.h> 17945 int 17946 main (void) 17947 { 17948 int (*fp) (FILE *, off_t, int) = fseeko; 17949 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17950 ; 17951 return 0; 17952 } 17953 _ACEOF 17954 if ac_fn_c_try_link "$LINENO" 17955 then : 17956 ac_cv_sys_largefile_source=1; break 17957 fi 17958 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17959 conftest$ac_exeext conftest.$ac_ext 17960 ac_cv_sys_largefile_source=unknown 17961 break 17962 done 17963 fi 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 17965 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 17966 case $ac_cv_sys_largefile_source in #( 17967 no | unknown) ;; 17968 *) 17969 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 17970 ;; 17971 esac 17972 rm -rf conftest* 17973 17974 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17975 # in glibc 2.1.3, but that breaks too many other things. 17976 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17977 if test $ac_cv_sys_largefile_source != unknown; then 17978 17979 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 17980 17981 fi 17982 17983 17984 # Check whether --enable-largefile was given. 17985 if test ${enable_largefile+y} 17986 then : 17987 enableval=$enable_largefile; 17988 fi 17989 17990 if test "$enable_largefile" != no; then 17991 17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17993 printf %s "checking for special C compiler options needed for large files... " >&6; } 17994 if test ${ac_cv_sys_largefile_CC+y} 17995 then : 17996 printf %s "(cached) " >&6 17997 else $as_nop 17998 ac_cv_sys_largefile_CC=no 17999 if test "$GCC" != yes; then 18000 ac_save_CC=$CC 18001 while :; do 18002 # IRIX 6.2 and later do not support large files by default, 18003 # so use the C compiler's -n32 option if that helps. 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005 /* end confdefs.h. */ 18006 #include <sys/types.h> 18007 /* Check that off_t can represent 2**63 - 1 correctly. 18008 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18009 since some C++ compilers masquerading as C compilers 18010 incorrectly reject 9223372036854775807. */ 18011 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 18012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18013 && LARGE_OFF_T % 2147483647 == 1) 18014 ? 1 : -1]; 18015 int 18016 main (void) 18017 { 18018 18019 ; 18020 return 0; 18021 } 18022 _ACEOF 18023 if ac_fn_c_try_compile "$LINENO" 18024 then : 18025 break 18026 fi 18027 rm -f core conftest.err conftest.$ac_objext conftest.beam 18028 CC="$CC -n32" 18029 if ac_fn_c_try_compile "$LINENO" 18030 then : 18031 ac_cv_sys_largefile_CC=' -n32'; break 18032 fi 18033 rm -f core conftest.err conftest.$ac_objext conftest.beam 18034 break 18035 done 18036 CC=$ac_save_CC 18037 rm -f conftest.$ac_ext 18038 fi 18039 fi 18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18041 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 18042 if test "$ac_cv_sys_largefile_CC" != no; then 18043 CC=$CC$ac_cv_sys_largefile_CC 18044 fi 18045 18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18047 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18048 if test ${ac_cv_sys_file_offset_bits+y} 18049 then : 18050 printf %s "(cached) " >&6 18051 else $as_nop 18052 while :; do 18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18054 /* end confdefs.h. */ 18055 #include <sys/types.h> 18056 /* Check that off_t can represent 2**63 - 1 correctly. 18057 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18058 since some C++ compilers masquerading as C compilers 18059 incorrectly reject 9223372036854775807. */ 18060 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 18061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18062 && LARGE_OFF_T % 2147483647 == 1) 18063 ? 1 : -1]; 18064 int 18065 main (void) 18066 { 18067 18068 ; 18069 return 0; 18070 } 18071 _ACEOF 18072 if ac_fn_c_try_compile "$LINENO" 18073 then : 18074 ac_cv_sys_file_offset_bits=no; break 18075 fi 18076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18078 /* end confdefs.h. */ 18079 #define _FILE_OFFSET_BITS 64 18080 #include <sys/types.h> 18081 /* Check that off_t can represent 2**63 - 1 correctly. 18082 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18083 since some C++ compilers masquerading as C compilers 18084 incorrectly reject 9223372036854775807. */ 18085 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 18086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18087 && LARGE_OFF_T % 2147483647 == 1) 18088 ? 1 : -1]; 18089 int 18090 main (void) 18091 { 18092 18093 ; 18094 return 0; 18095 } 18096 _ACEOF 18097 if ac_fn_c_try_compile "$LINENO" 18098 then : 18099 ac_cv_sys_file_offset_bits=64; break 18100 fi 18101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18102 ac_cv_sys_file_offset_bits=unknown 18103 break 18104 done 18105 fi 18106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18107 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 18108 case $ac_cv_sys_file_offset_bits in #( 18109 no | unknown) ;; 18110 *) 18111 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 18112 ;; 18113 esac 18114 rm -rf conftest* 18115 if test $ac_cv_sys_file_offset_bits = unknown; then 18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18117 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 18118 if test ${ac_cv_sys_large_files+y} 18119 then : 18120 printf %s "(cached) " >&6 18121 else $as_nop 18122 while :; do 18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18124 /* end confdefs.h. */ 18125 #include <sys/types.h> 18126 /* Check that off_t can represent 2**63 - 1 correctly. 18127 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18128 since some C++ compilers masquerading as C compilers 18129 incorrectly reject 9223372036854775807. */ 18130 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 18131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18132 && LARGE_OFF_T % 2147483647 == 1) 18133 ? 1 : -1]; 18134 int 18135 main (void) 18136 { 18137 18138 ; 18139 return 0; 18140 } 18141 _ACEOF 18142 if ac_fn_c_try_compile "$LINENO" 18143 then : 18144 ac_cv_sys_large_files=no; break 18145 fi 18146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18148 /* end confdefs.h. */ 18149 #define _LARGE_FILES 1 18150 #include <sys/types.h> 18151 /* Check that off_t can represent 2**63 - 1 correctly. 18152 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18153 since some C++ compilers masquerading as C compilers 18154 incorrectly reject 9223372036854775807. */ 18155 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 18156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18157 && LARGE_OFF_T % 2147483647 == 1) 18158 ? 1 : -1]; 18159 int 18160 main (void) 18161 { 18162 18163 ; 18164 return 0; 18165 } 18166 _ACEOF 18167 if ac_fn_c_try_compile "$LINENO" 18168 then : 18169 ac_cv_sys_large_files=1; break 18170 fi 18171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18172 ac_cv_sys_large_files=unknown 18173 break 18174 done 18175 fi 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18177 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 18178 case $ac_cv_sys_large_files in #( 18179 no | unknown) ;; 18180 *) 18181 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 18182 ;; 18183 esac 18184 rm -rf conftest* 18185 fi 18186 fi 18187 18188 18189 18190 18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 18192 printf %s "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 18193 cache=_D_LARGEFILE_SOURCE_1 18194 if eval test \${cv_prog_cc_flag_needed_$cache+y} 18195 then : 18196 printf %s "(cached) " >&6 18197 else $as_nop 18198 18199 echo ' 18200 #include <stdio.h> 18201 int test(void) { 18202 int a = fseeko(stdin, 0, 0); 18203 return a; 18204 } 18205 ' > conftest.c 18206 echo 'void f(void){}' >>conftest.c 18207 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 18208 eval "cv_prog_cc_flag_needed_$cache=no" 18209 else 18210 18211 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 18212 eval "cv_prog_cc_flag_needed_$cache=yes" 18213 else 18214 eval "cv_prog_cc_flag_needed_$cache=fail" 18215 #echo 'Test with flag fails too!' 18216 #cat conftest.c 18217 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 18218 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 18219 #exit 1 18220 fi 18221 18222 fi 18223 rm -f conftest conftest.c conftest.o 18224 18225 fi 18226 18227 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18229 printf "%s\n" "yes" >&6; } 18230 : 18231 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 18232 else 18233 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18235 printf "%s\n" "no" >&6; } 18236 #echo 'Test with flag is no!' 18237 #cat conftest.c 18238 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 18239 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 18240 #exit 1 18241 : 18242 18243 else 18244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 18245 printf "%s\n" "failed" >&6; } 18246 : 18247 18248 fi 18249 fi 18250 18251 18252 18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 18254 printf %s "checking if nonblocking sockets work... " >&6; } 18255 if echo $host | grep mingw >/dev/null; then 18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 18257 printf "%s\n" "no (windows)" >&6; } 18258 18259 printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 18260 18261 else 18262 if test "$cross_compiling" = yes 18263 then : 18264 18265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 18266 printf "%s\n" "crosscompile(yes)" >&6; } 18267 18268 else $as_nop 18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270 /* end confdefs.h. */ 18271 18272 18273 #include <stdio.h> 18274 #include <string.h> 18275 #include <stdlib.h> 18276 #include <fcntl.h> 18277 #include <errno.h> 18278 #ifdef HAVE_SYS_TYPES_H 18279 #include <sys/types.h> 18280 #endif 18281 #ifdef HAVE_SYS_SELECT_H 18282 #include <sys/select.h> 18283 #endif 18284 #ifdef HAVE_SYS_SOCKET_H 18285 #include <sys/socket.h> 18286 #endif 18287 #ifdef HAVE_NETINET_IN_H 18288 #include <netinet/in.h> 18289 #endif 18290 #ifdef HAVE_ARPA_INET_H 18291 #include <arpa/inet.h> 18292 #endif 18293 #ifdef HAVE_UNISTD_H 18294 #include <unistd.h> 18295 #endif 18296 #ifdef HAVE_TIME_H 18297 #include <time.h> 18298 #endif 18299 18300 int main(void) 18301 { 18302 int port; 18303 int sfd, cfd; 18304 int num = 10; 18305 int i, p; 18306 struct sockaddr_in a; 18307 /* test if select and nonblocking reads work well together */ 18308 /* open port. 18309 fork child to send 10 messages. 18310 select to read. 18311 then try to nonblocking read the 10 messages 18312 then, nonblocking read must give EAGAIN 18313 */ 18314 18315 port = 12345 + (time(0)%32); 18316 sfd = socket(PF_INET, SOCK_DGRAM, 0); 18317 if(sfd == -1) { 18318 perror("socket"); 18319 return 1; 18320 } 18321 memset(&a, 0, sizeof(a)); 18322 a.sin_family = AF_INET; 18323 a.sin_port = htons(port); 18324 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 18325 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 18326 perror("bind"); 18327 return 1; 18328 } 18329 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 18330 perror("fcntl"); 18331 return 1; 18332 } 18333 18334 cfd = socket(PF_INET, SOCK_DGRAM, 0); 18335 if(cfd == -1) { 18336 perror("client socket"); 18337 return 1; 18338 } 18339 a.sin_port = 0; 18340 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 18341 perror("client bind"); 18342 return 1; 18343 } 18344 a.sin_port = htons(port); 18345 18346 /* no handler, causes exit in 10 seconds */ 18347 alarm(10); 18348 18349 /* send and receive on the socket */ 18350 if((p=fork()) == 0) { 18351 for(i=0; i<num; i++) { 18352 if(sendto(cfd, &i, sizeof(i), 0, 18353 (struct sockaddr*)&a, sizeof(a)) < 0) { 18354 perror("sendto"); 18355 return 1; 18356 } 18357 } 18358 } else { 18359 /* parent */ 18360 fd_set rset; 18361 int x; 18362 if(p == -1) { 18363 perror("fork"); 18364 return 1; 18365 } 18366 FD_ZERO(&rset); 18367 FD_SET(sfd, &rset); 18368 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 18369 perror("select"); 18370 return 1; 18371 } 18372 i = 0; 18373 while(i < num) { 18374 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 18375 if(errno == EAGAIN) 18376 continue; 18377 perror("recv"); 18378 return 1; 18379 } 18380 i++; 18381 } 18382 /* now we want to get EAGAIN: nonblocking goodness */ 18383 errno = 0; 18384 recv(sfd, &x, sizeof(x), 0); 18385 if(errno != EAGAIN) { 18386 perror("trying to recv again"); 18387 return 1; 18388 } 18389 /* EAGAIN encountered */ 18390 } 18391 18392 close(sfd); 18393 close(cfd); 18394 return 0; 18395 } 18396 18397 _ACEOF 18398 if ac_fn_c_try_run "$LINENO" 18399 then : 18400 18401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18402 printf "%s\n" "yes" >&6; } 18403 18404 else $as_nop 18405 18406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18407 printf "%s\n" "no" >&6; } 18408 18409 printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 18410 18411 18412 fi 18413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18414 conftest.$ac_objext conftest.beam conftest.$ac_ext 18415 fi 18416 18417 fi 18418 18419 18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 18421 printf %s "checking whether mkdir has one arg... " >&6; } 18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18423 /* end confdefs.h. */ 18424 18425 #include <stdio.h> 18426 #include <unistd.h> 18427 #ifdef HAVE_WINSOCK2_H 18428 #include <winsock2.h> 18429 #endif 18430 #ifdef HAVE_SYS_STAT_H 18431 #include <sys/stat.h> 18432 #endif 18433 18434 int 18435 main (void) 18436 { 18437 18438 (void)mkdir("directory"); 18439 18440 ; 18441 return 0; 18442 } 18443 _ACEOF 18444 if ac_fn_c_try_compile "$LINENO" 18445 then : 18446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18447 printf "%s\n" "yes" >&6; } 18448 18449 printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 18450 18451 18452 else $as_nop 18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18454 printf "%s\n" "no" >&6; } 18455 18456 fi 18457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18458 18459 18460 for ac_func in strptime 18461 do : 18462 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 18463 if test "x$ac_cv_func_strptime" = xyes 18464 then : 18465 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 18466 18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 18468 printf %s "checking whether strptime works... " >&6; } 18469 if test c${cross_compiling} = cno; then 18470 if test "$cross_compiling" = yes 18471 then : 18472 eval "ac_cv_c_strptime_works=maybe" 18473 else $as_nop 18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18475 /* end confdefs.h. */ 18476 18477 #define _XOPEN_SOURCE 600 18478 #include <time.h> 18479 int main(void) { struct tm tm; char *res; 18480 res = 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); 18481 if (!res) return 2; 18482 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 18483 if (!res) return 1; return 0; } 18484 18485 _ACEOF 18486 if ac_fn_c_try_run "$LINENO" 18487 then : 18488 eval "ac_cv_c_strptime_works=yes" 18489 else $as_nop 18490 eval "ac_cv_c_strptime_works=no" 18491 fi 18492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18493 conftest.$ac_objext conftest.beam conftest.$ac_ext 18494 fi 18495 18496 else 18497 eval "ac_cv_c_strptime_works=maybe" 18498 fi 18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 18500 printf "%s\n" "$ac_cv_c_strptime_works" >&6; } 18501 if test $ac_cv_c_strptime_works = no; then 18502 case " $LIBOBJS " in 18503 *" strptime.$ac_objext "* ) ;; 18504 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 18505 ;; 18506 esac 18507 18508 else 18509 18510 printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h 18511 18512 fi 18513 18514 else $as_nop 18515 case " $LIBOBJS " in 18516 *" strptime.$ac_objext "* ) ;; 18517 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 18518 ;; 18519 esac 18520 18521 fi 18522 18523 done 18524 18525 # check if we can use SO_REUSEPORT 18526 reuseport_default=0 18527 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi 18528 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi 18529 if test "$reuseport_default" = 1; then 18530 18531 printf "%s\n" "#define REUSEPORT_DEFAULT 1" >>confdefs.h 18532 18533 else 18534 18535 printf "%s\n" "#define REUSEPORT_DEFAULT 0" >>confdefs.h 18536 18537 fi 18538 18539 # Include systemd.m4 - begin 18540 # macros for configuring systemd 18541 # Copyright 2015, Sami Kerola, CloudFlare. 18542 # BSD licensed. 18543 # Check whether --enable-systemd was given. 18544 if test ${enable_systemd+y} 18545 then : 18546 enableval=$enable_systemd; 18547 else $as_nop 18548 enable_systemd=no 18549 fi 18550 18551 have_systemd=no 18552 if test "x$enable_systemd" != xno 18553 then : 18554 18555 if test -n "$PKG_CONFIG"; then 18556 have_systemd=no 18557 18558 pkg_failed=no 18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 18560 printf %s "checking for libsystemd... " >&6; } 18561 18562 if test -n "$SYSTEMD_CFLAGS"; then 18563 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 18564 elif test -n "$PKG_CONFIG"; then 18565 if test -n "$PKG_CONFIG" && \ 18566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 18567 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 18568 ac_status=$? 18569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18570 test $ac_status = 0; }; then 18571 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 18572 test "x$?" != "x0" && pkg_failed=yes 18573 else 18574 pkg_failed=yes 18575 fi 18576 else 18577 pkg_failed=untried 18578 fi 18579 if test -n "$SYSTEMD_LIBS"; then 18580 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 18581 elif test -n "$PKG_CONFIG"; then 18582 if test -n "$PKG_CONFIG" && \ 18583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 18584 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 18585 ac_status=$? 18586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18587 test $ac_status = 0; }; then 18588 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 18589 test "x$?" != "x0" && pkg_failed=yes 18590 else 18591 pkg_failed=yes 18592 fi 18593 else 18594 pkg_failed=untried 18595 fi 18596 18597 18598 18599 if test $pkg_failed = yes; then 18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18601 printf "%s\n" "no" >&6; } 18602 18603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18604 _pkg_short_errors_supported=yes 18605 else 18606 _pkg_short_errors_supported=no 18607 fi 18608 if test $_pkg_short_errors_supported = yes; then 18609 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 18610 else 18611 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 18612 fi 18613 # Put the nasty error message in config.log where it belongs 18614 echo "$SYSTEMD_PKG_ERRORS" >&5 18615 18616 as_fn_error $? "Package requirements (libsystemd) were not met: 18617 18618 $SYSTEMD_PKG_ERRORS 18619 18620 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18621 installed software in a non-standard prefix. 18622 18623 Alternatively, you may set the environment variables SYSTEMD_CFLAGS 18624 and SYSTEMD_LIBS to avoid the need to call pkg-config. 18625 See the pkg-config man page for more details." "$LINENO" 5 18626 elif test $pkg_failed = untried; then 18627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18628 printf "%s\n" "no" >&6; } 18629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18630 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18631 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18632 is in your PATH or set the PKG_CONFIG environment variable to the full 18633 path to pkg-config. 18634 18635 Alternatively, you may set the environment variables SYSTEMD_CFLAGS 18636 and SYSTEMD_LIBS to avoid the need to call pkg-config. 18637 See the pkg-config man page for more details. 18638 18639 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18640 See \`config.log' for more details" "$LINENO" 5; } 18641 else 18642 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 18643 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 18644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18645 printf "%s\n" "yes" >&6; } 18646 have_systemd=yes 18647 fi 18648 if test "x$have_systemd" != "xyes" 18649 then : 18650 18651 have_systemd_daemon=no 18652 18653 pkg_failed=no 18654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 18655 printf %s "checking for libsystemd-daemon... " >&6; } 18656 18657 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 18658 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 18659 elif test -n "$PKG_CONFIG"; then 18660 if test -n "$PKG_CONFIG" && \ 18661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 18662 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 18663 ac_status=$? 18664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18665 test $ac_status = 0; }; then 18666 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 18667 test "x$?" != "x0" && pkg_failed=yes 18668 else 18669 pkg_failed=yes 18670 fi 18671 else 18672 pkg_failed=untried 18673 fi 18674 if test -n "$SYSTEMD_DAEMON_LIBS"; then 18675 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 18676 elif test -n "$PKG_CONFIG"; then 18677 if test -n "$PKG_CONFIG" && \ 18678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 18679 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 18680 ac_status=$? 18681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18682 test $ac_status = 0; }; then 18683 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 18684 test "x$?" != "x0" && pkg_failed=yes 18685 else 18686 pkg_failed=yes 18687 fi 18688 else 18689 pkg_failed=untried 18690 fi 18691 18692 18693 18694 if test $pkg_failed = yes; then 18695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18696 printf "%s\n" "no" >&6; } 18697 18698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18699 _pkg_short_errors_supported=yes 18700 else 18701 _pkg_short_errors_supported=no 18702 fi 18703 if test $_pkg_short_errors_supported = yes; then 18704 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 18705 else 18706 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 18707 fi 18708 # Put the nasty error message in config.log where it belongs 18709 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 18710 18711 as_fn_error $? "Package requirements (libsystemd-daemon) were not met: 18712 18713 $SYSTEMD_DAEMON_PKG_ERRORS 18714 18715 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18716 installed software in a non-standard prefix. 18717 18718 Alternatively, you may set the environment variables SYSTEMD_DAEMON_CFLAGS 18719 and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config. 18720 See the pkg-config man page for more details." "$LINENO" 5 18721 elif test $pkg_failed = untried; then 18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18723 printf "%s\n" "no" >&6; } 18724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18726 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18727 is in your PATH or set the PKG_CONFIG environment variable to the full 18728 path to pkg-config. 18729 18730 Alternatively, you may set the environment variables SYSTEMD_DAEMON_CFLAGS 18731 and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config. 18732 See the pkg-config man page for more details. 18733 18734 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18735 See \`config.log' for more details" "$LINENO" 5; } 18736 else 18737 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 18738 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18740 printf "%s\n" "yes" >&6; } 18741 have_systemd_daemon=yes 18742 fi 18743 if test "x$have_systemd_daemon" = "xyes" 18744 then : 18745 have_systemd=yes 18746 fi 18747 18748 fi 18749 case $enable_systemd:$have_systemd in #( 18750 yes:no) : 18751 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 18752 *:yes) : 18753 18754 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h 18755 18756 LIBS="$LIBS $SYSTEMD_LIBS" 18757 18758 ;; #( 18759 *) : 18760 ;; 18761 esac 18762 else 18763 as_fn_error $? "systemd enabled but need pkg-config to configure for it" "$LINENO" 5 18764 fi 18765 18766 fi 18767 if test "x$have_systemd" = xyes; then 18768 USE_SYSTEMD_TRUE= 18769 USE_SYSTEMD_FALSE='#' 18770 else 18771 USE_SYSTEMD_TRUE='#' 18772 USE_SYSTEMD_FALSE= 18773 fi 18774 18775 18776 # Include systemd.m4 - end 18777 18778 # set memory allocation checking if requested 18779 # Check whether --enable-alloc-checks was given. 18780 if test ${enable_alloc_checks+y} 18781 then : 18782 enableval=$enable_alloc_checks; 18783 fi 18784 18785 # Check whether --enable-alloc-lite was given. 18786 if test ${enable_alloc_lite+y} 18787 then : 18788 enableval=$enable_alloc_lite; 18789 fi 18790 18791 # Check whether --enable-alloc-nonregional was given. 18792 if test ${enable_alloc_nonregional+y} 18793 then : 18794 enableval=$enable_alloc_nonregional; 18795 fi 18796 18797 if test x_$enable_alloc_nonregional = x_yes; then 18798 18799 printf "%s\n" "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 18800 18801 fi 18802 if test x_$enable_alloc_checks = x_yes 18803 then : 18804 18805 18806 printf "%s\n" "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 18807 18808 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 18809 18810 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 18811 18812 18813 else $as_nop 18814 18815 if test x_$enable_alloc_lite = x_yes 18816 then : 18817 18818 18819 printf "%s\n" "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 18820 18821 18822 else $as_nop 18823 18824 18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 18826 printf %s "checking for GNU libc compatible malloc... " >&6; } 18827 if test ${ac_cv_func_malloc_0_nonnull+y} 18828 then : 18829 printf %s "(cached) " >&6 18830 else $as_nop 18831 18832 if test "$cross_compiling" = yes 18833 then : 18834 ac_cv_func_malloc_0_nonnull="no (crosscompile)" 18835 else $as_nop 18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18837 /* end confdefs.h. */ 18838 #if defined STDC_HEADERS || defined HAVE_STDLIB_H 18839 #include <stdlib.h> 18840 #else 18841 char *malloc (); 18842 #endif 18843 18844 int 18845 main (void) 18846 { 18847 if(malloc(0) != 0) return 1; 18848 ; 18849 return 0; 18850 } 18851 18852 _ACEOF 18853 if ac_fn_c_try_run "$LINENO" 18854 then : 18855 ac_cv_func_malloc_0_nonnull=no 18856 else $as_nop 18857 ac_cv_func_malloc_0_nonnull=yes 18858 fi 18859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18860 conftest.$ac_objext conftest.beam conftest.$ac_ext 18861 fi 18862 18863 18864 fi 18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 18866 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 18867 if test "$ac_cv_func_malloc_0_nonnull" = yes 18868 then : 18869 18870 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h 18871 18872 else $as_nop 18873 18874 case " $LIBOBJS " in 18875 *" malloc.$ac_objext "* ) ;; 18876 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 18877 ;; 18878 esac 18879 18880 18881 printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h 18882 18883 18884 fi 18885 18886 18887 fi 18888 18889 fi 18890 18891 # check windows threads (we use them, not pthreads, on windows). 18892 if test "$on_mingw" = "yes"; then 18893 # check windows threads 18894 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 18895 " 18896 if test "x$ac_cv_header_windows_h" = xyes 18897 then : 18898 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 18899 18900 fi 18901 18902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 18903 printf %s "checking for CreateThread... " >&6; } 18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18905 /* end confdefs.h. */ 18906 18907 #ifdef HAVE_WINDOWS_H 18908 #include <windows.h> 18909 #endif 18910 18911 int 18912 main (void) 18913 { 18914 18915 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 18916 18917 ; 18918 return 0; 18919 } 18920 _ACEOF 18921 if ac_fn_c_try_compile "$LINENO" 18922 then : 18923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18924 printf "%s\n" "yes" >&6; } 18925 18926 printf "%s\n" "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 18927 18928 18929 else $as_nop 18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18931 printf "%s\n" "no" >&6; } 18932 18933 fi 18934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18935 18936 else 18937 # not on mingw, check thread libraries. 18938 18939 # check for thread library. 18940 # check this first, so that the pthread lib does not get linked in via 18941 # libssl or libpython, and thus distorts the tests, and we end up using 18942 # the non-threadsafe C libraries. 18943 18944 # Check whether --with-pthreads was given. 18945 if test ${with_pthreads+y} 18946 then : 18947 withval=$with_pthreads; 18948 else $as_nop 18949 withval="yes" 18950 fi 18951 18952 ub_have_pthreads=no 18953 if test x_$withval != x_no; then 18954 18955 18956 18957 18958 ac_ext=c 18959 ac_cpp='$CPP $CPPFLAGS' 18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18963 18964 ax_pthread_ok=no 18965 18966 # We used to check for pthread.h first, but this fails if pthread.h 18967 # requires special compiler flags (e.g. on Tru64 or Sequent). 18968 # It gets checked for in the link test anyway. 18969 18970 # First of all, check if the user has set any of the PTHREAD_LIBS, 18971 # etcetera environment variables, and if threads linking works using 18972 # them: 18973 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 18974 ax_pthread_save_CC="$CC" 18975 ax_pthread_save_CFLAGS="$CFLAGS" 18976 ax_pthread_save_LIBS="$LIBS" 18977 if test "x$PTHREAD_CC" != "x" 18978 then : 18979 CC="$PTHREAD_CC" 18980 fi 18981 if test "x$PTHREAD_CXX" != "x" 18982 then : 18983 CXX="$PTHREAD_CXX" 18984 fi 18985 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18986 LIBS="$PTHREAD_LIBS $LIBS" 18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 18988 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18990 /* end confdefs.h. */ 18991 18992 /* Override any GCC internal prototype to avoid an error. 18993 Use char because int might match the return type of a GCC 18994 builtin and then its argument prototype would still apply. */ 18995 char pthread_join (); 18996 int 18997 main (void) 18998 { 18999 return pthread_join (); 19000 ; 19001 return 0; 19002 } 19003 _ACEOF 19004 if ac_fn_c_try_link "$LINENO" 19005 then : 19006 ax_pthread_ok=yes 19007 fi 19008 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19009 conftest$ac_exeext conftest.$ac_ext 19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19011 printf "%s\n" "$ax_pthread_ok" >&6; } 19012 if test "x$ax_pthread_ok" = "xno"; then 19013 PTHREAD_LIBS="" 19014 PTHREAD_CFLAGS="" 19015 fi 19016 CC="$ax_pthread_save_CC" 19017 CFLAGS="$ax_pthread_save_CFLAGS" 19018 LIBS="$ax_pthread_save_LIBS" 19019 fi 19020 19021 # We must check for the threads library under a number of different 19022 # names; the ordering is very important because some systems 19023 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 19024 # libraries is broken (non-POSIX). 19025 19026 # Create a list of thread flags to try. Items with a "," contain both 19027 # C compiler flags (before ",") and linker flags (after ","). Other items 19028 # starting with a "-" are C compiler flags, and remaining items are 19029 # library names, except for "none" which indicates that we try without 19030 # any flags at all, and "pthread-config" which is a program returning 19031 # the flags for the Pth emulation library. 19032 19033 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19034 19035 # The ordering *is* (sometimes) important. Some notes on the 19036 # individual items follow: 19037 19038 # pthreads: AIX (must check this before -lpthread) 19039 # none: in case threads are in libc; should be tried before -Kthread and 19040 # other compiler flags to prevent continual compiler warnings 19041 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 19042 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 19043 # (Note: HP C rejects this with "bad form for `-t' option") 19044 # -pthreads: Solaris/gcc (Note: HP C also rejects) 19045 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 19046 # doesn't hurt to check since this sometimes defines pthreads and 19047 # -D_REENTRANT too), HP C (must be checked before -lpthread, which 19048 # is present but should not be used directly; and before -mthreads, 19049 # because the compiler interprets this as "-mt" + "-hreads") 19050 # -mthreads: Mingw32/gcc, Lynx/gcc 19051 # pthread: Linux, etcetera 19052 # --thread-safe: KAI C++ 19053 # pthread-config: use pthread-config program (for GNU Pth library) 19054 19055 case $host_os in 19056 19057 freebsd*) 19058 19059 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 19060 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 19061 19062 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 19063 ;; 19064 19065 hpux*) 19066 19067 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 19068 # multi-threading and also sets -lpthread." 19069 19070 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 19071 ;; 19072 19073 openedition*) 19074 19075 # IBM z/OS requires a feature-test macro to be defined in order to 19076 # enable POSIX threads at all, so give the user a hint if this is 19077 # not set. (We don't define these ourselves, as they can affect 19078 # other portions of the system API in unpredictable ways.) 19079 19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19081 /* end confdefs.h. */ 19082 19083 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 19084 AX_PTHREAD_ZOS_MISSING 19085 # endif 19086 19087 _ACEOF 19088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19089 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 19090 then : 19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 19092 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 19093 fi 19094 rm -rf conftest* 19095 19096 ;; 19097 19098 solaris*) 19099 19100 # On Solaris (at least, for some versions), libc contains stubbed 19101 # (non-functional) versions of the pthreads routines, so link-based 19102 # tests will erroneously succeed. (N.B.: The stubs are missing 19103 # pthread_cleanup_push, or rather a function called by this macro, 19104 # so we could check for that, but who knows whether they'll stub 19105 # that too in a future libc.) So we'll check first for the 19106 # standard Solaris way of linking pthreads (-mt -lpthread). 19107 19108 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 19109 ;; 19110 esac 19111 19112 # Are we compiling with Clang? 19113 19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 19115 printf %s "checking whether $CC is Clang... " >&6; } 19116 if test ${ax_cv_PTHREAD_CLANG+y} 19117 then : 19118 printf %s "(cached) " >&6 19119 else $as_nop 19120 ax_cv_PTHREAD_CLANG=no 19121 # Note that Autoconf sets GCC=yes for Clang as well as GCC 19122 if test "x$GCC" = "xyes"; then 19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19124 /* end confdefs.h. */ 19125 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 19126 # if defined(__clang__) && defined(__llvm__) 19127 AX_PTHREAD_CC_IS_CLANG 19128 # endif 19129 19130 _ACEOF 19131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19132 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 19133 then : 19134 ax_cv_PTHREAD_CLANG=yes 19135 fi 19136 rm -rf conftest* 19137 19138 fi 19139 19140 fi 19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 19142 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 19143 ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 19144 19145 19146 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 19147 19148 # Note that for GCC and Clang -pthread generally implies -lpthread, 19149 # except when -nostdlib is passed. 19150 # This is problematic using libtool to build C++ shared libraries with pthread: 19151 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 19152 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 19153 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 19154 # To solve this, first try -pthread together with -lpthread for GCC 19155 19156 if test "x$GCC" = "xyes" 19157 then : 19158 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 19159 fi 19160 19161 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 19162 19163 if test "x$ax_pthread_clang" = "xyes" 19164 then : 19165 ax_pthread_flags="-pthread,-lpthread -pthread" 19166 fi 19167 19168 19169 # The presence of a feature test macro requesting re-entrant function 19170 # definitions is, on some systems, a strong hint that pthreads support is 19171 # correctly enabled 19172 19173 case $host_os in 19174 solaris*) 19175 # Solaris 11.4 introduced XPG7 support and did away with the need for 19176 # _REENTRANT. 19177 19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19179 /* end confdefs.h. */ 19180 19181 # undef _XOPEN_SOURCE 19182 # include <sys/feature_tests.h> 19183 # if _XOPEN_VERSION < 700 19184 AX_PTHREAD_SOLARIS__REENTRANT 19185 # endif 19186 19187 _ACEOF 19188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19189 $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1 19190 then : 19191 ax_pthread_check_macro="_REENTRANT" 19192 else $as_nop 19193 ax_pthread_check_macro="--" 19194 fi 19195 rm -rf conftest* 19196 19197 ;; 19198 darwin* | hpux* | linux* | osf*) 19199 ax_pthread_check_macro="_REENTRANT" 19200 ;; 19201 19202 aix*) 19203 ax_pthread_check_macro="_THREAD_SAFE" 19204 ;; 19205 19206 *) 19207 ax_pthread_check_macro="--" 19208 ;; 19209 esac 19210 if test "x$ax_pthread_check_macro" = "x--" 19211 then : 19212 ax_pthread_check_cond=0 19213 else $as_nop 19214 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 19215 fi 19216 19217 19218 if test "x$ax_pthread_ok" = "xno"; then 19219 for ax_pthread_try_flag in $ax_pthread_flags; do 19220 19221 case $ax_pthread_try_flag in 19222 none) 19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19224 printf %s "checking whether pthreads work without any flags... " >&6; } 19225 ;; 19226 19227 *,*) 19228 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 19229 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 19230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 19231 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 19232 ;; 19233 19234 -*) 19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 19236 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 19237 PTHREAD_CFLAGS="$ax_pthread_try_flag" 19238 ;; 19239 19240 pthread-config) 19241 # Extract the first word of "pthread-config", so it can be a program name with args. 19242 set dummy pthread-config; ac_word=$2 19243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19244 printf %s "checking for $ac_word... " >&6; } 19245 if test ${ac_cv_prog_ax_pthread_config+y} 19246 then : 19247 printf %s "(cached) " >&6 19248 else $as_nop 19249 if test -n "$ax_pthread_config"; then 19250 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 19251 else 19252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19253 for as_dir in $PATH 19254 do 19255 IFS=$as_save_IFS 19256 case $as_dir in #((( 19257 '') as_dir=./ ;; 19258 */) ;; 19259 *) as_dir=$as_dir/ ;; 19260 esac 19261 for ac_exec_ext in '' $ac_executable_extensions; do 19262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19263 ac_cv_prog_ax_pthread_config="yes" 19264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19265 break 2 19266 fi 19267 done 19268 done 19269 IFS=$as_save_IFS 19270 19271 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 19272 fi 19273 fi 19274 ax_pthread_config=$ac_cv_prog_ax_pthread_config 19275 if test -n "$ax_pthread_config"; then 19276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 19277 printf "%s\n" "$ax_pthread_config" >&6; } 19278 else 19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19280 printf "%s\n" "no" >&6; } 19281 fi 19282 19283 19284 if test "x$ax_pthread_config" = "xno" 19285 then : 19286 continue 19287 fi 19288 PTHREAD_CFLAGS="`pthread-config --cflags`" 19289 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19290 ;; 19291 19292 *) 19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 19294 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 19295 PTHREAD_LIBS="-l$ax_pthread_try_flag" 19296 ;; 19297 esac 19298 19299 ax_pthread_save_CFLAGS="$CFLAGS" 19300 ax_pthread_save_LIBS="$LIBS" 19301 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19302 LIBS="$PTHREAD_LIBS $LIBS" 19303 19304 # Check for various functions. We must include pthread.h, 19305 # since some functions may be macros. (On the Sequent, we 19306 # need a special flag -Kthread to make this header compile.) 19307 # We check for pthread_join because it is in -lpthread on IRIX 19308 # while pthread_create is in libc. We check for pthread_attr_init 19309 # due to DEC craziness with -lpthreads. We check for 19310 # pthread_cleanup_push because it is one of the few pthread 19311 # functions on Solaris that doesn't have a non-functional libc stub. 19312 # We try pthread_create on general principles. 19313 19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19315 /* end confdefs.h. */ 19316 #include <pthread.h> 19317 # if $ax_pthread_check_cond 19318 # error "$ax_pthread_check_macro must be defined" 19319 # endif 19320 static void *some_global = NULL; 19321 static void routine(void *a) 19322 { 19323 /* To avoid any unused-parameter or 19324 unused-but-set-parameter warning. */ 19325 some_global = a; 19326 } 19327 static void *start_routine(void *a) { return a; } 19328 int 19329 main (void) 19330 { 19331 pthread_t th; pthread_attr_t attr; 19332 pthread_create(&th, 0, start_routine, 0); 19333 pthread_join(th, 0); 19334 pthread_attr_init(&attr); 19335 pthread_cleanup_push(routine, 0); 19336 pthread_cleanup_pop(0) /* ; */ 19337 ; 19338 return 0; 19339 } 19340 _ACEOF 19341 if ac_fn_c_try_link "$LINENO" 19342 then : 19343 ax_pthread_ok=yes 19344 fi 19345 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19346 conftest$ac_exeext conftest.$ac_ext 19347 19348 CFLAGS="$ax_pthread_save_CFLAGS" 19349 LIBS="$ax_pthread_save_LIBS" 19350 19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19352 printf "%s\n" "$ax_pthread_ok" >&6; } 19353 if test "x$ax_pthread_ok" = "xyes" 19354 then : 19355 break 19356 fi 19357 19358 PTHREAD_LIBS="" 19359 PTHREAD_CFLAGS="" 19360 done 19361 fi 19362 19363 19364 # Clang needs special handling, because older versions handle the -pthread 19365 # option in a rather... idiosyncratic way 19366 19367 if test "x$ax_pthread_clang" = "xyes"; then 19368 19369 # Clang takes -pthread; it has never supported any other flag 19370 19371 # (Note 1: This will need to be revisited if a system that Clang 19372 # supports has POSIX threads in a separate library. This tends not 19373 # to be the way of modern systems, but it's conceivable.) 19374 19375 # (Note 2: On some systems, notably Darwin, -pthread is not needed 19376 # to get POSIX threads support; the API is always present and 19377 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 19378 # -pthread does define _REENTRANT, and while the Darwin headers 19379 # ignore this macro, third-party headers might not.) 19380 19381 # However, older versions of Clang make a point of warning the user 19382 # that, in an invocation where only linking and no compilation is 19383 # taking place, the -pthread option has no effect ("argument unused 19384 # during compilation"). They expect -pthread to be passed in only 19385 # when source code is being compiled. 19386 # 19387 # Problem is, this is at odds with the way Automake and most other 19388 # C build frameworks function, which is that the same flags used in 19389 # compilation (CFLAGS) are also used in linking. Many systems 19390 # supported by AX_PTHREAD require exactly this for POSIX threads 19391 # support, and in fact it is often not straightforward to specify a 19392 # flag that is used only in the compilation phase and not in 19393 # linking. Such a scenario is extremely rare in practice. 19394 # 19395 # Even though use of the -pthread flag in linking would only print 19396 # a warning, this can be a nuisance for well-run software projects 19397 # that build with -Werror. So if the active version of Clang has 19398 # this misfeature, we search for an option to squash it. 19399 19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 19401 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 19402 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 19403 then : 19404 printf %s "(cached) " >&6 19405 else $as_nop 19406 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 19407 # Create an alternate version of $ac_link that compiles and 19408 # links in two steps (.c -> .o, .o -> exe) instead of one 19409 # (.c -> exe), because the warning occurs only in the second 19410 # step 19411 ax_pthread_save_ac_link="$ac_link" 19412 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 19413 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 19414 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 19415 ax_pthread_save_CFLAGS="$CFLAGS" 19416 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 19417 if test "x$ax_pthread_try" = "xunknown" 19418 then : 19419 break 19420 fi 19421 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 19422 ac_link="$ax_pthread_save_ac_link" 19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19424 /* end confdefs.h. */ 19425 int main(void){return 0;} 19426 _ACEOF 19427 if ac_fn_c_try_link "$LINENO" 19428 then : 19429 ac_link="$ax_pthread_2step_ac_link" 19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19431 /* end confdefs.h. */ 19432 int main(void){return 0;} 19433 _ACEOF 19434 if ac_fn_c_try_link "$LINENO" 19435 then : 19436 break 19437 fi 19438 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19439 conftest$ac_exeext conftest.$ac_ext 19440 19441 fi 19442 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19443 conftest$ac_exeext conftest.$ac_ext 19444 done 19445 ac_link="$ax_pthread_save_ac_link" 19446 CFLAGS="$ax_pthread_save_CFLAGS" 19447 if test "x$ax_pthread_try" = "x" 19448 then : 19449 ax_pthread_try=no 19450 fi 19451 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 19452 19453 fi 19454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 19455 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 19456 19457 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 19458 no | unknown) ;; 19459 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 19460 esac 19461 19462 fi # $ax_pthread_clang = yes 19463 19464 19465 19466 # Various other checks: 19467 if test "x$ax_pthread_ok" = "xyes"; then 19468 ax_pthread_save_CFLAGS="$CFLAGS" 19469 ax_pthread_save_LIBS="$LIBS" 19470 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19471 LIBS="$PTHREAD_LIBS $LIBS" 19472 19473 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 19475 printf %s "checking for joinable pthread attribute... " >&6; } 19476 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 19477 then : 19478 printf %s "(cached) " >&6 19479 else $as_nop 19480 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 19481 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19483 /* end confdefs.h. */ 19484 #include <pthread.h> 19485 int 19486 main (void) 19487 { 19488 int attr = $ax_pthread_attr; return attr /* ; */ 19489 ; 19490 return 0; 19491 } 19492 _ACEOF 19493 if ac_fn_c_try_link "$LINENO" 19494 then : 19495 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 19496 fi 19497 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19498 conftest$ac_exeext conftest.$ac_ext 19499 done 19500 19501 fi 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 19503 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 19504 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 19505 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 19506 test "x$ax_pthread_joinable_attr_defined" != "xyes" 19507 then : 19508 19509 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 19510 19511 ax_pthread_joinable_attr_defined=yes 19512 19513 fi 19514 19515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 19516 printf %s "checking whether more special flags are required for pthreads... " >&6; } 19517 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 19518 then : 19519 printf %s "(cached) " >&6 19520 else $as_nop 19521 ax_cv_PTHREAD_SPECIAL_FLAGS=no 19522 case $host_os in 19523 solaris*) 19524 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 19525 ;; 19526 esac 19527 19528 fi 19529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 19530 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 19531 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 19532 test "x$ax_pthread_special_flags_added" != "xyes" 19533 then : 19534 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 19535 ax_pthread_special_flags_added=yes 19536 fi 19537 19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 19539 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 19540 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 19541 then : 19542 printf %s "(cached) " >&6 19543 else $as_nop 19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19545 /* end confdefs.h. */ 19546 #include <pthread.h> 19547 int 19548 main (void) 19549 { 19550 int i = PTHREAD_PRIO_INHERIT; 19551 return i; 19552 ; 19553 return 0; 19554 } 19555 _ACEOF 19556 if ac_fn_c_try_link "$LINENO" 19557 then : 19558 ax_cv_PTHREAD_PRIO_INHERIT=yes 19559 else $as_nop 19560 ax_cv_PTHREAD_PRIO_INHERIT=no 19561 fi 19562 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19563 conftest$ac_exeext conftest.$ac_ext 19564 19565 fi 19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 19567 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 19568 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 19569 test "x$ax_pthread_prio_inherit_defined" != "xyes" 19570 then : 19571 19572 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 19573 19574 ax_pthread_prio_inherit_defined=yes 19575 19576 fi 19577 19578 CFLAGS="$ax_pthread_save_CFLAGS" 19579 LIBS="$ax_pthread_save_LIBS" 19580 19581 # More AIX lossage: compile with *_r variant 19582 if test "x$GCC" != "xyes"; then 19583 case $host_os in 19584 aix*) 19585 case "x/$CC" in #( 19586 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 19587 #handle absolute path differently from PATH based program lookup 19588 case "x$CC" in #( 19589 x/*) : 19590 19591 if as_fn_executable_p ${CC}_r 19592 then : 19593 PTHREAD_CC="${CC}_r" 19594 fi 19595 if test "x${CXX}" != "x" 19596 then : 19597 if as_fn_executable_p ${CXX}_r 19598 then : 19599 PTHREAD_CXX="${CXX}_r" 19600 fi 19601 fi 19602 ;; #( 19603 *) : 19604 19605 for ac_prog in ${CC}_r 19606 do 19607 # Extract the first word of "$ac_prog", so it can be a program name with args. 19608 set dummy $ac_prog; ac_word=$2 19609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19610 printf %s "checking for $ac_word... " >&6; } 19611 if test ${ac_cv_prog_PTHREAD_CC+y} 19612 then : 19613 printf %s "(cached) " >&6 19614 else $as_nop 19615 if test -n "$PTHREAD_CC"; then 19616 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19617 else 19618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19619 for as_dir in $PATH 19620 do 19621 IFS=$as_save_IFS 19622 case $as_dir in #((( 19623 '') as_dir=./ ;; 19624 */) ;; 19625 *) as_dir=$as_dir/ ;; 19626 esac 19627 for ac_exec_ext in '' $ac_executable_extensions; do 19628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19629 ac_cv_prog_PTHREAD_CC="$ac_prog" 19630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19631 break 2 19632 fi 19633 done 19634 done 19635 IFS=$as_save_IFS 19636 19637 fi 19638 fi 19639 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19640 if test -n "$PTHREAD_CC"; then 19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19642 printf "%s\n" "$PTHREAD_CC" >&6; } 19643 else 19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19645 printf "%s\n" "no" >&6; } 19646 fi 19647 19648 19649 test -n "$PTHREAD_CC" && break 19650 done 19651 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 19652 19653 if test "x${CXX}" != "x" 19654 then : 19655 for ac_prog in ${CXX}_r 19656 do 19657 # Extract the first word of "$ac_prog", so it can be a program name with args. 19658 set dummy $ac_prog; ac_word=$2 19659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19660 printf %s "checking for $ac_word... " >&6; } 19661 if test ${ac_cv_prog_PTHREAD_CXX+y} 19662 then : 19663 printf %s "(cached) " >&6 19664 else $as_nop 19665 if test -n "$PTHREAD_CXX"; then 19666 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 19667 else 19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19669 for as_dir in $PATH 19670 do 19671 IFS=$as_save_IFS 19672 case $as_dir in #((( 19673 '') as_dir=./ ;; 19674 */) ;; 19675 *) as_dir=$as_dir/ ;; 19676 esac 19677 for ac_exec_ext in '' $ac_executable_extensions; do 19678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19679 ac_cv_prog_PTHREAD_CXX="$ac_prog" 19680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19681 break 2 19682 fi 19683 done 19684 done 19685 IFS=$as_save_IFS 19686 19687 fi 19688 fi 19689 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 19690 if test -n "$PTHREAD_CXX"; then 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 19692 printf "%s\n" "$PTHREAD_CXX" >&6; } 19693 else 19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19695 printf "%s\n" "no" >&6; } 19696 fi 19697 19698 19699 test -n "$PTHREAD_CXX" && break 19700 done 19701 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 19702 19703 fi 19704 19705 ;; 19706 esac 19707 ;; #( 19708 *) : 19709 ;; 19710 esac 19711 ;; 19712 esac 19713 fi 19714 fi 19715 19716 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 19717 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 19718 19719 19720 19721 19722 19723 19724 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 19725 if test "x$ax_pthread_ok" = "xyes"; then 19726 19727 19728 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 19729 19730 if test -n "$PTHREAD_LIBS"; then 19731 LIBS="$PTHREAD_LIBS $LIBS" 19732 fi 19733 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19734 CC="$PTHREAD_CC" 19735 ub_have_pthreads=yes 19736 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 19737 " 19738 if test "x$ac_cv_type_pthread_spinlock_t" = xyes 19739 then : 19740 19741 printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h 19742 19743 19744 fi 19745 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 19746 " 19747 if test "x$ac_cv_type_pthread_rwlock_t" = xyes 19748 then : 19749 19750 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h 19751 19752 19753 fi 19754 19755 # The cast to long int works around a bug in the HP C Compiler 19756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19758 # This bug is HP SR number 8606223364. 19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 19760 printf %s "checking size of unsigned long... " >&6; } 19761 if test ${ac_cv_sizeof_unsigned_long+y} 19762 then : 19763 printf %s "(cached) " >&6 19764 else $as_nop 19765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" 19766 then : 19767 19768 else $as_nop 19769 if test "$ac_cv_type_unsigned_long" = yes; then 19770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19771 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19772 as_fn_error 77 "cannot compute sizeof (unsigned long) 19773 See \`config.log' for more details" "$LINENO" 5; } 19774 else 19775 ac_cv_sizeof_unsigned_long=0 19776 fi 19777 fi 19778 19779 fi 19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 19781 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } 19782 19783 19784 19785 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h 19786 19787 19788 # The cast to long int works around a bug in the HP C Compiler 19789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19791 # This bug is HP SR number 8606223364. 19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 19793 printf %s "checking size of pthread_t... " >&6; } 19794 if test ${ac_cv_sizeof_pthread_t+y} 19795 then : 19796 printf %s "(cached) " >&6 19797 else $as_nop 19798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default" 19799 then : 19800 19801 else $as_nop 19802 if test "$ac_cv_type_pthread_t" = yes; then 19803 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19804 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19805 as_fn_error 77 "cannot compute sizeof (pthread_t) 19806 See \`config.log' for more details" "$LINENO" 5; } 19807 else 19808 ac_cv_sizeof_pthread_t=0 19809 fi 19810 fi 19811 19812 fi 19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 19814 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } 19815 19816 19817 19818 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h 19819 19820 19821 19822 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 19823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 19824 printf %s "checking if -pthread unused during linking... " >&6; } 19825 # catch clang warning 'argument unused during compilation' 19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19827 /* end confdefs.h. */ 19828 $ac_includes_default 19829 19830 int main(void) {return 0;} 19831 19832 _ACEOF 19833 pthread_unused="yes" 19834 # first compile 19835 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 19836 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 19837 if test $? = 0; then 19838 # then link 19839 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 19840 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 19841 if test $? -ne 0; then 19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19843 printf "%s\n" "yes" >&6; } 19844 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 19845 PTHREAD_CFLAGS_ONLY="-pthread" 19846 19847 else 19848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19849 printf "%s\n" "no" >&6; } 19850 fi 19851 else 19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19853 printf "%s\n" "no" >&6; } 19854 fi # endif cc successful 19855 rm -f conftest conftest.c conftest.o 19856 fi # endif -pthread in CFLAGS 19857 19858 19859 : 19860 else 19861 ax_pthread_ok=no 19862 19863 fi 19864 ac_ext=c 19865 ac_cpp='$CPP $CPPFLAGS' 19866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19868 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19869 19870 19871 fi 19872 19873 if test x_$ub_have_pthreads != x_no; then 19874 # Long checks to support pthread_setname_np(). 19875 # Some OSes have the extra non-portable functions in a specific 19876 # header file. 19877 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default 19878 " 19879 if test "x$ac_cv_header_pthread_np_h" = xyes 19880 then : 19881 printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 19882 19883 fi 19884 19885 BAKCFLAGS="$CFLAGS" 19886 CFLAGS="$CFLAGS -Werror" 19887 # MacOS only has 1 argument, the name. 19888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has only 1 argument" >&5 19889 printf %s "checking whether pthread_setname_np has only 1 argument... " >&6; } 19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19891 /* end confdefs.h. */ 19892 $ac_includes_default 19893 #include <pthread.h> 19894 #ifdef HAVE_PTHREAD_NP_H 19895 #include <pthread_np.h> 19896 #endif 19897 19898 int 19899 main (void) 19900 { 19901 19902 (void)pthread_setname_np(""); 19903 19904 ; 19905 return 0; 19906 } 19907 _ACEOF 19908 if ac_fn_c_try_compile "$LINENO" 19909 then : 19910 19911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19912 printf "%s\n" "yes" >&6; } 19913 19914 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP1 1" >>confdefs.h 19915 19916 19917 else $as_nop 19918 19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19920 printf "%s\n" "no" >&6; } 19921 19922 fi 19923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19924 # NetBSD has 3 arguments to allow for formatting of the name. 19925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has 3 arguments" >&5 19926 printf %s "checking whether pthread_setname_np has 3 arguments... " >&6; } 19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19928 /* end confdefs.h. */ 19929 $ac_includes_default 19930 #include <pthread.h> 19931 #ifdef HAVE_PTHREAD_NP_H 19932 #include <pthread_np.h> 19933 #endif 19934 19935 int 19936 main (void) 19937 { 19938 19939 (void)pthread_setname_np(0, "", NULL); 19940 19941 ; 19942 return 0; 19943 } 19944 _ACEOF 19945 if ac_fn_c_try_compile "$LINENO" 19946 then : 19947 19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19949 printf "%s\n" "yes" >&6; } 19950 19951 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP3 1" >>confdefs.h 19952 19953 19954 else $as_nop 19955 19956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19957 printf "%s\n" "no" >&6; } 19958 19959 fi 19960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19961 # Most OSes have the common 2 arguments, thread and name. 19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has the common 2 arguments" >&5 19963 printf %s "checking whether pthread_setname_np has the common 2 arguments... " >&6; } 19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19965 /* end confdefs.h. */ 19966 $ac_includes_default 19967 #include <pthread.h> 19968 #ifdef HAVE_PTHREAD_NP_H 19969 #include <pthread_np.h> 19970 #endif 19971 19972 int 19973 main (void) 19974 { 19975 19976 (void)pthread_setname_np(0, ""); 19977 19978 ; 19979 return 0; 19980 } 19981 _ACEOF 19982 if ac_fn_c_try_compile "$LINENO" 19983 then : 19984 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19986 printf "%s\n" "yes" >&6; } 19987 19988 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 19989 19990 19991 else $as_nop 19992 19993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19994 printf "%s\n" "no" >&6; } 19995 19996 fi 19997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19998 # FreeBSD/OpenBSD use a slightly different function name. 19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np exists as pthread_set_name_np instead" >&5 20000 printf %s "checking whether pthread_setname_np exists as pthread_set_name_np instead... " >&6; } 20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20002 /* end confdefs.h. */ 20003 $ac_includes_default 20004 #include <pthread.h> 20005 #ifdef HAVE_PTHREAD_NP_H 20006 #include <pthread_np.h> 20007 #endif 20008 20009 int 20010 main (void) 20011 { 20012 20013 (void)pthread_set_name_np(0, ""); 20014 20015 ; 20016 return 0; 20017 } 20018 _ACEOF 20019 if ac_fn_c_try_compile "$LINENO" 20020 then : 20021 20022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20023 printf "%s\n" "yes" >&6; } 20024 20025 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h 20026 20027 20028 else $as_nop 20029 20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20031 printf "%s\n" "no" >&6; } 20032 20033 fi 20034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20035 CFLAGS="$BAKCFLAGS" 20036 fi 20037 20038 # check solaris thread library 20039 20040 # Check whether --with-solaris-threads was given. 20041 if test ${with_solaris_threads+y} 20042 then : 20043 withval=$with_solaris_threads; 20044 else $as_nop 20045 withval="no" 20046 fi 20047 20048 ub_have_sol_threads=no 20049 if test x_$withval != x_no; then 20050 if test x_$ub_have_pthreads != x_no; then 20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 20052 printf "%s\n" "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 20053 else 20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 20055 printf %s "checking for library containing thr_create... " >&6; } 20056 if test ${ac_cv_search_thr_create+y} 20057 then : 20058 printf %s "(cached) " >&6 20059 else $as_nop 20060 ac_func_search_save_LIBS=$LIBS 20061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20062 /* end confdefs.h. */ 20063 20064 /* Override any GCC internal prototype to avoid an error. 20065 Use char because int might match the return type of a GCC 20066 builtin and then its argument prototype would still apply. */ 20067 char thr_create (); 20068 int 20069 main (void) 20070 { 20071 return thr_create (); 20072 ; 20073 return 0; 20074 } 20075 _ACEOF 20076 for ac_lib in '' thread 20077 do 20078 if test -z "$ac_lib"; then 20079 ac_res="none required" 20080 else 20081 ac_res=-l$ac_lib 20082 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20083 fi 20084 if ac_fn_c_try_link "$LINENO" 20085 then : 20086 ac_cv_search_thr_create=$ac_res 20087 fi 20088 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20089 conftest$ac_exeext 20090 if test ${ac_cv_search_thr_create+y} 20091 then : 20092 break 20093 fi 20094 done 20095 if test ${ac_cv_search_thr_create+y} 20096 then : 20097 20098 else $as_nop 20099 ac_cv_search_thr_create=no 20100 fi 20101 rm conftest.$ac_ext 20102 LIBS=$ac_func_search_save_LIBS 20103 fi 20104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 20105 printf "%s\n" "$ac_cv_search_thr_create" >&6; } 20106 ac_res=$ac_cv_search_thr_create 20107 if test "$ac_res" != no 20108 then : 20109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20110 20111 20112 printf "%s\n" "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 20113 20114 20115 20116 20117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 20118 printf %s "checking whether $CC supports -mt... " >&6; } 20119 cache=`echo mt | sed 'y%.=/+-%___p_%'` 20120 if eval test \${cv_prog_cc_flag_$cache+y} 20121 then : 20122 printf %s "(cached) " >&6 20123 else $as_nop 20124 20125 echo 'void f(void){}' >conftest.c 20126 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 20127 eval "cv_prog_cc_flag_$cache=yes" 20128 else 20129 eval "cv_prog_cc_flag_$cache=no" 20130 fi 20131 rm -f conftest conftest.o conftest.c 20132 20133 fi 20134 20135 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20137 printf "%s\n" "yes" >&6; } 20138 : 20139 CFLAGS="$CFLAGS -mt" 20140 else 20141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20142 printf "%s\n" "no" >&6; } 20143 : 20144 CFLAGS="$CFLAGS -D_REENTRANT" 20145 fi 20146 20147 ub_have_sol_threads=yes 20148 20149 else $as_nop 20150 20151 as_fn_error $? "no solaris threads found." "$LINENO" 5 20152 20153 fi 20154 20155 fi 20156 fi 20157 20158 fi # end of non-mingw check of thread libraries 20159 20160 # Check for SYSLOG_FACILITY 20161 20162 # Check whether --with-syslog-facility was given. 20163 if test ${with_syslog_facility+y} 20164 then : 20165 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 20166 fi 20167 20168 case "${UNBOUND_SYSLOG_FACILITY}" in 20169 20170 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 20171 20172 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 20173 20174 esac 20175 20176 printf "%s\n" "#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}" >>confdefs.h 20177 20178 20179 # Check for dynamic library module 20180 20181 # Check whether --with-dynlibmodule was given. 20182 if test ${with_dynlibmodule+y} 20183 then : 20184 withval=$with_dynlibmodule; 20185 else $as_nop 20186 withval="no" 20187 fi 20188 20189 20190 if test x_$withval != x_no; then 20191 20192 printf "%s\n" "#define WITH_DYNLIBMODULE 1" >>confdefs.h 20193 20194 WITH_DYNLIBMODULE=yes 20195 20196 DYNLIBMOD_OBJ="dynlibmod.lo" 20197 20198 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 20199 20200 if test $on_mingw = "no"; then 20201 # link with -ldl if not already there, for all executables because 20202 # dlopen call is in the dynlib module. For unbound executable, also 20203 # export symbols. 20204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 20205 printf %s "checking for library containing dlopen... " >&6; } 20206 if test ${ac_cv_search_dlopen+y} 20207 then : 20208 printf %s "(cached) " >&6 20209 else $as_nop 20210 ac_func_search_save_LIBS=$LIBS 20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20212 /* end confdefs.h. */ 20213 20214 /* Override any GCC internal prototype to avoid an error. 20215 Use char because int might match the return type of a GCC 20216 builtin and then its argument prototype would still apply. */ 20217 char dlopen (); 20218 int 20219 main (void) 20220 { 20221 return dlopen (); 20222 ; 20223 return 0; 20224 } 20225 _ACEOF 20226 for ac_lib in '' dl 20227 do 20228 if test -z "$ac_lib"; then 20229 ac_res="none required" 20230 else 20231 ac_res=-l$ac_lib 20232 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20233 fi 20234 if ac_fn_c_try_link "$LINENO" 20235 then : 20236 ac_cv_search_dlopen=$ac_res 20237 fi 20238 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20239 conftest$ac_exeext 20240 if test ${ac_cv_search_dlopen+y} 20241 then : 20242 break 20243 fi 20244 done 20245 if test ${ac_cv_search_dlopen+y} 20246 then : 20247 20248 else $as_nop 20249 ac_cv_search_dlopen=no 20250 fi 20251 rm conftest.$ac_ext 20252 LIBS=$ac_func_search_save_LIBS 20253 fi 20254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 20255 printf "%s\n" "$ac_cv_search_dlopen" >&6; } 20256 ac_res=$ac_cv_search_dlopen 20257 if test "$ac_res" != no 20258 then : 20259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20260 20261 fi 20262 20263 DYNLIBMOD_EXTRALIBS="-export-dynamic" 20264 else 20265 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" 20266 fi 20267 20268 fi 20269 20270 # Check for PyUnbound 20271 20272 # Check whether --with-pyunbound was given. 20273 if test ${with_pyunbound+y} 20274 then : 20275 withval=$with_pyunbound; 20276 else $as_nop 20277 withval="no" 20278 fi 20279 20280 20281 ub_test_python=no 20282 ub_with_pyunbound=no 20283 if test x_$withval != x_no; then 20284 ub_with_pyunbound=yes 20285 ub_test_python=yes 20286 fi 20287 20288 # Check for Python module 20289 20290 # Check whether --with-pythonmodule was given. 20291 if test ${with_pythonmodule+y} 20292 then : 20293 withval=$with_pythonmodule; 20294 else $as_nop 20295 withval="no" 20296 fi 20297 20298 20299 ub_with_pythonmod=no 20300 if test x_$withval != x_no; then 20301 ub_with_pythonmod=yes 20302 ub_test_python=yes 20303 fi 20304 20305 # Check for Python & SWIG only on PyUnbound or PyModule 20306 if test x_$ub_test_python != x_no; then 20307 20308 # Check for Python 20309 ub_have_python=no 20310 ac_save_LIBS="$LIBS" 20311 # 20312 # Allow the use of a (user set) custom python version 20313 # 20314 20315 20316 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 20317 set dummy python$PYTHON_VERSION; ac_word=$2 20318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20319 printf %s "checking for $ac_word... " >&6; } 20320 if test ${ac_cv_path_PYTHON+y} 20321 then : 20322 printf %s "(cached) " >&6 20323 else $as_nop 20324 case $PYTHON in 20325 [\\/]* | ?:[\\/]*) 20326 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 20327 ;; 20328 *) 20329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20330 for as_dir in $PATH 20331 do 20332 IFS=$as_save_IFS 20333 case $as_dir in #((( 20334 '') as_dir=./ ;; 20335 */) ;; 20336 *) as_dir=$as_dir/ ;; 20337 esac 20338 for ac_exec_ext in '' $ac_executable_extensions; do 20339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20340 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 20341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20342 break 2 20343 fi 20344 done 20345 done 20346 IFS=$as_save_IFS 20347 20348 ;; 20349 esac 20350 fi 20351 PYTHON=$ac_cv_path_PYTHON 20352 if test -n "$PYTHON"; then 20353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 20354 printf "%s\n" "$PYTHON" >&6; } 20355 else 20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20357 printf "%s\n" "no" >&6; } 20358 fi 20359 20360 20361 if test -z "$PYTHON"; then 20362 as_fn_error $? "Cannot find 'python$PYTHON_VERSION' in your system path. You can use the environment variable 'PYTHON_VERSION=version_number' for an explicit version." "$LINENO" 5 20363 PYTHON_VERSION="" 20364 fi 20365 20366 if test -z "$PYTHON_VERSION"; then 20367 PYTHON_VERSION=`$PYTHON -c "import sys; \ 20368 print(sys.version.split()[0])"` 20369 fi 20370 # calculate the version number components. 20371 20372 v="$PYTHON_VERSION" 20373 PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'` 20374 if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi 20375 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'` 20376 PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'` 20377 if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi 20378 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'` 20379 PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'` 20380 if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi 20381 20382 20383 # For some systems, sysconfig exists, but has the wrong paths, 20384 # on Debian 10, for python 2.7 and 3.7. So, we check the version, 20385 # and for older versions try distutils.sysconfig first. For newer 20386 # versions>=3.10, where distutils.sysconfig is deprecated, use 20387 # sysconfig first and then attempt the other one. 20388 py_distutils_first="no" 20389 if test $PYTHON_VERSION_MAJOR -lt 3; then 20390 py_distutils_first="yes" 20391 fi 20392 if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then 20393 py_distutils_first="yes" 20394 fi 20395 20396 # Check if you have the first module 20397 if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi 20398 sysconfig_module="" 20399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5 20400 printf %s "checking for the $m Python module... " >&6; } 20401 if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then 20402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20403 printf "%s\n" "yes" >&6; } 20404 sysconfig_module="$m" 20405 else 20406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20407 printf "%s\n" "no" >&6; } 20408 fi 20409 20410 # if not found, try the other one. 20411 if test -z "$sysconfig_module"; then 20412 if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi 20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5 20414 printf %s "checking for the $m2 Python module... " >&6; } 20415 if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then 20416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20417 printf "%s\n" "yes" >&6; } 20418 sysconfig_module="$m2" 20419 else 20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20421 printf "%s\n" "no" >&6; } 20422 as_fn_error $? "cannot import Python module \"$m\", or \"$m2\". 20423 Please check your Python installation. The errors are: 20424 $m 20425 $ac_modulecheck_result1 20426 $m2 20427 $ac_modulecheck_result2" "$LINENO" 5 20428 PYTHON_VERSION="" 20429 fi 20430 fi 20431 if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi 20432 20433 # 20434 # Check for Python include path 20435 # 20436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 20437 printf %s "checking for Python include path... " >&6; } 20438 if test -z "$PYTHON_CPPFLAGS"; then 20439 if test "$sysconfig_module" = "sysconfig"; then 20440 python_path=`$PYTHON -c 'import sysconfig; \ 20441 print(sysconfig.get_path("include"));'` 20442 else 20443 python_path=`$PYTHON -c "import distutils.sysconfig; \ 20444 print(distutils.sysconfig.get_python_inc());"` 20445 fi 20446 if test -n "${python_path}"; then 20447 python_path="-I$python_path" 20448 fi 20449 PYTHON_CPPFLAGS=$python_path 20450 fi 20451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 20452 printf "%s\n" "$PYTHON_CPPFLAGS" >&6; } 20453 20454 20455 # 20456 # Check for Python library path 20457 # 20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 20459 printf %s "checking for Python library path... " >&6; } 20460 if test -z "$PYTHON_LDFLAGS"; then 20461 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \ 20462 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 20463 fi 20464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 20465 printf "%s\n" "$PYTHON_LDFLAGS" >&6; } 20466 20467 20468 if test -z "$PYTHON_LIBDIR"; then 20469 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \ 20470 print(get_config_var('LIBDIR'));"` 20471 fi 20472 20473 # 20474 # Check for site packages 20475 # 20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 20477 printf %s "checking for Python site-packages path... " >&6; } 20478 if test -z "$PYTHON_SITE_PKG"; then 20479 if test "$sysconfig_module" = "sysconfig"; then 20480 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \ 20481 print(sysconfig.get_path("platlib"));'` 20482 else 20483 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 20484 print(distutils.sysconfig.get_python_lib(1,0));"` 20485 fi 20486 fi 20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 20488 printf "%s\n" "$PYTHON_SITE_PKG" >&6; } 20489 20490 20491 # 20492 # final check to see if everything compiles alright 20493 # 20494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 20495 printf %s "checking consistency of all components of python development environment... " >&6; } 20496 ac_ext=c 20497 ac_cpp='$CPP $CPPFLAGS' 20498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20500 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20501 20502 # save current global flags 20503 ac_save_LIBS="$LIBS" 20504 ac_save_CPPFLAGS="$CPPFLAGS" 20505 20506 LIBS="$LIBS $PYTHON_LDFLAGS" 20507 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20509 /* end confdefs.h. */ 20510 20511 #include <Python.h> 20512 20513 int 20514 main (void) 20515 { 20516 20517 Py_Initialize(); 20518 20519 ; 20520 return 0; 20521 } 20522 _ACEOF 20523 if ac_fn_c_try_link "$LINENO" 20524 then : 20525 pythonexists=yes 20526 else $as_nop 20527 pythonexists=no 20528 fi 20529 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20530 conftest$ac_exeext conftest.$ac_ext 20531 20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 20533 printf "%s\n" "$pythonexists" >&6; } 20534 20535 if test ! "$pythonexists" = "yes"; then 20536 as_fn_error $? " 20537 Could not link test program to Python. Maybe the main Python library has been 20538 installed in some non-standard library path. If so, pass it to configure, 20539 via the LDFLAGS environment variable. 20540 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 20541 ============================================================================ 20542 ERROR! 20543 You probably have to install the development version of the Python package 20544 for your distribution. The exact name of this package varies among them. 20545 ============================================================================ 20546 " "$LINENO" 5 20547 PYTHON_VERSION="" 20548 fi 20549 ac_ext=c 20550 ac_cpp='$CPP $CPPFLAGS' 20551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20553 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20554 20555 # turn back to default flags 20556 CPPFLAGS="$ac_save_CPPFLAGS" 20557 LIBS="$ac_save_LIBS" 20558 20559 # 20560 # all done! 20561 # 20562 20563 if test ! -z "$PYTHON_VERSION"; then 20564 badversion="no" 20565 if test "$PYTHON_VERSION_MAJOR" -lt 2; then 20566 badversion="yes" 20567 fi 20568 if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then 20569 badversion="yes" 20570 fi 20571 if test "$badversion" = "yes"; then 20572 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 20573 fi 20574 20575 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 20576 20577 # Have Python 20578 20579 printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h 20580 20581 if test x_$ub_with_pythonmod != x_no; then 20582 if test -n "$LIBS"; then 20583 LIBS="$PYTHON_LDFLAGS $LIBS" 20584 else 20585 LIBS="$PYTHON_LDFLAGS" 20586 fi 20587 fi 20588 PYTHON_LIBS="$PYTHON_LDFLAGS" 20589 20590 if test -n "$CPPFLAGS"; then 20591 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 20592 else 20593 CPPFLAGS="$PYTHON_CPPFLAGS" 20594 fi 20595 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 20596 20597 if test "x$enable_rpath" = xyes; then 20598 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 20599 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 20600 fi 20601 fi 20602 20603 fi 20604 ub_have_python=yes 20605 if test -n "$PKG_CONFIG" && \ 20606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 20607 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 20608 ac_status=$? 20609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20610 test $ac_status = 0; }; then 20611 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 20612 else 20613 PC_PY_DEPENDENCY="python" 20614 fi 20615 20616 20617 # Check for SWIG 20618 ub_have_swig=no 20619 # Check whether --enable-swig-version-check was given. 20620 if test ${enable_swig_version_check+y} 20621 then : 20622 enableval=$enable_swig_version_check; 20623 fi 20624 20625 if test "$enable_swig_version_check" = "yes"; then 20626 20627 # Find path to the "swig" executable. 20628 for ac_prog in swig swig3.0 swig2.0 20629 do 20630 # Extract the first word of "$ac_prog", so it can be a program name with args. 20631 set dummy $ac_prog; ac_word=$2 20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20633 printf %s "checking for $ac_word... " >&6; } 20634 if test ${ac_cv_path_SWIG+y} 20635 then : 20636 printf %s "(cached) " >&6 20637 else $as_nop 20638 case $SWIG in 20639 [\\/]* | ?:[\\/]*) 20640 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 20641 ;; 20642 *) 20643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20644 for as_dir in $PATH 20645 do 20646 IFS=$as_save_IFS 20647 case $as_dir in #((( 20648 '') as_dir=./ ;; 20649 */) ;; 20650 *) as_dir=$as_dir/ ;; 20651 esac 20652 for ac_exec_ext in '' $ac_executable_extensions; do 20653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20654 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 20655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20656 break 2 20657 fi 20658 done 20659 done 20660 IFS=$as_save_IFS 20661 20662 ;; 20663 esac 20664 fi 20665 SWIG=$ac_cv_path_SWIG 20666 if test -n "$SWIG"; then 20667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 20668 printf "%s\n" "$SWIG" >&6; } 20669 else 20670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20671 printf "%s\n" "no" >&6; } 20672 fi 20673 20674 20675 test -n "$SWIG" && break 20676 done 20677 20678 if test -z "$SWIG" ; then 20679 : 20680 elif test -z "2.0.1" ; then 20681 : 20682 else 20683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 20684 printf %s "checking SWIG version... " >&6; } 20685 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'` 20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 20687 printf "%s\n" "$swig_version" >&6; } 20688 if test -n "$swig_version" ; then 20689 # Calculate the required version number components 20690 required=2.0.1 20691 required_major=`echo $required | sed 's/[^0-9].*//'` 20692 if test -z "$required_major" ; then 20693 required_major=0 20694 fi 20695 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 20696 required_minor=`echo $required | sed 's/[^0-9].*//'` 20697 if test -z "$required_minor" ; then 20698 required_minor=0 20699 fi 20700 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 20701 required_patch=`echo $required | sed 's/[^0-9].*//'` 20702 if test -z "$required_patch" ; then 20703 required_patch=0 20704 fi 20705 # Calculate the available version number components 20706 available=$swig_version 20707 available_major=`echo $available | sed 's/[^0-9].*//'` 20708 if test -z "$available_major" ; then 20709 available_major=0 20710 fi 20711 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 20712 available_minor=`echo $available | sed 's/[^0-9].*//'` 20713 if test -z "$available_minor" ; then 20714 available_minor=0 20715 fi 20716 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 20717 available_patch=`echo $available | sed 's/[^0-9].*//'` 20718 if test -z "$available_patch" ; then 20719 available_patch=0 20720 fi 20721 # Convert the version tuple into a single number for easier comparison. 20722 # Using base 100 should be safe since SWIG internally uses BCD values 20723 # to encode its version number. 20724 required_swig_vernum=`expr $required_major \* 10000 \ 20725 \+ $required_minor \* 100 \+ $required_patch` 20726 available_swig_vernum=`expr $available_major \* 10000 \ 20727 \+ $available_minor \* 100 \+ $available_patch` 20728 20729 if test $available_swig_vernum -lt $required_swig_vernum; then 20730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version." >&5 20731 printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version." >&2;} 20732 SWIG='' 20733 20734 else 20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 20736 printf %s "checking for SWIG library... " >&6; } 20737 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '` 20738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 20739 printf "%s\n" "$SWIG_LIB" >&6; } 20740 20741 fi 20742 else 20743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 20744 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 20745 SWIG='' 20746 20747 fi 20748 fi 20749 20750 20751 else 20752 20753 # Find path to the "swig" executable. 20754 for ac_prog in swig swig3.0 swig2.0 20755 do 20756 # Extract the first word of "$ac_prog", so it can be a program name with args. 20757 set dummy $ac_prog; ac_word=$2 20758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20759 printf %s "checking for $ac_word... " >&6; } 20760 if test ${ac_cv_path_SWIG+y} 20761 then : 20762 printf %s "(cached) " >&6 20763 else $as_nop 20764 case $SWIG in 20765 [\\/]* | ?:[\\/]*) 20766 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 20767 ;; 20768 *) 20769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20770 for as_dir in $PATH 20771 do 20772 IFS=$as_save_IFS 20773 case $as_dir in #((( 20774 '') as_dir=./ ;; 20775 */) ;; 20776 *) as_dir=$as_dir/ ;; 20777 esac 20778 for ac_exec_ext in '' $ac_executable_extensions; do 20779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20780 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 20781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20782 break 2 20783 fi 20784 done 20785 done 20786 IFS=$as_save_IFS 20787 20788 ;; 20789 esac 20790 fi 20791 SWIG=$ac_cv_path_SWIG 20792 if test -n "$SWIG"; then 20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 20794 printf "%s\n" "$SWIG" >&6; } 20795 else 20796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20797 printf "%s\n" "no" >&6; } 20798 fi 20799 20800 20801 test -n "$SWIG" && break 20802 done 20803 20804 if test -z "$SWIG" ; then 20805 : 20806 elif test -z "" ; then 20807 : 20808 else 20809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 20810 printf %s "checking SWIG version... " >&6; } 20811 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'` 20812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 20813 printf "%s\n" "$swig_version" >&6; } 20814 if test -n "$swig_version" ; then 20815 # Calculate the required version number components 20816 required= 20817 required_major=`echo $required | sed 's/[^0-9].*//'` 20818 if test -z "$required_major" ; then 20819 required_major=0 20820 fi 20821 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 20822 required_minor=`echo $required | sed 's/[^0-9].*//'` 20823 if test -z "$required_minor" ; then 20824 required_minor=0 20825 fi 20826 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 20827 required_patch=`echo $required | sed 's/[^0-9].*//'` 20828 if test -z "$required_patch" ; then 20829 required_patch=0 20830 fi 20831 # Calculate the available version number components 20832 available=$swig_version 20833 available_major=`echo $available | sed 's/[^0-9].*//'` 20834 if test -z "$available_major" ; then 20835 available_major=0 20836 fi 20837 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 20838 available_minor=`echo $available | sed 's/[^0-9].*//'` 20839 if test -z "$available_minor" ; then 20840 available_minor=0 20841 fi 20842 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 20843 available_patch=`echo $available | sed 's/[^0-9].*//'` 20844 if test -z "$available_patch" ; then 20845 available_patch=0 20846 fi 20847 # Convert the version tuple into a single number for easier comparison. 20848 # Using base 100 should be safe since SWIG internally uses BCD values 20849 # to encode its version number. 20850 required_swig_vernum=`expr $required_major \* 10000 \ 20851 \+ $required_minor \* 100 \+ $required_patch` 20852 available_swig_vernum=`expr $available_major \* 10000 \ 20853 \+ $available_minor \* 100 \+ $available_patch` 20854 20855 if test $available_swig_vernum -lt $required_swig_vernum; then 20856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 20857 printf "%s\n" "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 20858 SWIG='' 20859 20860 else 20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 20862 printf %s "checking for SWIG library... " >&6; } 20863 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '` 20864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 20865 printf "%s\n" "$SWIG_LIB" >&6; } 20866 20867 fi 20868 else 20869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 20870 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 20871 SWIG='' 20872 20873 fi 20874 fi 20875 20876 20877 fi 20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 20879 printf %s "checking SWIG... " >&6; } 20880 if test ! -x "$SWIG"; then 20881 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 20882 else 20883 20884 printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h 20885 20886 swig="$SWIG" 20887 20888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5 20889 printf "%s\n" "present" >&6; } 20890 20891 # If have Python & SWIG 20892 # Declare PythonMod 20893 if test x_$ub_with_pythonmod != x_no; then 20894 20895 printf "%s\n" "#define WITH_PYTHONMODULE 1" >>confdefs.h 20896 20897 WITH_PYTHONMODULE=yes 20898 20899 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 20900 20901 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 20902 20903 PYTHONMOD_INSTALL=pythonmod-install 20904 20905 PYTHONMOD_UNINSTALL=pythonmod-uninstall 20906 20907 fi 20908 20909 # Declare PyUnbound 20910 if test x_$ub_with_pyunbound != x_no; then 20911 20912 printf "%s\n" "#define WITH_PYUNBOUND 1" >>confdefs.h 20913 20914 WITH_PYUNBOUND=yes 20915 20916 PYUNBOUND_OBJ="libunbound_wrap.lo" 20917 20918 PYUNBOUND_TARGET="_unbound.la" 20919 20920 PYUNBOUND_INSTALL=pyunbound-install 20921 20922 PYUNBOUND_UNINSTALL=pyunbound-uninstall 20923 20924 fi 20925 fi 20926 else 20927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 20928 printf "%s\n" "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 20929 ub_with_pyunbound=no 20930 ub_with_pythonmod=no 20931 fi 20932 fi 20933 20934 if test "`uname`" = "NetBSD"; then 20935 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 20936 20937 fi 20938 20939 if test "`uname`" = "Linux"; then 20940 # splint cannot parse modern c99 header files 20941 GCC_DOCKER_LINTFLAGS='-syntax' 20942 20943 fi 20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build time" >&5 20945 printf %s "checking for build time... " >&6; } 20946 ax_date_fmt="%Y%m%d" 20947 if test x"$SOURCE_DATE_EPOCH" = x 20948 then : 20949 CONFIG_DATE=`date "+$ax_date_fmt"` 20950 else $as_nop 20951 ax_build_date=`date -u -d "@$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null \ 20952 || date -u -r "$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null` 20953 if test x"$ax_build_date" = x 20954 then : 20955 as_fn_error $? "malformed SOURCE_DATE_EPOCH" "$LINENO" 5 20956 else $as_nop 20957 CONFIG_DATE=$ax_build_date 20958 fi 20959 fi 20960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_DATE" >&5 20961 printf "%s\n" "$CONFIG_DATE" >&6; } 20962 20963 20964 20965 20966 # Checks for libraries. 20967 20968 # libnss 20969 USE_NSS="no" 20970 20971 # Check whether --with-nss was given. 20972 if test ${with_nss+y} 20973 then : 20974 withval=$with_nss; 20975 USE_NSS="yes" 20976 20977 printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h 20978 20979 if test "$withval" != "" -a "$withval" != "yes"; then 20980 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 20981 LDFLAGS="$LDFLAGS -L$withval/lib" 20982 20983 if test "x$enable_rpath" = xyes; then 20984 if echo "$withval/lib" | grep "^/" >/dev/null; then 20985 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 20986 fi 20987 fi 20988 20989 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 20990 else 20991 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 20992 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 20993 fi 20994 LIBS="$LIBS -lnss3 -lnspr4" 20995 SSLLIB="" 20996 PC_CRYPTO_DEPENDENCY="nss nspr" 20997 20998 20999 21000 fi 21001 21002 21003 # libnettle 21004 USE_NETTLE="no" 21005 21006 # Check whether --with-nettle was given. 21007 if test ${with_nettle+y} 21008 then : 21009 withval=$with_nettle; 21010 USE_NETTLE="yes" 21011 21012 printf "%s\n" "#define HAVE_NETTLE 1" >>confdefs.h 21013 21014 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 21015 " 21016 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes 21017 then : 21018 printf "%s\n" "#define HAVE_NETTLE_DSA_COMPAT_H 1" >>confdefs.h 21019 21020 fi 21021 21022 if test "$withval" != "" -a "$withval" != "yes"; then 21023 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 21024 LDFLAGS="$LDFLAGS -L$withval/lib" 21025 21026 if test "x$enable_rpath" = xyes; then 21027 if echo "$withval/lib" | grep "^/" >/dev/null; then 21028 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 21029 fi 21030 fi 21031 21032 else 21033 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 21034 fi 21035 LIBS="$LIBS -lhogweed -lnettle -lgmp" 21036 SSLLIB="" 21037 PC_CRYPTO_DEPENDENCY="hogweed nettle" 21038 21039 21040 21041 fi 21042 21043 21044 # openssl 21045 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 21046 21047 21048 # Check whether --with-ssl was given. 21049 if test ${with_ssl+y} 21050 then : 21051 withval=$with_ssl; 21052 21053 else $as_nop 21054 21055 withval="yes" 21056 21057 fi 21058 21059 if test x_$withval = x_no; then 21060 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 21061 fi 21062 21063 withval=$withval 21064 if test x_$withval != x_no; then 21065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 21066 printf %s "checking for SSL... " >&6; } 21067 if test -n "$withval"; then 21068 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 21069 ssldir="$withval" 21070 found_ssl="yes" 21071 withval="" 21072 ssldir_include="$ssldir" 21073 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 21074 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 21075 : # found here 21076 else 21077 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 21078 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 21079 : # found here 21080 else 21081 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 21082 fi 21083 fi 21084 fi 21085 fi 21086 if test x_$withval = x_ -o x_$withval = x_yes; then 21087 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 21088 fi 21089 for dir in $withval; do 21090 ssldir="$dir" 21091 if test -f "$dir/include/openssl/ssl.h"; then 21092 found_ssl="yes" 21093 ssldir_include="$ssldir/include" 21094 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 21095 ssldir_lib="$ssldir/lib64" 21096 else 21097 ssldir_lib="$ssldir/lib" 21098 fi 21099 break; 21100 fi 21101 done 21102 if test x_$found_ssl != x_yes; then 21103 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 21104 else 21105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 21106 printf "%s\n" "found in $ssldir" >&6; } 21107 21108 printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 21109 21110 HAVE_SSL=yes 21111 if test "$ssldir" != "/usr"; then 21112 CPPFLAGS="$CPPFLAGS -I$ssldir_include" 21113 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include" 21114 LDFLAGS="$LDFLAGS -L$ssldir_lib" 21115 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib" 21116 21117 if test "x$enable_rpath" = xyes; then 21118 if echo "$ssldir_lib" | grep "^/" >/dev/null; then 21119 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib" 21120 fi 21121 fi 21122 21123 fi 21124 21125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 21126 printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 21127 LIBS="$LIBS -lcrypto" 21128 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 21129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21130 /* end confdefs.h. */ 21131 21132 int 21133 main (void) 21134 { 21135 21136 int EVP_sha256(void); 21137 (void)EVP_sha256(); 21138 21139 ; 21140 return 0; 21141 } 21142 _ACEOF 21143 if ac_fn_c_try_link "$LINENO" 21144 then : 21145 21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21147 printf "%s\n" "yes" >&6; } 21148 21149 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21150 21151 21152 else $as_nop 21153 21154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21155 printf "%s\n" "no" >&6; } 21156 # check if -lwsock32 or -lgdi32 are needed. 21157 BAKLIBS="$LIBS" 21158 BAKSSLLIBS="$LIBSSL_LIBS" 21159 LIBS="$LIBS -lgdi32 -lws2_32" 21160 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 21161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 21162 printf %s "checking if -lcrypto needs -lgdi32... " >&6; } 21163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21164 /* end confdefs.h. */ 21165 21166 int 21167 main (void) 21168 { 21169 21170 int EVP_sha256(void); 21171 (void)EVP_sha256(); 21172 21173 ; 21174 return 0; 21175 } 21176 _ACEOF 21177 if ac_fn_c_try_link "$LINENO" 21178 then : 21179 21180 21181 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21182 21183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21184 printf "%s\n" "yes" >&6; } 21185 21186 else $as_nop 21187 21188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21189 printf "%s\n" "no" >&6; } 21190 LIBS="$BAKLIBS" 21191 LIBSSL_LIBS="$BAKSSLLIBS" 21192 21193 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32" 21194 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32" 21195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32" >&5 21196 printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32... " >&6; } 21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21198 /* end confdefs.h. */ 21199 21200 int 21201 main (void) 21202 { 21203 21204 int EVP_sha256(void); 21205 (void)EVP_sha256(); 21206 21207 ; 21208 return 0; 21209 } 21210 _ACEOF 21211 if ac_fn_c_try_link "$LINENO" 21212 then : 21213 21214 21215 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21216 21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21218 printf "%s\n" "yes" >&6; } 21219 21220 else $as_nop 21221 21222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21223 printf "%s\n" "no" >&6; } 21224 LIBS="$BAKLIBS" 21225 LIBSSL_LIBS="$BAKSSLLIBS" 21226 21227 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" 21228 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" 21229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" >&5 21230 printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a... " >&6; } 21231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21232 /* end confdefs.h. */ 21233 21234 int 21235 main (void) 21236 { 21237 21238 int EVP_sha256(void); 21239 (void)EVP_sha256(); 21240 21241 ; 21242 return 0; 21243 } 21244 _ACEOF 21245 if ac_fn_c_try_link "$LINENO" 21246 then : 21247 21248 21249 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21250 21251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21252 printf "%s\n" "yes" >&6; } 21253 21254 else $as_nop 21255 21256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21257 printf "%s\n" "no" >&6; } 21258 LIBS="$BAKLIBS" 21259 LIBSSL_LIBS="$BAKSSLLIBS" 21260 21261 LIBS="$LIBS -ldl" 21262 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 21264 printf %s "checking if -lcrypto needs -ldl... " >&6; } 21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21266 /* end confdefs.h. */ 21267 21268 int 21269 main (void) 21270 { 21271 21272 int EVP_sha256(void); 21273 (void)EVP_sha256(); 21274 21275 ; 21276 return 0; 21277 } 21278 _ACEOF 21279 if ac_fn_c_try_link "$LINENO" 21280 then : 21281 21282 21283 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21284 21285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21286 printf "%s\n" "yes" >&6; } 21287 21288 else $as_nop 21289 21290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21291 printf "%s\n" "no" >&6; } 21292 LIBS="$BAKLIBS" 21293 LIBSSL_LIBS="$BAKSSLLIBS" 21294 LIBS="$LIBS -ldl -pthread" 21295 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 21296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 21297 printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; } 21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21299 /* end confdefs.h. */ 21300 21301 int 21302 main (void) 21303 { 21304 21305 int EVP_sha256(void); 21306 (void)EVP_sha256(); 21307 21308 ; 21309 return 0; 21310 } 21311 _ACEOF 21312 if ac_fn_c_try_link "$LINENO" 21313 then : 21314 21315 21316 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21317 21318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21319 printf "%s\n" "yes" >&6; } 21320 21321 else $as_nop 21322 21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21324 printf "%s\n" "no" >&6; } 21325 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 21326 21327 fi 21328 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21329 conftest$ac_exeext conftest.$ac_ext 21330 21331 fi 21332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21333 conftest$ac_exeext conftest.$ac_ext 21334 21335 fi 21336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21337 conftest$ac_exeext conftest.$ac_ext 21338 21339 fi 21340 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21341 conftest$ac_exeext conftest.$ac_ext 21342 21343 fi 21344 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21345 conftest$ac_exeext conftest.$ac_ext 21346 21347 fi 21348 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21349 conftest$ac_exeext conftest.$ac_ext 21350 fi 21351 21352 21353 fi 21354 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 21355 " 21356 if test "x$ac_cv_header_openssl_ssl_h" = xyes 21357 then : 21358 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 21359 21360 fi 21361 21362 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 21363 " 21364 if test "x$ac_cv_header_openssl_err_h" = xyes 21365 then : 21366 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 21367 21368 fi 21369 21370 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 21371 " 21372 if test "x$ac_cv_header_openssl_rand_h" = xyes 21373 then : 21374 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 21375 21376 fi 21377 21378 21379 21380 21381 # check if libssl needs libdl 21382 BAKLIBS="$LIBS" 21383 LIBS="-lssl $LIBS" 21384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 21385 printf %s "checking if libssl needs libdl... " >&6; } 21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21387 /* end confdefs.h. */ 21388 21389 /* Override any GCC internal prototype to avoid an error. 21390 Use char because int might match the return type of a GCC 21391 builtin and then its argument prototype would still apply. */ 21392 char SSL_CTX_new (); 21393 int 21394 main (void) 21395 { 21396 return SSL_CTX_new (); 21397 ; 21398 return 0; 21399 } 21400 _ACEOF 21401 if ac_fn_c_try_link "$LINENO" 21402 then : 21403 21404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21405 printf "%s\n" "no" >&6; } 21406 LIBS="$BAKLIBS" 21407 21408 else $as_nop 21409 21410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21411 printf "%s\n" "yes" >&6; } 21412 LIBS="$BAKLIBS" 21413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 21414 printf %s "checking for library containing dlopen... " >&6; } 21415 if test ${ac_cv_search_dlopen+y} 21416 then : 21417 printf %s "(cached) " >&6 21418 else $as_nop 21419 ac_func_search_save_LIBS=$LIBS 21420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21421 /* end confdefs.h. */ 21422 21423 /* Override any GCC internal prototype to avoid an error. 21424 Use char because int might match the return type of a GCC 21425 builtin and then its argument prototype would still apply. */ 21426 char dlopen (); 21427 int 21428 main (void) 21429 { 21430 return dlopen (); 21431 ; 21432 return 0; 21433 } 21434 _ACEOF 21435 for ac_lib in '' dl 21436 do 21437 if test -z "$ac_lib"; then 21438 ac_res="none required" 21439 else 21440 ac_res=-l$ac_lib 21441 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21442 fi 21443 if ac_fn_c_try_link "$LINENO" 21444 then : 21445 ac_cv_search_dlopen=$ac_res 21446 fi 21447 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21448 conftest$ac_exeext 21449 if test ${ac_cv_search_dlopen+y} 21450 then : 21451 break 21452 fi 21453 done 21454 if test ${ac_cv_search_dlopen+y} 21455 then : 21456 21457 else $as_nop 21458 ac_cv_search_dlopen=no 21459 fi 21460 rm conftest.$ac_ext 21461 LIBS=$ac_func_search_save_LIBS 21462 fi 21463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 21464 printf "%s\n" "$ac_cv_search_dlopen" >&6; } 21465 ac_res=$ac_cv_search_dlopen 21466 if test "$ac_res" != no 21467 then : 21468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21469 21470 fi 21471 21472 21473 fi 21474 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21475 conftest$ac_exeext conftest.$ac_ext 21476 SSLLIB="-lssl" 21477 21478 PC_CRYPTO_DEPENDENCY="" 21479 21480 21481 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 21482 BAKLIBS="$LIBS" 21483 LIBS="-lssl $LIBS" 21484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 21485 printf %s "checking if libssl needs -lcrypt32... " >&6; } 21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21487 /* end confdefs.h. */ 21488 21489 int 21490 main (void) 21491 { 21492 21493 int EVP_sha256(void); 21494 (void)EVP_sha256(); 21495 21496 ; 21497 return 0; 21498 } 21499 _ACEOF 21500 if ac_fn_c_try_link "$LINENO" 21501 then : 21502 21503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21504 printf "%s\n" "no" >&6; } 21505 LIBS="$BAKLIBS" 21506 21507 else $as_nop 21508 21509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21510 printf "%s\n" "yes" >&6; } 21511 LIBS="$BAKLIBS" 21512 LIBS="$LIBS -lcrypt32" 21513 21514 fi 21515 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21516 conftest$ac_exeext conftest.$ac_ext 21517 21518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 21519 printf %s "checking for LibreSSL... " >&6; } 21520 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 21521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21522 printf "%s\n" "yes" >&6; } 21523 21524 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h 21525 21526 # libressl provides these compat functions, but they may also be 21527 # declared by the OS in libc. See if they have been declared. 21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 21529 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 21530 if test ${ac_cv_c_undeclared_builtin_options+y} 21531 then : 21532 printf %s "(cached) " >&6 21533 else $as_nop 21534 ac_save_CFLAGS=$CFLAGS 21535 ac_cv_c_undeclared_builtin_options='cannot detect' 21536 for ac_arg in '' -fno-builtin; do 21537 CFLAGS="$ac_save_CFLAGS $ac_arg" 21538 # This test program should *not* compile successfully. 21539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21540 /* end confdefs.h. */ 21541 21542 int 21543 main (void) 21544 { 21545 (void) strchr; 21546 ; 21547 return 0; 21548 } 21549 _ACEOF 21550 if ac_fn_c_try_compile "$LINENO" 21551 then : 21552 21553 else $as_nop 21554 # This test program should compile successfully. 21555 # No library function is consistently available on 21556 # freestanding implementations, so test against a dummy 21557 # declaration. Include always-available headers on the 21558 # off chance that they somehow elicit warnings. 21559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21560 /* end confdefs.h. */ 21561 #include <float.h> 21562 #include <limits.h> 21563 #include <stdarg.h> 21564 #include <stddef.h> 21565 extern void ac_decl (int, char *); 21566 21567 int 21568 main (void) 21569 { 21570 (void) ac_decl (0, (char *) 0); 21571 (void) ac_decl; 21572 21573 ; 21574 return 0; 21575 } 21576 _ACEOF 21577 if ac_fn_c_try_compile "$LINENO" 21578 then : 21579 if test x"$ac_arg" = x 21580 then : 21581 ac_cv_c_undeclared_builtin_options='none needed' 21582 else $as_nop 21583 ac_cv_c_undeclared_builtin_options=$ac_arg 21584 fi 21585 break 21586 fi 21587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21588 fi 21589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21590 done 21591 CFLAGS=$ac_save_CFLAGS 21592 21593 fi 21594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 21595 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 21596 case $ac_cv_c_undeclared_builtin_options in #( 21597 'cannot detect') : 21598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21599 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21600 as_fn_error $? "cannot make $CC report undeclared builtins 21601 See \`config.log' for more details" "$LINENO" 5; } ;; #( 21602 'none needed') : 21603 ac_c_undeclared_builtin_options='' ;; #( 21604 *) : 21605 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 21606 esac 21607 21608 ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21609 if test "x$ac_cv_have_decl_strlcpy" = xyes 21610 then : 21611 ac_have_decl=1 21612 else $as_nop 21613 ac_have_decl=0 21614 fi 21615 printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h 21616 ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21617 if test "x$ac_cv_have_decl_strlcat" = xyes 21618 then : 21619 ac_have_decl=1 21620 else $as_nop 21621 ac_have_decl=0 21622 fi 21623 printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h 21624 ac_fn_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21625 if test "x$ac_cv_have_decl_arc4random" = xyes 21626 then : 21627 ac_have_decl=1 21628 else $as_nop 21629 ac_have_decl=0 21630 fi 21631 printf "%s\n" "#define HAVE_DECL_ARC4RANDOM $ac_have_decl" >>confdefs.h 21632 ac_fn_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21633 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes 21634 then : 21635 ac_have_decl=1 21636 else $as_nop 21637 ac_have_decl=0 21638 fi 21639 printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl" >>confdefs.h 21640 21641 else 21642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21643 printf "%s\n" "no" >&6; } 21644 fi 21645 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 21646 " 21647 if test "x$ac_cv_header_openssl_conf_h" = xyes 21648 then : 21649 printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h 21650 21651 fi 21652 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 21653 " 21654 if test "x$ac_cv_header_openssl_engine_h" = xyes 21655 then : 21656 printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h 21657 21658 fi 21659 ac_fn_c_check_header_compile "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default 21660 " 21661 if test "x$ac_cv_header_openssl_bn_h" = xyes 21662 then : 21663 printf "%s\n" "#define HAVE_OPENSSL_BN_H 1" >>confdefs.h 21664 21665 fi 21666 ac_fn_c_check_header_compile "$LINENO" "openssl/dh.h" "ac_cv_header_openssl_dh_h" "$ac_includes_default 21667 " 21668 if test "x$ac_cv_header_openssl_dh_h" = xyes 21669 then : 21670 printf "%s\n" "#define HAVE_OPENSSL_DH_H 1" >>confdefs.h 21671 21672 fi 21673 ac_fn_c_check_header_compile "$LINENO" "openssl/dsa.h" "ac_cv_header_openssl_dsa_h" "$ac_includes_default 21674 " 21675 if test "x$ac_cv_header_openssl_dsa_h" = xyes 21676 then : 21677 printf "%s\n" "#define HAVE_OPENSSL_DSA_H 1" >>confdefs.h 21678 21679 fi 21680 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default 21681 " 21682 if test "x$ac_cv_header_openssl_rsa_h" = xyes 21683 then : 21684 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h 21685 21686 fi 21687 ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default 21688 " 21689 if test "x$ac_cv_header_openssl_core_names_h" = xyes 21690 then : 21691 printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h 21692 21693 fi 21694 ac_fn_c_check_header_compile "$LINENO" "openssl/param_build.h" "ac_cv_header_openssl_param_build_h" "$ac_includes_default 21695 " 21696 if test "x$ac_cv_header_openssl_param_build_h" = xyes 21697 then : 21698 printf "%s\n" "#define HAVE_OPENSSL_PARAM_BUILD_H 1" >>confdefs.h 21699 21700 fi 21701 21702 ac_fn_c_check_func "$LINENO" "OPENSSL_config" "ac_cv_func_OPENSSL_config" 21703 if test "x$ac_cv_func_OPENSSL_config" = xyes 21704 then : 21705 printf "%s\n" "#define HAVE_OPENSSL_CONFIG 1" >>confdefs.h 21706 21707 fi 21708 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1" 21709 if test "x$ac_cv_func_EVP_sha1" = xyes 21710 then : 21711 printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h 21712 21713 fi 21714 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 21715 if test "x$ac_cv_func_EVP_sha256" = xyes 21716 then : 21717 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 21718 21719 fi 21720 ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512" 21721 if test "x$ac_cv_func_EVP_sha512" = xyes 21722 then : 21723 printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h 21724 21725 fi 21726 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode" 21727 if test "x$ac_cv_func_FIPS_mode" = xyes 21728 then : 21729 printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h 21730 21731 fi 21732 ac_fn_c_check_func "$LINENO" "EVP_default_properties_is_fips_enabled" "ac_cv_func_EVP_default_properties_is_fips_enabled" 21733 if test "x$ac_cv_func_EVP_default_properties_is_fips_enabled" = xyes 21734 then : 21735 printf "%s\n" "#define HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED 1" >>confdefs.h 21736 21737 fi 21738 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 21739 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 21740 then : 21741 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 21742 21743 fi 21744 ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_digests" "ac_cv_func_OpenSSL_add_all_digests" 21745 if test "x$ac_cv_func_OpenSSL_add_all_digests" = xyes 21746 then : 21747 printf "%s\n" "#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1" >>confdefs.h 21748 21749 fi 21750 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 21751 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 21752 then : 21753 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 21754 21755 fi 21756 ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 21757 if test "x$ac_cv_func_EVP_cleanup" = xyes 21758 then : 21759 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 21760 21761 fi 21762 ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup" 21763 if test "x$ac_cv_func_ENGINE_cleanup" = xyes 21764 then : 21765 printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h 21766 21767 fi 21768 ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 21769 if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 21770 then : 21771 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 21772 21773 fi 21774 ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data" 21775 if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes 21776 then : 21777 printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h 21778 21779 fi 21780 ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings" 21781 if test "x$ac_cv_func_ERR_free_strings" = xyes 21782 then : 21783 printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h 21784 21785 fi 21786 ac_fn_c_check_func "$LINENO" "RAND_cleanup" "ac_cv_func_RAND_cleanup" 21787 if test "x$ac_cv_func_RAND_cleanup" = xyes 21788 then : 21789 printf "%s\n" "#define HAVE_RAND_CLEANUP 1" >>confdefs.h 21790 21791 fi 21792 ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0" 21793 if test "x$ac_cv_func_DSA_SIG_set0" = xyes 21794 then : 21795 printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h 21796 21797 fi 21798 ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1" 21799 if test "x$ac_cv_func_EVP_dss1" = xyes 21800 then : 21801 printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h 21802 21803 fi 21804 ac_fn_c_check_func "$LINENO" "EVP_DigestVerify" "ac_cv_func_EVP_DigestVerify" 21805 if test "x$ac_cv_func_EVP_DigestVerify" = xyes 21806 then : 21807 printf "%s\n" "#define HAVE_EVP_DIGESTVERIFY 1" >>confdefs.h 21808 21809 fi 21810 ac_fn_c_check_func "$LINENO" "EVP_aes_256_cbc" "ac_cv_func_EVP_aes_256_cbc" 21811 if test "x$ac_cv_func_EVP_aes_256_cbc" = xyes 21812 then : 21813 printf "%s\n" "#define HAVE_EVP_AES_256_CBC 1" >>confdefs.h 21814 21815 fi 21816 ac_fn_c_check_func "$LINENO" "EVP_EncryptInit_ex" "ac_cv_func_EVP_EncryptInit_ex" 21817 if test "x$ac_cv_func_EVP_EncryptInit_ex" = xyes 21818 then : 21819 printf "%s\n" "#define HAVE_EVP_ENCRYPTINIT_EX 1" >>confdefs.h 21820 21821 fi 21822 ac_fn_c_check_func "$LINENO" "HMAC_Init_ex" "ac_cv_func_HMAC_Init_ex" 21823 if test "x$ac_cv_func_HMAC_Init_ex" = xyes 21824 then : 21825 printf "%s\n" "#define HAVE_HMAC_INIT_EX 1" >>confdefs.h 21826 21827 fi 21828 ac_fn_c_check_func "$LINENO" "CRYPTO_THREADID_set_callback" "ac_cv_func_CRYPTO_THREADID_set_callback" 21829 if test "x$ac_cv_func_CRYPTO_THREADID_set_callback" = xyes 21830 then : 21831 printf "%s\n" "#define HAVE_CRYPTO_THREADID_SET_CALLBACK 1" >>confdefs.h 21832 21833 fi 21834 ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params" 21835 if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes 21836 then : 21837 printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h 21838 21839 fi 21840 ac_fn_c_check_func "$LINENO" "OSSL_PARAM_BLD_new" "ac_cv_func_OSSL_PARAM_BLD_new" 21841 if test "x$ac_cv_func_OSSL_PARAM_BLD_new" = xyes 21842 then : 21843 printf "%s\n" "#define HAVE_OSSL_PARAM_BLD_NEW 1" >>confdefs.h 21844 21845 fi 21846 ac_fn_c_check_func "$LINENO" "BIO_set_callback_ex" "ac_cv_func_BIO_set_callback_ex" 21847 if test "x$ac_cv_func_BIO_set_callback_ex" = xyes 21848 then : 21849 printf "%s\n" "#define HAVE_BIO_SET_CALLBACK_EX 1" >>confdefs.h 21850 21851 fi 21852 ac_fn_c_check_func "$LINENO" "OPENSSL_cleanup" "ac_cv_func_OPENSSL_cleanup" 21853 if test "x$ac_cv_func_OPENSSL_cleanup" = xyes 21854 then : 21855 printf "%s\n" "#define HAVE_OPENSSL_CLEANUP 1" >>confdefs.h 21856 21857 fi 21858 21859 21860 # these check_funcs need -lssl 21861 BAKLIBS="$LIBS" 21862 LIBS="-lssl $LIBS" 21863 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 21864 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 21865 then : 21866 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 21867 21868 fi 21869 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level" 21870 if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes 21871 then : 21872 printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h 21873 21874 fi 21875 ac_fn_c_check_func "$LINENO" "SSL_set1_host" "ac_cv_func_SSL_set1_host" 21876 if test "x$ac_cv_func_SSL_set1_host" = xyes 21877 then : 21878 printf "%s\n" "#define HAVE_SSL_SET1_HOST 1" >>confdefs.h 21879 21880 fi 21881 ac_fn_c_check_func "$LINENO" "SSL_get0_peername" "ac_cv_func_SSL_get0_peername" 21882 if test "x$ac_cv_func_SSL_get0_peername" = xyes 21883 then : 21884 printf "%s\n" "#define HAVE_SSL_GET0_PEERNAME 1" >>confdefs.h 21885 21886 fi 21887 ac_fn_c_check_func "$LINENO" "SSL_set1_dnsname" "ac_cv_func_SSL_set1_dnsname" 21888 if test "x$ac_cv_func_SSL_set1_dnsname" = xyes 21889 then : 21890 printf "%s\n" "#define HAVE_SSL_SET1_DNSNAME 1" >>confdefs.h 21891 21892 fi 21893 ac_fn_c_check_func "$LINENO" "X509_get_key_usage" "ac_cv_func_X509_get_key_usage" 21894 if test "x$ac_cv_func_X509_get_key_usage" = xyes 21895 then : 21896 printf "%s\n" "#define HAVE_X509_GET_KEY_USAGE 1" >>confdefs.h 21897 21898 fi 21899 ac_fn_c_check_func "$LINENO" "ASN1_STRING_get0_data" "ac_cv_func_ASN1_STRING_get0_data" 21900 if test "x$ac_cv_func_ASN1_STRING_get0_data" = xyes 21901 then : 21902 printf "%s\n" "#define HAVE_ASN1_STRING_GET0_DATA 1" >>confdefs.h 21903 21904 fi 21905 ac_fn_c_check_func "$LINENO" "X509_VERIFY_PARAM_set1_host" "ac_cv_func_X509_VERIFY_PARAM_set1_host" 21906 if test "x$ac_cv_func_X509_VERIFY_PARAM_set1_host" = xyes 21907 then : 21908 printf "%s\n" "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h 21909 21910 fi 21911 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites" 21912 if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes 21913 then : 21914 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h 21915 21916 fi 21917 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_tlsext_ticket_key_evp_cb" "ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" 21918 if test "x$ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" = xyes 21919 then : 21920 printf "%s\n" "#define HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 1" >>confdefs.h 21921 21922 fi 21923 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_select_cb" "ac_cv_func_SSL_CTX_set_alpn_select_cb" 21924 if test "x$ac_cv_func_SSL_CTX_set_alpn_select_cb" = xyes 21925 then : 21926 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1" >>confdefs.h 21927 21928 fi 21929 ac_fn_c_check_func "$LINENO" "SSL_get0_alpn_selected" "ac_cv_func_SSL_get0_alpn_selected" 21930 if test "x$ac_cv_func_SSL_get0_alpn_selected" = xyes 21931 then : 21932 printf "%s\n" "#define HAVE_SSL_GET0_ALPN_SELECTED 1" >>confdefs.h 21933 21934 fi 21935 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_protos" "ac_cv_func_SSL_CTX_set_alpn_protos" 21936 if test "x$ac_cv_func_SSL_CTX_set_alpn_protos" = xyes 21937 then : 21938 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1" >>confdefs.h 21939 21940 fi 21941 ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate" 21942 if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes 21943 then : 21944 printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h 21945 21946 fi 21947 21948 ac_fn_c_check_func "$LINENO" "X509_NAME_get_text_by_NID" "ac_cv_func_X509_NAME_get_text_by_NID" 21949 if test "x$ac_cv_func_X509_NAME_get_text_by_NID" = xyes 21950 then : 21951 printf "%s\n" "#define HAVE_X509_NAME_GET_TEXT_BY_NID 1" >>confdefs.h 21952 21953 fi 21954 21955 if test $ac_cv_func_X509_NAME_get_text_by_NID = yes; then 21956 21957 21958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X509_NAME_get_text_by_NID is deprecated" >&5 21959 printf %s "checking if X509_NAME_get_text_by_NID is deprecated... " >&6; } 21960 cache=`echo X509_NAME_get_text_by_NID | sed 'y%.=/+-%___p_%'` 21961 if eval test \${cv_cc_deprecated_$cache+y} 21962 then : 21963 printf %s "(cached) " >&6 21964 else $as_nop 21965 21966 echo ' 21967 #include "openssl/x509.h" 21968 ' >conftest.c 21969 echo 'void f(void){ 21970 (void)X509_NAME_get_text_by_NID(NULL, 0, NULL, 0); }' >>conftest.c 21971 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 21972 eval "cv_cc_deprecated_$cache=no" 21973 else 21974 eval "cv_cc_deprecated_$cache=yes" 21975 fi 21976 rm -f conftest conftest.o conftest.c 21977 21978 fi 21979 21980 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 21981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21982 printf "%s\n" "yes" >&6; } 21983 21984 printf "%s\n" "#define DEPRECATED_X509_NAME_GET_TEXT_BY_NID 1" >>confdefs.h 21985 21986 : 21987 21988 else 21989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21990 printf "%s\n" "no" >&6; } 21991 : 21992 21993 fi 21994 21995 fi 21996 LIBS="$BAKLIBS" 21997 21998 ac_fn_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 21999 $ac_includes_default 22000 #ifdef HAVE_OPENSSL_ERR_H 22001 #include <openssl/err.h> 22002 #endif 22003 22004 #ifdef HAVE_OPENSSL_RAND_H 22005 #include <openssl/rand.h> 22006 #endif 22007 22008 #ifdef HAVE_OPENSSL_CONF_H 22009 #include <openssl/conf.h> 22010 #endif 22011 22012 #ifdef HAVE_OPENSSL_ENGINE_H 22013 #include <openssl/engine.h> 22014 #endif 22015 #include <openssl/ssl.h> 22016 #include <openssl/evp.h> 22017 22018 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22019 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes 22020 then : 22021 ac_have_decl=1 22022 else $as_nop 22023 ac_have_decl=0 22024 fi 22025 printf "%s\n" "#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl" >>confdefs.h 22026 ac_fn_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 22027 $ac_includes_default 22028 #ifdef HAVE_OPENSSL_ERR_H 22029 #include <openssl/err.h> 22030 #endif 22031 22032 #ifdef HAVE_OPENSSL_RAND_H 22033 #include <openssl/rand.h> 22034 #endif 22035 22036 #ifdef HAVE_OPENSSL_CONF_H 22037 #include <openssl/conf.h> 22038 #endif 22039 22040 #ifdef HAVE_OPENSSL_ENGINE_H 22041 #include <openssl/engine.h> 22042 #endif 22043 #include <openssl/ssl.h> 22044 #include <openssl/evp.h> 22045 22046 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22047 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes 22048 then : 22049 ac_have_decl=1 22050 else $as_nop 22051 ac_have_decl=0 22052 fi 22053 printf "%s\n" "#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl" >>confdefs.h 22054 ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 22055 $ac_includes_default 22056 #ifdef HAVE_OPENSSL_ERR_H 22057 #include <openssl/err.h> 22058 #endif 22059 22060 #ifdef HAVE_OPENSSL_RAND_H 22061 #include <openssl/rand.h> 22062 #endif 22063 22064 #ifdef HAVE_OPENSSL_CONF_H 22065 #include <openssl/conf.h> 22066 #endif 22067 22068 #ifdef HAVE_OPENSSL_ENGINE_H 22069 #include <openssl/engine.h> 22070 #endif 22071 #include <openssl/ssl.h> 22072 #include <openssl/evp.h> 22073 22074 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22075 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes 22076 then : 22077 ac_have_decl=1 22078 else $as_nop 22079 ac_have_decl=0 22080 fi 22081 printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h 22082 ac_fn_check_decl "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" " 22083 $ac_includes_default 22084 #ifdef HAVE_OPENSSL_ERR_H 22085 #include <openssl/err.h> 22086 #endif 22087 22088 #ifdef HAVE_OPENSSL_RAND_H 22089 #include <openssl/rand.h> 22090 #endif 22091 22092 #ifdef HAVE_OPENSSL_CONF_H 22093 #include <openssl/conf.h> 22094 #endif 22095 22096 #ifdef HAVE_OPENSSL_ENGINE_H 22097 #include <openssl/engine.h> 22098 #endif 22099 #include <openssl/ssl.h> 22100 #include <openssl/evp.h> 22101 22102 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22103 if test "x$ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" = xyes 22104 then : 22105 ac_have_decl=1 22106 else $as_nop 22107 ac_have_decl=0 22108 fi 22109 printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH $ac_have_decl" >>confdefs.h 22110 22111 22112 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 22113 # check function return type. 22114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 22115 printf %s "checking the return type of HMAC_Init_ex... " >&6; } 22116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22117 /* end confdefs.h. */ 22118 22119 #ifdef HAVE_OPENSSL_ERR_H 22120 #include <openssl/err.h> 22121 #endif 22122 22123 #ifdef HAVE_OPENSSL_RAND_H 22124 #include <openssl/rand.h> 22125 #endif 22126 22127 #ifdef HAVE_OPENSSL_CONF_H 22128 #include <openssl/conf.h> 22129 #endif 22130 22131 #ifdef HAVE_OPENSSL_ENGINE_H 22132 #include <openssl/engine.h> 22133 #endif 22134 #include <openssl/ssl.h> 22135 #include <openssl/evp.h> 22136 22137 int 22138 main (void) 22139 { 22140 22141 HMAC_CTX* hmac_ctx = NULL; 22142 void* hmac_key = NULL; 22143 const EVP_MD* digest = NULL; 22144 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 22145 (void)x; 22146 22147 ; 22148 return 0; 22149 } 22150 _ACEOF 22151 if ac_fn_c_try_compile "$LINENO" 22152 then : 22153 22154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5 22155 printf "%s\n" "int" >&6; } 22156 22157 else $as_nop 22158 22159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void" >&5 22160 printf "%s\n" "void" >&6; } 22161 22162 printf "%s\n" "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 22163 22164 22165 fi 22166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22167 fi 22168 22169 fi 22170 22171 22172 # libbsd 22173 22174 # Check whether --with-libbsd was given. 22175 if test ${with_libbsd+y} 22176 then : 22177 withval=$with_libbsd; 22178 ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default 22179 " 22180 if test "x$ac_cv_header_bsd_string_h" = xyes 22181 then : 22182 printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h 22183 22184 fi 22185 ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default 22186 " 22187 if test "x$ac_cv_header_bsd_stdlib_h" = xyes 22188 then : 22189 printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h 22190 22191 fi 22192 22193 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 22194 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 22195 as_ac_Search=`printf "%s\n" "ac_cv_search_$func" | $as_tr_sh` 22196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 22197 printf %s "checking for library containing $func... " >&6; } 22198 if eval test \${$as_ac_Search+y} 22199 then : 22200 printf %s "(cached) " >&6 22201 else $as_nop 22202 ac_func_search_save_LIBS=$LIBS 22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22204 /* end confdefs.h. */ 22205 22206 /* Override any GCC internal prototype to avoid an error. 22207 Use char because int might match the return type of a GCC 22208 builtin and then its argument prototype would still apply. */ 22209 char $func (); 22210 int 22211 main (void) 22212 { 22213 return $func (); 22214 ; 22215 return 0; 22216 } 22217 _ACEOF 22218 for ac_lib in '' bsd 22219 do 22220 if test -z "$ac_lib"; then 22221 ac_res="none required" 22222 else 22223 ac_res=-l$ac_lib 22224 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22225 fi 22226 if ac_fn_c_try_link "$LINENO" 22227 then : 22228 eval "$as_ac_Search=\$ac_res" 22229 fi 22230 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22231 conftest$ac_exeext 22232 if eval test \${$as_ac_Search+y} 22233 then : 22234 break 22235 fi 22236 done 22237 if eval test \${$as_ac_Search+y} 22238 then : 22239 22240 else $as_nop 22241 eval "$as_ac_Search=no" 22242 fi 22243 rm conftest.$ac_ext 22244 LIBS=$ac_func_search_save_LIBS 22245 fi 22246 eval ac_res=\$$as_ac_Search 22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22248 printf "%s\n" "$ac_res" >&6; } 22249 eval ac_res=\$$as_ac_Search 22250 if test "$ac_res" != no 22251 then : 22252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22253 22254 22255 printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h 22256 22257 PC_LIBBSD_DEPENDENCY=libbsd 22258 22259 22260 fi 22261 22262 done 22263 fi 22264 22265 fi 22266 22267 22268 # Check whether --enable-sha1 was given. 22269 if test ${enable_sha1+y} 22270 then : 22271 enableval=$enable_sha1; 22272 fi 22273 22274 case "$enable_sha1" in 22275 no) 22276 ;; 22277 yes|*) 22278 22279 printf "%s\n" "#define USE_SHA1 1" >>confdefs.h 22280 22281 ;; 22282 esac 22283 22284 22285 # Check whether --enable-sha2 was given. 22286 if test ${enable_sha2+y} 22287 then : 22288 enableval=$enable_sha2; 22289 fi 22290 22291 case "$enable_sha2" in 22292 no) 22293 ;; 22294 yes|*) 22295 22296 printf "%s\n" "#define USE_SHA2 1" >>confdefs.h 22297 22298 ;; 22299 esac 22300 22301 # Check whether --enable-subnet was given. 22302 if test ${enable_subnet+y} 22303 then : 22304 enableval=$enable_subnet; 22305 fi 22306 22307 case "$enable_subnet" in 22308 yes) 22309 22310 printf "%s\n" "#define CLIENT_SUBNET 1" >>confdefs.h 22311 22312 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 22313 22314 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 22315 22316 ;; 22317 no|*) 22318 ;; 22319 esac 22320 22321 # check whether gost also works 22322 22323 # Check whether --enable-gost was given. 22324 if test ${enable_gost+y} 22325 then : 22326 enableval=$enable_gost; 22327 fi 22328 22329 use_gost="no" 22330 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 22331 case "$enable_gost" in 22332 no) 22333 ;; 22334 *) 22335 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 22336 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes 22337 then : 22338 : 22339 else $as_nop 22340 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 22341 fi 22342 22343 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 22344 if test "x$ac_cv_func_EC_KEY_new" = xyes 22345 then : 22346 22347 else $as_nop 22348 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 22349 fi 22350 22351 22352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 22353 printf %s "checking if GOST works... " >&6; } 22354 if test c${cross_compiling} = cno; then 22355 BAKCFLAGS="$CFLAGS" 22356 if test -n "$ssldir"; then 22357 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib" 22358 fi 22359 if test "$cross_compiling" = yes 22360 then : 22361 eval "ac_cv_c_gost_works=maybe" 22362 else $as_nop 22363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22364 /* end confdefs.h. */ 22365 22366 #include <string.h> 22367 #include <openssl/ssl.h> 22368 #include <openssl/evp.h> 22369 #include <openssl/engine.h> 22370 #include <openssl/conf.h> 22371 /* routine to load gost (from sldns) */ 22372 int load_gost_id(void) 22373 { 22374 static int gost_id = 0; 22375 const EVP_PKEY_ASN1_METHOD* meth; 22376 ENGINE* e; 22377 22378 if(gost_id) return gost_id; 22379 22380 /* see if configuration loaded gost implementation from other engine*/ 22381 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 22382 if(meth) { 22383 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 22384 return gost_id; 22385 } 22386 22387 /* see if engine can be loaded already */ 22388 e = ENGINE_by_id("gost"); 22389 if(!e) { 22390 /* load it ourself, in case statically linked */ 22391 ENGINE_load_builtin_engines(); 22392 ENGINE_load_dynamic(); 22393 e = ENGINE_by_id("gost"); 22394 } 22395 if(!e) { 22396 /* no gost engine in openssl */ 22397 return 0; 22398 } 22399 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 22400 ENGINE_finish(e); 22401 ENGINE_free(e); 22402 return 0; 22403 } 22404 22405 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 22406 if(!meth) { 22407 /* algo not found */ 22408 ENGINE_finish(e); 22409 ENGINE_free(e); 22410 return 0; 22411 } 22412 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 22413 return gost_id; 22414 } 22415 int main(void) { 22416 EVP_MD_CTX* ctx; 22417 const EVP_MD* md; 22418 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 22419 const char* str = "Hello world"; 22420 const unsigned char check[] = { 22421 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 22422 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 22423 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 22424 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 22425 }; 22426 OPENSSL_config(NULL); 22427 (void)load_gost_id(); 22428 md = EVP_get_digestbyname("md_gost94"); 22429 if(!md) return 1; 22430 memset(digest, 0, sizeof(digest)); 22431 ctx = EVP_MD_CTX_create(); 22432 if(!ctx) return 2; 22433 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 22434 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 22435 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 22436 /* uncomment to see the hash calculated. 22437 {int i; 22438 for(i=0; i<32; i++) 22439 printf(" %2.2x", (int)digest[i]); 22440 printf("\n");} 22441 */ 22442 if(memcmp(digest, check, sizeof(check)) != 0) 22443 return 6; 22444 return 0; 22445 } 22446 22447 _ACEOF 22448 if ac_fn_c_try_run "$LINENO" 22449 then : 22450 eval "ac_cv_c_gost_works=yes" 22451 else $as_nop 22452 eval "ac_cv_c_gost_works=no" 22453 fi 22454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22455 conftest.$ac_objext conftest.beam conftest.$ac_ext 22456 fi 22457 22458 CFLAGS="$BAKCFLAGS" 22459 else 22460 eval "ac_cv_c_gost_works=maybe" 22461 fi 22462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 22463 printf "%s\n" "$ac_cv_c_gost_works" >&6; } 22464 22465 if test "$ac_cv_c_gost_works" != no; then 22466 use_gost="yes" 22467 22468 printf "%s\n" "#define USE_GOST 1" >>confdefs.h 22469 22470 fi 22471 ;; 22472 esac 22473 fi 22474 # Check whether --enable-ecdsa was given. 22475 if test ${enable_ecdsa+y} 22476 then : 22477 enableval=$enable_ecdsa; 22478 fi 22479 22480 use_ecdsa="no" 22481 case "$enable_ecdsa" in 22482 no) 22483 ;; 22484 *) 22485 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 22486 ac_fn_c_check_func "$LINENO" "EVP_PKEY_fromdata" "ac_cv_func_EVP_PKEY_fromdata" 22487 if test "x$ac_cv_func_EVP_PKEY_fromdata" = xyes 22488 then : 22489 22490 # with EVP_PKEY_fromdata, check if EC is not disabled 22491 ac_fn_check_decl "$LINENO" "OPENSSL_NO_EC" "ac_cv_have_decl_OPENSSL_NO_EC" "$ac_includes_default 22492 #include <openssl/evp.h> 22493 22494 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22495 if test "x$ac_cv_have_decl_OPENSSL_NO_EC" = xyes 22496 then : 22497 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 22498 22499 fi 22500 22501 else $as_nop 22502 22503 # without EVP_PKEY_fromdata, older openssl, check for support 22504 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 22505 if test "x$ac_cv_func_ECDSA_sign" = xyes 22506 then : 22507 22508 else $as_nop 22509 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 22510 fi 22511 22512 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 22513 if test "x$ac_cv_func_SHA384_Init" = xyes 22514 then : 22515 22516 else $as_nop 22517 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 22518 fi 22519 22520 22521 fi 22522 22523 ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 22524 #include <openssl/evp.h> 22525 22526 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22527 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes 22528 then : 22529 ac_have_decl=1 22530 else $as_nop 22531 ac_have_decl=0 22532 fi 22533 printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h 22534 if test $ac_have_decl = 1 22535 then : 22536 22537 else $as_nop 22538 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 22539 fi 22540 ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 22541 #include <openssl/evp.h> 22542 22543 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22544 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes 22545 then : 22546 ac_have_decl=1 22547 else $as_nop 22548 ac_have_decl=0 22549 fi 22550 printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h 22551 if test $ac_have_decl = 1 22552 then : 22553 22554 else $as_nop 22555 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 22556 fi 22557 22558 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 22559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 22560 printf %s "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 22561 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 22562 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL 0\." >/dev/null; then 22563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22564 printf "%s\n" "no" >&6; } 22565 22566 printf "%s\n" "#define USE_ECDSA_EVP_WORKAROUND 1" >>confdefs.h 22567 22568 else 22569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22570 printf "%s\n" "yes" >&6; } 22571 fi 22572 else 22573 # not OpenSSL, thus likely LibreSSL, which supports it 22574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22575 printf "%s\n" "yes" >&6; } 22576 fi 22577 fi 22578 # we now know we have ECDSA and the required curves. 22579 22580 printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h 22581 22582 use_ecdsa="yes" 22583 ;; 22584 esac 22585 22586 # Check whether --enable-dsa was given. 22587 if test ${enable_dsa+y} 22588 then : 22589 enableval=$enable_dsa; 22590 fi 22591 22592 use_dsa="no" 22593 case "$enable_dsa" in 22594 yes) 22595 # detect if DSA is supported, and turn it off if not. 22596 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 22597 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 22598 if test "x$ac_cv_func_DSA_SIG_new" = xyes 22599 then : 22600 22601 as_ac_Type=`printf "%s\n" "ac_cv_type_DSA_SIG*" | $as_tr_sh` 22602 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 22603 $ac_includes_default 22604 #ifdef HAVE_OPENSSL_ERR_H 22605 #include <openssl/err.h> 22606 #endif 22607 22608 #ifdef HAVE_OPENSSL_RAND_H 22609 #include <openssl/rand.h> 22610 #endif 22611 22612 #ifdef HAVE_OPENSSL_CONF_H 22613 #include <openssl/conf.h> 22614 #endif 22615 22616 #ifdef HAVE_OPENSSL_ENGINE_H 22617 #include <openssl/engine.h> 22618 #endif 22619 22620 " 22621 if eval test \"x\$"$as_ac_Type"\" = x"yes" 22622 then : 22623 22624 22625 printf "%s\n" "#define USE_DSA 1" >>confdefs.h 22626 22627 22628 else $as_nop 22629 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 22630 fi 22631 fi 22632 22633 22634 else $as_nop 22635 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 22636 fi 22637 fi 22638 22639 else 22640 22641 printf "%s\n" "#define USE_DSA 1" >>confdefs.h 22642 22643 fi 22644 ;; 22645 *) 22646 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 22647 # support DSA for DNSSEC Validation. 22648 ;; 22649 esac 22650 22651 22652 # Check whether --with-deprecate-rsa-1024 was given. 22653 if test ${with_deprecate_rsa_1024+y} 22654 then : 22655 withval=$with_deprecate_rsa_1024; 22656 fi 22657 22658 if test "$with_deprecate_rsa_1024" = "yes"; then 22659 22660 printf "%s\n" "#define DEPRECATE_RSA_1024 1" >>confdefs.h 22661 22662 fi 22663 22664 # Check whether --enable-ed25519 was given. 22665 if test ${enable_ed25519+y} 22666 then : 22667 enableval=$enable_ed25519; 22668 fi 22669 22670 use_ed25519="no" 22671 case "$enable_ed25519" in 22672 no) 22673 ;; 22674 *) 22675 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 22676 ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 22677 #include <openssl/evp.h> 22678 22679 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22680 if test "x$ac_cv_have_decl_NID_ED25519" = xyes 22681 then : 22682 ac_have_decl=1 22683 else $as_nop 22684 ac_have_decl=0 22685 fi 22686 printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h 22687 if test $ac_have_decl = 1 22688 then : 22689 22690 use_ed25519="yes" 22691 22692 else $as_nop 22693 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 22694 fi 22695 fi 22696 22697 fi 22698 if test $USE_NETTLE = "yes"; then 22699 for ac_header in nettle/eddsa.h 22700 do : 22701 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 22702 " 22703 if test "x$ac_cv_header_nettle_eddsa_h" = xyes 22704 then : 22705 printf "%s\n" "#define HAVE_NETTLE_EDDSA_H 1" >>confdefs.h 22706 use_ed25519="yes" 22707 fi 22708 22709 done 22710 fi 22711 if test $use_ed25519 = "yes"; then 22712 22713 printf "%s\n" "#define USE_ED25519 1" >>confdefs.h 22714 22715 fi 22716 ;; 22717 esac 22718 22719 # Check whether --enable-ed448 was given. 22720 if test ${enable_ed448+y} 22721 then : 22722 enableval=$enable_ed448; 22723 fi 22724 22725 use_ed448="no" 22726 case "$enable_ed448" in 22727 no) 22728 ;; 22729 *) 22730 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 22731 ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 22732 #include <openssl/evp.h> 22733 22734 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22735 if test "x$ac_cv_have_decl_NID_ED448" = xyes 22736 then : 22737 ac_have_decl=1 22738 else $as_nop 22739 ac_have_decl=0 22740 fi 22741 printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h 22742 if test $ac_have_decl = 1 22743 then : 22744 22745 use_ed448="yes" 22746 22747 else $as_nop 22748 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 22749 fi 22750 fi 22751 22752 fi 22753 if test $use_ed448 = "yes"; then 22754 22755 printf "%s\n" "#define USE_ED448 1" >>confdefs.h 22756 22757 fi 22758 ;; 22759 esac 22760 22761 # Check whether --enable-event-api was given. 22762 if test ${enable_event_api+y} 22763 then : 22764 enableval=$enable_event_api; 22765 fi 22766 22767 case "$enable_event_api" in 22768 yes) 22769 UNBOUND_EVENT_INSTALL=unbound-event-install 22770 22771 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 22772 22773 ;; 22774 *) 22775 ;; 22776 esac 22777 22778 # Check whether --enable-tfo-client was given. 22779 if test ${enable_tfo_client+y} 22780 then : 22781 enableval=$enable_tfo_client; 22782 fi 22783 22784 case "$enable_tfo_client" in 22785 yes) 22786 case "$host_os" in 22787 linux*) ac_fn_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 22788 #include <netinet/tcp.h> 22789 22790 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22791 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes 22792 then : 22793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 22794 printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 22795 else $as_nop 22796 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 22797 fi 22798 22799 printf "%s\n" "#define USE_MSG_FASTOPEN 1" >>confdefs.h 22800 22801 ;; 22802 darwin*) ac_fn_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 22803 #include <sys/socket.h> 22804 22805 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22806 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes 22807 then : 22808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 22809 printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 22810 else $as_nop 22811 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 22812 fi 22813 22814 printf "%s\n" "#define USE_OSX_MSG_FASTOPEN 1" >>confdefs.h 22815 22816 ;; 22817 esac 22818 ;; 22819 no|*) 22820 ;; 22821 esac 22822 22823 # Check whether --enable-tfo-server was given. 22824 if test ${enable_tfo_server+y} 22825 then : 22826 enableval=$enable_tfo_server; 22827 fi 22828 22829 case "$enable_tfo_server" in 22830 yes) 22831 ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 22832 #include <netinet/tcp.h> 22833 22834 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22835 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes 22836 then : 22837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 22838 printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 22839 else $as_nop 22840 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 22841 fi 22842 22843 printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h 22844 22845 ;; 22846 no|*) 22847 ;; 22848 esac 22849 22850 # check for libevent 22851 22852 # Check whether --with-libevent was given. 22853 if test ${with_libevent+y} 22854 then : 22855 withval=$with_libevent; 22856 else $as_nop 22857 with_libevent="no" 22858 fi 22859 22860 if test "x_$with_libevent" != x_no; then 22861 22862 printf "%s\n" "#define USE_LIBEVENT 1" >>confdefs.h 22863 22864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 22865 printf %s "checking for libevent... " >&6; } 22866 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 22867 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 22868 fi 22869 for dir in $with_libevent; do 22870 thedir="$dir" 22871 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 22872 found_libevent="yes" 22873 if test "$thedir" != "/usr"; then 22874 CPPFLAGS="$CPPFLAGS -I$thedir/include" 22875 fi 22876 break; 22877 fi 22878 done 22879 if test x_$found_libevent != x_yes; then 22880 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 22881 # libevent source directory 22882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 22883 printf "%s\n" "found in $thedir" >&6; } 22884 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 22885 BAK_LDFLAGS_SET="1" 22886 BAK_LDFLAGS="$LDFLAGS" 22887 # remove evdns from linking 22888 mkdir build >/dev/null 2>&1 22889 mkdir build/libevent >/dev/null 2>&1 22890 mkdir build/libevent/.libs >/dev/null 2>&1 22891 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 22892 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 22893 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 22894 cp $ev_files_o build/libevent 22895 cp $ev_files_lo build/libevent 22896 cp $ev_files_libso build/libevent/.libs 22897 LATE_LDFLAGS="build/libevent/*.lo -lm" 22898 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 22899 else 22900 as_fn_error $? "Cannot find the libevent library in $with_libevent 22901 You can restart ./configure --with-libevent=no to use a builtin alternative. 22902 Please note that this alternative is not as capable as libevent when using 22903 large outgoing port ranges. " "$LINENO" 5 22904 fi 22905 else 22906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 22907 printf "%s\n" "found in $thedir" >&6; } 22908 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 22909 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 22910 22911 if test "x$enable_rpath" = xyes; then 22912 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 22913 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 22914 fi 22915 fi 22916 22917 else 22918 if test "$thedir" != "/usr" -a "$thedir" != ""; then 22919 LDFLAGS="$LDFLAGS -L$thedir/lib" 22920 22921 if test "x$enable_rpath" = xyes; then 22922 if echo "$thedir/lib" | grep "^/" >/dev/null; then 22923 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 22924 fi 22925 fi 22926 22927 fi 22928 fi 22929 fi 22930 # check for library used by libevent after 1.3c 22931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 22932 printf %s "checking for library containing clock_gettime... " >&6; } 22933 if test ${ac_cv_search_clock_gettime+y} 22934 then : 22935 printf %s "(cached) " >&6 22936 else $as_nop 22937 ac_func_search_save_LIBS=$LIBS 22938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22939 /* end confdefs.h. */ 22940 22941 /* Override any GCC internal prototype to avoid an error. 22942 Use char because int might match the return type of a GCC 22943 builtin and then its argument prototype would still apply. */ 22944 char clock_gettime (); 22945 int 22946 main (void) 22947 { 22948 return clock_gettime (); 22949 ; 22950 return 0; 22951 } 22952 _ACEOF 22953 for ac_lib in '' rt 22954 do 22955 if test -z "$ac_lib"; then 22956 ac_res="none required" 22957 else 22958 ac_res=-l$ac_lib 22959 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22960 fi 22961 if ac_fn_c_try_link "$LINENO" 22962 then : 22963 ac_cv_search_clock_gettime=$ac_res 22964 fi 22965 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22966 conftest$ac_exeext 22967 if test ${ac_cv_search_clock_gettime+y} 22968 then : 22969 break 22970 fi 22971 done 22972 if test ${ac_cv_search_clock_gettime+y} 22973 then : 22974 22975 else $as_nop 22976 ac_cv_search_clock_gettime=no 22977 fi 22978 rm conftest.$ac_ext 22979 LIBS=$ac_func_search_save_LIBS 22980 fi 22981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 22982 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 22983 ac_res=$ac_cv_search_clock_gettime 22984 if test "$ac_res" != no 22985 then : 22986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22987 22988 fi 22989 22990 22991 # is the event.h header libev or libevent? 22992 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 22993 " 22994 if test "x$ac_cv_header_event_h" = xyes 22995 then : 22996 printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h 22997 22998 fi 22999 23000 ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 23001 #include <event.h> 23002 23003 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23004 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes 23005 then : 23006 23007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 23008 printf %s "checking for library containing event_set... " >&6; } 23009 if test ${ac_cv_search_event_set+y} 23010 then : 23011 printf %s "(cached) " >&6 23012 else $as_nop 23013 ac_func_search_save_LIBS=$LIBS 23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23015 /* end confdefs.h. */ 23016 23017 /* Override any GCC internal prototype to avoid an error. 23018 Use char because int might match the return type of a GCC 23019 builtin and then its argument prototype would still apply. */ 23020 char event_set (); 23021 int 23022 main (void) 23023 { 23024 return event_set (); 23025 ; 23026 return 0; 23027 } 23028 _ACEOF 23029 for ac_lib in '' ev 23030 do 23031 if test -z "$ac_lib"; then 23032 ac_res="none required" 23033 else 23034 ac_res=-l$ac_lib 23035 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23036 fi 23037 if ac_fn_c_try_link "$LINENO" 23038 then : 23039 ac_cv_search_event_set=$ac_res 23040 fi 23041 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23042 conftest$ac_exeext 23043 if test ${ac_cv_search_event_set+y} 23044 then : 23045 break 23046 fi 23047 done 23048 if test ${ac_cv_search_event_set+y} 23049 then : 23050 23051 else $as_nop 23052 ac_cv_search_event_set=no 23053 fi 23054 rm conftest.$ac_ext 23055 LIBS=$ac_func_search_save_LIBS 23056 fi 23057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 23058 printf "%s\n" "$ac_cv_search_event_set" >&6; } 23059 ac_res=$ac_cv_search_event_set 23060 if test "$ac_res" != no 23061 then : 23062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23063 23064 fi 23065 23066 23067 else $as_nop 23068 23069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 23070 printf %s "checking for library containing event_set... " >&6; } 23071 if test ${ac_cv_search_event_set+y} 23072 then : 23073 printf %s "(cached) " >&6 23074 else $as_nop 23075 ac_func_search_save_LIBS=$LIBS 23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23077 /* end confdefs.h. */ 23078 23079 /* Override any GCC internal prototype to avoid an error. 23080 Use char because int might match the return type of a GCC 23081 builtin and then its argument prototype would still apply. */ 23082 char event_set (); 23083 int 23084 main (void) 23085 { 23086 return event_set (); 23087 ; 23088 return 0; 23089 } 23090 _ACEOF 23091 for ac_lib in '' event 23092 do 23093 if test -z "$ac_lib"; then 23094 ac_res="none required" 23095 else 23096 ac_res=-l$ac_lib 23097 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23098 fi 23099 if ac_fn_c_try_link "$LINENO" 23100 then : 23101 ac_cv_search_event_set=$ac_res 23102 fi 23103 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23104 conftest$ac_exeext 23105 if test ${ac_cv_search_event_set+y} 23106 then : 23107 break 23108 fi 23109 done 23110 if test ${ac_cv_search_event_set+y} 23111 then : 23112 23113 else $as_nop 23114 ac_cv_search_event_set=no 23115 fi 23116 rm conftest.$ac_ext 23117 LIBS=$ac_func_search_save_LIBS 23118 fi 23119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 23120 printf "%s\n" "$ac_cv_search_event_set" >&6; } 23121 ac_res=$ac_cv_search_event_set 23122 if test "$ac_res" != no 23123 then : 23124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23125 23126 fi 23127 23128 23129 fi 23130 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 23131 if test "x$ac_cv_func_event_base_free" = xyes 23132 then : 23133 printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h 23134 23135 fi 23136 # only in libevent 1.2 and later 23137 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 23138 if test "x$ac_cv_func_event_base_once" = xyes 23139 then : 23140 printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h 23141 23142 fi 23143 # only in libevent 1.4.1 and later 23144 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 23145 if test "x$ac_cv_func_event_base_new" = xyes 23146 then : 23147 printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h 23148 23149 fi 23150 # only in libevent 1.4.1 and later 23151 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 23152 if test "x$ac_cv_func_event_base_get_method" = xyes 23153 then : 23154 printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h 23155 23156 fi 23157 # only in libevent 1.4.3 and later 23158 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 23159 if test "x$ac_cv_func_ev_loop" = xyes 23160 then : 23161 printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h 23162 23163 fi 23164 # only in libev. (tested on 3.51) 23165 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 23166 if test "x$ac_cv_func_ev_default_loop" = xyes 23167 then : 23168 printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h 23169 23170 fi 23171 # only in libev. (tested on 4.00) 23172 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 23173 if test "x$ac_cv_func_event_assign" = xyes 23174 then : 23175 printf "%s\n" "#define HAVE_EVENT_ASSIGN 1" >>confdefs.h 23176 23177 fi 23178 # in libevent, for thread-safety 23179 ac_fn_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 23180 #ifdef HAVE_EVENT_H 23181 # include <event.h> 23182 #else 23183 # include \"event2/event.h\" 23184 #endif 23185 23186 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23187 if test "x$ac_cv_have_decl_evsignal_assign" = xyes 23188 then : 23189 ac_have_decl=1 23190 else $as_nop 23191 ac_have_decl=0 23192 fi 23193 printf "%s\n" "#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl" >>confdefs.h 23194 23195 PC_LIBEVENT_DEPENDENCY="libevent" 23196 23197 if test -n "$BAK_LDFLAGS_SET"; then 23198 LDFLAGS="$BAK_LDFLAGS" 23199 fi 23200 else 23201 23202 printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h 23203 23204 fi 23205 23206 # check for libexpat 23207 23208 # Check whether --with-libexpat was given. 23209 if test ${with_libexpat+y} 23210 then : 23211 withval=$with_libexpat; 23212 else $as_nop 23213 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 23214 fi 23215 23216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 23217 printf %s "checking for libexpat... " >&6; } 23218 found_libexpat="no" 23219 for dir in $withval ; do 23220 if test -f "$dir/include/expat.h"; then 23221 found_libexpat="yes" 23222 if test "$dir" != "/usr"; then 23223 CPPFLAGS="$CPPFLAGS -I$dir/include" 23224 LDFLAGS="$LDFLAGS -L$dir/lib" 23225 fi 23226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 23227 printf "%s\n" "found in $dir" >&6; } 23228 break; 23229 fi 23230 done 23231 if test x_$found_libexpat != x_yes; then 23232 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 23233 fi 23234 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 23235 " 23236 if test "x$ac_cv_header_expat_h" = xyes 23237 then : 23238 printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h 23239 23240 fi 23241 23242 ac_fn_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 23243 #include <expat.h> 23244 23245 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23246 if test "x$ac_cv_have_decl_XML_StopParser" = xyes 23247 then : 23248 ac_have_decl=1 23249 else $as_nop 23250 ac_have_decl=0 23251 fi 23252 printf "%s\n" "#define HAVE_DECL_XML_STOPPARSER $ac_have_decl" >>confdefs.h 23253 23254 23255 # hiredis (redis C client for cachedb) 23256 23257 # Check whether --with-libhiredis was given. 23258 if test ${with_libhiredis+y} 23259 then : 23260 withval=$with_libhiredis; 23261 else $as_nop 23262 withval="no" 23263 fi 23264 23265 found_libhiredis="no" 23266 if test x_$withval = x_yes -o x_$withval != x_no; then 23267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 23268 printf %s "checking for libhiredis... " >&6; } 23269 if test x_$withval = x_ -o x_$withval = x_yes; then 23270 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 23271 fi 23272 for dir in $withval ; do 23273 if test -f "$dir/include/hiredis/hiredis.h"; then 23274 found_libhiredis="yes" 23275 if test "$dir" != "/usr"; then 23276 CPPFLAGS="$CPPFLAGS -I$dir/include" 23277 LDFLAGS="$LDFLAGS -L$dir/lib" 23278 fi 23279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 23280 printf "%s\n" "found in $dir" >&6; } 23281 23282 printf "%s\n" "#define USE_REDIS 1" >>confdefs.h 23283 23284 LIBS="$LIBS -lhiredis" 23285 break; 23286 fi 23287 done 23288 if test x_$found_libhiredis != x_yes; then 23289 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 23290 fi 23291 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 23292 " 23293 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes 23294 then : 23295 printf "%s\n" "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h 23296 23297 fi 23298 23299 ac_fn_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 23300 #include <hiredis/hiredis.h> 23301 23302 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23303 if test "x$ac_cv_have_decl_redisConnect" = xyes 23304 then : 23305 ac_have_decl=1 23306 else $as_nop 23307 ac_have_decl=0 23308 fi 23309 printf "%s\n" "#define HAVE_DECL_REDISCONNECT $ac_have_decl" >>confdefs.h 23310 23311 fi 23312 23313 # nghttp2 23314 23315 # Check whether --with-libnghttp2 was given. 23316 if test ${with_libnghttp2+y} 23317 then : 23318 withval=$with_libnghttp2; 23319 else $as_nop 23320 withval="no" 23321 fi 23322 23323 found_libnghttp2="no" 23324 if test x_$withval = x_yes -o x_$withval != x_no; then 23325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 23326 printf %s "checking for libnghttp2... " >&6; } 23327 if test x_$withval = x_ -o x_$withval = x_yes; then 23328 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 23329 fi 23330 for dir in $withval ; do 23331 if test -f "$dir/include/nghttp2/nghttp2.h"; then 23332 found_libnghttp2="yes" 23333 if test "$dir" != "/usr"; then 23334 CPPFLAGS="$CPPFLAGS -I$dir/include" 23335 LDFLAGS="$LDFLAGS -L$dir/lib" 23336 fi 23337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 23338 printf "%s\n" "found in $dir" >&6; } 23339 23340 printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h 23341 23342 LIBS="$LIBS -lnghttp2" 23343 break; 23344 fi 23345 done 23346 if test x_$found_libnghttp2 != x_yes; then 23347 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 23348 fi 23349 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 23350 " 23351 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes 23352 then : 23353 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h 23354 23355 fi 23356 23357 ac_fn_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 23358 #include <nghttp2/nghttp2.h> 23359 23360 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23361 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes 23362 then : 23363 ac_have_decl=1 23364 else $as_nop 23365 ac_have_decl=0 23366 fi 23367 printf "%s\n" "#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl" >>confdefs.h 23368 23369 fi 23370 23371 # ngtcp2 23372 23373 # Check whether --with-libngtcp2 was given. 23374 if test ${with_libngtcp2+y} 23375 then : 23376 withval=$with_libngtcp2; 23377 else $as_nop 23378 withval="no" 23379 fi 23380 23381 found_libngtcp2="no" 23382 if test x_$withval = x_yes -o x_$withval != x_no; then 23383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2" >&5 23384 printf %s "checking for libngtcp2... " >&6; } 23385 if test x_$withval = x_ -o x_$withval = x_yes; then 23386 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 23387 fi 23388 for dir in $withval ; do 23389 if test -f "$dir/include/ngtcp2/ngtcp2.h"; then 23390 found_libngtcp2="yes" 23391 if test "$dir" != "/usr"; then 23392 CPPFLAGS="$CPPFLAGS -I$dir/include" 23393 LDFLAGS="$LDFLAGS -L$dir/lib" 23394 fi 23395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 23396 printf "%s\n" "found in $dir" >&6; } 23397 23398 printf "%s\n" "#define HAVE_NGTCP2 1" >>confdefs.h 23399 23400 LIBS="$LIBS -lngtcp2" 23401 break; 23402 fi 23403 done 23404 if test x_$found_libngtcp2 != x_yes; then 23405 as_fn_error $? "Could not find libngtcp2, ngtcp2.h" "$LINENO" 5 23406 fi 23407 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default 23408 " 23409 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes 23410 then : 23411 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h 23412 23413 fi 23414 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto_ossl.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_ossl_h" "$ac_includes_default 23415 " 23416 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_ossl_h" = xyes 23417 then : 23418 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_OSSL_H 1" >>confdefs.h 23419 23420 fi 23421 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto_openssl.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_openssl_h" "$ac_includes_default 23422 " 23423 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_openssl_h" = xyes 23424 then : 23425 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_OPENSSL_H 1" >>confdefs.h 23426 23427 fi 23428 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto_quictls.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_quictls_h" "$ac_includes_default 23429 " 23430 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_quictls_h" = xyes 23431 then : 23432 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_QUICTLS_H 1" >>confdefs.h 23433 23434 fi 23435 23436 ac_fn_check_decl "$LINENO" "ngtcp2_conn_server_new" "ac_cv_have_decl_ngtcp2_conn_server_new" "$ac_includes_default 23437 #include <ngtcp2/ngtcp2.h> 23438 23439 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23440 if test "x$ac_cv_have_decl_ngtcp2_conn_server_new" = xyes 23441 then : 23442 ac_have_decl=1 23443 else $as_nop 23444 ac_have_decl=0 23445 fi 23446 printf "%s\n" "#define HAVE_DECL_NGTCP2_CONN_SERVER_NEW $ac_have_decl" >>confdefs.h 23447 23448 ac_fn_check_decl "$LINENO" "ngtcp2_crypto_encrypt_cb" "ac_cv_have_decl_ngtcp2_crypto_encrypt_cb" "$ac_includes_default 23449 #include <ngtcp2/ngtcp2_crypto.h> 23450 23451 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23452 if test "x$ac_cv_have_decl_ngtcp2_crypto_encrypt_cb" = xyes 23453 then : 23454 ac_have_decl=1 23455 else $as_nop 23456 ac_have_decl=0 23457 fi 23458 printf "%s\n" "#define HAVE_DECL_NGTCP2_CRYPTO_ENCRYPT_CB $ac_have_decl" >>confdefs.h 23459 23460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_ossl" >&5 23461 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_ossl... " >&6; } 23462 if test ${ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb+y} 23463 then : 23464 printf %s "(cached) " >&6 23465 else $as_nop 23466 ac_check_lib_save_LIBS=$LIBS 23467 LIBS="-lngtcp2_crypto_ossl $LIBS" 23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23469 /* end confdefs.h. */ 23470 23471 /* Override any GCC internal prototype to avoid an error. 23472 Use char because int might match the return type of a GCC 23473 builtin and then its argument prototype would still apply. */ 23474 char ngtcp2_crypto_encrypt_cb (); 23475 int 23476 main (void) 23477 { 23478 return ngtcp2_crypto_encrypt_cb (); 23479 ; 23480 return 0; 23481 } 23482 _ACEOF 23483 if ac_fn_c_try_link "$LINENO" 23484 then : 23485 ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb=yes 23486 else $as_nop 23487 ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb=no 23488 fi 23489 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23490 conftest$ac_exeext conftest.$ac_ext 23491 LIBS=$ac_check_lib_save_LIBS 23492 fi 23493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb" >&5 23494 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb" >&6; } 23495 if test "x$ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb" = xyes 23496 then : 23497 23498 LIBS="$LIBS -lngtcp2_crypto_ossl" 23499 23500 printf "%s\n" "#define USE_NGTCP2_CRYPTO_OSSL 1" >>confdefs.h 23501 23502 ac_fn_check_decl "$LINENO" "ngtcp2_crypto_ossl_ctx_new" "ac_cv_have_decl_ngtcp2_crypto_ossl_ctx_new" "$ac_includes_default 23503 #include <ngtcp2/ngtcp2_crypto_ossl.h> 23504 23505 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23506 if test "x$ac_cv_have_decl_ngtcp2_crypto_ossl_ctx_new" = xyes 23507 then : 23508 ac_have_decl=1 23509 else $as_nop 23510 ac_have_decl=0 23511 fi 23512 printf "%s\n" "#define HAVE_DECL_NGTCP2_CRYPTO_OSSL_CTX_NEW $ac_have_decl" >>confdefs.h 23513 if test $ac_have_decl = 1 23514 then : 23515 23516 else $as_nop 23517 as_fn_error $? "No declaration of ngtcp2_crypto_ossl_ctx_new in the ngtcp2_crypto_ossl header file. Perhaps the ngtcp2_crypto_ossl devel header files need to be installed." "$LINENO" 5 23518 fi 23519 23520 23521 else $as_nop 23522 23523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_openssl" >&5 23524 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_openssl... " >&6; } 23525 if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb+y} 23526 then : 23527 printf %s "(cached) " >&6 23528 else $as_nop 23529 ac_check_lib_save_LIBS=$LIBS 23530 LIBS="-lngtcp2_crypto_openssl $LIBS" 23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23532 /* end confdefs.h. */ 23533 23534 /* Override any GCC internal prototype to avoid an error. 23535 Use char because int might match the return type of a GCC 23536 builtin and then its argument prototype would still apply. */ 23537 char ngtcp2_crypto_encrypt_cb (); 23538 int 23539 main (void) 23540 { 23541 return ngtcp2_crypto_encrypt_cb (); 23542 ; 23543 return 0; 23544 } 23545 _ACEOF 23546 if ac_fn_c_try_link "$LINENO" 23547 then : 23548 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb=yes 23549 else $as_nop 23550 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb=no 23551 fi 23552 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23553 conftest$ac_exeext conftest.$ac_ext 23554 LIBS=$ac_check_lib_save_LIBS 23555 fi 23556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" >&5 23557 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" >&6; } 23558 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" = xyes 23559 then : 23560 LIBS="$LIBS -lngtcp2_crypto_openssl" 23561 else $as_nop 23562 23563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_quictls" >&5 23564 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_quictls... " >&6; } 23565 if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb+y} 23566 then : 23567 printf %s "(cached) " >&6 23568 else $as_nop 23569 ac_check_lib_save_LIBS=$LIBS 23570 LIBS="-lngtcp2_crypto_quictls $LIBS" 23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23572 /* end confdefs.h. */ 23573 23574 /* Override any GCC internal prototype to avoid an error. 23575 Use char because int might match the return type of a GCC 23576 builtin and then its argument prototype would still apply. */ 23577 char ngtcp2_crypto_encrypt_cb (); 23578 int 23579 main (void) 23580 { 23581 return ngtcp2_crypto_encrypt_cb (); 23582 ; 23583 return 0; 23584 } 23585 _ACEOF 23586 if ac_fn_c_try_link "$LINENO" 23587 then : 23588 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb=yes 23589 else $as_nop 23590 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb=no 23591 fi 23592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23593 conftest$ac_exeext conftest.$ac_ext 23594 LIBS=$ac_check_lib_save_LIBS 23595 fi 23596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" >&5 23597 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" >&6; } 23598 if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" = xyes 23599 then : 23600 LIBS="$LIBS -lngtcp2_crypto_quictls" 23601 fi 23602 23603 23604 fi 23605 23606 23607 fi 23608 23609 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_encrypt_cb" "ac_cv_func_ngtcp2_crypto_encrypt_cb" 23610 if test "x$ac_cv_func_ngtcp2_crypto_encrypt_cb" = xyes 23611 then : 23612 printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_ENCRYPT_CB 1" >>confdefs.h 23613 23614 fi 23615 ac_fn_c_check_func "$LINENO" "ngtcp2_ccerr_default" "ac_cv_func_ngtcp2_ccerr_default" 23616 if test "x$ac_cv_func_ngtcp2_ccerr_default" = xyes 23617 then : 23618 printf "%s\n" "#define HAVE_NGTCP2_CCERR_DEFAULT 1" >>confdefs.h 23619 23620 fi 23621 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_in_closing_period" "ac_cv_func_ngtcp2_conn_in_closing_period" 23622 if test "x$ac_cv_func_ngtcp2_conn_in_closing_period" = xyes 23623 then : 23624 printf "%s\n" "#define HAVE_NGTCP2_CONN_IN_CLOSING_PERIOD 1" >>confdefs.h 23625 23626 fi 23627 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_in_draining_period" "ac_cv_func_ngtcp2_conn_in_draining_period" 23628 if test "x$ac_cv_func_ngtcp2_conn_in_draining_period" = xyes 23629 then : 23630 printf "%s\n" "#define HAVE_NGTCP2_CONN_IN_DRAINING_PERIOD 1" >>confdefs.h 23631 23632 fi 23633 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_get_max_local_streams_uni" "ac_cv_func_ngtcp2_conn_get_max_local_streams_uni" 23634 if test "x$ac_cv_func_ngtcp2_conn_get_max_local_streams_uni" = xyes 23635 then : 23636 printf "%s\n" "#define HAVE_NGTCP2_CONN_GET_MAX_LOCAL_STREAMS_UNI 1" >>confdefs.h 23637 23638 fi 23639 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_from_ossl_encryption_level" "ac_cv_func_ngtcp2_crypto_quictls_from_ossl_encryption_level" 23640 if test "x$ac_cv_func_ngtcp2_crypto_quictls_from_ossl_encryption_level" = xyes 23641 then : 23642 printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_FROM_OSSL_ENCRYPTION_LEVEL 1" >>confdefs.h 23643 23644 fi 23645 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_configure_server_context" "ac_cv_func_ngtcp2_crypto_quictls_configure_server_context" 23646 if test "x$ac_cv_func_ngtcp2_crypto_quictls_configure_server_context" = xyes 23647 then : 23648 printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_CONFIGURE_SERVER_CONTEXT 1" >>confdefs.h 23649 23650 fi 23651 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_configure_client_context" "ac_cv_func_ngtcp2_crypto_quictls_configure_client_context" 23652 if test "x$ac_cv_func_ngtcp2_crypto_quictls_configure_client_context" = xyes 23653 then : 23654 printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_CONFIGURE_CLIENT_CONTEXT 1" >>confdefs.h 23655 23656 fi 23657 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_init" "ac_cv_func_ngtcp2_crypto_quictls_init" 23658 if test "x$ac_cv_func_ngtcp2_crypto_quictls_init" = xyes 23659 then : 23660 printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_INIT 1" >>confdefs.h 23661 23662 fi 23663 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_get_num_scid" "ac_cv_func_ngtcp2_conn_get_num_scid" 23664 if test "x$ac_cv_func_ngtcp2_conn_get_num_scid" = xyes 23665 then : 23666 printf "%s\n" "#define HAVE_NGTCP2_CONN_GET_NUM_SCID 1" >>confdefs.h 23667 23668 fi 23669 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_tls_early_data_rejected" "ac_cv_func_ngtcp2_conn_tls_early_data_rejected" 23670 if test "x$ac_cv_func_ngtcp2_conn_tls_early_data_rejected" = xyes 23671 then : 23672 printf "%s\n" "#define HAVE_NGTCP2_CONN_TLS_EARLY_DATA_REJECTED 1" >>confdefs.h 23673 23674 fi 23675 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_encode_0rtt_transport_params" "ac_cv_func_ngtcp2_conn_encode_0rtt_transport_params" 23676 if test "x$ac_cv_func_ngtcp2_conn_encode_0rtt_transport_params" = xyes 23677 then : 23678 printf "%s\n" "#define HAVE_NGTCP2_CONN_ENCODE_0RTT_TRANSPORT_PARAMS 1" >>confdefs.h 23679 23680 fi 23681 23682 23683 # these check_funcs need -lssl 23684 BAKLIBS="$LIBS" 23685 LIBS="-lssl $LIBS" 23686 23687 for ac_func in SSL_is_quic 23688 do : 23689 ac_fn_c_check_func "$LINENO" "SSL_is_quic" "ac_cv_func_SSL_is_quic" 23690 if test "x$ac_cv_func_SSL_is_quic" = xyes 23691 then : 23692 printf "%s\n" "#define HAVE_SSL_IS_QUIC 1" >>confdefs.h 23693 23694 else $as_nop 23695 as_fn_error $? "No QUIC support detected in OpenSSL. Need OpenSSL version with QUIC support to enable DNS over QUIC with libngtcp2." "$LINENO" 5 23696 fi 23697 23698 done 23699 ac_fn_c_check_func "$LINENO" "SSL_set_quic_tls_early_data_enabled" "ac_cv_func_SSL_set_quic_tls_early_data_enabled" 23700 if test "x$ac_cv_func_SSL_set_quic_tls_early_data_enabled" = xyes 23701 then : 23702 printf "%s\n" "#define HAVE_SSL_SET_QUIC_TLS_EARLY_DATA_ENABLED 1" >>confdefs.h 23703 23704 fi 23705 23706 LIBS="$BAKLIBS" 23707 23708 ac_fn_c_check_type "$LINENO" "struct ngtcp2_version_cid" "ac_cv_type_struct_ngtcp2_version_cid" "$ac_includes_default 23709 #include <ngtcp2/ngtcp2.h> 23710 23711 " 23712 if test "x$ac_cv_type_struct_ngtcp2_version_cid" = xyes 23713 then : 23714 23715 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_VERSION_CID 1" >>confdefs.h 23716 23717 23718 fi 23719 ac_fn_c_check_type "$LINENO" "ngtcp2_encryption_level" "ac_cv_type_ngtcp2_encryption_level" "$ac_includes_default 23720 #include <ngtcp2/ngtcp2.h> 23721 23722 " 23723 if test "x$ac_cv_type_ngtcp2_encryption_level" = xyes 23724 then : 23725 23726 printf "%s\n" "#define HAVE_NGTCP2_ENCRYPTION_LEVEL 1" >>confdefs.h 23727 23728 23729 fi 23730 23731 ac_fn_c_check_member "$LINENO" "struct ngtcp2_pkt_hd" "tokenlen" "ac_cv_member_struct_ngtcp2_pkt_hd_tokenlen" "$ac_includes_default 23732 #include <ngtcp2/ngtcp2.h> 23733 23734 " 23735 if test "x$ac_cv_member_struct_ngtcp2_pkt_hd_tokenlen" = xyes 23736 then : 23737 23738 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_PKT_HD_TOKENLEN 1" >>confdefs.h 23739 23740 23741 fi 23742 ac_fn_c_check_member "$LINENO" "struct ngtcp2_settings" "tokenlen" "ac_cv_member_struct_ngtcp2_settings_tokenlen" "$ac_includes_default 23743 #include <ngtcp2/ngtcp2.h> 23744 23745 " 23746 if test "x$ac_cv_member_struct_ngtcp2_settings_tokenlen" = xyes 23747 then : 23748 23749 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_SETTINGS_TOKENLEN 1" >>confdefs.h 23750 23751 23752 fi 23753 ac_fn_c_check_member "$LINENO" "struct ngtcp2_settings" "max_tx_udp_payload_size" "ac_cv_member_struct_ngtcp2_settings_max_tx_udp_payload_size" "$ac_includes_default 23754 #include <ngtcp2/ngtcp2.h> 23755 23756 " 23757 if test "x$ac_cv_member_struct_ngtcp2_settings_max_tx_udp_payload_size" = xyes 23758 then : 23759 23760 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_SETTINGS_MAX_TX_UDP_PAYLOAD_SIZE 1" >>confdefs.h 23761 23762 23763 fi 23764 ac_fn_c_check_member "$LINENO" "struct ngtcp2_transport_params" "original_dcid_present" "ac_cv_member_struct_ngtcp2_transport_params_original_dcid_present" "$ac_includes_default 23765 #include <ngtcp2/ngtcp2.h> 23766 23767 " 23768 if test "x$ac_cv_member_struct_ngtcp2_transport_params_original_dcid_present" = xyes 23769 then : 23770 23771 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_TRANSPORT_PARAMS_ORIGINAL_DCID_PRESENT 1" >>confdefs.h 23772 23773 23774 fi 23775 23776 23777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ngtcp2_conn_shutdown_stream has 4 arguments" >&5 23778 printf %s "checking whether ngtcp2_conn_shutdown_stream has 4 arguments... " >&6; } 23779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23780 /* end confdefs.h. */ 23781 $ac_includes_default 23782 #include <ngtcp2/ngtcp2.h> 23783 23784 int 23785 main (void) 23786 { 23787 23788 (void)ngtcp2_conn_shutdown_stream(NULL, 0, 0, 0); 23789 23790 ; 23791 return 0; 23792 } 23793 _ACEOF 23794 if ac_fn_c_try_compile "$LINENO" 23795 then : 23796 23797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23798 printf "%s\n" "yes" >&6; } 23799 23800 printf "%s\n" "#define HAVE_NGTCP2_CONN_SHUTDOWN_STREAM4 1" >>confdefs.h 23801 23802 23803 else $as_nop 23804 23805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23806 printf "%s\n" "no" >&6; } 23807 23808 fi 23809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23810 23811 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC 23812 " "ac_cv_have_decl_CLOCK_MONOTONIC_________" "$ac_includes_default 23813 #ifdef TIME_WITH_SYS_TIME 23814 # include <sys/time.h> 23815 # include <time.h> 23816 #else 23817 # ifdef HAVE_SYS_TIME_H 23818 # include <sys/time.h> 23819 # else 23820 # include <time.h> 23821 # endif 23822 #endif 23823 23824 " "$ac_c_undeclared_builtin_options" "CFLAGS" 23825 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC_________" = xyes 23826 then : 23827 23828 23829 else $as_nop 23830 as_fn_error $? "ngtcp2 for QUIC needs at least CLOCK_MONOTONIC on the system" "$LINENO" 5 23831 23832 fi 23833 23834 fi 23835 23836 # set static linking for uninstalled libraries if requested 23837 23838 staticexe="" 23839 # Check whether --enable-static-exe was given. 23840 if test ${enable_static_exe+y} 23841 then : 23842 enableval=$enable_static_exe; 23843 fi 23844 23845 if test x_$enable_static_exe = x_yes; then 23846 staticexe="-static" 23847 if test "$on_mingw" = yes; then 23848 staticexe="-all-static" 23849 # for static compile, include gdi32 and zlib here. 23850 if echo "$LIBS" | grep 'lgdi32' >/dev/null; then 23851 : 23852 else 23853 LIBS="$LIBS -lgdi32" 23854 fi 23855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 23856 printf %s "checking for compress in -lz... " >&6; } 23857 if test ${ac_cv_lib_z_compress+y} 23858 then : 23859 printf %s "(cached) " >&6 23860 else $as_nop 23861 ac_check_lib_save_LIBS=$LIBS 23862 LIBS="-lz $LIBS" 23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23864 /* end confdefs.h. */ 23865 23866 /* Override any GCC internal prototype to avoid an error. 23867 Use char because int might match the return type of a GCC 23868 builtin and then its argument prototype would still apply. */ 23869 char compress (); 23870 int 23871 main (void) 23872 { 23873 return compress (); 23874 ; 23875 return 0; 23876 } 23877 _ACEOF 23878 if ac_fn_c_try_link "$LINENO" 23879 then : 23880 ac_cv_lib_z_compress=yes 23881 else $as_nop 23882 ac_cv_lib_z_compress=no 23883 fi 23884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23885 conftest$ac_exeext conftest.$ac_ext 23886 LIBS=$ac_check_lib_save_LIBS 23887 fi 23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 23889 printf "%s\n" "$ac_cv_lib_z_compress" >&6; } 23890 if test "x$ac_cv_lib_z_compress" = xyes 23891 then : 23892 LIBS="$LIBS -lz" 23893 fi 23894 23895 if echo "$host" | $GREP -i -e linux >/dev/null; then 23896 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then 23897 : 23898 else 23899 LIBS="$LIBS -l:libssp.a" 23900 fi 23901 fi 23902 fi 23903 fi 23904 23905 # set full static linking if requested 23906 # Check whether --enable-fully-static was given. 23907 if test ${enable_fully_static+y} 23908 then : 23909 enableval=$enable_fully_static; 23910 fi 23911 23912 if test x_$enable_fully_static = x_yes; then 23913 staticexe="-all-static" 23914 if test "$on_mingw" = yes; then 23915 # for static compile, include gdi32 and zlib here. 23916 if echo $LIBS | grep 'lgdi32' >/dev/null; then 23917 : 23918 else 23919 LIBS="$LIBS -lgdi32" 23920 fi 23921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 23922 printf %s "checking for compress in -lz... " >&6; } 23923 if test ${ac_cv_lib_z_compress+y} 23924 then : 23925 printf %s "(cached) " >&6 23926 else $as_nop 23927 ac_check_lib_save_LIBS=$LIBS 23928 LIBS="-lz $LIBS" 23929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23930 /* end confdefs.h. */ 23931 23932 /* Override any GCC internal prototype to avoid an error. 23933 Use char because int might match the return type of a GCC 23934 builtin and then its argument prototype would still apply. */ 23935 char compress (); 23936 int 23937 main (void) 23938 { 23939 return compress (); 23940 ; 23941 return 0; 23942 } 23943 _ACEOF 23944 if ac_fn_c_try_link "$LINENO" 23945 then : 23946 ac_cv_lib_z_compress=yes 23947 else $as_nop 23948 ac_cv_lib_z_compress=no 23949 fi 23950 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23951 conftest$ac_exeext conftest.$ac_ext 23952 LIBS=$ac_check_lib_save_LIBS 23953 fi 23954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 23955 printf "%s\n" "$ac_cv_lib_z_compress" >&6; } 23956 if test "x$ac_cv_lib_z_compress" = xyes 23957 then : 23958 LIBS="$LIBS -lz" 23959 fi 23960 23961 if echo "$host" | $GREP -i -e linux >/dev/null; then 23962 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then 23963 : 23964 else 23965 LIBS="$LIBS -l:libssp.a" 23966 fi 23967 fi 23968 fi 23969 fi 23970 23971 # set lock checking if requested 23972 # Check whether --enable-lock_checks was given. 23973 if test ${enable_lock_checks+y} 23974 then : 23975 enableval=$enable_lock_checks; 23976 fi 23977 23978 if test x_$enable_lock_checks = x_yes; then 23979 23980 printf "%s\n" "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 23981 23982 CHECKLOCK_OBJ="checklocks.lo" 23983 23984 fi 23985 23986 23987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 23988 printf %s "checking for getaddrinfo... " >&6; } 23989 ac_cv_func_getaddrinfo=no 23990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23991 /* end confdefs.h. */ 23992 23993 #ifdef __cplusplus 23994 extern "C" 23995 { 23996 #endif 23997 char* getaddrinfo(); 23998 char* (*f) () = getaddrinfo; 23999 #ifdef __cplusplus 24000 } 24001 #endif 24002 int main(void) { 24003 ; 24004 return 0; 24005 } 24006 24007 _ACEOF 24008 if ac_fn_c_try_link "$LINENO" 24009 then : 24010 ac_cv_func_getaddrinfo="yes" 24011 if test "$ac_cv_header_windows_h" = "yes"; then 24012 24013 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 24014 24015 USE_WINSOCK="1" 24016 if echo "$LIBS" | grep 'lws2_32' >/dev/null; then 24017 : 24018 else 24019 LIBS="$LIBS -lws2_32" 24020 fi 24021 fi 24022 24023 else $as_nop 24024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24025 /* end confdefs.h. */ 24026 24027 #ifdef HAVE_WS2TCPIP_H 24028 #include <ws2tcpip.h> 24029 #endif 24030 24031 int 24032 main (void) 24033 { 24034 24035 (void)getaddrinfo(NULL, NULL, NULL, NULL); 24036 24037 24038 ; 24039 return 0; 24040 } 24041 _ACEOF 24042 if ac_fn_c_try_link "$LINENO" 24043 then : 24044 24045 ac_cv_func_getaddrinfo="yes" 24046 24047 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 24048 24049 USE_WINSOCK="1" 24050 24051 else $as_nop 24052 ORIGLIBS="$LIBS" 24053 LIBS="$LIBS -lws2_32" 24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24055 /* end confdefs.h. */ 24056 24057 #ifdef HAVE_WS2TCPIP_H 24058 #include <ws2tcpip.h> 24059 #endif 24060 24061 int 24062 main (void) 24063 { 24064 24065 (void)getaddrinfo(NULL, NULL, NULL, NULL); 24066 24067 24068 ; 24069 return 0; 24070 } 24071 _ACEOF 24072 if ac_fn_c_try_link "$LINENO" 24073 then : 24074 24075 ac_cv_func_getaddrinfo="yes" 24076 24077 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 24078 24079 USE_WINSOCK="1" 24080 24081 else $as_nop 24082 24083 ac_cv_func_getaddrinfo="no" 24084 LIBS="$ORIGLIBS" 24085 24086 fi 24087 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24088 conftest$ac_exeext conftest.$ac_ext 24089 24090 fi 24091 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24092 conftest$ac_exeext conftest.$ac_ext 24093 24094 fi 24095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24096 conftest$ac_exeext conftest.$ac_ext 24097 24098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 24099 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 24100 if test $ac_cv_func_getaddrinfo = yes; then 24101 24102 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 24103 24104 fi 24105 24106 if test "$USE_WINSOCK" = 1; then 24107 24108 printf "%s\n" "#define UB_ON_WINDOWS 1" >>confdefs.h 24109 24110 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 24111 #include <windows.h> 24112 24113 " 24114 if test "x$ac_cv_header_iphlpapi_h" = xyes 24115 then : 24116 printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h 24117 24118 fi 24119 24120 if test -n "$ac_tool_prefix"; then 24121 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 24122 set dummy ${ac_tool_prefix}windres; ac_word=$2 24123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24124 printf %s "checking for $ac_word... " >&6; } 24125 if test ${ac_cv_prog_WINDRES+y} 24126 then : 24127 printf %s "(cached) " >&6 24128 else $as_nop 24129 if test -n "$WINDRES"; then 24130 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 24131 else 24132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24133 for as_dir in $PATH 24134 do 24135 IFS=$as_save_IFS 24136 case $as_dir in #((( 24137 '') as_dir=./ ;; 24138 */) ;; 24139 *) as_dir=$as_dir/ ;; 24140 esac 24141 for ac_exec_ext in '' $ac_executable_extensions; do 24142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24143 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 24144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24145 break 2 24146 fi 24147 done 24148 done 24149 IFS=$as_save_IFS 24150 24151 fi 24152 fi 24153 WINDRES=$ac_cv_prog_WINDRES 24154 if test -n "$WINDRES"; then 24155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 24156 printf "%s\n" "$WINDRES" >&6; } 24157 else 24158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24159 printf "%s\n" "no" >&6; } 24160 fi 24161 24162 24163 fi 24164 if test -z "$ac_cv_prog_WINDRES"; then 24165 ac_ct_WINDRES=$WINDRES 24166 # Extract the first word of "windres", so it can be a program name with args. 24167 set dummy windres; ac_word=$2 24168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24169 printf %s "checking for $ac_word... " >&6; } 24170 if test ${ac_cv_prog_ac_ct_WINDRES+y} 24171 then : 24172 printf %s "(cached) " >&6 24173 else $as_nop 24174 if test -n "$ac_ct_WINDRES"; then 24175 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 24176 else 24177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24178 for as_dir in $PATH 24179 do 24180 IFS=$as_save_IFS 24181 case $as_dir in #((( 24182 '') as_dir=./ ;; 24183 */) ;; 24184 *) as_dir=$as_dir/ ;; 24185 esac 24186 for ac_exec_ext in '' $ac_executable_extensions; do 24187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24188 ac_cv_prog_ac_ct_WINDRES="windres" 24189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24190 break 2 24191 fi 24192 done 24193 done 24194 IFS=$as_save_IFS 24195 24196 fi 24197 fi 24198 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 24199 if test -n "$ac_ct_WINDRES"; then 24200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 24201 printf "%s\n" "$ac_ct_WINDRES" >&6; } 24202 else 24203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24204 printf "%s\n" "no" >&6; } 24205 fi 24206 24207 if test "x$ac_ct_WINDRES" = x; then 24208 WINDRES="" 24209 else 24210 case $cross_compiling:$ac_tool_warned in 24211 yes:) 24212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24214 ac_tool_warned=yes ;; 24215 esac 24216 WINDRES=$ac_ct_WINDRES 24217 fi 24218 else 24219 WINDRES="$ac_cv_prog_WINDRES" 24220 fi 24221 24222 if echo "$LIBS" | grep crypt32 >/dev/null; then 24223 LIBS="$LIBS -liphlpapi" 24224 else 24225 LIBS="$LIBS -liphlpapi -lcrypt32" 24226 fi 24227 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 24228 24229 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 24230 24231 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 24232 24233 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 24234 24235 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 24236 24237 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 24238 24239 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 24240 24241 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 24242 24243 24244 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 24245 24246 fi 24247 if test $ac_cv_func_getaddrinfo = no; then 24248 case " $LIBOBJS " in 24249 *" fake-rfc2553.$ac_objext "* ) ;; 24250 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 24251 ;; 24252 esac 24253 24254 fi 24255 # check after getaddrinfo for its libraries 24256 24257 # check ioctlsocket 24258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 24259 printf %s "checking for ioctlsocket... " >&6; } 24260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24261 /* end confdefs.h. */ 24262 24263 #ifdef HAVE_WINSOCK2_H 24264 #include <winsock2.h> 24265 #endif 24266 24267 int 24268 main (void) 24269 { 24270 24271 (void)ioctlsocket(0, 0, NULL); 24272 24273 ; 24274 return 0; 24275 } 24276 _ACEOF 24277 if ac_fn_c_try_link "$LINENO" 24278 then : 24279 24280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24281 printf "%s\n" "yes" >&6; } 24282 24283 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 24284 24285 24286 else $as_nop 24287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24288 printf "%s\n" "no" >&6; } 24289 fi 24290 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24291 conftest$ac_exeext conftest.$ac_ext 24292 24293 24294 # see if daemon(3) exists, and if it is deprecated. 24295 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 24296 if test "x$ac_cv_func_daemon" = xyes 24297 then : 24298 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 24299 24300 fi 24301 24302 if test $ac_cv_func_daemon = yes; then 24303 24304 24305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 24306 printf %s "checking if daemon is deprecated... " >&6; } 24307 cache=`echo daemon | sed 'y%.=/+-%___p_%'` 24308 if eval test \${cv_cc_deprecated_$cache+y} 24309 then : 24310 printf %s "(cached) " >&6 24311 else $as_nop 24312 24313 echo ' 24314 #include <stdlib.h> 24315 #include <unistd.h> 24316 ' >conftest.c 24317 echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c 24318 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 24319 eval "cv_cc_deprecated_$cache=no" 24320 else 24321 eval "cv_cc_deprecated_$cache=yes" 24322 fi 24323 rm -f conftest conftest.o conftest.c 24324 24325 fi 24326 24327 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 24328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24329 printf "%s\n" "yes" >&6; } 24330 24331 printf "%s\n" "#define DEPRECATED_DAEMON 1" >>confdefs.h 24332 24333 : 24334 24335 else 24336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24337 printf "%s\n" "no" >&6; } 24338 : 24339 24340 fi 24341 24342 fi 24343 24344 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" 24345 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes 24346 then : 24347 24348 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h 24349 24350 24351 fi 24352 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" 24353 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes 24354 then : 24355 24356 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h 24357 24358 24359 fi 24360 24361 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 24362 $ac_includes_default 24363 #ifdef HAVE_SYS_UN_H 24364 #include <sys/un.h> 24365 #endif 24366 24367 " 24368 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 24369 then : 24370 24371 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h 24372 24373 24374 fi 24375 24376 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 24377 $ac_includes_default 24378 #if HAVE_SYS_PARAM_H 24379 #include <sys/param.h> 24380 #endif 24381 24382 #ifdef HAVE_SYS_SOCKET_H 24383 #include <sys/socket.h> 24384 #endif 24385 24386 #ifdef HAVE_SYS_UIO_H 24387 #include <sys/uio.h> 24388 #endif 24389 24390 #ifdef HAVE_NETINET_IN_H 24391 #include <netinet/in.h> 24392 #endif 24393 24394 #ifdef HAVE_NETINET_TCP_H 24395 #include <netinet/tcp.h> 24396 #endif 24397 24398 #ifdef HAVE_ARPA_INET_H 24399 #include <arpa/inet.h> 24400 #endif 24401 24402 #ifdef HAVE_WINSOCK2_H 24403 #include <winsock2.h> 24404 #endif 24405 24406 #ifdef HAVE_WS2TCPIP_H 24407 #include <ws2tcpip.h> 24408 #endif 24409 24410 " 24411 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes 24412 then : 24413 24414 printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h 24415 24416 24417 fi 24418 24419 24420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 24421 printf %s "checking for htobe64... " >&6; } 24422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24423 /* end confdefs.h. */ 24424 24425 #include <stdio.h> 24426 #ifdef HAVE_ENDIAN_H 24427 # include <endian.h> 24428 #endif 24429 #ifdef HAVE_SYS_ENDIAN_H 24430 # include <sys/endian.h> 24431 #endif 24432 24433 int 24434 main (void) 24435 { 24436 unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 24437 ; 24438 return 0; 24439 } 24440 _ACEOF 24441 if ac_fn_c_try_link "$LINENO" 24442 then : 24443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24444 printf "%s\n" "yes" >&6; } 24445 24446 printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h 24447 24448 else $as_nop 24449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24450 printf "%s\n" "no" >&6; } 24451 fi 24452 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24453 conftest$ac_exeext conftest.$ac_ext 24454 24455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 24456 printf %s "checking for be64toh... " >&6; } 24457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24458 /* end confdefs.h. */ 24459 24460 #include <stdio.h> 24461 #ifdef HAVE_ENDIAN_H 24462 # include <endian.h> 24463 #endif 24464 #ifdef HAVE_SYS_ENDIAN_H 24465 # include <sys/endian.h> 24466 #endif 24467 24468 int 24469 main (void) 24470 { 24471 unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 24472 ; 24473 return 0; 24474 } 24475 _ACEOF 24476 if ac_fn_c_try_link "$LINENO" 24477 then : 24478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24479 printf "%s\n" "yes" >&6; } 24480 24481 printf "%s\n" "#define HAVE_BE64TOH 1" >>confdefs.h 24482 24483 else $as_nop 24484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24485 printf "%s\n" "no" >&6; } 24486 fi 24487 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24488 conftest$ac_exeext conftest.$ac_ext 24489 24490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 24491 printf %s "checking for library containing setusercontext... " >&6; } 24492 if test ${ac_cv_search_setusercontext+y} 24493 then : 24494 printf %s "(cached) " >&6 24495 else $as_nop 24496 ac_func_search_save_LIBS=$LIBS 24497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24498 /* end confdefs.h. */ 24499 24500 /* Override any GCC internal prototype to avoid an error. 24501 Use char because int might match the return type of a GCC 24502 builtin and then its argument prototype would still apply. */ 24503 char setusercontext (); 24504 int 24505 main (void) 24506 { 24507 return setusercontext (); 24508 ; 24509 return 0; 24510 } 24511 _ACEOF 24512 for ac_lib in '' util 24513 do 24514 if test -z "$ac_lib"; then 24515 ac_res="none required" 24516 else 24517 ac_res=-l$ac_lib 24518 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24519 fi 24520 if ac_fn_c_try_link "$LINENO" 24521 then : 24522 ac_cv_search_setusercontext=$ac_res 24523 fi 24524 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24525 conftest$ac_exeext 24526 if test ${ac_cv_search_setusercontext+y} 24527 then : 24528 break 24529 fi 24530 done 24531 if test ${ac_cv_search_setusercontext+y} 24532 then : 24533 24534 else $as_nop 24535 ac_cv_search_setusercontext=no 24536 fi 24537 rm conftest.$ac_ext 24538 LIBS=$ac_func_search_save_LIBS 24539 fi 24540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 24541 printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 24542 ac_res=$ac_cv_search_setusercontext 24543 if test "$ac_res" != no 24544 then : 24545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24546 24547 fi 24548 24549 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 24550 if test "x$ac_cv_func_tzset" = xyes 24551 then : 24552 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 24553 24554 fi 24555 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 24556 if test "x$ac_cv_func_sigprocmask" = xyes 24557 then : 24558 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 24559 24560 fi 24561 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 24562 if test "x$ac_cv_func_fcntl" = xyes 24563 then : 24564 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 24565 24566 fi 24567 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" 24568 if test "x$ac_cv_func_getpwnam" = xyes 24569 then : 24570 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h 24571 24572 fi 24573 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 24574 if test "x$ac_cv_func_endpwent" = xyes 24575 then : 24576 printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h 24577 24578 fi 24579 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 24580 if test "x$ac_cv_func_getrlimit" = xyes 24581 then : 24582 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 24583 24584 fi 24585 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 24586 if test "x$ac_cv_func_setrlimit" = xyes 24587 then : 24588 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 24589 24590 fi 24591 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 24592 if test "x$ac_cv_func_setsid" = xyes 24593 then : 24594 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 24595 24596 fi 24597 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 24598 if test "x$ac_cv_func_chroot" = xyes 24599 then : 24600 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 24601 24602 fi 24603 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 24604 if test "x$ac_cv_func_kill" = xyes 24605 then : 24606 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 24607 24608 fi 24609 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 24610 if test "x$ac_cv_func_chown" = xyes 24611 then : 24612 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 24613 24614 fi 24615 ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 24616 if test "x$ac_cv_func_sleep" = xyes 24617 then : 24618 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h 24619 24620 fi 24621 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 24622 if test "x$ac_cv_func_usleep" = xyes 24623 then : 24624 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 24625 24626 fi 24627 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 24628 if test "x$ac_cv_func_random" = xyes 24629 then : 24630 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 24631 24632 fi 24633 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" 24634 if test "x$ac_cv_func_srandom" = xyes 24635 then : 24636 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h 24637 24638 fi 24639 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 24640 if test "x$ac_cv_func_recvmsg" = xyes 24641 then : 24642 printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h 24643 24644 fi 24645 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 24646 if test "x$ac_cv_func_sendmsg" = xyes 24647 then : 24648 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 24649 24650 fi 24651 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 24652 if test "x$ac_cv_func_writev" = xyes 24653 then : 24654 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 24655 24656 fi 24657 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 24658 if test "x$ac_cv_func_socketpair" = xyes 24659 then : 24660 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 24661 24662 fi 24663 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" 24664 if test "x$ac_cv_func_glob" = xyes 24665 then : 24666 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 24667 24668 fi 24669 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 24670 if test "x$ac_cv_func_fnmatch" = xyes 24671 then : 24672 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h 24673 24674 fi 24675 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 24676 if test "x$ac_cv_func_initgroups" = xyes 24677 then : 24678 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 24679 24680 fi 24681 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 24682 if test "x$ac_cv_func_strftime" = xyes 24683 then : 24684 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 24685 24686 fi 24687 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 24688 if test "x$ac_cv_func_localtime_r" = xyes 24689 then : 24690 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 24691 24692 fi 24693 ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 24694 if test "x$ac_cv_func_setusercontext" = xyes 24695 then : 24696 printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 24697 24698 fi 24699 ac_fn_c_check_func "$LINENO" "_beginthreadex" "ac_cv_func__beginthreadex" 24700 if test "x$ac_cv_func__beginthreadex" = xyes 24701 then : 24702 printf "%s\n" "#define HAVE__BEGINTHREADEX 1" >>confdefs.h 24703 24704 fi 24705 ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent" 24706 if test "x$ac_cv_func_endservent" = xyes 24707 then : 24708 printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h 24709 24710 fi 24711 ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent" 24712 if test "x$ac_cv_func_endprotoent" = xyes 24713 then : 24714 printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h 24715 24716 fi 24717 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" 24718 if test "x$ac_cv_func_fsync" = xyes 24719 then : 24720 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h 24721 24722 fi 24723 ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" 24724 if test "x$ac_cv_func_shmget" = xyes 24725 then : 24726 printf "%s\n" "#define HAVE_SHMGET 1" >>confdefs.h 24727 24728 fi 24729 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 24730 if test "x$ac_cv_func_accept4" = xyes 24731 then : 24732 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 24733 24734 fi 24735 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 24736 if test "x$ac_cv_func_getifaddrs" = xyes 24737 then : 24738 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 24739 24740 fi 24741 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 24742 if test "x$ac_cv_func_if_nametoindex" = xyes 24743 then : 24744 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 24745 24746 fi 24747 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 24748 if test "x$ac_cv_func_poll" = xyes 24749 then : 24750 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 24751 24752 fi 24753 ac_fn_c_check_func "$LINENO" "gettid" "ac_cv_func_gettid" 24754 if test "x$ac_cv_func_gettid" = xyes 24755 then : 24756 printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h 24757 24758 fi 24759 24760 24761 for ac_func in setresuid 24762 do : 24763 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 24764 if test "x$ac_cv_func_setresuid" = xyes 24765 then : 24766 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 24767 24768 else $as_nop 24769 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 24770 if test "x$ac_cv_func_setreuid" = xyes 24771 then : 24772 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 24773 24774 fi 24775 24776 fi 24777 24778 done 24779 24780 for ac_func in setresgid 24781 do : 24782 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 24783 if test "x$ac_cv_func_setresgid" = xyes 24784 then : 24785 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 24786 24787 else $as_nop 24788 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 24789 if test "x$ac_cv_func_setregid" = xyes 24790 then : 24791 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 24792 24793 fi 24794 24795 fi 24796 24797 done 24798 24799 # check if setreuid en setregid fail, on MacOSX10.4(darwin8). 24800 if echo $host_os | grep darwin8 > /dev/null; then 24801 24802 printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 24803 24804 fi 24805 24806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atomic_store" >&5 24807 printf %s "checking for atomic_store... " >&6; } 24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24809 /* end confdefs.h. */ 24810 $ac_includes_default 24811 #ifdef HAVE_STDATOMIC_H 24812 #include <stdatomic.h> 24813 #endif 24814 24815 int 24816 main (void) 24817 { 24818 24819 int newvar = 5, var = 0; 24820 atomic_store((_Atomic int*)&var, newvar); 24821 newvar = 0; 24822 /* condition to use the variables. */ 24823 if(var == newvar) return 1; 24824 24825 ; 24826 return 0; 24827 } 24828 _ACEOF 24829 if ac_fn_c_try_link "$LINENO" 24830 then : 24831 24832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24833 printf "%s\n" "yes" >&6; } 24834 24835 printf "%s\n" "#define HAVE_LINK_ATOMIC_STORE 1" >>confdefs.h 24836 24837 24838 else $as_nop 24839 24840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24841 printf "%s\n" "no" >&6; } 24842 24843 fi 24844 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24845 conftest$ac_exeext conftest.$ac_ext 24846 24847 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 24848 $ac_includes_default 24849 #ifdef HAVE_NETINET_IN_H 24850 #include <netinet/in.h> 24851 #endif 24852 24853 #ifdef HAVE_NETINET_TCP_H 24854 #include <netinet/tcp.h> 24855 #endif 24856 24857 #ifdef HAVE_ARPA_INET_H 24858 #include <arpa/inet.h> 24859 #endif 24860 24861 #ifdef HAVE_WINSOCK2_H 24862 #include <winsock2.h> 24863 #endif 24864 24865 #ifdef HAVE_WS2TCPIP_H 24866 #include <ws2tcpip.h> 24867 #endif 24868 24869 " "$ac_c_undeclared_builtin_options" "CFLAGS" 24870 if test "x$ac_cv_have_decl_inet_pton" = xyes 24871 then : 24872 ac_have_decl=1 24873 else $as_nop 24874 ac_have_decl=0 24875 fi 24876 printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 24877 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 24878 $ac_includes_default 24879 #ifdef HAVE_NETINET_IN_H 24880 #include <netinet/in.h> 24881 #endif 24882 24883 #ifdef HAVE_NETINET_TCP_H 24884 #include <netinet/tcp.h> 24885 #endif 24886 24887 #ifdef HAVE_ARPA_INET_H 24888 #include <arpa/inet.h> 24889 #endif 24890 24891 #ifdef HAVE_WINSOCK2_H 24892 #include <winsock2.h> 24893 #endif 24894 24895 #ifdef HAVE_WS2TCPIP_H 24896 #include <ws2tcpip.h> 24897 #endif 24898 24899 " "$ac_c_undeclared_builtin_options" "CFLAGS" 24900 if test "x$ac_cv_have_decl_inet_ntop" = xyes 24901 then : 24902 ac_have_decl=1 24903 else $as_nop 24904 ac_have_decl=0 24905 fi 24906 printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 24907 24908 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 24909 if test "x$ac_cv_func_inet_aton" = xyes 24910 then : 24911 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 24912 24913 else $as_nop 24914 case " $LIBOBJS " in 24915 *" inet_aton.$ac_objext "* ) ;; 24916 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 24917 ;; 24918 esac 24919 24920 fi 24921 24922 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 24923 if test "x$ac_cv_func_inet_pton" = xyes 24924 then : 24925 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 24926 24927 else $as_nop 24928 case " $LIBOBJS " in 24929 *" inet_pton.$ac_objext "* ) ;; 24930 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 24931 ;; 24932 esac 24933 24934 fi 24935 24936 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 24937 if test "x$ac_cv_func_inet_ntop" = xyes 24938 then : 24939 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 24940 24941 else $as_nop 24942 case " $LIBOBJS " in 24943 *" inet_ntop.$ac_objext "* ) ;; 24944 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 24945 ;; 24946 esac 24947 24948 fi 24949 24950 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 24951 if test "x$ac_cv_func_snprintf" = xyes 24952 then : 24953 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 24954 24955 else $as_nop 24956 case " $LIBOBJS " in 24957 *" snprintf.$ac_objext "* ) ;; 24958 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 24959 ;; 24960 esac 24961 24962 fi 24963 24964 # test if snprintf return the proper length 24965 if test "x$ac_cv_func_snprintf" = xyes; then 24966 if test c${cross_compiling} = cno; then 24967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 24968 printf %s "checking for correct snprintf return value... " >&6; } 24969 if test "$cross_compiling" = yes 24970 then : 24971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: maybe" >&5 24972 printf "%s\n" "maybe" >&6; } 24973 else $as_nop 24974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24975 /* end confdefs.h. */ 24976 $ac_includes_default 24977 24978 int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 24979 24980 _ACEOF 24981 if ac_fn_c_try_run "$LINENO" 24982 then : 24983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24984 printf "%s\n" "yes" >&6; } 24985 else $as_nop 24986 24987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24988 printf "%s\n" "no" >&6; } 24989 24990 printf "%s\n" "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 24991 24992 case " $LIBOBJS " in 24993 *" snprintf.$ac_objext "* ) ;; 24994 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 24995 ;; 24996 esac 24997 24998 24999 fi 25000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25001 conftest.$ac_objext conftest.beam conftest.$ac_ext 25002 fi 25003 25004 fi 25005 fi 25006 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 25007 if test "x$ac_cv_func_strlcat" = xyes 25008 then : 25009 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 25010 25011 else $as_nop 25012 case " $LIBOBJS " in 25013 *" strlcat.$ac_objext "* ) ;; 25014 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 25015 ;; 25016 esac 25017 25018 fi 25019 25020 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 25021 if test "x$ac_cv_func_strlcpy" = xyes 25022 then : 25023 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 25024 25025 else $as_nop 25026 case " $LIBOBJS " in 25027 *" strlcpy.$ac_objext "* ) ;; 25028 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 25029 ;; 25030 esac 25031 25032 fi 25033 25034 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 25035 if test "x$ac_cv_func_memmove" = xyes 25036 then : 25037 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 25038 25039 else $as_nop 25040 case " $LIBOBJS " in 25041 *" memmove.$ac_objext "* ) ;; 25042 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 25043 ;; 25044 esac 25045 25046 fi 25047 25048 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 25049 if test "x$ac_cv_func_gmtime_r" = xyes 25050 then : 25051 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 25052 25053 else $as_nop 25054 case " $LIBOBJS " in 25055 *" gmtime_r.$ac_objext "* ) ;; 25056 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 25057 ;; 25058 esac 25059 25060 fi 25061 25062 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 25063 if test "x$ac_cv_func_isblank" = xyes 25064 then : 25065 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h 25066 25067 else $as_nop 25068 case " $LIBOBJS " in 25069 *" isblank.$ac_objext "* ) ;; 25070 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 25071 ;; 25072 esac 25073 25074 fi 25075 25076 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 25077 if test "x$ac_cv_func_explicit_bzero" = xyes 25078 then : 25079 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 25080 25081 else $as_nop 25082 case " $LIBOBJS " in 25083 *" explicit_bzero.$ac_objext "* ) ;; 25084 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 25085 ;; 25086 esac 25087 25088 fi 25089 25090 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 25091 25092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 25093 printf %s "checking for reallocarray... " >&6; } 25094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25095 /* end confdefs.h. */ 25096 $ac_includes_default 25097 25098 #ifndef _OPENBSD_SOURCE 25099 #define _OPENBSD_SOURCE 1 25100 #endif 25101 #include <stdlib.h> 25102 int main(void) { 25103 void* p = reallocarray(NULL, 10, 100); 25104 free(p); 25105 return 0; 25106 } 25107 25108 _ACEOF 25109 if ac_fn_c_try_link "$LINENO" 25110 then : 25111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25112 printf "%s\n" "yes" >&6; } 25113 25114 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 25115 25116 25117 else $as_nop 25118 25119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25120 printf "%s\n" "no" >&6; } 25121 case " $LIBOBJS " in 25122 *" reallocarray.$ac_objext "* ) ;; 25123 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 25124 ;; 25125 esac 25126 25127 25128 fi 25129 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25130 conftest$ac_exeext conftest.$ac_ext 25131 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 25132 if test "x$ac_cv_have_decl_reallocarray" = xyes 25133 then : 25134 ac_have_decl=1 25135 else $as_nop 25136 ac_have_decl=0 25137 fi 25138 printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h 25139 25140 if test "$USE_NSS" = "no"; then 25141 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 25142 if test "x$ac_cv_func_arc4random" = xyes 25143 then : 25144 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 25145 25146 else $as_nop 25147 case " $LIBOBJS " in 25148 *" arc4random.$ac_objext "* ) ;; 25149 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 25150 ;; 25151 esac 25152 25153 fi 25154 25155 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 25156 if test "x$ac_cv_func_arc4random_uniform" = xyes 25157 then : 25158 printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 25159 25160 else $as_nop 25161 case " $LIBOBJS " in 25162 *" arc4random_uniform.$ac_objext "* ) ;; 25163 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 25164 ;; 25165 esac 25166 25167 fi 25168 25169 if test "$ac_cv_func_arc4random" = "no"; then 25170 case " $LIBOBJS " in 25171 *" arc4_lock.$ac_objext "* ) ;; 25172 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 25173 ;; 25174 esac 25175 25176 25177 for ac_func in getentropy 25178 do : 25179 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 25180 if test "x$ac_cv_func_getentropy" = xyes 25181 then : 25182 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 25183 25184 else $as_nop 25185 25186 if test "$USE_WINSOCK" = 1; then 25187 case " $LIBOBJS " in 25188 *" getentropy_win.$ac_objext "* ) ;; 25189 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 25190 ;; 25191 esac 25192 25193 else 25194 case "$host" in 25195 Darwin|*darwin*) 25196 case " $LIBOBJS " in 25197 *" getentropy_osx.$ac_objext "* ) ;; 25198 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 25199 ;; 25200 esac 25201 25202 ;; 25203 *solaris*|*sunos*|SunOS) 25204 case " $LIBOBJS " in 25205 *" getentropy_solaris.$ac_objext "* ) ;; 25206 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 25207 ;; 25208 esac 25209 25210 for ac_header in sys/sha2.h 25211 do : 25212 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 25213 " 25214 if test "x$ac_cv_header_sys_sha2_h" = xyes 25215 then : 25216 printf "%s\n" "#define HAVE_SYS_SHA2_H 1" >>confdefs.h 25217 25218 else $as_nop 25219 25220 25221 for ac_func in SHA512_Update 25222 do : 25223 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 25224 if test "x$ac_cv_func_SHA512_Update" = xyes 25225 then : 25226 printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h 25227 25228 else $as_nop 25229 25230 case " $LIBOBJS " in 25231 *" sha512.$ac_objext "* ) ;; 25232 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 25233 ;; 25234 esac 25235 25236 25237 fi 25238 25239 done 25240 25241 fi 25242 25243 done 25244 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 25245 # this lib needed for sha2 on solaris 25246 LIBS="$LIBS -lmd" 25247 fi 25248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 25249 printf %s "checking for library containing clock_gettime... " >&6; } 25250 if test ${ac_cv_search_clock_gettime+y} 25251 then : 25252 printf %s "(cached) " >&6 25253 else $as_nop 25254 ac_func_search_save_LIBS=$LIBS 25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25256 /* end confdefs.h. */ 25257 25258 /* Override any GCC internal prototype to avoid an error. 25259 Use char because int might match the return type of a GCC 25260 builtin and then its argument prototype would still apply. */ 25261 char clock_gettime (); 25262 int 25263 main (void) 25264 { 25265 return clock_gettime (); 25266 ; 25267 return 0; 25268 } 25269 _ACEOF 25270 for ac_lib in '' rt 25271 do 25272 if test -z "$ac_lib"; then 25273 ac_res="none required" 25274 else 25275 ac_res=-l$ac_lib 25276 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25277 fi 25278 if ac_fn_c_try_link "$LINENO" 25279 then : 25280 ac_cv_search_clock_gettime=$ac_res 25281 fi 25282 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25283 conftest$ac_exeext 25284 if test ${ac_cv_search_clock_gettime+y} 25285 then : 25286 break 25287 fi 25288 done 25289 if test ${ac_cv_search_clock_gettime+y} 25290 then : 25291 25292 else $as_nop 25293 ac_cv_search_clock_gettime=no 25294 fi 25295 rm conftest.$ac_ext 25296 LIBS=$ac_func_search_save_LIBS 25297 fi 25298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 25299 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 25300 ac_res=$ac_cv_search_clock_gettime 25301 if test "$ac_res" != no 25302 then : 25303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25304 25305 fi 25306 25307 ;; 25308 *freebsd*|*FreeBSD) 25309 case " $LIBOBJS " in 25310 *" getentropy_freebsd.$ac_objext "* ) ;; 25311 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 25312 ;; 25313 esac 25314 25315 ;; 25316 *linux*|Linux|*) 25317 case " $LIBOBJS " in 25318 *" getentropy_linux.$ac_objext "* ) ;; 25319 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 25320 ;; 25321 esac 25322 25323 25324 for ac_func in SHA512_Update 25325 do : 25326 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 25327 if test "x$ac_cv_func_SHA512_Update" = xyes 25328 then : 25329 printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h 25330 25331 else $as_nop 25332 25333 25334 printf "%s\n" "#define COMPAT_SHA512 1" >>confdefs.h 25335 25336 case " $LIBOBJS " in 25337 *" sha512.$ac_objext "* ) ;; 25338 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 25339 ;; 25340 esac 25341 25342 25343 fi 25344 25345 done 25346 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 25347 " 25348 if test "x$ac_cv_header_sys_sysctl_h" = xyes 25349 then : 25350 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 25351 25352 fi 25353 25354 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 25355 if test "x$ac_cv_func_getauxval" = xyes 25356 then : 25357 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h 25358 25359 fi 25360 25361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 25362 printf %s "checking for library containing clock_gettime... " >&6; } 25363 if test ${ac_cv_search_clock_gettime+y} 25364 then : 25365 printf %s "(cached) " >&6 25366 else $as_nop 25367 ac_func_search_save_LIBS=$LIBS 25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25369 /* end confdefs.h. */ 25370 25371 /* Override any GCC internal prototype to avoid an error. 25372 Use char because int might match the return type of a GCC 25373 builtin and then its argument prototype would still apply. */ 25374 char clock_gettime (); 25375 int 25376 main (void) 25377 { 25378 return clock_gettime (); 25379 ; 25380 return 0; 25381 } 25382 _ACEOF 25383 for ac_lib in '' rt 25384 do 25385 if test -z "$ac_lib"; then 25386 ac_res="none required" 25387 else 25388 ac_res=-l$ac_lib 25389 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25390 fi 25391 if ac_fn_c_try_link "$LINENO" 25392 then : 25393 ac_cv_search_clock_gettime=$ac_res 25394 fi 25395 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25396 conftest$ac_exeext 25397 if test ${ac_cv_search_clock_gettime+y} 25398 then : 25399 break 25400 fi 25401 done 25402 if test ${ac_cv_search_clock_gettime+y} 25403 then : 25404 25405 else $as_nop 25406 ac_cv_search_clock_gettime=no 25407 fi 25408 rm conftest.$ac_ext 25409 LIBS=$ac_func_search_save_LIBS 25410 fi 25411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 25412 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 25413 ac_res=$ac_cv_search_clock_gettime 25414 if test "$ac_res" != no 25415 then : 25416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25417 25418 fi 25419 25420 ;; 25421 esac 25422 fi 25423 25424 fi 25425 25426 done 25427 fi 25428 fi 25429 LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 25430 25431 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 25432 if test "x$ac_cv_func_ctime_r" = xyes 25433 then : 25434 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 25435 25436 else $as_nop 25437 case " $LIBOBJS " in 25438 *" ctime_r.$ac_objext "* ) ;; 25439 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 25440 ;; 25441 esac 25442 25443 fi 25444 25445 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 25446 if test "x$ac_cv_func_strsep" = xyes 25447 then : 25448 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 25449 25450 else $as_nop 25451 case " $LIBOBJS " in 25452 *" strsep.$ac_objext "* ) ;; 25453 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 25454 ;; 25455 esac 25456 25457 fi 25458 25459 25460 # Check whether --enable-allsymbols was given. 25461 if test ${enable_allsymbols+y} 25462 then : 25463 enableval=$enable_allsymbols; 25464 fi 25465 25466 case "$enable_allsymbols" in 25467 yes) 25468 COMMON_OBJ_ALL_SYMBOLS="" 25469 UBSYMS="" 25470 EXTRALINK="libunbound.la" 25471 25472 printf "%s\n" "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 25473 25474 ;; 25475 no|*) 25476 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 25477 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 25478 EXTRALINK="" 25479 ;; 25480 esac 25481 25482 25483 25484 if test x_$enable_lock_checks = x_yes; then 25485 UBSYMS="-export-symbols clubsyms.def" 25486 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 25487 echo lock_protect >> clubsyms.def 25488 echo lock_protect_place >> clubsyms.def 25489 echo lock_unprotect >> clubsyms.def 25490 echo lock_get_mem >> clubsyms.def 25491 echo checklock_start >> clubsyms.def 25492 echo checklock_stop >> clubsyms.def 25493 echo checklock_set_output_name >> clubsyms.def 25494 echo checklock_lock >> clubsyms.def 25495 echo checklock_unlock >> clubsyms.def 25496 echo checklock_init >> clubsyms.def 25497 echo checklock_thrcreate >> clubsyms.def 25498 echo checklock_thrjoin >> clubsyms.def 25499 fi 25500 25501 # check for dnstap if requested 25502 25503 # Check whether --enable-dnstap was given. 25504 if test ${enable_dnstap+y} 25505 then : 25506 enableval=$enable_dnstap; opt_dnstap=$enableval 25507 else $as_nop 25508 opt_dnstap=no 25509 fi 25510 25511 25512 25513 # Check whether --with-dnstap-socket-path was given. 25514 if test ${with_dnstap_socket_path+y} 25515 then : 25516 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 25517 else $as_nop 25518 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 25519 fi 25520 25521 25522 if test "x$opt_dnstap" != "xno"; then 25523 # Extract the first word of "protoc", so it can be a program name with args. 25524 set dummy protoc; ac_word=$2 25525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25526 printf %s "checking for $ac_word... " >&6; } 25527 if test ${ac_cv_path_PROTOC+y} 25528 then : 25529 printf %s "(cached) " >&6 25530 else $as_nop 25531 case $PROTOC in 25532 [\\/]* | ?:[\\/]*) 25533 ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path. 25534 ;; 25535 *) 25536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25537 for as_dir in $PATH 25538 do 25539 IFS=$as_save_IFS 25540 case $as_dir in #((( 25541 '') as_dir=./ ;; 25542 */) ;; 25543 *) as_dir=$as_dir/ ;; 25544 esac 25545 for ac_exec_ext in '' $ac_executable_extensions; do 25546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25547 ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext" 25548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25549 break 2 25550 fi 25551 done 25552 done 25553 IFS=$as_save_IFS 25554 25555 ;; 25556 esac 25557 fi 25558 PROTOC=$ac_cv_path_PROTOC 25559 if test -n "$PROTOC"; then 25560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5 25561 printf "%s\n" "$PROTOC" >&6; } 25562 else 25563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25564 printf "%s\n" "no" >&6; } 25565 fi 25566 25567 25568 # 'protoc-c' is deprecated. We use 'protoc' instead. If it can not be 25569 # found, try 'protoc-c'. 25570 if test -z "$PROTOC"; then 25571 # Extract the first word of "protoc-c", so it can be a program name with args. 25572 set dummy protoc-c; ac_word=$2 25573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25574 printf %s "checking for $ac_word... " >&6; } 25575 if test ${ac_cv_path_PROTOC_C+y} 25576 then : 25577 printf %s "(cached) " >&6 25578 else $as_nop 25579 case $PROTOC_C in 25580 [\\/]* | ?:[\\/]*) 25581 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 25582 ;; 25583 *) 25584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25585 for as_dir in $PATH 25586 do 25587 IFS=$as_save_IFS 25588 case $as_dir in #((( 25589 '') as_dir=./ ;; 25590 */) ;; 25591 *) as_dir=$as_dir/ ;; 25592 esac 25593 for ac_exec_ext in '' $ac_executable_extensions; do 25594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25595 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 25596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25597 break 2 25598 fi 25599 done 25600 done 25601 IFS=$as_save_IFS 25602 25603 ;; 25604 esac 25605 fi 25606 PROTOC_C=$ac_cv_path_PROTOC_C 25607 if test -n "$PROTOC_C"; then 25608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 25609 printf "%s\n" "$PROTOC_C" >&6; } 25610 else 25611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25612 printf "%s\n" "no" >&6; } 25613 fi 25614 25615 25616 else 25617 PROTOC_C="$PROTOC" 25618 fi 25619 if test -z "$PROTOC_C"; then 25620 as_fn_error $? "The protoc or protoc-c program was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c to provide protoc or protoc-c" "$LINENO" 5 25621 fi 25622 25623 # Check for protoc-gen-c plugin 25624 # Extract the first word of "protoc-gen-c", so it can be a program name with args. 25625 set dummy protoc-gen-c; ac_word=$2 25626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25627 printf %s "checking for $ac_word... " >&6; } 25628 if test ${ac_cv_path_PROTOC_GEN_C+y} 25629 then : 25630 printf %s "(cached) " >&6 25631 else $as_nop 25632 case $PROTOC_GEN_C in 25633 [\\/]* | ?:[\\/]*) 25634 ac_cv_path_PROTOC_GEN_C="$PROTOC_GEN_C" # Let the user override the test with a path. 25635 ;; 25636 *) 25637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25638 for as_dir in $PATH 25639 do 25640 IFS=$as_save_IFS 25641 case $as_dir in #((( 25642 '') as_dir=./ ;; 25643 */) ;; 25644 *) as_dir=$as_dir/ ;; 25645 esac 25646 for ac_exec_ext in '' $ac_executable_extensions; do 25647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25648 ac_cv_path_PROTOC_GEN_C="$as_dir$ac_word$ac_exec_ext" 25649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25650 break 2 25651 fi 25652 done 25653 done 25654 IFS=$as_save_IFS 25655 25656 ;; 25657 esac 25658 fi 25659 PROTOC_GEN_C=$ac_cv_path_PROTOC_GEN_C 25660 if test -n "$PROTOC_GEN_C"; then 25661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_GEN_C" >&5 25662 printf "%s\n" "$PROTOC_GEN_C" >&6; } 25663 else 25664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25665 printf "%s\n" "no" >&6; } 25666 fi 25667 25668 25669 if test -z "$PROTOC_GEN_C"; then 25670 as_fn_error $? "The protoc-gen-c plugin was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c-compiler to provide protoc-gen-c" "$LINENO" 5 25671 fi 25672 25673 # Test that protoc-gen-c actually works 25674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if protoc-gen-c plugin works" >&5 25675 printf %s "checking if protoc-gen-c plugin works... " >&6; } 25676 cat > conftest.proto << EOF 25677 syntax = "proto2"; 25678 message TestMessage { 25679 optional string test_field = 1; 25680 } 25681 EOF 25682 if $PROTOC_C --c_out=. conftest.proto >/dev/null 2>&1; then 25683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25684 printf "%s\n" "yes" >&6; } 25685 rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h 25686 else 25687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25688 printf "%s\n" "no" >&6; } 25689 rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h 25690 as_fn_error $? "The protoc-gen-c plugin is not working properly. Please ensure protobuf-c-compiler is properly installed" "$LINENO" 5 25691 fi 25692 25693 25694 # Check whether --with-protobuf-c was given. 25695 if test ${with_protobuf_c+y} 25696 then : 25697 withval=$with_protobuf_c; 25698 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 25699 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 25700 CFLAGS="$CFLAGS -I$withval/include/google" 25701 else 25702 CFLAGS="$CFLAGS -I$withval/include" 25703 fi 25704 LDFLAGS="$LDFLAGS -L$withval/lib" 25705 25706 else $as_nop 25707 25708 if test -n "$PKG_CONFIG"; then 25709 25710 pkg_failed=no 25711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libprotobuf-c" >&5 25712 printf %s "checking for libprotobuf-c... " >&6; } 25713 25714 if test -n "$PROTOBUFC_CFLAGS"; then 25715 pkg_cv_PROTOBUFC_CFLAGS="$PROTOBUFC_CFLAGS" 25716 elif test -n "$PKG_CONFIG"; then 25717 if test -n "$PKG_CONFIG" && \ 25718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5 25719 ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5 25720 ac_status=$? 25721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25722 test $ac_status = 0; }; then 25723 pkg_cv_PROTOBUFC_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c" 2>/dev/null` 25724 test "x$?" != "x0" && pkg_failed=yes 25725 else 25726 pkg_failed=yes 25727 fi 25728 else 25729 pkg_failed=untried 25730 fi 25731 if test -n "$PROTOBUFC_LIBS"; then 25732 pkg_cv_PROTOBUFC_LIBS="$PROTOBUFC_LIBS" 25733 elif test -n "$PKG_CONFIG"; then 25734 if test -n "$PKG_CONFIG" && \ 25735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5 25736 ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5 25737 ac_status=$? 25738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25739 test $ac_status = 0; }; then 25740 pkg_cv_PROTOBUFC_LIBS=`$PKG_CONFIG --libs "libprotobuf-c" 2>/dev/null` 25741 test "x$?" != "x0" && pkg_failed=yes 25742 else 25743 pkg_failed=yes 25744 fi 25745 else 25746 pkg_failed=untried 25747 fi 25748 25749 25750 25751 if test $pkg_failed = yes; then 25752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25753 printf "%s\n" "no" >&6; } 25754 25755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25756 _pkg_short_errors_supported=yes 25757 else 25758 _pkg_short_errors_supported=no 25759 fi 25760 if test $_pkg_short_errors_supported = yes; then 25761 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c" 2>&1` 25762 else 25763 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c" 2>&1` 25764 fi 25765 # Put the nasty error message in config.log where it belongs 25766 echo "$PROTOBUFC_PKG_ERRORS" >&5 25767 25768 25769 # pkg-config failed; try falling back to known values 25770 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 25771 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 25772 CFLAGS="$CFLAGS -I/usr/include/google" 25773 else 25774 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 25775 CFLAGS="$CFLAGS -I/usr/local/include/google" 25776 LDFLAGS="$LDFLAGS -L/usr/local/lib" 25777 else 25778 as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5 25779 fi 25780 fi 25781 25782 25783 elif test $pkg_failed = untried; then 25784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25785 printf "%s\n" "no" >&6; } 25786 25787 # pkg-config failed; try falling back to known values 25788 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 25789 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 25790 CFLAGS="$CFLAGS -I/usr/include/google" 25791 else 25792 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 25793 CFLAGS="$CFLAGS -I/usr/local/include/google" 25794 LDFLAGS="$LDFLAGS -L/usr/local/lib" 25795 else 25796 as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5 25797 fi 25798 fi 25799 25800 25801 else 25802 PROTOBUFC_CFLAGS=$pkg_cv_PROTOBUFC_CFLAGS 25803 PROTOBUFC_LIBS=$pkg_cv_PROTOBUFC_LIBS 25804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25805 printf "%s\n" "yes" >&6; } 25806 25807 CFLAGS="$CFLAGS $PROTOBUFC_CFLAGS" 25808 LIBS="$LIBS $PROTOBUFC_LIBS" 25809 25810 fi 25811 else 25812 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 25813 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 25814 CFLAGS="$CFLAGS -I/usr/include/google" 25815 else 25816 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 25817 CFLAGS="$CFLAGS -I/usr/local/include/google" 25818 LDFLAGS="$LDFLAGS -L/usr/local/lib" 25819 fi 25820 fi 25821 fi 25822 25823 25824 fi 25825 25826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 25827 printf %s "checking for library containing protobuf_c_message_pack... " >&6; } 25828 if test ${ac_cv_search_protobuf_c_message_pack+y} 25829 then : 25830 printf %s "(cached) " >&6 25831 else $as_nop 25832 ac_func_search_save_LIBS=$LIBS 25833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25834 /* end confdefs.h. */ 25835 25836 /* Override any GCC internal prototype to avoid an error. 25837 Use char because int might match the return type of a GCC 25838 builtin and then its argument prototype would still apply. */ 25839 char protobuf_c_message_pack (); 25840 int 25841 main (void) 25842 { 25843 return protobuf_c_message_pack (); 25844 ; 25845 return 0; 25846 } 25847 _ACEOF 25848 for ac_lib in '' protobuf-c 25849 do 25850 if test -z "$ac_lib"; then 25851 ac_res="none required" 25852 else 25853 ac_res=-l$ac_lib 25854 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25855 fi 25856 if ac_fn_c_try_link "$LINENO" 25857 then : 25858 ac_cv_search_protobuf_c_message_pack=$ac_res 25859 fi 25860 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25861 conftest$ac_exeext 25862 if test ${ac_cv_search_protobuf_c_message_pack+y} 25863 then : 25864 break 25865 fi 25866 done 25867 if test ${ac_cv_search_protobuf_c_message_pack+y} 25868 then : 25869 25870 else $as_nop 25871 ac_cv_search_protobuf_c_message_pack=no 25872 fi 25873 rm conftest.$ac_ext 25874 LIBS=$ac_func_search_save_LIBS 25875 fi 25876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 25877 printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; } 25878 ac_res=$ac_cv_search_protobuf_c_message_pack 25879 if test "$ac_res" != no 25880 then : 25881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25882 25883 else $as_nop 25884 as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5 25885 fi 25886 25887 25888 25889 printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h 25890 25891 ENABLE_DNSTAP=1 25892 25893 25894 25895 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 25896 25897 25898 printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h 25899 25900 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 25901 25902 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)' 25903 25904 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 25905 25906 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 25907 25908 25909 else 25910 25911 ENABLE_DNSTAP=0 25912 25913 25914 25915 fi 25916 25917 25918 # check for dnscrypt if requested 25919 25920 # Check whether --enable-dnscrypt was given. 25921 if test ${enable_dnscrypt+y} 25922 then : 25923 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 25924 else $as_nop 25925 opt_dnscrypt=no 25926 fi 25927 25928 25929 if test "x$opt_dnscrypt" != "xno"; then 25930 25931 # Check whether --with-libsodium was given. 25932 if test ${with_libsodium+y} 25933 then : 25934 withval=$with_libsodium; 25935 CFLAGS="$CFLAGS -I$withval/include" 25936 LDFLAGS="$LDFLAGS -L$withval/lib" 25937 25938 fi 25939 25940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 25941 printf %s "checking for library containing sodium_init... " >&6; } 25942 if test ${ac_cv_search_sodium_init+y} 25943 then : 25944 printf %s "(cached) " >&6 25945 else $as_nop 25946 ac_func_search_save_LIBS=$LIBS 25947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25948 /* end confdefs.h. */ 25949 25950 /* Override any GCC internal prototype to avoid an error. 25951 Use char because int might match the return type of a GCC 25952 builtin and then its argument prototype would still apply. */ 25953 char sodium_init (); 25954 int 25955 main (void) 25956 { 25957 return sodium_init (); 25958 ; 25959 return 0; 25960 } 25961 _ACEOF 25962 for ac_lib in '' sodium 25963 do 25964 if test -z "$ac_lib"; then 25965 ac_res="none required" 25966 else 25967 ac_res=-l$ac_lib 25968 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25969 fi 25970 if ac_fn_c_try_link "$LINENO" 25971 then : 25972 ac_cv_search_sodium_init=$ac_res 25973 fi 25974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25975 conftest$ac_exeext 25976 if test ${ac_cv_search_sodium_init+y} 25977 then : 25978 break 25979 fi 25980 done 25981 if test ${ac_cv_search_sodium_init+y} 25982 then : 25983 25984 else $as_nop 25985 ac_cv_search_sodium_init=no 25986 fi 25987 rm conftest.$ac_ext 25988 LIBS=$ac_func_search_save_LIBS 25989 fi 25990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 25991 printf "%s\n" "$ac_cv_search_sodium_init" >&6; } 25992 ac_res=$ac_cv_search_sodium_init 25993 if test "$ac_res" != no 25994 then : 25995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25996 25997 else $as_nop 25998 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 25999 fi 26000 26001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 26002 printf %s "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 26003 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 26004 then : 26005 printf %s "(cached) " >&6 26006 else $as_nop 26007 ac_func_search_save_LIBS=$LIBS 26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26009 /* end confdefs.h. */ 26010 26011 /* Override any GCC internal prototype to avoid an error. 26012 Use char because int might match the return type of a GCC 26013 builtin and then its argument prototype would still apply. */ 26014 char crypto_box_curve25519xchacha20poly1305_beforenm (); 26015 int 26016 main (void) 26017 { 26018 return crypto_box_curve25519xchacha20poly1305_beforenm (); 26019 ; 26020 return 0; 26021 } 26022 _ACEOF 26023 for ac_lib in '' sodium 26024 do 26025 if test -z "$ac_lib"; then 26026 ac_res="none required" 26027 else 26028 ac_res=-l$ac_lib 26029 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26030 fi 26031 if ac_fn_c_try_link "$LINENO" 26032 then : 26033 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 26034 fi 26035 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26036 conftest$ac_exeext 26037 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 26038 then : 26039 break 26040 fi 26041 done 26042 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 26043 then : 26044 26045 else $as_nop 26046 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 26047 fi 26048 rm conftest.$ac_ext 26049 LIBS=$ac_func_search_save_LIBS 26050 fi 26051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 26052 printf "%s\n" "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 26053 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 26054 if test "$ac_res" != no 26055 then : 26056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26057 26058 ENABLE_DNSCRYPT_XCHACHA20=1 26059 26060 26061 printf "%s\n" "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 26062 26063 26064 else $as_nop 26065 26066 ENABLE_DNSCRYPT_XCHACHA20=0 26067 26068 26069 fi 26070 26071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 26072 printf %s "checking for library containing sodium_set_misuse_handler... " >&6; } 26073 if test ${ac_cv_search_sodium_set_misuse_handler+y} 26074 then : 26075 printf %s "(cached) " >&6 26076 else $as_nop 26077 ac_func_search_save_LIBS=$LIBS 26078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26079 /* end confdefs.h. */ 26080 26081 /* Override any GCC internal prototype to avoid an error. 26082 Use char because int might match the return type of a GCC 26083 builtin and then its argument prototype would still apply. */ 26084 char sodium_set_misuse_handler (); 26085 int 26086 main (void) 26087 { 26088 return sodium_set_misuse_handler (); 26089 ; 26090 return 0; 26091 } 26092 _ACEOF 26093 for ac_lib in '' sodium 26094 do 26095 if test -z "$ac_lib"; then 26096 ac_res="none required" 26097 else 26098 ac_res=-l$ac_lib 26099 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26100 fi 26101 if ac_fn_c_try_link "$LINENO" 26102 then : 26103 ac_cv_search_sodium_set_misuse_handler=$ac_res 26104 fi 26105 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26106 conftest$ac_exeext 26107 if test ${ac_cv_search_sodium_set_misuse_handler+y} 26108 then : 26109 break 26110 fi 26111 done 26112 if test ${ac_cv_search_sodium_set_misuse_handler+y} 26113 then : 26114 26115 else $as_nop 26116 ac_cv_search_sodium_set_misuse_handler=no 26117 fi 26118 rm conftest.$ac_ext 26119 LIBS=$ac_func_search_save_LIBS 26120 fi 26121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 26122 printf "%s\n" "$ac_cv_search_sodium_set_misuse_handler" >&6; } 26123 ac_res=$ac_cv_search_sodium_set_misuse_handler 26124 if test "$ac_res" != no 26125 then : 26126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26127 26128 26129 printf "%s\n" "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 26130 26131 26132 fi 26133 26134 26135 26136 printf "%s\n" "#define USE_DNSCRYPT 1" >>confdefs.h 26137 26138 ENABLE_DNSCRYPT=1 26139 26140 26141 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 26142 26143 DNSCRYPT_OBJ="dnscrypt.lo" 26144 26145 26146 else 26147 ENABLE_DNSCRYPT_XCHACHA20=0 26148 26149 26150 ENABLE_DNSCRYPT=0 26151 26152 26153 26154 fi 26155 26156 26157 # check for cachedb if requested 26158 # Check whether --enable-cachedb was given. 26159 if test ${enable_cachedb+y} 26160 then : 26161 enableval=$enable_cachedb; 26162 fi 26163 26164 # turn on cachedb when hiredis support is enabled. 26165 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 26166 case "$enable_cachedb" in 26167 yes) 26168 26169 printf "%s\n" "#define USE_CACHEDB 1" >>confdefs.h 26170 26171 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c" 26172 26173 CACHEDB_OBJ="cachedb.lo redis.lo" 26174 26175 ;; 26176 no|*) 26177 # nothing 26178 ;; 26179 esac 26180 26181 # check for ipsecmod if requested 26182 # Check whether --enable-ipsecmod was given. 26183 if test ${enable_ipsecmod+y} 26184 then : 26185 enableval=$enable_ipsecmod; 26186 fi 26187 26188 case "$enable_ipsecmod" in 26189 yes) 26190 26191 printf "%s\n" "#define USE_IPSECMOD 1" >>confdefs.h 26192 26193 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 26194 26195 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 26196 26197 ;; 26198 no|*) 26199 # nothing 26200 ;; 26201 esac 26202 26203 # check for ipset if requested 26204 # Check whether --enable-ipset was given. 26205 if test ${enable_ipset+y} 26206 then : 26207 enableval=$enable_ipset; 26208 fi 26209 26210 case "$enable_ipset" in 26211 yes) 26212 26213 printf "%s\n" "#define USE_IPSET 1" >>confdefs.h 26214 26215 IPSET_SRC="ipset/ipset.c" 26216 26217 IPSET_OBJ="ipset.lo" 26218 26219 26220 # BSD's pf 26221 for ac_header in net/pfvar.h 26222 do : 26223 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" " 26224 #include <netinet/in.h> 26225 #include <net/if.h> 26226 26227 " 26228 if test "x$ac_cv_header_net_pfvar_h" = xyes 26229 then : 26230 printf "%s\n" "#define HAVE_NET_PFVAR_H 1" >>confdefs.h 26231 26232 else $as_nop 26233 26234 # mnl 26235 26236 # Check whether --with-libmnl was given. 26237 if test ${with_libmnl+y} 26238 then : 26239 withval=$with_libmnl; 26240 else $as_nop 26241 withval="yes" 26242 fi 26243 26244 found_libmnl="no" 26245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 26246 printf %s "checking for libmnl... " >&6; } 26247 if test x_$withval = x_ -o x_$withval = x_yes; then 26248 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 26249 fi 26250 for dir in $withval ; do 26251 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then 26252 found_libmnl="yes" 26253 extralibmnl="" 26254 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then 26255 extralibmnl="/libmnl" 26256 fi 26257 if test "$dir" != "/usr" -o -n "$extralibmnl"; then 26258 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl" 26259 fi 26260 if test "$dir" != "/usr"; then 26261 LDFLAGS="$LDFLAGS -L$dir/lib" 26262 fi 26263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 26264 printf "%s\n" "found in $dir" >&6; } 26265 LIBS="$LIBS -lmnl" 26266 break; 26267 fi 26268 done 26269 if test x_$found_libmnl != x_yes; then 26270 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 26271 fi 26272 26273 fi 26274 26275 done 26276 ;; 26277 no|*) 26278 # nothing 26279 ;; 26280 esac 26281 # Check whether --enable-explicit-port-randomisation was given. 26282 if test ${enable_explicit_port_randomisation+y} 26283 then : 26284 enableval=$enable_explicit_port_randomisation; 26285 fi 26286 26287 case "$enable_explicit_port_randomisation" in 26288 no) 26289 26290 printf "%s\n" "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 26291 26292 ;; 26293 yes|*) 26294 ;; 26295 esac 26296 26297 if echo "$host" | $GREP -i -e linux >/dev/null; then 26298 # Check whether --enable-linux-ip-local-port-range was given. 26299 if test ${enable_linux_ip_local_port_range+y} 26300 then : 26301 enableval=$enable_linux_ip_local_port_range; 26302 fi 26303 26304 case "$enable_linux_ip_local_port_range" in 26305 yes) 26306 26307 printf "%s\n" "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h 26308 26309 ;; 26310 no|*) 26311 ;; 26312 esac 26313 fi 26314 26315 26316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 26317 printf %s "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 26318 # on openBSD, the implicit rule make $< work. 26319 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 26320 # gmake works. 26321 cat >conftest.make <<EOF 26322 all: conftest.lo 26323 26324 conftest.lo foo.lo bla.lo: 26325 if test -f "\$<"; then touch \$@; fi 26326 26327 .SUFFIXES: .lo 26328 .c.lo: 26329 if test -f "\$<"; then touch \$@; fi 26330 26331 conftest.lo: conftest.dir/conftest.c 26332 EOF 26333 mkdir conftest.dir 26334 touch conftest.dir/conftest.c 26335 rm -f conftest.lo conftest.c 26336 ${MAKE:-make} -f conftest.make >/dev/null 26337 rm -f conftest.make conftest.c conftest.dir/conftest.c 26338 rm -rf conftest.dir 26339 if test ! -f conftest.lo; then 26340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26341 printf "%s\n" "no" >&6; } 26342 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 26343 SOURCEFILE='`cat .source`' 26344 else 26345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26346 printf "%s\n" "yes" >&6; } 26347 SOURCEDETERMINE=':' 26348 SOURCEFILE='$<' 26349 fi 26350 rm -f conftest.lo 26351 26352 26353 26354 # see if we want to build the library or everything 26355 ALLTARGET="alltargets" 26356 INSTALLTARGET="install-all" 26357 26358 # Check whether --with-libunbound-only was given. 26359 if test ${with_libunbound_only+y} 26360 then : 26361 withval=$with_libunbound_only; 26362 if test "$withval" = "yes"; then 26363 ALLTARGET="lib" 26364 INSTALLTARGET="install-lib" 26365 fi 26366 26367 fi 26368 26369 if test $ALLTARGET = "alltargets"; then 26370 if test $USE_NSS = "yes"; then 26371 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 26372 fi 26373 if test $USE_NETTLE = "yes"; then 26374 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 26375 fi 26376 fi 26377 26378 26379 26380 26381 26382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 26383 printf "%s\n" "$as_me: Stripping extension flags..." >&6;} 26384 26385 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 26386 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 26387 26388 printf "%s\n" "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 26389 26390 fi 26391 26392 26393 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 26394 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 26395 26396 printf "%s\n" "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 26397 26398 fi 26399 26400 26401 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 26402 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 26403 26404 printf "%s\n" "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 26405 26406 fi 26407 26408 26409 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 26410 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 26411 26412 printf "%s\n" "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 26413 26414 fi 26415 26416 26417 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 26418 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 26419 26420 printf "%s\n" "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 26421 26422 fi 26423 26424 26425 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 26426 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 26427 26428 printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 26429 26430 fi 26431 26432 26433 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 26434 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 26435 26436 printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 26437 26438 fi 26439 26440 26441 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 26442 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 26443 26444 printf "%s\n" "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 26445 26446 fi 26447 26448 26449 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 26450 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 26451 26452 printf "%s\n" "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 26453 26454 fi 26455 26456 26457 if test -n "$LATE_LDFLAGS"; then 26458 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 26459 fi 26460 # remove start spaces 26461 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 26462 LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 26463 26464 26465 printf "%s\n" "#define MAXSYSLOGMSGLEN 10240" >>confdefs.h 26466 26467 26468 26469 26470 version=1.26.1 26471 26472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build time" >&5 26473 printf %s "checking for build time... " >&6; } 26474 ax_date_fmt="%b %e, %Y" 26475 if test x"$SOURCE_DATE_EPOCH" = x 26476 then : 26477 date=`date "+$ax_date_fmt"` 26478 else $as_nop 26479 ax_build_date=`date -u -d "@$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null \ 26480 || date -u -r "$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null` 26481 if test x"$ax_build_date" = x 26482 then : 26483 as_fn_error $? "malformed SOURCE_DATE_EPOCH" "$LINENO" 5 26484 else $as_nop 26485 date=$ax_build_date 26486 fi 26487 fi 26488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $date" >&5 26489 printf "%s\n" "$date" >&6; } 26490 26491 26492 26493 ac_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" 26494 26495 ac_config_headers="$ac_config_headers config.h" 26496 26497 cat >confcache <<\_ACEOF 26498 # This file is a shell script that caches the results of configure 26499 # tests run on this system so they can be shared between configure 26500 # scripts and configure runs, see configure's option --config-cache. 26501 # It is not useful on other systems. If it contains results you don't 26502 # want to keep, you may remove or edit it. 26503 # 26504 # config.status only pays attention to the cache file if you give it 26505 # the --recheck option to rerun configure. 26506 # 26507 # `ac_cv_env_foo' variables (set or unset) will be overridden when 26508 # loading this file, other *unset* `ac_cv_foo' will be assigned the 26509 # following values. 26510 26511 _ACEOF 26512 26513 # The following way of writing the cache mishandles newlines in values, 26514 # but we know of no workaround that is simple, portable, and efficient. 26515 # So, we kill variables containing newlines. 26516 # Ultrix sh set writes to stderr and can't be redirected directly, 26517 # and sets the high bit in the cache file unless we assign to the vars. 26518 ( 26519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26520 eval ac_val=\$$ac_var 26521 case $ac_val in #( 26522 *${as_nl}*) 26523 case $ac_var in #( 26524 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26525 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26526 esac 26527 case $ac_var in #( 26528 _ | IFS | as_nl) ;; #( 26529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26530 *) { eval $ac_var=; unset $ac_var;} ;; 26531 esac ;; 26532 esac 26533 done 26534 26535 (set) 2>&1 | 26536 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26537 *${as_nl}ac_space=\ *) 26538 # `set' does not quote correctly, so add quotes: double-quote 26539 # substitution turns \\\\ into \\, and sed turns \\ into \. 26540 sed -n \ 26541 "s/'/'\\\\''/g; 26542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26543 ;; #( 26544 *) 26545 # `set' quotes correctly as required by POSIX, so do not add quotes. 26546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26547 ;; 26548 esac | 26549 sort 26550 ) | 26551 sed ' 26552 /^ac_cv_env_/b end 26553 t clear 26554 :clear 26555 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 26556 t end 26557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26558 :end' >>confcache 26559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26560 if test -w "$cache_file"; then 26561 if test "x$cache_file" != "x/dev/null"; then 26562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26563 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 26564 if test ! -f "$cache_file" || test -h "$cache_file"; then 26565 cat confcache >"$cache_file" 26566 else 26567 case $cache_file in #( 26568 */* | ?:*) 26569 mv -f confcache "$cache_file"$$ && 26570 mv -f "$cache_file"$$ "$cache_file" ;; #( 26571 *) 26572 mv -f confcache "$cache_file" ;; 26573 esac 26574 fi 26575 fi 26576 else 26577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26578 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 26579 fi 26580 fi 26581 rm -f confcache 26582 26583 test "x$prefix" = xNONE && prefix=$ac_default_prefix 26584 # Let make expand exec_prefix. 26585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26586 26587 DEFS=-DHAVE_CONFIG_H 26588 26589 ac_libobjs= 26590 ac_ltlibobjs= 26591 U= 26592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26593 # 1. Remove the extension, and $U if already installed. 26594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26595 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 26596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26597 # will be set to the directory where LIBOBJS objects are built. 26598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26600 done 26601 LIBOBJS=$ac_libobjs 26602 26603 LTLIBOBJS=$ac_ltlibobjs 26604 26605 26606 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 26607 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 26608 Usually this means the macro was only invoked conditionally." "$LINENO" 5 26609 fi 26610 26611 : "${CONFIG_STATUS=./config.status}" 26612 ac_write_fail=0 26613 ac_clean_files_save=$ac_clean_files 26614 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26616 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 26617 as_write_fail=0 26618 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 26619 #! $SHELL 26620 # Generated by $as_me. 26621 # Run this file to recreate the current configuration. 26622 # Compiler output produced by configure, useful for debugging 26623 # configure, is in config.log if it exists. 26624 26625 debug=false 26626 ac_cs_recheck=false 26627 ac_cs_silent=false 26628 26629 SHELL=\${CONFIG_SHELL-$SHELL} 26630 export SHELL 26631 _ASEOF 26632 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26633 ## -------------------- ## 26634 ## M4sh Initialization. ## 26635 ## -------------------- ## 26636 26637 # Be more Bourne compatible 26638 DUALCASE=1; export DUALCASE # for MKS sh 26639 as_nop=: 26640 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 26641 then : 26642 emulate sh 26643 NULLCMD=: 26644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26645 # is contrary to our usage. Disable this feature. 26646 alias -g '${1+"$@"}'='"$@"' 26647 setopt NO_GLOB_SUBST 26648 else $as_nop 26649 case `(set -o) 2>/dev/null` in #( 26650 *posix*) : 26651 set -o posix ;; #( 26652 *) : 26653 ;; 26654 esac 26655 fi 26656 26657 26658 26659 # Reset variables that may have inherited troublesome values from 26660 # the environment. 26661 26662 # IFS needs to be set, to space, tab, and newline, in precisely that order. 26663 # (If _AS_PATH_WALK were called with IFS unset, it would have the 26664 # side effect of setting IFS to empty, thus disabling word splitting.) 26665 # Quoting is to prevent editors from complaining about space-tab. 26666 as_nl=' 26667 ' 26668 export as_nl 26669 IFS=" "" $as_nl" 26670 26671 PS1='$ ' 26672 PS2='> ' 26673 PS4='+ ' 26674 26675 # Ensure predictable behavior from utilities with locale-dependent output. 26676 LC_ALL=C 26677 export LC_ALL 26678 LANGUAGE=C 26679 export LANGUAGE 26680 26681 # We cannot yet rely on "unset" to work, but we need these variables 26682 # to be unset--not just set to an empty or harmless value--now, to 26683 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 26684 # also avoids known problems related to "unset" and subshell syntax 26685 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 26686 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 26687 do eval test \${$as_var+y} \ 26688 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 26689 done 26690 26691 # Ensure that fds 0, 1, and 2 are open. 26692 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 26693 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 26694 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 26695 26696 # The user is always right. 26697 if ${PATH_SEPARATOR+false} :; then 26698 PATH_SEPARATOR=: 26699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 26700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26701 PATH_SEPARATOR=';' 26702 } 26703 fi 26704 26705 26706 # Find who we are. Look in the path if we contain no directory separator. 26707 as_myself= 26708 case $0 in #(( 26709 *[\\/]* ) as_myself=$0 ;; 26710 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26711 for as_dir in $PATH 26712 do 26713 IFS=$as_save_IFS 26714 case $as_dir in #((( 26715 '') as_dir=./ ;; 26716 */) ;; 26717 *) as_dir=$as_dir/ ;; 26718 esac 26719 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 26720 done 26721 IFS=$as_save_IFS 26722 26723 ;; 26724 esac 26725 # We did not find ourselves, most probably we were run as `sh COMMAND' 26726 # in which case we are not to be found in the path. 26727 if test "x$as_myself" = x; then 26728 as_myself=$0 26729 fi 26730 if test ! -f "$as_myself"; then 26731 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26732 exit 1 26733 fi 26734 26735 26736 26737 # as_fn_error STATUS ERROR [LINENO LOG_FD] 26738 # ---------------------------------------- 26739 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 26740 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 26741 # script with STATUS, using 1 if that was 0. 26742 as_fn_error () 26743 { 26744 as_status=$1; test $as_status -eq 0 && as_status=1 26745 if test "$4"; then 26746 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 26747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 26748 fi 26749 printf "%s\n" "$as_me: error: $2" >&2 26750 as_fn_exit $as_status 26751 } # as_fn_error 26752 26753 26754 26755 # as_fn_set_status STATUS 26756 # ----------------------- 26757 # Set $? to STATUS, without forking. 26758 as_fn_set_status () 26759 { 26760 return $1 26761 } # as_fn_set_status 26762 26763 # as_fn_exit STATUS 26764 # ----------------- 26765 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 26766 as_fn_exit () 26767 { 26768 set +e 26769 as_fn_set_status $1 26770 exit $1 26771 } # as_fn_exit 26772 26773 # as_fn_unset VAR 26774 # --------------- 26775 # Portably unset VAR. 26776 as_fn_unset () 26777 { 26778 { eval $1=; unset $1;} 26779 } 26780 as_unset=as_fn_unset 26781 26782 # as_fn_append VAR VALUE 26783 # ---------------------- 26784 # Append the text in VALUE to the end of the definition contained in VAR. Take 26785 # advantage of any shell optimizations that allow amortized linear growth over 26786 # repeated appends, instead of the typical quadratic growth present in naive 26787 # implementations. 26788 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 26789 then : 26790 eval 'as_fn_append () 26791 { 26792 eval $1+=\$2 26793 }' 26794 else $as_nop 26795 as_fn_append () 26796 { 26797 eval $1=\$$1\$2 26798 } 26799 fi # as_fn_append 26800 26801 # as_fn_arith ARG... 26802 # ------------------ 26803 # Perform arithmetic evaluation on the ARGs, and store the result in the 26804 # global $as_val. Take advantage of shells that can avoid forks. The arguments 26805 # must be portable across $(()) and expr. 26806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 26807 then : 26808 eval 'as_fn_arith () 26809 { 26810 as_val=$(( $* )) 26811 }' 26812 else $as_nop 26813 as_fn_arith () 26814 { 26815 as_val=`expr "$@" || test $? -eq 1` 26816 } 26817 fi # as_fn_arith 26818 26819 26820 if expr a : '\(a\)' >/dev/null 2>&1 && 26821 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26822 as_expr=expr 26823 else 26824 as_expr=false 26825 fi 26826 26827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26828 as_basename=basename 26829 else 26830 as_basename=false 26831 fi 26832 26833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26834 as_dirname=dirname 26835 else 26836 as_dirname=false 26837 fi 26838 26839 as_me=`$as_basename -- "$0" || 26840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26841 X"$0" : 'X\(//\)$' \| \ 26842 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26843 printf "%s\n" X/"$0" | 26844 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26845 s//\1/ 26846 q 26847 } 26848 /^X\/\(\/\/\)$/{ 26849 s//\1/ 26850 q 26851 } 26852 /^X\/\(\/\).*/{ 26853 s//\1/ 26854 q 26855 } 26856 s/.*/./; q'` 26857 26858 # Avoid depending upon Character Ranges. 26859 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26862 as_cr_digits='0123456789' 26863 as_cr_alnum=$as_cr_Letters$as_cr_digits 26864 26865 26866 # Determine whether it's possible to make 'echo' print without a newline. 26867 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 26868 # for compatibility with existing Makefiles. 26869 ECHO_C= ECHO_N= ECHO_T= 26870 case `echo -n x` in #((((( 26871 -n*) 26872 case `echo 'xy\c'` in 26873 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26874 xy) ECHO_C='\c';; 26875 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 26876 ECHO_T=' ';; 26877 esac;; 26878 *) 26879 ECHO_N='-n';; 26880 esac 26881 26882 # For backward compatibility with old third-party macros, we provide 26883 # the shell variables $as_echo and $as_echo_n. New code should use 26884 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 26885 as_echo='printf %s\n' 26886 as_echo_n='printf %s' 26887 26888 rm -f conf$$ conf$$.exe conf$$.file 26889 if test -d conf$$.dir; then 26890 rm -f conf$$.dir/conf$$.file 26891 else 26892 rm -f conf$$.dir 26893 mkdir conf$$.dir 2>/dev/null 26894 fi 26895 if (echo >conf$$.file) 2>/dev/null; then 26896 if ln -s conf$$.file conf$$ 2>/dev/null; then 26897 as_ln_s='ln -s' 26898 # ... but there are two gotchas: 26899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26901 # In both cases, we have to default to `cp -pR'. 26902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26903 as_ln_s='cp -pR' 26904 elif ln conf$$.file conf$$ 2>/dev/null; then 26905 as_ln_s=ln 26906 else 26907 as_ln_s='cp -pR' 26908 fi 26909 else 26910 as_ln_s='cp -pR' 26911 fi 26912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26913 rmdir conf$$.dir 2>/dev/null 26914 26915 26916 # as_fn_mkdir_p 26917 # ------------- 26918 # Create "$as_dir" as a directory, including parents if necessary. 26919 as_fn_mkdir_p () 26920 { 26921 26922 case $as_dir in #( 26923 -*) as_dir=./$as_dir;; 26924 esac 26925 test -d "$as_dir" || eval $as_mkdir_p || { 26926 as_dirs= 26927 while :; do 26928 case $as_dir in #( 26929 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 26930 *) as_qdir=$as_dir;; 26931 esac 26932 as_dirs="'$as_qdir' $as_dirs" 26933 as_dir=`$as_dirname -- "$as_dir" || 26934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26935 X"$as_dir" : 'X\(//\)[^/]' \| \ 26936 X"$as_dir" : 'X\(//\)$' \| \ 26937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 26938 printf "%s\n" X"$as_dir" | 26939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26940 s//\1/ 26941 q 26942 } 26943 /^X\(\/\/\)[^/].*/{ 26944 s//\1/ 26945 q 26946 } 26947 /^X\(\/\/\)$/{ 26948 s//\1/ 26949 q 26950 } 26951 /^X\(\/\).*/{ 26952 s//\1/ 26953 q 26954 } 26955 s/.*/./; q'` 26956 test -d "$as_dir" && break 26957 done 26958 test -z "$as_dirs" || eval "mkdir $as_dirs" 26959 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 26960 26961 26962 } # as_fn_mkdir_p 26963 if mkdir -p . 2>/dev/null; then 26964 as_mkdir_p='mkdir -p "$as_dir"' 26965 else 26966 test -d ./-p && rmdir ./-p 26967 as_mkdir_p=false 26968 fi 26969 26970 26971 # as_fn_executable_p FILE 26972 # ----------------------- 26973 # Test if FILE is an executable regular file. 26974 as_fn_executable_p () 26975 { 26976 test -f "$1" && test -x "$1" 26977 } # as_fn_executable_p 26978 as_test_x='test -x' 26979 as_executable_p=as_fn_executable_p 26980 26981 # Sed expression to map a string onto a valid CPP name. 26982 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26983 26984 # Sed expression to map a string onto a valid variable name. 26985 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26986 26987 26988 exec 6>&1 26989 ## ----------------------------------- ## 26990 ## Main body of $CONFIG_STATUS script. ## 26991 ## ----------------------------------- ## 26992 _ASEOF 26993 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 26994 26995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26996 # Save the log message, to keep $0 and so on meaningful, and to 26997 # report actual input values of CONFIG_FILES etc. instead of their 26998 # values after options handling. 26999 ac_log=" 27000 This file was extended by unbound $as_me 1.26.1, which was 27001 generated by GNU Autoconf 2.71. Invocation command line was 27002 27003 CONFIG_FILES = $CONFIG_FILES 27004 CONFIG_HEADERS = $CONFIG_HEADERS 27005 CONFIG_LINKS = $CONFIG_LINKS 27006 CONFIG_COMMANDS = $CONFIG_COMMANDS 27007 $ $0 $@ 27008 27009 on `(hostname || uname -n) 2>/dev/null | sed 1q` 27010 " 27011 27012 _ACEOF 27013 27014 case $ac_config_files in *" 27015 "*) set x $ac_config_files; shift; ac_config_files=$*;; 27016 esac 27017 27018 case $ac_config_headers in *" 27019 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27020 esac 27021 27022 27023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27024 # Files that config.status was made for. 27025 config_files="$ac_config_files" 27026 config_headers="$ac_config_headers" 27027 config_commands="$ac_config_commands" 27028 27029 _ACEOF 27030 27031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27032 ac_cs_usage="\ 27033 \`$as_me' instantiates files and other configuration actions 27034 from templates according to the current configuration. Unless the files 27035 and actions are specified as TAGs, all are instantiated by default. 27036 27037 Usage: $0 [OPTION]... [TAG]... 27038 27039 -h, --help print this help, then exit 27040 -V, --version print version number and configuration settings, then exit 27041 --config print configuration, then exit 27042 -q, --quiet, --silent 27043 do not print progress messages 27044 -d, --debug don't remove temporary files 27045 --recheck update $as_me by reconfiguring in the same conditions 27046 --file=FILE[:TEMPLATE] 27047 instantiate the configuration file FILE 27048 --header=FILE[:TEMPLATE] 27049 instantiate the configuration header FILE 27050 27051 Configuration files: 27052 $config_files 27053 27054 Configuration headers: 27055 $config_headers 27056 27057 Configuration commands: 27058 $config_commands 27059 27060 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 27061 27062 _ACEOF 27063 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 27064 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 27065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27066 ac_cs_config='$ac_cs_config_escaped' 27067 ac_cs_version="\\ 27068 unbound config.status 1.26.1 27069 configured by $0, generated by GNU Autoconf 2.71, 27070 with options \\"\$ac_cs_config\\" 27071 27072 Copyright (C) 2021 Free Software Foundation, Inc. 27073 This config.status script is free software; the Free Software Foundation 27074 gives unlimited permission to copy, distribute and modify it." 27075 27076 ac_pwd='$ac_pwd' 27077 srcdir='$srcdir' 27078 AWK='$AWK' 27079 test -n "\$AWK" || AWK=awk 27080 _ACEOF 27081 27082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27083 # The default lists apply if the user does not specify any file. 27084 ac_need_defaults=: 27085 while test $# != 0 27086 do 27087 case $1 in 27088 --*=?*) 27089 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27091 ac_shift=: 27092 ;; 27093 --*=) 27094 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27095 ac_optarg= 27096 ac_shift=: 27097 ;; 27098 *) 27099 ac_option=$1 27100 ac_optarg=$2 27101 ac_shift=shift 27102 ;; 27103 esac 27104 27105 case $ac_option in 27106 # Handling of the options. 27107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27108 ac_cs_recheck=: ;; 27109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27110 printf "%s\n" "$ac_cs_version"; exit ;; 27111 --config | --confi | --conf | --con | --co | --c ) 27112 printf "%s\n" "$ac_cs_config"; exit ;; 27113 --debug | --debu | --deb | --de | --d | -d ) 27114 debug=: ;; 27115 --file | --fil | --fi | --f ) 27116 $ac_shift 27117 case $ac_optarg in 27118 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27119 '') as_fn_error $? "missing file argument" ;; 27120 esac 27121 as_fn_append CONFIG_FILES " '$ac_optarg'" 27122 ac_need_defaults=false;; 27123 --header | --heade | --head | --hea ) 27124 $ac_shift 27125 case $ac_optarg in 27126 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27127 esac 27128 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27129 ac_need_defaults=false;; 27130 --he | --h) 27131 # Conflict between --help and --header 27132 as_fn_error $? "ambiguous option: \`$1' 27133 Try \`$0 --help' for more information.";; 27134 --help | --hel | -h ) 27135 printf "%s\n" "$ac_cs_usage"; exit ;; 27136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27137 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27138 ac_cs_silent=: ;; 27139 27140 # This is an error. 27141 -*) as_fn_error $? "unrecognized option: \`$1' 27142 Try \`$0 --help' for more information." ;; 27143 27144 *) as_fn_append ac_config_targets " $1" 27145 ac_need_defaults=false ;; 27146 27147 esac 27148 shift 27149 done 27150 27151 ac_configure_extra_args= 27152 27153 if $ac_cs_silent; then 27154 exec 6>/dev/null 27155 ac_configure_extra_args="$ac_configure_extra_args --silent" 27156 fi 27157 27158 _ACEOF 27159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27160 if \$ac_cs_recheck; then 27161 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27162 shift 27163 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 27164 CONFIG_SHELL='$SHELL' 27165 export CONFIG_SHELL 27166 exec "\$@" 27167 fi 27168 27169 _ACEOF 27170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27171 exec 5>>config.log 27172 { 27173 echo 27174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27175 ## Running $as_me. ## 27176 _ASBOX 27177 printf "%s\n" "$ac_log" 27178 } >&5 27179 27180 _ACEOF 27181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27182 # 27183 # INIT-COMMANDS 27184 # 27185 27186 27187 # The HP-UX ksh and POSIX shell print the target directory to stdout 27188 # if CDPATH is set. 27189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27190 27191 sed_quote_subst='$sed_quote_subst' 27192 double_quote_subst='$double_quote_subst' 27193 delay_variable_subst='$delay_variable_subst' 27194 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 27195 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 27196 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 27197 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 27198 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 27199 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 27200 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 27201 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 27202 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 27203 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 27204 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 27205 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 27206 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 27207 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 27208 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 27209 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 27210 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 27211 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 27212 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 27213 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 27214 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 27215 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 27216 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 27217 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 27218 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 27219 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 27220 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 27221 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 27222 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 27223 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 27224 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 27225 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 27226 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 27227 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 27228 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 27229 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 27230 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 27231 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 27232 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 27233 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 27234 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 27235 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 27236 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 27237 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 27238 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 27239 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 27240 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 27241 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 27242 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27243 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27244 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 27245 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 27246 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 27247 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 27248 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 27249 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 27250 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 27251 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 27252 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 27253 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 27254 lt_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"`' 27255 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 27256 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 27257 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 27258 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 27259 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 27260 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 27261 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 27262 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 27263 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 27264 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 27265 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 27266 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 27267 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 27268 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 27269 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 27270 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 27271 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 27272 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 27273 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 27274 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 27275 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27276 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 27277 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 27278 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 27279 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 27280 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 27281 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 27282 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27283 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 27284 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27285 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 27286 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27287 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 27288 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 27289 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 27290 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 27291 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 27292 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 27293 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 27294 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 27295 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 27296 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 27297 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 27298 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 27299 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 27300 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 27301 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 27302 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 27303 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 27304 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 27305 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 27306 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 27307 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 27308 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 27309 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 27310 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 27311 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 27312 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 27313 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 27314 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 27315 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 27316 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 27317 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27318 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27319 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 27320 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 27321 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 27322 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 27323 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 27324 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 27325 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 27326 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 27327 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 27328 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 27329 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 27330 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 27331 27332 LTCC='$LTCC' 27333 LTCFLAGS='$LTCFLAGS' 27334 compiler='$compiler_DEFAULT' 27335 27336 # A function that is used when there is no print builtin or printf. 27337 func_fallback_echo () 27338 { 27339 eval 'cat <<_LTECHO_EOF 27340 \$1 27341 _LTECHO_EOF' 27342 } 27343 27344 # Quote evaled strings. 27345 for var in SHELL \ 27346 ECHO \ 27347 PATH_SEPARATOR \ 27348 SED \ 27349 GREP \ 27350 EGREP \ 27351 FGREP \ 27352 LD \ 27353 NM \ 27354 LN_S \ 27355 lt_SP2NL \ 27356 lt_NL2SP \ 27357 reload_flag \ 27358 FILECMD \ 27359 OBJDUMP \ 27360 deplibs_check_method \ 27361 file_magic_cmd \ 27362 file_magic_glob \ 27363 want_nocaseglob \ 27364 DLLTOOL \ 27365 sharedlib_from_linklib_cmd \ 27366 AR \ 27367 archiver_list_spec \ 27368 STRIP \ 27369 RANLIB \ 27370 CC \ 27371 CFLAGS \ 27372 compiler \ 27373 lt_cv_sys_global_symbol_pipe \ 27374 lt_cv_sys_global_symbol_to_cdecl \ 27375 lt_cv_sys_global_symbol_to_import \ 27376 lt_cv_sys_global_symbol_to_c_name_address \ 27377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 27378 lt_cv_nm_interface \ 27379 nm_file_list_spec \ 27380 lt_cv_truncate_bin \ 27381 lt_prog_compiler_no_builtin_flag \ 27382 lt_prog_compiler_pic \ 27383 lt_prog_compiler_wl \ 27384 lt_prog_compiler_static \ 27385 lt_cv_prog_compiler_c_o \ 27386 need_locks \ 27387 MANIFEST_TOOL \ 27388 DSYMUTIL \ 27389 NMEDIT \ 27390 LIPO \ 27391 OTOOL \ 27392 OTOOL64 \ 27393 shrext_cmds \ 27394 export_dynamic_flag_spec \ 27395 whole_archive_flag_spec \ 27396 compiler_needs_object \ 27397 with_gnu_ld \ 27398 allow_undefined_flag \ 27399 no_undefined_flag \ 27400 hardcode_libdir_flag_spec \ 27401 hardcode_libdir_separator \ 27402 exclude_expsyms \ 27403 include_expsyms \ 27404 file_list_spec \ 27405 variables_saved_for_relink \ 27406 libname_spec \ 27407 library_names_spec \ 27408 soname_spec \ 27409 install_override_mode \ 27410 finish_eval \ 27411 old_striplib \ 27412 striplib; do 27413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27414 *[\\\\\\\`\\"\\\$]*) 27415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27416 ;; 27417 *) 27418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27419 ;; 27420 esac 27421 done 27422 27423 # Double-quote double-evaled strings. 27424 for var in reload_cmds \ 27425 old_postinstall_cmds \ 27426 old_postuninstall_cmds \ 27427 old_archive_cmds \ 27428 extract_expsyms_cmds \ 27429 old_archive_from_new_cmds \ 27430 old_archive_from_expsyms_cmds \ 27431 archive_cmds \ 27432 archive_expsym_cmds \ 27433 module_cmds \ 27434 module_expsym_cmds \ 27435 export_symbols_cmds \ 27436 prelink_cmds \ 27437 postlink_cmds \ 27438 postinstall_cmds \ 27439 postuninstall_cmds \ 27440 finish_cmds \ 27441 sys_lib_search_path_spec \ 27442 configure_time_dlsearch_path \ 27443 configure_time_lt_sys_library_path; do 27444 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27445 *[\\\\\\\`\\"\\\$]*) 27446 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27447 ;; 27448 *) 27449 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27450 ;; 27451 esac 27452 done 27453 27454 ac_aux_dir='$ac_aux_dir' 27455 27456 # See if we are running on zsh, and set the options that allow our 27457 # commands through without removal of \ escapes INIT. 27458 if test -n "\${ZSH_VERSION+set}"; then 27459 setopt NO_GLOB_SUBST 27460 fi 27461 27462 27463 PACKAGE='$PACKAGE' 27464 VERSION='$VERSION' 27465 RM='$RM' 27466 ofile='$ofile' 27467 27468 27469 27470 27471 _ACEOF 27472 27473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27474 27475 # Handling of arguments. 27476 for ac_config_target in $ac_config_targets 27477 do 27478 case $ac_config_target in 27479 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 27480 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 27481 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27482 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 27483 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 27484 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 27485 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 27486 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 27487 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 27488 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 27489 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 27490 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 27491 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 27492 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 27493 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;; 27494 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;; 27495 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;; 27496 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;; 27497 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 27498 27499 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27500 esac 27501 done 27502 27503 27504 # If the user did not use the arguments to specify the items to instantiate, 27505 # then the envvar interface is used. Set only those that are not. 27506 # We use the long form for the default assignment because of an extremely 27507 # bizarre bug on SunOS 4.1.3. 27508 if $ac_need_defaults; then 27509 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 27510 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 27511 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 27512 fi 27513 27514 # Have a temporary directory for convenience. Make it in the build tree 27515 # simply because there is no reason against having it here, and in addition, 27516 # creating and moving files from /tmp can sometimes cause problems. 27517 # Hook for its removal unless debugging. 27518 # Note that there is a small window in which the directory will not be cleaned: 27519 # after its creation but before its name has been assigned to `$tmp'. 27520 $debug || 27521 { 27522 tmp= ac_tmp= 27523 trap 'exit_status=$? 27524 : "${ac_tmp:=$tmp}" 27525 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 27526 ' 0 27527 trap 'as_fn_exit 1' 1 2 13 15 27528 } 27529 # Create a (secure) tmp directory for tmp files. 27530 27531 { 27532 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27533 test -d "$tmp" 27534 } || 27535 { 27536 tmp=./conf$$-$RANDOM 27537 (umask 077 && mkdir "$tmp") 27538 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 27539 ac_tmp=$tmp 27540 27541 # Set up the scripts for CONFIG_FILES section. 27542 # No need to generate them if there are no CONFIG_FILES. 27543 # This happens for instance with `./config.status config.h'. 27544 if test -n "$CONFIG_FILES"; then 27545 27546 27547 ac_cr=`echo X | tr X '\015'` 27548 # On cygwin, bash can eat \r inside `` if the user requested igncr. 27549 # But we know of no other shell where ac_cr would be empty at this 27550 # point, so we can use a bashism as a fallback. 27551 if test "x$ac_cr" = x; then 27552 eval ac_cr=\$\'\\r\' 27553 fi 27554 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27555 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27556 ac_cs_awk_cr='\\r' 27557 else 27558 ac_cs_awk_cr=$ac_cr 27559 fi 27560 27561 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 27562 _ACEOF 27563 27564 27565 { 27566 echo "cat >conf$$subs.awk <<_ACEOF" && 27567 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27568 echo "_ACEOF" 27569 } >conf$$subs.sh || 27570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27571 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 27572 ac_delim='%!_!# ' 27573 for ac_last_try in false false false false false :; do 27574 . ./conf$$subs.sh || 27575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27576 27577 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27578 if test $ac_delim_n = $ac_delim_num; then 27579 break 27580 elif $ac_last_try; then 27581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27582 else 27583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27584 fi 27585 done 27586 rm -f conf$$subs.sh 27587 27588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27589 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 27590 _ACEOF 27591 sed -n ' 27592 h 27593 s/^/S["/; s/!.*/"]=/ 27594 p 27595 g 27596 s/^[^!]*!// 27597 :repl 27598 t repl 27599 s/'"$ac_delim"'$// 27600 t delim 27601 :nl 27602 h 27603 s/\(.\{148\}\)..*/\1/ 27604 t more1 27605 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27606 p 27607 n 27608 b repl 27609 :more1 27610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27611 p 27612 g 27613 s/.\{148\}// 27614 t nl 27615 :delim 27616 h 27617 s/\(.\{148\}\)..*/\1/ 27618 t more2 27619 s/["\\]/\\&/g; s/^/"/; s/$/"/ 27620 p 27621 b 27622 :more2 27623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27624 p 27625 g 27626 s/.\{148\}// 27627 t delim 27628 ' <conf$$subs.awk | sed ' 27629 /^[^""]/{ 27630 N 27631 s/\n// 27632 } 27633 ' >>$CONFIG_STATUS || ac_write_fail=1 27634 rm -f conf$$subs.awk 27635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27636 _ACAWK 27637 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 27638 for (key in S) S_is_set[key] = 1 27639 FS = "" 27640 27641 } 27642 { 27643 line = $ 0 27644 nfields = split(line, field, "@") 27645 substed = 0 27646 len = length(field[1]) 27647 for (i = 2; i < nfields; i++) { 27648 key = field[i] 27649 keylen = length(key) 27650 if (S_is_set[key]) { 27651 value = S[key] 27652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 27653 len += length(value) + length(field[++i]) 27654 substed = 1 27655 } else 27656 len += 1 + keylen 27657 } 27658 27659 print line 27660 } 27661 27662 _ACAWK 27663 _ACEOF 27664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27665 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 27666 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 27667 else 27668 cat 27669 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 27670 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 27671 _ACEOF 27672 27673 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 27674 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 27675 # trailing colons and then remove the whole line if VPATH becomes empty 27676 # (actually we leave an empty line to preserve line numbers). 27677 if test "x$srcdir" = x.; then 27678 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 27679 h 27680 s/// 27681 s/^/:/ 27682 s/[ ]*$/:/ 27683 s/:\$(srcdir):/:/g 27684 s/:\${srcdir}:/:/g 27685 s/:@srcdir@:/:/g 27686 s/^:*// 27687 s/:*$// 27688 x 27689 s/\(=[ ]*\).*/\1/ 27690 G 27691 s/\n// 27692 s/^[^=]*=[ ]*$// 27693 }' 27694 fi 27695 27696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27697 fi # test -n "$CONFIG_FILES" 27698 27699 # Set up the scripts for CONFIG_HEADERS section. 27700 # No need to generate them if there are no CONFIG_HEADERS. 27701 # This happens for instance with `./config.status Makefile'. 27702 if test -n "$CONFIG_HEADERS"; then 27703 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 27704 BEGIN { 27705 _ACEOF 27706 27707 # Transform confdefs.h into an awk script `defines.awk', embedded as 27708 # here-document in config.status, that substitutes the proper values into 27709 # config.h.in to produce config.h. 27710 27711 # Create a delimiter string that does not exist in confdefs.h, to ease 27712 # handling of long lines. 27713 ac_delim='%!_!# ' 27714 for ac_last_try in false false :; do 27715 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 27716 if test -z "$ac_tt"; then 27717 break 27718 elif $ac_last_try; then 27719 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 27720 else 27721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27722 fi 27723 done 27724 27725 # For the awk script, D is an array of macro values keyed by name, 27726 # likewise P contains macro parameters if any. Preserve backslash 27727 # newline sequences. 27728 27729 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 27730 sed -n ' 27731 s/.\{148\}/&'"$ac_delim"'/g 27732 t rset 27733 :rset 27734 s/^[ ]*#[ ]*define[ ][ ]*/ / 27735 t def 27736 d 27737 :def 27738 s/\\$// 27739 t bsnl 27740 s/["\\]/\\&/g 27741 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27742 D["\1"]=" \3"/p 27743 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 27744 d 27745 :bsnl 27746 s/["\\]/\\&/g 27747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27748 D["\1"]=" \3\\\\\\n"\\/p 27749 t cont 27750 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 27751 t cont 27752 d 27753 :cont 27754 n 27755 s/.\{148\}/&'"$ac_delim"'/g 27756 t clear 27757 :clear 27758 s/\\$// 27759 t bsnlc 27760 s/["\\]/\\&/g; s/^/"/; s/$/"/p 27761 d 27762 :bsnlc 27763 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 27764 b cont 27765 ' <confdefs.h | sed ' 27766 s/'"$ac_delim"'/"\\\ 27767 "/g' >>$CONFIG_STATUS || ac_write_fail=1 27768 27769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27770 for (key in D) D_is_set[key] = 1 27771 FS = "" 27772 } 27773 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 27774 line = \$ 0 27775 split(line, arg, " ") 27776 if (arg[1] == "#") { 27777 defundef = arg[2] 27778 mac1 = arg[3] 27779 } else { 27780 defundef = substr(arg[1], 2) 27781 mac1 = arg[2] 27782 } 27783 split(mac1, mac2, "(") #) 27784 macro = mac2[1] 27785 prefix = substr(line, 1, index(line, defundef) - 1) 27786 if (D_is_set[macro]) { 27787 # Preserve the white space surrounding the "#". 27788 print prefix "define", macro P[macro] D[macro] 27789 next 27790 } else { 27791 # Replace #undef with comments. This is necessary, for example, 27792 # in the case of _POSIX_SOURCE, which is predefined and required 27793 # on some systems where configure will not decide to define it. 27794 if (defundef == "undef") { 27795 print "/*", prefix defundef, macro, "*/" 27796 next 27797 } 27798 } 27799 } 27800 { print } 27801 _ACAWK 27802 _ACEOF 27803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27804 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 27805 fi # test -n "$CONFIG_HEADERS" 27806 27807 27808 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 27809 shift 27810 for ac_tag 27811 do 27812 case $ac_tag in 27813 :[FHLC]) ac_mode=$ac_tag; continue;; 27814 esac 27815 case $ac_mode$ac_tag in 27816 :[FHL]*:*);; 27817 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 27818 :[FH]-) ac_tag=-:-;; 27819 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27820 esac 27821 ac_save_IFS=$IFS 27822 IFS=: 27823 set x $ac_tag 27824 IFS=$ac_save_IFS 27825 shift 27826 ac_file=$1 27827 shift 27828 27829 case $ac_mode in 27830 :L) ac_source=$1;; 27831 :[FH]) 27832 ac_file_inputs= 27833 for ac_f 27834 do 27835 case $ac_f in 27836 -) ac_f="$ac_tmp/stdin";; 27837 *) # Look for the file first in the build tree, then in the source tree 27838 # (if the path is not absolute). The absolute path cannot be DOS-style, 27839 # because $ac_f cannot contain `:'. 27840 test -f "$ac_f" || 27841 case $ac_f in 27842 [\\/$]*) false;; 27843 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27844 esac || 27845 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27846 esac 27847 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27848 as_fn_append ac_file_inputs " '$ac_f'" 27849 done 27850 27851 # Let's still pretend it is `configure' which instantiates (i.e., don't 27852 # use $as_me), people would be surprised to read: 27853 # /* config.h. Generated by config.status. */ 27854 configure_input='Generated from '` 27855 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27856 `' by configure.' 27857 if test x"$ac_file" != x-; then 27858 configure_input="$ac_file. $configure_input" 27859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27860 printf "%s\n" "$as_me: creating $ac_file" >&6;} 27861 fi 27862 # Neutralize special characters interpreted by sed in replacement strings. 27863 case $configure_input in #( 27864 *\&* | *\|* | *\\* ) 27865 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 27866 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27867 *) ac_sed_conf_input=$configure_input;; 27868 esac 27869 27870 case $ac_tag in 27871 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 27872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 27873 esac 27874 ;; 27875 esac 27876 27877 ac_dir=`$as_dirname -- "$ac_file" || 27878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27879 X"$ac_file" : 'X\(//\)[^/]' \| \ 27880 X"$ac_file" : 'X\(//\)$' \| \ 27881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27882 printf "%s\n" X"$ac_file" | 27883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27884 s//\1/ 27885 q 27886 } 27887 /^X\(\/\/\)[^/].*/{ 27888 s//\1/ 27889 q 27890 } 27891 /^X\(\/\/\)$/{ 27892 s//\1/ 27893 q 27894 } 27895 /^X\(\/\).*/{ 27896 s//\1/ 27897 q 27898 } 27899 s/.*/./; q'` 27900 as_dir="$ac_dir"; as_fn_mkdir_p 27901 ac_builddir=. 27902 27903 case "$ac_dir" in 27904 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27905 *) 27906 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 27907 # A ".." for each directory in $ac_dir_suffix. 27908 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27909 case $ac_top_builddir_sub in 27910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27912 esac ;; 27913 esac 27914 ac_abs_top_builddir=$ac_pwd 27915 ac_abs_builddir=$ac_pwd$ac_dir_suffix 27916 # for backward compatibility: 27917 ac_top_builddir=$ac_top_build_prefix 27918 27919 case $srcdir in 27920 .) # We are building in place. 27921 ac_srcdir=. 27922 ac_top_srcdir=$ac_top_builddir_sub 27923 ac_abs_top_srcdir=$ac_pwd ;; 27924 [\\/]* | ?:[\\/]* ) # Absolute name. 27925 ac_srcdir=$srcdir$ac_dir_suffix; 27926 ac_top_srcdir=$srcdir 27927 ac_abs_top_srcdir=$srcdir ;; 27928 *) # Relative name. 27929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27930 ac_top_srcdir=$ac_top_build_prefix$srcdir 27931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27932 esac 27933 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27934 27935 27936 case $ac_mode in 27937 :F) 27938 # 27939 # CONFIG_FILE 27940 # 27941 27942 _ACEOF 27943 27944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27945 # If the template does not know about datarootdir, expand it. 27946 # FIXME: This hack should be removed a few years after 2.60. 27947 ac_datarootdir_hack=; ac_datarootdir_seen= 27948 ac_sed_dataroot=' 27949 /datarootdir/ { 27950 p 27951 q 27952 } 27953 /@datadir@/p 27954 /@docdir@/p 27955 /@infodir@/p 27956 /@localedir@/p 27957 /@mandir@/p' 27958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27959 *datarootdir*) ac_datarootdir_seen=yes;; 27960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27962 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27963 _ACEOF 27964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27965 ac_datarootdir_hack=' 27966 s&@datadir@&$datadir&g 27967 s&@docdir@&$docdir&g 27968 s&@infodir@&$infodir&g 27969 s&@localedir@&$localedir&g 27970 s&@mandir@&$mandir&g 27971 s&\\\${datarootdir}&$datarootdir&g' ;; 27972 esac 27973 _ACEOF 27974 27975 # Neutralize VPATH when `$srcdir' = `.'. 27976 # Shell code in configure.ac might set extrasub. 27977 # FIXME: do we really want to maintain this feature? 27978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27979 ac_sed_extra="$ac_vpsub 27980 $extrasub 27981 _ACEOF 27982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27983 :t 27984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27985 s|@configure_input@|$ac_sed_conf_input|;t t 27986 s&@top_builddir@&$ac_top_builddir_sub&;t t 27987 s&@top_build_prefix@&$ac_top_build_prefix&;t t 27988 s&@srcdir@&$ac_srcdir&;t t 27989 s&@abs_srcdir@&$ac_abs_srcdir&;t t 27990 s&@top_srcdir@&$ac_top_srcdir&;t t 27991 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27992 s&@builddir@&$ac_builddir&;t t 27993 s&@abs_builddir@&$ac_abs_builddir&;t t 27994 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27995 $ac_datarootdir_hack 27996 " 27997 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 27998 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27999 28000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28001 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 28002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 28003 "$ac_tmp/out"`; test -z "$ac_out"; } && 28004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28005 which seems to be undefined. Please make sure it is defined" >&5 28006 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28007 which seems to be undefined. Please make sure it is defined" >&2;} 28008 28009 rm -f "$ac_tmp/stdin" 28010 case $ac_file in 28011 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 28012 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 28013 esac \ 28014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28015 ;; 28016 :H) 28017 # 28018 # CONFIG_HEADER 28019 # 28020 if test x"$ac_file" != x-; then 28021 { 28022 printf "%s\n" "/* $configure_input */" >&1 \ 28023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 28024 } >"$ac_tmp/config.h" \ 28025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28026 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 28027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28028 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 28029 else 28030 rm -f "$ac_file" 28031 mv "$ac_tmp/config.h" "$ac_file" \ 28032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28033 fi 28034 else 28035 printf "%s\n" "/* $configure_input */" >&1 \ 28036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 28037 || as_fn_error $? "could not create -" "$LINENO" 5 28038 fi 28039 ;; 28040 28041 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28042 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 28043 ;; 28044 esac 28045 28046 28047 case $ac_file$ac_mode in 28048 "libtool":C) 28049 28050 # See if we are running on zsh, and set the options that allow our 28051 # commands through without removal of \ escapes. 28052 if test -n "${ZSH_VERSION+set}"; then 28053 setopt NO_GLOB_SUBST 28054 fi 28055 28056 cfgfile=${ofile}T 28057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 28058 $RM "$cfgfile" 28059 28060 cat <<_LT_EOF >> "$cfgfile" 28061 #! $SHELL 28062 # Generated automatically by $as_me ($PACKAGE) $VERSION 28063 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 28064 28065 # Provide generalized library-building support services. 28066 # Written by Gordon Matzigkeit, 1996 28067 28068 # Copyright (C) 2024 Free Software Foundation, Inc. 28069 # This is free software; see the source for copying conditions. There is NO 28070 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28071 28072 # GNU Libtool is free software; you can redistribute it and/or modify 28073 # it under the terms of the GNU General Public License as published by 28074 # the Free Software Foundation; either version 2 of the License, or 28075 # (at your option) any later version. 28076 # 28077 # As a special exception to the GNU General Public License, if you 28078 # distribute this file as part of a program or library that is built 28079 # using GNU Libtool, you may include this file under the same 28080 # distribution terms that you use for the rest of that program. 28081 # 28082 # GNU Libtool is distributed in the hope that it will be useful, but 28083 # WITHOUT ANY WARRANTY; without even the implied warranty of 28084 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28085 # GNU General Public License for more details. 28086 # 28087 # You should have received a copy of the GNU General Public License 28088 # along with this program. If not, see <http://www.gnu.org/licenses/>. 28089 28090 28091 # The names of the tagged configurations supported by this script. 28092 available_tags='' 28093 28094 # Configured defaults for sys_lib_dlsearch_path munging. 28095 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 28096 28097 # ### BEGIN LIBTOOL CONFIG 28098 28099 # Which release of libtool.m4 was used? 28100 macro_version=$macro_version 28101 macro_revision=$macro_revision 28102 28103 # Whether or not to build shared libraries. 28104 build_libtool_libs=$enable_shared 28105 28106 # Whether or not to build static libraries. 28107 build_old_libs=$enable_static 28108 28109 # What type of objects to build. 28110 pic_mode=$pic_mode 28111 28112 # Whether or not to optimize for fast installation. 28113 fast_install=$enable_fast_install 28114 28115 # Shared archive member basename,for filename based shared library versioning on AIX. 28116 shared_archive_member_spec=$shared_archive_member_spec 28117 28118 # Shell to use when invoking shell scripts. 28119 SHELL=$lt_SHELL 28120 28121 # An echo program that protects backslashes. 28122 ECHO=$lt_ECHO 28123 28124 # The PATH separator for the build system. 28125 PATH_SEPARATOR=$lt_PATH_SEPARATOR 28126 28127 # The host system. 28128 host_alias=$host_alias 28129 host=$host 28130 host_os=$host_os 28131 28132 # The build system. 28133 build_alias=$build_alias 28134 build=$build 28135 build_os=$build_os 28136 28137 # A sed program that does not truncate output. 28138 SED=$lt_SED 28139 28140 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 28141 Xsed="\$SED -e 1s/^X//" 28142 28143 # A grep program that handles long lines. 28144 GREP=$lt_GREP 28145 28146 # An ERE matcher. 28147 EGREP=$lt_EGREP 28148 28149 # A literal string matcher. 28150 FGREP=$lt_FGREP 28151 28152 # A BSD- or MS-compatible name lister. 28153 NM=$lt_NM 28154 28155 # Whether we need soft or hard links. 28156 LN_S=$lt_LN_S 28157 28158 # What is the maximum length of a command? 28159 max_cmd_len=$max_cmd_len 28160 28161 # Object file suffix (normally "o"). 28162 objext=$ac_objext 28163 28164 # Executable file suffix (normally ""). 28165 exeext=$exeext 28166 28167 # whether the shell understands "unset". 28168 lt_unset=$lt_unset 28169 28170 # turn spaces into newlines. 28171 SP2NL=$lt_lt_SP2NL 28172 28173 # turn newlines into spaces. 28174 NL2SP=$lt_lt_NL2SP 28175 28176 # convert \$build file names to \$host format. 28177 to_host_file_cmd=$lt_cv_to_host_file_cmd 28178 28179 # convert \$build files to toolchain format. 28180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 28181 28182 # A file(cmd) program that detects file types. 28183 FILECMD=$lt_FILECMD 28184 28185 # An object symbol dumper. 28186 OBJDUMP=$lt_OBJDUMP 28187 28188 # Method to check whether dependent libraries are shared objects. 28189 deplibs_check_method=$lt_deplibs_check_method 28190 28191 # Command to use when deplibs_check_method = "file_magic". 28192 file_magic_cmd=$lt_file_magic_cmd 28193 28194 # How to find potential files when deplibs_check_method = "file_magic". 28195 file_magic_glob=$lt_file_magic_glob 28196 28197 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 28198 want_nocaseglob=$lt_want_nocaseglob 28199 28200 # DLL creation program. 28201 DLLTOOL=$lt_DLLTOOL 28202 28203 # Command to associate shared and link libraries. 28204 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 28205 28206 # The archiver. 28207 AR=$lt_AR 28208 28209 # Flags to create an archive (by configure). 28210 lt_ar_flags=$lt_ar_flags 28211 28212 # Flags to create an archive. 28213 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 28214 28215 # How to feed a file listing to the archiver. 28216 archiver_list_spec=$lt_archiver_list_spec 28217 28218 # A symbol stripping program. 28219 STRIP=$lt_STRIP 28220 28221 # Commands used to install an old-style archive. 28222 RANLIB=$lt_RANLIB 28223 old_postinstall_cmds=$lt_old_postinstall_cmds 28224 old_postuninstall_cmds=$lt_old_postuninstall_cmds 28225 28226 # Whether to use a lock for old archive extraction. 28227 lock_old_archive_extraction=$lock_old_archive_extraction 28228 28229 # A C compiler. 28230 LTCC=$lt_CC 28231 28232 # LTCC compiler flags. 28233 LTCFLAGS=$lt_CFLAGS 28234 28235 # Take the output of nm and produce a listing of raw symbols and C names. 28236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 28237 28238 # Transform the output of nm in a proper C declaration. 28239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 28240 28241 # Transform the output of nm into a list of symbols to manually relocate. 28242 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 28243 28244 # Transform the output of nm in a C name address pair. 28245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 28246 28247 # Transform the output of nm in a C name address pair when lib prefix is needed. 28248 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 28249 28250 # The name lister interface. 28251 nm_interface=$lt_lt_cv_nm_interface 28252 28253 # Specify filename containing input files for \$NM. 28254 nm_file_list_spec=$lt_nm_file_list_spec 28255 28256 # The root where to search for dependent libraries,and where our libraries should be installed. 28257 lt_sysroot=$lt_sysroot 28258 28259 # Command to truncate a binary pipe. 28260 lt_truncate_bin=$lt_lt_cv_truncate_bin 28261 28262 # The name of the directory that contains temporary libtool files. 28263 objdir=$objdir 28264 28265 # Used to examine libraries when file_magic_cmd begins with "file". 28266 MAGIC_CMD=$MAGIC_CMD 28267 28268 # Must we lock files when doing compilation? 28269 need_locks=$lt_need_locks 28270 28271 # Manifest tool. 28272 MANIFEST_TOOL=$lt_MANIFEST_TOOL 28273 28274 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 28275 DSYMUTIL=$lt_DSYMUTIL 28276 28277 # Tool to change global to local symbols on Mac OS X. 28278 NMEDIT=$lt_NMEDIT 28279 28280 # Tool to manipulate fat objects and archives on Mac OS X. 28281 LIPO=$lt_LIPO 28282 28283 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 28284 OTOOL=$lt_OTOOL 28285 28286 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 28287 OTOOL64=$lt_OTOOL64 28288 28289 # Old archive suffix (normally "a"). 28290 libext=$libext 28291 28292 # Shared library suffix (normally ".so"). 28293 shrext_cmds=$lt_shrext_cmds 28294 28295 # The commands to extract the exported symbol list from a shared archive. 28296 extract_expsyms_cmds=$lt_extract_expsyms_cmds 28297 28298 # Variables whose values should be saved in libtool wrapper scripts and 28299 # restored at link time. 28300 variables_saved_for_relink=$lt_variables_saved_for_relink 28301 28302 # Do we need the "lib" prefix for modules? 28303 need_lib_prefix=$need_lib_prefix 28304 28305 # Do we need a version for libraries? 28306 need_version=$need_version 28307 28308 # Library versioning type. 28309 version_type=$version_type 28310 28311 # Shared library runtime path variable. 28312 runpath_var=$runpath_var 28313 28314 # Shared library path variable. 28315 shlibpath_var=$shlibpath_var 28316 28317 # Is shlibpath searched before the hard-coded library search path? 28318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 28319 28320 # Format of library name prefix. 28321 libname_spec=$lt_libname_spec 28322 28323 # List of archive names. First name is the real one, the rest are links. 28324 # The last name is the one that the linker finds with -lNAME 28325 library_names_spec=$lt_library_names_spec 28326 28327 # The coded name of the library, if different from the real name. 28328 soname_spec=$lt_soname_spec 28329 28330 # Permission mode override for installation of shared libraries. 28331 install_override_mode=$lt_install_override_mode 28332 28333 # Command to use after installation of a shared archive. 28334 postinstall_cmds=$lt_postinstall_cmds 28335 28336 # Command to use after uninstallation of a shared archive. 28337 postuninstall_cmds=$lt_postuninstall_cmds 28338 28339 # Commands used to finish a libtool library installation in a directory. 28340 finish_cmds=$lt_finish_cmds 28341 28342 # As "finish_cmds", except a single script fragment to be evaled but 28343 # not shown. 28344 finish_eval=$lt_finish_eval 28345 28346 # Whether we should hardcode library paths into libraries. 28347 hardcode_into_libs=$hardcode_into_libs 28348 28349 # Compile-time system search path for libraries. 28350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 28351 28352 # Detected run-time system search path for libraries. 28353 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 28354 28355 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 28356 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 28357 28358 # Whether dlopen is supported. 28359 dlopen_support=$enable_dlopen 28360 28361 # Whether dlopen of programs is supported. 28362 dlopen_self=$enable_dlopen_self 28363 28364 # Whether dlopen of statically linked programs is supported. 28365 dlopen_self_static=$enable_dlopen_self_static 28366 28367 # Commands to strip libraries. 28368 old_striplib=$lt_old_striplib 28369 striplib=$lt_striplib 28370 28371 28372 # The linker used to build libraries. 28373 LD=$lt_LD 28374 28375 # How to create reloadable object files. 28376 reload_flag=$lt_reload_flag 28377 reload_cmds=$lt_reload_cmds 28378 28379 # Commands used to build an old-style archive. 28380 old_archive_cmds=$lt_old_archive_cmds 28381 28382 # A language specific compiler. 28383 CC=$lt_compiler 28384 28385 # Is the compiler the GNU compiler? 28386 with_gcc=$GCC 28387 28388 # Compiler flag to turn off builtin functions. 28389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 28390 28391 # Additional compiler flags for building library objects. 28392 pic_flag=$lt_lt_prog_compiler_pic 28393 28394 # How to pass a linker flag through the compiler. 28395 wl=$lt_lt_prog_compiler_wl 28396 28397 # Compiler flag to prevent dynamic linking. 28398 link_static_flag=$lt_lt_prog_compiler_static 28399 28400 # Does compiler simultaneously support -c and -o options? 28401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 28402 28403 # Whether or not to add -lc for building shared libraries. 28404 build_libtool_need_lc=$archive_cmds_need_lc 28405 28406 # Whether or not to disallow shared libs when runtime libs are static. 28407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 28408 28409 # Compiler flag to allow reflexive dlopens. 28410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 28411 28412 # Compiler flag to generate shared objects directly from archives. 28413 whole_archive_flag_spec=$lt_whole_archive_flag_spec 28414 28415 # Whether the compiler copes with passing no objects directly. 28416 compiler_needs_object=$lt_compiler_needs_object 28417 28418 # Create an old-style archive from a shared archive. 28419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 28420 28421 # Create a temporary old-style archive to link instead of a shared archive. 28422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 28423 28424 # Commands used to build a shared archive. 28425 archive_cmds=$lt_archive_cmds 28426 archive_expsym_cmds=$lt_archive_expsym_cmds 28427 28428 # Commands used to build a loadable module if different from building 28429 # a shared archive. 28430 module_cmds=$lt_module_cmds 28431 module_expsym_cmds=$lt_module_expsym_cmds 28432 28433 # Whether we are building with GNU ld or not. 28434 with_gnu_ld=$lt_with_gnu_ld 28435 28436 # Flag that allows shared libraries with undefined symbols to be built. 28437 allow_undefined_flag=$lt_allow_undefined_flag 28438 28439 # Flag that enforces no undefined symbols. 28440 no_undefined_flag=$lt_no_undefined_flag 28441 28442 # Flag to hardcode \$libdir into a binary during linking. 28443 # This must work even if \$libdir does not exist 28444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 28445 28446 # Whether we need a single "-rpath" flag with a separated argument. 28447 hardcode_libdir_separator=$lt_hardcode_libdir_separator 28448 28449 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28450 # DIR into the resulting binary. 28451 hardcode_direct=$hardcode_direct 28452 28453 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28454 # DIR into the resulting binary and the resulting library dependency is 28455 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 28456 # library is relocated. 28457 hardcode_direct_absolute=$hardcode_direct_absolute 28458 28459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28460 # into the resulting binary. 28461 hardcode_minus_L=$hardcode_minus_L 28462 28463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28464 # into the resulting binary. 28465 hardcode_shlibpath_var=$hardcode_shlibpath_var 28466 28467 # Set to "yes" if building a shared library automatically hardcodes DIR 28468 # into the library and all subsequent libraries and executables linked 28469 # against it. 28470 hardcode_automatic=$hardcode_automatic 28471 28472 # Set to yes if linker adds runtime paths of dependent libraries 28473 # to runtime path list. 28474 inherit_rpath=$inherit_rpath 28475 28476 # Whether libtool must link a program against all its dependency libraries. 28477 link_all_deplibs=$link_all_deplibs 28478 28479 # Set to "yes" if exported symbols are required. 28480 always_export_symbols=$always_export_symbols 28481 28482 # The commands to list exported symbols. 28483 export_symbols_cmds=$lt_export_symbols_cmds 28484 28485 # Symbols that should not be listed in the preloaded symbols. 28486 exclude_expsyms=$lt_exclude_expsyms 28487 28488 # Symbols that must always be exported. 28489 include_expsyms=$lt_include_expsyms 28490 28491 # Commands necessary for linking programs (against libraries) with templates. 28492 prelink_cmds=$lt_prelink_cmds 28493 28494 # Commands necessary for finishing linking programs. 28495 postlink_cmds=$lt_postlink_cmds 28496 28497 # Specify filename containing input files. 28498 file_list_spec=$lt_file_list_spec 28499 28500 # How to hardcode a shared library path into an executable. 28501 hardcode_action=$hardcode_action 28502 28503 # ### END LIBTOOL CONFIG 28504 28505 _LT_EOF 28506 28507 cat <<'_LT_EOF' >> "$cfgfile" 28508 28509 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 28510 28511 # func_munge_path_list VARIABLE PATH 28512 # ----------------------------------- 28513 # VARIABLE is name of variable containing _space_ separated list of 28514 # directories to be munged by the contents of PATH, which is string 28515 # having a format: 28516 # "DIR[:DIR]:" 28517 # string "DIR[ DIR]" will be prepended to VARIABLE 28518 # ":DIR[:DIR]" 28519 # string "DIR[ DIR]" will be appended to VARIABLE 28520 # "DIRP[:DIRP]::[DIRA:]DIRA" 28521 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 28522 # "DIRA[ DIRA]" will be appended to VARIABLE 28523 # "DIR[:DIR]" 28524 # VARIABLE will be replaced by "DIR[ DIR]" 28525 func_munge_path_list () 28526 { 28527 case x$2 in 28528 x) 28529 ;; 28530 *:) 28531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 28532 ;; 28533 x:*) 28534 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 28535 ;; 28536 *::*) 28537 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 28538 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 28539 ;; 28540 *) 28541 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 28542 ;; 28543 esac 28544 } 28545 28546 28547 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 28548 func_cc_basename () 28549 { 28550 for cc_temp in $*""; do 28551 case $cc_temp in 28552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 28553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 28554 \-*) ;; 28555 *) break;; 28556 esac 28557 done 28558 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 28559 } 28560 28561 28562 # ### END FUNCTIONS SHARED WITH CONFIGURE 28563 28564 _LT_EOF 28565 28566 case $host_os in 28567 aix3*) 28568 cat <<\_LT_EOF >> "$cfgfile" 28569 # AIX sometimes has problems with the GCC collect2 program. For some 28570 # reason, if we set the COLLECT_NAMES environment variable, the problems 28571 # vanish in a puff of smoke. 28572 if test set != "${COLLECT_NAMES+set}"; then 28573 COLLECT_NAMES= 28574 export COLLECT_NAMES 28575 fi 28576 _LT_EOF 28577 ;; 28578 esac 28579 28580 28581 28582 ltmain=$ac_aux_dir/ltmain.sh 28583 28584 28585 # We use sed instead of cat because bash on DJGPP gets confused if 28586 # if finds mixed CR/LF and LF-only lines. Since sed operates in 28587 # text mode, it properly converts lines to CR/LF. This bash problem 28588 # is reportedly fixed, but why not run on old versions too? 28589 $SED '$q' "$ltmain" >> "$cfgfile" \ 28590 || (rm -f "$cfgfile"; exit 1) 28591 28592 mv -f "$cfgfile" "$ofile" || 28593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 28594 chmod +x "$ofile" 28595 28596 ;; 28597 "disable-rpath":C) 28598 sed < libtool > libtool-2 \ 28599 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 28600 mv libtool-2 libtool 28601 chmod 755 libtool 28602 libtool="./libtool" 28603 ;; 28604 28605 esac 28606 done # for ac_tag 28607 28608 28609 as_fn_exit 0 28610 _ACEOF 28611 ac_clean_files=$ac_clean_files_save 28612 28613 test $ac_write_fail = 0 || 28614 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 28615 28616 28617 # configure is writing to config.log, and then calls config.status. 28618 # config.status does its own redirection, appending to config.log. 28619 # Unfortunately, on DOS this fails, as config.log is still kept open 28620 # by configure, so config.status won't be able to write to it; its 28621 # output is simply discarded. So we exec the FD to /dev/null, 28622 # effectively closing config.log, so it can be properly (re)opened and 28623 # appended to by config.status. When coming back to configure, we 28624 # need to make the FD available again. 28625 if test "$no_create" != yes; then 28626 ac_cs_success=: 28627 ac_config_status_args= 28628 test "$silent" = yes && 28629 ac_config_status_args="$ac_config_status_args --quiet" 28630 exec 5>/dev/null 28631 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28632 exec 5>>config.log 28633 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28634 # would make configure fail if this is the last instruction. 28635 $ac_cs_success || as_fn_exit 1 28636 fi 28637 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28639 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28640 fi 28641 28642 28643