configure (1338276B)
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for curl -. 4 # 5 # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>. 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 # Copyright (C) Daniel Stenberg, <daniel@haxx.se> 16 # This configure script may be copied, distributed and modified under the 17 # terms of the curl license; see COPYING for more details 18 19 ## -------------------------------- ## 20 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ## 21 ## -------------------------------- ## 22 23 xc_configure_preamble_ver_major='1' 24 xc_configure_preamble_ver_minor='0' 25 26 # 27 # Set IFS to space, tab and newline. 28 # 29 30 xc_space=' ' 31 xc_tab=' ' 32 xc_newline=' 33 ' 34 IFS="$xc_space$xc_tab$xc_newline" 35 36 # 37 # Set internationalization behavior variables. 38 # 39 40 LANG='C' 41 LC_ALL='C' 42 LANGUAGE='C' 43 export LANG 44 export LC_ALL 45 export LANGUAGE 46 47 # 48 # Some useful variables. 49 # 50 51 xc_msg_warn='configure: WARNING:' 52 xc_msg_abrt='Can not continue.' 53 xc_msg_err='configure: error:' 54 55 # 56 # Verify that 'echo' command is available, otherwise abort. 57 # 58 59 xc_tst_str='unknown' 60 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 61 case "x$xc_tst_str" in # (( 62 xsuccess) 63 : 64 ;; 65 *) 66 # Try built-in echo, and fail. 67 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2 68 exit 1 69 ;; 70 esac 71 72 # 73 # Verify that 'test' command is available, otherwise abort. 74 # 75 76 xc_tst_str='unknown' 77 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 78 case "x$xc_tst_str" in # (( 79 xsuccess) 80 : 81 ;; 82 *) 83 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2 84 exit 1 85 ;; 86 esac 87 88 # 89 # Verify that 'PATH' variable is set, otherwise abort. 90 # 91 92 xc_tst_str='unknown' 93 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success' 94 case "x$xc_tst_str" in # (( 95 xsuccess) 96 : 97 ;; 98 *) 99 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2 100 exit 1 101 ;; 102 esac 103 104 # 105 # Verify that 'expr' command is available, otherwise abort. 106 # 107 108 xc_tst_str='unknown' 109 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null` 110 case "x$xc_tst_str" in # (( 111 x7) 112 : 113 ;; 114 *) 115 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2 116 exit 1 117 ;; 118 esac 119 120 # 121 # Verify that 'sed' utility is found within 'PATH', otherwise abort. 122 # 123 124 xc_tst_str='unknown' 125 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 126 | sed -e 's:unknown:success:' 2>/dev/null` 127 case "x$xc_tst_str" in # (( 128 xsuccess) 129 : 130 ;; 131 *) 132 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2 133 exit 1 134 ;; 135 esac 136 137 # 138 # Verify that 'grep' utility is found within 'PATH', otherwise abort. 139 # 140 141 xc_tst_str='unknown' 142 (`echo "$xc_tst_str" 2>/dev/null \ 143 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success' 144 case "x$xc_tst_str" in # (( 145 xsuccess) 146 : 147 ;; 148 *) 149 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2 150 exit 1 151 ;; 152 esac 153 154 # 155 # Verify that 'tr' utility is found within 'PATH', otherwise abort. 156 # 157 158 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10" 159 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 160 | tr -d "0123456789$xc_tab" 2>/dev/null` 161 case "x$xc_tst_str" in # (( 162 xsuccess) 163 : 164 ;; 165 *) 166 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2 167 exit 1 168 ;; 169 esac 170 171 # 172 # Verify that 'wc' utility is found within 'PATH', otherwise abort. 173 # 174 175 xc_tst_str='unknown unknown unknown unknown' 176 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 177 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null` 178 case "x$xc_tst_str" in # (( 179 x4) 180 : 181 ;; 182 *) 183 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2 184 exit 1 185 ;; 186 esac 187 188 # 189 # Verify that 'cat' utility is found within 'PATH', otherwise abort. 190 # 191 192 xc_tst_str='unknown' 193 xc_tst_str=`cat <<_EOT 2>/dev/null \ 194 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null 195 unknown 196 unknown 197 unknown 198 _EOT` 199 case "x$xc_tst_str" in # (( 200 x3) 201 : 202 ;; 203 *) 204 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2 205 exit 1 206 ;; 207 esac 208 209 # 210 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set. 211 # 212 213 # Directory count in 'PATH' when using a colon separator. 214 xc_tst_dirs_col='x' 215 xc_tst_prev_IFS=$IFS; IFS=':' 216 for xc_tst_dir in $PATH; do 217 IFS=$xc_tst_prev_IFS 218 xc_tst_dirs_col="x$xc_tst_dirs_col" 219 done 220 IFS=$xc_tst_prev_IFS 221 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'` 222 223 # Directory count in 'PATH' when using a semicolon separator. 224 xc_tst_dirs_sem='x' 225 xc_tst_prev_IFS=$IFS; IFS=';' 226 for xc_tst_dir in $PATH; do 227 IFS=$xc_tst_prev_IFS 228 xc_tst_dirs_sem="x$xc_tst_dirs_sem" 229 done 230 IFS=$xc_tst_prev_IFS 231 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'` 232 233 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then 234 # When both counting methods give the same result we do not want to 235 # chose one over the other, and consider auto-detection not possible. 236 if test -z "$PATH_SEPARATOR"; then 237 # User should provide the correct 'PATH_SEPARATOR' definition. 238 # Until then, guess that it is colon! 239 echo "$xc_msg_warn path separator not determined, guessing colon" >&2 240 PATH_SEPARATOR=':' 241 fi 242 else 243 # Separator with the greater directory count is the auto-detected one. 244 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then 245 xc_tst_auto_separator=';' 246 else 247 xc_tst_auto_separator=':' 248 fi 249 if test -z "$PATH_SEPARATOR"; then 250 # Simply use the auto-detected one when not already set. 251 PATH_SEPARATOR=$xc_tst_auto_separator 252 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then 253 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2 254 fi 255 fi 256 xc_PATH_SEPARATOR=$PATH_SEPARATOR 257 258 xc_configure_preamble_result='yes' 259 260 261 ## -------------------- ## 262 ## M4sh Initialization. ## 263 ## -------------------- ## 264 265 # Be more Bourne compatible 266 DUALCASE=1; export DUALCASE # for MKS sh 267 as_nop=: 268 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 269 then : 270 emulate sh 271 NULLCMD=: 272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 273 # is contrary to our usage. Disable this feature. 274 alias -g '${1+"$@"}'='"$@"' 275 setopt NO_GLOB_SUBST 276 else $as_nop 277 case `(set -o) 2>/dev/null` in #( 278 *posix*) : 279 set -o posix ;; #( 280 *) : 281 ;; 282 esac 283 fi 284 285 286 287 # Reset variables that may have inherited troublesome values from 288 # the environment. 289 290 # IFS needs to be set, to space, tab, and newline, in precisely that order. 291 # (If _AS_PATH_WALK were called with IFS unset, it would have the 292 # side effect of setting IFS to empty, thus disabling word splitting.) 293 # Quoting is to prevent editors from complaining about space-tab. 294 as_nl=' 295 ' 296 export as_nl 297 IFS=" "" $as_nl" 298 299 PS1='$ ' 300 PS2='> ' 301 PS4='+ ' 302 303 # Ensure predictable behavior from utilities with locale-dependent output. 304 LC_ALL=C 305 export LC_ALL 306 LANGUAGE=C 307 export LANGUAGE 308 309 # We cannot yet rely on "unset" to work, but we need these variables 310 # to be unset--not just set to an empty or harmless value--now, to 311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 312 # also avoids known problems related to "unset" and subshell syntax 313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 315 do eval test \${$as_var+y} \ 316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 317 done 318 319 # Ensure that fds 0, 1, and 2 are open. 320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 322 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 323 324 325 326 # Find who we are. Look in the path if we contain no directory separator. 327 as_myself= 328 case $0 in #(( 329 *[\\/]* ) as_myself=$0 ;; 330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 331 for as_dir in $PATH 332 do 333 IFS=$as_save_IFS 334 case $as_dir in #((( 335 '') as_dir=./ ;; 336 */) ;; 337 *) as_dir=$as_dir/ ;; 338 esac 339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 340 done 341 IFS=$as_save_IFS 342 343 ;; 344 esac 345 # We did not find ourselves, most probably we were run as `sh COMMAND' 346 # in which case we are not to be found in the path. 347 if test "x$as_myself" = x; then 348 as_myself=$0 349 fi 350 if test ! -f "$as_myself"; then 351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 352 exit 1 353 fi 354 355 356 # Use a proper internal environment variable to ensure we don't fall 357 # into an infinite loop, continuously re-executing ourselves. 358 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 359 _as_can_reexec=no; export _as_can_reexec; 360 # We cannot yet assume a decent shell, so we have to provide a 361 # neutralization value for shells without unset; and this also 362 # works around shells that cannot unset nonexistent variables. 363 # Preserve -v and -x to the replacement shell. 364 BASH_ENV=/dev/null 365 ENV=/dev/null 366 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 367 case $- in # (((( 368 *v*x* | *x*v* ) as_opts=-vx ;; 369 *v* ) as_opts=-v ;; 370 *x* ) as_opts=-x ;; 371 * ) as_opts= ;; 372 esac 373 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 374 # Admittedly, this is quite paranoid, since all the known shells bail 375 # out after a failed `exec'. 376 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 377 exit 255 378 fi 379 # We don't want this to propagate to other subprocesses. 380 { _as_can_reexec=; unset _as_can_reexec;} 381 if test "x$CONFIG_SHELL" = x; then 382 as_bourne_compatible="as_nop=: 383 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 384 then : 385 emulate sh 386 NULLCMD=: 387 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 388 # is contrary to our usage. Disable this feature. 389 alias -g '\${1+\"\$@\"}'='\"\$@\"' 390 setopt NO_GLOB_SUBST 391 else \$as_nop 392 case \`(set -o) 2>/dev/null\` in #( 393 *posix*) : 394 set -o posix ;; #( 395 *) : 396 ;; 397 esac 398 fi 399 " 400 as_required="as_fn_return () { (exit \$1); } 401 as_fn_success () { as_fn_return 0; } 402 as_fn_failure () { as_fn_return 1; } 403 as_fn_ret_success () { return 0; } 404 as_fn_ret_failure () { return 1; } 405 406 exitcode=0 407 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 408 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 409 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 410 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 411 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 412 then : 413 414 else \$as_nop 415 exitcode=1; echo positional parameters were not saved. 416 fi 417 test x\$exitcode = x0 || exit 1 418 blah=\$(echo \$(echo blah)) 419 test x\"\$blah\" = xblah || exit 1 420 test -x / || exit 1" 421 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 422 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 423 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 424 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 425 test \$(( 1 + 1 )) = 2 || exit 1 426 427 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 429 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 430 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 431 PATH=/empty FPATH=/empty; export PATH FPATH 432 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 433 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 434 if (eval "$as_required") 2>/dev/null 435 then : 436 as_have_required=yes 437 else $as_nop 438 as_have_required=no 439 fi 440 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 441 then : 442 443 else $as_nop 444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 445 as_found=false 446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 447 do 448 IFS=$as_save_IFS 449 case $as_dir in #((( 450 '') as_dir=./ ;; 451 */) ;; 452 *) as_dir=$as_dir/ ;; 453 esac 454 as_found=: 455 case $as_dir in #( 456 /*) 457 for as_base in sh bash ksh sh5; do 458 # Try only shells that exist, to save several forks. 459 as_shell=$as_dir$as_base 460 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 461 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 462 then : 463 CONFIG_SHELL=$as_shell as_have_required=yes 464 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 465 then : 466 break 2 467 fi 468 fi 469 done;; 470 esac 471 as_found=false 472 done 473 IFS=$as_save_IFS 474 if $as_found 475 then : 476 477 else $as_nop 478 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 479 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 480 then : 481 CONFIG_SHELL=$SHELL as_have_required=yes 482 fi 483 fi 484 485 486 if test "x$CONFIG_SHELL" != x 487 then : 488 export CONFIG_SHELL 489 # We cannot yet assume a decent shell, so we have to provide a 490 # neutralization value for shells without unset; and this also 491 # works around shells that cannot unset nonexistent variables. 492 # Preserve -v and -x to the replacement shell. 493 BASH_ENV=/dev/null 494 ENV=/dev/null 495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 496 case $- in # (((( 497 *v*x* | *x*v* ) as_opts=-vx ;; 498 *v* ) as_opts=-v ;; 499 *x* ) as_opts=-x ;; 500 * ) as_opts= ;; 501 esac 502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 503 # Admittedly, this is quite paranoid, since all the known shells bail 504 # out after a failed `exec'. 505 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 506 exit 255 507 fi 508 509 if test x$as_have_required = xno 510 then : 511 printf "%s\n" "$0: This script requires a shell more modern than all" 512 printf "%s\n" "$0: the shells that I found on your system." 513 if test ${ZSH_VERSION+y} ; then 514 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 515 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 516 else 517 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl 518 $0: mailing list: https://curl.se/mail/ about your system, 519 $0: including any error possibly output before this 520 $0: message. Then install a modern shell, or manually run 521 $0: the script under such a shell if you do have one." 522 fi 523 exit 1 524 fi 525 fi 526 fi 527 SHELL=${CONFIG_SHELL-/bin/sh} 528 export SHELL 529 # Unset more variables known to interfere with behavior of common tools. 530 CLICOLOR_FORCE= GREP_OPTIONS= 531 unset CLICOLOR_FORCE GREP_OPTIONS 532 533 ## --------------------- ## 534 ## M4sh Shell Functions. ## 535 ## --------------------- ## 536 # as_fn_unset VAR 537 # --------------- 538 # Portably unset VAR. 539 as_fn_unset () 540 { 541 { eval $1=; unset $1;} 542 } 543 as_unset=as_fn_unset 544 545 546 # as_fn_set_status STATUS 547 # ----------------------- 548 # Set $? to STATUS, without forking. 549 as_fn_set_status () 550 { 551 return $1 552 } # as_fn_set_status 553 554 # as_fn_exit STATUS 555 # ----------------- 556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 557 as_fn_exit () 558 { 559 set +e 560 as_fn_set_status $1 561 exit $1 562 } # as_fn_exit 563 # as_fn_nop 564 # --------- 565 # Do nothing but, unlike ":", preserve the value of $?. 566 as_fn_nop () 567 { 568 return $? 569 } 570 as_nop=as_fn_nop 571 572 # as_fn_mkdir_p 573 # ------------- 574 # Create "$as_dir" as a directory, including parents if necessary. 575 as_fn_mkdir_p () 576 { 577 578 case $as_dir in #( 579 -*) as_dir=./$as_dir;; 580 esac 581 test -d "$as_dir" || eval $as_mkdir_p || { 582 as_dirs= 583 while :; do 584 case $as_dir in #( 585 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 586 *) as_qdir=$as_dir;; 587 esac 588 as_dirs="'$as_qdir' $as_dirs" 589 as_dir=`$as_dirname -- "$as_dir" || 590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 591 X"$as_dir" : 'X\(//\)[^/]' \| \ 592 X"$as_dir" : 'X\(//\)$' \| \ 593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 594 printf "%s\n" X"$as_dir" | 595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 596 s//\1/ 597 q 598 } 599 /^X\(\/\/\)[^/].*/{ 600 s//\1/ 601 q 602 } 603 /^X\(\/\/\)$/{ 604 s//\1/ 605 q 606 } 607 /^X\(\/\).*/{ 608 s//\1/ 609 q 610 } 611 s/.*/./; q'` 612 test -d "$as_dir" && break 613 done 614 test -z "$as_dirs" || eval "mkdir $as_dirs" 615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 616 617 618 } # as_fn_mkdir_p 619 620 # as_fn_executable_p FILE 621 # ----------------------- 622 # Test if FILE is an executable regular file. 623 as_fn_executable_p () 624 { 625 test -f "$1" && test -x "$1" 626 } # as_fn_executable_p 627 # as_fn_append VAR VALUE 628 # ---------------------- 629 # Append the text in VALUE to the end of the definition contained in VAR. Take 630 # advantage of any shell optimizations that allow amortized linear growth over 631 # repeated appends, instead of the typical quadratic growth present in naive 632 # implementations. 633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 634 then : 635 eval 'as_fn_append () 636 { 637 eval $1+=\$2 638 }' 639 else $as_nop 640 as_fn_append () 641 { 642 eval $1=\$$1\$2 643 } 644 fi # as_fn_append 645 646 # as_fn_arith ARG... 647 # ------------------ 648 # Perform arithmetic evaluation on the ARGs, and store the result in the 649 # global $as_val. Take advantage of shells that can avoid forks. The arguments 650 # must be portable across $(()) and expr. 651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 652 then : 653 eval 'as_fn_arith () 654 { 655 as_val=$(( $* )) 656 }' 657 else $as_nop 658 as_fn_arith () 659 { 660 as_val=`expr "$@" || test $? -eq 1` 661 } 662 fi # as_fn_arith 663 664 # as_fn_nop 665 # --------- 666 # Do nothing but, unlike ":", preserve the value of $?. 667 as_fn_nop () 668 { 669 return $? 670 } 671 as_nop=as_fn_nop 672 673 # as_fn_error STATUS ERROR [LINENO LOG_FD] 674 # ---------------------------------------- 675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 677 # script with STATUS, using 1 if that was 0. 678 as_fn_error () 679 { 680 as_status=$1; test $as_status -eq 0 && as_status=1 681 if test "$4"; then 682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 684 fi 685 printf "%s\n" "$as_me: error: $2" >&2 686 as_fn_exit $as_status 687 } # as_fn_error 688 689 if expr a : '\(a\)' >/dev/null 2>&1 && 690 test "X`expr 00001 : '.*\(...\)'`" = X001; then 691 as_expr=expr 692 else 693 as_expr=false 694 fi 695 696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 697 as_basename=basename 698 else 699 as_basename=false 700 fi 701 702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 703 as_dirname=dirname 704 else 705 as_dirname=false 706 fi 707 708 as_me=`$as_basename -- "$0" || 709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 710 X"$0" : 'X\(//\)$' \| \ 711 X"$0" : 'X\(/\)' \| . 2>/dev/null || 712 printf "%s\n" X/"$0" | 713 sed '/^.*\/\([^/][^/]*\)\/*$/{ 714 s//\1/ 715 q 716 } 717 /^X\/\(\/\/\)$/{ 718 s//\1/ 719 q 720 } 721 /^X\/\(\/\).*/{ 722 s//\1/ 723 q 724 } 725 s/.*/./; q'` 726 727 # Avoid depending upon Character Ranges. 728 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 731 as_cr_digits='0123456789' 732 as_cr_alnum=$as_cr_Letters$as_cr_digits 733 734 735 as_lineno_1=$LINENO as_lineno_1a=$LINENO 736 as_lineno_2=$LINENO as_lineno_2a=$LINENO 737 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 738 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 739 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 740 sed -n ' 741 p 742 /[$]LINENO/= 743 ' <$as_myself | 744 sed ' 745 s/[$]LINENO.*/&-/ 746 t lineno 747 b 748 :lineno 749 N 750 :loop 751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 752 t loop 753 s/-\n.*// 754 ' >$as_me.lineno && 755 chmod +x "$as_me.lineno" || 756 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 757 758 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 759 # already done that, so ensure we don't try to do so again and fall 760 # in an infinite loop. This has already happened in practice. 761 _as_can_reexec=no; export _as_can_reexec 762 # Don't try to exec as it changes $[0], causing all sort of problems 763 # (the dirname of $[0] is not the place where we might find the 764 # original and so on. Autoconf is especially sensitive to this). 765 . "./$as_me.lineno" 766 # Exit status is that of the last command. 767 exit 768 } 769 770 771 # Determine whether it's possible to make 'echo' print without a newline. 772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 773 # for compatibility with existing Makefiles. 774 ECHO_C= ECHO_N= ECHO_T= 775 case `echo -n x` in #((((( 776 -n*) 777 case `echo 'xy\c'` in 778 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 779 xy) ECHO_C='\c';; 780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 781 ECHO_T=' ';; 782 esac;; 783 *) 784 ECHO_N='-n';; 785 esac 786 787 # For backward compatibility with old third-party macros, we provide 788 # the shell variables $as_echo and $as_echo_n. New code should use 789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 790 as_echo='printf %s\n' 791 as_echo_n='printf %s' 792 793 794 rm -f conf$$ conf$$.exe conf$$.file 795 if test -d conf$$.dir; then 796 rm -f conf$$.dir/conf$$.file 797 else 798 rm -f conf$$.dir 799 mkdir conf$$.dir 2>/dev/null 800 fi 801 if (echo >conf$$.file) 2>/dev/null; then 802 if ln -s conf$$.file conf$$ 2>/dev/null; then 803 as_ln_s='ln -s' 804 # ... but there are two gotchas: 805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 807 # In both cases, we have to default to `cp -pR'. 808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 809 as_ln_s='cp -pR' 810 elif ln conf$$.file conf$$ 2>/dev/null; then 811 as_ln_s=ln 812 else 813 as_ln_s='cp -pR' 814 fi 815 else 816 as_ln_s='cp -pR' 817 fi 818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 819 rmdir conf$$.dir 2>/dev/null 820 821 if mkdir -p . 2>/dev/null; then 822 as_mkdir_p='mkdir -p "$as_dir"' 823 else 824 test -d ./-p && rmdir ./-p 825 as_mkdir_p=false 826 fi 827 828 as_test_x='test -x' 829 as_executable_p=as_fn_executable_p 830 831 # Sed expression to map a string onto a valid CPP name. 832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 833 834 # Sed expression to map a string onto a valid variable name. 835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 836 837 SHELL=${CONFIG_SHELL-/bin/sh} 838 839 840 test -n "$DJDIR" || exec 7<&0 </dev/null 841 exec 6>&1 842 843 # Name of the host. 844 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 845 # so uname gets run too. 846 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 847 848 # 849 # Initializations. 850 # 851 ac_default_prefix=/usr/local 852 ac_clean_files= 853 ac_config_libobj_dir=. 854 LIBOBJS= 855 cross_compiling=no 856 subdirs= 857 MFLAGS= 858 MAKEFLAGS= 859 860 # Identity of this package. 861 PACKAGE_NAME='curl' 862 PACKAGE_TARNAME='curl' 863 PACKAGE_VERSION='-' 864 PACKAGE_STRING='curl -' 865 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/' 866 PACKAGE_URL='' 867 868 ac_unique_file="lib/urldata.h" 869 # Factoring default headers for most tests. 870 ac_includes_default="\ 871 #include <stddef.h> 872 #ifdef HAVE_STDIO_H 873 # include <stdio.h> 874 #endif 875 #ifdef HAVE_STDLIB_H 876 # include <stdlib.h> 877 #endif 878 #ifdef HAVE_STRING_H 879 # include <string.h> 880 #endif 881 #ifdef HAVE_INTTYPES_H 882 # include <inttypes.h> 883 #endif 884 #ifdef HAVE_STDINT_H 885 # include <stdint.h> 886 #endif 887 #ifdef HAVE_STRINGS_H 888 # include <strings.h> 889 #endif 890 #ifdef HAVE_SYS_TYPES_H 891 # include <sys/types.h> 892 #endif 893 #ifdef HAVE_SYS_STAT_H 894 # include <sys/stat.h> 895 #endif 896 #ifdef HAVE_UNISTD_H 897 # include <unistd.h> 898 #endif" 899 900 ac_header_c_list= 901 ac_subst_vars='am__EXEEXT_FALSE 902 am__EXEEXT_TRUE 903 LTLIBOBJS 904 LIBOBJS 905 CURL_CPP 906 SSL_BACKENDS 907 SUPPORT_PROTOCOLS 908 SUPPORT_FEATURES 909 LIBCURL_PC_LIBS 910 LIBCURL_PC_REQUIRES 911 LIBCURL_PC_REQUIRES_PRIVATE 912 ENABLE_STATIC 913 ENABLE_SHARED 914 CROSSCOMPILING_FALSE 915 CROSSCOMPILING_TRUE 916 BLANK_AT_MAKETIME 917 CURL_NETWORK_AND_TIME_LIBS 918 LIBCURL_PC_LIBS_PRIVATE 919 LIBCURL_PC_LDFLAGS_PRIVATE 920 CFLAG_CURL_SYMBOL_HIDING 921 DOING_CURL_SYMBOL_HIDING_FALSE 922 DOING_CURL_SYMBOL_HIDING_TRUE 923 USE_MANUAL_FALSE 924 USE_MANUAL_TRUE 925 BUILD_DOCS_FALSE 926 BUILD_DOCS_TRUE 927 PERL 928 USE_FISH_COMPLETION_FALSE 929 USE_FISH_COMPLETION_TRUE 930 FISH_FUNCTIONS_DIR 931 USE_ZSH_COMPLETION_FALSE 932 USE_ZSH_COMPLETION_TRUE 933 ZSH_FUNCTIONS_DIR 934 USE_UNICODE_FALSE 935 USE_UNICODE_TRUE 936 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE 937 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE 938 CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME 939 CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX 940 USE_GSASL_FALSE 941 USE_GSASL_TRUE 942 USE_LIBPSL_FALSE 943 USE_LIBPSL_TRUE 944 CURL_CA_EMBED_SET_FALSE 945 CURL_CA_EMBED_SET_TRUE 946 CURL_CA_EMBED 947 CURL_CA_BUNDLE 948 BUILD_STUB_GSS_FALSE 949 BUILD_STUB_GSS_TRUE 950 ZLIB_LIBS 951 HAVE_LIBZ_FALSE 952 HAVE_LIBZ_TRUE 953 HAVE_LIBZ 954 PKGCONFIG 955 USE_UNITY_FALSE 956 USE_UNITY_TRUE 957 HAVE_WINDRES_FALSE 958 HAVE_WINDRES_TRUE 959 BUILD_UNITTESTS_FALSE 960 BUILD_UNITTESTS_TRUE 961 CURL_WERROR_FALSE 962 CURL_WERROR_TRUE 963 CURL_CFLAG_EXTRAS 964 DOING_NATIVE_WINDOWS_FALSE 965 DOING_NATIVE_WINDOWS_TRUE 966 LIBCURL_PC_CFLAGS 967 LIBCURL_PC_CFLAGS_PRIVATE 968 USE_CPPFLAG_CURL_STATICLIB_FALSE 969 USE_CPPFLAG_CURL_STATICLIB_TRUE 970 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE 971 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE 972 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE 973 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE 974 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE 975 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE 976 NOT_CURL_CI_FALSE 977 NOT_CURL_CI_TRUE 978 RC 979 LT_SYS_LIBRARY_PATH 980 OTOOL64 981 OTOOL 982 LIPO 983 NMEDIT 984 DSYMUTIL 985 MANIFEST_TOOL 986 RANLIB 987 ac_ct_AR 988 FILECMD 989 LN_S 990 NM 991 ac_ct_DUMPBIN 992 DUMPBIN 993 LD 994 FGREP 995 LIBTOOL 996 OBJDUMP 997 DLLTOOL 998 AS 999 AR_FLAGS 1000 host_os 1001 host_vendor 1002 host_cpu 1003 host 1004 build_os 1005 build_vendor 1006 build_cpu 1007 build 1008 HTTPD_NGHTTPX 1009 HTTPD 1010 APXS 1011 VSFTPD 1012 CADDY 1013 TEST_NGHTTPX 1014 VERSIONNUM 1015 CURLVERSION 1016 CSCOPE 1017 ETAGS 1018 CTAGS 1019 am__fastdepCC_FALSE 1020 am__fastdepCC_TRUE 1021 CCDEPMODE 1022 am__nodep 1023 AMDEPBACKSLASH 1024 AMDEP_FALSE 1025 AMDEP_TRUE 1026 am__include 1027 DEPDIR 1028 am__untar 1029 am__tar 1030 AMTAR 1031 am__leading_dot 1032 SET_MAKE 1033 AWK 1034 mkdir_p 1035 MKDIR_P 1036 INSTALL_STRIP_PROGRAM 1037 STRIP 1038 install_sh 1039 MAKEINFO 1040 AUTOHEADER 1041 AUTOMAKE 1042 AUTOCONF 1043 ACLOCAL 1044 VERSION 1045 PACKAGE 1046 CYGPATH_W 1047 am__isrc 1048 LCOV 1049 GCOV 1050 CPP 1051 OBJEXT 1052 EXEEXT 1053 ac_ct_CC 1054 CPPFLAGS 1055 LDFLAGS 1056 CFLAGS 1057 CC 1058 INSTALL_DATA 1059 INSTALL_SCRIPT 1060 INSTALL_PROGRAM 1061 libext 1062 AR 1063 EGREP 1064 GREP 1065 SED 1066 CONFIGURE_OPTIONS 1067 CURLDEBUG_FALSE 1068 CURLDEBUG_TRUE 1069 DEBUGBUILD_FALSE 1070 DEBUGBUILD_TRUE 1071 AM_BACKSLASH 1072 AM_DEFAULT_VERBOSITY 1073 AM_DEFAULT_V 1074 AM_V 1075 MAINT 1076 MAINTAINER_MODE_FALSE 1077 MAINTAINER_MODE_TRUE 1078 target_alias 1079 host_alias 1080 build_alias 1081 LIBS 1082 ECHO_T 1083 ECHO_N 1084 ECHO_C 1085 DEFS 1086 mandir 1087 localedir 1088 libdir 1089 psdir 1090 pdfdir 1091 dvidir 1092 htmldir 1093 infodir 1094 docdir 1095 oldincludedir 1096 includedir 1097 runstatedir 1098 localstatedir 1099 sharedstatedir 1100 sysconfdir 1101 datadir 1102 datarootdir 1103 libexecdir 1104 sbindir 1105 bindir 1106 program_transform_name 1107 prefix 1108 exec_prefix 1109 PACKAGE_URL 1110 PACKAGE_BUGREPORT 1111 PACKAGE_STRING 1112 PACKAGE_VERSION 1113 PACKAGE_TARNAME 1114 PACKAGE_NAME 1115 SHELL 1116 PATH_SEPARATOR 1117 am__quote' 1118 ac_subst_files='' 1119 ac_user_opts=' 1120 enable_option_checking 1121 enable_maintainer_mode 1122 enable_silent_rules 1123 enable_debug 1124 enable_optimize 1125 enable_warnings 1126 enable_werror 1127 enable_curldebug 1128 enable_symbol_hiding 1129 enable_ares 1130 enable_rt 1131 enable_httpsrr 1132 enable_ech 1133 enable_ssls_export 1134 enable_code_coverage 1135 enable_dependency_tracking 1136 with_schannel 1137 with_amissl 1138 with_ssl 1139 with_openssl 1140 with_gnutls 1141 with_mbedtls 1142 with_wolfssl 1143 with_rustls 1144 with_test_nghttpx 1145 with_test_caddy 1146 with_test_vsftpd 1147 with_test_httpd 1148 with_darwinssl 1149 enable_largefile 1150 enable_shared 1151 enable_static 1152 with_pic 1153 enable_fast_install 1154 with_aix_soname 1155 with_gnu_ld 1156 with_sysroot 1157 enable_libtool_lock 1158 enable_unity 1159 enable_http 1160 enable_ftp 1161 enable_file 1162 enable_ipfs 1163 enable_ldap 1164 enable_ldaps 1165 enable_rtsp 1166 enable_proxy 1167 enable_dict 1168 enable_telnet 1169 enable_tftp 1170 enable_pop3 1171 enable_imap 1172 enable_smb 1173 enable_smtp 1174 enable_gopher 1175 enable_mqtt 1176 enable_manual 1177 enable_docs 1178 enable_libcurl_option 1179 enable_libgcc 1180 with_zlib 1181 with_brotli 1182 with_zstd 1183 enable_ipv6 1184 with_gssapi_includes 1185 with_gssapi_libs 1186 with_gssapi 1187 with_default_ssl_backend 1188 enable_openssl_auto_load_config 1189 with_ca_bundle 1190 with_ca_path 1191 with_ca_fallback 1192 with_ca_embed 1193 enable_ca_search 1194 enable_ca_search_safe 1195 with_libpsl 1196 with_libgsasl 1197 with_libmetalink 1198 with_libssh2 1199 with_libssh 1200 with_wolfssh 1201 with_ldap_lib 1202 with_lber_lib 1203 with_ldap 1204 with_librtmp 1205 enable_versioned_symbols 1206 enable_windows_unicode 1207 with_winidn 1208 with_apple_idn 1209 with_libidn2 1210 with_nghttp2 1211 with_ngtcp2 1212 with_openssl_quic 1213 with_nghttp3 1214 with_quiche 1215 with_msh3 1216 with_libuv 1217 with_zsh_functions_dir 1218 with_fish_functions_dir 1219 enable_threaded_resolver 1220 enable_verbose 1221 enable_sspi 1222 enable_basic_auth 1223 enable_bearer_auth 1224 enable_digest_auth 1225 enable_kerberos_auth 1226 enable_negotiate_auth 1227 enable_aws 1228 enable_ntlm 1229 enable_tls_srp 1230 enable_unix_sockets 1231 enable_cookies 1232 enable_socketpair 1233 enable_http_auth 1234 enable_doh 1235 enable_mime 1236 enable_bindlocal 1237 enable_form_api 1238 enable_dateparse 1239 enable_netrc 1240 enable_progress_meter 1241 enable_sha512_256 1242 enable_dnsshuffle 1243 enable_get_easy_options 1244 enable_alt_svc 1245 enable_headers_api 1246 enable_hsts 1247 enable_websockets 1248 ' 1249 ac_precious_vars='build_alias 1250 host_alias 1251 target_alias 1252 CC 1253 CFLAGS 1254 LDFLAGS 1255 LIBS 1256 CPPFLAGS 1257 CPP 1258 LT_SYS_LIBRARY_PATH' 1259 1260 1261 # Initialize some variables set by options. 1262 ac_init_help= 1263 ac_init_version=false 1264 ac_unrecognized_opts= 1265 ac_unrecognized_sep= 1266 # The variables have the same names as the options, with 1267 # dashes changed to underlines. 1268 cache_file=/dev/null 1269 exec_prefix=NONE 1270 no_create= 1271 no_recursion= 1272 prefix=NONE 1273 program_prefix=NONE 1274 program_suffix=NONE 1275 program_transform_name=s,x,x, 1276 silent= 1277 site= 1278 srcdir= 1279 verbose= 1280 x_includes=NONE 1281 x_libraries=NONE 1282 1283 # Installation directory options. 1284 # These are left unexpanded so users can "make install exec_prefix=/foo" 1285 # and all the variables that are supposed to be based on exec_prefix 1286 # by default will actually change. 1287 # Use braces instead of parens because sh, perl, etc. also accept them. 1288 # (The list follows the same order as the GNU Coding Standards.) 1289 bindir='${exec_prefix}/bin' 1290 sbindir='${exec_prefix}/sbin' 1291 libexecdir='${exec_prefix}/libexec' 1292 datarootdir='${prefix}/share' 1293 datadir='${datarootdir}' 1294 sysconfdir='${prefix}/etc' 1295 sharedstatedir='${prefix}/com' 1296 localstatedir='${prefix}/var' 1297 runstatedir='${localstatedir}/run' 1298 includedir='${prefix}/include' 1299 oldincludedir='/usr/include' 1300 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1301 infodir='${datarootdir}/info' 1302 htmldir='${docdir}' 1303 dvidir='${docdir}' 1304 pdfdir='${docdir}' 1305 psdir='${docdir}' 1306 libdir='${exec_prefix}/lib' 1307 localedir='${datarootdir}/locale' 1308 mandir='${datarootdir}/man' 1309 1310 ac_prev= 1311 ac_dashdash= 1312 for ac_option 1313 do 1314 # If the previous option needs an argument, assign it. 1315 if test -n "$ac_prev"; then 1316 eval $ac_prev=\$ac_option 1317 ac_prev= 1318 continue 1319 fi 1320 1321 case $ac_option in 1322 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1323 *=) ac_optarg= ;; 1324 *) ac_optarg=yes ;; 1325 esac 1326 1327 case $ac_dashdash$ac_option in 1328 --) 1329 ac_dashdash=yes ;; 1330 1331 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1332 ac_prev=bindir ;; 1333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1334 bindir=$ac_optarg ;; 1335 1336 -build | --build | --buil | --bui | --bu) 1337 ac_prev=build_alias ;; 1338 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1339 build_alias=$ac_optarg ;; 1340 1341 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1343 ac_prev=cache_file ;; 1344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1346 cache_file=$ac_optarg ;; 1347 1348 --config-cache | -C) 1349 cache_file=config.cache ;; 1350 1351 -datadir | --datadir | --datadi | --datad) 1352 ac_prev=datadir ;; 1353 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1354 datadir=$ac_optarg ;; 1355 1356 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1357 | --dataroo | --dataro | --datar) 1358 ac_prev=datarootdir ;; 1359 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1360 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1361 datarootdir=$ac_optarg ;; 1362 1363 -disable-* | --disable-*) 1364 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1365 # Reject names that are not valid shell variable names. 1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1367 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1368 ac_useropt_orig=$ac_useropt 1369 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1370 case $ac_user_opts in 1371 *" 1372 "enable_$ac_useropt" 1373 "*) ;; 1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1375 ac_unrecognized_sep=', ';; 1376 esac 1377 eval enable_$ac_useropt=no ;; 1378 1379 -docdir | --docdir | --docdi | --doc | --do) 1380 ac_prev=docdir ;; 1381 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1382 docdir=$ac_optarg ;; 1383 1384 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1385 ac_prev=dvidir ;; 1386 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1387 dvidir=$ac_optarg ;; 1388 1389 -enable-* | --enable-*) 1390 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1391 # Reject names that are not valid shell variable names. 1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1393 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1394 ac_useropt_orig=$ac_useropt 1395 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1396 case $ac_user_opts in 1397 *" 1398 "enable_$ac_useropt" 1399 "*) ;; 1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1401 ac_unrecognized_sep=', ';; 1402 esac 1403 eval enable_$ac_useropt=\$ac_optarg ;; 1404 1405 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1406 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1407 | --exec | --exe | --ex) 1408 ac_prev=exec_prefix ;; 1409 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1410 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1411 | --exec=* | --exe=* | --ex=*) 1412 exec_prefix=$ac_optarg ;; 1413 1414 -gas | --gas | --ga | --g) 1415 # Obsolete; use --with-gas. 1416 with_gas=yes ;; 1417 1418 -help | --help | --hel | --he | -h) 1419 ac_init_help=long ;; 1420 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1421 ac_init_help=recursive ;; 1422 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1423 ac_init_help=short ;; 1424 1425 -host | --host | --hos | --ho) 1426 ac_prev=host_alias ;; 1427 -host=* | --host=* | --hos=* | --ho=*) 1428 host_alias=$ac_optarg ;; 1429 1430 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1431 ac_prev=htmldir ;; 1432 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1433 | --ht=*) 1434 htmldir=$ac_optarg ;; 1435 1436 -includedir | --includedir | --includedi | --included | --include \ 1437 | --includ | --inclu | --incl | --inc) 1438 ac_prev=includedir ;; 1439 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1440 | --includ=* | --inclu=* | --incl=* | --inc=*) 1441 includedir=$ac_optarg ;; 1442 1443 -infodir | --infodir | --infodi | --infod | --info | --inf) 1444 ac_prev=infodir ;; 1445 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1446 infodir=$ac_optarg ;; 1447 1448 -libdir | --libdir | --libdi | --libd) 1449 ac_prev=libdir ;; 1450 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1451 libdir=$ac_optarg ;; 1452 1453 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1454 | --libexe | --libex | --libe) 1455 ac_prev=libexecdir ;; 1456 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1457 | --libexe=* | --libex=* | --libe=*) 1458 libexecdir=$ac_optarg ;; 1459 1460 -localedir | --localedir | --localedi | --localed | --locale) 1461 ac_prev=localedir ;; 1462 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1463 localedir=$ac_optarg ;; 1464 1465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1466 | --localstate | --localstat | --localsta | --localst | --locals) 1467 ac_prev=localstatedir ;; 1468 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1469 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1470 localstatedir=$ac_optarg ;; 1471 1472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1473 ac_prev=mandir ;; 1474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1475 mandir=$ac_optarg ;; 1476 1477 -nfp | --nfp | --nf) 1478 # Obsolete; use --without-fp. 1479 with_fp=no ;; 1480 1481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1482 | --no-cr | --no-c | -n) 1483 no_create=yes ;; 1484 1485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1487 no_recursion=yes ;; 1488 1489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1491 | --oldin | --oldi | --old | --ol | --o) 1492 ac_prev=oldincludedir ;; 1493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1496 oldincludedir=$ac_optarg ;; 1497 1498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1499 ac_prev=prefix ;; 1500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1501 prefix=$ac_optarg ;; 1502 1503 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1504 | --program-pre | --program-pr | --program-p) 1505 ac_prev=program_prefix ;; 1506 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1508 program_prefix=$ac_optarg ;; 1509 1510 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1511 | --program-suf | --program-su | --program-s) 1512 ac_prev=program_suffix ;; 1513 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1515 program_suffix=$ac_optarg ;; 1516 1517 -program-transform-name | --program-transform-name \ 1518 | --program-transform-nam | --program-transform-na \ 1519 | --program-transform-n | --program-transform- \ 1520 | --program-transform | --program-transfor \ 1521 | --program-transfo | --program-transf \ 1522 | --program-trans | --program-tran \ 1523 | --progr-tra | --program-tr | --program-t) 1524 ac_prev=program_transform_name ;; 1525 -program-transform-name=* | --program-transform-name=* \ 1526 | --program-transform-nam=* | --program-transform-na=* \ 1527 | --program-transform-n=* | --program-transform-=* \ 1528 | --program-transform=* | --program-transfor=* \ 1529 | --program-transfo=* | --program-transf=* \ 1530 | --program-trans=* | --program-tran=* \ 1531 | --progr-tra=* | --program-tr=* | --program-t=*) 1532 program_transform_name=$ac_optarg ;; 1533 1534 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1535 ac_prev=pdfdir ;; 1536 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1537 pdfdir=$ac_optarg ;; 1538 1539 -psdir | --psdir | --psdi | --psd | --ps) 1540 ac_prev=psdir ;; 1541 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1542 psdir=$ac_optarg ;; 1543 1544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1545 | -silent | --silent | --silen | --sile | --sil) 1546 silent=yes ;; 1547 1548 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1549 | --runstate | --runstat | --runsta | --runst | --runs \ 1550 | --run | --ru | --r) 1551 ac_prev=runstatedir ;; 1552 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1553 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1554 | --run=* | --ru=* | --r=*) 1555 runstatedir=$ac_optarg ;; 1556 1557 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1558 ac_prev=sbindir ;; 1559 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1560 | --sbi=* | --sb=*) 1561 sbindir=$ac_optarg ;; 1562 1563 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1564 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1565 | --sharedst | --shareds | --shared | --share | --shar \ 1566 | --sha | --sh) 1567 ac_prev=sharedstatedir ;; 1568 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1569 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1570 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1571 | --sha=* | --sh=*) 1572 sharedstatedir=$ac_optarg ;; 1573 1574 -site | --site | --sit) 1575 ac_prev=site ;; 1576 -site=* | --site=* | --sit=*) 1577 site=$ac_optarg ;; 1578 1579 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1580 ac_prev=srcdir ;; 1581 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1582 srcdir=$ac_optarg ;; 1583 1584 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1585 | --syscon | --sysco | --sysc | --sys | --sy) 1586 ac_prev=sysconfdir ;; 1587 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1588 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1589 sysconfdir=$ac_optarg ;; 1590 1591 -target | --target | --targe | --targ | --tar | --ta | --t) 1592 ac_prev=target_alias ;; 1593 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1594 target_alias=$ac_optarg ;; 1595 1596 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1597 verbose=yes ;; 1598 1599 -version | --version | --versio | --versi | --vers | -V) 1600 ac_init_version=: ;; 1601 1602 -with-* | --with-*) 1603 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1604 # Reject names that are not valid shell variable names. 1605 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1606 as_fn_error $? "invalid package name: \`$ac_useropt'" 1607 ac_useropt_orig=$ac_useropt 1608 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1609 case $ac_user_opts in 1610 *" 1611 "with_$ac_useropt" 1612 "*) ;; 1613 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1614 ac_unrecognized_sep=', ';; 1615 esac 1616 eval with_$ac_useropt=\$ac_optarg ;; 1617 1618 -without-* | --without-*) 1619 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1620 # Reject names that are not valid shell variable names. 1621 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1622 as_fn_error $? "invalid package name: \`$ac_useropt'" 1623 ac_useropt_orig=$ac_useropt 1624 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1625 case $ac_user_opts in 1626 *" 1627 "with_$ac_useropt" 1628 "*) ;; 1629 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1630 ac_unrecognized_sep=', ';; 1631 esac 1632 eval with_$ac_useropt=no ;; 1633 1634 --x) 1635 # Obsolete; use --with-x. 1636 with_x=yes ;; 1637 1638 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1639 | --x-incl | --x-inc | --x-in | --x-i) 1640 ac_prev=x_includes ;; 1641 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1642 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1643 x_includes=$ac_optarg ;; 1644 1645 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1646 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1647 ac_prev=x_libraries ;; 1648 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1649 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1650 x_libraries=$ac_optarg ;; 1651 1652 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1653 Try \`$0 --help' for more information" 1654 ;; 1655 1656 *=*) 1657 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1658 # Reject names that are not valid shell variable names. 1659 case $ac_envvar in #( 1660 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1661 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1662 esac 1663 eval $ac_envvar=\$ac_optarg 1664 export $ac_envvar ;; 1665 1666 *) 1667 # FIXME: should be removed in autoconf 3.0. 1668 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1669 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1670 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1671 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1672 ;; 1673 1674 esac 1675 done 1676 1677 if test -n "$ac_prev"; then 1678 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1679 as_fn_error $? "missing argument to $ac_option" 1680 fi 1681 1682 if test -n "$ac_unrecognized_opts"; then 1683 case $enable_option_checking in 1684 no) ;; 1685 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1686 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1687 esac 1688 fi 1689 1690 # Check all directory arguments for consistency. 1691 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1692 datadir sysconfdir sharedstatedir localstatedir includedir \ 1693 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1694 libdir localedir mandir runstatedir 1695 do 1696 eval ac_val=\$$ac_var 1697 # Remove trailing slashes. 1698 case $ac_val in 1699 */ ) 1700 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1701 eval $ac_var=\$ac_val;; 1702 esac 1703 # Be sure to have absolute directory names. 1704 case $ac_val in 1705 [\\/$]* | ?:[\\/]* ) continue;; 1706 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1707 esac 1708 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1709 done 1710 1711 # There might be people who depend on the old broken behavior: `$host' 1712 # used to hold the argument of --host etc. 1713 # FIXME: To remove some day. 1714 build=$build_alias 1715 host=$host_alias 1716 target=$target_alias 1717 1718 # FIXME: To remove some day. 1719 if test "x$host_alias" != x; then 1720 if test "x$build_alias" = x; then 1721 cross_compiling=maybe 1722 elif test "x$build_alias" != "x$host_alias"; then 1723 cross_compiling=yes 1724 fi 1725 fi 1726 1727 ac_tool_prefix= 1728 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1729 1730 test "$silent" = yes && exec 6>/dev/null 1731 1732 1733 ac_pwd=`pwd` && test -n "$ac_pwd" && 1734 ac_ls_di=`ls -di .` && 1735 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1736 as_fn_error $? "working directory cannot be determined" 1737 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1738 as_fn_error $? "pwd does not report name of working directory" 1739 1740 1741 # Find the source files, if location was not specified. 1742 if test -z "$srcdir"; then 1743 ac_srcdir_defaulted=yes 1744 # Try the directory containing this script, then the parent directory. 1745 ac_confdir=`$as_dirname -- "$as_myself" || 1746 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1747 X"$as_myself" : 'X\(//\)[^/]' \| \ 1748 X"$as_myself" : 'X\(//\)$' \| \ 1749 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1750 printf "%s\n" X"$as_myself" | 1751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1752 s//\1/ 1753 q 1754 } 1755 /^X\(\/\/\)[^/].*/{ 1756 s//\1/ 1757 q 1758 } 1759 /^X\(\/\/\)$/{ 1760 s//\1/ 1761 q 1762 } 1763 /^X\(\/\).*/{ 1764 s//\1/ 1765 q 1766 } 1767 s/.*/./; q'` 1768 srcdir=$ac_confdir 1769 if test ! -r "$srcdir/$ac_unique_file"; then 1770 srcdir=.. 1771 fi 1772 else 1773 ac_srcdir_defaulted=no 1774 fi 1775 if test ! -r "$srcdir/$ac_unique_file"; then 1776 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1777 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1778 fi 1779 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1780 ac_abs_confdir=`( 1781 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1782 pwd)` 1783 # When building in place, set srcdir=. 1784 if test "$ac_abs_confdir" = "$ac_pwd"; then 1785 srcdir=. 1786 fi 1787 # Remove unnecessary trailing slashes from srcdir. 1788 # Double slashes in file names in object file debugging info 1789 # mess up M-x gdb in Emacs. 1790 case $srcdir in 1791 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1792 esac 1793 for ac_var in $ac_precious_vars; do 1794 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1795 eval ac_env_${ac_var}_value=\$${ac_var} 1796 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1797 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1798 done 1799 1800 # 1801 # Report the --help message. 1802 # 1803 if test "$ac_init_help" = "long"; then 1804 # Omit some internal or obsolete options to make the list less imposing. 1805 # This message is too long to be a string in the A/UX 3.1 sh. 1806 cat <<_ACEOF 1807 \`configure' configures curl - to adapt to many kinds of systems. 1808 1809 Usage: $0 [OPTION]... [VAR=VALUE]... 1810 1811 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1812 VAR=VALUE. See below for descriptions of some of the useful variables. 1813 1814 Defaults for the options are specified in brackets. 1815 1816 Configuration: 1817 -h, --help display this help and exit 1818 --help=short display options specific to this package 1819 --help=recursive display the short help of all the included packages 1820 -V, --version display version information and exit 1821 -q, --quiet, --silent do not print \`checking ...' messages 1822 --cache-file=FILE cache test results in FILE [disabled] 1823 -C, --config-cache alias for \`--cache-file=config.cache' 1824 -n, --no-create do not create output files 1825 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1826 1827 Installation directories: 1828 --prefix=PREFIX install architecture-independent files in PREFIX 1829 [$ac_default_prefix] 1830 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1831 [PREFIX] 1832 1833 By default, \`make install' will install all the files in 1834 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1835 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1836 for instance \`--prefix=\$HOME'. 1837 1838 For better control, use the options below. 1839 1840 Fine tuning of the installation directories: 1841 --bindir=DIR user executables [EPREFIX/bin] 1842 --sbindir=DIR system admin executables [EPREFIX/sbin] 1843 --libexecdir=DIR program executables [EPREFIX/libexec] 1844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1846 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1847 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1848 --libdir=DIR object code libraries [EPREFIX/lib] 1849 --includedir=DIR C header files [PREFIX/include] 1850 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1851 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1852 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1853 --infodir=DIR info documentation [DATAROOTDIR/info] 1854 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1855 --mandir=DIR man documentation [DATAROOTDIR/man] 1856 --docdir=DIR documentation root [DATAROOTDIR/doc/curl] 1857 --htmldir=DIR html documentation [DOCDIR] 1858 --dvidir=DIR dvi documentation [DOCDIR] 1859 --pdfdir=DIR pdf documentation [DOCDIR] 1860 --psdir=DIR ps documentation [DOCDIR] 1861 _ACEOF 1862 1863 cat <<\_ACEOF 1864 1865 Program names: 1866 --program-prefix=PREFIX prepend PREFIX to installed program names 1867 --program-suffix=SUFFIX append SUFFIX to installed program names 1868 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1869 1870 System types: 1871 --build=BUILD configure for building on BUILD [guessed] 1872 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1873 _ACEOF 1874 fi 1875 1876 if test -n "$ac_init_help"; then 1877 case $ac_init_help in 1878 short | recursive ) echo "Configuration of curl -:";; 1879 esac 1880 cat <<\_ACEOF 1881 1882 Optional Features: 1883 --disable-option-checking ignore unrecognized --enable/--with options 1884 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1885 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1886 --enable-maintainer-mode 1887 enable make rules and dependencies not useful (and 1888 sometimes confusing) to the casual installer 1889 --enable-silent-rules less verbose build output (undo: "make V=1") 1890 --disable-silent-rules verbose build output (undo: "make V=0") 1891 --enable-debug Enable debug build options 1892 --disable-debug Disable debug build options 1893 --enable-optimize Enable compiler optimizations 1894 --disable-optimize Disable compiler optimizations 1895 --enable-warnings Enable strict compiler warnings 1896 --disable-warnings Disable strict compiler warnings 1897 --enable-werror Enable compiler warnings as errors 1898 --disable-werror Disable compiler warnings as errors 1899 --enable-curldebug Enable curl debug memory tracking 1900 --disable-curldebug Disable curl debug memory tracking 1901 --enable-symbol-hiding Enable hiding of library internal symbols 1902 --disable-symbol-hiding Disable hiding of library internal symbols 1903 --enable-ares[=PATH] Enable c-ares for DNS lookups 1904 --disable-ares Disable c-ares for DNS lookups 1905 --disable-rt disable dependency on -lrt 1906 --enable-httpsrr Enable HTTPSRR support 1907 --disable-httpsrr Disable HTTPSRR support 1908 --enable-ech Enable ECH support 1909 --disable-ech Disable ECH support 1910 --enable-ssls-export Enable SSL session export support 1911 --disable-ssls-export Disable SSL session export support 1912 --enable-code-coverage Provide code coverage 1913 --enable-dependency-tracking 1914 do not reject slow dependency extractors 1915 --disable-dependency-tracking 1916 speeds up one-time build 1917 --disable-largefile omit support for large files 1918 --enable-shared[=PKGS] build shared libraries [default=yes] 1919 --enable-static[=PKGS] build static libraries [default=yes] 1920 --enable-fast-install[=PKGS] 1921 optimize for fast installation [default=yes] 1922 --disable-libtool-lock avoid locking (might break parallel builds) 1923 --enable-unity Enable unity mode 1924 --disable-unity Disable unity (default) 1925 --enable-http Enable HTTP support 1926 --disable-http Disable HTTP support 1927 --enable-ftp Enable FTP support 1928 --disable-ftp Disable FTP support 1929 --enable-file Enable FILE support 1930 --disable-file Disable FILE support 1931 --enable-ipfs Enable IPFS support 1932 --disable-ipfs Disable IPFS support 1933 --enable-ldap Enable LDAP support 1934 --disable-ldap Disable LDAP support 1935 --enable-ldaps Enable LDAPS support 1936 --disable-ldaps Disable LDAPS support 1937 --enable-rtsp Enable RTSP support 1938 --disable-rtsp Disable RTSP support 1939 --enable-proxy Enable proxy support 1940 --disable-proxy Disable proxy support 1941 --enable-dict Enable DICT support 1942 --disable-dict Disable DICT support 1943 --enable-telnet Enable TELNET support 1944 --disable-telnet Disable TELNET support 1945 --enable-tftp Enable TFTP support 1946 --disable-tftp Disable TFTP support 1947 --enable-pop3 Enable POP3 support 1948 --disable-pop3 Disable POP3 support 1949 --enable-imap Enable IMAP support 1950 --disable-imap Disable IMAP support 1951 --enable-smb Enable SMB/CIFS support 1952 --disable-smb Disable SMB/CIFS support 1953 --enable-smtp Enable SMTP support 1954 --disable-smtp Disable SMTP support 1955 --enable-gopher Enable Gopher support 1956 --disable-gopher Disable Gopher support 1957 --enable-mqtt Enable MQTT support 1958 --disable-mqtt Disable MQTT support 1959 --enable-manual Enable built-in manual 1960 --disable-manual Disable built-in manual 1961 --enable-docs Enable documentation 1962 --disable-docs Disable documentation 1963 --enable-libcurl-option Enable --libcurl C code generation support 1964 --disable-libcurl-option 1965 Disable --libcurl C code generation support 1966 --enable-libgcc use libgcc when linking 1967 --enable-ipv6 Enable IPv6 (with IPv4) support 1968 --disable-ipv6 Disable IPv6 support 1969 --enable-openssl-auto-load-config 1970 Enable automatic loading of OpenSSL configuration 1971 --disable-openssl-auto-load-config 1972 Disable automatic loading of OpenSSL configuration 1973 --enable-ca-search Enable unsafe CA bundle search in PATH on Windows 1974 (default) 1975 --disable-ca-search Disable unsafe CA bundle search in PATH on Windows 1976 --enable-ca-search-safe Enable safe CA bundle search 1977 --disable-ca-search-safe 1978 Disable safe CA bundle search (default) 1979 --enable-versioned-symbols 1980 Enable versioned symbols in shared library 1981 --disable-versioned-symbols 1982 Disable versioned symbols in shared library 1983 --enable-windows-unicode 1984 Enable Windows Unicode 1985 --disable-windows-unicode 1986 Disable Windows Unicode (default) 1987 --enable-threaded-resolver 1988 Enable threaded resolver 1989 --disable-threaded-resolver 1990 Disable threaded resolver 1991 --enable-verbose Enable verbose strings 1992 --disable-verbose Disable verbose strings 1993 --enable-sspi Enable SSPI 1994 --disable-sspi Disable SSPI 1995 --enable-basic-auth Enable basic authentication (default) 1996 --disable-basic-auth Disable basic authentication 1997 --enable-bearer-auth Enable bearer authentication (default) 1998 --disable-bearer-auth Disable bearer authentication 1999 --enable-digest-auth Enable digest authentication (default) 2000 --disable-digest-auth Disable digest authentication 2001 --enable-kerberos-auth Enable kerberos authentication (default) 2002 --disable-kerberos-auth Disable kerberos authentication 2003 --enable-negotiate-auth Enable negotiate authentication (default) 2004 --disable-negotiate-auth 2005 Disable negotiate authentication 2006 --enable-aws Enable AWS sig support (default) 2007 --disable-aws Disable AWS sig support 2008 --enable-ntlm Enable NTLM support 2009 --disable-ntlm Disable NTLM support 2010 --enable-tls-srp Enable TLS-SRP authentication 2011 --disable-tls-srp Disable TLS-SRP authentication 2012 --enable-unix-sockets Enable Unix domain sockets 2013 --disable-unix-sockets Disable Unix domain sockets 2014 --enable-cookies Enable cookies support 2015 --disable-cookies Disable cookies support 2016 --enable-socketpair Enable socketpair support 2017 --disable-socketpair Disable socketpair support 2018 --enable-http-auth Enable HTTP authentication support 2019 --disable-http-auth Disable HTTP authentication support 2020 --enable-doh Enable DoH support 2021 --disable-doh Disable DoH support 2022 --enable-mime Enable mime API support 2023 --disable-mime Disable mime API support 2024 --enable-bindlocal Enable local binding support 2025 --disable-bindlocal Disable local binding support 2026 --enable-form-api Enable form API support 2027 --disable-form-api Disable form API support 2028 --enable-dateparse Enable date parsing 2029 --disable-dateparse Disable date parsing 2030 --enable-netrc Enable netrc parsing 2031 --disable-netrc Disable netrc parsing 2032 --enable-progress-meter Enable progress-meter 2033 --disable-progress-meter 2034 Disable progress-meter 2035 --enable-sha512-256 Enable SHA-512/256 hash algorithm (default) 2036 --disable-sha512-256 Disable SHA-512/256 hash algorithm 2037 --enable-dnsshuffle Enable DNS shuffling 2038 --disable-dnsshuffle Disable DNS shuffling 2039 --enable-get-easy-options 2040 Enable curl_easy_options 2041 --disable-get-easy-options 2042 Disable curl_easy_options 2043 --enable-alt-svc Enable alt-svc support 2044 --disable-alt-svc Disable alt-svc support 2045 --enable-headers-api Enable headers-api support 2046 --disable-headers-api Disable headers-api support 2047 --enable-hsts Enable HSTS support 2048 --disable-hsts Disable HSTS support 2049 --enable-websockets Enable WebSockets support 2050 --disable-websockets Disable WebSockets support 2051 2052 Optional Packages: 2053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2055 --with-schannel enable Windows native SSL/TLS 2056 --with-amissl enable Amiga native SSL/TLS (AmiSSL) 2057 --with-ssl=PATH old version of --with-openssl 2058 --without-ssl build without any TLS library 2059 --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL 2060 installation (default: /usr/local/ssl); when 2061 possible, set the PKG_CONFIG_PATH environment 2062 variable instead of using this option 2063 --with-gnutls=PATH where to look for GnuTLS, PATH points to the 2064 installation root 2065 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the 2066 installation root 2067 --with-wolfssl=PATH where to look for wolfSSL, PATH points to the 2068 installation root (default: system lib default) 2069 --with-rustls=PATH where to look for Rustls, PATH points to the 2070 installation root 2071 --with-test-nghttpx=PATH 2072 where to find nghttpx for testing 2073 --with-test-caddy=PATH where to find caddy for testing 2074 --with-test-vsftpd=PATH where to find vsftpd for testing 2075 --with-test-httpd=PATH where to find httpd/apache2 for testing 2076 2077 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2078 both] 2079 --with-aix-soname=aix|svr4|both 2080 shared library versioning (aka "SONAME") variant to 2081 provide on AIX, [default=aix]. 2082 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2083 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2084 compiler's sysroot if not specified). 2085 --with-zlib=PATH search for zlib in PATH 2086 --without-zlib disable use of zlib 2087 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI 2088 installation; when possible, set the PKG_CONFIG_PATH 2089 environment variable instead of using this option 2090 --without-brotli disable BROTLI 2091 --with-zstd=PATH Where to look for libzstd, PATH points to the 2092 libzstd installation; when possible, set the 2093 PKG_CONFIG_PATH environment variable instead of 2094 using this option 2095 --without-zstd disable libzstd 2096 --with-gssapi-includes=DIR 2097 Specify location of GSS-API headers 2098 --with-gssapi-libs=DIR Specify location of GSS-API libs 2099 --with-gssapi=DIR Where to look for GSS-API 2100 --with-default-ssl-backend=NAME 2101 Use NAME as default SSL backend 2102 --without-default-ssl-backend 2103 Use implicit default SSL backend 2104 --with-ca-bundle=FILE Absolute path to a file containing CA certificates 2105 (example: /etc/ca-bundle.crt) 2106 --without-ca-bundle Don't use a default CA bundle 2107 --with-ca-path=DIRECTORY 2108 Absolute path to a directory containing CA 2109 certificates stored individually, with their 2110 filenames in a hash format. This option can be used 2111 with the OpenSSL, GnuTLS, mbedTLS and wolfSSL 2112 backends. Refer to OpenSSL c_rehash for details. 2113 (example: /etc/certificates) 2114 --without-ca-path Don't use a default CA path 2115 --with-ca-fallback Use the built-in CA store of the SSL library 2116 --without-ca-fallback Don't use the built-in CA store of the SSL library 2117 --with-ca-embed=FILE Absolute path to a file containing CA certificates 2118 to embed in the curl tool (example: 2119 /etc/ca-bundle.crt) 2120 --without-ca-embed Don't embed a default CA bundle in the curl tool 2121 --with-libpsl=PATH Where to look for libpsl, PATH points to the LIBPSL 2122 installation; when possible, set the PKG_CONFIG_PATH 2123 environment variable instead of using this option 2124 --without-libpsl disable LIBPSL 2125 --without-libgsasl disable libgsasl support for SCRAM 2126 --with-libssh2=PATH Where to look for libssh2, PATH points to the 2127 libssh2 installation; when possible, set the 2128 PKG_CONFIG_PATH environment variable instead of 2129 using this option 2130 --with-libssh2 enable libssh2 2131 --with-libssh=PATH Where to look for libssh, PATH points to the libssh 2132 installation; when possible, set the PKG_CONFIG_PATH 2133 environment variable instead of using this option 2134 --with-libssh enable libssh 2135 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the 2136 wolfSSH installation; when possible, set the 2137 PKG_CONFIG_PATH environment variable instead of 2138 using this option 2139 --with-wolfssh enable wolfssh 2140 --with-ldap-lib=libname Specify name of ldap lib file 2141 --with-lber-lib=libname Specify name of lber lib file 2142 --with-ldap=PATH Where to look for LDAP, PATH points to the LDAP 2143 installation; when possible, set the PKG_CONFIG_PATH 2144 environment variable instead of using this option 2145 --without-ldap disable LDAP 2146 --with-librtmp=PATH Where to look for librtmp, PATH points to the 2147 LIBRTMP installation; when possible, set the 2148 PKG_CONFIG_PATH environment variable instead of 2149 using this option 2150 --without-librtmp disable LIBRTMP 2151 --with-winidn=PATH enable Windows native IDN 2152 --without-winidn disable Windows native IDN 2153 --with-apple-idn Enable AppleIDN 2154 --without-apple-idn Disable AppleIDN 2155 --with-libidn2=PATH Enable libidn2 usage 2156 --without-libidn2 Disable libidn2 usage 2157 --with-nghttp2=PATH Enable nghttp2 usage 2158 --without-nghttp2 Disable nghttp2 usage 2159 --with-ngtcp2=PATH Enable ngtcp2 usage 2160 --without-ngtcp2 Disable ngtcp2 usage 2161 --with-openssl-quic Enable OpenSSL QUIC usage 2162 --without-openssl-quic Disable OpenSSL QUIC usage 2163 --with-nghttp3=PATH Enable nghttp3 usage 2164 --without-nghttp3 Disable nghttp3 usage 2165 --with-quiche=PATH Enable quiche usage 2166 --without-quiche Disable quiche usage 2167 --with-msh3=PATH Enable msh3 usage 2168 --without-msh3 Disable msh3 usage 2169 --with-libuv=PATH Enable libuv 2170 --without-libuv Disable libuv 2171 --with-zsh-functions-dir=PATH 2172 Install zsh completions to PATH 2173 --without-zsh-functions-dir 2174 Do not install zsh completions 2175 --with-fish-functions-dir=PATH 2176 Install fish completions to PATH 2177 --without-fish-functions-dir 2178 Do not install fish completions 2179 2180 Some influential environment variables: 2181 CC C compiler command 2182 CFLAGS C compiler flags 2183 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2184 nonstandard directory <lib dir> 2185 LIBS libraries to pass to the linker, e.g. -l<library> 2186 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2187 you have headers in a nonstandard directory <include dir> 2188 CPP C preprocessor 2189 LT_SYS_LIBRARY_PATH 2190 User-defined run-time library search path. 2191 2192 Use these variables to override the choices made by `configure' or to help 2193 it to find libraries and programs with nonstandard names/locations. 2194 2195 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>. 2196 _ACEOF 2197 ac_status=$? 2198 fi 2199 2200 if test "$ac_init_help" = "recursive"; then 2201 # If there are subdirs, report their specific --help. 2202 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2203 test -d "$ac_dir" || 2204 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2205 continue 2206 ac_builddir=. 2207 2208 case "$ac_dir" in 2209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2210 *) 2211 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2212 # A ".." for each directory in $ac_dir_suffix. 2213 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2214 case $ac_top_builddir_sub in 2215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2217 esac ;; 2218 esac 2219 ac_abs_top_builddir=$ac_pwd 2220 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2221 # for backward compatibility: 2222 ac_top_builddir=$ac_top_build_prefix 2223 2224 case $srcdir in 2225 .) # We are building in place. 2226 ac_srcdir=. 2227 ac_top_srcdir=$ac_top_builddir_sub 2228 ac_abs_top_srcdir=$ac_pwd ;; 2229 [\\/]* | ?:[\\/]* ) # Absolute name. 2230 ac_srcdir=$srcdir$ac_dir_suffix; 2231 ac_top_srcdir=$srcdir 2232 ac_abs_top_srcdir=$srcdir ;; 2233 *) # Relative name. 2234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2235 ac_top_srcdir=$ac_top_build_prefix$srcdir 2236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2237 esac 2238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2239 2240 cd "$ac_dir" || { ac_status=$?; continue; } 2241 # Check for configure.gnu first; this name is used for a wrapper for 2242 # Metaconfig's "Configure" on case-insensitive file systems. 2243 if test -f "$ac_srcdir/configure.gnu"; then 2244 echo && 2245 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2246 elif test -f "$ac_srcdir/configure"; then 2247 echo && 2248 $SHELL "$ac_srcdir/configure" --help=recursive 2249 else 2250 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2251 fi || ac_status=$? 2252 cd "$ac_pwd" || { ac_status=$?; break; } 2253 done 2254 fi 2255 2256 test -n "$ac_init_help" && exit $ac_status 2257 if $ac_init_version; then 2258 cat <<\_ACEOF 2259 curl configure - 2260 generated by GNU Autoconf 2.71 2261 2262 Copyright (C) 2021 Free Software Foundation, Inc. 2263 This configure script is free software; the Free Software Foundation 2264 gives unlimited permission to copy, distribute and modify it. 2265 2266 Copyright (C) Daniel Stenberg, <daniel@haxx.se> 2267 This configure script may be copied, distributed and modified under the 2268 terms of the curl license; see COPYING for more details 2269 _ACEOF 2270 exit 2271 fi 2272 2273 ## ------------------------ ## 2274 ## Autoconf initialization. ## 2275 ## ------------------------ ## 2276 2277 # ac_fn_c_try_compile LINENO 2278 # -------------------------- 2279 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2280 ac_fn_c_try_compile () 2281 { 2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2283 rm -f conftest.$ac_objext conftest.beam 2284 if { { ac_try="$ac_compile" 2285 case "(($ac_try" in 2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2287 *) ac_try_echo=$ac_try;; 2288 esac 2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2290 printf "%s\n" "$ac_try_echo"; } >&5 2291 (eval "$ac_compile") 2>conftest.err 2292 ac_status=$? 2293 if test -s conftest.err; then 2294 grep -v '^ *+' conftest.err >conftest.er1 2295 cat conftest.er1 >&5 2296 mv -f conftest.er1 conftest.err 2297 fi 2298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2299 test $ac_status = 0; } && { 2300 test -z "$ac_c_werror_flag" || 2301 test ! -s conftest.err 2302 } && test -s conftest.$ac_objext 2303 then : 2304 ac_retval=0 2305 else $as_nop 2306 printf "%s\n" "$as_me: failed program was:" >&5 2307 sed 's/^/| /' conftest.$ac_ext >&5 2308 2309 ac_retval=1 2310 fi 2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2312 as_fn_set_status $ac_retval 2313 2314 } # ac_fn_c_try_compile 2315 2316 # ac_fn_c_try_cpp LINENO 2317 # ---------------------- 2318 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2319 ac_fn_c_try_cpp () 2320 { 2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2322 if { { ac_try="$ac_cpp conftest.$ac_ext" 2323 case "(($ac_try" in 2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2325 *) ac_try_echo=$ac_try;; 2326 esac 2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2328 printf "%s\n" "$ac_try_echo"; } >&5 2329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2330 ac_status=$? 2331 if test -s conftest.err; then 2332 grep -v '^ *+' conftest.err >conftest.er1 2333 cat conftest.er1 >&5 2334 mv -f conftest.er1 conftest.err 2335 fi 2336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2337 test $ac_status = 0; } > conftest.i && { 2338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2339 test ! -s conftest.err 2340 } 2341 then : 2342 ac_retval=0 2343 else $as_nop 2344 printf "%s\n" "$as_me: failed program was:" >&5 2345 sed 's/^/| /' conftest.$ac_ext >&5 2346 2347 ac_retval=1 2348 fi 2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2350 as_fn_set_status $ac_retval 2351 2352 } # ac_fn_c_try_cpp 2353 2354 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2355 # ------------------------------------------------------- 2356 # Tests whether HEADER exists and can be compiled using the include files in 2357 # INCLUDES, setting the cache variable VAR accordingly. 2358 ac_fn_c_check_header_compile () 2359 { 2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2362 printf %s "checking for $2... " >&6; } 2363 if eval test \${$3+y} 2364 then : 2365 printf %s "(cached) " >&6 2366 else $as_nop 2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2368 /* end confdefs.h. */ 2369 $4 2370 #include <$2> 2371 _ACEOF 2372 if ac_fn_c_try_compile "$LINENO" 2373 then : 2374 eval "$3=yes" 2375 else $as_nop 2376 eval "$3=no" 2377 fi 2378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2379 fi 2380 eval ac_res=\$$3 2381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2382 printf "%s\n" "$ac_res" >&6; } 2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2384 2385 } # ac_fn_c_check_header_compile 2386 2387 # ac_fn_c_try_link LINENO 2388 # ----------------------- 2389 # Try to link conftest.$ac_ext, and return whether this succeeded. 2390 ac_fn_c_try_link () 2391 { 2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2393 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2394 if { { ac_try="$ac_link" 2395 case "(($ac_try" in 2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2397 *) ac_try_echo=$ac_try;; 2398 esac 2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2400 printf "%s\n" "$ac_try_echo"; } >&5 2401 (eval "$ac_link") 2>conftest.err 2402 ac_status=$? 2403 if test -s conftest.err; then 2404 grep -v '^ *+' conftest.err >conftest.er1 2405 cat conftest.er1 >&5 2406 mv -f conftest.er1 conftest.err 2407 fi 2408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2409 test $ac_status = 0; } && { 2410 test -z "$ac_c_werror_flag" || 2411 test ! -s conftest.err 2412 } && test -s conftest$ac_exeext && { 2413 test "$cross_compiling" = yes || 2414 test -x conftest$ac_exeext 2415 } 2416 then : 2417 ac_retval=0 2418 else $as_nop 2419 printf "%s\n" "$as_me: failed program was:" >&5 2420 sed 's/^/| /' conftest.$ac_ext >&5 2421 2422 ac_retval=1 2423 fi 2424 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2425 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2426 # interfere with the next link command; also delete a directory that is 2427 # left behind by Apple's compiler. We do this before executing the actions. 2428 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2430 as_fn_set_status $ac_retval 2431 2432 } # ac_fn_c_try_link 2433 2434 # ac_fn_c_check_func LINENO FUNC VAR 2435 # ---------------------------------- 2436 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2437 ac_fn_c_check_func () 2438 { 2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2441 printf %s "checking for $2... " >&6; } 2442 if eval test \${$3+y} 2443 then : 2444 printf %s "(cached) " >&6 2445 else $as_nop 2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2447 /* end confdefs.h. */ 2448 2449 #define $2 innocuous_$2 2450 #ifdef __STDC__ 2451 # include <limits.h> 2452 #else 2453 # include <assert.h> 2454 #endif 2455 #undef $2 2456 #ifdef __cplusplus 2457 extern "C" 2458 #endif 2459 char $2 (); 2460 #if defined __stub_$2 || defined __stub___$2 2461 #error force compilation error 2462 #endif 2463 2464 int main(void) 2465 { 2466 return $2 (); 2467 return 0; 2468 } 2469 _ACEOF 2470 if ac_fn_c_try_link "$LINENO" 2471 then : 2472 eval "$3=yes" 2473 else $as_nop 2474 eval "$3=no" 2475 fi 2476 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2477 conftest$ac_exeext conftest.$ac_ext 2478 fi 2479 eval ac_res=\$$3 2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2481 printf "%s\n" "$ac_res" >&6; } 2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2483 2484 } # ac_fn_c_check_func 2485 2486 # ac_fn_c_try_run LINENO 2487 # ---------------------- 2488 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2489 # executables *can* be run. 2490 ac_fn_c_try_run () 2491 { 2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2493 if { { ac_try="$ac_link" 2494 case "(($ac_try" in 2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2496 *) ac_try_echo=$ac_try;; 2497 esac 2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2499 printf "%s\n" "$ac_try_echo"; } >&5 2500 (eval "$ac_link") 2>&5 2501 ac_status=$? 2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2503 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2504 { { case "(($ac_try" in 2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2506 *) ac_try_echo=$ac_try;; 2507 esac 2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2509 printf "%s\n" "$ac_try_echo"; } >&5 2510 (eval "$ac_try") 2>&5 2511 ac_status=$? 2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2513 test $ac_status = 0; }; } 2514 then : 2515 ac_retval=0 2516 else $as_nop 2517 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2518 printf "%s\n" "$as_me: failed program was:" >&5 2519 sed 's/^/| /' conftest.$ac_ext >&5 2520 2521 ac_retval=$ac_status 2522 fi 2523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2525 as_fn_set_status $ac_retval 2526 2527 } # ac_fn_c_try_run 2528 2529 # ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES 2530 # ------------------------------------------------------- 2531 # Tests whether TYPE exists after having included INCLUDES, setting cache 2532 # variable VAR accordingly. 2533 ac_fn_c_check_type () 2534 { 2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2537 printf %s "checking for $2... " >&6; } 2538 if eval test \${$3+y} 2539 then : 2540 printf %s "(cached) " >&6 2541 else $as_nop 2542 eval "$3=no" 2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2544 /* end confdefs.h. */ 2545 $4 2546 int main(void) 2547 { 2548 if (sizeof ($2)) 2549 return 0; 2550 return 0; 2551 } 2552 _ACEOF 2553 if ac_fn_c_try_compile "$LINENO" 2554 then : 2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2556 /* end confdefs.h. */ 2557 $4 2558 int main(void) 2559 { 2560 if (sizeof (($2))) 2561 return 0; 2562 return 0; 2563 } 2564 _ACEOF 2565 if ac_fn_c_try_compile "$LINENO" 2566 then : 2567 2568 else $as_nop 2569 eval "$3=yes" 2570 fi 2571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2572 fi 2573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2574 fi 2575 eval ac_res=\$$3 2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2577 printf "%s\n" "$ac_res" >&6; } 2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2579 2580 } # ac_fn_c_check_type 2581 2582 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2583 # ------------------------------------------------------------------ 2584 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2585 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2586 ac_fn_check_decl () 2587 { 2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2589 as_decl_name=`echo $2|sed 's/ *(.*//'` 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2591 printf %s "checking whether $as_decl_name is declared... " >&6; } 2592 if eval test \${$3+y} 2593 then : 2594 printf %s "(cached) " >&6 2595 else $as_nop 2596 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2597 eval ac_save_FLAGS=\$$6 2598 as_fn_append $6 " $5" 2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2600 /* end confdefs.h. */ 2601 $4 2602 int main(void) 2603 { 2604 #ifndef $as_decl_name 2605 #ifdef __cplusplus 2606 (void) $as_decl_use; 2607 #else 2608 (void) $as_decl_name; 2609 #endif 2610 #endif 2611 2612 return 0; 2613 } 2614 _ACEOF 2615 if ac_fn_c_try_compile "$LINENO" 2616 then : 2617 eval "$3=yes" 2618 else $as_nop 2619 eval "$3=no" 2620 fi 2621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2622 eval $6=\$ac_save_FLAGS 2623 2624 fi 2625 eval ac_res=\$$3 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2627 printf "%s\n" "$ac_res" >&6; } 2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2629 2630 } # ac_fn_check_decl 2631 2632 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2633 # ---------------------------------------------------- 2634 # Tries to find if the field MEMBER exists in type AGGR, after including 2635 # INCLUDES, setting cache variable VAR accordingly. 2636 ac_fn_c_check_member () 2637 { 2638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2640 printf %s "checking for $2.$3... " >&6; } 2641 if eval test \${$4+y} 2642 then : 2643 printf %s "(cached) " >&6 2644 else $as_nop 2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2646 /* end confdefs.h. */ 2647 $5 2648 int main(void) 2649 { 2650 static $2 ac_aggr; 2651 if (ac_aggr.$3) 2652 return 0; 2653 return 0; 2654 } 2655 _ACEOF 2656 if ac_fn_c_try_compile "$LINENO" 2657 then : 2658 eval "$4=yes" 2659 else $as_nop 2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661 /* end confdefs.h. */ 2662 $5 2663 int main(void) 2664 { 2665 static $2 ac_aggr; 2666 if (sizeof ac_aggr.$3) 2667 return 0; 2668 return 0; 2669 } 2670 _ACEOF 2671 if ac_fn_c_try_compile "$LINENO" 2672 then : 2673 eval "$4=yes" 2674 else $as_nop 2675 eval "$4=no" 2676 fi 2677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2678 fi 2679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2680 fi 2681 eval ac_res=\$$4 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2683 printf "%s\n" "$ac_res" >&6; } 2684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2685 2686 } # ac_fn_c_check_member 2687 ac_configure_args_raw= 2688 for ac_arg 2689 do 2690 case $ac_arg in 2691 *\'*) 2692 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2693 esac 2694 as_fn_append ac_configure_args_raw " '$ac_arg'" 2695 done 2696 2697 case $ac_configure_args_raw in 2698 *$as_nl*) 2699 ac_safe_unquote= ;; 2700 *) 2701 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2702 ac_unsafe_a="$ac_unsafe_z#~" 2703 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2704 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2705 esac 2706 2707 cat >config.log <<_ACEOF 2708 This file contains any messages produced by compilers while 2709 running configure, to aid debugging if configure makes a mistake. 2710 2711 It was created by curl $as_me -, which was 2712 generated by GNU Autoconf 2.71. Invocation command line was 2713 2714 $ $0$ac_configure_args_raw 2715 2716 _ACEOF 2717 exec 5>>config.log 2718 { 2719 cat <<_ASUNAME 2720 ## --------- ## 2721 ## Platform. ## 2722 ## --------- ## 2723 2724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2725 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2726 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2727 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2728 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2729 2730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2731 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2732 2733 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2736 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2737 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2738 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2739 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2740 2741 _ASUNAME 2742 2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744 for as_dir in $PATH 2745 do 2746 IFS=$as_save_IFS 2747 case $as_dir in #((( 2748 '') as_dir=./ ;; 2749 */) ;; 2750 *) as_dir=$as_dir/ ;; 2751 esac 2752 printf "%s\n" "PATH: $as_dir" 2753 done 2754 IFS=$as_save_IFS 2755 2756 } >&5 2757 2758 cat >&5 <<_ACEOF 2759 2760 2761 ## ----------- ## 2762 ## Core tests. ## 2763 ## ----------- ## 2764 2765 _ACEOF 2766 2767 2768 # Keep a trace of the command line. 2769 # Strip out --no-create and --no-recursion so they do not pile up. 2770 # Strip out --silent because we don't want to record it for future runs. 2771 # Also quote any args containing shell meta-characters. 2772 # Make two passes to allow for proper duplicate-argument suppression. 2773 ac_configure_args= 2774 ac_configure_args0= 2775 ac_configure_args1= 2776 ac_must_keep_next=false 2777 for ac_pass in 1 2 2778 do 2779 for ac_arg 2780 do 2781 case $ac_arg in 2782 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2783 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2784 | -silent | --silent | --silen | --sile | --sil) 2785 continue ;; 2786 *\'*) 2787 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2788 esac 2789 case $ac_pass in 2790 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2791 2) 2792 as_fn_append ac_configure_args1 " '$ac_arg'" 2793 if test $ac_must_keep_next = true; then 2794 ac_must_keep_next=false # Got value, back to normal. 2795 else 2796 case $ac_arg in 2797 *=* | --config-cache | -C | -disable-* | --disable-* \ 2798 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2799 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2800 | -with-* | --with-* | -without-* | --without-* | --x) 2801 case "$ac_configure_args0 " in 2802 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2803 esac 2804 ;; 2805 -* ) ac_must_keep_next=true ;; 2806 esac 2807 fi 2808 as_fn_append ac_configure_args " '$ac_arg'" 2809 ;; 2810 esac 2811 done 2812 done 2813 { ac_configure_args0=; unset ac_configure_args0;} 2814 { ac_configure_args1=; unset ac_configure_args1;} 2815 2816 # When interrupted or exit'd, cleanup temporary files, and complete 2817 # config.log. We remove comments because anyway the quotes in there 2818 # would cause problems or look ugly. 2819 # WARNING: Use '\'' to represent an apostrophe within the trap. 2820 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2821 trap 'exit_status=$? 2822 # Sanitize IFS. 2823 IFS=" "" $as_nl" 2824 # Save into config.log some information that might help in debugging. 2825 { 2826 echo 2827 2828 printf "%s\n" "## ---------------- ## 2829 ## Cache variables. ## 2830 ## ---------------- ##" 2831 echo 2832 # The following way of writing the cache mishandles newlines in values, 2833 ( 2834 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2835 eval ac_val=\$$ac_var 2836 case $ac_val in #( 2837 *${as_nl}*) 2838 case $ac_var in #( 2839 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2840 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2841 esac 2842 case $ac_var in #( 2843 _ | IFS | as_nl) ;; #( 2844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2845 *) { eval $ac_var=; unset $ac_var;} ;; 2846 esac ;; 2847 esac 2848 done 2849 (set) 2>&1 | 2850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2851 *${as_nl}ac_space=\ *) 2852 sed -n \ 2853 "s/'\''/'\''\\\\'\'''\''/g; 2854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2855 ;; #( 2856 *) 2857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2858 ;; 2859 esac | 2860 sort 2861 ) 2862 echo 2863 2864 printf "%s\n" "## ----------------- ## 2865 ## Output variables. ## 2866 ## ----------------- ##" 2867 echo 2868 for ac_var in $ac_subst_vars 2869 do 2870 eval ac_val=\$$ac_var 2871 case $ac_val in 2872 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2873 esac 2874 printf "%s\n" "$ac_var='\''$ac_val'\''" 2875 done | sort 2876 echo 2877 2878 if test -n "$ac_subst_files"; then 2879 printf "%s\n" "## ------------------- ## 2880 ## File substitutions. ## 2881 ## ------------------- ##" 2882 echo 2883 for ac_var in $ac_subst_files 2884 do 2885 eval ac_val=\$$ac_var 2886 case $ac_val in 2887 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2888 esac 2889 printf "%s\n" "$ac_var='\''$ac_val'\''" 2890 done | sort 2891 echo 2892 fi 2893 2894 if test -s confdefs.h; then 2895 printf "%s\n" "## ----------- ## 2896 ## confdefs.h. ## 2897 ## ----------- ##" 2898 echo 2899 cat confdefs.h 2900 echo 2901 fi 2902 test "$ac_signal" != 0 && 2903 printf "%s\n" "$as_me: caught signal $ac_signal" 2904 printf "%s\n" "$as_me: exit $exit_status" 2905 } >&5 2906 rm -f core *.core core.conftest.* && 2907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2908 exit $exit_status 2909 ' 0 2910 for ac_signal in 1 2 13 15; do 2911 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2912 done 2913 ac_signal=0 2914 2915 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2916 rm -f -r conftest* confdefs.h 2917 2918 printf "%s\n" "/* confdefs.h */" > confdefs.h 2919 2920 # Predefined preprocessor variables. 2921 2922 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2923 2924 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2925 2926 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2927 2928 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2929 2930 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2931 2932 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2933 2934 2935 # Let the site file select an alternate cache file if it wants to. 2936 # Prefer an explicitly selected file to automatically selected ones. 2937 if test -n "$CONFIG_SITE"; then 2938 ac_site_files="$CONFIG_SITE" 2939 elif test "x$prefix" != xNONE; then 2940 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2941 else 2942 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2943 fi 2944 2945 for ac_site_file in $ac_site_files 2946 do 2947 case $ac_site_file in #( 2948 */*) : 2949 ;; #( 2950 *) : 2951 ac_site_file=./$ac_site_file ;; 2952 esac 2953 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2955 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2956 sed 's/^/| /' "$ac_site_file" >&5 2957 . "$ac_site_file" \ 2958 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2959 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2960 as_fn_error $? "failed to load site script $ac_site_file 2961 See \`config.log' for more details" "$LINENO" 5; } 2962 fi 2963 done 2964 2965 if test -r "$cache_file"; then 2966 # Some versions of bash will fail to source /dev/null (special files 2967 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2968 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2970 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2971 case $cache_file in 2972 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2973 *) . "./$cache_file";; 2974 esac 2975 fi 2976 else 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2978 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2979 >$cache_file 2980 fi 2981 2982 # Test code for whether the C compiler supports C89 (global declarations) 2983 ac_c_conftest_c89_globals=' 2984 /* Does the compiler advertise C89 conformance? 2985 Do not test the value of __STDC__, because some compilers set it to 0 2986 while being otherwise adequately conformant. */ 2987 #if !defined __STDC__ 2988 # error "Compiler does not advertise C89 conformance" 2989 #endif 2990 2991 #include <stddef.h> 2992 #include <stdarg.h> 2993 struct stat; 2994 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2995 struct buf { int x; }; 2996 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2997 static char *e (p, i) 2998 char **p; 2999 int i; 3000 { 3001 return p[i]; 3002 } 3003 static char *f (char * (*g) (char **, int), char **p, ...) 3004 { 3005 char *s; 3006 va_list v; 3007 va_start (v,p); 3008 s = g (p, va_arg (v,int)); 3009 va_end (v); 3010 return s; 3011 } 3012 3013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3014 function prototypes and stuff, but not \xHH hex character constants. 3015 These do not provoke an error unfortunately, instead are silently treated 3016 as an "x". The following induces an error, until -std is added to get 3017 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3018 array size at least. It is necessary to write \x00 == 0 to get something 3019 that is true only with -std. */ 3020 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3021 3022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3023 inside strings and character constants. */ 3024 #define FOO(x) '\''x'\'' 3025 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3026 3027 int test (int i, double x); 3028 struct s1 {int (*f) (int a);}; 3029 struct s2 {int (*f) (double a);}; 3030 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3031 int, int);' 3032 3033 # Test code for whether the C compiler supports C89 (body of main). 3034 ac_c_conftest_c89_main=' 3035 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3036 ' 3037 3038 # Test code for whether the C compiler supports C99 (global declarations) 3039 ac_c_conftest_c99_globals=' 3040 // Does the compiler advertise C99 conformance? 3041 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3042 # error "Compiler does not advertise C99 conformance" 3043 #endif 3044 3045 #include <stdbool.h> 3046 extern int puts (const char *); 3047 extern int printf (const char *, ...); 3048 extern int dprintf (int, const char *, ...); 3049 extern void *malloc (size_t); 3050 3051 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3052 // dprintf is used instead of fprintf to avoid needing to declare 3053 // FILE and stderr. 3054 #define debug(...) dprintf (2, __VA_ARGS__) 3055 #define showlist(...) puts (#__VA_ARGS__) 3056 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3057 static void 3058 test_varargs_macros (void) 3059 { 3060 int x = 1234; 3061 int y = 5678; 3062 debug ("Flag"); 3063 debug ("X = %d\n", x); 3064 showlist (The first, second, and third items.); 3065 report (x>y, "x is %d but y is %d", x, y); 3066 } 3067 3068 // Check long long types. 3069 #define BIG64 18446744073709551615ull 3070 #define BIG32 4294967295ul 3071 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3072 #if !BIG_OK 3073 #error "your preprocessor is broken" 3074 #endif 3075 #if BIG_OK 3076 #else 3077 #error "your preprocessor is broken" 3078 #endif 3079 static long long int bignum = -9223372036854775807LL; 3080 static unsigned long long int ubignum = BIG64; 3081 3082 struct incomplete_array 3083 { 3084 int datasize; 3085 double data[]; 3086 }; 3087 3088 struct named_init { 3089 int number; 3090 const wchar_t *name; 3091 double average; 3092 }; 3093 3094 typedef const char *ccp; 3095 3096 static inline int 3097 test_restrict (ccp restrict text) 3098 { 3099 // See if C++-style comments work. 3100 // Iterate through items via the restricted pointer. 3101 // Also check for declarations in for loops. 3102 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3103 continue; 3104 return 0; 3105 } 3106 3107 // Check varargs and va_copy. 3108 static bool 3109 test_varargs (const char *format, ...) 3110 { 3111 va_list args; 3112 va_start (args, format); 3113 va_list args_copy; 3114 va_copy (args_copy, args); 3115 3116 const char *str = ""; 3117 int number = 0; 3118 float fnumber = 0; 3119 3120 while (*format) 3121 { 3122 switch (*format++) 3123 { 3124 case '\''s'\'': // string 3125 str = va_arg (args_copy, const char *); 3126 break; 3127 case '\''d'\'': // int 3128 number = va_arg (args_copy, int); 3129 break; 3130 case '\''f'\'': // float 3131 fnumber = va_arg (args_copy, double); 3132 break; 3133 default: 3134 break; 3135 } 3136 } 3137 va_end (args_copy); 3138 va_end (args); 3139 3140 return *str && number && fnumber; 3141 } 3142 ' 3143 3144 # Test code for whether the C compiler supports C99 (body of main). 3145 ac_c_conftest_c99_main=' 3146 // Check bool. 3147 _Bool success = false; 3148 success |= (argc != 0); 3149 3150 // Check restrict. 3151 if (test_restrict ("String literal") == 0) 3152 success = true; 3153 char *restrict newvar = "Another string"; 3154 3155 // Check varargs. 3156 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3157 test_varargs_macros (); 3158 3159 // Check flexible array members. 3160 struct incomplete_array *ia = 3161 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3162 ia->datasize = 10; 3163 for (int i = 0; i < ia->datasize; ++i) 3164 ia->data[i] = i * 1.234; 3165 3166 // Check named initializers. 3167 struct named_init ni = { 3168 .number = 34, 3169 .name = L"Test wide string", 3170 .average = 543.34343, 3171 }; 3172 3173 ni.number = 58; 3174 3175 int dynamic_array[ni.number]; 3176 dynamic_array[0] = argv[0][0]; 3177 dynamic_array[ni.number - 1] = 543; 3178 3179 // work around unused variable warnings 3180 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3181 || dynamic_array[ni.number - 1] != 543); 3182 ' 3183 3184 # Test code for whether the C compiler supports C11 (global declarations) 3185 ac_c_conftest_c11_globals=' 3186 // Does the compiler advertise C11 conformance? 3187 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3188 # error "Compiler does not advertise C11 conformance" 3189 #endif 3190 3191 // Check _Alignas. 3192 char _Alignas (double) aligned_as_double; 3193 char _Alignas (0) no_special_alignment; 3194 extern char aligned_as_int; 3195 char _Alignas (0) _Alignas (int) aligned_as_int; 3196 3197 // Check _Alignof. 3198 enum 3199 { 3200 int_alignment = _Alignof (int), 3201 int_array_alignment = _Alignof (int[100]), 3202 char_alignment = _Alignof (char) 3203 }; 3204 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3205 3206 // Check _Noreturn. 3207 int _Noreturn does_not_return (void) { for (;;) continue; } 3208 3209 // Check _Static_assert. 3210 struct test_static_assert 3211 { 3212 int x; 3213 _Static_assert (sizeof (int) <= sizeof (long int), 3214 "_Static_assert does not work in struct"); 3215 long int y; 3216 }; 3217 3218 // Check UTF-8 literals. 3219 #define u8 syntax error! 3220 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3221 3222 // Check duplicate typedefs. 3223 typedef long *long_ptr; 3224 typedef long int *long_ptr; 3225 typedef long_ptr long_ptr; 3226 3227 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3228 struct anonymous 3229 { 3230 union { 3231 struct { int i; int j; }; 3232 struct { int k; long int l; } w; 3233 }; 3234 int m; 3235 } v1; 3236 ' 3237 3238 # Test code for whether the C compiler supports C11 (body of main). 3239 ac_c_conftest_c11_main=' 3240 _Static_assert ((offsetof (struct anonymous, i) 3241 == offsetof (struct anonymous, w.k)), 3242 "Anonymous union alignment botch"); 3243 v1.i = 2; 3244 v1.w.k = 5; 3245 ok |= v1.i != 5; 3246 ' 3247 3248 # Test code for whether the C compiler supports C11 (complete). 3249 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3250 ${ac_c_conftest_c99_globals} 3251 ${ac_c_conftest_c11_globals} 3252 3253 int 3254 main (int argc, char **argv) 3255 { 3256 int ok = 0; 3257 ${ac_c_conftest_c89_main} 3258 ${ac_c_conftest_c99_main} 3259 ${ac_c_conftest_c11_main} 3260 return ok; 3261 } 3262 " 3263 3264 # Test code for whether the C compiler supports C99 (complete). 3265 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3266 ${ac_c_conftest_c99_globals} 3267 3268 int 3269 main (int argc, char **argv) 3270 { 3271 int ok = 0; 3272 ${ac_c_conftest_c89_main} 3273 ${ac_c_conftest_c99_main} 3274 return ok; 3275 } 3276 " 3277 3278 # Test code for whether the C compiler supports C89 (complete). 3279 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3280 3281 int 3282 main (int argc, char **argv) 3283 { 3284 int ok = 0; 3285 ${ac_c_conftest_c89_main} 3286 return ok; 3287 } 3288 " 3289 3290 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3291 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3292 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3293 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3294 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3295 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3296 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3297 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3298 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3299 3300 # Auxiliary files required by this configure script. 3301 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh" 3302 3303 # Locations in which to look for auxiliary files. 3304 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3305 3306 # Search for a directory containing all of the required auxiliary files, 3307 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3308 # If we don't find one directory that contains all the files we need, 3309 # we report the set of missing files from the *first* directory in 3310 # $ac_aux_dir_candidates and give up. 3311 ac_missing_aux_files="" 3312 ac_first_candidate=: 3313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315 as_found=false 3316 for as_dir in $ac_aux_dir_candidates 3317 do 3318 IFS=$as_save_IFS 3319 case $as_dir in #((( 3320 '') as_dir=./ ;; 3321 */) ;; 3322 *) as_dir=$as_dir/ ;; 3323 esac 3324 as_found=: 3325 3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3327 ac_aux_dir_found=yes 3328 ac_install_sh= 3329 for ac_aux in $ac_aux_files 3330 do 3331 # As a special case, if "install-sh" is required, that requirement 3332 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3333 # and $ac_install_sh is set appropriately for whichever one is found. 3334 if test x"$ac_aux" = x"install-sh" 3335 then 3336 if test -f "${as_dir}install-sh"; then 3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3338 ac_install_sh="${as_dir}install-sh -c" 3339 elif test -f "${as_dir}install.sh"; then 3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3341 ac_install_sh="${as_dir}install.sh -c" 3342 elif test -f "${as_dir}shtool"; then 3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3344 ac_install_sh="${as_dir}shtool install -c" 3345 else 3346 ac_aux_dir_found=no 3347 if $ac_first_candidate; then 3348 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3349 else 3350 break 3351 fi 3352 fi 3353 else 3354 if test -f "${as_dir}${ac_aux}"; then 3355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3356 else 3357 ac_aux_dir_found=no 3358 if $ac_first_candidate; then 3359 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3360 else 3361 break 3362 fi 3363 fi 3364 fi 3365 done 3366 if test "$ac_aux_dir_found" = yes; then 3367 ac_aux_dir="$as_dir" 3368 break 3369 fi 3370 ac_first_candidate=false 3371 3372 as_found=false 3373 done 3374 IFS=$as_save_IFS 3375 if $as_found 3376 then : 3377 3378 else $as_nop 3379 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3380 fi 3381 3382 3383 # These three variables are undocumented and unsupported, 3384 # and are intended to be withdrawn in a future Autoconf release. 3385 # They can cause serious problems if a builder's source tree is in a directory 3386 # whose full name contains unusual characters. 3387 if test -f "${ac_aux_dir}config.guess"; then 3388 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3389 fi 3390 if test -f "${ac_aux_dir}config.sub"; then 3391 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3392 fi 3393 if test -f "$ac_aux_dir/configure"; then 3394 ac_configure="$SHELL ${ac_aux_dir}configure" 3395 fi 3396 3397 # Check that the precious variables saved in the cache have kept the same 3398 # value. 3399 ac_cache_corrupted=false 3400 for ac_var in $ac_precious_vars; do 3401 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3402 eval ac_new_set=\$ac_env_${ac_var}_set 3403 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3404 eval ac_new_val=\$ac_env_${ac_var}_value 3405 case $ac_old_set,$ac_new_set in 3406 set,) 3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3408 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3409 ac_cache_corrupted=: ;; 3410 ,set) 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3412 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3413 ac_cache_corrupted=: ;; 3414 ,);; 3415 *) 3416 if test "x$ac_old_val" != "x$ac_new_val"; then 3417 # differences in whitespace do not lead to failure. 3418 ac_old_val_w=`echo x $ac_old_val` 3419 ac_new_val_w=`echo x $ac_new_val` 3420 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3422 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3423 ac_cache_corrupted=: 3424 else 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3426 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3427 eval $ac_var=\$ac_old_val 3428 fi 3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3430 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3432 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3433 fi;; 3434 esac 3435 # Pass precious variables to config.status. 3436 if test "$ac_new_set" = set; then 3437 case $ac_new_val in 3438 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3439 *) ac_arg=$ac_var=$ac_new_val ;; 3440 esac 3441 case " $ac_configure_args " in 3442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3443 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3444 esac 3445 fi 3446 done 3447 if $ac_cache_corrupted; then 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3449 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3451 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3452 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3453 and start over" "$LINENO" 5 3454 fi 3455 ## -------------------- ## 3456 ## Main body of script. ## 3457 ## -------------------- ## 3458 3459 ac_ext=c 3460 ac_cpp='$CPP $CPPFLAGS' 3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3464 3465 3466 3467 3468 3469 3470 3471 # using curl-override.m4 3472 3473 3474 3475 3476 3477 ac_config_headers="$ac_config_headers lib/curl_config.h" 3478 3479 3480 3481 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3483 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3484 # Check whether --enable-maintainer-mode was given. 3485 if test ${enable_maintainer_mode+y} 3486 then : 3487 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3488 else $as_nop 3489 USE_MAINTAINER_MODE=no 3490 fi 3491 3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3493 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3494 if test $USE_MAINTAINER_MODE = yes; then 3495 MAINTAINER_MODE_TRUE= 3496 MAINTAINER_MODE_FALSE='#' 3497 else 3498 MAINTAINER_MODE_TRUE='#' 3499 MAINTAINER_MODE_FALSE= 3500 fi 3501 3502 MAINT=$MAINTAINER_MODE_TRUE 3503 3504 3505 # Check whether --enable-silent-rules was given. 3506 if test ${enable_silent_rules+y} 3507 then : 3508 enableval=$enable_silent_rules; 3509 fi 3510 3511 case $enable_silent_rules in # ((( 3512 yes) AM_DEFAULT_VERBOSITY=0;; 3513 no) AM_DEFAULT_VERBOSITY=1;; 3514 *) AM_DEFAULT_VERBOSITY=0;; 3515 esac 3516 am_make=${MAKE-make} 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3518 printf %s "checking whether $am_make supports nested variables... " >&6; } 3519 if test ${am_cv_make_support_nested_variables+y} 3520 then : 3521 printf %s "(cached) " >&6 3522 else $as_nop 3523 if printf "%s\n" 'TRUE=$(BAR$(V)) 3524 BAR0=false 3525 BAR1=true 3526 V=1 3527 am__doit: 3528 @$(TRUE) 3529 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3530 am_cv_make_support_nested_variables=yes 3531 else 3532 am_cv_make_support_nested_variables=no 3533 fi 3534 fi 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3536 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3537 if test $am_cv_make_support_nested_variables = yes; then 3538 AM_V='$(V)' 3539 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3540 else 3541 AM_V=$AM_DEFAULT_VERBOSITY 3542 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3543 fi 3544 AM_BACKSLASH='\' 3545 3546 3547 3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 3549 printf %s "checking whether to enable debug build options... " >&6; } 3550 OPT_DEBUG_BUILD="default" 3551 # Check whether --enable-debug was given. 3552 if test ${enable_debug+y} 3553 then : 3554 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 3555 fi 3556 3557 case "$OPT_DEBUG_BUILD" in 3558 no) 3559 want_debug="no" 3560 ;; 3561 default) 3562 want_debug="no" 3563 ;; 3564 *) 3565 want_debug="yes" 3566 ;; 3567 esac 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 3569 printf "%s\n" "$want_debug" >&6; } 3570 3571 if test x$want_debug = xyes; then 3572 DEBUGBUILD_TRUE= 3573 DEBUGBUILD_FALSE='#' 3574 else 3575 DEBUGBUILD_TRUE='#' 3576 DEBUGBUILD_FALSE= 3577 fi 3578 3579 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 3581 printf %s "checking whether to enable compiler optimizer... " >&6; } 3582 OPT_COMPILER_OPTIMIZE="default" 3583 # Check whether --enable-optimize was given. 3584 if test ${enable_optimize+y} 3585 then : 3586 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 3587 fi 3588 3589 case "$OPT_COMPILER_OPTIMIZE" in 3590 no) 3591 want_optimize="no" 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3593 printf "%s\n" "no" >&6; } 3594 ;; 3595 default) 3596 if test "$want_debug" = "yes"; then 3597 want_optimize="assume_no" 3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 3599 printf "%s\n" "(assumed) no" >&6; } 3600 else 3601 want_optimize="assume_yes" 3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3603 printf "%s\n" "(assumed) yes" >&6; } 3604 fi 3605 ;; 3606 *) 3607 want_optimize="yes" 3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3609 printf "%s\n" "yes" >&6; } 3610 ;; 3611 esac 3612 3613 3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 3615 printf %s "checking whether to enable strict compiler warnings... " >&6; } 3616 OPT_COMPILER_WARNINGS="default" 3617 # Check whether --enable-warnings was given. 3618 if test ${enable_warnings+y} 3619 then : 3620 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 3621 fi 3622 3623 case "$OPT_COMPILER_WARNINGS" in 3624 no) 3625 want_warnings="no" 3626 ;; 3627 default) 3628 want_warnings="$want_debug" 3629 ;; 3630 *) 3631 want_warnings="yes" 3632 ;; 3633 esac 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 3635 printf "%s\n" "$want_warnings" >&6; } 3636 3637 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 3639 printf %s "checking whether to enable compiler warnings as errors... " >&6; } 3640 OPT_COMPILER_WERROR="default" 3641 # Check whether --enable-werror was given. 3642 if test ${enable_werror+y} 3643 then : 3644 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 3645 fi 3646 3647 case "$OPT_COMPILER_WERROR" in 3648 no) 3649 want_werror="no" 3650 ;; 3651 default) 3652 want_werror="no" 3653 ;; 3654 *) 3655 want_werror="yes" 3656 ;; 3657 esac 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 3659 printf "%s\n" "$want_werror" >&6; } 3660 3661 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 3663 printf %s "checking whether to enable curl debug memory tracking... " >&6; } 3664 OPT_CURLDEBUG_BUILD="default" 3665 # Check whether --enable-curldebug was given. 3666 if test ${enable_curldebug+y} 3667 then : 3668 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval 3669 fi 3670 3671 case "$OPT_CURLDEBUG_BUILD" in 3672 no) 3673 want_curldebug="no" 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3675 printf "%s\n" "no" >&6; } 3676 ;; 3677 default) 3678 if test "$want_debug" = "yes"; then 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3680 printf "%s\n" "(assumed) yes" >&6; } 3681 else 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683 printf "%s\n" "no" >&6; } 3684 fi 3685 want_curldebug_assumed="yes" 3686 want_curldebug="$want_debug" 3687 ;; 3688 *) 3689 want_curldebug="yes" 3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3691 printf "%s\n" "yes" >&6; } 3692 ;; 3693 esac 3694 3695 if test x$want_curldebug = xyes; then 3696 CURLDEBUG_TRUE= 3697 CURLDEBUG_FALSE='#' 3698 else 3699 CURLDEBUG_TRUE='#' 3700 CURLDEBUG_FALSE= 3701 fi 3702 3703 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5 3705 printf %s "checking whether to enable hiding of library internal symbols... " >&6; } 3706 OPT_SYMBOL_HIDING="default" 3707 # Check whether --enable-symbol-hiding was given. 3708 if test ${enable_symbol_hiding+y} 3709 then : 3710 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval 3711 fi 3712 3713 case "$OPT_SYMBOL_HIDING" in 3714 no) 3715 want_symbol_hiding="no" 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717 printf "%s\n" "no" >&6; } 3718 ;; 3719 default) 3720 want_symbol_hiding="yes" 3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3722 printf "%s\n" "yes" >&6; } 3723 ;; 3724 *) 3725 want_symbol_hiding="yes" 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3727 printf "%s\n" "yes" >&6; } 3728 ;; 3729 esac 3730 3731 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 3733 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; } 3734 OPT_ARES="default" 3735 # Check whether --enable-ares was given. 3736 if test ${enable_ares+y} 3737 then : 3738 enableval=$enable_ares; OPT_ARES=$enableval 3739 fi 3740 3741 case "$OPT_ARES" in 3742 no) 3743 want_ares="no" 3744 ;; 3745 default) 3746 want_ares="no" 3747 ;; 3748 *) 3749 want_ares="yes" 3750 if test -n "$enableval" && test "$enableval" != "yes"; then 3751 want_ares_path="$enableval" 3752 fi 3753 ;; 3754 esac 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 3756 printf "%s\n" "$want_ares" >&6; } 3757 3758 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5 3760 printf %s "checking whether to disable dependency on -lrt... " >&6; } 3761 OPT_RT="default" 3762 # Check whether --enable-rt was given. 3763 if test ${enable_rt+y} 3764 then : 3765 enableval=$enable_rt; OPT_RT=$enableval 3766 fi 3767 3768 case "$OPT_RT" in 3769 no) 3770 dontwant_rt="yes" 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3772 printf "%s\n" "yes" >&6; } 3773 ;; 3774 default) 3775 dontwant_rt="no" 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5 3777 printf "%s\n" "(assumed no)" >&6; } 3778 ;; 3779 *) 3780 dontwant_rt="no" 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3782 printf "%s\n" "no" >&6; } 3783 ;; 3784 esac 3785 3786 3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable HTTPSRR support" >&5 3788 printf %s "checking whether to enable HTTPSRR support... " >&6; } 3789 OPT_HTTPSRR="default" 3790 # Check whether --enable-httpsrr was given. 3791 if test ${enable_httpsrr+y} 3792 then : 3793 enableval=$enable_httpsrr; OPT_HTTPSRR=$enableval 3794 fi 3795 3796 case "$OPT_HTTPSRR" in 3797 no) 3798 want_httpsrr="no" 3799 curl_httpsrr_msg="no (--enable-httpsrr)" 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3801 printf "%s\n" "no" >&6; } 3802 ;; 3803 default) 3804 want_httpsrr="no" 3805 curl_httpsrr_msg="no (--enable-httpsrr)" 3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3807 printf "%s\n" "no" >&6; } 3808 ;; 3809 *) 3810 want_httpsrr="yes" 3811 curl_httpsrr_msg="enabled" 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3813 printf "%s\n" "yes" >&6; } 3814 ;; 3815 esac 3816 3817 3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5 3819 printf %s "checking whether to enable ECH support... " >&6; } 3820 OPT_ECH="default" 3821 # Check whether --enable-ech was given. 3822 if test ${enable_ech+y} 3823 then : 3824 enableval=$enable_ech; OPT_ECH=$enableval 3825 fi 3826 3827 case "$OPT_ECH" in 3828 no) 3829 want_ech="no" 3830 curl_ech_msg="no (--enable-ech)" 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3832 printf "%s\n" "no" >&6; } 3833 ;; 3834 default) 3835 want_ech="no" 3836 curl_ech_msg="no (--enable-ech)" 3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3838 printf "%s\n" "no" >&6; } 3839 ;; 3840 *) 3841 want_ech="yes" 3842 curl_ech_msg="enabled (--disable-ech)" 3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3844 printf "%s\n" "yes" >&6; } 3845 ;; 3846 esac 3847 3848 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSL session export support" >&5 3850 printf %s "checking whether to enable SSL session export support... " >&6; } 3851 OPT_SSLS_EXPORT="default" 3852 # Check whether --enable-ssls-export was given. 3853 if test ${enable_ssls_export+y} 3854 then : 3855 enableval=$enable_ssls_export; OPT_SSLS_EXPORT=$enableval 3856 fi 3857 3858 case "$OPT_SSLS_EXPORT" in 3859 no) 3860 want_ssls_export="no" 3861 curl_ssls_export_msg="no (--enable-ssls-export)" 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3863 printf "%s\n" "no" >&6; } 3864 ;; 3865 default) 3866 want_ssls_export="no" 3867 curl_ssls_export_msg="no (--enable-ssls-export)" 3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3869 printf "%s\n" "no" >&6; } 3870 ;; 3871 *) 3872 want_ssls_export="yes" 3873 curl_ssls_export_msg="enabled (--disable-ssls-export)" 3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3875 printf "%s\n" "yes" >&6; } 3876 ;; 3877 esac 3878 3879 3880 # 3881 # Check that 'XC_CONFIGURE_PREAMBLE' has already run. 3882 # 3883 3884 if test -z "$xc_configure_preamble_result"; then 3885 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5 3886 fi 3887 3888 # 3889 # Check that 'PATH_SEPARATOR' has already been set. 3890 # 3891 3892 if test -z "$xc_PATH_SEPARATOR"; then 3893 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5 3894 fi 3895 if test -z "$PATH_SEPARATOR"; then 3896 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5 3897 fi 3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5 3899 printf %s "checking for path separator... " >&6; } 3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5 3901 printf "%s\n" "$PATH_SEPARATOR" >&6; } 3902 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then 3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5 3904 printf %s "checking for initial path separator... " >&6; } 3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5 3906 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; } 3907 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5 3908 fi 3909 3910 3911 # 3912 # save the configure arguments 3913 # 3914 CONFIGURE_OPTIONS="\"$ac_configure_args\"" 3915 3916 3917 if test -z "$SED"; then 3918 # Extract the first word of "sed", so it can be a program name with args. 3919 set dummy sed; ac_word=$2 3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3921 printf %s "checking for $ac_word... " >&6; } 3922 if test ${ac_cv_path_SED+y} 3923 then : 3924 printf %s "(cached) " >&6 3925 else $as_nop 3926 case $SED in 3927 [\\/]* | ?:[\\/]*) 3928 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3929 ;; 3930 *) 3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3933 for as_dir in $as_dummy 3934 do 3935 IFS=$as_save_IFS 3936 case $as_dir in #((( 3937 '') as_dir=./ ;; 3938 */) ;; 3939 *) as_dir=$as_dir/ ;; 3940 esac 3941 for ac_exec_ext in '' $ac_executable_extensions; do 3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3943 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" 3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3945 break 2 3946 fi 3947 done 3948 done 3949 IFS=$as_save_IFS 3950 3951 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 3952 ;; 3953 esac 3954 fi 3955 SED=$ac_cv_path_SED 3956 if test -n "$SED"; then 3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3958 printf "%s\n" "$SED" >&6; } 3959 else 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3961 printf "%s\n" "no" >&6; } 3962 fi 3963 3964 3965 if test -z "$SED" || test "$SED" = "not_found"; then 3966 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 3967 fi 3968 fi 3969 3970 3971 if test -z "$GREP"; then 3972 # Extract the first word of "grep", so it can be a program name with args. 3973 set dummy grep; ac_word=$2 3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3975 printf %s "checking for $ac_word... " >&6; } 3976 if test ${ac_cv_path_GREP+y} 3977 then : 3978 printf %s "(cached) " >&6 3979 else $as_nop 3980 case $GREP in 3981 [\\/]* | ?:[\\/]*) 3982 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 3983 ;; 3984 *) 3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3986 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3987 for as_dir in $as_dummy 3988 do 3989 IFS=$as_save_IFS 3990 case $as_dir in #((( 3991 '') as_dir=./ ;; 3992 */) ;; 3993 *) as_dir=$as_dir/ ;; 3994 esac 3995 for ac_exec_ext in '' $ac_executable_extensions; do 3996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3997 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext" 3998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3999 break 2 4000 fi 4001 done 4002 done 4003 IFS=$as_save_IFS 4004 4005 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 4006 ;; 4007 esac 4008 fi 4009 GREP=$ac_cv_path_GREP 4010 if test -n "$GREP"; then 4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 4012 printf "%s\n" "$GREP" >&6; } 4013 else 4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4015 printf "%s\n" "no" >&6; } 4016 fi 4017 4018 4019 if test -z "$GREP" || test "$GREP" = "not_found"; then 4020 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 4021 fi 4022 fi 4023 4024 4025 if test -z "$EGREP"; then 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5 4027 printf %s "checking that grep -E works... " >&6; } 4028 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 4029 EGREP="$GREP -E" 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4031 printf "%s\n" "yes" >&6; } 4032 else 4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4034 printf "%s\n" "no" >&6; } 4035 # Extract the first word of "egrep", so it can be a program name with args. 4036 set dummy egrep; ac_word=$2 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4038 printf %s "checking for $ac_word... " >&6; } 4039 if test ${ac_cv_path_EGREP+y} 4040 then : 4041 printf %s "(cached) " >&6 4042 else $as_nop 4043 case $EGREP in 4044 [\\/]* | ?:[\\/]*) 4045 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 4046 ;; 4047 *) 4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4049 as_dummy="$PATH:/usr/bin:/usr/local/bin" 4050 for as_dir in $as_dummy 4051 do 4052 IFS=$as_save_IFS 4053 case $as_dir in #((( 4054 '') as_dir=./ ;; 4055 */) ;; 4056 *) as_dir=$as_dir/ ;; 4057 esac 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4060 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext" 4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4062 break 2 4063 fi 4064 done 4065 done 4066 IFS=$as_save_IFS 4067 4068 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 4069 ;; 4070 esac 4071 fi 4072 EGREP=$ac_cv_path_EGREP 4073 if test -n "$EGREP"; then 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 4075 printf "%s\n" "$EGREP" >&6; } 4076 else 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4078 printf "%s\n" "no" >&6; } 4079 fi 4080 4081 4082 fi 4083 fi 4084 if test -z "$EGREP" || test "$EGREP" = "not_found"; then 4085 as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5 4086 fi 4087 4088 4089 if test -z "$AR"; then 4090 if test -n "$ac_tool_prefix"; then 4091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4092 set dummy ${ac_tool_prefix}ar; ac_word=$2 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4094 printf %s "checking for $ac_word... " >&6; } 4095 if test ${ac_cv_path_AR+y} 4096 then : 4097 printf %s "(cached) " >&6 4098 else $as_nop 4099 case $AR in 4100 [\\/]* | ?:[\\/]*) 4101 ac_cv_path_AR="$AR" # Let the user override the test with a path. 4102 ;; 4103 *) 4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4105 as_dummy="$PATH:/usr/bin:/usr/local/bin" 4106 for as_dir in $as_dummy 4107 do 4108 IFS=$as_save_IFS 4109 case $as_dir in #((( 4110 '') as_dir=./ ;; 4111 */) ;; 4112 *) as_dir=$as_dir/ ;; 4113 esac 4114 for ac_exec_ext in '' $ac_executable_extensions; do 4115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4116 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 4117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4118 break 2 4119 fi 4120 done 4121 done 4122 IFS=$as_save_IFS 4123 4124 ;; 4125 esac 4126 fi 4127 AR=$ac_cv_path_AR 4128 if test -n "$AR"; then 4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4130 printf "%s\n" "$AR" >&6; } 4131 else 4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4133 printf "%s\n" "no" >&6; } 4134 fi 4135 4136 4137 fi 4138 if test -z "$ac_cv_path_AR"; then 4139 ac_pt_AR=$AR 4140 # Extract the first word of "ar", so it can be a program name with args. 4141 set dummy ar; ac_word=$2 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4143 printf %s "checking for $ac_word... " >&6; } 4144 if test ${ac_cv_path_ac_pt_AR+y} 4145 then : 4146 printf %s "(cached) " >&6 4147 else $as_nop 4148 case $ac_pt_AR in 4149 [\\/]* | ?:[\\/]*) 4150 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 4151 ;; 4152 *) 4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4154 as_dummy="$PATH:/usr/bin:/usr/local/bin" 4155 for as_dir in $as_dummy 4156 do 4157 IFS=$as_save_IFS 4158 case $as_dir in #((( 4159 '') as_dir=./ ;; 4160 */) ;; 4161 *) as_dir=$as_dir/ ;; 4162 esac 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4165 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4167 break 2 4168 fi 4169 done 4170 done 4171 IFS=$as_save_IFS 4172 4173 ;; 4174 esac 4175 fi 4176 ac_pt_AR=$ac_cv_path_ac_pt_AR 4177 if test -n "$ac_pt_AR"; then 4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 4179 printf "%s\n" "$ac_pt_AR" >&6; } 4180 else 4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4182 printf "%s\n" "no" >&6; } 4183 fi 4184 4185 if test "x$ac_pt_AR" = x; then 4186 AR="not_found" 4187 else 4188 case $cross_compiling:$ac_tool_warned in 4189 yes:) 4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4192 ac_tool_warned=yes ;; 4193 esac 4194 AR=$ac_pt_AR 4195 fi 4196 else 4197 AR="$ac_cv_path_AR" 4198 fi 4199 4200 if test -z "$AR" || test "$AR" = "not_found"; then 4201 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 4202 fi 4203 fi 4204 4205 4206 4207 4208 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h` 4209 4210 xc_prog_cc_prev_IFS=$IFS 4211 xc_prog_cc_prev_LIBS=$LIBS 4212 xc_prog_cc_prev_CFLAGS=$CFLAGS 4213 xc_prog_cc_prev_LDFLAGS=$LDFLAGS 4214 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS 4215 4216 4217 4218 xc_bad_var_libs=no 4219 for xc_word in $LIBS; do 4220 case "$xc_word" in 4221 -l* | --library=*) 4222 : 4223 ;; 4224 *) 4225 xc_bad_var_libs=yes 4226 ;; 4227 esac 4228 done 4229 if test $xc_bad_var_libs = yes; then 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 4231 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;} 4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 4233 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 4234 fi 4235 4236 4237 xc_bad_var_ldflags=no 4238 for xc_word in $LDFLAGS; do 4239 case "$xc_word" in 4240 -D*) 4241 xc_bad_var_ldflags=yes 4242 ;; 4243 -U*) 4244 xc_bad_var_ldflags=yes 4245 ;; 4246 -I*) 4247 xc_bad_var_ldflags=yes 4248 ;; 4249 -l* | --library=*) 4250 xc_bad_var_ldflags=yes 4251 ;; 4252 esac 4253 done 4254 if test $xc_bad_var_ldflags = yes; then 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 4256 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 4257 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 4258 for xc_word in $LDFLAGS; do 4259 case "$xc_word" in 4260 -D*) 4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 4262 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 4263 ;; 4264 -U*) 4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 4266 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 4267 ;; 4268 -I*) 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 4270 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 4271 ;; 4272 -l* | --library=*) 4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4274 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4275 ;; 4276 esac 4277 done 4278 fi 4279 4280 4281 xc_bad_var_cppflags=no 4282 for xc_word in $CPPFLAGS; do 4283 case "$xc_word" in 4284 -rpath*) 4285 xc_bad_var_cppflags=yes 4286 ;; 4287 -L* | --library-path=*) 4288 xc_bad_var_cppflags=yes 4289 ;; 4290 -l* | --library=*) 4291 xc_bad_var_cppflags=yes 4292 ;; 4293 esac 4294 done 4295 if test $xc_bad_var_cppflags = yes; then 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 4297 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 4298 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 4299 for xc_word in $CPPFLAGS; do 4300 case "$xc_word" in 4301 -rpath*) 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 4303 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 4304 ;; 4305 -L* | --library-path=*) 4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 4307 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 4308 ;; 4309 -l* | --library=*) 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4311 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4312 ;; 4313 esac 4314 done 4315 fi 4316 4317 4318 xc_bad_var_cflags=no 4319 for xc_word in $CFLAGS; do 4320 case "$xc_word" in 4321 -D*) 4322 xc_bad_var_cflags=yes 4323 ;; 4324 -U*) 4325 xc_bad_var_cflags=yes 4326 ;; 4327 -I*) 4328 xc_bad_var_cflags=yes 4329 ;; 4330 -rpath*) 4331 xc_bad_var_cflags=yes 4332 ;; 4333 -L* | --library-path=*) 4334 xc_bad_var_cflags=yes 4335 ;; 4336 -l* | --library=*) 4337 xc_bad_var_cflags=yes 4338 ;; 4339 esac 4340 done 4341 if test $xc_bad_var_cflags = yes; then 4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 4343 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;} 4344 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 4345 for xc_word in $CFLAGS; do 4346 case "$xc_word" in 4347 -D*) 4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 4349 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 4350 ;; 4351 -U*) 4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 4353 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 4354 ;; 4355 -I*) 4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 4357 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 4358 ;; 4359 -rpath*) 4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 4361 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 4362 ;; 4363 -L* | --library-path=*) 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 4365 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 4366 ;; 4367 -l* | --library=*) 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4369 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4370 ;; 4371 esac 4372 done 4373 fi 4374 4375 if test $xc_bad_var_libs = yes || 4376 test $xc_bad_var_cflags = yes || 4377 test $xc_bad_var_ldflags = yes || 4378 test $xc_bad_var_cppflags = yes; then 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 4380 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 4381 fi 4382 4383 4384 4385 # Find a good install program. We prefer a C program (faster), 4386 # so one script is as good as another. But avoid the broken or 4387 # incompatible versions: 4388 # SysV /etc/install, /usr/sbin/install 4389 # SunOS /usr/etc/install 4390 # IRIX /sbin/install 4391 # AIX /bin/install 4392 # AmigaOS /C/install, which installs bootblocks on floppy discs 4393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4396 # OS/2's system install, which has a completely different semantic 4397 # ./install, which can be erroneously created by make from ./install.sh. 4398 # Reject install programs that cannot install multiple files. 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4400 printf %s "checking for a BSD-compatible install... " >&6; } 4401 if test -z "$INSTALL"; then 4402 if test ${ac_cv_path_install+y} 4403 then : 4404 printf %s "(cached) " >&6 4405 else $as_nop 4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407 for as_dir in $PATH 4408 do 4409 IFS=$as_save_IFS 4410 case $as_dir in #((( 4411 '') as_dir=./ ;; 4412 */) ;; 4413 *) as_dir=$as_dir/ ;; 4414 esac 4415 # Account for fact that we put trailing slashes in our PATH walk. 4416 case $as_dir in #(( 4417 ./ | /[cC]/* | \ 4418 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4419 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4420 /usr/ucb/* ) ;; 4421 *) 4422 # OSF1 and SCO ODT 3.0 have their own names for install. 4423 # Don't use installbsd from OSF since it installs stuff as root 4424 # by default. 4425 for ac_prog in ginstall scoinst install; do 4426 for ac_exec_ext in '' $ac_executable_extensions; do 4427 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4428 if test $ac_prog = install && 4429 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4430 # AIX install. It has an incompatible calling convention. 4431 : 4432 elif test $ac_prog = install && 4433 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4434 # program-specific install script used by HP pwplus--don't use. 4435 : 4436 else 4437 rm -rf conftest.one conftest.two conftest.dir 4438 echo one > conftest.one 4439 echo two > conftest.two 4440 mkdir conftest.dir 4441 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4442 test -s conftest.one && test -s conftest.two && 4443 test -s conftest.dir/conftest.one && 4444 test -s conftest.dir/conftest.two 4445 then 4446 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4447 break 3 4448 fi 4449 fi 4450 fi 4451 done 4452 done 4453 ;; 4454 esac 4455 4456 done 4457 IFS=$as_save_IFS 4458 4459 rm -rf conftest.one conftest.two conftest.dir 4460 4461 fi 4462 if test ${ac_cv_path_install+y}; then 4463 INSTALL=$ac_cv_path_install 4464 else 4465 # As a last resort, use the slow shell script. Don't cache a 4466 # value for INSTALL within a source directory, because that will 4467 # break other packages using the cache if that directory is 4468 # removed, or if the value is a relative name. 4469 INSTALL=$ac_install_sh 4470 fi 4471 fi 4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4473 printf "%s\n" "$INSTALL" >&6; } 4474 4475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4476 # It thinks the first close brace ends the variable substitution. 4477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4478 4479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4480 4481 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 # Expand $ac_aux_dir to an absolute path. 4494 am_aux_dir=`cd "$ac_aux_dir" && pwd` 4495 4496 ac_ext=c 4497 ac_cpp='$CPP $CPPFLAGS' 4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4501 if test -n "$ac_tool_prefix"; then 4502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4503 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4505 printf %s "checking for $ac_word... " >&6; } 4506 if test ${ac_cv_prog_CC+y} 4507 then : 4508 printf %s "(cached) " >&6 4509 else $as_nop 4510 if test -n "$CC"; then 4511 ac_cv_prog_CC="$CC" # Let the user override the test. 4512 else 4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4514 for as_dir in $PATH 4515 do 4516 IFS=$as_save_IFS 4517 case $as_dir in #((( 4518 '') as_dir=./ ;; 4519 */) ;; 4520 *) as_dir=$as_dir/ ;; 4521 esac 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4524 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4526 break 2 4527 fi 4528 done 4529 done 4530 IFS=$as_save_IFS 4531 4532 fi 4533 fi 4534 CC=$ac_cv_prog_CC 4535 if test -n "$CC"; then 4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4537 printf "%s\n" "$CC" >&6; } 4538 else 4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4540 printf "%s\n" "no" >&6; } 4541 fi 4542 4543 4544 fi 4545 if test -z "$ac_cv_prog_CC"; then 4546 ac_ct_CC=$CC 4547 # Extract the first word of "gcc", so it can be a program name with args. 4548 set dummy gcc; ac_word=$2 4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4550 printf %s "checking for $ac_word... " >&6; } 4551 if test ${ac_cv_prog_ac_ct_CC+y} 4552 then : 4553 printf %s "(cached) " >&6 4554 else $as_nop 4555 if test -n "$ac_ct_CC"; then 4556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4557 else 4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559 for as_dir in $PATH 4560 do 4561 IFS=$as_save_IFS 4562 case $as_dir in #((( 4563 '') as_dir=./ ;; 4564 */) ;; 4565 *) as_dir=$as_dir/ ;; 4566 esac 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4569 ac_cv_prog_ac_ct_CC="gcc" 4570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573 done 4574 done 4575 IFS=$as_save_IFS 4576 4577 fi 4578 fi 4579 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4580 if test -n "$ac_ct_CC"; then 4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4582 printf "%s\n" "$ac_ct_CC" >&6; } 4583 else 4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585 printf "%s\n" "no" >&6; } 4586 fi 4587 4588 if test "x$ac_ct_CC" = x; then 4589 CC="" 4590 else 4591 case $cross_compiling:$ac_tool_warned in 4592 yes:) 4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4595 ac_tool_warned=yes ;; 4596 esac 4597 CC=$ac_ct_CC 4598 fi 4599 else 4600 CC="$ac_cv_prog_CC" 4601 fi 4602 4603 if test -z "$CC"; then 4604 if test -n "$ac_tool_prefix"; then 4605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4606 set dummy ${ac_tool_prefix}cc; ac_word=$2 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4608 printf %s "checking for $ac_word... " >&6; } 4609 if test ${ac_cv_prog_CC+y} 4610 then : 4611 printf %s "(cached) " >&6 4612 else $as_nop 4613 if test -n "$CC"; then 4614 ac_cv_prog_CC="$CC" # Let the user override the test. 4615 else 4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4617 for as_dir in $PATH 4618 do 4619 IFS=$as_save_IFS 4620 case $as_dir in #((( 4621 '') as_dir=./ ;; 4622 */) ;; 4623 *) as_dir=$as_dir/ ;; 4624 esac 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4627 ac_cv_prog_CC="${ac_tool_prefix}cc" 4628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4629 break 2 4630 fi 4631 done 4632 done 4633 IFS=$as_save_IFS 4634 4635 fi 4636 fi 4637 CC=$ac_cv_prog_CC 4638 if test -n "$CC"; then 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4640 printf "%s\n" "$CC" >&6; } 4641 else 4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643 printf "%s\n" "no" >&6; } 4644 fi 4645 4646 4647 fi 4648 fi 4649 if test -z "$CC"; then 4650 # Extract the first word of "cc", so it can be a program name with args. 4651 set dummy cc; ac_word=$2 4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4653 printf %s "checking for $ac_word... " >&6; } 4654 if test ${ac_cv_prog_CC+y} 4655 then : 4656 printf %s "(cached) " >&6 4657 else $as_nop 4658 if test -n "$CC"; then 4659 ac_cv_prog_CC="$CC" # Let the user override the test. 4660 else 4661 ac_prog_rejected=no 4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663 for as_dir in $PATH 4664 do 4665 IFS=$as_save_IFS 4666 case $as_dir in #((( 4667 '') as_dir=./ ;; 4668 */) ;; 4669 *) as_dir=$as_dir/ ;; 4670 esac 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4673 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4674 ac_prog_rejected=yes 4675 continue 4676 fi 4677 ac_cv_prog_CC="cc" 4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4679 break 2 4680 fi 4681 done 4682 done 4683 IFS=$as_save_IFS 4684 4685 if test $ac_prog_rejected = yes; then 4686 # We found a bogon in the path, so make sure we never use it. 4687 set dummy $ac_cv_prog_CC 4688 shift 4689 if test $# != 0; then 4690 # We chose a different compiler from the bogus one. 4691 # However, it has the same basename, so the bogon will be chosen 4692 # first if we set CC to just the basename; use the full file name. 4693 shift 4694 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4695 fi 4696 fi 4697 fi 4698 fi 4699 CC=$ac_cv_prog_CC 4700 if test -n "$CC"; then 4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4702 printf "%s\n" "$CC" >&6; } 4703 else 4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4705 printf "%s\n" "no" >&6; } 4706 fi 4707 4708 4709 fi 4710 if test -z "$CC"; then 4711 if test -n "$ac_tool_prefix"; then 4712 for ac_prog in cl.exe 4713 do 4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4717 printf %s "checking for $ac_word... " >&6; } 4718 if test ${ac_cv_prog_CC+y} 4719 then : 4720 printf %s "(cached) " >&6 4721 else $as_nop 4722 if test -n "$CC"; then 4723 ac_cv_prog_CC="$CC" # Let the user override the test. 4724 else 4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726 for as_dir in $PATH 4727 do 4728 IFS=$as_save_IFS 4729 case $as_dir in #((( 4730 '') as_dir=./ ;; 4731 */) ;; 4732 *) as_dir=$as_dir/ ;; 4733 esac 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4738 break 2 4739 fi 4740 done 4741 done 4742 IFS=$as_save_IFS 4743 4744 fi 4745 fi 4746 CC=$ac_cv_prog_CC 4747 if test -n "$CC"; then 4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4749 printf "%s\n" "$CC" >&6; } 4750 else 4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4752 printf "%s\n" "no" >&6; } 4753 fi 4754 4755 4756 test -n "$CC" && break 4757 done 4758 fi 4759 if test -z "$CC"; then 4760 ac_ct_CC=$CC 4761 for ac_prog in cl.exe 4762 do 4763 # Extract the first word of "$ac_prog", so it can be a program name with args. 4764 set dummy $ac_prog; ac_word=$2 4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4766 printf %s "checking for $ac_word... " >&6; } 4767 if test ${ac_cv_prog_ac_ct_CC+y} 4768 then : 4769 printf %s "(cached) " >&6 4770 else $as_nop 4771 if test -n "$ac_ct_CC"; then 4772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4773 else 4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4775 for as_dir in $PATH 4776 do 4777 IFS=$as_save_IFS 4778 case $as_dir in #((( 4779 '') as_dir=./ ;; 4780 */) ;; 4781 *) as_dir=$as_dir/ ;; 4782 esac 4783 for ac_exec_ext in '' $ac_executable_extensions; do 4784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4785 ac_cv_prog_ac_ct_CC="$ac_prog" 4786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4787 break 2 4788 fi 4789 done 4790 done 4791 IFS=$as_save_IFS 4792 4793 fi 4794 fi 4795 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4796 if test -n "$ac_ct_CC"; then 4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4798 printf "%s\n" "$ac_ct_CC" >&6; } 4799 else 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801 printf "%s\n" "no" >&6; } 4802 fi 4803 4804 4805 test -n "$ac_ct_CC" && break 4806 done 4807 4808 if test "x$ac_ct_CC" = x; then 4809 CC="" 4810 else 4811 case $cross_compiling:$ac_tool_warned in 4812 yes:) 4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4815 ac_tool_warned=yes ;; 4816 esac 4817 CC=$ac_ct_CC 4818 fi 4819 fi 4820 4821 fi 4822 if test -z "$CC"; then 4823 if test -n "$ac_tool_prefix"; then 4824 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4825 set dummy ${ac_tool_prefix}clang; ac_word=$2 4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4827 printf %s "checking for $ac_word... " >&6; } 4828 if test ${ac_cv_prog_CC+y} 4829 then : 4830 printf %s "(cached) " >&6 4831 else $as_nop 4832 if test -n "$CC"; then 4833 ac_cv_prog_CC="$CC" # Let the user override the test. 4834 else 4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4836 for as_dir in $PATH 4837 do 4838 IFS=$as_save_IFS 4839 case $as_dir in #((( 4840 '') as_dir=./ ;; 4841 */) ;; 4842 *) as_dir=$as_dir/ ;; 4843 esac 4844 for ac_exec_ext in '' $ac_executable_extensions; do 4845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4846 ac_cv_prog_CC="${ac_tool_prefix}clang" 4847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4848 break 2 4849 fi 4850 done 4851 done 4852 IFS=$as_save_IFS 4853 4854 fi 4855 fi 4856 CC=$ac_cv_prog_CC 4857 if test -n "$CC"; then 4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4859 printf "%s\n" "$CC" >&6; } 4860 else 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4862 printf "%s\n" "no" >&6; } 4863 fi 4864 4865 4866 fi 4867 if test -z "$ac_cv_prog_CC"; then 4868 ac_ct_CC=$CC 4869 # Extract the first word of "clang", so it can be a program name with args. 4870 set dummy clang; ac_word=$2 4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4872 printf %s "checking for $ac_word... " >&6; } 4873 if test ${ac_cv_prog_ac_ct_CC+y} 4874 then : 4875 printf %s "(cached) " >&6 4876 else $as_nop 4877 if test -n "$ac_ct_CC"; then 4878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4879 else 4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881 for as_dir in $PATH 4882 do 4883 IFS=$as_save_IFS 4884 case $as_dir in #((( 4885 '') as_dir=./ ;; 4886 */) ;; 4887 *) as_dir=$as_dir/ ;; 4888 esac 4889 for ac_exec_ext in '' $ac_executable_extensions; do 4890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4891 ac_cv_prog_ac_ct_CC="clang" 4892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4893 break 2 4894 fi 4895 done 4896 done 4897 IFS=$as_save_IFS 4898 4899 fi 4900 fi 4901 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4902 if test -n "$ac_ct_CC"; then 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4904 printf "%s\n" "$ac_ct_CC" >&6; } 4905 else 4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907 printf "%s\n" "no" >&6; } 4908 fi 4909 4910 if test "x$ac_ct_CC" = x; then 4911 CC="" 4912 else 4913 case $cross_compiling:$ac_tool_warned in 4914 yes:) 4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4916 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4917 ac_tool_warned=yes ;; 4918 esac 4919 CC=$ac_ct_CC 4920 fi 4921 else 4922 CC="$ac_cv_prog_CC" 4923 fi 4924 4925 fi 4926 4927 4928 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4930 as_fn_error $? "no acceptable C compiler found in \$PATH 4931 See \`config.log' for more details" "$LINENO" 5; } 4932 4933 # Provide some information about the compiler. 4934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4935 set X $ac_compile 4936 ac_compiler=$2 4937 for ac_option in --version -v -V -qversion -version; do 4938 { { ac_try="$ac_compiler $ac_option >&5" 4939 case "(($ac_try" in 4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4941 *) ac_try_echo=$ac_try;; 4942 esac 4943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4944 printf "%s\n" "$ac_try_echo"; } >&5 4945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4946 ac_status=$? 4947 if test -s conftest.err; then 4948 sed '10a\ 4949 ... rest of stderr output deleted ... 4950 10q' conftest.err >conftest.er1 4951 cat conftest.er1 >&5 4952 fi 4953 rm -f conftest.er1 conftest.err 4954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4955 test $ac_status = 0; } 4956 done 4957 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959 /* end confdefs.h. */ 4960 4961 int main(void) 4962 { 4963 4964 return 0; 4965 } 4966 _ACEOF 4967 ac_clean_files_save=$ac_clean_files 4968 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4969 # Try to create an executable without -o first, disregard a.out. 4970 # It will help us diagnose broken compilers, and finding out an intuition 4971 # of exeext. 4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4973 printf %s "checking whether the C compiler works... " >&6; } 4974 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4975 4976 # The possible output files: 4977 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4978 4979 ac_rmfiles= 4980 for ac_file in $ac_files 4981 do 4982 case $ac_file in 4983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4984 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4985 esac 4986 done 4987 rm -f $ac_rmfiles 4988 4989 if { { ac_try="$ac_link_default" 4990 case "(($ac_try" in 4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4992 *) ac_try_echo=$ac_try;; 4993 esac 4994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4995 printf "%s\n" "$ac_try_echo"; } >&5 4996 (eval "$ac_link_default") 2>&5 4997 ac_status=$? 4998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4999 test $ac_status = 0; } 5000 then : 5001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5003 # in a Makefile. We should not override ac_cv_exeext if it was cached, 5004 # so that the user can short-circuit this test for compilers unknown to 5005 # Autoconf. 5006 for ac_file in $ac_files '' 5007 do 5008 test -f "$ac_file" || continue 5009 case $ac_file in 5010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5011 ;; 5012 [ab].out ) 5013 # We found the default executable, but exeext='' is most 5014 # certainly right. 5015 break;; 5016 *.* ) 5017 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5018 then :; else 5019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5020 fi 5021 # We set ac_cv_exeext here because the later test for it is not 5022 # safe: cross compilers may not add the suffix if given an `-o' 5023 # argument, so we may need to know it at that point already. 5024 # Even if this section looks crufty: it has the advantage of 5025 # actually working. 5026 break;; 5027 * ) 5028 break;; 5029 esac 5030 done 5031 test "$ac_cv_exeext" = no && ac_cv_exeext= 5032 5033 else $as_nop 5034 ac_file='' 5035 fi 5036 if test -z "$ac_file" 5037 then : 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5039 printf "%s\n" "no" >&6; } 5040 printf "%s\n" "$as_me: failed program was:" >&5 5041 sed 's/^/| /' conftest.$ac_ext >&5 5042 5043 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5044 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5045 as_fn_error 77 "C compiler cannot create executables 5046 See \`config.log' for more details" "$LINENO" 5; } 5047 else $as_nop 5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5049 printf "%s\n" "yes" >&6; } 5050 fi 5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5052 printf %s "checking for C compiler default output file name... " >&6; } 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5054 printf "%s\n" "$ac_file" >&6; } 5055 ac_exeext=$ac_cv_exeext 5056 5057 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5058 ac_clean_files=$ac_clean_files_save 5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5060 printf %s "checking for suffix of executables... " >&6; } 5061 if { { ac_try="$ac_link" 5062 case "(($ac_try" in 5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5064 *) ac_try_echo=$ac_try;; 5065 esac 5066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5067 printf "%s\n" "$ac_try_echo"; } >&5 5068 (eval "$ac_link") 2>&5 5069 ac_status=$? 5070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5071 test $ac_status = 0; } 5072 then : 5073 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5075 # work properly (i.e., refer to `conftest.exe'), while it won't with 5076 # `rm'. 5077 for ac_file in conftest.exe conftest conftest.*; do 5078 test -f "$ac_file" || continue 5079 case $ac_file in 5080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5082 break;; 5083 * ) break;; 5084 esac 5085 done 5086 else $as_nop 5087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5088 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5089 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5090 See \`config.log' for more details" "$LINENO" 5; } 5091 fi 5092 rm -f conftest conftest$ac_cv_exeext 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5094 printf "%s\n" "$ac_cv_exeext" >&6; } 5095 5096 rm -f conftest.$ac_ext 5097 EXEEXT=$ac_cv_exeext 5098 ac_exeext=$EXEEXT 5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5100 /* end confdefs.h. */ 5101 #include <stdio.h> 5102 int main(void) 5103 { 5104 FILE *f = fopen ("conftest.out", "w"); 5105 return ferror (f) || fclose (f) != 0; 5106 5107 return 0; 5108 } 5109 _ACEOF 5110 ac_clean_files="$ac_clean_files conftest.out" 5111 # Check that the compiler produces executables we can run. If not, either 5112 # the compiler is broken, or we cross compile. 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5114 printf %s "checking whether we are cross compiling... " >&6; } 5115 if test "$cross_compiling" != yes; then 5116 { { ac_try="$ac_link" 5117 case "(($ac_try" in 5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5119 *) ac_try_echo=$ac_try;; 5120 esac 5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5122 printf "%s\n" "$ac_try_echo"; } >&5 5123 (eval "$ac_link") 2>&5 5124 ac_status=$? 5125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5126 test $ac_status = 0; } 5127 if { ac_try='./conftest$ac_cv_exeext' 5128 { { case "(($ac_try" in 5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5130 *) ac_try_echo=$ac_try;; 5131 esac 5132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5133 printf "%s\n" "$ac_try_echo"; } >&5 5134 (eval "$ac_try") 2>&5 5135 ac_status=$? 5136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5137 test $ac_status = 0; }; }; then 5138 cross_compiling=no 5139 else 5140 if test "$cross_compiling" = maybe; then 5141 cross_compiling=yes 5142 else 5143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5145 as_fn_error 77 "cannot run C compiled programs. 5146 If you meant to cross compile, use \`--host'. 5147 See \`config.log' for more details" "$LINENO" 5; } 5148 fi 5149 fi 5150 fi 5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5152 printf "%s\n" "$cross_compiling" >&6; } 5153 5154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5155 ac_clean_files=$ac_clean_files_save 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5157 printf %s "checking for suffix of object files... " >&6; } 5158 if test ${ac_cv_objext+y} 5159 then : 5160 printf %s "(cached) " >&6 5161 else $as_nop 5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163 /* end confdefs.h. */ 5164 5165 int main(void) 5166 { 5167 5168 return 0; 5169 } 5170 _ACEOF 5171 rm -f conftest.o conftest.obj 5172 if { { ac_try="$ac_compile" 5173 case "(($ac_try" in 5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5175 *) ac_try_echo=$ac_try;; 5176 esac 5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5178 printf "%s\n" "$ac_try_echo"; } >&5 5179 (eval "$ac_compile") 2>&5 5180 ac_status=$? 5181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5182 test $ac_status = 0; } 5183 then : 5184 for ac_file in conftest.o conftest.obj conftest.*; do 5185 test -f "$ac_file" || continue; 5186 case $ac_file in 5187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5189 break;; 5190 esac 5191 done 5192 else $as_nop 5193 printf "%s\n" "$as_me: failed program was:" >&5 5194 sed 's/^/| /' conftest.$ac_ext >&5 5195 5196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5197 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5198 as_fn_error $? "cannot compute suffix of object files: cannot compile 5199 See \`config.log' for more details" "$LINENO" 5; } 5200 fi 5201 rm -f conftest.$ac_cv_objext conftest.$ac_ext 5202 fi 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5204 printf "%s\n" "$ac_cv_objext" >&6; } 5205 OBJEXT=$ac_cv_objext 5206 ac_objext=$OBJEXT 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5208 printf %s "checking whether the compiler supports GNU C... " >&6; } 5209 if test ${ac_cv_c_compiler_gnu+y} 5210 then : 5211 printf %s "(cached) " >&6 5212 else $as_nop 5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5214 /* end confdefs.h. */ 5215 5216 int main(void) 5217 { 5218 #ifndef __GNUC__ 5219 choke me 5220 #endif 5221 5222 return 0; 5223 } 5224 _ACEOF 5225 if ac_fn_c_try_compile "$LINENO" 5226 then : 5227 ac_compiler_gnu=yes 5228 else $as_nop 5229 ac_compiler_gnu=no 5230 fi 5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5232 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5233 5234 fi 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5236 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5238 5239 if test $ac_compiler_gnu = yes; then 5240 GCC=yes 5241 else 5242 GCC= 5243 fi 5244 ac_test_CFLAGS=${CFLAGS+y} 5245 ac_save_CFLAGS=$CFLAGS 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5247 printf %s "checking whether $CC accepts -g... " >&6; } 5248 if test ${ac_cv_prog_cc_g+y} 5249 then : 5250 printf %s "(cached) " >&6 5251 else $as_nop 5252 ac_save_c_werror_flag=$ac_c_werror_flag 5253 ac_c_werror_flag=yes 5254 ac_cv_prog_cc_g=no 5255 CFLAGS="-g" 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257 /* end confdefs.h. */ 5258 5259 int main(void) 5260 { 5261 5262 return 0; 5263 } 5264 _ACEOF 5265 if ac_fn_c_try_compile "$LINENO" 5266 then : 5267 ac_cv_prog_cc_g=yes 5268 else $as_nop 5269 CFLAGS="" 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271 /* end confdefs.h. */ 5272 5273 int main(void) 5274 { 5275 5276 return 0; 5277 } 5278 _ACEOF 5279 if ac_fn_c_try_compile "$LINENO" 5280 then : 5281 5282 else $as_nop 5283 ac_c_werror_flag=$ac_save_c_werror_flag 5284 CFLAGS="-g" 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286 /* end confdefs.h. */ 5287 5288 int main(void) 5289 { 5290 5291 return 0; 5292 } 5293 _ACEOF 5294 if ac_fn_c_try_compile "$LINENO" 5295 then : 5296 ac_cv_prog_cc_g=yes 5297 fi 5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5299 fi 5300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5301 fi 5302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5303 ac_c_werror_flag=$ac_save_c_werror_flag 5304 fi 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5306 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5307 if test $ac_test_CFLAGS; then 5308 CFLAGS=$ac_save_CFLAGS 5309 elif test $ac_cv_prog_cc_g = yes; then 5310 if test "$GCC" = yes; then 5311 CFLAGS="-g -O2" 5312 else 5313 CFLAGS="-g" 5314 fi 5315 else 5316 if test "$GCC" = yes; then 5317 CFLAGS="-O2" 5318 else 5319 CFLAGS= 5320 fi 5321 fi 5322 ac_prog_cc_stdc=no 5323 if test x$ac_prog_cc_stdc = xno 5324 then : 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5326 printf %s "checking for $CC option to enable C11 features... " >&6; } 5327 if test ${ac_cv_prog_cc_c11+y} 5328 then : 5329 printf %s "(cached) " >&6 5330 else $as_nop 5331 ac_cv_prog_cc_c11=no 5332 ac_save_CC=$CC 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334 /* end confdefs.h. */ 5335 $ac_c_conftest_c11_program 5336 _ACEOF 5337 for ac_arg in '' -std=gnu11 5338 do 5339 CC="$ac_save_CC $ac_arg" 5340 if ac_fn_c_try_compile "$LINENO" 5341 then : 5342 ac_cv_prog_cc_c11=$ac_arg 5343 fi 5344 rm -f core conftest.err conftest.$ac_objext conftest.beam 5345 test "x$ac_cv_prog_cc_c11" != "xno" && break 5346 done 5347 rm -f conftest.$ac_ext 5348 CC=$ac_save_CC 5349 fi 5350 5351 if test "x$ac_cv_prog_cc_c11" = xno 5352 then : 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5354 printf "%s\n" "unsupported" >&6; } 5355 else $as_nop 5356 if test "x$ac_cv_prog_cc_c11" = x 5357 then : 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5359 printf "%s\n" "none needed" >&6; } 5360 else $as_nop 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5362 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5363 CC="$CC $ac_cv_prog_cc_c11" 5364 fi 5365 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5366 ac_prog_cc_stdc=c11 5367 fi 5368 fi 5369 if test x$ac_prog_cc_stdc = xno 5370 then : 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5372 printf %s "checking for $CC option to enable C99 features... " >&6; } 5373 if test ${ac_cv_prog_cc_c99+y} 5374 then : 5375 printf %s "(cached) " >&6 5376 else $as_nop 5377 ac_cv_prog_cc_c99=no 5378 ac_save_CC=$CC 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380 /* end confdefs.h. */ 5381 $ac_c_conftest_c99_program 5382 _ACEOF 5383 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5384 do 5385 CC="$ac_save_CC $ac_arg" 5386 if ac_fn_c_try_compile "$LINENO" 5387 then : 5388 ac_cv_prog_cc_c99=$ac_arg 5389 fi 5390 rm -f core conftest.err conftest.$ac_objext conftest.beam 5391 test "x$ac_cv_prog_cc_c99" != "xno" && break 5392 done 5393 rm -f conftest.$ac_ext 5394 CC=$ac_save_CC 5395 fi 5396 5397 if test "x$ac_cv_prog_cc_c99" = xno 5398 then : 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5400 printf "%s\n" "unsupported" >&6; } 5401 else $as_nop 5402 if test "x$ac_cv_prog_cc_c99" = x 5403 then : 5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5405 printf "%s\n" "none needed" >&6; } 5406 else $as_nop 5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5408 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5409 CC="$CC $ac_cv_prog_cc_c99" 5410 fi 5411 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5412 ac_prog_cc_stdc=c99 5413 fi 5414 fi 5415 if test x$ac_prog_cc_stdc = xno 5416 then : 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5418 printf %s "checking for $CC option to enable C89 features... " >&6; } 5419 if test ${ac_cv_prog_cc_c89+y} 5420 then : 5421 printf %s "(cached) " >&6 5422 else $as_nop 5423 ac_cv_prog_cc_c89=no 5424 ac_save_CC=$CC 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426 /* end confdefs.h. */ 5427 $ac_c_conftest_c89_program 5428 _ACEOF 5429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5430 do 5431 CC="$ac_save_CC $ac_arg" 5432 if ac_fn_c_try_compile "$LINENO" 5433 then : 5434 ac_cv_prog_cc_c89=$ac_arg 5435 fi 5436 rm -f core conftest.err conftest.$ac_objext conftest.beam 5437 test "x$ac_cv_prog_cc_c89" != "xno" && break 5438 done 5439 rm -f conftest.$ac_ext 5440 CC=$ac_save_CC 5441 fi 5442 5443 if test "x$ac_cv_prog_cc_c89" = xno 5444 then : 5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5446 printf "%s\n" "unsupported" >&6; } 5447 else $as_nop 5448 if test "x$ac_cv_prog_cc_c89" = x 5449 then : 5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5451 printf "%s\n" "none needed" >&6; } 5452 else $as_nop 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5454 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5455 CC="$CC $ac_cv_prog_cc_c89" 5456 fi 5457 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5458 ac_prog_cc_stdc=c89 5459 fi 5460 fi 5461 5462 ac_ext=c 5463 ac_cpp='$CPP $CPPFLAGS' 5464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5466 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5467 5468 5469 ac_ext=c 5470 ac_cpp='$CPP $CPPFLAGS' 5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5475 printf %s "checking whether $CC understands -c and -o together... " >&6; } 5476 if test ${am_cv_prog_cc_c_o+y} 5477 then : 5478 printf %s "(cached) " >&6 5479 else $as_nop 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481 /* end confdefs.h. */ 5482 5483 int main(void) 5484 { 5485 5486 return 0; 5487 } 5488 _ACEOF 5489 # Make sure it works both with $CC and with simple cc. 5490 # Following AC_PROG_CC_C_O, we do the test twice because some 5491 # compilers refuse to overwrite an existing .o file with -o, 5492 # though they will create one. 5493 am_cv_prog_cc_c_o=yes 5494 for am_i in 1 2; do 5495 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5496 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5497 ac_status=$? 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); } \ 5500 && test -f conftest2.$ac_objext; then 5501 : OK 5502 else 5503 am_cv_prog_cc_c_o=no 5504 break 5505 fi 5506 done 5507 rm -f core conftest* 5508 unset am_i 5509 fi 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5511 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5512 if test "$am_cv_prog_cc_c_o" != yes; then 5513 # Losing compiler, so override with the script. 5514 # FIXME: It is wrong to rewrite CC. 5515 # But if we don't then we get into trouble of one sort or another. 5516 # A longer-term fix would be to have automake use am__CC in this case, 5517 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5518 CC="$am_aux_dir/compile $CC" 5519 fi 5520 ac_ext=c 5521 ac_cpp='$CPP $CPPFLAGS' 5522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5524 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5525 5526 5527 5528 ac_ext=c 5529 ac_cpp='$CPP $CPPFLAGS' 5530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5532 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5534 printf %s "checking how to run the C preprocessor... " >&6; } 5535 # On Suns, sometimes $CPP names a directory. 5536 if test -n "$CPP" && test -d "$CPP"; then 5537 CPP= 5538 fi 5539 if test -z "$CPP"; then 5540 if test ${ac_cv_prog_CPP+y} 5541 then : 5542 printf %s "(cached) " >&6 5543 else $as_nop 5544 # Double quotes because $CC needs to be expanded 5545 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5546 do 5547 ac_preproc_ok=false 5548 for ac_c_preproc_warn_flag in '' yes 5549 do 5550 # Use a header file that comes with gcc, so configuring glibc 5551 # with a fresh cross-compiler works. 5552 # On the NeXT, cc -E runs the code through the compiler's parser, 5553 # not just through cpp. "Syntax error" is here to catch this case. 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555 /* end confdefs.h. */ 5556 #include <limits.h> 5557 Syntax error 5558 _ACEOF 5559 if ac_fn_c_try_cpp "$LINENO" 5560 then : 5561 5562 else $as_nop 5563 # Broken: fails on valid input. 5564 continue 5565 fi 5566 rm -f conftest.err conftest.i conftest.$ac_ext 5567 5568 # OK, works on sane cases. Now check whether nonexistent headers 5569 # can be detected and how. 5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5571 /* end confdefs.h. */ 5572 #include <ac_nonexistent.h> 5573 _ACEOF 5574 if ac_fn_c_try_cpp "$LINENO" 5575 then : 5576 # Broken: success on invalid input. 5577 continue 5578 else $as_nop 5579 # Passes both tests. 5580 ac_preproc_ok=: 5581 break 5582 fi 5583 rm -f conftest.err conftest.i conftest.$ac_ext 5584 5585 done 5586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5587 rm -f conftest.i conftest.err conftest.$ac_ext 5588 if $ac_preproc_ok 5589 then : 5590 break 5591 fi 5592 5593 done 5594 ac_cv_prog_CPP=$CPP 5595 5596 fi 5597 CPP=$ac_cv_prog_CPP 5598 else 5599 ac_cv_prog_CPP=$CPP 5600 fi 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5602 printf "%s\n" "$CPP" >&6; } 5603 ac_preproc_ok=false 5604 for ac_c_preproc_warn_flag in '' yes 5605 do 5606 # Use a header file that comes with gcc, so configuring glibc 5607 # with a fresh cross-compiler works. 5608 # On the NeXT, cc -E runs the code through the compiler's parser, 5609 # not just through cpp. "Syntax error" is here to catch this case. 5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5611 /* end confdefs.h. */ 5612 #include <limits.h> 5613 Syntax error 5614 _ACEOF 5615 if ac_fn_c_try_cpp "$LINENO" 5616 then : 5617 5618 else $as_nop 5619 # Broken: fails on valid input. 5620 continue 5621 fi 5622 rm -f conftest.err conftest.i conftest.$ac_ext 5623 5624 # OK, works on sane cases. Now check whether nonexistent headers 5625 # can be detected and how. 5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5627 /* end confdefs.h. */ 5628 #include <ac_nonexistent.h> 5629 _ACEOF 5630 if ac_fn_c_try_cpp "$LINENO" 5631 then : 5632 # Broken: success on invalid input. 5633 continue 5634 else $as_nop 5635 # Passes both tests. 5636 ac_preproc_ok=: 5637 break 5638 fi 5639 rm -f conftest.err conftest.i conftest.$ac_ext 5640 5641 done 5642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5643 rm -f conftest.i conftest.err conftest.$ac_ext 5644 if $ac_preproc_ok 5645 then : 5646 5647 else $as_nop 5648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5649 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5650 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5651 See \`config.log' for more details" "$LINENO" 5; } 5652 fi 5653 5654 ac_ext=c 5655 ac_cpp='$CPP $CPPFLAGS' 5656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5658 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5659 5660 5661 IFS=$xc_prog_cc_prev_IFS 5662 LIBS=$xc_prog_cc_prev_LIBS 5663 CFLAGS=$xc_prog_cc_prev_CFLAGS 5664 LDFLAGS=$xc_prog_cc_prev_LDFLAGS 5665 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS 5666 5667 5668 5669 5670 5671 5672 ac_header= ac_cache= 5673 for ac_item in $ac_header_c_list 5674 do 5675 if test $ac_cache; then 5676 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5677 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5678 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5679 fi 5680 ac_header= ac_cache= 5681 elif test $ac_header; then 5682 ac_cache=$ac_item 5683 else 5684 ac_header=$ac_item 5685 fi 5686 done 5687 5688 5689 5690 5691 5692 5693 5694 5695 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5696 then : 5697 5698 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5699 5700 fi 5701 5702 for ac_header in stdatomic.h 5703 do : 5704 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default" 5705 if test "x$ac_cv_header_stdatomic_h" = xyes 5706 then : 5707 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h 5708 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5 5710 printf %s "checking if _Atomic is available... " >&6; } 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712 /* end confdefs.h. */ 5713 5714 5715 $curl_includes_unistd 5716 5717 int main(void) 5718 { 5719 5720 _Atomic int i = 0; 5721 i = 4; // Force an atomic-write operation. 5722 (void)i; 5723 5724 return 0; 5725 } 5726 5727 _ACEOF 5728 if ac_fn_c_try_link "$LINENO" 5729 then : 5730 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5732 printf "%s\n" "yes" >&6; } 5733 5734 printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h 5735 5736 tst_atomic="yes" 5737 5738 else $as_nop 5739 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741 printf "%s\n" "no" >&6; } 5742 tst_atomic="no" 5743 5744 fi 5745 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5746 conftest$ac_exeext conftest.$ac_ext 5747 5748 fi 5749 5750 done 5751 5752 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5754 printf %s "checking for a sed that does not truncate output... " >&6; } 5755 if test ${ac_cv_path_SED+y} 5756 then : 5757 printf %s "(cached) " >&6 5758 else $as_nop 5759 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5760 for ac_i in 1 2 3 4 5 6 7; do 5761 ac_script="$ac_script$as_nl$ac_script" 5762 done 5763 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5764 { ac_script=; unset ac_script;} 5765 if test -z "$SED"; then 5766 ac_path_SED_found=false 5767 # Loop through the user's path and test for each of PROGNAME-LIST 5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769 for as_dir in $PATH 5770 do 5771 IFS=$as_save_IFS 5772 case $as_dir in #((( 5773 '') as_dir=./ ;; 5774 */) ;; 5775 *) as_dir=$as_dir/ ;; 5776 esac 5777 for ac_prog in sed gsed 5778 do 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5781 as_fn_executable_p "$ac_path_SED" || continue 5782 # Check for GNU ac_path_SED and select it if it is found. 5783 # Check for GNU $ac_path_SED 5784 case `"$ac_path_SED" --version 2>&1` in 5785 *GNU*) 5786 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5787 *) 5788 ac_count=0 5789 printf %s 0123456789 >"conftest.in" 5790 while : 5791 do 5792 cat "conftest.in" "conftest.in" >"conftest.tmp" 5793 mv "conftest.tmp" "conftest.in" 5794 cp "conftest.in" "conftest.nl" 5795 printf "%s\n" '' >> "conftest.nl" 5796 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5798 as_fn_arith $ac_count + 1 && ac_count=$as_val 5799 if test $ac_count -gt ${ac_path_SED_max-0}; then 5800 # Best one so far, save it but keep looking for a better one 5801 ac_cv_path_SED="$ac_path_SED" 5802 ac_path_SED_max=$ac_count 5803 fi 5804 # 10*(2^10) chars as input seems more than enough 5805 test $ac_count -gt 10 && break 5806 done 5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5808 esac 5809 5810 $ac_path_SED_found && break 3 5811 done 5812 done 5813 done 5814 IFS=$as_save_IFS 5815 if test -z "$ac_cv_path_SED"; then 5816 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5817 fi 5818 else 5819 ac_cv_path_SED=$SED 5820 fi 5821 5822 fi 5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5824 printf "%s\n" "$ac_cv_path_SED" >&6; } 5825 SED="$ac_cv_path_SED" 5826 rm -f conftest.sed 5827 5828 5829 5830 5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5 5832 printf %s "checking for code coverage support... " >&6; } 5833 coverage="no" 5834 curl_coverage_msg="disabled" 5835 5836 # Check whether --enable-code-coverage was given. 5837 if test ${enable_code_coverage+y} 5838 then : 5839 enableval=$enable_code_coverage; coverage="$enableval" 5840 fi 5841 5842 5843 if test "$GCC" != "yes" 5844 then : 5845 coverage="no" 5846 fi 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5 5848 printf "%s\n" "$coverage" >&6; } 5849 5850 if test "x$coverage" = "xyes"; then 5851 curl_coverage_msg="enabled" 5852 5853 if test -n "$ac_tool_prefix"; then 5854 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args. 5855 set dummy ${ac_tool_prefix}gcov; ac_word=$2 5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857 printf %s "checking for $ac_word... " >&6; } 5858 if test ${ac_cv_prog_GCOV+y} 5859 then : 5860 printf %s "(cached) " >&6 5861 else $as_nop 5862 if test -n "$GCOV"; then 5863 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 5864 else 5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5866 for as_dir in $PATH 5867 do 5868 IFS=$as_save_IFS 5869 case $as_dir in #((( 5870 '') as_dir=./ ;; 5871 */) ;; 5872 *) as_dir=$as_dir/ ;; 5873 esac 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_GCOV="${ac_tool_prefix}gcov" 5877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880 done 5881 done 5882 IFS=$as_save_IFS 5883 5884 fi 5885 fi 5886 GCOV=$ac_cv_prog_GCOV 5887 if test -n "$GCOV"; then 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 5889 printf "%s\n" "$GCOV" >&6; } 5890 else 5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892 printf "%s\n" "no" >&6; } 5893 fi 5894 5895 5896 fi 5897 if test -z "$ac_cv_prog_GCOV"; then 5898 ac_ct_GCOV=$GCOV 5899 # Extract the first word of "gcov", so it can be a program name with args. 5900 set dummy gcov; ac_word=$2 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5902 printf %s "checking for $ac_word... " >&6; } 5903 if test ${ac_cv_prog_ac_ct_GCOV+y} 5904 then : 5905 printf %s "(cached) " >&6 5906 else $as_nop 5907 if test -n "$ac_ct_GCOV"; then 5908 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 5909 else 5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5911 for as_dir in $PATH 5912 do 5913 IFS=$as_save_IFS 5914 case $as_dir in #((( 5915 '') as_dir=./ ;; 5916 */) ;; 5917 *) as_dir=$as_dir/ ;; 5918 esac 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5921 ac_cv_prog_ac_ct_GCOV="gcov" 5922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925 done 5926 done 5927 IFS=$as_save_IFS 5928 5929 fi 5930 fi 5931 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 5932 if test -n "$ac_ct_GCOV"; then 5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 5934 printf "%s\n" "$ac_ct_GCOV" >&6; } 5935 else 5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5937 printf "%s\n" "no" >&6; } 5938 fi 5939 5940 if test "x$ac_ct_GCOV" = x; then 5941 GCOV="gcov" 5942 else 5943 case $cross_compiling:$ac_tool_warned in 5944 yes:) 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5946 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5947 ac_tool_warned=yes ;; 5948 esac 5949 GCOV=$ac_ct_GCOV 5950 fi 5951 else 5952 GCOV="$ac_cv_prog_GCOV" 5953 fi 5954 5955 if test -z "$GCOV"; then 5956 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5 5957 fi 5958 # Extract the first word of "lcov", so it can be a program name with args. 5959 set dummy lcov; ac_word=$2 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5961 printf %s "checking for $ac_word... " >&6; } 5962 if test ${ac_cv_prog_LCOV+y} 5963 then : 5964 printf %s "(cached) " >&6 5965 else $as_nop 5966 if test -n "$LCOV"; then 5967 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 5968 else 5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970 for as_dir in $PATH 5971 do 5972 IFS=$as_save_IFS 5973 case $as_dir in #((( 5974 '') as_dir=./ ;; 5975 */) ;; 5976 *) as_dir=$as_dir/ ;; 5977 esac 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5980 ac_cv_prog_LCOV="lcov" 5981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984 done 5985 done 5986 IFS=$as_save_IFS 5987 5988 fi 5989 fi 5990 LCOV=$ac_cv_prog_LCOV 5991 if test -n "$LCOV"; then 5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 5993 printf "%s\n" "$LCOV" >&6; } 5994 else 5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5996 printf "%s\n" "no" >&6; } 5997 fi 5998 5999 6000 if test -z "$LCOV"; then 6001 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5 6002 fi 6003 6004 CPPFLAGS="$CPPFLAGS -DNDEBUG" 6005 CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage" 6006 LIBS="$LIBS -lgcov" 6007 fi 6008 6009 6010 am__api_version='1.16' 6011 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 6013 printf %s "checking whether build environment is sane... " >&6; } 6014 # Reject unsafe characters in $srcdir or the absolute working directory 6015 # name. Accept space and tab only in the latter. 6016 am_lf=' 6017 ' 6018 case `pwd` in 6019 *[\\\"\#\$\&\'\`$am_lf]*) 6020 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 6021 esac 6022 case $srcdir in 6023 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 6024 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 6025 esac 6026 6027 # Do 'set' in a subshell so we don't clobber the current shell's 6028 # arguments. Must try -L first in case configure is actually a 6029 # symlink; some systems play weird games with the mod time of symlinks 6030 # (eg FreeBSD returns the mod time of the symlink's containing 6031 # directory). 6032 if ( 6033 am_has_slept=no 6034 for am_try in 1 2; do 6035 echo "timestamp, slept: $am_has_slept" > conftest.file 6036 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 6037 if test "$*" = "X"; then 6038 # -L didn't work. 6039 set X `ls -t "$srcdir/configure" conftest.file` 6040 fi 6041 if test "$*" != "X $srcdir/configure conftest.file" \ 6042 && test "$*" != "X conftest.file $srcdir/configure"; then 6043 6044 # If neither matched, then we have a broken ls. This can happen 6045 # if, for instance, CONFIG_SHELL is bash and it inherits a 6046 # broken ls alias from the environment. This has actually 6047 # happened. Such a system could not be considered "sane". 6048 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 6049 alias in your environment" "$LINENO" 5 6050 fi 6051 if test "$2" = conftest.file || test $am_try -eq 2; then 6052 break 6053 fi 6054 # Just in case. 6055 sleep 1 6056 am_has_slept=yes 6057 done 6058 test "$2" = conftest.file 6059 ) 6060 then 6061 # Ok. 6062 : 6063 else 6064 as_fn_error $? "newly created file is older than distributed files! 6065 Check your system clock" "$LINENO" 5 6066 fi 6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6068 printf "%s\n" "yes" >&6; } 6069 # If we didn't sleep, we still need to ensure time stamps of config.status and 6070 # generated files are strictly newer. 6071 am_sleep_pid= 6072 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 6073 ( sleep 1 ) & 6074 am_sleep_pid=$! 6075 fi 6076 6077 rm -f conftest.file 6078 6079 test "$program_prefix" != NONE && 6080 program_transform_name="s&^&$program_prefix&;$program_transform_name" 6081 # Use a double $ so make ignores it. 6082 test "$program_suffix" != NONE && 6083 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 6084 # Double any \ or $. 6085 # By default was `s,x,x', remove it if useless. 6086 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 6087 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 6088 6089 6090 if test x"${MISSING+set}" != xset; then 6091 MISSING="\${SHELL} '$am_aux_dir/missing'" 6092 fi 6093 # Use eval to expand $SHELL 6094 if eval "$MISSING --is-lightweight"; then 6095 am_missing_run="$MISSING " 6096 else 6097 am_missing_run= 6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 6099 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 6100 fi 6101 6102 if test x"${install_sh+set}" != xset; then 6103 case $am_aux_dir in 6104 *\ * | *\ *) 6105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 6106 *) 6107 install_sh="\${SHELL} $am_aux_dir/install-sh" 6108 esac 6109 fi 6110 6111 # Installed binaries are usually stripped using 'strip' when the user 6112 # run "make install-strip". However 'strip' might not be the right 6113 # tool to use in cross-compilation environments, therefore Automake 6114 # will honor the 'STRIP' environment variable to overrule this program. 6115 if test "$cross_compiling" != no; then 6116 if test -n "$ac_tool_prefix"; then 6117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6118 set dummy ${ac_tool_prefix}strip; ac_word=$2 6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120 printf %s "checking for $ac_word... " >&6; } 6121 if test ${ac_cv_prog_STRIP+y} 6122 then : 6123 printf %s "(cached) " >&6 6124 else $as_nop 6125 if test -n "$STRIP"; then 6126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6127 else 6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129 for as_dir in $PATH 6130 do 6131 IFS=$as_save_IFS 6132 case $as_dir in #((( 6133 '') as_dir=./ ;; 6134 */) ;; 6135 *) as_dir=$as_dir/ ;; 6136 esac 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6139 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143 done 6144 done 6145 IFS=$as_save_IFS 6146 6147 fi 6148 fi 6149 STRIP=$ac_cv_prog_STRIP 6150 if test -n "$STRIP"; then 6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6152 printf "%s\n" "$STRIP" >&6; } 6153 else 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6155 printf "%s\n" "no" >&6; } 6156 fi 6157 6158 6159 fi 6160 if test -z "$ac_cv_prog_STRIP"; then 6161 ac_ct_STRIP=$STRIP 6162 # Extract the first word of "strip", so it can be a program name with args. 6163 set dummy strip; ac_word=$2 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6165 printf %s "checking for $ac_word... " >&6; } 6166 if test ${ac_cv_prog_ac_ct_STRIP+y} 6167 then : 6168 printf %s "(cached) " >&6 6169 else $as_nop 6170 if test -n "$ac_ct_STRIP"; then 6171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6172 else 6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6174 for as_dir in $PATH 6175 do 6176 IFS=$as_save_IFS 6177 case $as_dir in #((( 6178 '') as_dir=./ ;; 6179 */) ;; 6180 *) as_dir=$as_dir/ ;; 6181 esac 6182 for ac_exec_ext in '' $ac_executable_extensions; do 6183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6184 ac_cv_prog_ac_ct_STRIP="strip" 6185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6186 break 2 6187 fi 6188 done 6189 done 6190 IFS=$as_save_IFS 6191 6192 fi 6193 fi 6194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6195 if test -n "$ac_ct_STRIP"; then 6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6197 printf "%s\n" "$ac_ct_STRIP" >&6; } 6198 else 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6200 printf "%s\n" "no" >&6; } 6201 fi 6202 6203 if test "x$ac_ct_STRIP" = x; then 6204 STRIP=":" 6205 else 6206 case $cross_compiling:$ac_tool_warned in 6207 yes:) 6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6210 ac_tool_warned=yes ;; 6211 esac 6212 STRIP=$ac_ct_STRIP 6213 fi 6214 else 6215 STRIP="$ac_cv_prog_STRIP" 6216 fi 6217 6218 fi 6219 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 6220 6221 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 6223 printf %s "checking for a race-free mkdir -p... " >&6; } 6224 if test -z "$MKDIR_P"; then 6225 if test ${ac_cv_path_mkdir+y} 6226 then : 6227 printf %s "(cached) " >&6 6228 else $as_nop 6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6231 do 6232 IFS=$as_save_IFS 6233 case $as_dir in #((( 6234 '') as_dir=./ ;; 6235 */) ;; 6236 *) as_dir=$as_dir/ ;; 6237 esac 6238 for ac_prog in mkdir gmkdir; do 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 6241 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 6242 'mkdir ('*'coreutils) '* | \ 6243 'BusyBox '* | \ 6244 'mkdir (fileutils) '4.1*) 6245 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 6246 break 3;; 6247 esac 6248 done 6249 done 6250 done 6251 IFS=$as_save_IFS 6252 6253 fi 6254 6255 test -d ./--version && rmdir ./--version 6256 if test ${ac_cv_path_mkdir+y}; then 6257 MKDIR_P="$ac_cv_path_mkdir -p" 6258 else 6259 # As a last resort, use the slow shell script. Don't cache a 6260 # value for MKDIR_P within a source directory, because that will 6261 # break other packages using the cache if that directory is 6262 # removed, or if the value is a relative name. 6263 MKDIR_P="$ac_install_sh -d" 6264 fi 6265 fi 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6267 printf "%s\n" "$MKDIR_P" >&6; } 6268 6269 for ac_prog in gawk mawk nawk awk 6270 do 6271 # Extract the first word of "$ac_prog", so it can be a program name with args. 6272 set dummy $ac_prog; ac_word=$2 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6274 printf %s "checking for $ac_word... " >&6; } 6275 if test ${ac_cv_prog_AWK+y} 6276 then : 6277 printf %s "(cached) " >&6 6278 else $as_nop 6279 if test -n "$AWK"; then 6280 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6281 else 6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283 for as_dir in $PATH 6284 do 6285 IFS=$as_save_IFS 6286 case $as_dir in #((( 6287 '') as_dir=./ ;; 6288 */) ;; 6289 *) as_dir=$as_dir/ ;; 6290 esac 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6293 ac_cv_prog_AWK="$ac_prog" 6294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297 done 6298 done 6299 IFS=$as_save_IFS 6300 6301 fi 6302 fi 6303 AWK=$ac_cv_prog_AWK 6304 if test -n "$AWK"; then 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6306 printf "%s\n" "$AWK" >&6; } 6307 else 6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6309 printf "%s\n" "no" >&6; } 6310 fi 6311 6312 6313 test -n "$AWK" && break 6314 done 6315 6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6317 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6318 set x ${MAKE-make} 6319 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6320 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 6321 then : 6322 printf %s "(cached) " >&6 6323 else $as_nop 6324 cat >conftest.make <<\_ACEOF 6325 SHELL = /bin/sh 6326 all: 6327 @echo '@@@%%%=$(MAKE)=@@@%%%' 6328 _ACEOF 6329 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6330 case `${MAKE-make} -f conftest.make 2>/dev/null` in 6331 *@@@%%%=?*=@@@%%%*) 6332 eval ac_cv_prog_make_${ac_make}_set=yes;; 6333 *) 6334 eval ac_cv_prog_make_${ac_make}_set=no;; 6335 esac 6336 rm -f conftest.make 6337 fi 6338 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6340 printf "%s\n" "yes" >&6; } 6341 SET_MAKE= 6342 else 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6344 printf "%s\n" "no" >&6; } 6345 SET_MAKE="MAKE=${MAKE-make}" 6346 fi 6347 6348 rm -rf .tst 2>/dev/null 6349 mkdir .tst 2>/dev/null 6350 if test -d .tst; then 6351 am__leading_dot=. 6352 else 6353 am__leading_dot=_ 6354 fi 6355 rmdir .tst 2>/dev/null 6356 6357 DEPDIR="${am__leading_dot}deps" 6358 6359 ac_config_commands="$ac_config_commands depfiles" 6360 6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 6362 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 6363 cat > confinc.mk << 'END' 6364 am__doit: 6365 @echo this is the am__doit target >confinc.out 6366 .PHONY: am__doit 6367 END 6368 am__include="#" 6369 am__quote= 6370 # BSD make does it like this. 6371 echo '.include "confinc.mk" # ignored' > confmf.BSD 6372 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 6373 echo 'include confinc.mk # ignored' > confmf.GNU 6374 _am_result=no 6375 for s in GNU BSD; do 6376 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 6377 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 6378 ac_status=$? 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } 6381 case $?:`cat confinc.out 2>/dev/null` in #( 6382 '0:this is the am__doit target') : 6383 case $s in #( 6384 BSD) : 6385 am__include='.include' am__quote='"' ;; #( 6386 *) : 6387 am__include='include' am__quote='' ;; 6388 esac ;; #( 6389 *) : 6390 ;; 6391 esac 6392 if test "$am__include" != "#"; then 6393 _am_result="yes ($s style)" 6394 break 6395 fi 6396 done 6397 rm -f confinc.* confmf.* 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 6399 printf "%s\n" "${_am_result}" >&6; } 6400 6401 # Check whether --enable-dependency-tracking was given. 6402 if test ${enable_dependency_tracking+y} 6403 then : 6404 enableval=$enable_dependency_tracking; 6405 fi 6406 6407 if test "x$enable_dependency_tracking" != xno; then 6408 am_depcomp="$ac_aux_dir/depcomp" 6409 AMDEPBACKSLASH='\' 6410 am__nodep='_no' 6411 fi 6412 if test "x$enable_dependency_tracking" != xno; then 6413 AMDEP_TRUE= 6414 AMDEP_FALSE='#' 6415 else 6416 AMDEP_TRUE='#' 6417 AMDEP_FALSE= 6418 fi 6419 6420 6421 ## --------------------------------------- ## 6422 ## Start of automake initialization code ## 6423 ## --------------------------------------- ## 6424 6425 if test "`cd $srcdir && pwd`" != "`pwd`"; then 6426 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 6427 # is not polluted with repeated "-I." 6428 am__isrc=' -I$(srcdir)' 6429 # test to see if srcdir already configured 6430 if test -f $srcdir/config.status; then 6431 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 6432 fi 6433 fi 6434 6435 # test whether we have cygpath 6436 if test -z "$CYGPATH_W"; then 6437 if (cygpath --version) >/dev/null 2>/dev/null; then 6438 CYGPATH_W='cygpath -w' 6439 else 6440 CYGPATH_W=echo 6441 fi 6442 fi 6443 6444 6445 # Define the identity of the package. 6446 PACKAGE='curl' 6447 VERSION='-' 6448 6449 6450 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 6451 6452 6453 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 6454 6455 # Some tools Automake needs. 6456 6457 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 6458 6459 6460 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 6461 6462 6463 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 6464 6465 6466 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 6467 6468 6469 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 6470 6471 # For better backward compatibility. To be removed once Automake 1.9.x 6472 # dies out for good. For more background, see: 6473 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 6474 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 6475 mkdir_p='$(MKDIR_P)' 6476 6477 # We need awk for the "check" target (and possibly the TAP driver). The 6478 # system "awk" is bad on some platforms. 6479 # Always define AMTAR for backward compatibility. Yes, it's still used 6480 # in the wild :-( We should find a proper way to deprecate it ... 6481 AMTAR='$${TAR-tar}' 6482 6483 6484 # We'll loop over all known methods to create a tar archive until one works. 6485 _am_tools='gnutar pax cpio none' 6486 6487 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 6488 6489 6490 6491 6492 6493 depcc="$CC" am_compiler_list= 6494 6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6496 printf %s "checking dependency style of $depcc... " >&6; } 6497 if test ${am_cv_CC_dependencies_compiler_type+y} 6498 then : 6499 printf %s "(cached) " >&6 6500 else $as_nop 6501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6502 # We make a subdir and do the tests there. Otherwise we can end up 6503 # making bogus files that we don't know about and never remove. For 6504 # instance it was reported that on HP-UX the gcc test will end up 6505 # making a dummy file named 'D' -- because '-MD' means "put the output 6506 # in D". 6507 rm -rf conftest.dir 6508 mkdir conftest.dir 6509 # Copy depcomp to subdir because otherwise we won't find it if we're 6510 # using a relative directory. 6511 cp "$am_depcomp" conftest.dir 6512 cd conftest.dir 6513 # We will build objects and dependencies in a subdirectory because 6514 # it helps to detect inapplicable dependency modes. For instance 6515 # both Tru64's cc and ICC support -MD to output dependencies as a 6516 # side effect of compilation, but ICC will put the dependencies in 6517 # the current directory while Tru64 will put them in the object 6518 # directory. 6519 mkdir sub 6520 6521 am_cv_CC_dependencies_compiler_type=none 6522 if test "$am_compiler_list" = ""; then 6523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6524 fi 6525 am__universal=false 6526 case " $depcc " in #( 6527 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6528 esac 6529 6530 for depmode in $am_compiler_list; do 6531 # Setup a source with many dependencies, because some compilers 6532 # like to wrap large dependency lists on column 80 (with \), and 6533 # we should not choose a depcomp mode which is confused by this. 6534 # 6535 # We need to recreate these files for each test, as the compiler may 6536 # overwrite some of them when testing with obscure command lines. 6537 # This happens at least with the AIX C compiler. 6538 : > sub/conftest.c 6539 for i in 1 2 3 4 5 6; do 6540 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6541 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6542 # Solaris 10 /bin/sh. 6543 echo '/* dummy */' > sub/conftst$i.h 6544 done 6545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6546 6547 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6548 # mode. It turns out that the SunPro C++ compiler does not properly 6549 # handle '-M -o', and we need to detect this. Also, some Intel 6550 # versions had trouble with output in subdirs. 6551 am__obj=sub/conftest.${OBJEXT-o} 6552 am__minus_obj="-o $am__obj" 6553 case $depmode in 6554 gcc) 6555 # This depmode causes a compiler race in universal mode. 6556 test "$am__universal" = false || continue 6557 ;; 6558 nosideeffect) 6559 # After this tag, mechanisms are not by side-effect, so they'll 6560 # only be used when explicitly requested. 6561 if test "x$enable_dependency_tracking" = xyes; then 6562 continue 6563 else 6564 break 6565 fi 6566 ;; 6567 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6568 # This compiler won't grok '-c -o', but also, the minuso test has 6569 # not run yet. These depmodes are late enough in the game, and 6570 # so weak that their functioning should not be impacted. 6571 am__obj=conftest.${OBJEXT-o} 6572 am__minus_obj= 6573 ;; 6574 none) break ;; 6575 esac 6576 if depmode=$depmode \ 6577 source=sub/conftest.c object=$am__obj \ 6578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6579 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6580 >/dev/null 2>conftest.err && 6581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6583 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6585 # icc doesn't choke on unknown options, it will just issue warnings 6586 # or remarks (even with -Werror). So we grep stderr for any message 6587 # that says an option was ignored or not supported. 6588 # When given -MP, icc 7.0 and 7.1 complain thusly: 6589 # icc: Command line warning: ignoring option '-M'; no argument required 6590 # The diagnosis changed in icc 8.0: 6591 # icc: Command line remark: option '-MP' not supported 6592 if (grep 'ignoring option' conftest.err || 6593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6594 am_cv_CC_dependencies_compiler_type=$depmode 6595 break 6596 fi 6597 fi 6598 done 6599 6600 cd .. 6601 rm -rf conftest.dir 6602 else 6603 am_cv_CC_dependencies_compiler_type=none 6604 fi 6605 6606 fi 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6608 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6610 6611 if 6612 test "x$enable_dependency_tracking" != xno \ 6613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6614 am__fastdepCC_TRUE= 6615 am__fastdepCC_FALSE='#' 6616 else 6617 am__fastdepCC_TRUE='#' 6618 am__fastdepCC_FALSE= 6619 fi 6620 6621 6622 # Variables for tags utilities; see am/tags.am 6623 if test -z "$CTAGS"; then 6624 CTAGS=ctags 6625 fi 6626 6627 if test -z "$ETAGS"; then 6628 ETAGS=etags 6629 fi 6630 6631 if test -z "$CSCOPE"; then 6632 CSCOPE=cscope 6633 fi 6634 6635 6636 6637 # POSIX will say in a future version that running "rm -f" with no argument 6638 # is OK; and we want to be able to make that assumption in our Makefile 6639 # recipes. So use an aggressive probe to check that the usage we want is 6640 # actually supported "in the wild" to an acceptable degree. 6641 # See automake bug#10828. 6642 # To make any issue more visible, cause the running configure to be aborted 6643 # by default if the 'rm' program in use doesn't match our expectations; the 6644 # user can still override this though. 6645 if rm -f && rm -fr && rm -rf; then : OK; else 6646 cat >&2 <<'END' 6647 Oops! 6648 6649 Your 'rm' program seems unable to run without file operands specified 6650 on the command line, even when the '-f' option is present. This is contrary 6651 to the behaviour of most rm programs out there, and not conforming with 6652 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 6653 6654 Please tell bug-automake@gnu.org about your system, including the value 6655 of your $PATH and any error possibly output before this message. This 6656 can help us improve future automake versions. 6657 6658 END 6659 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 6660 echo 'Configuration will proceed anyway, since you have set the' >&2 6661 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 6662 echo >&2 6663 else 6664 cat >&2 <<'END' 6665 Aborting the configuration process, to ensure you take notice of the issue. 6666 6667 You can download and install GNU coreutils to get an 'rm' implementation 6668 that behaves properly: <https://www.gnu.org/software/coreutils/>. 6669 6670 If you want to complete the configuration process using your problematic 6671 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 6672 to "yes", and re-run configure. 6673 6674 END 6675 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 6676 fi 6677 fi 6678 6679 ## ------------------------------------- ## 6680 ## End of automake initialization code ## 6681 ## ------------------------------------- ## 6682 6683 6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 6685 printf %s "checking curl version... " >&6; } 6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 6687 printf "%s\n" "$CURLVERSION" >&6; } 6688 6689 6690 6691 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h` 6692 6693 6694 curl_ssl_msg="no (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,amissl,rustls} )" 6695 curl_ssh_msg="no (--with-{libssh,libssh2})" 6696 curl_zlib_msg="no (--with-zlib)" 6697 curl_brotli_msg="no (--with-brotli)" 6698 curl_zstd_msg="no (--with-zstd)" 6699 curl_gss_msg="no (--with-gssapi)" 6700 curl_gsasl_msg="no (--with-gsasl)" 6701 curl_tls_srp_msg="no (--enable-tls-srp)" 6702 curl_res_msg="blocking (--enable-ares / --enable-threaded-resolver)" 6703 curl_ipv6_msg="no (--enable-ipv6)" 6704 curl_unix_sockets_msg="no (--enable-unix-sockets)" 6705 curl_idn_msg="no (--with-{libidn2,winidn})" 6706 curl_docs_msg="enabled (--disable-docs)" 6707 curl_manual_msg="no (--enable-manual)" 6708 curl_libcurl_msg="enabled (--disable-libcurl-option)" 6709 curl_verbose_msg="enabled (--disable-verbose)" 6710 curl_sspi_msg="no (--enable-sspi)" 6711 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" 6712 curl_ldaps_msg="no (--enable-ldaps)" 6713 curl_ipfs_msg="no (--enable-ipfs)" 6714 curl_rtsp_msg="no (--enable-rtsp)" 6715 curl_rtmp_msg="no (--with-librtmp)" 6716 curl_psl_msg="no (--with-libpsl)" 6717 curl_altsvc_msg="enabled (--disable-alt-svc)" 6718 curl_headers_msg="enabled (--disable-headers-api)" 6719 curl_hsts_msg="enabled (--disable-hsts)" 6720 ssl_backends= 6721 curl_h1_msg="enabled (internal)" 6722 curl_h2_msg="no (--with-nghttp2)" 6723 curl_h3_msg="no (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-openssl-quic, --with-msh3)" 6724 6725 enable_altsvc="yes" 6726 hsts="yes" 6727 6728 INITIAL_LDFLAGS=$LDFLAGS 6729 INITIAL_LIBS=$LIBS 6730 6731 compilersh="run-compiler" 6732 CURL_SAVED_CC="$CC" 6733 export CURL_SAVED_CC 6734 CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH" 6735 export CURL_SAVED_LD_LIBRARY_PATH 6736 cat <<\EOF > "$compilersh" 6737 CC="$CURL_SAVED_CC" 6738 export CC 6739 LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH" 6740 export LD_LIBRARY_PATH 6741 exec $CC "$@" 6742 EOF 6743 6744 OPT_SCHANNEL=no 6745 6746 # Check whether --with-schannel was given. 6747 if test ${with_schannel+y} 6748 then : 6749 withval=$with_schannel; OPT_SCHANNEL=$withval 6750 TLSCHOICE="schannel" 6751 fi 6752 6753 6754 OPT_AMISSL=no 6755 6756 # Check whether --with-amissl was given. 6757 if test ${with_amissl+y} 6758 then : 6759 withval=$with_amissl; 6760 OPT_AMISSL=$withval 6761 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL" 6762 6763 fi 6764 6765 6766 OPT_OPENSSL=no 6767 ca="no" 6768 6769 # Check whether --with-ssl was given. 6770 if test ${with_ssl+y} 6771 then : 6772 withval=$with_ssl; 6773 OPT_SSL=$withval 6774 OPT_OPENSSL=$withval 6775 if test X"$withval" != Xno; then 6776 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL" 6777 else 6778 SSL_DISABLED="D" 6779 fi 6780 6781 fi 6782 6783 6784 6785 # Check whether --with-openssl was given. 6786 if test ${with_openssl+y} 6787 then : 6788 withval=$with_openssl; 6789 OPT_OPENSSL=$withval 6790 if test X"$withval" != Xno; then 6791 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL" 6792 fi 6793 6794 fi 6795 6796 6797 OPT_GNUTLS=no 6798 6799 # Check whether --with-gnutls was given. 6800 if test ${with_gnutls+y} 6801 then : 6802 withval=$with_gnutls; 6803 OPT_GNUTLS=$withval 6804 if test X"$withval" != Xno; then 6805 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS" 6806 fi 6807 6808 fi 6809 6810 6811 OPT_MBEDTLS=no 6812 6813 # Check whether --with-mbedtls was given. 6814 if test ${with_mbedtls+y} 6815 then : 6816 withval=$with_mbedtls; 6817 OPT_MBEDTLS=$withval 6818 if test X"$withval" != Xno; then 6819 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS" 6820 fi 6821 6822 fi 6823 6824 6825 OPT_WOLFSSL=no 6826 6827 # Check whether --with-wolfssl was given. 6828 if test ${with_wolfssl+y} 6829 then : 6830 withval=$with_wolfssl; 6831 OPT_WOLFSSL=$withval 6832 if test X"$withval" != Xno; then 6833 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL" 6834 fi 6835 6836 fi 6837 6838 6839 OPT_RUSTLS=no 6840 6841 # Check whether --with-rustls was given. 6842 if test ${with_rustls+y} 6843 then : 6844 withval=$with_rustls; 6845 OPT_RUSTLS=$withval 6846 if test X"$withval" != Xno; then 6847 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls" 6848 experimental="$experimental rustls" 6849 fi 6850 6851 fi 6852 6853 6854 TEST_NGHTTPX=nghttpx 6855 6856 # Check whether --with-test-nghttpx was given. 6857 if test ${with_test_nghttpx+y} 6858 then : 6859 withval=$with_test_nghttpx; TEST_NGHTTPX=$withval 6860 if test X"$TEST_NGHTTPX" = "Xno"; then 6861 TEST_NGHTTPX="" 6862 fi 6863 6864 fi 6865 6866 6867 6868 if test -x /usr/bin/caddy; then 6869 CADDY=/usr/bin/caddy 6870 elif test -x /usr/local/bin/caddy; then 6871 CADDY=/usr/local/bin/caddy 6872 elif test -x "`brew --prefix 2>/dev/null`/bin/caddy"; then 6873 CADDY=`brew --prefix`/bin/caddy 6874 fi 6875 6876 # Check whether --with-test-caddy was given. 6877 if test ${with_test_caddy+y} 6878 then : 6879 withval=$with_test_caddy; CADDY=$withval 6880 if test X"$CADDY" = "Xno"; then 6881 CADDY="" 6882 fi 6883 6884 fi 6885 6886 6887 6888 if test -x /usr/sbin/vsftpd; then 6889 VSFTPD=/usr/sbin/vsftpd 6890 elif test -x /usr/local/sbin/vsftpd; then 6891 VSFTPD=/usr/local/sbin/vsftpd 6892 elif test -x "`brew --prefix 2>/dev/null`/sbin/vsftpd"; then 6893 VSFTPD=`brew --prefix`/sbin/vsftpd 6894 fi 6895 6896 # Check whether --with-test-vsftpd was given. 6897 if test ${with_test_vsftpd+y} 6898 then : 6899 withval=$with_test_vsftpd; VSFTPD=$withval 6900 if test X"$VSFTPD" = "Xno"; then 6901 VSFTPD="" 6902 fi 6903 6904 fi 6905 6906 6907 6908 HTTPD_ENABLED="maybe" 6909 6910 # Check whether --with-test-httpd was given. 6911 if test ${with_test_httpd+y} 6912 then : 6913 withval=$with_test_httpd; request_httpd=$withval 6914 else $as_nop 6915 request_httpd=check 6916 fi 6917 6918 if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then 6919 if test -x "/usr/sbin/apache2"; then 6920 # common location on distros (debian/ubuntu) 6921 HTTPD="/usr/sbin/apache2" 6922 # Extract the first word of "apxs", so it can be a program name with args. 6923 set dummy apxs; ac_word=$2 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6925 printf %s "checking for $ac_word... " >&6; } 6926 if test ${ac_cv_path_APXS+y} 6927 then : 6928 printf %s "(cached) " >&6 6929 else $as_nop 6930 case $APXS in 6931 [\\/]* | ?:[\\/]*) 6932 ac_cv_path_APXS="$APXS" # Let the user override the test with a path. 6933 ;; 6934 *) 6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6936 for as_dir in $PATH 6937 do 6938 IFS=$as_save_IFS 6939 case $as_dir in #((( 6940 '') as_dir=./ ;; 6941 */) ;; 6942 *) as_dir=$as_dir/ ;; 6943 esac 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6946 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext" 6947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6948 break 2 6949 fi 6950 done 6951 done 6952 IFS=$as_save_IFS 6953 6954 ;; 6955 esac 6956 fi 6957 APXS=$ac_cv_path_APXS 6958 if test -n "$APXS"; then 6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5 6960 printf "%s\n" "$APXS" >&6; } 6961 else 6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6963 printf "%s\n" "no" >&6; } 6964 fi 6965 6966 6967 if test "x$APXS" = "x"; then 6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5 6969 printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;} 6970 HTTPD_ENABLED="no" 6971 fi 6972 else 6973 # Extract the first word of "httpd", so it can be a program name with args. 6974 set dummy httpd; ac_word=$2 6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6976 printf %s "checking for $ac_word... " >&6; } 6977 if test ${ac_cv_path_HTTPD+y} 6978 then : 6979 printf %s "(cached) " >&6 6980 else $as_nop 6981 case $HTTPD in 6982 [\\/]* | ?:[\\/]*) 6983 ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path. 6984 ;; 6985 *) 6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987 for as_dir in $PATH 6988 do 6989 IFS=$as_save_IFS 6990 case $as_dir in #((( 6991 '') as_dir=./ ;; 6992 */) ;; 6993 *) as_dir=$as_dir/ ;; 6994 esac 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6997 ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext" 6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6999 break 2 7000 fi 7001 done 7002 done 7003 IFS=$as_save_IFS 7004 7005 ;; 7006 esac 7007 fi 7008 HTTPD=$ac_cv_path_HTTPD 7009 if test -n "$HTTPD"; then 7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5 7011 printf "%s\n" "$HTTPD" >&6; } 7012 else 7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7014 printf "%s\n" "no" >&6; } 7015 fi 7016 7017 7018 if test "x$HTTPD" = "x"; then 7019 # Extract the first word of "apache2", so it can be a program name with args. 7020 set dummy apache2; ac_word=$2 7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022 printf %s "checking for $ac_word... " >&6; } 7023 if test ${ac_cv_path_HTTPD+y} 7024 then : 7025 printf %s "(cached) " >&6 7026 else $as_nop 7027 case $HTTPD in 7028 [\\/]* | ?:[\\/]*) 7029 ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path. 7030 ;; 7031 *) 7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7033 for as_dir in $PATH 7034 do 7035 IFS=$as_save_IFS 7036 case $as_dir in #((( 7037 '') as_dir=./ ;; 7038 */) ;; 7039 *) as_dir=$as_dir/ ;; 7040 esac 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7043 ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext" 7044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047 done 7048 done 7049 IFS=$as_save_IFS 7050 7051 ;; 7052 esac 7053 fi 7054 HTTPD=$ac_cv_path_HTTPD 7055 if test -n "$HTTPD"; then 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5 7057 printf "%s\n" "$HTTPD" >&6; } 7058 else 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060 printf "%s\n" "no" >&6; } 7061 fi 7062 7063 7064 fi 7065 # Extract the first word of "apxs", so it can be a program name with args. 7066 set dummy apxs; ac_word=$2 7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7068 printf %s "checking for $ac_word... " >&6; } 7069 if test ${ac_cv_path_APXS+y} 7070 then : 7071 printf %s "(cached) " >&6 7072 else $as_nop 7073 case $APXS in 7074 [\\/]* | ?:[\\/]*) 7075 ac_cv_path_APXS="$APXS" # Let the user override the test with a path. 7076 ;; 7077 *) 7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079 for as_dir in $PATH 7080 do 7081 IFS=$as_save_IFS 7082 case $as_dir in #((( 7083 '') as_dir=./ ;; 7084 */) ;; 7085 *) as_dir=$as_dir/ ;; 7086 esac 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7089 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext" 7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093 done 7094 done 7095 IFS=$as_save_IFS 7096 7097 ;; 7098 esac 7099 fi 7100 APXS=$ac_cv_path_APXS 7101 if test -n "$APXS"; then 7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5 7103 printf "%s\n" "$APXS" >&6; } 7104 else 7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7106 printf "%s\n" "no" >&6; } 7107 fi 7108 7109 7110 if test "x$HTTPD" = "x"; then 7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5 7112 printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;} 7113 HTTPD_ENABLED="no" 7114 fi 7115 if test "x$APXS" = "x"; then 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5 7117 printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;} 7118 HTTPD_ENABLED="no" 7119 fi 7120 fi 7121 elif test x"$request_httpd" != "xno"; then 7122 HTTPD="${request_httpd}/bin/httpd" 7123 APXS="${request_httpd}/bin/apxs" 7124 if test ! -x "${HTTPD}"; then 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5 7126 printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;} 7127 HTTPD_ENABLED="no" 7128 elif test ! -x "${APXS}"; then 7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5 7130 printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;} 7131 HTTPD_ENABLED="no" 7132 else 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5 7134 printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;} 7135 fi 7136 fi 7137 if test x"$HTTPD_ENABLED" = "xno"; then 7138 HTTPD="" 7139 APXS="" 7140 fi 7141 7142 7143 7144 if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then 7145 HTTPD_NGHTTPX="$TEST_NGHTTPX" 7146 else 7147 # Extract the first word of "nghttpx", so it can be a program name with args. 7148 set dummy nghttpx; ac_word=$2 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150 printf %s "checking for $ac_word... " >&6; } 7151 if test ${ac_cv_path_HTTPD_NGHTTPX+y} 7152 then : 7153 printf %s "(cached) " >&6 7154 else $as_nop 7155 case $HTTPD_NGHTTPX in 7156 [\\/]* | ?:[\\/]*) 7157 ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path. 7158 ;; 7159 *) 7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7161 as_dummy="$PATH:/usr/bin:/usr/local/bin" 7162 for as_dir in $as_dummy 7163 do 7164 IFS=$as_save_IFS 7165 case $as_dir in #((( 7166 '') as_dir=./ ;; 7167 */) ;; 7168 *) as_dir=$as_dir/ ;; 7169 esac 7170 for ac_exec_ext in '' $ac_executable_extensions; do 7171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7172 ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext" 7173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7174 break 2 7175 fi 7176 done 7177 done 7178 IFS=$as_save_IFS 7179 7180 ;; 7181 esac 7182 fi 7183 HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX 7184 if test -n "$HTTPD_NGHTTPX"; then 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5 7186 printf "%s\n" "$HTTPD_NGHTTPX" >&6; } 7187 else 7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7189 printf "%s\n" "no" >&6; } 7190 fi 7191 7192 7193 fi 7194 7195 7196 if test "x$TEST_CADDY" != "x"; then 7197 CADDY="$TEST_CADDY" 7198 else 7199 # Extract the first word of "caddy", so it can be a program name with args. 7200 set dummy caddy; 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_path_CADDY+y} 7204 then : 7205 printf %s "(cached) " >&6 7206 else $as_nop 7207 case $CADDY in 7208 [\\/]* | ?:[\\/]*) 7209 ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path. 7210 ;; 7211 *) 7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213 for as_dir in $PATH 7214 do 7215 IFS=$as_save_IFS 7216 case $as_dir in #((( 7217 '') as_dir=./ ;; 7218 */) ;; 7219 *) as_dir=$as_dir/ ;; 7220 esac 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7223 ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext" 7224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227 done 7228 done 7229 IFS=$as_save_IFS 7230 7231 ;; 7232 esac 7233 fi 7234 CADDY=$ac_cv_path_CADDY 7235 if test -n "$CADDY"; then 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5 7237 printf "%s\n" "$CADDY" >&6; } 7238 else 7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7240 printf "%s\n" "no" >&6; } 7241 fi 7242 7243 7244 fi 7245 7246 7247 if test -z "$TLSCHOICE"; then 7248 if test "x$OPT_SSL" != "xno"; then 7249 as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl. 7250 7251 Select from these: 7252 7253 --with-amissl 7254 --with-gnutls 7255 --with-mbedtls 7256 --with-openssl (also works for BoringSSL and LibreSSL) 7257 --with-rustls 7258 --with-schannel 7259 --with-wolfssl 7260 " "$LINENO" 5 7261 fi 7262 fi 7263 7264 7265 # Check whether --with-darwinssl was given. 7266 if test ${with_darwinssl+y} 7267 then : 7268 withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5 7269 fi 7270 7271 7272 7273 7274 7275 # Make sure we can run config.sub. 7276 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 7277 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 7278 7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7280 printf %s "checking build system type... " >&6; } 7281 if test ${ac_cv_build+y} 7282 then : 7283 printf %s "(cached) " >&6 7284 else $as_nop 7285 ac_build_alias=$build_alias 7286 test "x$ac_build_alias" = x && 7287 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 7288 test "x$ac_build_alias" = x && 7289 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7290 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 7291 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 7292 7293 fi 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7295 printf "%s\n" "$ac_cv_build" >&6; } 7296 case $ac_cv_build in 7297 *-*-*) ;; 7298 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7299 esac 7300 build=$ac_cv_build 7301 ac_save_IFS=$IFS; IFS='-' 7302 set x $ac_cv_build 7303 shift 7304 build_cpu=$1 7305 build_vendor=$2 7306 shift; shift 7307 # Remember, the first character of IFS is used to create $*, 7308 # except with old shells: 7309 build_os=$* 7310 IFS=$ac_save_IFS 7311 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7312 7313 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7315 printf %s "checking host system type... " >&6; } 7316 if test ${ac_cv_host+y} 7317 then : 7318 printf %s "(cached) " >&6 7319 else $as_nop 7320 if test "x$host_alias" = x; then 7321 ac_cv_host=$ac_cv_build 7322 else 7323 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7324 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7325 fi 7326 7327 fi 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7329 printf "%s\n" "$ac_cv_host" >&6; } 7330 case $ac_cv_host in 7331 *-*-*) ;; 7332 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7333 esac 7334 host=$ac_cv_host 7335 ac_save_IFS=$IFS; IFS='-' 7336 set x $ac_cv_host 7337 shift 7338 host_cpu=$1 7339 host_vendor=$2 7340 shift; shift 7341 # Remember, the first character of IFS is used to create $*, 7342 # except with old shells: 7343 host_os=$* 7344 IFS=$ac_save_IFS 7345 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7346 7347 7348 7349 printf "%s\n" "#define CURL_OS \"${host}\"" >>confdefs.h 7350 7351 7352 # Silence warning: ar: 'u' modifier ignored since 'D' is the default 7353 AR_FLAGS=cr 7354 7355 7356 7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7358 printf %s "checking for grep that handles long lines and -e... " >&6; } 7359 if test ${ac_cv_path_GREP+y} 7360 then : 7361 printf %s "(cached) " >&6 7362 else $as_nop 7363 if test -z "$GREP"; then 7364 ac_path_GREP_found=false 7365 # Loop through the user's path and test for each of PROGNAME-LIST 7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7368 do 7369 IFS=$as_save_IFS 7370 case $as_dir in #((( 7371 '') as_dir=./ ;; 7372 */) ;; 7373 *) as_dir=$as_dir/ ;; 7374 esac 7375 for ac_prog in grep ggrep 7376 do 7377 for ac_exec_ext in '' $ac_executable_extensions; do 7378 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7379 as_fn_executable_p "$ac_path_GREP" || continue 7380 # Check for GNU ac_path_GREP and select it if it is found. 7381 # Check for GNU $ac_path_GREP 7382 case `"$ac_path_GREP" --version 2>&1` in 7383 *GNU*) 7384 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7385 *) 7386 ac_count=0 7387 printf %s 0123456789 >"conftest.in" 7388 while : 7389 do 7390 cat "conftest.in" "conftest.in" >"conftest.tmp" 7391 mv "conftest.tmp" "conftest.in" 7392 cp "conftest.in" "conftest.nl" 7393 printf "%s\n" 'GREP' >> "conftest.nl" 7394 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7396 as_fn_arith $ac_count + 1 && ac_count=$as_val 7397 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7398 # Best one so far, save it but keep looking for a better one 7399 ac_cv_path_GREP="$ac_path_GREP" 7400 ac_path_GREP_max=$ac_count 7401 fi 7402 # 10*(2^10) chars as input seems more than enough 7403 test $ac_count -gt 10 && break 7404 done 7405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7406 esac 7407 7408 $ac_path_GREP_found && break 3 7409 done 7410 done 7411 done 7412 IFS=$as_save_IFS 7413 if test -z "$ac_cv_path_GREP"; then 7414 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7415 fi 7416 else 7417 ac_cv_path_GREP=$GREP 7418 fi 7419 7420 fi 7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7422 printf "%s\n" "$ac_cv_path_GREP" >&6; } 7423 GREP="$ac_cv_path_GREP" 7424 7425 7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7427 printf %s "checking for egrep... " >&6; } 7428 if test ${ac_cv_path_EGREP+y} 7429 then : 7430 printf %s "(cached) " >&6 7431 else $as_nop 7432 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7433 then ac_cv_path_EGREP="$GREP -E" 7434 else 7435 if test -z "$EGREP"; then 7436 ac_path_EGREP_found=false 7437 # Loop through the user's path and test for each of PROGNAME-LIST 7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7440 do 7441 IFS=$as_save_IFS 7442 case $as_dir in #((( 7443 '') as_dir=./ ;; 7444 */) ;; 7445 *) as_dir=$as_dir/ ;; 7446 esac 7447 for ac_prog in egrep 7448 do 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7451 as_fn_executable_p "$ac_path_EGREP" || continue 7452 # Check for GNU ac_path_EGREP and select it if it is found. 7453 # Check for GNU $ac_path_EGREP 7454 case `"$ac_path_EGREP" --version 2>&1` in 7455 *GNU*) 7456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7457 *) 7458 ac_count=0 7459 printf %s 0123456789 >"conftest.in" 7460 while : 7461 do 7462 cat "conftest.in" "conftest.in" >"conftest.tmp" 7463 mv "conftest.tmp" "conftest.in" 7464 cp "conftest.in" "conftest.nl" 7465 printf "%s\n" 'EGREP' >> "conftest.nl" 7466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7468 as_fn_arith $ac_count + 1 && ac_count=$as_val 7469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7470 # Best one so far, save it but keep looking for a better one 7471 ac_cv_path_EGREP="$ac_path_EGREP" 7472 ac_path_EGREP_max=$ac_count 7473 fi 7474 # 10*(2^10) chars as input seems more than enough 7475 test $ac_count -gt 10 && break 7476 done 7477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7478 esac 7479 7480 $ac_path_EGREP_found && break 3 7481 done 7482 done 7483 done 7484 IFS=$as_save_IFS 7485 if test -z "$ac_cv_path_EGREP"; then 7486 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7487 fi 7488 else 7489 ac_cv_path_EGREP=$EGREP 7490 fi 7491 7492 fi 7493 fi 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7495 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7496 EGREP="$ac_cv_path_EGREP" 7497 7498 7499 7500 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 7502 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504 /* end confdefs.h. */ 7505 7506 #ifdef _AIX 7507 yes_this_is_aix 7508 #endif 7509 7510 _ACEOF 7511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7512 $EGREP "yes_this_is_aix" >/dev/null 2>&1 7513 then : 7514 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7516 printf "%s\n" "yes" >&6; } 7517 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 7518 7519 7520 else $as_nop 7521 7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7523 printf "%s\n" "no" >&6; } 7524 7525 fi 7526 rm -rf conftest* 7527 7528 7529 7530 7531 # 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 7533 printf %s "checking if _THREAD_SAFE is already defined... " >&6; } 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 7537 7538 7539 int main(void) 7540 { 7541 7542 #ifdef _THREAD_SAFE 7543 int dummy = 1; 7544 (void)dummy; 7545 #else 7546 #error force compilation error 7547 #endif 7548 7549 return 0; 7550 } 7551 7552 _ACEOF 7553 if ac_fn_c_try_compile "$LINENO" 7554 then : 7555 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7557 printf "%s\n" "yes" >&6; } 7558 tmp_thread_safe_initially_defined="yes" 7559 7560 else $as_nop 7561 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7563 printf "%s\n" "no" >&6; } 7564 tmp_thread_safe_initially_defined="no" 7565 7566 fi 7567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7568 # 7569 if test "$tmp_thread_safe_initially_defined" = "no"; then 7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 7571 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; } 7572 7573 case $host_os in 7574 aix[123].* | aix4.[012].*) 7575 tmp_need_thread_safe="no" 7576 ;; 7577 aix*) 7578 tmp_need_thread_safe="yes" 7579 ;; 7580 *) 7581 tmp_need_thread_safe="no" 7582 ;; 7583 esac 7584 7585 if test "$tmp_need_thread_safe" = "yes"; then 7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7587 printf "%s\n" "yes" >&6; } 7588 else 7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7590 printf "%s\n" "no" >&6; } 7591 fi 7592 fi 7593 # 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 7595 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; } 7596 if test "$tmp_thread_safe_initially_defined" = "yes" || 7597 test "$tmp_need_thread_safe" = "yes"; then 7598 7599 7600 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h 7601 7602 cat >>confdefs.h <<_EOF 7603 #ifndef _THREAD_SAFE 7604 # define _THREAD_SAFE 7605 #endif 7606 _EOF 7607 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7609 printf "%s\n" "yes" >&6; } 7610 else 7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7612 printf "%s\n" "no" >&6; } 7613 fi 7614 # 7615 7616 7617 # 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 7619 printf %s "checking if _REENTRANT is already defined... " >&6; } 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621 /* end confdefs.h. */ 7622 7623 7624 7625 int main(void) 7626 { 7627 7628 #ifdef _REENTRANT 7629 int dummy = 1; 7630 (void)dummy; 7631 #else 7632 #error force compilation error 7633 #endif 7634 7635 return 0; 7636 } 7637 7638 _ACEOF 7639 if ac_fn_c_try_compile "$LINENO" 7640 then : 7641 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7643 printf "%s\n" "yes" >&6; } 7644 tmp_reentrant_initially_defined="yes" 7645 7646 else $as_nop 7647 7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7649 printf "%s\n" "no" >&6; } 7650 tmp_reentrant_initially_defined="no" 7651 7652 fi 7653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7654 # 7655 if test "$tmp_reentrant_initially_defined" = "no"; then 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 7657 printf %s "checking if _REENTRANT is actually needed... " >&6; } 7658 7659 case $host_os in 7660 solaris*) 7661 tmp_need_reentrant="yes" 7662 ;; 7663 *) 7664 tmp_need_reentrant="no" 7665 ;; 7666 esac 7667 7668 if test "$tmp_need_reentrant" = "no"; then 7669 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671 /* end confdefs.h. */ 7672 7673 7674 #include <errno.h> 7675 7676 int main(void) 7677 { 7678 7679 if(0 != errno) 7680 return 1; 7681 7682 return 0; 7683 } 7684 7685 _ACEOF 7686 if ac_fn_c_try_compile "$LINENO" 7687 then : 7688 7689 tmp_errno="yes" 7690 7691 else $as_nop 7692 7693 tmp_errno="no" 7694 7695 fi 7696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7697 if test "$tmp_errno" = "yes"; then 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699 /* end confdefs.h. */ 7700 7701 7702 #include <errno.h> 7703 7704 int main(void) 7705 { 7706 7707 #ifdef errno 7708 int dummy = 1; 7709 (void)dummy; 7710 #else 7711 #error force compilation error 7712 #endif 7713 7714 return 0; 7715 } 7716 7717 _ACEOF 7718 if ac_fn_c_try_compile "$LINENO" 7719 then : 7720 7721 tmp_errno="errno_macro_defined" 7722 7723 else $as_nop 7724 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726 /* end confdefs.h. */ 7727 7728 7729 #define _REENTRANT 7730 #include <errno.h> 7731 7732 int main(void) 7733 { 7734 7735 #ifdef errno 7736 int dummy = 1; 7737 (void)dummy; 7738 #else 7739 #error force compilation error 7740 #endif 7741 7742 return 0; 7743 } 7744 7745 _ACEOF 7746 if ac_fn_c_try_compile "$LINENO" 7747 then : 7748 7749 tmp_errno="errno_macro_needs_reentrant" 7750 tmp_need_reentrant="yes" 7751 7752 fi 7753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7754 7755 fi 7756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7757 fi 7758 7759 fi 7760 if test "$tmp_need_reentrant" = "no"; then 7761 7762 if test "$tmp_need_reentrant" = "no"; then 7763 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765 /* end confdefs.h. */ 7766 7767 7768 #define gmtime_r innocuous_gmtime_r 7769 #ifdef __STDC__ 7770 # include <limits.h> 7771 #else 7772 # include <assert.h> 7773 #endif 7774 #undef gmtime_r 7775 #ifdef __cplusplus 7776 extern "C" 7777 #endif 7778 char gmtime_r (); 7779 #if defined __stub_gmtime_r || defined __stub___gmtime_r 7780 #error force compilation error 7781 #endif 7782 7783 int main(void) 7784 { 7785 return gmtime_r (); 7786 return 0; 7787 } 7788 7789 _ACEOF 7790 if ac_fn_c_try_link "$LINENO" 7791 then : 7792 7793 tmp_gmtime_r="yes" 7794 7795 else $as_nop 7796 7797 tmp_gmtime_r="no" 7798 7799 fi 7800 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7801 conftest$ac_exeext conftest.$ac_ext 7802 if test "$tmp_gmtime_r" = "yes"; then 7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7804 /* end confdefs.h. */ 7805 7806 #include <sys/types.h> 7807 #include <time.h> 7808 7809 _ACEOF 7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7811 $EGREP "gmtime_r" >/dev/null 2>&1 7812 then : 7813 7814 tmp_gmtime_r="proto_declared" 7815 7816 else $as_nop 7817 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819 /* end confdefs.h. */ 7820 7821 #define _REENTRANT 7822 #include <sys/types.h> 7823 #include <time.h> 7824 7825 _ACEOF 7826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7827 $EGREP "gmtime_r" >/dev/null 2>&1 7828 then : 7829 7830 tmp_gmtime_r="proto_needs_reentrant" 7831 tmp_need_reentrant="yes" 7832 7833 fi 7834 rm -rf conftest* 7835 7836 7837 fi 7838 rm -rf conftest* 7839 7840 fi 7841 7842 fi 7843 if test "$tmp_need_reentrant" = "no"; then 7844 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7846 /* end confdefs.h. */ 7847 7848 7849 #define localtime_r innocuous_localtime_r 7850 #ifdef __STDC__ 7851 # include <limits.h> 7852 #else 7853 # include <assert.h> 7854 #endif 7855 #undef localtime_r 7856 #ifdef __cplusplus 7857 extern "C" 7858 #endif 7859 char localtime_r (); 7860 #if defined __stub_localtime_r || defined __stub___localtime_r 7861 #error force compilation error 7862 #endif 7863 7864 int main(void) 7865 { 7866 return localtime_r (); 7867 return 0; 7868 } 7869 7870 _ACEOF 7871 if ac_fn_c_try_link "$LINENO" 7872 then : 7873 7874 tmp_localtime_r="yes" 7875 7876 else $as_nop 7877 7878 tmp_localtime_r="no" 7879 7880 fi 7881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7882 conftest$ac_exeext conftest.$ac_ext 7883 if test "$tmp_localtime_r" = "yes"; then 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885 /* end confdefs.h. */ 7886 7887 #include <sys/types.h> 7888 #include <time.h> 7889 7890 _ACEOF 7891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7892 $EGREP "localtime_r" >/dev/null 2>&1 7893 then : 7894 7895 tmp_localtime_r="proto_declared" 7896 7897 else $as_nop 7898 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900 /* end confdefs.h. */ 7901 7902 #define _REENTRANT 7903 #include <sys/types.h> 7904 #include <time.h> 7905 7906 _ACEOF 7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7908 $EGREP "localtime_r" >/dev/null 2>&1 7909 then : 7910 7911 tmp_localtime_r="proto_needs_reentrant" 7912 tmp_need_reentrant="yes" 7913 7914 fi 7915 rm -rf conftest* 7916 7917 7918 fi 7919 rm -rf conftest* 7920 7921 fi 7922 7923 fi 7924 if test "$tmp_need_reentrant" = "no"; then 7925 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927 /* end confdefs.h. */ 7928 7929 7930 #define strerror_r innocuous_strerror_r 7931 #ifdef __STDC__ 7932 # include <limits.h> 7933 #else 7934 # include <assert.h> 7935 #endif 7936 #undef strerror_r 7937 #ifdef __cplusplus 7938 extern "C" 7939 #endif 7940 char strerror_r (); 7941 #if defined __stub_strerror_r || defined __stub___strerror_r 7942 #error force compilation error 7943 #endif 7944 7945 int main(void) 7946 { 7947 return strerror_r (); 7948 return 0; 7949 } 7950 7951 _ACEOF 7952 if ac_fn_c_try_link "$LINENO" 7953 then : 7954 7955 tmp_strerror_r="yes" 7956 7957 else $as_nop 7958 7959 tmp_strerror_r="no" 7960 7961 fi 7962 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7963 conftest$ac_exeext conftest.$ac_ext 7964 if test "$tmp_strerror_r" = "yes"; then 7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7966 /* end confdefs.h. */ 7967 7968 #include <sys/types.h> 7969 #include <string.h> 7970 7971 _ACEOF 7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7973 $EGREP "strerror_r" >/dev/null 2>&1 7974 then : 7975 7976 tmp_strerror_r="proto_declared" 7977 7978 else $as_nop 7979 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981 /* end confdefs.h. */ 7982 7983 #define _REENTRANT 7984 #include <sys/types.h> 7985 #include <string.h> 7986 7987 _ACEOF 7988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7989 $EGREP "strerror_r" >/dev/null 2>&1 7990 then : 7991 7992 tmp_strerror_r="proto_needs_reentrant" 7993 tmp_need_reentrant="yes" 7994 7995 fi 7996 rm -rf conftest* 7997 7998 7999 fi 8000 rm -rf conftest* 8001 8002 fi 8003 8004 fi 8005 if test "$tmp_need_reentrant" = "no"; then 8006 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008 /* end confdefs.h. */ 8009 8010 8011 #define gethostbyname_r innocuous_gethostbyname_r 8012 #ifdef __STDC__ 8013 # include <limits.h> 8014 #else 8015 # include <assert.h> 8016 #endif 8017 #undef gethostbyname_r 8018 #ifdef __cplusplus 8019 extern "C" 8020 #endif 8021 char gethostbyname_r (); 8022 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 8023 #error force compilation error 8024 #endif 8025 8026 int main(void) 8027 { 8028 return gethostbyname_r (); 8029 return 0; 8030 } 8031 8032 _ACEOF 8033 if ac_fn_c_try_link "$LINENO" 8034 then : 8035 8036 tmp_gethostbyname_r="yes" 8037 8038 else $as_nop 8039 8040 tmp_gethostbyname_r="no" 8041 8042 fi 8043 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8044 conftest$ac_exeext conftest.$ac_ext 8045 if test "$tmp_gethostbyname_r" = "yes"; then 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047 /* end confdefs.h. */ 8048 8049 #include <sys/types.h> 8050 #include <netdb.h> 8051 8052 _ACEOF 8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8054 $EGREP "gethostbyname_r" >/dev/null 2>&1 8055 then : 8056 8057 tmp_gethostbyname_r="proto_declared" 8058 8059 else $as_nop 8060 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062 /* end confdefs.h. */ 8063 8064 #define _REENTRANT 8065 #include <sys/types.h> 8066 #include <netdb.h> 8067 8068 _ACEOF 8069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8070 $EGREP "gethostbyname_r" >/dev/null 2>&1 8071 then : 8072 8073 tmp_gethostbyname_r="proto_needs_reentrant" 8074 tmp_need_reentrant="yes" 8075 8076 fi 8077 rm -rf conftest* 8078 8079 8080 fi 8081 rm -rf conftest* 8082 8083 fi 8084 8085 fi 8086 if test "$tmp_need_reentrant" = "no"; then 8087 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089 /* end confdefs.h. */ 8090 8091 8092 #define getprotobyname_r innocuous_getprotobyname_r 8093 #ifdef __STDC__ 8094 # include <limits.h> 8095 #else 8096 # include <assert.h> 8097 #endif 8098 #undef getprotobyname_r 8099 #ifdef __cplusplus 8100 extern "C" 8101 #endif 8102 char getprotobyname_r (); 8103 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 8104 #error force compilation error 8105 #endif 8106 8107 int main(void) 8108 { 8109 return getprotobyname_r (); 8110 return 0; 8111 } 8112 8113 _ACEOF 8114 if ac_fn_c_try_link "$LINENO" 8115 then : 8116 8117 tmp_getprotobyname_r="yes" 8118 8119 else $as_nop 8120 8121 tmp_getprotobyname_r="no" 8122 8123 fi 8124 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8125 conftest$ac_exeext conftest.$ac_ext 8126 if test "$tmp_getprotobyname_r" = "yes"; then 8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128 /* end confdefs.h. */ 8129 8130 #include <sys/types.h> 8131 #include <netdb.h> 8132 8133 _ACEOF 8134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8135 $EGREP "getprotobyname_r" >/dev/null 2>&1 8136 then : 8137 8138 tmp_getprotobyname_r="proto_declared" 8139 8140 else $as_nop 8141 8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143 /* end confdefs.h. */ 8144 8145 #define _REENTRANT 8146 #include <sys/types.h> 8147 #include <netdb.h> 8148 8149 _ACEOF 8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8151 $EGREP "getprotobyname_r" >/dev/null 2>&1 8152 then : 8153 8154 tmp_getprotobyname_r="proto_needs_reentrant" 8155 tmp_need_reentrant="yes" 8156 8157 fi 8158 rm -rf conftest* 8159 8160 8161 fi 8162 rm -rf conftest* 8163 8164 fi 8165 8166 fi 8167 8168 fi 8169 if test "$tmp_need_reentrant" = "yes"; then 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8171 printf "%s\n" "yes" >&6; } 8172 else 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174 printf "%s\n" "no" >&6; } 8175 fi 8176 fi 8177 # 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 8179 printf %s "checking if _REENTRANT is onwards defined... " >&6; } 8180 if test "$tmp_reentrant_initially_defined" = "yes" || 8181 test "$tmp_need_reentrant" = "yes"; then 8182 8183 8184 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h 8185 8186 cat >>confdefs.h <<_EOF 8187 #ifndef _REENTRANT 8188 # define _REENTRANT 8189 #endif 8190 _EOF 8191 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8193 printf "%s\n" "yes" >&6; } 8194 else 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8196 printf "%s\n" "no" >&6; } 8197 fi 8198 # 8199 8200 8201 # Check whether --enable-largefile was given. 8202 if test ${enable_largefile+y} 8203 then : 8204 enableval=$enable_largefile; 8205 fi 8206 8207 if test "$enable_largefile" != no; then 8208 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 8210 printf %s "checking for special C compiler options needed for large files... " >&6; } 8211 if test ${ac_cv_sys_largefile_CC+y} 8212 then : 8213 printf %s "(cached) " >&6 8214 else $as_nop 8215 ac_cv_sys_largefile_CC=no 8216 if test "$GCC" != yes; then 8217 ac_save_CC=$CC 8218 while :; do 8219 # IRIX 6.2 and later do not support large files by default, 8220 # so use the C compiler's -n32 option if that helps. 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222 /* end confdefs.h. */ 8223 #include <sys/types.h> 8224 /* Check that off_t can represent 2**63 - 1 correctly. 8225 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8226 since some C++ compilers masquerading as C compilers 8227 incorrectly reject 9223372036854775807. */ 8228 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8230 && LARGE_OFF_T % 2147483647 == 1) 8231 ? 1 : -1]; 8232 int main(void) 8233 { 8234 8235 return 0; 8236 } 8237 _ACEOF 8238 if ac_fn_c_try_compile "$LINENO" 8239 then : 8240 break 8241 fi 8242 rm -f core conftest.err conftest.$ac_objext conftest.beam 8243 CC="$CC -n32" 8244 if ac_fn_c_try_compile "$LINENO" 8245 then : 8246 ac_cv_sys_largefile_CC=' -n32'; break 8247 fi 8248 rm -f core conftest.err conftest.$ac_objext conftest.beam 8249 break 8250 done 8251 CC=$ac_save_CC 8252 rm -f conftest.$ac_ext 8253 fi 8254 fi 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 8256 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 8257 if test "$ac_cv_sys_largefile_CC" != no; then 8258 CC=$CC$ac_cv_sys_largefile_CC 8259 fi 8260 8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8262 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 8263 if test ${ac_cv_sys_file_offset_bits+y} 8264 then : 8265 printf %s "(cached) " >&6 8266 else $as_nop 8267 while :; do 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269 /* end confdefs.h. */ 8270 #include <sys/types.h> 8271 /* Check that off_t can represent 2**63 - 1 correctly. 8272 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8273 since some C++ compilers masquerading as C compilers 8274 incorrectly reject 9223372036854775807. */ 8275 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8277 && LARGE_OFF_T % 2147483647 == 1) 8278 ? 1 : -1]; 8279 int main(void) 8280 { 8281 8282 return 0; 8283 } 8284 _ACEOF 8285 if ac_fn_c_try_compile "$LINENO" 8286 then : 8287 ac_cv_sys_file_offset_bits=no; break 8288 fi 8289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291 /* end confdefs.h. */ 8292 #define _FILE_OFFSET_BITS 64 8293 #include <sys/types.h> 8294 /* Check that off_t can represent 2**63 - 1 correctly. 8295 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8296 since some C++ compilers masquerading as C compilers 8297 incorrectly reject 9223372036854775807. */ 8298 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8300 && LARGE_OFF_T % 2147483647 == 1) 8301 ? 1 : -1]; 8302 int main(void) 8303 { 8304 8305 return 0; 8306 } 8307 _ACEOF 8308 if ac_fn_c_try_compile "$LINENO" 8309 then : 8310 ac_cv_sys_file_offset_bits=64; break 8311 fi 8312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8313 ac_cv_sys_file_offset_bits=unknown 8314 break 8315 done 8316 fi 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 8318 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 8319 case $ac_cv_sys_file_offset_bits in #( 8320 no | unknown) ;; 8321 *) 8322 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 8323 ;; 8324 esac 8325 rm -rf conftest* 8326 if test $ac_cv_sys_file_offset_bits = unknown; then 8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 8328 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 8329 if test ${ac_cv_sys_large_files+y} 8330 then : 8331 printf %s "(cached) " >&6 8332 else $as_nop 8333 while :; do 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335 /* end confdefs.h. */ 8336 #include <sys/types.h> 8337 /* Check that off_t can represent 2**63 - 1 correctly. 8338 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8339 since some C++ compilers masquerading as C compilers 8340 incorrectly reject 9223372036854775807. */ 8341 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8343 && LARGE_OFF_T % 2147483647 == 1) 8344 ? 1 : -1]; 8345 int main(void) 8346 { 8347 8348 return 0; 8349 } 8350 _ACEOF 8351 if ac_fn_c_try_compile "$LINENO" 8352 then : 8353 ac_cv_sys_large_files=no; break 8354 fi 8355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8357 /* end confdefs.h. */ 8358 #define _LARGE_FILES 1 8359 #include <sys/types.h> 8360 /* Check that off_t can represent 2**63 - 1 correctly. 8361 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8362 since some C++ compilers masquerading as C compilers 8363 incorrectly reject 9223372036854775807. */ 8364 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8366 && LARGE_OFF_T % 2147483647 == 1) 8367 ? 1 : -1]; 8368 int main(void) 8369 { 8370 8371 return 0; 8372 } 8373 _ACEOF 8374 if ac_fn_c_try_compile "$LINENO" 8375 then : 8376 ac_cv_sys_large_files=1; break 8377 fi 8378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8379 ac_cv_sys_large_files=unknown 8380 break 8381 done 8382 fi 8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 8384 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 8385 case $ac_cv_sys_large_files in #( 8386 no | unknown) ;; 8387 *) 8388 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 8389 ;; 8390 esac 8391 rm -rf conftest* 8392 fi 8393 fi 8394 8395 8396 case `pwd` in 8397 *\ * | *\ *) 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8399 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8400 esac 8401 8402 8403 8404 macro_version='2.4.7' 8405 macro_revision='2.4.7' 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 ltmain=$ac_aux_dir/ltmain.sh 8421 8422 # Backslashify metacharacters that are still active within 8423 # double-quoted strings. 8424 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8425 8426 # Same as above, but do not quote variable references. 8427 double_quote_subst='s/\(["`\\]\)/\\\1/g' 8428 8429 # Sed substitution to delay expansion of an escaped shell variable in a 8430 # double_quote_subst'ed string. 8431 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8432 8433 # Sed substitution to delay expansion of an escaped single quote. 8434 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8435 8436 # Sed substitution to avoid accidental globbing in evaled expressions 8437 no_glob_subst='s/\*/\\\*/g' 8438 8439 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8440 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8441 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8442 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8444 printf %s "checking how to print strings... " >&6; } 8445 # Test print first, because it will be a builtin if present. 8446 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8447 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8448 ECHO='print -r --' 8449 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8450 ECHO='printf %s\n' 8451 else 8452 # Use this function as a fallback that always works. 8453 func_fallback_echo () 8454 { 8455 eval 'cat <<_LTECHO_EOF 8456 $1 8457 _LTECHO_EOF' 8458 } 8459 ECHO='func_fallback_echo' 8460 fi 8461 8462 # func_echo_all arg... 8463 # Invoke $ECHO with all args, space-separated. 8464 func_echo_all () 8465 { 8466 $ECHO "" 8467 } 8468 8469 case $ECHO in 8470 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8471 printf "%s\n" "printf" >&6; } ;; 8472 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8473 printf "%s\n" "print -r" >&6; } ;; 8474 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8475 printf "%s\n" "cat" >&6; } ;; 8476 esac 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8492 printf %s "checking for a sed that does not truncate output... " >&6; } 8493 if test ${ac_cv_path_SED+y} 8494 then : 8495 printf %s "(cached) " >&6 8496 else $as_nop 8497 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8498 for ac_i in 1 2 3 4 5 6 7; do 8499 ac_script="$ac_script$as_nl$ac_script" 8500 done 8501 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8502 { ac_script=; unset ac_script;} 8503 if test -z "$SED"; then 8504 ac_path_SED_found=false 8505 # Loop through the user's path and test for each of PROGNAME-LIST 8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8507 for as_dir in $PATH 8508 do 8509 IFS=$as_save_IFS 8510 case $as_dir in #((( 8511 '') as_dir=./ ;; 8512 */) ;; 8513 *) as_dir=$as_dir/ ;; 8514 esac 8515 for ac_prog in sed gsed 8516 do 8517 for ac_exec_ext in '' $ac_executable_extensions; do 8518 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 8519 as_fn_executable_p "$ac_path_SED" || continue 8520 # Check for GNU ac_path_SED and select it if it is found. 8521 # Check for GNU $ac_path_SED 8522 case `"$ac_path_SED" --version 2>&1` in 8523 *GNU*) 8524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8525 *) 8526 ac_count=0 8527 printf %s 0123456789 >"conftest.in" 8528 while : 8529 do 8530 cat "conftest.in" "conftest.in" >"conftest.tmp" 8531 mv "conftest.tmp" "conftest.in" 8532 cp "conftest.in" "conftest.nl" 8533 printf "%s\n" '' >> "conftest.nl" 8534 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8536 as_fn_arith $ac_count + 1 && ac_count=$as_val 8537 if test $ac_count -gt ${ac_path_SED_max-0}; then 8538 # Best one so far, save it but keep looking for a better one 8539 ac_cv_path_SED="$ac_path_SED" 8540 ac_path_SED_max=$ac_count 8541 fi 8542 # 10*(2^10) chars as input seems more than enough 8543 test $ac_count -gt 10 && break 8544 done 8545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8546 esac 8547 8548 $ac_path_SED_found && break 3 8549 done 8550 done 8551 done 8552 IFS=$as_save_IFS 8553 if test -z "$ac_cv_path_SED"; then 8554 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8555 fi 8556 else 8557 ac_cv_path_SED=$SED 8558 fi 8559 8560 fi 8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8562 printf "%s\n" "$ac_cv_path_SED" >&6; } 8563 SED="$ac_cv_path_SED" 8564 rm -f conftest.sed 8565 8566 test -z "$SED" && SED=sed 8567 Xsed="$SED -e 1s/^X//" 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8580 printf %s "checking for fgrep... " >&6; } 8581 if test ${ac_cv_path_FGREP+y} 8582 then : 8583 printf %s "(cached) " >&6 8584 else $as_nop 8585 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8586 then ac_cv_path_FGREP="$GREP -F" 8587 else 8588 if test -z "$FGREP"; then 8589 ac_path_FGREP_found=false 8590 # Loop through the user's path and test for each of PROGNAME-LIST 8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8593 do 8594 IFS=$as_save_IFS 8595 case $as_dir in #((( 8596 '') as_dir=./ ;; 8597 */) ;; 8598 *) as_dir=$as_dir/ ;; 8599 esac 8600 for ac_prog in fgrep 8601 do 8602 for ac_exec_ext in '' $ac_executable_extensions; do 8603 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 8604 as_fn_executable_p "$ac_path_FGREP" || continue 8605 # Check for GNU ac_path_FGREP and select it if it is found. 8606 # Check for GNU $ac_path_FGREP 8607 case `"$ac_path_FGREP" --version 2>&1` in 8608 *GNU*) 8609 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8610 *) 8611 ac_count=0 8612 printf %s 0123456789 >"conftest.in" 8613 while : 8614 do 8615 cat "conftest.in" "conftest.in" >"conftest.tmp" 8616 mv "conftest.tmp" "conftest.in" 8617 cp "conftest.in" "conftest.nl" 8618 printf "%s\n" 'FGREP' >> "conftest.nl" 8619 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8621 as_fn_arith $ac_count + 1 && ac_count=$as_val 8622 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8623 # Best one so far, save it but keep looking for a better one 8624 ac_cv_path_FGREP="$ac_path_FGREP" 8625 ac_path_FGREP_max=$ac_count 8626 fi 8627 # 10*(2^10) chars as input seems more than enough 8628 test $ac_count -gt 10 && break 8629 done 8630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8631 esac 8632 8633 $ac_path_FGREP_found && break 3 8634 done 8635 done 8636 done 8637 IFS=$as_save_IFS 8638 if test -z "$ac_cv_path_FGREP"; then 8639 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8640 fi 8641 else 8642 ac_cv_path_FGREP=$FGREP 8643 fi 8644 8645 fi 8646 fi 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8648 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 8649 FGREP="$ac_cv_path_FGREP" 8650 8651 8652 test -z "$GREP" && GREP=grep 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 # Check whether --with-gnu-ld was given. 8673 if test ${with_gnu_ld+y} 8674 then : 8675 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8676 else $as_nop 8677 with_gnu_ld=no 8678 fi 8679 8680 ac_prog=ld 8681 if test yes = "$GCC"; then 8682 # Check if gcc -print-prog-name=ld gives a path. 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8684 printf %s "checking for ld used by $CC... " >&6; } 8685 case $host in 8686 *-*-mingw*) 8687 # gcc leaves a trailing carriage return, which upsets mingw 8688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8689 *) 8690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8691 esac 8692 case $ac_prog in 8693 # Accept absolute paths. 8694 [\\/]* | ?:[\\/]*) 8695 re_direlt='/[^/][^/]*/\.\./' 8696 # Canonicalize the pathname of ld 8697 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8698 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8699 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8700 done 8701 test -z "$LD" && LD=$ac_prog 8702 ;; 8703 "") 8704 # If it fails, then pretend we aren't using GCC. 8705 ac_prog=ld 8706 ;; 8707 *) 8708 # If it is relative, then search for the first ld in PATH. 8709 with_gnu_ld=unknown 8710 ;; 8711 esac 8712 elif test yes = "$with_gnu_ld"; then 8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8714 printf %s "checking for GNU ld... " >&6; } 8715 else 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8717 printf %s "checking for non-GNU ld... " >&6; } 8718 fi 8719 if test ${lt_cv_path_LD+y} 8720 then : 8721 printf %s "(cached) " >&6 8722 else $as_nop 8723 if test -z "$LD"; then 8724 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8725 for ac_dir in $PATH; do 8726 IFS=$lt_save_ifs 8727 test -z "$ac_dir" && ac_dir=. 8728 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8729 lt_cv_path_LD=$ac_dir/$ac_prog 8730 # Check to see if the program is GNU ld. I'd rather use --version, 8731 # but apparently some variants of GNU ld only accept -v. 8732 # Break only if it was the GNU/non-GNU ld that we prefer. 8733 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8734 *GNU* | *'with BFD'*) 8735 test no != "$with_gnu_ld" && break 8736 ;; 8737 *) 8738 test yes != "$with_gnu_ld" && break 8739 ;; 8740 esac 8741 fi 8742 done 8743 IFS=$lt_save_ifs 8744 else 8745 lt_cv_path_LD=$LD # Let the user override the test with a path. 8746 fi 8747 fi 8748 8749 LD=$lt_cv_path_LD 8750 if test -n "$LD"; then 8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8752 printf "%s\n" "$LD" >&6; } 8753 else 8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8755 printf "%s\n" "no" >&6; } 8756 fi 8757 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8759 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8760 if test ${lt_cv_prog_gnu_ld+y} 8761 then : 8762 printf %s "(cached) " >&6 8763 else $as_nop 8764 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8765 case `$LD -v 2>&1 </dev/null` in 8766 *GNU* | *'with BFD'*) 8767 lt_cv_prog_gnu_ld=yes 8768 ;; 8769 *) 8770 lt_cv_prog_gnu_ld=no 8771 ;; 8772 esac 8773 fi 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8775 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8776 with_gnu_ld=$lt_cv_prog_gnu_ld 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8787 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8788 if test ${lt_cv_path_NM+y} 8789 then : 8790 printf %s "(cached) " >&6 8791 else $as_nop 8792 if test -n "$NM"; then 8793 # Let the user override the test. 8794 lt_cv_path_NM=$NM 8795 else 8796 lt_nm_to_check=${ac_tool_prefix}nm 8797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8798 lt_nm_to_check="$lt_nm_to_check nm" 8799 fi 8800 for lt_tmp_nm in $lt_nm_to_check; do 8801 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8803 IFS=$lt_save_ifs 8804 test -z "$ac_dir" && ac_dir=. 8805 tmp_nm=$ac_dir/$lt_tmp_nm 8806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8807 # Check to see if the nm accepts a BSD-compat flag. 8808 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8809 # nm: unknown option "B" ignored 8810 # Tru64's nm complains that /dev/null is an invalid object file 8811 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8812 case $build_os in 8813 mingw*) lt_bad_file=conftest.nm/nofile ;; 8814 *) lt_bad_file=/dev/null ;; 8815 esac 8816 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 8817 *$lt_bad_file* | *'Invalid file or object type'*) 8818 lt_cv_path_NM="$tmp_nm -B" 8819 break 2 8820 ;; 8821 *) 8822 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 8823 */dev/null*) 8824 lt_cv_path_NM="$tmp_nm -p" 8825 break 2 8826 ;; 8827 *) 8828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8829 continue # so that we can try to find one that supports BSD flags 8830 ;; 8831 esac 8832 ;; 8833 esac 8834 fi 8835 done 8836 IFS=$lt_save_ifs 8837 done 8838 : ${lt_cv_path_NM=no} 8839 fi 8840 fi 8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8842 printf "%s\n" "$lt_cv_path_NM" >&6; } 8843 if test no != "$lt_cv_path_NM"; then 8844 NM=$lt_cv_path_NM 8845 else 8846 # Didn't find any BSD compatible name lister, look for dumpbin. 8847 if test -n "$DUMPBIN"; then : 8848 # Let the user override the test. 8849 else 8850 if test -n "$ac_tool_prefix"; then 8851 for ac_prog in dumpbin "link -dump" 8852 do 8853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8856 printf %s "checking for $ac_word... " >&6; } 8857 if test ${ac_cv_prog_DUMPBIN+y} 8858 then : 8859 printf %s "(cached) " >&6 8860 else $as_nop 8861 if test -n "$DUMPBIN"; then 8862 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8863 else 8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8865 for as_dir in $PATH 8866 do 8867 IFS=$as_save_IFS 8868 case $as_dir in #((( 8869 '') as_dir=./ ;; 8870 */) ;; 8871 *) as_dir=$as_dir/ ;; 8872 esac 8873 for ac_exec_ext in '' $ac_executable_extensions; do 8874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8875 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8877 break 2 8878 fi 8879 done 8880 done 8881 IFS=$as_save_IFS 8882 8883 fi 8884 fi 8885 DUMPBIN=$ac_cv_prog_DUMPBIN 8886 if test -n "$DUMPBIN"; then 8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8888 printf "%s\n" "$DUMPBIN" >&6; } 8889 else 8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8891 printf "%s\n" "no" >&6; } 8892 fi 8893 8894 8895 test -n "$DUMPBIN" && break 8896 done 8897 fi 8898 if test -z "$DUMPBIN"; then 8899 ac_ct_DUMPBIN=$DUMPBIN 8900 for ac_prog in dumpbin "link -dump" 8901 do 8902 # Extract the first word of "$ac_prog", so it can be a program name with args. 8903 set dummy $ac_prog; ac_word=$2 8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8905 printf %s "checking for $ac_word... " >&6; } 8906 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 8907 then : 8908 printf %s "(cached) " >&6 8909 else $as_nop 8910 if test -n "$ac_ct_DUMPBIN"; then 8911 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8912 else 8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8914 for as_dir in $PATH 8915 do 8916 IFS=$as_save_IFS 8917 case $as_dir in #((( 8918 '') as_dir=./ ;; 8919 */) ;; 8920 *) as_dir=$as_dir/ ;; 8921 esac 8922 for ac_exec_ext in '' $ac_executable_extensions; do 8923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8924 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8926 break 2 8927 fi 8928 done 8929 done 8930 IFS=$as_save_IFS 8931 8932 fi 8933 fi 8934 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8935 if test -n "$ac_ct_DUMPBIN"; then 8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8937 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 8938 else 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8940 printf "%s\n" "no" >&6; } 8941 fi 8942 8943 8944 test -n "$ac_ct_DUMPBIN" && break 8945 done 8946 8947 if test "x$ac_ct_DUMPBIN" = x; then 8948 DUMPBIN=":" 8949 else 8950 case $cross_compiling:$ac_tool_warned in 8951 yes:) 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8954 ac_tool_warned=yes ;; 8955 esac 8956 DUMPBIN=$ac_ct_DUMPBIN 8957 fi 8958 fi 8959 8960 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 8961 *COFF*) 8962 DUMPBIN="$DUMPBIN -symbols -headers" 8963 ;; 8964 *) 8965 DUMPBIN=: 8966 ;; 8967 esac 8968 fi 8969 8970 if test : != "$DUMPBIN"; then 8971 NM=$DUMPBIN 8972 fi 8973 fi 8974 test -z "$NM" && NM=nm 8975 8976 8977 8978 8979 8980 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8982 printf %s "checking the name lister ($NM) interface... " >&6; } 8983 if test ${lt_cv_nm_interface+y} 8984 then : 8985 printf %s "(cached) " >&6 8986 else $as_nop 8987 lt_cv_nm_interface="BSD nm" 8988 echo "int some_variable = 0;" > conftest.$ac_ext 8989 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8990 (eval "$ac_compile" 2>conftest.err) 8991 cat conftest.err >&5 8992 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8993 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8994 cat conftest.err >&5 8995 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8996 cat conftest.out >&5 8997 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8998 lt_cv_nm_interface="MS dumpbin" 8999 fi 9000 rm -f conftest* 9001 fi 9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9003 printf "%s\n" "$lt_cv_nm_interface" >&6; } 9004 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9006 printf %s "checking whether ln -s works... " >&6; } 9007 LN_S=$as_ln_s 9008 if test "$LN_S" = "ln -s"; then 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9010 printf "%s\n" "yes" >&6; } 9011 else 9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9013 printf "%s\n" "no, using $LN_S" >&6; } 9014 fi 9015 9016 # find the maximum length of command line arguments 9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9018 printf %s "checking the maximum length of command line arguments... " >&6; } 9019 if test ${lt_cv_sys_max_cmd_len+y} 9020 then : 9021 printf %s "(cached) " >&6 9022 else $as_nop 9023 i=0 9024 teststring=ABCD 9025 9026 case $build_os in 9027 msdosdjgpp*) 9028 # On DJGPP, this test can blow up pretty badly due to problems in libc 9029 # (any single argument exceeding 2000 bytes causes a buffer overrun 9030 # during glob expansion). Even if it were fixed, the result of this 9031 # check would be larger than it should be. 9032 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9033 ;; 9034 9035 gnu*) 9036 # Under GNU Hurd, this test is not required because there is 9037 # no limit to the length of command line arguments. 9038 # Libtool will interpret -1 as no limit whatsoever 9039 lt_cv_sys_max_cmd_len=-1; 9040 ;; 9041 9042 cygwin* | mingw* | cegcc*) 9043 # On Win9x/ME, this test blows up -- it succeeds, but takes 9044 # about 5 minutes as the teststring grows exponentially. 9045 # Worse, since 9x/ME are not pre-emptively multitasking, 9046 # you end up with a "frozen" computer, even though with patience 9047 # the test eventually succeeds (with a max line length of 256k). 9048 # Instead, let's just punt: use the minimum linelength reported by 9049 # all of the supported platforms: 8192 (on NT/2K/XP). 9050 lt_cv_sys_max_cmd_len=8192; 9051 ;; 9052 9053 mint*) 9054 # On MiNT this can take a long time and run out of memory. 9055 lt_cv_sys_max_cmd_len=8192; 9056 ;; 9057 9058 amigaos*) 9059 # On AmigaOS with pdksh, this test takes hours, literally. 9060 # So we just punt and use a minimum line length of 8192. 9061 lt_cv_sys_max_cmd_len=8192; 9062 ;; 9063 9064 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 9065 # This has been around since 386BSD, at least. Likely further. 9066 if test -x /sbin/sysctl; then 9067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9068 elif test -x /usr/sbin/sysctl; then 9069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9070 else 9071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9072 fi 9073 # And add a safety zone 9074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9076 ;; 9077 9078 interix*) 9079 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9080 lt_cv_sys_max_cmd_len=196608 9081 ;; 9082 9083 os2*) 9084 # The test takes a long time on OS/2. 9085 lt_cv_sys_max_cmd_len=8192 9086 ;; 9087 9088 osf*) 9089 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9090 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9091 # nice to cause kernel panics so lets avoid the loop below. 9092 # First set a reasonable default. 9093 lt_cv_sys_max_cmd_len=16384 9094 # 9095 if test -x /sbin/sysconfig; then 9096 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9097 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9098 esac 9099 fi 9100 ;; 9101 sco3.2v5*) 9102 lt_cv_sys_max_cmd_len=102400 9103 ;; 9104 sysv5* | sco5v6* | sysv4.2uw2*) 9105 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9106 if test -n "$kargmax"; then 9107 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 9108 else 9109 lt_cv_sys_max_cmd_len=32768 9110 fi 9111 ;; 9112 *) 9113 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9114 if test -n "$lt_cv_sys_max_cmd_len" && \ 9115 test undefined != "$lt_cv_sys_max_cmd_len"; then 9116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9118 else 9119 # Make teststring a little bigger before we do anything with it. 9120 # a 1K string should be a reasonable start. 9121 for i in 1 2 3 4 5 6 7 8; do 9122 teststring=$teststring$teststring 9123 done 9124 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9125 # If test is not a shell built-in, we'll probably end up computing a 9126 # maximum length that is only half of the actual maximum length, but 9127 # we can't tell. 9128 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9129 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9130 test 17 != "$i" # 1/2 MB should be enough 9131 do 9132 i=`expr $i + 1` 9133 teststring=$teststring$teststring 9134 done 9135 # Only check the string length outside the loop. 9136 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9137 teststring= 9138 # Add a significant safety factor because C++ compilers can tack on 9139 # massive amounts of additional arguments before passing them to the 9140 # linker. It appears as though 1/2 is a usable value. 9141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9142 fi 9143 ;; 9144 esac 9145 9146 fi 9147 9148 if test -n "$lt_cv_sys_max_cmd_len"; then 9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9150 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 9151 else 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 9153 printf "%s\n" "none" >&6; } 9154 fi 9155 max_cmd_len=$lt_cv_sys_max_cmd_len 9156 9157 9158 9159 9160 9161 9162 : ${CP="cp -f"} 9163 : ${MV="mv -f"} 9164 : ${RM="rm -f"} 9165 9166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9167 lt_unset=unset 9168 else 9169 lt_unset=false 9170 fi 9171 9172 9173 9174 9175 9176 # test EBCDIC or ASCII 9177 case `echo X|tr X '\101'` in 9178 A) # ASCII based system 9179 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9180 lt_SP2NL='tr \040 \012' 9181 lt_NL2SP='tr \015\012 \040\040' 9182 ;; 9183 *) # EBCDIC based system 9184 lt_SP2NL='tr \100 \n' 9185 lt_NL2SP='tr \r\n \100\100' 9186 ;; 9187 esac 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9198 printf %s "checking how to convert $build file names to $host format... " >&6; } 9199 if test ${lt_cv_to_host_file_cmd+y} 9200 then : 9201 printf %s "(cached) " >&6 9202 else $as_nop 9203 case $host in 9204 *-*-mingw* ) 9205 case $build in 9206 *-*-mingw* ) # actually msys 9207 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9208 ;; 9209 *-*-cygwin* ) 9210 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9211 ;; 9212 * ) # otherwise, assume *nix 9213 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9214 ;; 9215 esac 9216 ;; 9217 *-*-cygwin* ) 9218 case $build in 9219 *-*-mingw* ) # actually msys 9220 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9221 ;; 9222 *-*-cygwin* ) 9223 lt_cv_to_host_file_cmd=func_convert_file_noop 9224 ;; 9225 * ) # otherwise, assume *nix 9226 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9227 ;; 9228 esac 9229 ;; 9230 * ) # unhandled hosts (and "normal" native builds) 9231 lt_cv_to_host_file_cmd=func_convert_file_noop 9232 ;; 9233 esac 9234 9235 fi 9236 9237 to_host_file_cmd=$lt_cv_to_host_file_cmd 9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9239 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 9240 9241 9242 9243 9244 9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9246 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 9247 if test ${lt_cv_to_tool_file_cmd+y} 9248 then : 9249 printf %s "(cached) " >&6 9250 else $as_nop 9251 #assume ordinary cross tools, or native build. 9252 lt_cv_to_tool_file_cmd=func_convert_file_noop 9253 case $host in 9254 *-*-mingw* ) 9255 case $build in 9256 *-*-mingw* ) # actually msys 9257 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9258 ;; 9259 esac 9260 ;; 9261 esac 9262 9263 fi 9264 9265 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9267 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 9268 9269 9270 9271 9272 9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9274 printf %s "checking for $LD option to reload object files... " >&6; } 9275 if test ${lt_cv_ld_reload_flag+y} 9276 then : 9277 printf %s "(cached) " >&6 9278 else $as_nop 9279 lt_cv_ld_reload_flag='-r' 9280 fi 9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9282 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 9283 reload_flag=$lt_cv_ld_reload_flag 9284 case $reload_flag in 9285 "" | " "*) ;; 9286 *) reload_flag=" $reload_flag" ;; 9287 esac 9288 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9289 case $host_os in 9290 cygwin* | mingw* | pw32* | cegcc*) 9291 if test yes != "$GCC"; then 9292 reload_cmds=false 9293 fi 9294 ;; 9295 darwin*) 9296 if test yes = "$GCC"; then 9297 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9298 else 9299 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9300 fi 9301 ;; 9302 esac 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 if test -n "$ac_tool_prefix"; then 9313 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 9314 set dummy ${ac_tool_prefix}file; ac_word=$2 9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9316 printf %s "checking for $ac_word... " >&6; } 9317 if test ${ac_cv_prog_FILECMD+y} 9318 then : 9319 printf %s "(cached) " >&6 9320 else $as_nop 9321 if test -n "$FILECMD"; then 9322 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 9323 else 9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9325 for as_dir in $PATH 9326 do 9327 IFS=$as_save_IFS 9328 case $as_dir in #((( 9329 '') as_dir=./ ;; 9330 */) ;; 9331 *) as_dir=$as_dir/ ;; 9332 esac 9333 for ac_exec_ext in '' $ac_executable_extensions; do 9334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9335 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 9336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9337 break 2 9338 fi 9339 done 9340 done 9341 IFS=$as_save_IFS 9342 9343 fi 9344 fi 9345 FILECMD=$ac_cv_prog_FILECMD 9346 if test -n "$FILECMD"; then 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 9348 printf "%s\n" "$FILECMD" >&6; } 9349 else 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9351 printf "%s\n" "no" >&6; } 9352 fi 9353 9354 9355 fi 9356 if test -z "$ac_cv_prog_FILECMD"; then 9357 ac_ct_FILECMD=$FILECMD 9358 # Extract the first word of "file", so it can be a program name with args. 9359 set dummy file; ac_word=$2 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9361 printf %s "checking for $ac_word... " >&6; } 9362 if test ${ac_cv_prog_ac_ct_FILECMD+y} 9363 then : 9364 printf %s "(cached) " >&6 9365 else $as_nop 9366 if test -n "$ac_ct_FILECMD"; then 9367 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 9368 else 9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9370 for as_dir in $PATH 9371 do 9372 IFS=$as_save_IFS 9373 case $as_dir in #((( 9374 '') as_dir=./ ;; 9375 */) ;; 9376 *) as_dir=$as_dir/ ;; 9377 esac 9378 for ac_exec_ext in '' $ac_executable_extensions; do 9379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9380 ac_cv_prog_ac_ct_FILECMD="file" 9381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9382 break 2 9383 fi 9384 done 9385 done 9386 IFS=$as_save_IFS 9387 9388 fi 9389 fi 9390 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 9391 if test -n "$ac_ct_FILECMD"; then 9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 9393 printf "%s\n" "$ac_ct_FILECMD" >&6; } 9394 else 9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9396 printf "%s\n" "no" >&6; } 9397 fi 9398 9399 if test "x$ac_ct_FILECMD" = x; then 9400 FILECMD=":" 9401 else 9402 case $cross_compiling:$ac_tool_warned in 9403 yes:) 9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9405 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9406 ac_tool_warned=yes ;; 9407 esac 9408 FILECMD=$ac_ct_FILECMD 9409 fi 9410 else 9411 FILECMD="$ac_cv_prog_FILECMD" 9412 fi 9413 9414 9415 9416 9417 9418 9419 9420 if test -n "$ac_tool_prefix"; then 9421 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9422 set dummy ${ac_tool_prefix}objdump; ac_word=$2 9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9424 printf %s "checking for $ac_word... " >&6; } 9425 if test ${ac_cv_prog_OBJDUMP+y} 9426 then : 9427 printf %s "(cached) " >&6 9428 else $as_nop 9429 if test -n "$OBJDUMP"; then 9430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9431 else 9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9433 for as_dir in $PATH 9434 do 9435 IFS=$as_save_IFS 9436 case $as_dir in #((( 9437 '') as_dir=./ ;; 9438 */) ;; 9439 *) as_dir=$as_dir/ ;; 9440 esac 9441 for ac_exec_ext in '' $ac_executable_extensions; do 9442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9443 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9445 break 2 9446 fi 9447 done 9448 done 9449 IFS=$as_save_IFS 9450 9451 fi 9452 fi 9453 OBJDUMP=$ac_cv_prog_OBJDUMP 9454 if test -n "$OBJDUMP"; then 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9456 printf "%s\n" "$OBJDUMP" >&6; } 9457 else 9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9459 printf "%s\n" "no" >&6; } 9460 fi 9461 9462 9463 fi 9464 if test -z "$ac_cv_prog_OBJDUMP"; then 9465 ac_ct_OBJDUMP=$OBJDUMP 9466 # Extract the first word of "objdump", so it can be a program name with args. 9467 set dummy objdump; ac_word=$2 9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9469 printf %s "checking for $ac_word... " >&6; } 9470 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9471 then : 9472 printf %s "(cached) " >&6 9473 else $as_nop 9474 if test -n "$ac_ct_OBJDUMP"; then 9475 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9476 else 9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9478 for as_dir in $PATH 9479 do 9480 IFS=$as_save_IFS 9481 case $as_dir in #((( 9482 '') as_dir=./ ;; 9483 */) ;; 9484 *) as_dir=$as_dir/ ;; 9485 esac 9486 for ac_exec_ext in '' $ac_executable_extensions; do 9487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9488 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9490 break 2 9491 fi 9492 done 9493 done 9494 IFS=$as_save_IFS 9495 9496 fi 9497 fi 9498 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9499 if test -n "$ac_ct_OBJDUMP"; then 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9501 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9502 else 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9504 printf "%s\n" "no" >&6; } 9505 fi 9506 9507 if test "x$ac_ct_OBJDUMP" = x; then 9508 OBJDUMP="false" 9509 else 9510 case $cross_compiling:$ac_tool_warned in 9511 yes:) 9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9513 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9514 ac_tool_warned=yes ;; 9515 esac 9516 OBJDUMP=$ac_ct_OBJDUMP 9517 fi 9518 else 9519 OBJDUMP="$ac_cv_prog_OBJDUMP" 9520 fi 9521 9522 test -z "$OBJDUMP" && OBJDUMP=objdump 9523 9524 9525 9526 9527 9528 9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9530 printf %s "checking how to recognize dependent libraries... " >&6; } 9531 if test ${lt_cv_deplibs_check_method+y} 9532 then : 9533 printf %s "(cached) " >&6 9534 else $as_nop 9535 lt_cv_file_magic_cmd='$MAGIC_CMD' 9536 lt_cv_file_magic_test_file= 9537 lt_cv_deplibs_check_method='unknown' 9538 # Need to set the preceding variable on all platforms that support 9539 # interlibrary dependencies. 9540 # 'none' -- dependencies not supported. 9541 # 'unknown' -- same as none, but documents that we really don't know. 9542 # 'pass_all' -- all dependencies passed with no checks. 9543 # 'test_compile' -- check by making test program. 9544 # 'file_magic [[regex]]' -- check by looking for files in library path 9545 # that responds to the $file_magic_cmd with a given extended regex. 9546 # If you have 'file' or equivalent on your system and you're not sure 9547 # whether 'pass_all' will *always* work, you probably want this one. 9548 9549 case $host_os in 9550 aix[4-9]*) 9551 lt_cv_deplibs_check_method=pass_all 9552 ;; 9553 9554 beos*) 9555 lt_cv_deplibs_check_method=pass_all 9556 ;; 9557 9558 bsdi[45]*) 9559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9560 lt_cv_file_magic_cmd='$FILECMD -L' 9561 lt_cv_file_magic_test_file=/shlib/libc.so 9562 ;; 9563 9564 cygwin*) 9565 # func_win32_libid is a shell function defined in ltmain.sh 9566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9567 lt_cv_file_magic_cmd='func_win32_libid' 9568 ;; 9569 9570 mingw* | pw32*) 9571 # Base MSYS/MinGW do not provide the 'file' command needed by 9572 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9573 # unless we find 'file', for example because we are cross-compiling. 9574 if ( file / ) >/dev/null 2>&1; then 9575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9576 lt_cv_file_magic_cmd='func_win32_libid' 9577 else 9578 # Keep this pattern in sync with the one in func_win32_libid. 9579 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9580 lt_cv_file_magic_cmd='$OBJDUMP -f' 9581 fi 9582 ;; 9583 9584 cegcc*) 9585 # use the weaker test based on 'objdump'. See mingw*. 9586 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9587 lt_cv_file_magic_cmd='$OBJDUMP -f' 9588 ;; 9589 9590 darwin* | rhapsody*) 9591 lt_cv_deplibs_check_method=pass_all 9592 ;; 9593 9594 freebsd* | dragonfly* | midnightbsd*) 9595 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9596 case $host_cpu in 9597 i*86 ) 9598 # Not sure whether the presence of OpenBSD here was a mistake. 9599 # Let's accept both of them until this is cleared up. 9600 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9601 lt_cv_file_magic_cmd=$FILECMD 9602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9603 ;; 9604 esac 9605 else 9606 lt_cv_deplibs_check_method=pass_all 9607 fi 9608 ;; 9609 9610 haiku*) 9611 lt_cv_deplibs_check_method=pass_all 9612 ;; 9613 9614 hpux10.20* | hpux11*) 9615 lt_cv_file_magic_cmd=$FILECMD 9616 case $host_cpu in 9617 ia64*) 9618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9620 ;; 9621 hppa*64*) 9622 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]' 9623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9624 ;; 9625 *) 9626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9627 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9628 ;; 9629 esac 9630 ;; 9631 9632 interix[3-9]*) 9633 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9635 ;; 9636 9637 irix5* | irix6* | nonstopux*) 9638 case $LD in 9639 *-32|*"-32 ") libmagic=32-bit;; 9640 *-n32|*"-n32 ") libmagic=N32;; 9641 *-64|*"-64 ") libmagic=64-bit;; 9642 *) libmagic=never-match;; 9643 esac 9644 lt_cv_deplibs_check_method=pass_all 9645 ;; 9646 9647 # This must be glibc/ELF. 9648 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9649 lt_cv_deplibs_check_method=pass_all 9650 ;; 9651 9652 netbsd* | netbsdelf*-gnu) 9653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9655 else 9656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9657 fi 9658 ;; 9659 9660 newos6*) 9661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9662 lt_cv_file_magic_cmd=$FILECMD 9663 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9664 ;; 9665 9666 *nto* | *qnx*) 9667 lt_cv_deplibs_check_method=pass_all 9668 ;; 9669 9670 openbsd* | bitrig*) 9671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9673 else 9674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9675 fi 9676 ;; 9677 9678 osf3* | osf4* | osf5*) 9679 lt_cv_deplibs_check_method=pass_all 9680 ;; 9681 9682 rdos*) 9683 lt_cv_deplibs_check_method=pass_all 9684 ;; 9685 9686 solaris*) 9687 lt_cv_deplibs_check_method=pass_all 9688 ;; 9689 9690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9691 lt_cv_deplibs_check_method=pass_all 9692 ;; 9693 9694 sysv4 | sysv4.3*) 9695 case $host_vendor in 9696 motorola) 9697 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]' 9698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9699 ;; 9700 ncr) 9701 lt_cv_deplibs_check_method=pass_all 9702 ;; 9703 sequent) 9704 lt_cv_file_magic_cmd='/bin/file' 9705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9706 ;; 9707 sni) 9708 lt_cv_file_magic_cmd='/bin/file' 9709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9710 lt_cv_file_magic_test_file=/lib/libc.so 9711 ;; 9712 siemens) 9713 lt_cv_deplibs_check_method=pass_all 9714 ;; 9715 pc) 9716 lt_cv_deplibs_check_method=pass_all 9717 ;; 9718 esac 9719 ;; 9720 9721 tpf*) 9722 lt_cv_deplibs_check_method=pass_all 9723 ;; 9724 os2*) 9725 lt_cv_deplibs_check_method=pass_all 9726 ;; 9727 esac 9728 9729 fi 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9731 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 9732 9733 file_magic_glob= 9734 want_nocaseglob=no 9735 if test "$build" = "$host"; then 9736 case $host_os in 9737 mingw* | pw32*) 9738 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9739 want_nocaseglob=yes 9740 else 9741 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9742 fi 9743 ;; 9744 esac 9745 fi 9746 9747 file_magic_cmd=$lt_cv_file_magic_cmd 9748 deplibs_check_method=$lt_cv_deplibs_check_method 9749 test -z "$deplibs_check_method" && deplibs_check_method=unknown 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 if test -n "$ac_tool_prefix"; then 9773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9774 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9776 printf %s "checking for $ac_word... " >&6; } 9777 if test ${ac_cv_prog_DLLTOOL+y} 9778 then : 9779 printf %s "(cached) " >&6 9780 else $as_nop 9781 if test -n "$DLLTOOL"; then 9782 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9783 else 9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9785 for as_dir in $PATH 9786 do 9787 IFS=$as_save_IFS 9788 case $as_dir in #((( 9789 '') as_dir=./ ;; 9790 */) ;; 9791 *) as_dir=$as_dir/ ;; 9792 esac 9793 for ac_exec_ext in '' $ac_executable_extensions; do 9794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9795 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9797 break 2 9798 fi 9799 done 9800 done 9801 IFS=$as_save_IFS 9802 9803 fi 9804 fi 9805 DLLTOOL=$ac_cv_prog_DLLTOOL 9806 if test -n "$DLLTOOL"; then 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9808 printf "%s\n" "$DLLTOOL" >&6; } 9809 else 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9811 printf "%s\n" "no" >&6; } 9812 fi 9813 9814 9815 fi 9816 if test -z "$ac_cv_prog_DLLTOOL"; then 9817 ac_ct_DLLTOOL=$DLLTOOL 9818 # Extract the first word of "dlltool", so it can be a program name with args. 9819 set dummy dlltool; ac_word=$2 9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9821 printf %s "checking for $ac_word... " >&6; } 9822 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9823 then : 9824 printf %s "(cached) " >&6 9825 else $as_nop 9826 if test -n "$ac_ct_DLLTOOL"; then 9827 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9828 else 9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9830 for as_dir in $PATH 9831 do 9832 IFS=$as_save_IFS 9833 case $as_dir in #((( 9834 '') as_dir=./ ;; 9835 */) ;; 9836 *) as_dir=$as_dir/ ;; 9837 esac 9838 for ac_exec_ext in '' $ac_executable_extensions; do 9839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9840 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9842 break 2 9843 fi 9844 done 9845 done 9846 IFS=$as_save_IFS 9847 9848 fi 9849 fi 9850 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9851 if test -n "$ac_ct_DLLTOOL"; then 9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9853 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9854 else 9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9856 printf "%s\n" "no" >&6; } 9857 fi 9858 9859 if test "x$ac_ct_DLLTOOL" = x; then 9860 DLLTOOL="false" 9861 else 9862 case $cross_compiling:$ac_tool_warned in 9863 yes:) 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9866 ac_tool_warned=yes ;; 9867 esac 9868 DLLTOOL=$ac_ct_DLLTOOL 9869 fi 9870 else 9871 DLLTOOL="$ac_cv_prog_DLLTOOL" 9872 fi 9873 9874 test -z "$DLLTOOL" && DLLTOOL=dlltool 9875 9876 9877 9878 9879 9880 9881 9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9883 printf %s "checking how to associate runtime and link libraries... " >&6; } 9884 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 9885 then : 9886 printf %s "(cached) " >&6 9887 else $as_nop 9888 lt_cv_sharedlib_from_linklib_cmd='unknown' 9889 9890 case $host_os in 9891 cygwin* | mingw* | pw32* | cegcc*) 9892 # two different shell functions defined in ltmain.sh; 9893 # decide which one to use based on capabilities of $DLLTOOL 9894 case `$DLLTOOL --help 2>&1` in 9895 *--identify-strict*) 9896 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9897 ;; 9898 *) 9899 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9900 ;; 9901 esac 9902 ;; 9903 *) 9904 # fallback: assume linklib IS sharedlib 9905 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9906 ;; 9907 esac 9908 9909 fi 9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9911 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9912 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9913 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9914 9915 9916 9917 9918 9919 9920 9921 if test -n "$ac_tool_prefix"; then 9922 for ac_prog in ar 9923 do 9924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9927 printf %s "checking for $ac_word... " >&6; } 9928 if test ${ac_cv_prog_AR+y} 9929 then : 9930 printf %s "(cached) " >&6 9931 else $as_nop 9932 if test -n "$AR"; then 9933 ac_cv_prog_AR="$AR" # Let the user override the test. 9934 else 9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9936 for as_dir in $PATH 9937 do 9938 IFS=$as_save_IFS 9939 case $as_dir in #((( 9940 '') as_dir=./ ;; 9941 */) ;; 9942 *) as_dir=$as_dir/ ;; 9943 esac 9944 for ac_exec_ext in '' $ac_executable_extensions; do 9945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9946 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9948 break 2 9949 fi 9950 done 9951 done 9952 IFS=$as_save_IFS 9953 9954 fi 9955 fi 9956 AR=$ac_cv_prog_AR 9957 if test -n "$AR"; then 9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9959 printf "%s\n" "$AR" >&6; } 9960 else 9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9962 printf "%s\n" "no" >&6; } 9963 fi 9964 9965 9966 test -n "$AR" && break 9967 done 9968 fi 9969 if test -z "$AR"; then 9970 ac_ct_AR=$AR 9971 for ac_prog in ar 9972 do 9973 # Extract the first word of "$ac_prog", so it can be a program name with args. 9974 set dummy $ac_prog; ac_word=$2 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9976 printf %s "checking for $ac_word... " >&6; } 9977 if test ${ac_cv_prog_ac_ct_AR+y} 9978 then : 9979 printf %s "(cached) " >&6 9980 else $as_nop 9981 if test -n "$ac_ct_AR"; then 9982 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9983 else 9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9985 for as_dir in $PATH 9986 do 9987 IFS=$as_save_IFS 9988 case $as_dir in #((( 9989 '') as_dir=./ ;; 9990 */) ;; 9991 *) as_dir=$as_dir/ ;; 9992 esac 9993 for ac_exec_ext in '' $ac_executable_extensions; do 9994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9995 ac_cv_prog_ac_ct_AR="$ac_prog" 9996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9997 break 2 9998 fi 9999 done 10000 done 10001 IFS=$as_save_IFS 10002 10003 fi 10004 fi 10005 ac_ct_AR=$ac_cv_prog_ac_ct_AR 10006 if test -n "$ac_ct_AR"; then 10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10008 printf "%s\n" "$ac_ct_AR" >&6; } 10009 else 10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10011 printf "%s\n" "no" >&6; } 10012 fi 10013 10014 10015 test -n "$ac_ct_AR" && break 10016 done 10017 10018 if test "x$ac_ct_AR" = x; then 10019 AR="false" 10020 else 10021 case $cross_compiling:$ac_tool_warned in 10022 yes:) 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10025 ac_tool_warned=yes ;; 10026 esac 10027 AR=$ac_ct_AR 10028 fi 10029 fi 10030 10031 : ${AR=ar} 10032 10033 10034 10035 10036 10037 10038 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 10039 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 10040 # higher priority because thats what people were doing historically (setting 10041 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 10042 # variable obsoleted/removed. 10043 10044 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 10045 lt_ar_flags=$AR_FLAGS 10046 10047 10048 10049 10050 10051 10052 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 10053 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 10054 10055 10056 10057 10058 10059 10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10061 printf %s "checking for archiver @FILE support... " >&6; } 10062 if test ${lt_cv_ar_at_file+y} 10063 then : 10064 printf %s "(cached) " >&6 10065 else $as_nop 10066 lt_cv_ar_at_file=no 10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10068 /* end confdefs.h. */ 10069 10070 int main(void) 10071 { 10072 10073 return 0; 10074 } 10075 _ACEOF 10076 if ac_fn_c_try_compile "$LINENO" 10077 then : 10078 echo conftest.$ac_objext > conftest.lst 10079 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10081 (eval $lt_ar_try) 2>&5 10082 ac_status=$? 10083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10084 test $ac_status = 0; } 10085 if test 0 -eq "$ac_status"; then 10086 # Ensure the archiver fails upon bogus file names. 10087 rm -f conftest.$ac_objext libconftest.a 10088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10089 (eval $lt_ar_try) 2>&5 10090 ac_status=$? 10091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10092 test $ac_status = 0; } 10093 if test 0 -ne "$ac_status"; then 10094 lt_cv_ar_at_file=@ 10095 fi 10096 fi 10097 rm -f conftest.* libconftest.a 10098 10099 fi 10100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10101 10102 fi 10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10104 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 10105 10106 if test no = "$lt_cv_ar_at_file"; then 10107 archiver_list_spec= 10108 else 10109 archiver_list_spec=$lt_cv_ar_at_file 10110 fi 10111 10112 10113 10114 10115 10116 10117 10118 if test -n "$ac_tool_prefix"; then 10119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10120 set dummy ${ac_tool_prefix}strip; ac_word=$2 10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10122 printf %s "checking for $ac_word... " >&6; } 10123 if test ${ac_cv_prog_STRIP+y} 10124 then : 10125 printf %s "(cached) " >&6 10126 else $as_nop 10127 if test -n "$STRIP"; then 10128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10129 else 10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10131 for as_dir in $PATH 10132 do 10133 IFS=$as_save_IFS 10134 case $as_dir in #((( 10135 '') as_dir=./ ;; 10136 */) ;; 10137 *) as_dir=$as_dir/ ;; 10138 esac 10139 for ac_exec_ext in '' $ac_executable_extensions; do 10140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10141 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10143 break 2 10144 fi 10145 done 10146 done 10147 IFS=$as_save_IFS 10148 10149 fi 10150 fi 10151 STRIP=$ac_cv_prog_STRIP 10152 if test -n "$STRIP"; then 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10154 printf "%s\n" "$STRIP" >&6; } 10155 else 10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10157 printf "%s\n" "no" >&6; } 10158 fi 10159 10160 10161 fi 10162 if test -z "$ac_cv_prog_STRIP"; then 10163 ac_ct_STRIP=$STRIP 10164 # Extract the first word of "strip", so it can be a program name with args. 10165 set dummy strip; ac_word=$2 10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10167 printf %s "checking for $ac_word... " >&6; } 10168 if test ${ac_cv_prog_ac_ct_STRIP+y} 10169 then : 10170 printf %s "(cached) " >&6 10171 else $as_nop 10172 if test -n "$ac_ct_STRIP"; then 10173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10174 else 10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10176 for as_dir in $PATH 10177 do 10178 IFS=$as_save_IFS 10179 case $as_dir in #((( 10180 '') as_dir=./ ;; 10181 */) ;; 10182 *) as_dir=$as_dir/ ;; 10183 esac 10184 for ac_exec_ext in '' $ac_executable_extensions; do 10185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10186 ac_cv_prog_ac_ct_STRIP="strip" 10187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10188 break 2 10189 fi 10190 done 10191 done 10192 IFS=$as_save_IFS 10193 10194 fi 10195 fi 10196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10197 if test -n "$ac_ct_STRIP"; then 10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10199 printf "%s\n" "$ac_ct_STRIP" >&6; } 10200 else 10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10202 printf "%s\n" "no" >&6; } 10203 fi 10204 10205 if test "x$ac_ct_STRIP" = x; then 10206 STRIP=":" 10207 else 10208 case $cross_compiling:$ac_tool_warned in 10209 yes:) 10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10211 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10212 ac_tool_warned=yes ;; 10213 esac 10214 STRIP=$ac_ct_STRIP 10215 fi 10216 else 10217 STRIP="$ac_cv_prog_STRIP" 10218 fi 10219 10220 test -z "$STRIP" && STRIP=: 10221 10222 10223 10224 10225 10226 10227 if test -n "$ac_tool_prefix"; then 10228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10231 printf %s "checking for $ac_word... " >&6; } 10232 if test ${ac_cv_prog_RANLIB+y} 10233 then : 10234 printf %s "(cached) " >&6 10235 else $as_nop 10236 if test -n "$RANLIB"; then 10237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10238 else 10239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10240 for as_dir in $PATH 10241 do 10242 IFS=$as_save_IFS 10243 case $as_dir in #((( 10244 '') as_dir=./ ;; 10245 */) ;; 10246 *) as_dir=$as_dir/ ;; 10247 esac 10248 for ac_exec_ext in '' $ac_executable_extensions; do 10249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10252 break 2 10253 fi 10254 done 10255 done 10256 IFS=$as_save_IFS 10257 10258 fi 10259 fi 10260 RANLIB=$ac_cv_prog_RANLIB 10261 if test -n "$RANLIB"; then 10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10263 printf "%s\n" "$RANLIB" >&6; } 10264 else 10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10266 printf "%s\n" "no" >&6; } 10267 fi 10268 10269 10270 fi 10271 if test -z "$ac_cv_prog_RANLIB"; then 10272 ac_ct_RANLIB=$RANLIB 10273 # Extract the first word of "ranlib", so it can be a program name with args. 10274 set dummy ranlib; ac_word=$2 10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10276 printf %s "checking for $ac_word... " >&6; } 10277 if test ${ac_cv_prog_ac_ct_RANLIB+y} 10278 then : 10279 printf %s "(cached) " >&6 10280 else $as_nop 10281 if test -n "$ac_ct_RANLIB"; then 10282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10283 else 10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10285 for as_dir in $PATH 10286 do 10287 IFS=$as_save_IFS 10288 case $as_dir in #((( 10289 '') as_dir=./ ;; 10290 */) ;; 10291 *) as_dir=$as_dir/ ;; 10292 esac 10293 for ac_exec_ext in '' $ac_executable_extensions; do 10294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10295 ac_cv_prog_ac_ct_RANLIB="ranlib" 10296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10297 break 2 10298 fi 10299 done 10300 done 10301 IFS=$as_save_IFS 10302 10303 fi 10304 fi 10305 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10306 if test -n "$ac_ct_RANLIB"; then 10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10308 printf "%s\n" "$ac_ct_RANLIB" >&6; } 10309 else 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10311 printf "%s\n" "no" >&6; } 10312 fi 10313 10314 if test "x$ac_ct_RANLIB" = x; then 10315 RANLIB=":" 10316 else 10317 case $cross_compiling:$ac_tool_warned in 10318 yes:) 10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10320 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10321 ac_tool_warned=yes ;; 10322 esac 10323 RANLIB=$ac_ct_RANLIB 10324 fi 10325 else 10326 RANLIB="$ac_cv_prog_RANLIB" 10327 fi 10328 10329 test -z "$RANLIB" && RANLIB=: 10330 10331 10332 10333 10334 10335 10336 # Determine commands to create old-style static archives. 10337 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10338 old_postinstall_cmds='chmod 644 $oldlib' 10339 old_postuninstall_cmds= 10340 10341 if test -n "$RANLIB"; then 10342 case $host_os in 10343 bitrig* | openbsd*) 10344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10345 ;; 10346 *) 10347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10348 ;; 10349 esac 10350 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10351 fi 10352 10353 case $host_os in 10354 darwin*) 10355 lock_old_archive_extraction=yes ;; 10356 *) 10357 lock_old_archive_extraction=no ;; 10358 esac 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 # If no C compiler was specified, use CC. 10399 LTCC=${LTCC-"$CC"} 10400 10401 # If no C compiler flags were specified, use CFLAGS. 10402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10403 10404 # Allow CC to be a program name with arguments. 10405 compiler=$CC 10406 10407 10408 # Check for command to grab the raw symbol name followed by C symbol from nm. 10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10410 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 10411 if test ${lt_cv_sys_global_symbol_pipe+y} 10412 then : 10413 printf %s "(cached) " >&6 10414 else $as_nop 10415 10416 # These are sane defaults that work on at least a few old systems. 10417 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 10418 10419 # Character class describing NM global symbol codes. 10420 symcode='[BCDEGRST]' 10421 10422 # Regexp to match symbols that can be accessed directly from C. 10423 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10424 10425 # Define system-specific variables. 10426 case $host_os in 10427 aix*) 10428 symcode='[BCDT]' 10429 ;; 10430 cygwin* | mingw* | pw32* | cegcc*) 10431 symcode='[ABCDGISTW]' 10432 ;; 10433 hpux*) 10434 if test ia64 = "$host_cpu"; then 10435 symcode='[ABCDEGRST]' 10436 fi 10437 ;; 10438 irix* | nonstopux*) 10439 symcode='[BCDEGRST]' 10440 ;; 10441 osf*) 10442 symcode='[BCDEGQRST]' 10443 ;; 10444 solaris*) 10445 symcode='[BDRT]' 10446 ;; 10447 sco3.2v5*) 10448 symcode='[DT]' 10449 ;; 10450 sysv4.2uw2*) 10451 symcode='[DT]' 10452 ;; 10453 sysv5* | sco5v6* | unixware* | OpenUNIX*) 10454 symcode='[ABDT]' 10455 ;; 10456 sysv4) 10457 symcode='[DFNSTU]' 10458 ;; 10459 esac 10460 10461 # If we're using GNU nm, then use its standard symbol codes. 10462 case `$NM -V 2>&1` in 10463 *GNU* | *'with BFD'*) 10464 symcode='[ABCDGIRSTW]' ;; 10465 esac 10466 10467 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10468 # Gets list of data symbols to import. 10469 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 10470 # Adjust the below global symbol transforms to fixup imported variables. 10471 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10472 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10473 lt_c_name_lib_hook="\ 10474 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10475 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10476 else 10477 # Disable hooks by default. 10478 lt_cv_sys_global_symbol_to_import= 10479 lt_cdecl_hook= 10480 lt_c_name_hook= 10481 lt_c_name_lib_hook= 10482 fi 10483 10484 # Transform an extracted symbol line into a proper C declaration. 10485 # Some systems (esp. on ia64) link data and code symbols differently, 10486 # so use this general approach. 10487 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 10488 $lt_cdecl_hook\ 10489 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10490 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10491 10492 # Transform an extracted symbol line into symbol name and symbol address 10493 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 10494 $lt_c_name_hook\ 10495 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10496 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10497 10498 # Transform an extracted symbol line into symbol name with lib prefix and 10499 # symbol address. 10500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 10501 $lt_c_name_lib_hook\ 10502 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10503 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10504 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10505 10506 # Handle CRLF in mingw tool chain 10507 opt_cr= 10508 case $build_os in 10509 mingw*) 10510 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10511 ;; 10512 esac 10513 10514 # Try without a prefix underscore, then with it. 10515 for ac_symprfx in "" "_"; do 10516 10517 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10518 symxfrm="\\1 $ac_symprfx\\2 \\2" 10519 10520 # Write the raw and C identifiers. 10521 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10522 # Fake it for dumpbin and say T for any non-static function, 10523 # D for any global variable and I for any imported variable. 10524 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 10525 # which start with @ or ?. 10526 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10527 " {last_section=section; section=\$ 3};"\ 10528 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10529 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10530 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10531 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10532 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10533 " \$ 0!~/External *\|/{next};"\ 10534 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10535 " {if(hide[section]) next};"\ 10536 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10537 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10538 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10539 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10540 " ' prfx=^$ac_symprfx" 10541 else 10542 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10543 fi 10544 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 10545 10546 # Check to see that the pipe works correctly. 10547 pipe_works=no 10548 10549 rm -f conftest* 10550 cat > conftest.$ac_ext <<_LT_EOF 10551 #ifdef __cplusplus 10552 extern "C" { 10553 #endif 10554 char nm_test_var; 10555 void nm_test_func(void); 10556 void nm_test_func(void){} 10557 #ifdef __cplusplus 10558 } 10559 #endif 10560 int main(){nm_test_var='a';nm_test_func();return(0);} 10561 _LT_EOF 10562 10563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10564 (eval $ac_compile) 2>&5 10565 ac_status=$? 10566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10567 test $ac_status = 0; }; then 10568 # Now try to grab the symbols. 10569 nlist=conftest.nm 10570 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 10571 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 10572 # Try sorting and uniquifying the output. 10573 if sort "$nlist" | uniq > "$nlist"T; then 10574 mv -f "$nlist"T "$nlist" 10575 else 10576 rm -f "$nlist"T 10577 fi 10578 10579 # Make sure that we snagged all the symbols we need. 10580 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10581 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10582 cat <<_LT_EOF > conftest.$ac_ext 10583 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10584 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10585 /* DATA imports from DLLs on WIN32 can't be const, because runtime 10586 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10587 # define LT_DLSYM_CONST 10588 #elif defined __osf__ 10589 /* This system does not cope well with relocations in const data. */ 10590 # define LT_DLSYM_CONST 10591 #else 10592 # define LT_DLSYM_CONST const 10593 #endif 10594 10595 #ifdef __cplusplus 10596 extern "C" { 10597 #endif 10598 10599 _LT_EOF 10600 # Now generate the symbol file. 10601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10602 10603 cat <<_LT_EOF >> conftest.$ac_ext 10604 10605 /* The mapping between symbol names and symbols. */ 10606 LT_DLSYM_CONST struct { 10607 const char *name; 10608 void *address; 10609 } 10610 lt__PROGRAM__LTX_preloaded_symbols[] = 10611 { 10612 { "@PROGRAM@", (void *) 0 }, 10613 _LT_EOF 10614 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10615 cat <<\_LT_EOF >> conftest.$ac_ext 10616 {0, (void *) 0} 10617 }; 10618 10619 /* This works around a problem in FreeBSD linker */ 10620 #ifdef FREEBSD_WORKAROUND 10621 static const void *lt_preloaded_setup() { 10622 return lt__PROGRAM__LTX_preloaded_symbols; 10623 } 10624 #endif 10625 10626 #ifdef __cplusplus 10627 } 10628 #endif 10629 _LT_EOF 10630 # Now try linking the two files. 10631 mv conftest.$ac_objext conftstm.$ac_objext 10632 lt_globsym_save_LIBS=$LIBS 10633 lt_globsym_save_CFLAGS=$CFLAGS 10634 LIBS=conftstm.$ac_objext 10635 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10637 (eval $ac_link) 2>&5 10638 ac_status=$? 10639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10640 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10641 pipe_works=yes 10642 fi 10643 LIBS=$lt_globsym_save_LIBS 10644 CFLAGS=$lt_globsym_save_CFLAGS 10645 else 10646 echo "cannot find nm_test_func in $nlist" >&5 10647 fi 10648 else 10649 echo "cannot find nm_test_var in $nlist" >&5 10650 fi 10651 else 10652 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10653 fi 10654 else 10655 echo "$progname: failed program was:" >&5 10656 cat conftest.$ac_ext >&5 10657 fi 10658 rm -rf conftest* conftst* 10659 10660 # Do not use the global_symbol_pipe unless it works. 10661 if test yes = "$pipe_works"; then 10662 break 10663 else 10664 lt_cv_sys_global_symbol_pipe= 10665 fi 10666 done 10667 10668 fi 10669 10670 if test -z "$lt_cv_sys_global_symbol_pipe"; then 10671 lt_cv_sys_global_symbol_to_cdecl= 10672 fi 10673 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10675 printf "%s\n" "failed" >&6; } 10676 else 10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10678 printf "%s\n" "ok" >&6; } 10679 fi 10680 10681 # Response file support. 10682 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10683 nm_file_list_spec='@' 10684 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10685 nm_file_list_spec='@' 10686 fi 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10725 printf %s "checking for sysroot... " >&6; } 10726 10727 # Check whether --with-sysroot was given. 10728 if test ${with_sysroot+y} 10729 then : 10730 withval=$with_sysroot; 10731 else $as_nop 10732 with_sysroot=no 10733 fi 10734 10735 10736 lt_sysroot= 10737 case $with_sysroot in #( 10738 yes) 10739 if test yes = "$GCC"; then 10740 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10741 fi 10742 ;; #( 10743 /*) 10744 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 10745 ;; #( 10746 no|'') 10747 ;; #( 10748 *) 10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10750 printf "%s\n" "$with_sysroot" >&6; } 10751 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10752 ;; 10753 esac 10754 10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10756 printf "%s\n" "${lt_sysroot:-no}" >&6; } 10757 10758 10759 10760 10761 10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10763 printf %s "checking for a working dd... " >&6; } 10764 if test ${ac_cv_path_lt_DD+y} 10765 then : 10766 printf %s "(cached) " >&6 10767 else $as_nop 10768 printf 0123456789abcdef0123456789abcdef >conftest.i 10769 cat conftest.i conftest.i >conftest2.i 10770 : ${lt_DD:=$DD} 10771 if test -z "$lt_DD"; then 10772 ac_path_lt_DD_found=false 10773 # Loop through the user's path and test for each of PROGNAME-LIST 10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10775 for as_dir in $PATH 10776 do 10777 IFS=$as_save_IFS 10778 case $as_dir in #((( 10779 '') as_dir=./ ;; 10780 */) ;; 10781 *) as_dir=$as_dir/ ;; 10782 esac 10783 for ac_prog in dd 10784 do 10785 for ac_exec_ext in '' $ac_executable_extensions; do 10786 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 10787 as_fn_executable_p "$ac_path_lt_DD" || continue 10788 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10789 cmp -s conftest.i conftest.out \ 10790 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10791 fi 10792 $ac_path_lt_DD_found && break 3 10793 done 10794 done 10795 done 10796 IFS=$as_save_IFS 10797 if test -z "$ac_cv_path_lt_DD"; then 10798 : 10799 fi 10800 else 10801 ac_cv_path_lt_DD=$lt_DD 10802 fi 10803 10804 rm -f conftest.i conftest2.i conftest.out 10805 fi 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10807 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 10808 10809 10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10811 printf %s "checking how to truncate binary pipes... " >&6; } 10812 if test ${lt_cv_truncate_bin+y} 10813 then : 10814 printf %s "(cached) " >&6 10815 else $as_nop 10816 printf 0123456789abcdef0123456789abcdef >conftest.i 10817 cat conftest.i conftest.i >conftest2.i 10818 lt_cv_truncate_bin= 10819 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10820 cmp -s conftest.i conftest.out \ 10821 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10822 fi 10823 rm -f conftest.i conftest2.i conftest.out 10824 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10825 fi 10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10827 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 10828 10829 10830 10831 10832 10833 10834 10835 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10836 func_cc_basename () 10837 { 10838 for cc_temp in $*""; do 10839 case $cc_temp in 10840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10842 \-*) ;; 10843 *) break;; 10844 esac 10845 done 10846 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10847 } 10848 10849 # Check whether --enable-libtool-lock was given. 10850 if test ${enable_libtool_lock+y} 10851 then : 10852 enableval=$enable_libtool_lock; 10853 fi 10854 10855 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10856 10857 # Some flags need to be propagated to the compiler or linker for good 10858 # libtool support. 10859 case $host in 10860 ia64-*-hpux*) 10861 # Find out what ABI is being produced by ac_compile, and set mode 10862 # options accordingly. 10863 echo 'int i;' > conftest.$ac_ext 10864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10865 (eval $ac_compile) 2>&5 10866 ac_status=$? 10867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10868 test $ac_status = 0; }; then 10869 case `$FILECMD conftest.$ac_objext` in 10870 *ELF-32*) 10871 HPUX_IA64_MODE=32 10872 ;; 10873 *ELF-64*) 10874 HPUX_IA64_MODE=64 10875 ;; 10876 esac 10877 fi 10878 rm -rf conftest* 10879 ;; 10880 *-*-irix6*) 10881 # Find out what ABI is being produced by ac_compile, and set linker 10882 # options accordingly. 10883 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10885 (eval $ac_compile) 2>&5 10886 ac_status=$? 10887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10888 test $ac_status = 0; }; then 10889 if test yes = "$lt_cv_prog_gnu_ld"; then 10890 case `$FILECMD conftest.$ac_objext` in 10891 *32-bit*) 10892 LD="${LD-ld} -melf32bsmip" 10893 ;; 10894 *N32*) 10895 LD="${LD-ld} -melf32bmipn32" 10896 ;; 10897 *64-bit*) 10898 LD="${LD-ld} -melf64bmip" 10899 ;; 10900 esac 10901 else 10902 case `$FILECMD conftest.$ac_objext` in 10903 *32-bit*) 10904 LD="${LD-ld} -32" 10905 ;; 10906 *N32*) 10907 LD="${LD-ld} -n32" 10908 ;; 10909 *64-bit*) 10910 LD="${LD-ld} -64" 10911 ;; 10912 esac 10913 fi 10914 fi 10915 rm -rf conftest* 10916 ;; 10917 10918 mips64*-*linux*) 10919 # Find out what ABI is being produced by ac_compile, and set linker 10920 # options accordingly. 10921 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10923 (eval $ac_compile) 2>&5 10924 ac_status=$? 10925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10926 test $ac_status = 0; }; then 10927 emul=elf 10928 case `$FILECMD conftest.$ac_objext` in 10929 *32-bit*) 10930 emul="${emul}32" 10931 ;; 10932 *64-bit*) 10933 emul="${emul}64" 10934 ;; 10935 esac 10936 case `$FILECMD conftest.$ac_objext` in 10937 *MSB*) 10938 emul="${emul}btsmip" 10939 ;; 10940 *LSB*) 10941 emul="${emul}ltsmip" 10942 ;; 10943 esac 10944 case `$FILECMD conftest.$ac_objext` in 10945 *N32*) 10946 emul="${emul}n32" 10947 ;; 10948 esac 10949 LD="${LD-ld} -m $emul" 10950 fi 10951 rm -rf conftest* 10952 ;; 10953 10954 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10955 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10956 # Find out what ABI is being produced by ac_compile, and set linker 10957 # options accordingly. Note that the listed cases only cover the 10958 # situations where additional linker options are needed (such as when 10959 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10960 # vice versa); the common cases where no linker options are needed do 10961 # not appear in the list. 10962 echo 'int i;' > conftest.$ac_ext 10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10964 (eval $ac_compile) 2>&5 10965 ac_status=$? 10966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10967 test $ac_status = 0; }; then 10968 case `$FILECMD conftest.o` in 10969 *32-bit*) 10970 case $host in 10971 x86_64-*kfreebsd*-gnu) 10972 LD="${LD-ld} -m elf_i386_fbsd" 10973 ;; 10974 x86_64-*linux*) 10975 case `$FILECMD conftest.o` in 10976 *x86-64*) 10977 LD="${LD-ld} -m elf32_x86_64" 10978 ;; 10979 *) 10980 LD="${LD-ld} -m elf_i386" 10981 ;; 10982 esac 10983 ;; 10984 powerpc64le-*linux*) 10985 LD="${LD-ld} -m elf32lppclinux" 10986 ;; 10987 powerpc64-*linux*) 10988 LD="${LD-ld} -m elf32ppclinux" 10989 ;; 10990 s390x-*linux*) 10991 LD="${LD-ld} -m elf_s390" 10992 ;; 10993 sparc64-*linux*) 10994 LD="${LD-ld} -m elf32_sparc" 10995 ;; 10996 esac 10997 ;; 10998 *64-bit*) 10999 case $host in 11000 x86_64-*kfreebsd*-gnu) 11001 LD="${LD-ld} -m elf_x86_64_fbsd" 11002 ;; 11003 x86_64-*linux*) 11004 LD="${LD-ld} -m elf_x86_64" 11005 ;; 11006 powerpcle-*linux*) 11007 LD="${LD-ld} -m elf64lppc" 11008 ;; 11009 powerpc-*linux*) 11010 LD="${LD-ld} -m elf64ppc" 11011 ;; 11012 s390*-*linux*|s390*-*tpf*) 11013 LD="${LD-ld} -m elf64_s390" 11014 ;; 11015 sparc*-*linux*) 11016 LD="${LD-ld} -m elf64_sparc" 11017 ;; 11018 esac 11019 ;; 11020 esac 11021 fi 11022 rm -rf conftest* 11023 ;; 11024 11025 *-*-sco3.2v5*) 11026 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11027 SAVE_CFLAGS=$CFLAGS 11028 CFLAGS="$CFLAGS -belf" 11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11030 printf %s "checking whether the C compiler needs -belf... " >&6; } 11031 if test ${lt_cv_cc_needs_belf+y} 11032 then : 11033 printf %s "(cached) " >&6 11034 else $as_nop 11035 ac_ext=c 11036 ac_cpp='$CPP $CPPFLAGS' 11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11040 11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042 /* end confdefs.h. */ 11043 11044 int main(void) 11045 { 11046 11047 return 0; 11048 } 11049 _ACEOF 11050 if ac_fn_c_try_link "$LINENO" 11051 then : 11052 lt_cv_cc_needs_belf=yes 11053 else $as_nop 11054 lt_cv_cc_needs_belf=no 11055 fi 11056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11057 conftest$ac_exeext conftest.$ac_ext 11058 ac_ext=c 11059 ac_cpp='$CPP $CPPFLAGS' 11060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11062 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11063 11064 fi 11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11066 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 11067 if test yes != "$lt_cv_cc_needs_belf"; then 11068 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11069 CFLAGS=$SAVE_CFLAGS 11070 fi 11071 ;; 11072 *-*solaris*) 11073 # Find out what ABI is being produced by ac_compile, and set linker 11074 # options accordingly. 11075 echo 'int i;' > conftest.$ac_ext 11076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11077 (eval $ac_compile) 2>&5 11078 ac_status=$? 11079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11080 test $ac_status = 0; }; then 11081 case `$FILECMD conftest.o` in 11082 *64-bit*) 11083 case $lt_cv_prog_gnu_ld in 11084 yes*) 11085 case $host in 11086 i?86-*-solaris*|x86_64-*-solaris*) 11087 LD="${LD-ld} -m elf_x86_64" 11088 ;; 11089 sparc*-*-solaris*) 11090 LD="${LD-ld} -m elf64_sparc" 11091 ;; 11092 esac 11093 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11094 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11095 LD=${LD-ld}_sol2 11096 fi 11097 ;; 11098 *) 11099 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11100 LD="${LD-ld} -64" 11101 fi 11102 ;; 11103 esac 11104 ;; 11105 esac 11106 fi 11107 rm -rf conftest* 11108 ;; 11109 esac 11110 11111 need_locks=$enable_libtool_lock 11112 11113 if test -n "$ac_tool_prefix"; then 11114 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11115 set dummy ${ac_tool_prefix}mt; ac_word=$2 11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11117 printf %s "checking for $ac_word... " >&6; } 11118 if test ${ac_cv_prog_MANIFEST_TOOL+y} 11119 then : 11120 printf %s "(cached) " >&6 11121 else $as_nop 11122 if test -n "$MANIFEST_TOOL"; then 11123 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11124 else 11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11126 for as_dir in $PATH 11127 do 11128 IFS=$as_save_IFS 11129 case $as_dir in #((( 11130 '') as_dir=./ ;; 11131 */) ;; 11132 *) as_dir=$as_dir/ ;; 11133 esac 11134 for ac_exec_ext in '' $ac_executable_extensions; do 11135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11136 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11138 break 2 11139 fi 11140 done 11141 done 11142 IFS=$as_save_IFS 11143 11144 fi 11145 fi 11146 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11147 if test -n "$MANIFEST_TOOL"; then 11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11149 printf "%s\n" "$MANIFEST_TOOL" >&6; } 11150 else 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11152 printf "%s\n" "no" >&6; } 11153 fi 11154 11155 11156 fi 11157 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11158 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11159 # Extract the first word of "mt", so it can be a program name with args. 11160 set dummy mt; ac_word=$2 11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11162 printf %s "checking for $ac_word... " >&6; } 11163 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 11164 then : 11165 printf %s "(cached) " >&6 11166 else $as_nop 11167 if test -n "$ac_ct_MANIFEST_TOOL"; then 11168 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11169 else 11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11171 for as_dir in $PATH 11172 do 11173 IFS=$as_save_IFS 11174 case $as_dir in #((( 11175 '') as_dir=./ ;; 11176 */) ;; 11177 *) as_dir=$as_dir/ ;; 11178 esac 11179 for ac_exec_ext in '' $ac_executable_extensions; do 11180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11181 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11183 break 2 11184 fi 11185 done 11186 done 11187 IFS=$as_save_IFS 11188 11189 fi 11190 fi 11191 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11192 if test -n "$ac_ct_MANIFEST_TOOL"; then 11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11194 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 11195 else 11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11197 printf "%s\n" "no" >&6; } 11198 fi 11199 11200 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11201 MANIFEST_TOOL=":" 11202 else 11203 case $cross_compiling:$ac_tool_warned in 11204 yes:) 11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11207 ac_tool_warned=yes ;; 11208 esac 11209 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11210 fi 11211 else 11212 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11213 fi 11214 11215 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11217 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11218 if test ${lt_cv_path_mainfest_tool+y} 11219 then : 11220 printf %s "(cached) " >&6 11221 else $as_nop 11222 lt_cv_path_mainfest_tool=no 11223 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11224 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11225 cat conftest.err >&5 11226 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11227 lt_cv_path_mainfest_tool=yes 11228 fi 11229 rm -f conftest* 11230 fi 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11232 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 11233 if test yes != "$lt_cv_path_mainfest_tool"; then 11234 MANIFEST_TOOL=: 11235 fi 11236 11237 11238 11239 11240 11241 11242 case $host_os in 11243 rhapsody* | darwin*) 11244 if test -n "$ac_tool_prefix"; then 11245 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11246 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11248 printf %s "checking for $ac_word... " >&6; } 11249 if test ${ac_cv_prog_DSYMUTIL+y} 11250 then : 11251 printf %s "(cached) " >&6 11252 else $as_nop 11253 if test -n "$DSYMUTIL"; then 11254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11255 else 11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11257 for as_dir in $PATH 11258 do 11259 IFS=$as_save_IFS 11260 case $as_dir in #((( 11261 '') as_dir=./ ;; 11262 */) ;; 11263 *) as_dir=$as_dir/ ;; 11264 esac 11265 for ac_exec_ext in '' $ac_executable_extensions; do 11266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11267 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11269 break 2 11270 fi 11271 done 11272 done 11273 IFS=$as_save_IFS 11274 11275 fi 11276 fi 11277 DSYMUTIL=$ac_cv_prog_DSYMUTIL 11278 if test -n "$DSYMUTIL"; then 11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11280 printf "%s\n" "$DSYMUTIL" >&6; } 11281 else 11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11283 printf "%s\n" "no" >&6; } 11284 fi 11285 11286 11287 fi 11288 if test -z "$ac_cv_prog_DSYMUTIL"; then 11289 ac_ct_DSYMUTIL=$DSYMUTIL 11290 # Extract the first word of "dsymutil", so it can be a program name with args. 11291 set dummy dsymutil; ac_word=$2 11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11293 printf %s "checking for $ac_word... " >&6; } 11294 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 11295 then : 11296 printf %s "(cached) " >&6 11297 else $as_nop 11298 if test -n "$ac_ct_DSYMUTIL"; then 11299 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11300 else 11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11302 for as_dir in $PATH 11303 do 11304 IFS=$as_save_IFS 11305 case $as_dir in #((( 11306 '') as_dir=./ ;; 11307 */) ;; 11308 *) as_dir=$as_dir/ ;; 11309 esac 11310 for ac_exec_ext in '' $ac_executable_extensions; do 11311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11312 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11314 break 2 11315 fi 11316 done 11317 done 11318 IFS=$as_save_IFS 11319 11320 fi 11321 fi 11322 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11323 if test -n "$ac_ct_DSYMUTIL"; then 11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11325 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 11326 else 11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11328 printf "%s\n" "no" >&6; } 11329 fi 11330 11331 if test "x$ac_ct_DSYMUTIL" = x; then 11332 DSYMUTIL=":" 11333 else 11334 case $cross_compiling:$ac_tool_warned in 11335 yes:) 11336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11338 ac_tool_warned=yes ;; 11339 esac 11340 DSYMUTIL=$ac_ct_DSYMUTIL 11341 fi 11342 else 11343 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11344 fi 11345 11346 if test -n "$ac_tool_prefix"; then 11347 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11348 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11350 printf %s "checking for $ac_word... " >&6; } 11351 if test ${ac_cv_prog_NMEDIT+y} 11352 then : 11353 printf %s "(cached) " >&6 11354 else $as_nop 11355 if test -n "$NMEDIT"; then 11356 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11357 else 11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11359 for as_dir in $PATH 11360 do 11361 IFS=$as_save_IFS 11362 case $as_dir in #((( 11363 '') as_dir=./ ;; 11364 */) ;; 11365 *) as_dir=$as_dir/ ;; 11366 esac 11367 for ac_exec_ext in '' $ac_executable_extensions; do 11368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11369 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11371 break 2 11372 fi 11373 done 11374 done 11375 IFS=$as_save_IFS 11376 11377 fi 11378 fi 11379 NMEDIT=$ac_cv_prog_NMEDIT 11380 if test -n "$NMEDIT"; then 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11382 printf "%s\n" "$NMEDIT" >&6; } 11383 else 11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11385 printf "%s\n" "no" >&6; } 11386 fi 11387 11388 11389 fi 11390 if test -z "$ac_cv_prog_NMEDIT"; then 11391 ac_ct_NMEDIT=$NMEDIT 11392 # Extract the first word of "nmedit", so it can be a program name with args. 11393 set dummy nmedit; ac_word=$2 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11395 printf %s "checking for $ac_word... " >&6; } 11396 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 11397 then : 11398 printf %s "(cached) " >&6 11399 else $as_nop 11400 if test -n "$ac_ct_NMEDIT"; then 11401 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11402 else 11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11404 for as_dir in $PATH 11405 do 11406 IFS=$as_save_IFS 11407 case $as_dir in #((( 11408 '') as_dir=./ ;; 11409 */) ;; 11410 *) as_dir=$as_dir/ ;; 11411 esac 11412 for ac_exec_ext in '' $ac_executable_extensions; do 11413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11414 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11416 break 2 11417 fi 11418 done 11419 done 11420 IFS=$as_save_IFS 11421 11422 fi 11423 fi 11424 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11425 if test -n "$ac_ct_NMEDIT"; then 11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11427 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 11428 else 11429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11430 printf "%s\n" "no" >&6; } 11431 fi 11432 11433 if test "x$ac_ct_NMEDIT" = x; then 11434 NMEDIT=":" 11435 else 11436 case $cross_compiling:$ac_tool_warned in 11437 yes:) 11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11440 ac_tool_warned=yes ;; 11441 esac 11442 NMEDIT=$ac_ct_NMEDIT 11443 fi 11444 else 11445 NMEDIT="$ac_cv_prog_NMEDIT" 11446 fi 11447 11448 if test -n "$ac_tool_prefix"; then 11449 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11450 set dummy ${ac_tool_prefix}lipo; ac_word=$2 11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11452 printf %s "checking for $ac_word... " >&6; } 11453 if test ${ac_cv_prog_LIPO+y} 11454 then : 11455 printf %s "(cached) " >&6 11456 else $as_nop 11457 if test -n "$LIPO"; then 11458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11459 else 11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11461 for as_dir in $PATH 11462 do 11463 IFS=$as_save_IFS 11464 case $as_dir in #((( 11465 '') as_dir=./ ;; 11466 */) ;; 11467 *) as_dir=$as_dir/ ;; 11468 esac 11469 for ac_exec_ext in '' $ac_executable_extensions; do 11470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11471 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11473 break 2 11474 fi 11475 done 11476 done 11477 IFS=$as_save_IFS 11478 11479 fi 11480 fi 11481 LIPO=$ac_cv_prog_LIPO 11482 if test -n "$LIPO"; then 11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11484 printf "%s\n" "$LIPO" >&6; } 11485 else 11486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11487 printf "%s\n" "no" >&6; } 11488 fi 11489 11490 11491 fi 11492 if test -z "$ac_cv_prog_LIPO"; then 11493 ac_ct_LIPO=$LIPO 11494 # Extract the first word of "lipo", so it can be a program name with args. 11495 set dummy lipo; ac_word=$2 11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11497 printf %s "checking for $ac_word... " >&6; } 11498 if test ${ac_cv_prog_ac_ct_LIPO+y} 11499 then : 11500 printf %s "(cached) " >&6 11501 else $as_nop 11502 if test -n "$ac_ct_LIPO"; then 11503 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11504 else 11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11506 for as_dir in $PATH 11507 do 11508 IFS=$as_save_IFS 11509 case $as_dir in #((( 11510 '') as_dir=./ ;; 11511 */) ;; 11512 *) as_dir=$as_dir/ ;; 11513 esac 11514 for ac_exec_ext in '' $ac_executable_extensions; do 11515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11516 ac_cv_prog_ac_ct_LIPO="lipo" 11517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11518 break 2 11519 fi 11520 done 11521 done 11522 IFS=$as_save_IFS 11523 11524 fi 11525 fi 11526 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11527 if test -n "$ac_ct_LIPO"; then 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11529 printf "%s\n" "$ac_ct_LIPO" >&6; } 11530 else 11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11532 printf "%s\n" "no" >&6; } 11533 fi 11534 11535 if test "x$ac_ct_LIPO" = x; then 11536 LIPO=":" 11537 else 11538 case $cross_compiling:$ac_tool_warned in 11539 yes:) 11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11541 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11542 ac_tool_warned=yes ;; 11543 esac 11544 LIPO=$ac_ct_LIPO 11545 fi 11546 else 11547 LIPO="$ac_cv_prog_LIPO" 11548 fi 11549 11550 if test -n "$ac_tool_prefix"; then 11551 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11552 set dummy ${ac_tool_prefix}otool; ac_word=$2 11553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11554 printf %s "checking for $ac_word... " >&6; } 11555 if test ${ac_cv_prog_OTOOL+y} 11556 then : 11557 printf %s "(cached) " >&6 11558 else $as_nop 11559 if test -n "$OTOOL"; then 11560 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11561 else 11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11563 for as_dir in $PATH 11564 do 11565 IFS=$as_save_IFS 11566 case $as_dir in #((( 11567 '') as_dir=./ ;; 11568 */) ;; 11569 *) as_dir=$as_dir/ ;; 11570 esac 11571 for ac_exec_ext in '' $ac_executable_extensions; do 11572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11573 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11575 break 2 11576 fi 11577 done 11578 done 11579 IFS=$as_save_IFS 11580 11581 fi 11582 fi 11583 OTOOL=$ac_cv_prog_OTOOL 11584 if test -n "$OTOOL"; then 11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11586 printf "%s\n" "$OTOOL" >&6; } 11587 else 11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11589 printf "%s\n" "no" >&6; } 11590 fi 11591 11592 11593 fi 11594 if test -z "$ac_cv_prog_OTOOL"; then 11595 ac_ct_OTOOL=$OTOOL 11596 # Extract the first word of "otool", so it can be a program name with args. 11597 set dummy otool; ac_word=$2 11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11599 printf %s "checking for $ac_word... " >&6; } 11600 if test ${ac_cv_prog_ac_ct_OTOOL+y} 11601 then : 11602 printf %s "(cached) " >&6 11603 else $as_nop 11604 if test -n "$ac_ct_OTOOL"; then 11605 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11606 else 11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11608 for as_dir in $PATH 11609 do 11610 IFS=$as_save_IFS 11611 case $as_dir in #((( 11612 '') as_dir=./ ;; 11613 */) ;; 11614 *) as_dir=$as_dir/ ;; 11615 esac 11616 for ac_exec_ext in '' $ac_executable_extensions; do 11617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11618 ac_cv_prog_ac_ct_OTOOL="otool" 11619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11620 break 2 11621 fi 11622 done 11623 done 11624 IFS=$as_save_IFS 11625 11626 fi 11627 fi 11628 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11629 if test -n "$ac_ct_OTOOL"; then 11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11631 printf "%s\n" "$ac_ct_OTOOL" >&6; } 11632 else 11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11634 printf "%s\n" "no" >&6; } 11635 fi 11636 11637 if test "x$ac_ct_OTOOL" = x; then 11638 OTOOL=":" 11639 else 11640 case $cross_compiling:$ac_tool_warned in 11641 yes:) 11642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11644 ac_tool_warned=yes ;; 11645 esac 11646 OTOOL=$ac_ct_OTOOL 11647 fi 11648 else 11649 OTOOL="$ac_cv_prog_OTOOL" 11650 fi 11651 11652 if test -n "$ac_tool_prefix"; then 11653 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11654 set dummy ${ac_tool_prefix}otool64; ac_word=$2 11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11656 printf %s "checking for $ac_word... " >&6; } 11657 if test ${ac_cv_prog_OTOOL64+y} 11658 then : 11659 printf %s "(cached) " >&6 11660 else $as_nop 11661 if test -n "$OTOOL64"; then 11662 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11663 else 11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11665 for as_dir in $PATH 11666 do 11667 IFS=$as_save_IFS 11668 case $as_dir in #((( 11669 '') as_dir=./ ;; 11670 */) ;; 11671 *) as_dir=$as_dir/ ;; 11672 esac 11673 for ac_exec_ext in '' $ac_executable_extensions; do 11674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11675 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11677 break 2 11678 fi 11679 done 11680 done 11681 IFS=$as_save_IFS 11682 11683 fi 11684 fi 11685 OTOOL64=$ac_cv_prog_OTOOL64 11686 if test -n "$OTOOL64"; then 11687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11688 printf "%s\n" "$OTOOL64" >&6; } 11689 else 11690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11691 printf "%s\n" "no" >&6; } 11692 fi 11693 11694 11695 fi 11696 if test -z "$ac_cv_prog_OTOOL64"; then 11697 ac_ct_OTOOL64=$OTOOL64 11698 # Extract the first word of "otool64", so it can be a program name with args. 11699 set dummy otool64; ac_word=$2 11700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11701 printf %s "checking for $ac_word... " >&6; } 11702 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 11703 then : 11704 printf %s "(cached) " >&6 11705 else $as_nop 11706 if test -n "$ac_ct_OTOOL64"; then 11707 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11708 else 11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11710 for as_dir in $PATH 11711 do 11712 IFS=$as_save_IFS 11713 case $as_dir in #((( 11714 '') as_dir=./ ;; 11715 */) ;; 11716 *) as_dir=$as_dir/ ;; 11717 esac 11718 for ac_exec_ext in '' $ac_executable_extensions; do 11719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11720 ac_cv_prog_ac_ct_OTOOL64="otool64" 11721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11722 break 2 11723 fi 11724 done 11725 done 11726 IFS=$as_save_IFS 11727 11728 fi 11729 fi 11730 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11731 if test -n "$ac_ct_OTOOL64"; then 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11733 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 11734 else 11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11736 printf "%s\n" "no" >&6; } 11737 fi 11738 11739 if test "x$ac_ct_OTOOL64" = x; then 11740 OTOOL64=":" 11741 else 11742 case $cross_compiling:$ac_tool_warned in 11743 yes:) 11744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11746 ac_tool_warned=yes ;; 11747 esac 11748 OTOOL64=$ac_ct_OTOOL64 11749 fi 11750 else 11751 OTOOL64="$ac_cv_prog_OTOOL64" 11752 fi 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11781 printf %s "checking for -single_module linker flag... " >&6; } 11782 if test ${lt_cv_apple_cc_single_mod+y} 11783 then : 11784 printf %s "(cached) " >&6 11785 else $as_nop 11786 lt_cv_apple_cc_single_mod=no 11787 if test -z "$LT_MULTI_MODULE"; then 11788 # By default we will add the -single_module flag. You can override 11789 # by either setting the environment variable LT_MULTI_MODULE 11790 # non-empty at configure time, or by adding -multi_module to the 11791 # link flags. 11792 rm -rf libconftest.dylib* 11793 echo "int foo(void){return 1;}" > conftest.c 11794 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11795 -dynamiclib -Wl,-single_module conftest.c" >&5 11796 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11797 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11798 _lt_result=$? 11799 # If there is a non-empty error log, and "single_module" 11800 # appears in it, assume the flag caused a linker warning 11801 if test -s conftest.err && $GREP single_module conftest.err; then 11802 cat conftest.err >&5 11803 # Otherwise, if the output was created with a 0 exit code from 11804 # the compiler, it worked. 11805 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11806 lt_cv_apple_cc_single_mod=yes 11807 else 11808 cat conftest.err >&5 11809 fi 11810 rm -rf libconftest.dylib* 11811 rm -f conftest.* 11812 fi 11813 fi 11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11815 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 11816 11817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11818 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 11819 if test ${lt_cv_ld_exported_symbols_list+y} 11820 then : 11821 printf %s "(cached) " >&6 11822 else $as_nop 11823 lt_cv_ld_exported_symbols_list=no 11824 save_LDFLAGS=$LDFLAGS 11825 echo "_main" > conftest.sym 11826 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11828 /* end confdefs.h. */ 11829 11830 int main(void) 11831 { 11832 11833 return 0; 11834 } 11835 _ACEOF 11836 if ac_fn_c_try_link "$LINENO" 11837 then : 11838 lt_cv_ld_exported_symbols_list=yes 11839 else $as_nop 11840 lt_cv_ld_exported_symbols_list=no 11841 fi 11842 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11843 conftest$ac_exeext conftest.$ac_ext 11844 LDFLAGS=$save_LDFLAGS 11845 11846 fi 11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11848 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 11849 11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11851 printf %s "checking for -force_load linker flag... " >&6; } 11852 if test ${lt_cv_ld_force_load+y} 11853 then : 11854 printf %s "(cached) " >&6 11855 else $as_nop 11856 lt_cv_ld_force_load=no 11857 cat > conftest.c << _LT_EOF 11858 int forced_loaded() { return 2;} 11859 _LT_EOF 11860 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11861 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11862 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 11863 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 11864 echo "$RANLIB libconftest.a" >&5 11865 $RANLIB libconftest.a 2>&5 11866 cat > conftest.c << _LT_EOF 11867 int main() { return 0;} 11868 _LT_EOF 11869 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11870 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11871 _lt_result=$? 11872 if test -s conftest.err && $GREP force_load conftest.err; then 11873 cat conftest.err >&5 11874 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11875 lt_cv_ld_force_load=yes 11876 else 11877 cat conftest.err >&5 11878 fi 11879 rm -f conftest.err libconftest.a conftest conftest.c 11880 rm -rf conftest.dSYM 11881 11882 fi 11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11884 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 11885 case $host_os in 11886 rhapsody* | darwin1.[012]) 11887 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11888 darwin1.*) 11889 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11890 darwin*) 11891 case $MACOSX_DEPLOYMENT_TARGET,$host in 11892 10.[012],*|,*powerpc*-darwin[5-8]*) 11893 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11894 *) 11895 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11896 esac 11897 ;; 11898 esac 11899 if test yes = "$lt_cv_apple_cc_single_mod"; then 11900 _lt_dar_single_mod='$single_module' 11901 fi 11902 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11903 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11904 else 11905 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11906 fi 11907 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11908 _lt_dsymutil='~$DSYMUTIL $lib || :' 11909 else 11910 _lt_dsymutil= 11911 fi 11912 ;; 11913 esac 11914 11915 # func_munge_path_list VARIABLE PATH 11916 # ----------------------------------- 11917 # VARIABLE is name of variable containing _space_ separated list of 11918 # directories to be munged by the contents of PATH, which is string 11919 # having a format: 11920 # "DIR[:DIR]:" 11921 # string "DIR[ DIR]" will be prepended to VARIABLE 11922 # ":DIR[:DIR]" 11923 # string "DIR[ DIR]" will be appended to VARIABLE 11924 # "DIRP[:DIRP]::[DIRA:]DIRA" 11925 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11926 # "DIRA[ DIRA]" will be appended to VARIABLE 11927 # "DIR[:DIR]" 11928 # VARIABLE will be replaced by "DIR[ DIR]" 11929 func_munge_path_list () 11930 { 11931 case x$2 in 11932 x) 11933 ;; 11934 *:) 11935 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11936 ;; 11937 x:*) 11938 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11939 ;; 11940 *::*) 11941 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11942 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11943 ;; 11944 *) 11945 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11946 ;; 11947 esac 11948 } 11949 11950 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11951 " 11952 if test "x$ac_cv_header_dlfcn_h" = xyes 11953 then : 11954 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 11955 11956 fi 11957 11958 # ------------------------------------ # 11959 # Determine libtool default behavior # 11960 # ------------------------------------ # 11961 11962 # 11963 # Default behavior is to enable shared and static libraries on systems 11964 # where libtool knows how to build both library versions, and does not 11965 # require separate configuration and build runs for each flavor. 11966 # 11967 11968 xc_lt_want_enable_shared='yes' 11969 xc_lt_want_enable_static='yes' 11970 11971 # 11972 # User may have disabled shared or static libraries. 11973 # 11974 case "x$enable_shared" in # ( 11975 xno) 11976 xc_lt_want_enable_shared='no' 11977 ;; 11978 esac 11979 case "x$enable_static" in # ( 11980 xno) 11981 xc_lt_want_enable_static='no' 11982 ;; 11983 esac 11984 if test "x$xc_lt_want_enable_shared" = 'xno' && 11985 test "x$xc_lt_want_enable_static" = 'xno'; then 11986 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5 11987 fi 11988 11989 # 11990 # Default behavior on systems that require independent configuration 11991 # and build runs for shared and static is to enable shared libraries 11992 # and disable static ones. On these systems option '--disable-shared' 11993 # must be used in order to build a proper static library. 11994 # 11995 11996 if test "x$xc_lt_want_enable_shared" = 'xyes' && 11997 test "x$xc_lt_want_enable_static" = 'xyes'; then 11998 case $host_os in # ( 11999 cegcc* | os2* | aix*) 12000 xc_lt_want_enable_static='no' 12001 ;; 12002 esac 12003 fi 12004 12005 # 12006 # Make libtool aware of current shared and static library preferences 12007 # taking in account that, depending on host characteristics, libtool 12008 # may modify these option preferences later in this configure script. 12009 # 12010 12011 enable_shared=$xc_lt_want_enable_shared 12012 enable_static=$xc_lt_want_enable_static 12013 12014 # 12015 # Default behavior is to build PIC objects for shared libraries and 12016 # non-PIC objects for static libraries. 12017 # 12018 12019 xc_lt_want_with_pic='default' 12020 12021 # 12022 # User may have specified PIC preference. 12023 # 12024 12025 case "x$with_pic" in # (( 12026 xno) 12027 xc_lt_want_with_pic='no' 12028 ;; 12029 xyes) 12030 xc_lt_want_with_pic='yes' 12031 ;; 12032 esac 12033 12034 # 12035 # Default behavior on some systems where building a shared library out 12036 # of non-PIC compiled objects will fail with following linker error 12037 # "relocation R_X86_64_32 can not be used when making a shared object" 12038 # is to build PIC objects even for static libraries. This behavior may 12039 # be overridden using 'configure --disable-shared --without-pic'. 12040 # 12041 12042 if test "x$xc_lt_want_with_pic" = 'xdefault'; then 12043 case $host_cpu in # ( 12044 x86_64 | amd64 | ia64) 12045 case $host_os in # ( 12046 linux* | freebsd* | midnightbsd*) 12047 xc_lt_want_with_pic='yes' 12048 ;; 12049 esac 12050 ;; 12051 esac 12052 fi 12053 12054 # 12055 # Make libtool aware of current PIC preference taking in account that, 12056 # depending on host characteristics, libtool may modify PIC default 12057 # behavior to fit host system idiosyncrasies later in this script. 12058 # 12059 12060 with_pic=$xc_lt_want_with_pic 12061 12062 ## ----------------------- ## 12063 ## Start of libtool code ## 12064 ## ----------------------- ## 12065 12066 12067 12068 12069 # Set options 12070 enable_win32_dll=yes 12071 12072 case $host in 12073 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 12074 if test -n "$ac_tool_prefix"; then 12075 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 12076 set dummy ${ac_tool_prefix}as; ac_word=$2 12077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12078 printf %s "checking for $ac_word... " >&6; } 12079 if test ${ac_cv_prog_AS+y} 12080 then : 12081 printf %s "(cached) " >&6 12082 else $as_nop 12083 if test -n "$AS"; then 12084 ac_cv_prog_AS="$AS" # Let the user override the test. 12085 else 12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12087 for as_dir in $PATH 12088 do 12089 IFS=$as_save_IFS 12090 case $as_dir in #((( 12091 '') as_dir=./ ;; 12092 */) ;; 12093 *) as_dir=$as_dir/ ;; 12094 esac 12095 for ac_exec_ext in '' $ac_executable_extensions; do 12096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12097 ac_cv_prog_AS="${ac_tool_prefix}as" 12098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12099 break 2 12100 fi 12101 done 12102 done 12103 IFS=$as_save_IFS 12104 12105 fi 12106 fi 12107 AS=$ac_cv_prog_AS 12108 if test -n "$AS"; then 12109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 12110 printf "%s\n" "$AS" >&6; } 12111 else 12112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12113 printf "%s\n" "no" >&6; } 12114 fi 12115 12116 12117 fi 12118 if test -z "$ac_cv_prog_AS"; then 12119 ac_ct_AS=$AS 12120 # Extract the first word of "as", so it can be a program name with args. 12121 set dummy as; ac_word=$2 12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12123 printf %s "checking for $ac_word... " >&6; } 12124 if test ${ac_cv_prog_ac_ct_AS+y} 12125 then : 12126 printf %s "(cached) " >&6 12127 else $as_nop 12128 if test -n "$ac_ct_AS"; then 12129 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 12130 else 12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12132 for as_dir in $PATH 12133 do 12134 IFS=$as_save_IFS 12135 case $as_dir in #((( 12136 '') as_dir=./ ;; 12137 */) ;; 12138 *) as_dir=$as_dir/ ;; 12139 esac 12140 for ac_exec_ext in '' $ac_executable_extensions; do 12141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12142 ac_cv_prog_ac_ct_AS="as" 12143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12144 break 2 12145 fi 12146 done 12147 done 12148 IFS=$as_save_IFS 12149 12150 fi 12151 fi 12152 ac_ct_AS=$ac_cv_prog_ac_ct_AS 12153 if test -n "$ac_ct_AS"; then 12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 12155 printf "%s\n" "$ac_ct_AS" >&6; } 12156 else 12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12158 printf "%s\n" "no" >&6; } 12159 fi 12160 12161 if test "x$ac_ct_AS" = x; then 12162 AS="false" 12163 else 12164 case $cross_compiling:$ac_tool_warned in 12165 yes:) 12166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12168 ac_tool_warned=yes ;; 12169 esac 12170 AS=$ac_ct_AS 12171 fi 12172 else 12173 AS="$ac_cv_prog_AS" 12174 fi 12175 12176 if test -n "$ac_tool_prefix"; then 12177 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12178 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12180 printf %s "checking for $ac_word... " >&6; } 12181 if test ${ac_cv_prog_DLLTOOL+y} 12182 then : 12183 printf %s "(cached) " >&6 12184 else $as_nop 12185 if test -n "$DLLTOOL"; then 12186 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12187 else 12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12189 for as_dir in $PATH 12190 do 12191 IFS=$as_save_IFS 12192 case $as_dir in #((( 12193 '') as_dir=./ ;; 12194 */) ;; 12195 *) as_dir=$as_dir/ ;; 12196 esac 12197 for ac_exec_ext in '' $ac_executable_extensions; do 12198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12199 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12201 break 2 12202 fi 12203 done 12204 done 12205 IFS=$as_save_IFS 12206 12207 fi 12208 fi 12209 DLLTOOL=$ac_cv_prog_DLLTOOL 12210 if test -n "$DLLTOOL"; then 12211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12212 printf "%s\n" "$DLLTOOL" >&6; } 12213 else 12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12215 printf "%s\n" "no" >&6; } 12216 fi 12217 12218 12219 fi 12220 if test -z "$ac_cv_prog_DLLTOOL"; then 12221 ac_ct_DLLTOOL=$DLLTOOL 12222 # Extract the first word of "dlltool", so it can be a program name with args. 12223 set dummy dlltool; ac_word=$2 12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12225 printf %s "checking for $ac_word... " >&6; } 12226 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12227 then : 12228 printf %s "(cached) " >&6 12229 else $as_nop 12230 if test -n "$ac_ct_DLLTOOL"; then 12231 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12232 else 12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12234 for as_dir in $PATH 12235 do 12236 IFS=$as_save_IFS 12237 case $as_dir in #((( 12238 '') as_dir=./ ;; 12239 */) ;; 12240 *) as_dir=$as_dir/ ;; 12241 esac 12242 for ac_exec_ext in '' $ac_executable_extensions; do 12243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12244 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12246 break 2 12247 fi 12248 done 12249 done 12250 IFS=$as_save_IFS 12251 12252 fi 12253 fi 12254 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12255 if test -n "$ac_ct_DLLTOOL"; then 12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12257 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12258 else 12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12260 printf "%s\n" "no" >&6; } 12261 fi 12262 12263 if test "x$ac_ct_DLLTOOL" = x; then 12264 DLLTOOL="false" 12265 else 12266 case $cross_compiling:$ac_tool_warned in 12267 yes:) 12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12270 ac_tool_warned=yes ;; 12271 esac 12272 DLLTOOL=$ac_ct_DLLTOOL 12273 fi 12274 else 12275 DLLTOOL="$ac_cv_prog_DLLTOOL" 12276 fi 12277 12278 if test -n "$ac_tool_prefix"; then 12279 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12280 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12282 printf %s "checking for $ac_word... " >&6; } 12283 if test ${ac_cv_prog_OBJDUMP+y} 12284 then : 12285 printf %s "(cached) " >&6 12286 else $as_nop 12287 if test -n "$OBJDUMP"; then 12288 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12289 else 12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12291 for as_dir in $PATH 12292 do 12293 IFS=$as_save_IFS 12294 case $as_dir in #((( 12295 '') as_dir=./ ;; 12296 */) ;; 12297 *) as_dir=$as_dir/ ;; 12298 esac 12299 for ac_exec_ext in '' $ac_executable_extensions; do 12300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12301 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12303 break 2 12304 fi 12305 done 12306 done 12307 IFS=$as_save_IFS 12308 12309 fi 12310 fi 12311 OBJDUMP=$ac_cv_prog_OBJDUMP 12312 if test -n "$OBJDUMP"; then 12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12314 printf "%s\n" "$OBJDUMP" >&6; } 12315 else 12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12317 printf "%s\n" "no" >&6; } 12318 fi 12319 12320 12321 fi 12322 if test -z "$ac_cv_prog_OBJDUMP"; then 12323 ac_ct_OBJDUMP=$OBJDUMP 12324 # Extract the first word of "objdump", so it can be a program name with args. 12325 set dummy objdump; ac_word=$2 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12327 printf %s "checking for $ac_word... " >&6; } 12328 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12329 then : 12330 printf %s "(cached) " >&6 12331 else $as_nop 12332 if test -n "$ac_ct_OBJDUMP"; then 12333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12334 else 12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12336 for as_dir in $PATH 12337 do 12338 IFS=$as_save_IFS 12339 case $as_dir in #((( 12340 '') as_dir=./ ;; 12341 */) ;; 12342 *) as_dir=$as_dir/ ;; 12343 esac 12344 for ac_exec_ext in '' $ac_executable_extensions; do 12345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12346 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12348 break 2 12349 fi 12350 done 12351 done 12352 IFS=$as_save_IFS 12353 12354 fi 12355 fi 12356 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12357 if test -n "$ac_ct_OBJDUMP"; then 12358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12359 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12360 else 12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12362 printf "%s\n" "no" >&6; } 12363 fi 12364 12365 if test "x$ac_ct_OBJDUMP" = x; then 12366 OBJDUMP="false" 12367 else 12368 case $cross_compiling:$ac_tool_warned in 12369 yes:) 12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12372 ac_tool_warned=yes ;; 12373 esac 12374 OBJDUMP=$ac_ct_OBJDUMP 12375 fi 12376 else 12377 OBJDUMP="$ac_cv_prog_OBJDUMP" 12378 fi 12379 12380 ;; 12381 esac 12382 12383 test -z "$AS" && AS=as 12384 12385 12386 12387 12388 12389 test -z "$DLLTOOL" && DLLTOOL=dlltool 12390 12391 12392 12393 12394 12395 test -z "$OBJDUMP" && OBJDUMP=objdump 12396 12397 12398 12399 12400 12401 12402 12403 enable_dlopen=no 12404 12405 12406 12407 # Check whether --enable-shared was given. 12408 if test ${enable_shared+y} 12409 then : 12410 enableval=$enable_shared; p=${PACKAGE-default} 12411 case $enableval in 12412 yes) enable_shared=yes ;; 12413 no) enable_shared=no ;; 12414 *) 12415 enable_shared=no 12416 # Look at the argument we got. We use all the common list separators. 12417 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12418 for pkg in $enableval; do 12419 IFS=$lt_save_ifs 12420 if test "X$pkg" = "X$p"; then 12421 enable_shared=yes 12422 fi 12423 done 12424 IFS=$lt_save_ifs 12425 ;; 12426 esac 12427 else $as_nop 12428 enable_shared=yes 12429 fi 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 # Check whether --enable-static was given. 12440 if test ${enable_static+y} 12441 then : 12442 enableval=$enable_static; p=${PACKAGE-default} 12443 case $enableval in 12444 yes) enable_static=yes ;; 12445 no) enable_static=no ;; 12446 *) 12447 enable_static=no 12448 # Look at the argument we got. We use all the common list separators. 12449 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12450 for pkg in $enableval; do 12451 IFS=$lt_save_ifs 12452 if test "X$pkg" = "X$p"; then 12453 enable_static=yes 12454 fi 12455 done 12456 IFS=$lt_save_ifs 12457 ;; 12458 esac 12459 else $as_nop 12460 enable_static=yes 12461 fi 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 # Check whether --with-pic was given. 12473 if test ${with_pic+y} 12474 then : 12475 withval=$with_pic; lt_p=${PACKAGE-default} 12476 case $withval in 12477 yes|no) pic_mode=$withval ;; 12478 *) 12479 pic_mode=default 12480 # Look at the argument we got. We use all the common list separators. 12481 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12482 for lt_pkg in $withval; do 12483 IFS=$lt_save_ifs 12484 if test "X$lt_pkg" = "X$lt_p"; then 12485 pic_mode=yes 12486 fi 12487 done 12488 IFS=$lt_save_ifs 12489 ;; 12490 esac 12491 else $as_nop 12492 pic_mode=default 12493 fi 12494 12495 12496 12497 12498 12499 12500 12501 12502 # Check whether --enable-fast-install was given. 12503 if test ${enable_fast_install+y} 12504 then : 12505 enableval=$enable_fast_install; p=${PACKAGE-default} 12506 case $enableval in 12507 yes) enable_fast_install=yes ;; 12508 no) enable_fast_install=no ;; 12509 *) 12510 enable_fast_install=no 12511 # Look at the argument we got. We use all the common list separators. 12512 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12513 for pkg in $enableval; do 12514 IFS=$lt_save_ifs 12515 if test "X$pkg" = "X$p"; then 12516 enable_fast_install=yes 12517 fi 12518 done 12519 IFS=$lt_save_ifs 12520 ;; 12521 esac 12522 else $as_nop 12523 enable_fast_install=yes 12524 fi 12525 12526 12527 12528 12529 12530 12531 12532 12533 shared_archive_member_spec= 12534 case $host,$enable_shared in 12535 power*-*-aix[5-9]*,yes) 12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 12537 printf %s "checking which variant of shared library versioning to provide... " >&6; } 12538 12539 # Check whether --with-aix-soname was given. 12540 if test ${with_aix_soname+y} 12541 then : 12542 withval=$with_aix_soname; case $withval in 12543 aix|svr4|both) 12544 ;; 12545 *) 12546 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 12547 ;; 12548 esac 12549 lt_cv_with_aix_soname=$with_aix_soname 12550 else $as_nop 12551 if test ${lt_cv_with_aix_soname+y} 12552 then : 12553 printf %s "(cached) " >&6 12554 else $as_nop 12555 lt_cv_with_aix_soname=aix 12556 fi 12557 12558 with_aix_soname=$lt_cv_with_aix_soname 12559 fi 12560 12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 12562 printf "%s\n" "$with_aix_soname" >&6; } 12563 if test aix != "$with_aix_soname"; then 12564 # For the AIX way of multilib, we name the shared archive member 12565 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12566 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12567 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12568 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12569 if test 64 = "${OBJECT_MODE-32}"; then 12570 shared_archive_member_spec=shr_64 12571 else 12572 shared_archive_member_spec=shr 12573 fi 12574 fi 12575 ;; 12576 *) 12577 with_aix_soname=aix 12578 ;; 12579 esac 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 # This can be used to rebuild libtool when needed 12591 LIBTOOL_DEPS=$ltmain 12592 12593 # Always use our own libtool. 12594 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 test -z "$LN_S" && LN_S="ln -s" 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 if test -n "${ZSH_VERSION+set}"; then 12641 setopt NO_GLOB_SUBST 12642 fi 12643 12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12645 printf %s "checking for objdir... " >&6; } 12646 if test ${lt_cv_objdir+y} 12647 then : 12648 printf %s "(cached) " >&6 12649 else $as_nop 12650 rm -f .libs 2>/dev/null 12651 mkdir .libs 2>/dev/null 12652 if test -d .libs; then 12653 lt_cv_objdir=.libs 12654 else 12655 # MS-DOS does not allow filenames that begin with a dot. 12656 lt_cv_objdir=_libs 12657 fi 12658 rmdir .libs 2>/dev/null 12659 fi 12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12661 printf "%s\n" "$lt_cv_objdir" >&6; } 12662 objdir=$lt_cv_objdir 12663 12664 12665 12666 12667 12668 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 12669 12670 12671 12672 12673 case $host_os in 12674 aix3*) 12675 # AIX sometimes has problems with the GCC collect2 program. For some 12676 # reason, if we set the COLLECT_NAMES environment variable, the problems 12677 # vanish in a puff of smoke. 12678 if test set != "${COLLECT_NAMES+set}"; then 12679 COLLECT_NAMES= 12680 export COLLECT_NAMES 12681 fi 12682 ;; 12683 esac 12684 12685 # Global variables: 12686 ofile=libtool 12687 can_build_shared=yes 12688 12689 # All known linkers require a '.a' archive for static linking (except MSVC and 12690 # ICC, which need '.lib'). 12691 libext=a 12692 12693 with_gnu_ld=$lt_cv_prog_gnu_ld 12694 12695 old_CC=$CC 12696 old_CFLAGS=$CFLAGS 12697 12698 # Set sane defaults for various variables 12699 test -z "$CC" && CC=cc 12700 test -z "$LTCC" && LTCC=$CC 12701 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12702 test -z "$LD" && LD=ld 12703 test -z "$ac_objext" && ac_objext=o 12704 12705 func_cc_basename $compiler 12706 cc_basename=$func_cc_basename_result 12707 12708 12709 # Only perform the check for file, if the check method requires it 12710 test -z "$MAGIC_CMD" && MAGIC_CMD=file 12711 case $deplibs_check_method in 12712 file_magic*) 12713 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12715 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 12716 if test ${lt_cv_path_MAGIC_CMD+y} 12717 then : 12718 printf %s "(cached) " >&6 12719 else $as_nop 12720 case $MAGIC_CMD in 12721 [\\/*] | ?:[\\/]*) 12722 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12723 ;; 12724 *) 12725 lt_save_MAGIC_CMD=$MAGIC_CMD 12726 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12727 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12728 for ac_dir in $ac_dummy; do 12729 IFS=$lt_save_ifs 12730 test -z "$ac_dir" && ac_dir=. 12731 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12732 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12733 if test -n "$file_magic_test_file"; then 12734 case $deplibs_check_method in 12735 "file_magic "*) 12736 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12737 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12739 $EGREP "$file_magic_regex" > /dev/null; then 12740 : 12741 else 12742 cat <<_LT_EOF 1>&2 12743 12744 *** Warning: the command libtool uses to detect shared libraries, 12745 *** $file_magic_cmd, produces output that libtool cannot recognize. 12746 *** The result is that libtool may fail to recognize shared libraries 12747 *** as such. This will affect the creation of libtool libraries that 12748 *** depend on shared libraries, but programs linked with such libtool 12749 *** libraries will work regardless of this problem. Nevertheless, you 12750 *** may want to report the problem to your system manager and/or to 12751 *** bug-libtool@gnu.org 12752 12753 _LT_EOF 12754 fi ;; 12755 esac 12756 fi 12757 break 12758 fi 12759 done 12760 IFS=$lt_save_ifs 12761 MAGIC_CMD=$lt_save_MAGIC_CMD 12762 ;; 12763 esac 12764 fi 12765 12766 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12767 if test -n "$MAGIC_CMD"; then 12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12769 printf "%s\n" "$MAGIC_CMD" >&6; } 12770 else 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12772 printf "%s\n" "no" >&6; } 12773 fi 12774 12775 12776 12777 12778 12779 if test -z "$lt_cv_path_MAGIC_CMD"; then 12780 if test -n "$ac_tool_prefix"; then 12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12782 printf %s "checking for file... " >&6; } 12783 if test ${lt_cv_path_MAGIC_CMD+y} 12784 then : 12785 printf %s "(cached) " >&6 12786 else $as_nop 12787 case $MAGIC_CMD in 12788 [\\/*] | ?:[\\/]*) 12789 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12790 ;; 12791 *) 12792 lt_save_MAGIC_CMD=$MAGIC_CMD 12793 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12794 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12795 for ac_dir in $ac_dummy; do 12796 IFS=$lt_save_ifs 12797 test -z "$ac_dir" && ac_dir=. 12798 if test -f "$ac_dir/file"; then 12799 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 12800 if test -n "$file_magic_test_file"; then 12801 case $deplibs_check_method in 12802 "file_magic "*) 12803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12804 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12806 $EGREP "$file_magic_regex" > /dev/null; then 12807 : 12808 else 12809 cat <<_LT_EOF 1>&2 12810 12811 *** Warning: the command libtool uses to detect shared libraries, 12812 *** $file_magic_cmd, produces output that libtool cannot recognize. 12813 *** The result is that libtool may fail to recognize shared libraries 12814 *** as such. This will affect the creation of libtool libraries that 12815 *** depend on shared libraries, but programs linked with such libtool 12816 *** libraries will work regardless of this problem. Nevertheless, you 12817 *** may want to report the problem to your system manager and/or to 12818 *** bug-libtool@gnu.org 12819 12820 _LT_EOF 12821 fi ;; 12822 esac 12823 fi 12824 break 12825 fi 12826 done 12827 IFS=$lt_save_ifs 12828 MAGIC_CMD=$lt_save_MAGIC_CMD 12829 ;; 12830 esac 12831 fi 12832 12833 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12834 if test -n "$MAGIC_CMD"; then 12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12836 printf "%s\n" "$MAGIC_CMD" >&6; } 12837 else 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12839 printf "%s\n" "no" >&6; } 12840 fi 12841 12842 12843 else 12844 MAGIC_CMD=: 12845 fi 12846 fi 12847 12848 fi 12849 ;; 12850 esac 12851 12852 # Use C for the default configuration in the libtool script 12853 12854 lt_save_CC=$CC 12855 ac_ext=c 12856 ac_cpp='$CPP $CPPFLAGS' 12857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12859 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12860 12861 12862 # Source file extension for C test sources. 12863 ac_ext=c 12864 12865 # Object file extension for compiled C test sources. 12866 objext=o 12867 objext=$objext 12868 12869 # Code to be used in simple compile tests 12870 lt_simple_compile_test_code="int some_variable = 0;" 12871 12872 # Code to be used in simple link tests 12873 lt_simple_link_test_code='int main(){return(0);}' 12874 12875 12876 12877 12878 12879 12880 12881 # If no C compiler was specified, use CC. 12882 LTCC=${LTCC-"$CC"} 12883 12884 # If no C compiler flags were specified, use CFLAGS. 12885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12886 12887 # Allow CC to be a program name with arguments. 12888 compiler=$CC 12889 12890 # Save the default compiler, since it gets overwritten when the other 12891 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12892 compiler_DEFAULT=$CC 12893 12894 # save warnings/boilerplate of simple test code 12895 ac_outfile=conftest.$ac_objext 12896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12898 _lt_compiler_boilerplate=`cat conftest.err` 12899 $RM conftest* 12900 12901 ac_outfile=conftest.$ac_objext 12902 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12904 _lt_linker_boilerplate=`cat conftest.err` 12905 $RM -r conftest* 12906 12907 12908 ## CAVEAT EMPTOR: 12909 ## There is no encapsulation within the following macros, do not change 12910 ## the running order or otherwise move them around unless you know exactly 12911 ## what you are doing... 12912 if test -n "$compiler"; then 12913 12914 lt_prog_compiler_no_builtin_flag= 12915 12916 if test yes = "$GCC"; then 12917 case $cc_basename in 12918 nvcc*) 12919 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12920 *) 12921 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12922 esac 12923 12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12925 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12926 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 12927 then : 12928 printf %s "(cached) " >&6 12929 else $as_nop 12930 lt_cv_prog_compiler_rtti_exceptions=no 12931 ac_outfile=conftest.$ac_objext 12932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12933 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12934 # Insert the option either (1) after the last *FLAGS variable, or 12935 # (2) before a word containing "conftest.", or (3) at the end. 12936 # Note that $ac_compile itself does not contain backslashes and begins 12937 # with a dollar sign (not a hyphen), so the echo should work correctly. 12938 # The option is referenced via a variable to avoid confusing sed. 12939 lt_compile=`echo "$ac_compile" | $SED \ 12940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12942 -e 's:$: $lt_compiler_flag:'` 12943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12944 (eval "$lt_compile" 2>conftest.err) 12945 ac_status=$? 12946 cat conftest.err >&5 12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12948 if (exit $ac_status) && test -s "$ac_outfile"; then 12949 # The compiler can only warn and ignore the option if not recognized 12950 # So say no if there are warnings other than the usual output. 12951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12954 lt_cv_prog_compiler_rtti_exceptions=yes 12955 fi 12956 fi 12957 $RM conftest* 12958 12959 fi 12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12961 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12962 12963 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12965 else 12966 : 12967 fi 12968 12969 fi 12970 12971 12972 12973 12974 12975 12976 lt_prog_compiler_wl= 12977 lt_prog_compiler_pic= 12978 lt_prog_compiler_static= 12979 12980 12981 if test yes = "$GCC"; then 12982 lt_prog_compiler_wl='-Wl,' 12983 lt_prog_compiler_static='-static' 12984 12985 case $host_os in 12986 aix*) 12987 # All AIX code is PIC. 12988 if test ia64 = "$host_cpu"; then 12989 # AIX 5 now supports IA64 processor 12990 lt_prog_compiler_static='-Bstatic' 12991 fi 12992 lt_prog_compiler_pic='-fPIC' 12993 ;; 12994 12995 amigaos*) 12996 case $host_cpu in 12997 powerpc) 12998 # see comment about AmigaOS4 .so support 12999 lt_prog_compiler_pic='-fPIC' 13000 ;; 13001 m68k) 13002 # FIXME: we need at least 68020 code to build shared libraries, but 13003 # adding the '-m68020' flag to GCC prevents building anything better, 13004 # like '-m68040'. 13005 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13006 ;; 13007 esac 13008 ;; 13009 13010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13011 # PIC is the default for these OSes. 13012 ;; 13013 13014 mingw* | cygwin* | pw32* | os2* | cegcc*) 13015 # This hack is so that the source file can tell whether it is being 13016 # built for inclusion in a dll (and should export symbols for example). 13017 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13018 # (--disable-auto-import) libraries 13019 lt_prog_compiler_pic='-DDLL_EXPORT' 13020 case $host_os in 13021 os2*) 13022 lt_prog_compiler_static='$wl-static' 13023 ;; 13024 esac 13025 ;; 13026 13027 darwin* | rhapsody*) 13028 # PIC is the default on this platform 13029 # Common symbols not allowed in MH_DYLIB files 13030 lt_prog_compiler_pic='-fno-common' 13031 ;; 13032 13033 haiku*) 13034 # PIC is the default for Haiku. 13035 # The "-static" flag exists, but is broken. 13036 lt_prog_compiler_static= 13037 ;; 13038 13039 hpux*) 13040 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13041 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13042 # sets the default TLS model and affects inlining. 13043 case $host_cpu in 13044 hppa*64*) 13045 # +Z the default 13046 ;; 13047 *) 13048 lt_prog_compiler_pic='-fPIC' 13049 ;; 13050 esac 13051 ;; 13052 13053 interix[3-9]*) 13054 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13055 # Instead, we relocate shared libraries at runtime. 13056 ;; 13057 13058 msdosdjgpp*) 13059 # Just because we use GCC doesn't mean we suddenly get shared libraries 13060 # on systems that don't support them. 13061 lt_prog_compiler_can_build_shared=no 13062 enable_shared=no 13063 ;; 13064 13065 *nto* | *qnx*) 13066 # QNX uses GNU C++, but need to define -shared option too, otherwise 13067 # it will coredump. 13068 lt_prog_compiler_pic='-fPIC -shared' 13069 ;; 13070 13071 sysv4*MP*) 13072 if test -d /usr/nec; then 13073 lt_prog_compiler_pic=-Kconform_pic 13074 fi 13075 ;; 13076 13077 *) 13078 lt_prog_compiler_pic='-fPIC' 13079 ;; 13080 esac 13081 13082 case $cc_basename in 13083 nvcc*) # Cuda Compiler Driver 2.2 13084 lt_prog_compiler_wl='-Xlinker ' 13085 if test -n "$lt_prog_compiler_pic"; then 13086 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13087 fi 13088 ;; 13089 esac 13090 else 13091 # PORTME Check for flag to pass linker flags through the system compiler. 13092 case $host_os in 13093 aix*) 13094 lt_prog_compiler_wl='-Wl,' 13095 if test ia64 = "$host_cpu"; then 13096 # AIX 5 now supports IA64 processor 13097 lt_prog_compiler_static='-Bstatic' 13098 else 13099 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13100 fi 13101 ;; 13102 13103 darwin* | rhapsody*) 13104 # PIC is the default on this platform 13105 # Common symbols not allowed in MH_DYLIB files 13106 lt_prog_compiler_pic='-fno-common' 13107 case $cc_basename in 13108 nagfor*) 13109 # NAG Fortran compiler 13110 lt_prog_compiler_wl='-Wl,-Wl,,' 13111 lt_prog_compiler_pic='-PIC' 13112 lt_prog_compiler_static='-Bstatic' 13113 ;; 13114 esac 13115 ;; 13116 13117 mingw* | cygwin* | pw32* | os2* | cegcc*) 13118 # This hack is so that the source file can tell whether it is being 13119 # built for inclusion in a dll (and should export symbols for example). 13120 lt_prog_compiler_pic='-DDLL_EXPORT' 13121 case $host_os in 13122 os2*) 13123 lt_prog_compiler_static='$wl-static' 13124 ;; 13125 esac 13126 ;; 13127 13128 hpux9* | hpux10* | hpux11*) 13129 lt_prog_compiler_wl='-Wl,' 13130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13131 # not for PA HP-UX. 13132 case $host_cpu in 13133 hppa*64*|ia64*) 13134 # +Z the default 13135 ;; 13136 *) 13137 lt_prog_compiler_pic='+Z' 13138 ;; 13139 esac 13140 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13141 lt_prog_compiler_static='$wl-a ${wl}archive' 13142 ;; 13143 13144 irix5* | irix6* | nonstopux*) 13145 lt_prog_compiler_wl='-Wl,' 13146 # PIC (with -KPIC) is the default. 13147 lt_prog_compiler_static='-non_shared' 13148 ;; 13149 13150 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13151 case $cc_basename in 13152 # old Intel for x86_64, which still supported -KPIC. 13153 ecc*) 13154 lt_prog_compiler_wl='-Wl,' 13155 lt_prog_compiler_pic='-KPIC' 13156 lt_prog_compiler_static='-static' 13157 ;; 13158 # flang / f18. f95 an alias for gfortran or flang on Debian 13159 flang* | f18* | f95*) 13160 lt_prog_compiler_wl='-Wl,' 13161 lt_prog_compiler_pic='-fPIC' 13162 lt_prog_compiler_static='-static' 13163 ;; 13164 # icc used to be incompatible with GCC. 13165 # ICC 10 doesn't accept -KPIC any more. 13166 icc* | ifort*) 13167 lt_prog_compiler_wl='-Wl,' 13168 lt_prog_compiler_pic='-fPIC' 13169 lt_prog_compiler_static='-static' 13170 ;; 13171 # Lahey Fortran 8.1. 13172 lf95*) 13173 lt_prog_compiler_wl='-Wl,' 13174 lt_prog_compiler_pic='--shared' 13175 lt_prog_compiler_static='--static' 13176 ;; 13177 nagfor*) 13178 # NAG Fortran compiler 13179 lt_prog_compiler_wl='-Wl,-Wl,,' 13180 lt_prog_compiler_pic='-PIC' 13181 lt_prog_compiler_static='-Bstatic' 13182 ;; 13183 tcc*) 13184 # Fabrice Bellard et al's Tiny C Compiler 13185 lt_prog_compiler_wl='-Wl,' 13186 lt_prog_compiler_pic='-fPIC' 13187 lt_prog_compiler_static='-static' 13188 ;; 13189 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13190 # Portland Group compilers (*not* the Pentium gcc compiler, 13191 # which looks to be a dead project) 13192 lt_prog_compiler_wl='-Wl,' 13193 lt_prog_compiler_pic='-fpic' 13194 lt_prog_compiler_static='-Bstatic' 13195 ;; 13196 ccc*) 13197 lt_prog_compiler_wl='-Wl,' 13198 # All Alpha code is PIC. 13199 lt_prog_compiler_static='-non_shared' 13200 ;; 13201 xl* | bgxl* | bgf* | mpixl*) 13202 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13203 lt_prog_compiler_wl='-Wl,' 13204 lt_prog_compiler_pic='-qpic' 13205 lt_prog_compiler_static='-qstaticlink' 13206 ;; 13207 *) 13208 case `$CC -V 2>&1 | $SED 5q` in 13209 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13210 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13211 lt_prog_compiler_pic='-KPIC' 13212 lt_prog_compiler_static='-Bstatic' 13213 lt_prog_compiler_wl='' 13214 ;; 13215 *Sun\ F* | *Sun*Fortran*) 13216 lt_prog_compiler_pic='-KPIC' 13217 lt_prog_compiler_static='-Bstatic' 13218 lt_prog_compiler_wl='-Qoption ld ' 13219 ;; 13220 *Sun\ C*) 13221 # Sun C 5.9 13222 lt_prog_compiler_pic='-KPIC' 13223 lt_prog_compiler_static='-Bstatic' 13224 lt_prog_compiler_wl='-Wl,' 13225 ;; 13226 *Intel*\ [CF]*Compiler*) 13227 lt_prog_compiler_wl='-Wl,' 13228 lt_prog_compiler_pic='-fPIC' 13229 lt_prog_compiler_static='-static' 13230 ;; 13231 *Portland\ Group*) 13232 lt_prog_compiler_wl='-Wl,' 13233 lt_prog_compiler_pic='-fpic' 13234 lt_prog_compiler_static='-Bstatic' 13235 ;; 13236 esac 13237 ;; 13238 esac 13239 ;; 13240 13241 newsos6) 13242 lt_prog_compiler_pic='-KPIC' 13243 lt_prog_compiler_static='-Bstatic' 13244 ;; 13245 13246 *nto* | *qnx*) 13247 # QNX uses GNU C++, but need to define -shared option too, otherwise 13248 # it will coredump. 13249 lt_prog_compiler_pic='-fPIC -shared' 13250 ;; 13251 13252 osf3* | osf4* | osf5*) 13253 lt_prog_compiler_wl='-Wl,' 13254 # All OSF/1 code is PIC. 13255 lt_prog_compiler_static='-non_shared' 13256 ;; 13257 13258 rdos*) 13259 lt_prog_compiler_static='-non_shared' 13260 ;; 13261 13262 solaris*) 13263 lt_prog_compiler_pic='-KPIC' 13264 lt_prog_compiler_static='-Bstatic' 13265 case $cc_basename in 13266 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13267 lt_prog_compiler_wl='-Qoption ld ';; 13268 *) 13269 lt_prog_compiler_wl='-Wl,';; 13270 esac 13271 ;; 13272 13273 sunos4*) 13274 lt_prog_compiler_wl='-Qoption ld ' 13275 lt_prog_compiler_pic='-PIC' 13276 lt_prog_compiler_static='-Bstatic' 13277 ;; 13278 13279 sysv4 | sysv4.2uw2* | sysv4.3*) 13280 lt_prog_compiler_wl='-Wl,' 13281 lt_prog_compiler_pic='-KPIC' 13282 lt_prog_compiler_static='-Bstatic' 13283 ;; 13284 13285 sysv4*MP*) 13286 if test -d /usr/nec; then 13287 lt_prog_compiler_pic='-Kconform_pic' 13288 lt_prog_compiler_static='-Bstatic' 13289 fi 13290 ;; 13291 13292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13293 lt_prog_compiler_wl='-Wl,' 13294 lt_prog_compiler_pic='-KPIC' 13295 lt_prog_compiler_static='-Bstatic' 13296 ;; 13297 13298 unicos*) 13299 lt_prog_compiler_wl='-Wl,' 13300 lt_prog_compiler_can_build_shared=no 13301 ;; 13302 13303 uts4*) 13304 lt_prog_compiler_pic='-pic' 13305 lt_prog_compiler_static='-Bstatic' 13306 ;; 13307 13308 *) 13309 lt_prog_compiler_can_build_shared=no 13310 ;; 13311 esac 13312 fi 13313 13314 case $host_os in 13315 # For platforms that do not support PIC, -DPIC is meaningless: 13316 *djgpp*) 13317 lt_prog_compiler_pic= 13318 ;; 13319 *) 13320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13321 ;; 13322 esac 13323 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13325 printf %s "checking for $compiler option to produce PIC... " >&6; } 13326 if test ${lt_cv_prog_compiler_pic+y} 13327 then : 13328 printf %s "(cached) " >&6 13329 else $as_nop 13330 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13331 fi 13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13333 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13334 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13335 13336 # 13337 # Check to make sure the PIC flag actually works. 13338 # 13339 if test -n "$lt_prog_compiler_pic"; then 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13341 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13342 if test ${lt_cv_prog_compiler_pic_works+y} 13343 then : 13344 printf %s "(cached) " >&6 13345 else $as_nop 13346 lt_cv_prog_compiler_pic_works=no 13347 ac_outfile=conftest.$ac_objext 13348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13349 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13350 # Insert the option either (1) after the last *FLAGS variable, or 13351 # (2) before a word containing "conftest.", or (3) at the end. 13352 # Note that $ac_compile itself does not contain backslashes and begins 13353 # with a dollar sign (not a hyphen), so the echo should work correctly. 13354 # The option is referenced via a variable to avoid confusing sed. 13355 lt_compile=`echo "$ac_compile" | $SED \ 13356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13358 -e 's:$: $lt_compiler_flag:'` 13359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13360 (eval "$lt_compile" 2>conftest.err) 13361 ac_status=$? 13362 cat conftest.err >&5 13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13364 if (exit $ac_status) && test -s "$ac_outfile"; then 13365 # The compiler can only warn and ignore the option if not recognized 13366 # So say no if there are warnings other than the usual output. 13367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13370 lt_cv_prog_compiler_pic_works=yes 13371 fi 13372 fi 13373 $RM conftest* 13374 13375 fi 13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13377 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13378 13379 if test yes = "$lt_cv_prog_compiler_pic_works"; then 13380 case $lt_prog_compiler_pic in 13381 "" | " "*) ;; 13382 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13383 esac 13384 else 13385 lt_prog_compiler_pic= 13386 lt_prog_compiler_can_build_shared=no 13387 fi 13388 13389 fi 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 # 13402 # Check to make sure the static flag actually works. 13403 # 13404 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13406 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13407 if test ${lt_cv_prog_compiler_static_works+y} 13408 then : 13409 printf %s "(cached) " >&6 13410 else $as_nop 13411 lt_cv_prog_compiler_static_works=no 13412 save_LDFLAGS=$LDFLAGS 13413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13414 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13416 # The linker can only warn and ignore the option if not recognized 13417 # So say no if there are warnings 13418 if test -s conftest.err; then 13419 # Append any errors to the config.log. 13420 cat conftest.err 1>&5 13421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13423 if diff conftest.exp conftest.er2 >/dev/null; then 13424 lt_cv_prog_compiler_static_works=yes 13425 fi 13426 else 13427 lt_cv_prog_compiler_static_works=yes 13428 fi 13429 fi 13430 $RM -r conftest* 13431 LDFLAGS=$save_LDFLAGS 13432 13433 fi 13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13435 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13436 13437 if test yes = "$lt_cv_prog_compiler_static_works"; then 13438 : 13439 else 13440 lt_prog_compiler_static= 13441 fi 13442 13443 13444 13445 13446 13447 13448 13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13450 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13451 if test ${lt_cv_prog_compiler_c_o+y} 13452 then : 13453 printf %s "(cached) " >&6 13454 else $as_nop 13455 lt_cv_prog_compiler_c_o=no 13456 $RM -r conftest 2>/dev/null 13457 mkdir conftest 13458 cd conftest 13459 mkdir out 13460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13461 13462 lt_compiler_flag="-o out/conftest2.$ac_objext" 13463 # Insert the option either (1) after the last *FLAGS variable, or 13464 # (2) before a word containing "conftest.", or (3) at the end. 13465 # Note that $ac_compile itself does not contain backslashes and begins 13466 # with a dollar sign (not a hyphen), so the echo should work correctly. 13467 lt_compile=`echo "$ac_compile" | $SED \ 13468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13470 -e 's:$: $lt_compiler_flag:'` 13471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13472 (eval "$lt_compile" 2>out/conftest.err) 13473 ac_status=$? 13474 cat out/conftest.err >&5 13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13476 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13477 then 13478 # The compiler can only warn and ignore the option if not recognized 13479 # So say no if there are warnings 13480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13483 lt_cv_prog_compiler_c_o=yes 13484 fi 13485 fi 13486 chmod u+w . 2>&5 13487 $RM conftest* 13488 # SGI C++ compiler will create directory out/ii_files/ for 13489 # template instantiation 13490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13491 $RM out/* && rmdir out 13492 cd .. 13493 $RM -r conftest 13494 $RM conftest* 13495 13496 fi 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13498 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13499 13500 13501 13502 13503 13504 13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13506 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13507 if test ${lt_cv_prog_compiler_c_o+y} 13508 then : 13509 printf %s "(cached) " >&6 13510 else $as_nop 13511 lt_cv_prog_compiler_c_o=no 13512 $RM -r conftest 2>/dev/null 13513 mkdir conftest 13514 cd conftest 13515 mkdir out 13516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13517 13518 lt_compiler_flag="-o out/conftest2.$ac_objext" 13519 # Insert the option either (1) after the last *FLAGS variable, or 13520 # (2) before a word containing "conftest.", or (3) at the end. 13521 # Note that $ac_compile itself does not contain backslashes and begins 13522 # with a dollar sign (not a hyphen), so the echo should work correctly. 13523 lt_compile=`echo "$ac_compile" | $SED \ 13524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13526 -e 's:$: $lt_compiler_flag:'` 13527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13528 (eval "$lt_compile" 2>out/conftest.err) 13529 ac_status=$? 13530 cat out/conftest.err >&5 13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13532 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13533 then 13534 # The compiler can only warn and ignore the option if not recognized 13535 # So say no if there are warnings 13536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13539 lt_cv_prog_compiler_c_o=yes 13540 fi 13541 fi 13542 chmod u+w . 2>&5 13543 $RM conftest* 13544 # SGI C++ compiler will create directory out/ii_files/ for 13545 # template instantiation 13546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13547 $RM out/* && rmdir out 13548 cd .. 13549 $RM -r conftest 13550 $RM conftest* 13551 13552 fi 13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13554 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13555 13556 13557 13558 13559 hard_links=nottested 13560 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 13561 # do not overwrite the value of need_locks provided by the user 13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13563 printf %s "checking if we can lock with hard links... " >&6; } 13564 hard_links=yes 13565 $RM conftest* 13566 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13567 touch conftest.a 13568 ln conftest.a conftest.b 2>&5 || hard_links=no 13569 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13571 printf "%s\n" "$hard_links" >&6; } 13572 if test no = "$hard_links"; then 13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13574 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13575 need_locks=warn 13576 fi 13577 else 13578 need_locks=no 13579 fi 13580 13581 13582 13583 13584 13585 13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13587 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13588 13589 runpath_var= 13590 allow_undefined_flag= 13591 always_export_symbols=no 13592 archive_cmds= 13593 archive_expsym_cmds= 13594 compiler_needs_object=no 13595 enable_shared_with_static_runtimes=no 13596 export_dynamic_flag_spec= 13597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13598 hardcode_automatic=no 13599 hardcode_direct=no 13600 hardcode_direct_absolute=no 13601 hardcode_libdir_flag_spec= 13602 hardcode_libdir_separator= 13603 hardcode_minus_L=no 13604 hardcode_shlibpath_var=unsupported 13605 inherit_rpath=no 13606 link_all_deplibs=unknown 13607 module_cmds= 13608 module_expsym_cmds= 13609 old_archive_from_new_cmds= 13610 old_archive_from_expsyms_cmds= 13611 thread_safe_flag_spec= 13612 whole_archive_flag_spec= 13613 # include_expsyms should be a list of space-separated symbols to be *always* 13614 # included in the symbol list 13615 include_expsyms= 13616 # exclude_expsyms can be an extended regexp of symbols to exclude 13617 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13618 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13619 # as well as any symbol that contains 'd'. 13620 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13622 # platforms (ab)use it in PIC code, but their linkers get confused if 13623 # the symbol is explicitly referenced. Since portable code cannot 13624 # rely on this symbol name, it's probably fine to never include it in 13625 # preloaded symbol tables. 13626 # Exclude shared library initialization/finalization symbols. 13627 extract_expsyms_cmds= 13628 13629 case $host_os in 13630 cygwin* | mingw* | pw32* | cegcc*) 13631 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 13632 # When not using gcc, we currently assume that we are using 13633 # Microsoft Visual C++ or Intel C++ Compiler. 13634 if test yes != "$GCC"; then 13635 with_gnu_ld=no 13636 fi 13637 ;; 13638 interix*) 13639 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 13640 with_gnu_ld=yes 13641 ;; 13642 openbsd* | bitrig*) 13643 with_gnu_ld=no 13644 ;; 13645 linux* | k*bsd*-gnu | gnu*) 13646 link_all_deplibs=no 13647 ;; 13648 esac 13649 13650 ld_shlibs=yes 13651 13652 # On some targets, GNU ld is compatible enough with the native linker 13653 # that we're better off using the native interface for both. 13654 lt_use_gnu_ld_interface=no 13655 if test yes = "$with_gnu_ld"; then 13656 case $host_os in 13657 aix*) 13658 # The AIX port of GNU ld has always aspired to compatibility 13659 # with the native linker. However, as the warning in the GNU ld 13660 # block says, versions before 2.19.5* couldn't really create working 13661 # shared libraries, regardless of the interface used. 13662 case `$LD -v 2>&1` in 13663 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13664 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13665 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13666 *) 13667 lt_use_gnu_ld_interface=yes 13668 ;; 13669 esac 13670 ;; 13671 *) 13672 lt_use_gnu_ld_interface=yes 13673 ;; 13674 esac 13675 fi 13676 13677 if test yes = "$lt_use_gnu_ld_interface"; then 13678 # If archive_cmds runs LD, not CC, wlarc should be empty 13679 wlarc='$wl' 13680 13681 # Set some defaults for GNU ld with shared library support. These 13682 # are reset later if shared libraries are not supported. Putting them 13683 # here allows them to be overridden if necessary. 13684 runpath_var=LD_RUN_PATH 13685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13686 export_dynamic_flag_spec='$wl--export-dynamic' 13687 # ancient GNU ld didn't support --whole-archive et. al. 13688 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13689 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13690 else 13691 whole_archive_flag_spec= 13692 fi 13693 supports_anon_versioning=no 13694 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 13695 *GNU\ gold*) supports_anon_versioning=yes ;; 13696 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13697 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13698 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13699 *\ 2.11.*) ;; # other 2.11 versions 13700 *) supports_anon_versioning=yes ;; 13701 esac 13702 13703 # See if GNU ld supports shared libraries. 13704 case $host_os in 13705 aix[3-9]*) 13706 # On AIX/PPC, the GNU linker is very broken 13707 if test ia64 != "$host_cpu"; then 13708 ld_shlibs=no 13709 cat <<_LT_EOF 1>&2 13710 13711 *** Warning: the GNU linker, at least up to release 2.19, is reported 13712 *** to be unable to reliably create shared libraries on AIX. 13713 *** Therefore, libtool is disabling shared libraries support. If you 13714 *** really care for shared libraries, you may want to install binutils 13715 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13716 *** You will then need to restart the configuration process. 13717 13718 _LT_EOF 13719 fi 13720 ;; 13721 13722 amigaos*) 13723 case $host_cpu in 13724 powerpc) 13725 # see comment about AmigaOS4 .so support 13726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13727 archive_expsym_cmds='' 13728 ;; 13729 m68k) 13730 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)' 13731 hardcode_libdir_flag_spec='-L$libdir' 13732 hardcode_minus_L=yes 13733 ;; 13734 esac 13735 ;; 13736 13737 beos*) 13738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13739 allow_undefined_flag=unsupported 13740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13741 # support --undefined. This deserves some investigation. FIXME 13742 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13743 else 13744 ld_shlibs=no 13745 fi 13746 ;; 13747 13748 cygwin* | mingw* | pw32* | cegcc*) 13749 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13750 # as there is no search path for DLLs. 13751 hardcode_libdir_flag_spec='-L$libdir' 13752 export_dynamic_flag_spec='$wl--export-all-symbols' 13753 allow_undefined_flag=unsupported 13754 always_export_symbols=no 13755 enable_shared_with_static_runtimes=yes 13756 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' 13757 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13758 13759 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13761 # If the export-symbols file already is a .def file, use it as 13762 # is; otherwise, prepend EXPORTS... 13763 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13764 cp $export_symbols $output_objdir/$soname.def; 13765 else 13766 echo EXPORTS > $output_objdir/$soname.def; 13767 cat $export_symbols >> $output_objdir/$soname.def; 13768 fi~ 13769 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13770 else 13771 ld_shlibs=no 13772 fi 13773 ;; 13774 13775 haiku*) 13776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13777 link_all_deplibs=yes 13778 ;; 13779 13780 os2*) 13781 hardcode_libdir_flag_spec='-L$libdir' 13782 hardcode_minus_L=yes 13783 allow_undefined_flag=unsupported 13784 shrext_cmds=.dll 13785 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13788 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13789 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13790 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13791 emximp -o $lib $output_objdir/$libname.def' 13792 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13793 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13794 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13795 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13796 prefix_cmds="$SED"~ 13797 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13798 prefix_cmds="$prefix_cmds -e 1d"; 13799 fi~ 13800 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13801 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13802 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13803 emximp -o $lib $output_objdir/$libname.def' 13804 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13805 enable_shared_with_static_runtimes=yes 13806 file_list_spec='@' 13807 ;; 13808 13809 interix[3-9]*) 13810 hardcode_direct=no 13811 hardcode_shlibpath_var=no 13812 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13813 export_dynamic_flag_spec='$wl-E' 13814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13815 # Instead, shared libraries are loaded at an image base (0x10000000 by 13816 # default) and relocated if they conflict, which is a slow very memory 13817 # consuming and fragmenting process. To avoid this, we pick a random, 13818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13819 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13821 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' 13822 ;; 13823 13824 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13825 tmp_diet=no 13826 if test linux-dietlibc = "$host_os"; then 13827 case $cc_basename in 13828 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13829 esac 13830 fi 13831 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13832 && test no = "$tmp_diet" 13833 then 13834 tmp_addflag=' $pic_flag' 13835 tmp_sharedflag='-shared' 13836 case $cc_basename,$host_cpu in 13837 pgcc*) # Portland Group C compiler 13838 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' 13839 tmp_addflag=' $pic_flag' 13840 ;; 13841 pgf77* | pgf90* | pgf95* | pgfortran*) 13842 # Portland Group f77 and f90 compilers 13843 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' 13844 tmp_addflag=' $pic_flag -Mnomain' ;; 13845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13846 tmp_addflag=' -i_dynamic' ;; 13847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13848 tmp_addflag=' -i_dynamic -nofor_main' ;; 13849 ifc* | ifort*) # Intel Fortran compiler 13850 tmp_addflag=' -nofor_main' ;; 13851 lf95*) # Lahey Fortran 8.1 13852 whole_archive_flag_spec= 13853 tmp_sharedflag='--shared' ;; 13854 nagfor*) # NAGFOR 5.3 13855 tmp_sharedflag='-Wl,-shared' ;; 13856 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13857 tmp_sharedflag='-qmkshrobj' 13858 tmp_addflag= ;; 13859 nvcc*) # Cuda Compiler Driver 2.2 13860 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' 13861 compiler_needs_object=yes 13862 ;; 13863 esac 13864 case `$CC -V 2>&1 | $SED 5q` in 13865 *Sun\ C*) # Sun C 5.9 13866 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' 13867 compiler_needs_object=yes 13868 tmp_sharedflag='-G' ;; 13869 *Sun\ F*) # Sun Fortran 8.3 13870 tmp_sharedflag='-G' ;; 13871 esac 13872 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13873 13874 if test yes = "$supports_anon_versioning"; then 13875 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13876 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13877 echo "local: *; };" >> $output_objdir/$libname.ver~ 13878 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13879 fi 13880 13881 case $cc_basename in 13882 tcc*) 13883 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13884 export_dynamic_flag_spec='-rdynamic' 13885 ;; 13886 xlf* | bgf* | bgxlf* | mpixlf*) 13887 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13888 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13889 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13890 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13891 if test yes = "$supports_anon_versioning"; then 13892 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13893 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13894 echo "local: *; };" >> $output_objdir/$libname.ver~ 13895 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13896 fi 13897 ;; 13898 esac 13899 else 13900 ld_shlibs=no 13901 fi 13902 ;; 13903 13904 netbsd* | netbsdelf*-gnu) 13905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13906 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13907 wlarc= 13908 else 13909 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13910 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13911 fi 13912 ;; 13913 13914 solaris*) 13915 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13916 ld_shlibs=no 13917 cat <<_LT_EOF 1>&2 13918 13919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 13920 *** create shared libraries on Solaris systems. Therefore, libtool 13921 *** is disabling shared libraries support. We urge you to upgrade GNU 13922 *** binutils to release 2.9.1 or newer. Another option is to modify 13923 *** your PATH or compiler configuration so that the native linker is 13924 *** used, and then restart. 13925 13926 _LT_EOF 13927 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13928 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13929 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13930 else 13931 ld_shlibs=no 13932 fi 13933 ;; 13934 13935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13936 case `$LD -v 2>&1` in 13937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13938 ld_shlibs=no 13939 cat <<_LT_EOF 1>&2 13940 13941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13942 *** reliably create shared libraries on SCO systems. Therefore, libtool 13943 *** is disabling shared libraries support. We urge you to upgrade GNU 13944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13945 *** your PATH or compiler configuration so that the native linker is 13946 *** used, and then restart. 13947 13948 _LT_EOF 13949 ;; 13950 *) 13951 # For security reasons, it is highly recommended that you always 13952 # use absolute paths for naming shared libraries, and exclude the 13953 # DT_RUNPATH tag from executables and libraries. But doing so 13954 # requires that you compile everything twice, which is a pain. 13955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13959 else 13960 ld_shlibs=no 13961 fi 13962 ;; 13963 esac 13964 ;; 13965 13966 sunos4*) 13967 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13968 wlarc= 13969 hardcode_direct=yes 13970 hardcode_shlibpath_var=no 13971 ;; 13972 13973 *) 13974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13977 else 13978 ld_shlibs=no 13979 fi 13980 ;; 13981 esac 13982 13983 if test no = "$ld_shlibs"; then 13984 runpath_var= 13985 hardcode_libdir_flag_spec= 13986 export_dynamic_flag_spec= 13987 whole_archive_flag_spec= 13988 fi 13989 else 13990 # PORTME fill in a description of your system's linker (not GNU ld) 13991 case $host_os in 13992 aix3*) 13993 allow_undefined_flag=unsupported 13994 always_export_symbols=yes 13995 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' 13996 # Note: this linker hardcodes the directories in LIBPATH if there 13997 # are no directories specified by -L. 13998 hardcode_minus_L=yes 13999 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 14000 # Neither direct hardcoding nor static linking is supported with a 14001 # broken collect2. 14002 hardcode_direct=unsupported 14003 fi 14004 ;; 14005 14006 aix[4-9]*) 14007 if test ia64 = "$host_cpu"; then 14008 # On IA64, the linker does run time linking by default, so we don't 14009 # have to do anything special. 14010 aix_use_runtimelinking=no 14011 exp_sym_flag='-Bexport' 14012 no_entry_flag= 14013 else 14014 # If we're using GNU nm, then we don't want the "-C" option. 14015 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14016 # Without the "-l" option, or with the "-B" option, AIX nm treats 14017 # weak defined symbols like other global defined symbols, whereas 14018 # GNU nm marks them as "W". 14019 # While the 'weak' keyword is ignored in the Export File, we need 14020 # it in the Import File for the 'aix-soname' feature, so we have 14021 # to replace the "-B" option with "-P" for AIX nm. 14022 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14023 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' 14024 else 14025 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' 14026 fi 14027 aix_use_runtimelinking=no 14028 14029 # Test if we are trying to use run time linking or normal 14030 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14031 # have runtime linking enabled, and use it for executables. 14032 # For shared libraries, we enable/disable runtime linking 14033 # depending on the kind of the shared library created - 14034 # when "with_aix_soname,aix_use_runtimelinking" is: 14035 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14036 # "aix,yes" lib.so shared, rtl:yes, for executables 14037 # lib.a static archive 14038 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14039 # lib.a(lib.so.V) shared, rtl:no, for executables 14040 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14041 # lib.a(lib.so.V) shared, rtl:no 14042 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14043 # lib.a static archive 14044 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14045 for ld_flag in $LDFLAGS; do 14046 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14047 aix_use_runtimelinking=yes 14048 break 14049 fi 14050 done 14051 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14052 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14053 # so we don't have lib.a shared libs to link our executables. 14054 # We have to force runtime linking in this case. 14055 aix_use_runtimelinking=yes 14056 LDFLAGS="$LDFLAGS -Wl,-brtl" 14057 fi 14058 ;; 14059 esac 14060 14061 exp_sym_flag='-bexport' 14062 no_entry_flag='-bnoentry' 14063 fi 14064 14065 # When large executables or shared objects are built, AIX ld can 14066 # have problems creating the table of contents. If linking a library 14067 # or program results in "error TOC overflow" add -mminimal-toc to 14068 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14069 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14070 14071 archive_cmds='' 14072 hardcode_direct=yes 14073 hardcode_direct_absolute=yes 14074 hardcode_libdir_separator=':' 14075 link_all_deplibs=yes 14076 file_list_spec='$wl-f,' 14077 case $with_aix_soname,$aix_use_runtimelinking in 14078 aix,*) ;; # traditional, no import file 14079 svr4,* | *,yes) # use import file 14080 # The Import File defines what to hardcode. 14081 hardcode_direct=no 14082 hardcode_direct_absolute=no 14083 ;; 14084 esac 14085 14086 if test yes = "$GCC"; then 14087 case $host_os in aix4.[012]|aix4.[012].*) 14088 # We only want to do this on AIX 4.2 and lower, the check 14089 # below for broken collect2 doesn't work under 4.3+ 14090 collect2name=`$CC -print-prog-name=collect2` 14091 if test -f "$collect2name" && 14092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14093 then 14094 # We have reworked collect2 14095 : 14096 else 14097 # We have old collect2 14098 hardcode_direct=unsupported 14099 # It fails to find uninstalled libraries when the uninstalled 14100 # path is not listed in the libpath. Setting hardcode_minus_L 14101 # to unsupported forces relinking 14102 hardcode_minus_L=yes 14103 hardcode_libdir_flag_spec='-L$libdir' 14104 hardcode_libdir_separator= 14105 fi 14106 ;; 14107 esac 14108 shared_flag='-shared' 14109 if test yes = "$aix_use_runtimelinking"; then 14110 shared_flag="$shared_flag "'$wl-G' 14111 fi 14112 # Need to ensure runtime linking is disabled for the traditional 14113 # shared library, or the linker may eventually find shared libraries 14114 # /with/ Import File - we do not want to mix them. 14115 shared_flag_aix='-shared' 14116 shared_flag_svr4='-shared $wl-G' 14117 else 14118 # not using gcc 14119 if test ia64 = "$host_cpu"; then 14120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14121 # chokes on -Wl,-G. The following line is correct: 14122 shared_flag='-G' 14123 else 14124 if test yes = "$aix_use_runtimelinking"; then 14125 shared_flag='$wl-G' 14126 else 14127 shared_flag='$wl-bM:SRE' 14128 fi 14129 shared_flag_aix='$wl-bM:SRE' 14130 shared_flag_svr4='$wl-G' 14131 fi 14132 fi 14133 14134 export_dynamic_flag_spec='$wl-bexpall' 14135 # It seems that -bexpall does not export symbols beginning with 14136 # underscore (_), so it is better to generate a list of symbols to export. 14137 always_export_symbols=yes 14138 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14139 # Warning - without using the other runtime loading flags (-brtl), 14140 # -berok will link without error, but may produce a broken library. 14141 allow_undefined_flag='-berok' 14142 # Determine the default libpath from the value encoded in an 14143 # empty executable. 14144 if test set = "${lt_cv_aix_libpath+set}"; then 14145 aix_libpath=$lt_cv_aix_libpath 14146 else 14147 if test ${lt_cv_aix_libpath_+y} 14148 then : 14149 printf %s "(cached) " >&6 14150 else $as_nop 14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14152 /* end confdefs.h. */ 14153 14154 int main(void) 14155 { 14156 14157 return 0; 14158 } 14159 _ACEOF 14160 if ac_fn_c_try_link "$LINENO" 14161 then : 14162 14163 lt_aix_libpath_sed=' 14164 /Import File Strings/,/^$/ { 14165 /^0/ { 14166 s/^0 *\([^ ]*\) *$/\1/ 14167 p 14168 } 14169 }' 14170 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14171 # Check for a 64-bit object if we didn't find anything. 14172 if test -z "$lt_cv_aix_libpath_"; then 14173 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14174 fi 14175 fi 14176 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14177 conftest$ac_exeext conftest.$ac_ext 14178 if test -z "$lt_cv_aix_libpath_"; then 14179 lt_cv_aix_libpath_=/usr/lib:/lib 14180 fi 14181 14182 fi 14183 14184 aix_libpath=$lt_cv_aix_libpath_ 14185 fi 14186 14187 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14188 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 14189 else 14190 if test ia64 = "$host_cpu"; then 14191 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14192 allow_undefined_flag="-z nodefs" 14193 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" 14194 else 14195 # Determine the default libpath from the value encoded in an 14196 # empty executable. 14197 if test set = "${lt_cv_aix_libpath+set}"; then 14198 aix_libpath=$lt_cv_aix_libpath 14199 else 14200 if test ${lt_cv_aix_libpath_+y} 14201 then : 14202 printf %s "(cached) " >&6 14203 else $as_nop 14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14205 /* end confdefs.h. */ 14206 14207 int main(void) 14208 { 14209 14210 return 0; 14211 } 14212 _ACEOF 14213 if ac_fn_c_try_link "$LINENO" 14214 then : 14215 14216 lt_aix_libpath_sed=' 14217 /Import File Strings/,/^$/ { 14218 /^0/ { 14219 s/^0 *\([^ ]*\) *$/\1/ 14220 p 14221 } 14222 }' 14223 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14224 # Check for a 64-bit object if we didn't find anything. 14225 if test -z "$lt_cv_aix_libpath_"; then 14226 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14227 fi 14228 fi 14229 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14230 conftest$ac_exeext conftest.$ac_ext 14231 if test -z "$lt_cv_aix_libpath_"; then 14232 lt_cv_aix_libpath_=/usr/lib:/lib 14233 fi 14234 14235 fi 14236 14237 aix_libpath=$lt_cv_aix_libpath_ 14238 fi 14239 14240 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14241 # Warning - without using the other run time loading flags, 14242 # -berok will link without error, but may produce a broken library. 14243 no_undefined_flag=' $wl-bernotok' 14244 allow_undefined_flag=' $wl-berok' 14245 if test yes = "$with_gnu_ld"; then 14246 # We only use this code for GNU lds that support --whole-archive. 14247 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14248 else 14249 # Exported symbols can be pulled into shared objects from archives 14250 whole_archive_flag_spec='$convenience' 14251 fi 14252 archive_cmds_need_lc=yes 14253 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14254 # -brtl affects multiple linker settings, -berok does not and is overridden later 14255 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14256 if test svr4 != "$with_aix_soname"; then 14257 # This is similar to how AIX traditionally builds its shared libraries. 14258 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' 14259 fi 14260 if test aix != "$with_aix_soname"; then 14261 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' 14262 else 14263 # used by -dlpreopen to get the symbols 14264 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14265 fi 14266 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14267 fi 14268 fi 14269 ;; 14270 14271 amigaos*) 14272 case $host_cpu in 14273 powerpc) 14274 # see comment about AmigaOS4 .so support 14275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14276 archive_expsym_cmds='' 14277 ;; 14278 m68k) 14279 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)' 14280 hardcode_libdir_flag_spec='-L$libdir' 14281 hardcode_minus_L=yes 14282 ;; 14283 esac 14284 ;; 14285 14286 bsdi[45]*) 14287 export_dynamic_flag_spec=-rdynamic 14288 ;; 14289 14290 cygwin* | mingw* | pw32* | cegcc*) 14291 # When not using gcc, we currently assume that we are using 14292 # Microsoft Visual C++ or Intel C++ Compiler. 14293 # hardcode_libdir_flag_spec is actually meaningless, as there is 14294 # no search path for DLLs. 14295 case $cc_basename in 14296 cl* | icl*) 14297 # Native MSVC or ICC 14298 hardcode_libdir_flag_spec=' ' 14299 allow_undefined_flag=unsupported 14300 always_export_symbols=yes 14301 file_list_spec='@' 14302 # Tell ltmain to make .lib files, not .a files. 14303 libext=lib 14304 # Tell ltmain to make .dll files, not .so files. 14305 shrext_cmds=.dll 14306 # FIXME: Setting linknames here is a bad hack. 14307 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14308 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14309 cp "$export_symbols" "$output_objdir/$soname.def"; 14310 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14311 else 14312 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14313 fi~ 14314 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14315 linknames=' 14316 # The linker will not automatically build a static lib if we build a DLL. 14317 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14318 enable_shared_with_static_runtimes=yes 14319 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14321 # Don't use ranlib 14322 old_postinstall_cmds='chmod 644 $oldlib' 14323 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14324 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14325 case $lt_outputfile in 14326 *.exe|*.EXE) ;; 14327 *) 14328 lt_outputfile=$lt_outputfile.exe 14329 lt_tool_outputfile=$lt_tool_outputfile.exe 14330 ;; 14331 esac~ 14332 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14333 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14334 $RM "$lt_outputfile.manifest"; 14335 fi' 14336 ;; 14337 *) 14338 # Assume MSVC and ICC wrapper 14339 hardcode_libdir_flag_spec=' ' 14340 allow_undefined_flag=unsupported 14341 # Tell ltmain to make .lib files, not .a files. 14342 libext=lib 14343 # Tell ltmain to make .dll files, not .so files. 14344 shrext_cmds=.dll 14345 # FIXME: Setting linknames here is a bad hack. 14346 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14347 # The linker will automatically build a .lib file if we build a DLL. 14348 old_archive_from_new_cmds='true' 14349 # FIXME: Should let the user specify the lib program. 14350 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14351 enable_shared_with_static_runtimes=yes 14352 ;; 14353 esac 14354 ;; 14355 14356 darwin* | rhapsody*) 14357 14358 14359 archive_cmds_need_lc=no 14360 hardcode_direct=no 14361 hardcode_automatic=yes 14362 hardcode_shlibpath_var=unsupported 14363 if test yes = "$lt_cv_ld_force_load"; then 14364 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\"`' 14365 14366 else 14367 whole_archive_flag_spec='' 14368 fi 14369 link_all_deplibs=yes 14370 allow_undefined_flag=$_lt_dar_allow_undefined 14371 case $cc_basename in 14372 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14373 *) _lt_dar_can_shared=$GCC ;; 14374 esac 14375 if test yes = "$_lt_dar_can_shared"; then 14376 output_verbose_link_cmd=func_echo_all 14377 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14378 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14379 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" 14380 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" 14381 14382 else 14383 ld_shlibs=no 14384 fi 14385 14386 ;; 14387 14388 dgux*) 14389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14390 hardcode_libdir_flag_spec='-L$libdir' 14391 hardcode_shlibpath_var=no 14392 ;; 14393 14394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14395 # support. Future versions do this automatically, but an explicit c++rt0.o 14396 # does not break anything, and helps significantly (at the cost of a little 14397 # extra space). 14398 freebsd2.2*) 14399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14400 hardcode_libdir_flag_spec='-R$libdir' 14401 hardcode_direct=yes 14402 hardcode_shlibpath_var=no 14403 ;; 14404 14405 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14406 freebsd2.*) 14407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14408 hardcode_direct=yes 14409 hardcode_minus_L=yes 14410 hardcode_shlibpath_var=no 14411 ;; 14412 14413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14414 freebsd* | dragonfly* | midnightbsd*) 14415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14416 hardcode_libdir_flag_spec='-R$libdir' 14417 hardcode_direct=yes 14418 hardcode_shlibpath_var=no 14419 ;; 14420 14421 hpux9*) 14422 if test yes = "$GCC"; then 14423 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' 14424 else 14425 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' 14426 fi 14427 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14428 hardcode_libdir_separator=: 14429 hardcode_direct=yes 14430 14431 # hardcode_minus_L: Not really in the search PATH, 14432 # but as the default location of the library. 14433 hardcode_minus_L=yes 14434 export_dynamic_flag_spec='$wl-E' 14435 ;; 14436 14437 hpux10*) 14438 if test yes,no = "$GCC,$with_gnu_ld"; then 14439 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14440 else 14441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14442 fi 14443 if test no = "$with_gnu_ld"; then 14444 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14445 hardcode_libdir_separator=: 14446 hardcode_direct=yes 14447 hardcode_direct_absolute=yes 14448 export_dynamic_flag_spec='$wl-E' 14449 # hardcode_minus_L: Not really in the search PATH, 14450 # but as the default location of the library. 14451 hardcode_minus_L=yes 14452 fi 14453 ;; 14454 14455 hpux11*) 14456 if test yes,no = "$GCC,$with_gnu_ld"; then 14457 case $host_cpu in 14458 hppa*64*) 14459 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14460 ;; 14461 ia64*) 14462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14463 ;; 14464 *) 14465 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14466 ;; 14467 esac 14468 else 14469 case $host_cpu in 14470 hppa*64*) 14471 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14472 ;; 14473 ia64*) 14474 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14475 ;; 14476 *) 14477 14478 # Older versions of the 11.00 compiler do not understand -b yet 14479 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14481 printf %s "checking if $CC understands -b... " >&6; } 14482 if test ${lt_cv_prog_compiler__b+y} 14483 then : 14484 printf %s "(cached) " >&6 14485 else $as_nop 14486 lt_cv_prog_compiler__b=no 14487 save_LDFLAGS=$LDFLAGS 14488 LDFLAGS="$LDFLAGS -b" 14489 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14491 # The linker can only warn and ignore the option if not recognized 14492 # So say no if there are warnings 14493 if test -s conftest.err; then 14494 # Append any errors to the config.log. 14495 cat conftest.err 1>&5 14496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14498 if diff conftest.exp conftest.er2 >/dev/null; then 14499 lt_cv_prog_compiler__b=yes 14500 fi 14501 else 14502 lt_cv_prog_compiler__b=yes 14503 fi 14504 fi 14505 $RM -r conftest* 14506 LDFLAGS=$save_LDFLAGS 14507 14508 fi 14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14510 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 14511 14512 if test yes = "$lt_cv_prog_compiler__b"; then 14513 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14514 else 14515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14516 fi 14517 14518 ;; 14519 esac 14520 fi 14521 if test no = "$with_gnu_ld"; then 14522 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14523 hardcode_libdir_separator=: 14524 14525 case $host_cpu in 14526 hppa*64*|ia64*) 14527 hardcode_direct=no 14528 hardcode_shlibpath_var=no 14529 ;; 14530 *) 14531 hardcode_direct=yes 14532 hardcode_direct_absolute=yes 14533 export_dynamic_flag_spec='$wl-E' 14534 14535 # hardcode_minus_L: Not really in the search PATH, 14536 # but as the default location of the library. 14537 hardcode_minus_L=yes 14538 ;; 14539 esac 14540 fi 14541 ;; 14542 14543 irix5* | irix6* | nonstopux*) 14544 if test yes = "$GCC"; then 14545 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' 14546 # Try to use the -exported_symbol ld option, if it does not 14547 # work, assume that -exports_file does not work either and 14548 # implicitly export all symbols. 14549 # This should be the same for all languages, so no per-tag cache variable. 14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14551 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14552 if test ${lt_cv_irix_exported_symbol+y} 14553 then : 14554 printf %s "(cached) " >&6 14555 else $as_nop 14556 save_LDFLAGS=$LDFLAGS 14557 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14559 /* end confdefs.h. */ 14560 int foo (void) { return 0; } 14561 _ACEOF 14562 if ac_fn_c_try_link "$LINENO" 14563 then : 14564 lt_cv_irix_exported_symbol=yes 14565 else $as_nop 14566 lt_cv_irix_exported_symbol=no 14567 fi 14568 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14569 conftest$ac_exeext conftest.$ac_ext 14570 LDFLAGS=$save_LDFLAGS 14571 fi 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14573 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 14574 if test yes = "$lt_cv_irix_exported_symbol"; then 14575 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' 14576 fi 14577 link_all_deplibs=no 14578 else 14579 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' 14580 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' 14581 fi 14582 archive_cmds_need_lc='no' 14583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14584 hardcode_libdir_separator=: 14585 inherit_rpath=yes 14586 link_all_deplibs=yes 14587 ;; 14588 14589 linux*) 14590 case $cc_basename in 14591 tcc*) 14592 # Fabrice Bellard et al's Tiny C Compiler 14593 ld_shlibs=yes 14594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14596 ;; 14597 esac 14598 ;; 14599 14600 netbsd* | netbsdelf*-gnu) 14601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14603 else 14604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14605 fi 14606 hardcode_libdir_flag_spec='-R$libdir' 14607 hardcode_direct=yes 14608 hardcode_shlibpath_var=no 14609 ;; 14610 14611 newsos6) 14612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14613 hardcode_direct=yes 14614 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14615 hardcode_libdir_separator=: 14616 hardcode_shlibpath_var=no 14617 ;; 14618 14619 *nto* | *qnx*) 14620 ;; 14621 14622 openbsd* | bitrig*) 14623 if test -f /usr/libexec/ld.so; then 14624 hardcode_direct=yes 14625 hardcode_shlibpath_var=no 14626 hardcode_direct_absolute=yes 14627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14629 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14630 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14631 export_dynamic_flag_spec='$wl-E' 14632 else 14633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14634 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14635 fi 14636 else 14637 ld_shlibs=no 14638 fi 14639 ;; 14640 14641 os2*) 14642 hardcode_libdir_flag_spec='-L$libdir' 14643 hardcode_minus_L=yes 14644 allow_undefined_flag=unsupported 14645 shrext_cmds=.dll 14646 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14647 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14648 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14649 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14650 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14651 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14652 emximp -o $lib $output_objdir/$libname.def' 14653 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14654 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14655 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14656 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14657 prefix_cmds="$SED"~ 14658 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14659 prefix_cmds="$prefix_cmds -e 1d"; 14660 fi~ 14661 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14662 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14663 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14664 emximp -o $lib $output_objdir/$libname.def' 14665 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14666 enable_shared_with_static_runtimes=yes 14667 file_list_spec='@' 14668 ;; 14669 14670 osf3*) 14671 if test yes = "$GCC"; then 14672 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14673 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' 14674 else 14675 allow_undefined_flag=' -expect_unresolved \*' 14676 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' 14677 fi 14678 archive_cmds_need_lc='no' 14679 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14680 hardcode_libdir_separator=: 14681 ;; 14682 14683 osf4* | osf5*) # as osf3* with the addition of -msym flag 14684 if test yes = "$GCC"; then 14685 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14686 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' 14687 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14688 else 14689 allow_undefined_flag=' -expect_unresolved \*' 14690 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' 14691 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~ 14692 $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' 14693 14694 # Both c and cxx compiler support -rpath directly 14695 hardcode_libdir_flag_spec='-rpath $libdir' 14696 fi 14697 archive_cmds_need_lc='no' 14698 hardcode_libdir_separator=: 14699 ;; 14700 14701 solaris*) 14702 no_undefined_flag=' -z defs' 14703 if test yes = "$GCC"; then 14704 wlarc='$wl' 14705 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14707 $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' 14708 else 14709 case `$CC -V 2>&1` in 14710 *"Compilers 5.0"*) 14711 wlarc='' 14712 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14713 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14714 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14715 ;; 14716 *) 14717 wlarc='$wl' 14718 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14719 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14720 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14721 ;; 14722 esac 14723 fi 14724 hardcode_libdir_flag_spec='-R$libdir' 14725 hardcode_shlibpath_var=no 14726 case $host_os in 14727 solaris2.[0-5] | solaris2.[0-5].*) ;; 14728 *) 14729 # The compiler driver will combine and reorder linker options, 14730 # but understands '-z linker_flag'. GCC discards it without '$wl', 14731 # but is careful enough not to reorder. 14732 # Supported since Solaris 2.6 (maybe 2.5.1?) 14733 if test yes = "$GCC"; then 14734 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14735 else 14736 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14737 fi 14738 ;; 14739 esac 14740 link_all_deplibs=yes 14741 ;; 14742 14743 sunos4*) 14744 if test sequent = "$host_vendor"; then 14745 # Use $CC to link under sequent, because it throws in some extra .o 14746 # files that make .init and .fini sections work. 14747 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14748 else 14749 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14750 fi 14751 hardcode_libdir_flag_spec='-L$libdir' 14752 hardcode_direct=yes 14753 hardcode_minus_L=yes 14754 hardcode_shlibpath_var=no 14755 ;; 14756 14757 sysv4) 14758 case $host_vendor in 14759 sni) 14760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14761 hardcode_direct=yes # is this really true??? 14762 ;; 14763 siemens) 14764 ## LD is ld it makes a PLAMLIB 14765 ## CC just makes a GrossModule. 14766 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14767 reload_cmds='$CC -r -o $output$reload_objs' 14768 hardcode_direct=no 14769 ;; 14770 motorola) 14771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14772 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14773 ;; 14774 esac 14775 runpath_var='LD_RUN_PATH' 14776 hardcode_shlibpath_var=no 14777 ;; 14778 14779 sysv4.3*) 14780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14781 hardcode_shlibpath_var=no 14782 export_dynamic_flag_spec='-Bexport' 14783 ;; 14784 14785 sysv4*MP*) 14786 if test -d /usr/nec; then 14787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14788 hardcode_shlibpath_var=no 14789 runpath_var=LD_RUN_PATH 14790 hardcode_runpath_var=yes 14791 ld_shlibs=yes 14792 fi 14793 ;; 14794 14795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14796 no_undefined_flag='$wl-z,text' 14797 archive_cmds_need_lc=no 14798 hardcode_shlibpath_var=no 14799 runpath_var='LD_RUN_PATH' 14800 14801 if test yes = "$GCC"; then 14802 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14803 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14804 else 14805 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14806 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14807 fi 14808 ;; 14809 14810 sysv5* | sco3.2v5* | sco5v6*) 14811 # Note: We CANNOT use -z defs as we might desire, because we do not 14812 # link with -lc, and that would cause any symbols used from libc to 14813 # always be unresolved, which means just about no library would 14814 # ever link correctly. If we're not using GNU ld we use -z text 14815 # though, which does catch some bad symbols but isn't as heavy-handed 14816 # as -z defs. 14817 no_undefined_flag='$wl-z,text' 14818 allow_undefined_flag='$wl-z,nodefs' 14819 archive_cmds_need_lc=no 14820 hardcode_shlibpath_var=no 14821 hardcode_libdir_flag_spec='$wl-R,$libdir' 14822 hardcode_libdir_separator=':' 14823 link_all_deplibs=yes 14824 export_dynamic_flag_spec='$wl-Bexport' 14825 runpath_var='LD_RUN_PATH' 14826 14827 if test yes = "$GCC"; then 14828 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14829 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14830 else 14831 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14832 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14833 fi 14834 ;; 14835 14836 uts4*) 14837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14838 hardcode_libdir_flag_spec='-L$libdir' 14839 hardcode_shlibpath_var=no 14840 ;; 14841 14842 *) 14843 ld_shlibs=no 14844 ;; 14845 esac 14846 14847 if test sni = "$host_vendor"; then 14848 case $host in 14849 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14850 export_dynamic_flag_spec='$wl-Blargedynsym' 14851 ;; 14852 esac 14853 fi 14854 fi 14855 14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14857 printf "%s\n" "$ld_shlibs" >&6; } 14858 test no = "$ld_shlibs" && can_build_shared=no 14859 14860 with_gnu_ld=$with_gnu_ld 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 # 14877 # Do we need to explicitly link libc? 14878 # 14879 case "x$archive_cmds_need_lc" in 14880 x|xyes) 14881 # Assume -lc should be added 14882 archive_cmds_need_lc=yes 14883 14884 if test yes,yes = "$GCC,$enable_shared"; then 14885 case $archive_cmds in 14886 *'~'*) 14887 # FIXME: we may have to deal with multi-command sequences. 14888 ;; 14889 '$CC '*) 14890 # Test whether the compiler implicitly links with -lc since on some 14891 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14892 # to ld, don't add -lc before -lgcc. 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14894 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 14895 if test ${lt_cv_archive_cmds_need_lc+y} 14896 then : 14897 printf %s "(cached) " >&6 14898 else $as_nop 14899 $RM conftest* 14900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14901 14902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14903 (eval $ac_compile) 2>&5 14904 ac_status=$? 14905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14906 test $ac_status = 0; } 2>conftest.err; then 14907 soname=conftest 14908 lib=conftest 14909 libobjs=conftest.$ac_objext 14910 deplibs= 14911 wl=$lt_prog_compiler_wl 14912 pic_flag=$lt_prog_compiler_pic 14913 compiler_flags=-v 14914 linker_flags=-v 14915 verstring= 14916 output_objdir=. 14917 libname=conftest 14918 lt_save_allow_undefined_flag=$allow_undefined_flag 14919 allow_undefined_flag= 14920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14921 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14922 ac_status=$? 14923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14924 test $ac_status = 0; } 14925 then 14926 lt_cv_archive_cmds_need_lc=no 14927 else 14928 lt_cv_archive_cmds_need_lc=yes 14929 fi 14930 allow_undefined_flag=$lt_save_allow_undefined_flag 14931 else 14932 cat conftest.err 1>&5 14933 fi 14934 $RM conftest* 14935 14936 fi 14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14938 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 14939 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14940 ;; 14941 esac 14942 fi 14943 ;; 14944 esac 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15098 printf %s "checking dynamic linker characteristics... " >&6; } 15099 15100 if test yes = "$GCC"; then 15101 case $host_os in 15102 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15103 *) lt_awk_arg='/^libraries:/' ;; 15104 esac 15105 case $host_os in 15106 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15107 *) lt_sed_strip_eq='s|=/|/|g' ;; 15108 esac 15109 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15110 case $lt_search_path_spec in 15111 *\;*) 15112 # if the path contains ";" then we assume it to be the separator 15113 # otherwise default to the standard path separator (i.e. ":") - it is 15114 # assumed that no part of a normal pathname contains ";" but that should 15115 # okay in the real world where ";" in dirpaths is itself problematic. 15116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15117 ;; 15118 *) 15119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15120 ;; 15121 esac 15122 # Ok, now we have the path, separated by spaces, we can step through it 15123 # and add multilib dir if necessary... 15124 lt_tmp_lt_search_path_spec= 15125 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15126 # ...but if some path component already ends with the multilib dir we assume 15127 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15128 case "$lt_multi_os_dir; $lt_search_path_spec " in 15129 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15130 lt_multi_os_dir= 15131 ;; 15132 esac 15133 for lt_sys_path in $lt_search_path_spec; do 15134 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15136 elif test -n "$lt_multi_os_dir"; then 15137 test -d "$lt_sys_path" && \ 15138 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15139 fi 15140 done 15141 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15142 BEGIN {RS = " "; FS = "/|\n";} { 15143 lt_foo = ""; 15144 lt_count = 0; 15145 for (lt_i = NF; lt_i > 0; lt_i--) { 15146 if ($lt_i != "" && $lt_i != ".") { 15147 if ($lt_i == "..") { 15148 lt_count++; 15149 } else { 15150 if (lt_count == 0) { 15151 lt_foo = "/" $lt_i lt_foo; 15152 } else { 15153 lt_count--; 15154 } 15155 } 15156 } 15157 } 15158 if (lt_foo != "") { lt_freq[lt_foo]++; } 15159 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15160 }'` 15161 # AWK program above erroneously prepends '/' to C:/dos/paths 15162 # for these hosts. 15163 case $host_os in 15164 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15165 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15166 esac 15167 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15168 else 15169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15170 fi 15171 library_names_spec= 15172 libname_spec='lib$name' 15173 soname_spec= 15174 shrext_cmds=.so 15175 postinstall_cmds= 15176 postuninstall_cmds= 15177 finish_cmds= 15178 finish_eval= 15179 shlibpath_var= 15180 shlibpath_overrides_runpath=unknown 15181 version_type=none 15182 dynamic_linker="$host_os ld.so" 15183 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15184 need_lib_prefix=unknown 15185 hardcode_into_libs=no 15186 15187 # when you set need_version to no, make sure it does not cause -set_version 15188 # flags to be left without arguments 15189 need_version=unknown 15190 15191 15192 15193 case $host_os in 15194 aix3*) 15195 version_type=linux # correct to gnu/linux during the next big refactor 15196 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15197 shlibpath_var=LIBPATH 15198 15199 # AIX 3 has no versioning support, so we append a major version to the name. 15200 soname_spec='$libname$release$shared_ext$major' 15201 ;; 15202 15203 aix[4-9]*) 15204 version_type=linux # correct to gnu/linux during the next big refactor 15205 need_lib_prefix=no 15206 need_version=no 15207 hardcode_into_libs=yes 15208 if test ia64 = "$host_cpu"; then 15209 # AIX 5 supports IA64 15210 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15211 shlibpath_var=LD_LIBRARY_PATH 15212 else 15213 # With GCC up to 2.95.x, collect2 would create an import file 15214 # for dependence libraries. The import file would start with 15215 # the line '#! .'. This would cause the generated library to 15216 # depend on '.', always an invalid library. This was fixed in 15217 # development snapshots of GCC prior to 3.0. 15218 case $host_os in 15219 aix4 | aix4.[01] | aix4.[01].*) 15220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15221 echo ' yes ' 15222 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15223 : 15224 else 15225 can_build_shared=no 15226 fi 15227 ;; 15228 esac 15229 # Using Import Files as archive members, it is possible to support 15230 # filename-based versioning of shared library archives on AIX. While 15231 # this would work for both with and without runtime linking, it will 15232 # prevent static linking of such archives. So we do filename-based 15233 # shared library versioning with .so extension only, which is used 15234 # when both runtime linking and shared linking is enabled. 15235 # Unfortunately, runtime linking may impact performance, so we do 15236 # not want this to be the default eventually. Also, we use the 15237 # versioned .so libs for executables only if there is the -brtl 15238 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15239 # To allow for filename-based versioning support, we need to create 15240 # libNAME.so.V as an archive file, containing: 15241 # *) an Import File, referring to the versioned filename of the 15242 # archive as well as the shared archive member, telling the 15243 # bitwidth (32 or 64) of that shared object, and providing the 15244 # list of exported symbols of that shared object, eventually 15245 # decorated with the 'weak' keyword 15246 # *) the shared object with the F_LOADONLY flag set, to really avoid 15247 # it being seen by the linker. 15248 # At run time we better use the real file rather than another symlink, 15249 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15250 15251 case $with_aix_soname,$aix_use_runtimelinking in 15252 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15253 # soname into executable. Probably we can add versioning support to 15254 # collect2, so additional links can be useful in future. 15255 aix,yes) # traditional libtool 15256 dynamic_linker='AIX unversionable lib.so' 15257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15258 # instead of lib<name>.a to let people know that these are not 15259 # typical AIX shared libraries. 15260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15261 ;; 15262 aix,no) # traditional AIX only 15263 dynamic_linker='AIX lib.a(lib.so.V)' 15264 # We preserve .a as extension for shared libraries through AIX4.2 15265 # and later when we are not doing run time linking. 15266 library_names_spec='$libname$release.a $libname.a' 15267 soname_spec='$libname$release$shared_ext$major' 15268 ;; 15269 svr4,*) # full svr4 only 15270 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15271 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15272 # We do not specify a path in Import Files, so LIBPATH fires. 15273 shlibpath_overrides_runpath=yes 15274 ;; 15275 *,yes) # both, prefer svr4 15276 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15277 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15278 # unpreferred sharedlib libNAME.a needs extra handling 15279 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"' 15280 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"' 15281 # We do not specify a path in Import Files, so LIBPATH fires. 15282 shlibpath_overrides_runpath=yes 15283 ;; 15284 *,no) # both, prefer aix 15285 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15286 library_names_spec='$libname$release.a $libname.a' 15287 soname_spec='$libname$release$shared_ext$major' 15288 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15289 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)' 15290 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"' 15291 ;; 15292 esac 15293 shlibpath_var=LIBPATH 15294 fi 15295 ;; 15296 15297 amigaos*) 15298 case $host_cpu in 15299 powerpc) 15300 # Since July 2007 AmigaOS4 officially supports .so libraries. 15301 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15303 ;; 15304 m68k) 15305 library_names_spec='$libname.ixlibrary $libname.a' 15306 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15307 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' 15308 ;; 15309 esac 15310 ;; 15311 15312 beos*) 15313 library_names_spec='$libname$shared_ext' 15314 dynamic_linker="$host_os ld.so" 15315 shlibpath_var=LIBRARY_PATH 15316 ;; 15317 15318 bsdi[45]*) 15319 version_type=linux # correct to gnu/linux during the next big refactor 15320 need_version=no 15321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15322 soname_spec='$libname$release$shared_ext$major' 15323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15324 shlibpath_var=LD_LIBRARY_PATH 15325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15327 # the default ld.so.conf also contains /usr/contrib/lib and 15328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15329 # libtool to hard-code these into programs 15330 ;; 15331 15332 cygwin* | mingw* | pw32* | cegcc*) 15333 version_type=windows 15334 shrext_cmds=.dll 15335 need_version=no 15336 need_lib_prefix=no 15337 15338 case $GCC,$cc_basename in 15339 yes,*) 15340 # gcc 15341 library_names_spec='$libname.dll.a' 15342 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15343 postinstall_cmds='base_file=`basename \$file`~ 15344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15345 dldir=$destdir/`dirname \$dlpath`~ 15346 test -d \$dldir || mkdir -p \$dldir~ 15347 $install_prog $dir/$dlname \$dldir/$dlname~ 15348 chmod a+x \$dldir/$dlname~ 15349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15351 fi' 15352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15353 dlpath=$dir/\$dldll~ 15354 $RM \$dlpath' 15355 shlibpath_overrides_runpath=yes 15356 15357 case $host_os in 15358 cygwin*) 15359 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15360 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15361 15362 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15363 ;; 15364 mingw* | cegcc*) 15365 # MinGW DLLs use traditional 'lib' prefix 15366 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15367 ;; 15368 pw32*) 15369 # pw32 DLLs use 'pw' prefix rather than 'lib' 15370 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15371 ;; 15372 esac 15373 dynamic_linker='Win32 ld.exe' 15374 ;; 15375 15376 *,cl* | *,icl*) 15377 # Native MSVC or ICC 15378 libname_spec='$name' 15379 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15380 library_names_spec='$libname.dll.lib' 15381 15382 case $build_os in 15383 mingw*) 15384 sys_lib_search_path_spec= 15385 lt_save_ifs=$IFS 15386 IFS=';' 15387 for lt_path in $LIB 15388 do 15389 IFS=$lt_save_ifs 15390 # Let DOS variable expansion print the short 8.3 style file name. 15391 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15392 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15393 done 15394 IFS=$lt_save_ifs 15395 # Convert to MSYS style. 15396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15397 ;; 15398 cygwin*) 15399 # Convert to unix form, then to dos form, then back to unix form 15400 # but this time dos style (no spaces!) so that the unix form looks 15401 # like /cygdrive/c/PROGRA~1:/cygdr... 15402 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15403 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15404 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15405 ;; 15406 *) 15407 sys_lib_search_path_spec=$LIB 15408 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15409 # It is most probably a Windows format PATH. 15410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15411 else 15412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15413 fi 15414 # FIXME: find the short name or the path components, as spaces are 15415 # common. (e.g. "Program Files" -> "PROGRA~1") 15416 ;; 15417 esac 15418 15419 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15420 postinstall_cmds='base_file=`basename \$file`~ 15421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15422 dldir=$destdir/`dirname \$dlpath`~ 15423 test -d \$dldir || mkdir -p \$dldir~ 15424 $install_prog $dir/$dlname \$dldir/$dlname' 15425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15426 dlpath=$dir/\$dldll~ 15427 $RM \$dlpath' 15428 shlibpath_overrides_runpath=yes 15429 dynamic_linker='Win32 link.exe' 15430 ;; 15431 15432 *) 15433 # Assume MSVC and ICC wrapper 15434 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15435 dynamic_linker='Win32 ld.exe' 15436 ;; 15437 esac 15438 # FIXME: first we should search . and the directory the executable is in 15439 shlibpath_var=PATH 15440 ;; 15441 15442 darwin* | rhapsody*) 15443 dynamic_linker="$host_os dyld" 15444 version_type=darwin 15445 need_lib_prefix=no 15446 need_version=no 15447 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15448 soname_spec='$libname$release$major$shared_ext' 15449 shlibpath_overrides_runpath=yes 15450 shlibpath_var=DYLD_LIBRARY_PATH 15451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15452 15453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15455 ;; 15456 15457 dgux*) 15458 version_type=linux # correct to gnu/linux during the next big refactor 15459 need_lib_prefix=no 15460 need_version=no 15461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15462 soname_spec='$libname$release$shared_ext$major' 15463 shlibpath_var=LD_LIBRARY_PATH 15464 ;; 15465 15466 freebsd* | dragonfly* | midnightbsd*) 15467 # DragonFly does not have aout. When/if they implement a new 15468 # versioning mechanism, adjust this. 15469 if test -x /usr/bin/objformat; then 15470 objformat=`/usr/bin/objformat` 15471 else 15472 case $host_os in 15473 freebsd[23].*) objformat=aout ;; 15474 *) objformat=elf ;; 15475 esac 15476 fi 15477 version_type=freebsd-$objformat 15478 case $version_type in 15479 freebsd-elf*) 15480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15481 soname_spec='$libname$release$shared_ext$major' 15482 need_version=no 15483 need_lib_prefix=no 15484 ;; 15485 freebsd-*) 15486 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15487 need_version=yes 15488 ;; 15489 esac 15490 shlibpath_var=LD_LIBRARY_PATH 15491 case $host_os in 15492 freebsd2.*) 15493 shlibpath_overrides_runpath=yes 15494 ;; 15495 freebsd3.[01]* | freebsdelf3.[01]*) 15496 shlibpath_overrides_runpath=yes 15497 hardcode_into_libs=yes 15498 ;; 15499 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15500 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15501 shlibpath_overrides_runpath=no 15502 hardcode_into_libs=yes 15503 ;; 15504 *) # from 4.6 on, and DragonFly 15505 shlibpath_overrides_runpath=yes 15506 hardcode_into_libs=yes 15507 ;; 15508 esac 15509 ;; 15510 15511 haiku*) 15512 version_type=linux # correct to gnu/linux during the next big refactor 15513 need_lib_prefix=no 15514 need_version=no 15515 dynamic_linker="$host_os runtime_loader" 15516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15517 soname_spec='$libname$release$shared_ext$major' 15518 shlibpath_var=LIBRARY_PATH 15519 shlibpath_overrides_runpath=no 15520 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15521 hardcode_into_libs=yes 15522 ;; 15523 15524 hpux9* | hpux10* | hpux11*) 15525 # Give a soname corresponding to the major version so that dld.sl refuses to 15526 # link against other versions. 15527 version_type=sunos 15528 need_lib_prefix=no 15529 need_version=no 15530 case $host_cpu in 15531 ia64*) 15532 shrext_cmds='.so' 15533 hardcode_into_libs=yes 15534 dynamic_linker="$host_os dld.so" 15535 shlibpath_var=LD_LIBRARY_PATH 15536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15538 soname_spec='$libname$release$shared_ext$major' 15539 if test 32 = "$HPUX_IA64_MODE"; then 15540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15541 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15542 else 15543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15544 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15545 fi 15546 ;; 15547 hppa*64*) 15548 shrext_cmds='.sl' 15549 hardcode_into_libs=yes 15550 dynamic_linker="$host_os dld.sl" 15551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15554 soname_spec='$libname$release$shared_ext$major' 15555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15557 ;; 15558 *) 15559 shrext_cmds='.sl' 15560 dynamic_linker="$host_os dld.sl" 15561 shlibpath_var=SHLIB_PATH 15562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15564 soname_spec='$libname$release$shared_ext$major' 15565 ;; 15566 esac 15567 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15568 postinstall_cmds='chmod 555 $lib' 15569 # or fails outright, so override atomically: 15570 install_override_mode=555 15571 ;; 15572 15573 interix[3-9]*) 15574 version_type=linux # correct to gnu/linux during the next big refactor 15575 need_lib_prefix=no 15576 need_version=no 15577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15578 soname_spec='$libname$release$shared_ext$major' 15579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15580 shlibpath_var=LD_LIBRARY_PATH 15581 shlibpath_overrides_runpath=no 15582 hardcode_into_libs=yes 15583 ;; 15584 15585 irix5* | irix6* | nonstopux*) 15586 case $host_os in 15587 nonstopux*) version_type=nonstopux ;; 15588 *) 15589 if test yes = "$lt_cv_prog_gnu_ld"; then 15590 version_type=linux # correct to gnu/linux during the next big refactor 15591 else 15592 version_type=irix 15593 fi ;; 15594 esac 15595 need_lib_prefix=no 15596 need_version=no 15597 soname_spec='$libname$release$shared_ext$major' 15598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15599 case $host_os in 15600 irix5* | nonstopux*) 15601 libsuff= shlibsuff= 15602 ;; 15603 *) 15604 case $LD in # libtool.m4 will add one of these switches to LD 15605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15606 libsuff= shlibsuff= libmagic=32-bit;; 15607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15608 libsuff=32 shlibsuff=N32 libmagic=N32;; 15609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15610 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15611 *) libsuff= shlibsuff= libmagic=never-match;; 15612 esac 15613 ;; 15614 esac 15615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15616 shlibpath_overrides_runpath=no 15617 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15618 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15619 hardcode_into_libs=yes 15620 ;; 15621 15622 # No shared lib support for Linux oldld, aout, or coff. 15623 linux*oldld* | linux*aout* | linux*coff*) 15624 dynamic_linker=no 15625 ;; 15626 15627 linux*android*) 15628 version_type=none # Android doesn't support versioned libraries. 15629 need_lib_prefix=no 15630 need_version=no 15631 library_names_spec='$libname$release$shared_ext' 15632 soname_spec='$libname$release$shared_ext' 15633 finish_cmds= 15634 shlibpath_var=LD_LIBRARY_PATH 15635 shlibpath_overrides_runpath=yes 15636 15637 # This implies no fast_install, which is unacceptable. 15638 # Some rework will be needed to allow for fast_install 15639 # before this can be enabled. 15640 hardcode_into_libs=yes 15641 15642 dynamic_linker='Android linker' 15643 # Don't embed -rpath directories since the linker doesn't support them. 15644 hardcode_libdir_flag_spec='-L$libdir' 15645 ;; 15646 15647 # This must be glibc/ELF. 15648 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15649 version_type=linux # correct to gnu/linux during the next big refactor 15650 need_lib_prefix=no 15651 need_version=no 15652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15653 soname_spec='$libname$release$shared_ext$major' 15654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15655 shlibpath_var=LD_LIBRARY_PATH 15656 shlibpath_overrides_runpath=no 15657 15658 # Some binutils ld are patched to set DT_RUNPATH 15659 if test ${lt_cv_shlibpath_overrides_runpath+y} 15660 then : 15661 printf %s "(cached) " >&6 15662 else $as_nop 15663 lt_cv_shlibpath_overrides_runpath=no 15664 save_LDFLAGS=$LDFLAGS 15665 save_libdir=$libdir 15666 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15667 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15669 /* end confdefs.h. */ 15670 15671 int main(void) 15672 { 15673 15674 return 0; 15675 } 15676 _ACEOF 15677 if ac_fn_c_try_link "$LINENO" 15678 then : 15679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 15680 then : 15681 lt_cv_shlibpath_overrides_runpath=yes 15682 fi 15683 fi 15684 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15685 conftest$ac_exeext conftest.$ac_ext 15686 LDFLAGS=$save_LDFLAGS 15687 libdir=$save_libdir 15688 15689 fi 15690 15691 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15692 15693 # This implies no fast_install, which is unacceptable. 15694 # Some rework will be needed to allow for fast_install 15695 # before this can be enabled. 15696 hardcode_into_libs=yes 15697 15698 # Ideally, we could use ldconfig to report *all* directores which are 15699 # searched for libraries, however this is still not possible. Aside from not 15700 # being certain /sbin/ldconfig is available, command 15701 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15702 # even though it is searched at run-time. Try to do the best guess by 15703 # appending ld.so.conf contents (and includes) to the search path. 15704 if test -f /etc/ld.so.conf; then 15705 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' ' '` 15706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15707 fi 15708 15709 # We used to test for /lib/ld.so.1 and disable shared libraries on 15710 # powerpc, because MkLinux only supported shared libraries with the 15711 # GNU dynamic linker. Since this was broken with cross compilers, 15712 # most powerpc-linux boxes support dynamic linking these days and 15713 # people can always --disable-shared, the test was removed, and we 15714 # assume the GNU/Linux dynamic linker is in use. 15715 dynamic_linker='GNU/Linux ld.so' 15716 ;; 15717 15718 netbsdelf*-gnu) 15719 version_type=linux 15720 need_lib_prefix=no 15721 need_version=no 15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15723 soname_spec='${libname}${release}${shared_ext}$major' 15724 shlibpath_var=LD_LIBRARY_PATH 15725 shlibpath_overrides_runpath=no 15726 hardcode_into_libs=yes 15727 dynamic_linker='NetBSD ld.elf_so' 15728 ;; 15729 15730 netbsd*) 15731 version_type=sunos 15732 need_lib_prefix=no 15733 need_version=no 15734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15735 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15737 dynamic_linker='NetBSD (a.out) ld.so' 15738 else 15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15740 soname_spec='$libname$release$shared_ext$major' 15741 dynamic_linker='NetBSD ld.elf_so' 15742 fi 15743 shlibpath_var=LD_LIBRARY_PATH 15744 shlibpath_overrides_runpath=yes 15745 hardcode_into_libs=yes 15746 ;; 15747 15748 newsos6) 15749 version_type=linux # correct to gnu/linux during the next big refactor 15750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15751 shlibpath_var=LD_LIBRARY_PATH 15752 shlibpath_overrides_runpath=yes 15753 ;; 15754 15755 *nto* | *qnx*) 15756 version_type=qnx 15757 need_lib_prefix=no 15758 need_version=no 15759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15760 soname_spec='$libname$release$shared_ext$major' 15761 shlibpath_var=LD_LIBRARY_PATH 15762 shlibpath_overrides_runpath=no 15763 hardcode_into_libs=yes 15764 dynamic_linker='ldqnx.so' 15765 ;; 15766 15767 openbsd* | bitrig*) 15768 version_type=sunos 15769 sys_lib_dlsearch_path_spec=/usr/lib 15770 need_lib_prefix=no 15771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15772 need_version=no 15773 else 15774 need_version=yes 15775 fi 15776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15778 shlibpath_var=LD_LIBRARY_PATH 15779 shlibpath_overrides_runpath=yes 15780 ;; 15781 15782 os2*) 15783 libname_spec='$name' 15784 version_type=windows 15785 shrext_cmds=.dll 15786 need_version=no 15787 need_lib_prefix=no 15788 # OS/2 can only load a DLL with a base name of 8 characters or less. 15789 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15790 v=$($ECHO $release$versuffix | tr -d .-); 15791 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15792 $ECHO $n$v`$shared_ext' 15793 library_names_spec='${libname}_dll.$libext' 15794 dynamic_linker='OS/2 ld.exe' 15795 shlibpath_var=BEGINLIBPATH 15796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15798 postinstall_cmds='base_file=`basename \$file`~ 15799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15800 dldir=$destdir/`dirname \$dlpath`~ 15801 test -d \$dldir || mkdir -p \$dldir~ 15802 $install_prog $dir/$dlname \$dldir/$dlname~ 15803 chmod a+x \$dldir/$dlname~ 15804 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15805 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15806 fi' 15807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15808 dlpath=$dir/\$dldll~ 15809 $RM \$dlpath' 15810 ;; 15811 15812 osf3* | osf4* | osf5*) 15813 version_type=osf 15814 need_lib_prefix=no 15815 need_version=no 15816 soname_spec='$libname$release$shared_ext$major' 15817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15818 shlibpath_var=LD_LIBRARY_PATH 15819 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15821 ;; 15822 15823 rdos*) 15824 dynamic_linker=no 15825 ;; 15826 15827 solaris*) 15828 version_type=linux # correct to gnu/linux during the next big refactor 15829 need_lib_prefix=no 15830 need_version=no 15831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15832 soname_spec='$libname$release$shared_ext$major' 15833 shlibpath_var=LD_LIBRARY_PATH 15834 shlibpath_overrides_runpath=yes 15835 hardcode_into_libs=yes 15836 # ldd complains unless libraries are executable 15837 postinstall_cmds='chmod +x $lib' 15838 ;; 15839 15840 sunos4*) 15841 version_type=sunos 15842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15844 shlibpath_var=LD_LIBRARY_PATH 15845 shlibpath_overrides_runpath=yes 15846 if test yes = "$with_gnu_ld"; then 15847 need_lib_prefix=no 15848 fi 15849 need_version=yes 15850 ;; 15851 15852 sysv4 | sysv4.3*) 15853 version_type=linux # correct to gnu/linux during the next big refactor 15854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15855 soname_spec='$libname$release$shared_ext$major' 15856 shlibpath_var=LD_LIBRARY_PATH 15857 case $host_vendor in 15858 sni) 15859 shlibpath_overrides_runpath=no 15860 need_lib_prefix=no 15861 runpath_var=LD_RUN_PATH 15862 ;; 15863 siemens) 15864 need_lib_prefix=no 15865 ;; 15866 motorola) 15867 need_lib_prefix=no 15868 need_version=no 15869 shlibpath_overrides_runpath=no 15870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15871 ;; 15872 esac 15873 ;; 15874 15875 sysv4*MP*) 15876 if test -d /usr/nec; then 15877 version_type=linux # correct to gnu/linux during the next big refactor 15878 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15879 soname_spec='$libname$shared_ext.$major' 15880 shlibpath_var=LD_LIBRARY_PATH 15881 fi 15882 ;; 15883 15884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15885 version_type=sco 15886 need_lib_prefix=no 15887 need_version=no 15888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15889 soname_spec='$libname$release$shared_ext$major' 15890 shlibpath_var=LD_LIBRARY_PATH 15891 shlibpath_overrides_runpath=yes 15892 hardcode_into_libs=yes 15893 if test yes = "$with_gnu_ld"; then 15894 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15895 else 15896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15897 case $host_os in 15898 sco3.2v5*) 15899 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15900 ;; 15901 esac 15902 fi 15903 sys_lib_dlsearch_path_spec='/usr/lib' 15904 ;; 15905 15906 tpf*) 15907 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15908 version_type=linux # correct to gnu/linux during the next big refactor 15909 need_lib_prefix=no 15910 need_version=no 15911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15912 shlibpath_var=LD_LIBRARY_PATH 15913 shlibpath_overrides_runpath=no 15914 hardcode_into_libs=yes 15915 ;; 15916 15917 uts4*) 15918 version_type=linux # correct to gnu/linux during the next big refactor 15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15920 soname_spec='$libname$release$shared_ext$major' 15921 shlibpath_var=LD_LIBRARY_PATH 15922 ;; 15923 15924 *) 15925 dynamic_linker=no 15926 ;; 15927 esac 15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15929 printf "%s\n" "$dynamic_linker" >&6; } 15930 test no = "$dynamic_linker" && can_build_shared=no 15931 15932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15933 if test yes = "$GCC"; then 15934 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15935 fi 15936 15937 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15938 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15939 fi 15940 15941 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15942 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15943 fi 15944 15945 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15946 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15947 15948 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15949 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15950 15951 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15952 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16051 printf %s "checking how to hardcode library paths into programs... " >&6; } 16052 hardcode_action= 16053 if test -n "$hardcode_libdir_flag_spec" || 16054 test -n "$runpath_var" || 16055 test yes = "$hardcode_automatic"; then 16056 16057 # We can hardcode non-existent directories. 16058 if test no != "$hardcode_direct" && 16059 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16060 # have to relink, otherwise we might link with an installed library 16061 # when we should be linking with a yet-to-be-installed one 16062 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 16063 test no != "$hardcode_minus_L"; then 16064 # Linking always hardcodes the temporary library directory. 16065 hardcode_action=relink 16066 else 16067 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16068 hardcode_action=immediate 16069 fi 16070 else 16071 # We cannot hardcode anything, or else we can only hardcode existing 16072 # directories. 16073 hardcode_action=unsupported 16074 fi 16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16076 printf "%s\n" "$hardcode_action" >&6; } 16077 16078 if test relink = "$hardcode_action" || 16079 test yes = "$inherit_rpath"; then 16080 # Fast installation is not supported 16081 enable_fast_install=no 16082 elif test yes = "$shlibpath_overrides_runpath" || 16083 test no = "$enable_shared"; then 16084 # Fast installation is not necessary 16085 enable_fast_install=needless 16086 fi 16087 16088 16089 16090 16091 16092 16093 if test yes != "$enable_dlopen"; then 16094 enable_dlopen=unknown 16095 enable_dlopen_self=unknown 16096 enable_dlopen_self_static=unknown 16097 else 16098 lt_cv_dlopen=no 16099 lt_cv_dlopen_libs= 16100 16101 case $host_os in 16102 beos*) 16103 lt_cv_dlopen=load_add_on 16104 lt_cv_dlopen_libs= 16105 lt_cv_dlopen_self=yes 16106 ;; 16107 16108 mingw* | pw32* | cegcc*) 16109 lt_cv_dlopen=LoadLibrary 16110 lt_cv_dlopen_libs= 16111 ;; 16112 16113 cygwin*) 16114 lt_cv_dlopen=dlopen 16115 lt_cv_dlopen_libs= 16116 ;; 16117 16118 darwin*) 16119 # if libdl is installed we need to link against it 16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16121 printf %s "checking for dlopen in -ldl... " >&6; } 16122 if test ${ac_cv_lib_dl_dlopen+y} 16123 then : 16124 printf %s "(cached) " >&6 16125 else $as_nop 16126 ac_check_lib_save_LIBS=$LIBS 16127 LIBS="-ldl $LIBS" 16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16129 /* end confdefs.h. */ 16130 16131 16132 #ifdef __cplusplus 16133 extern "C" 16134 #endif 16135 char dlopen (); 16136 int main(void) 16137 { 16138 return dlopen (); 16139 return 0; 16140 } 16141 _ACEOF 16142 if ac_fn_c_try_link "$LINENO" 16143 then : 16144 ac_cv_lib_dl_dlopen=yes 16145 else $as_nop 16146 ac_cv_lib_dl_dlopen=no 16147 fi 16148 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16149 conftest$ac_exeext conftest.$ac_ext 16150 LIBS=$ac_check_lib_save_LIBS 16151 fi 16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16153 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16154 if test "x$ac_cv_lib_dl_dlopen" = xyes 16155 then : 16156 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16157 else $as_nop 16158 16159 lt_cv_dlopen=dyld 16160 lt_cv_dlopen_libs= 16161 lt_cv_dlopen_self=yes 16162 16163 fi 16164 16165 ;; 16166 16167 tpf*) 16168 # Don't try to run any link tests for TPF. We know it's impossible 16169 # because TPF is a cross-compiler, and we know how we open DSOs. 16170 lt_cv_dlopen=dlopen 16171 lt_cv_dlopen_libs= 16172 lt_cv_dlopen_self=no 16173 ;; 16174 16175 *) 16176 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16177 if test "x$ac_cv_func_shl_load" = xyes 16178 then : 16179 lt_cv_dlopen=shl_load 16180 else $as_nop 16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16182 printf %s "checking for shl_load in -ldld... " >&6; } 16183 if test ${ac_cv_lib_dld_shl_load+y} 16184 then : 16185 printf %s "(cached) " >&6 16186 else $as_nop 16187 ac_check_lib_save_LIBS=$LIBS 16188 LIBS="-ldld $LIBS" 16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16190 /* end confdefs.h. */ 16191 16192 16193 #ifdef __cplusplus 16194 extern "C" 16195 #endif 16196 char shl_load (); 16197 int main(void) 16198 { 16199 return shl_load (); 16200 return 0; 16201 } 16202 _ACEOF 16203 if ac_fn_c_try_link "$LINENO" 16204 then : 16205 ac_cv_lib_dld_shl_load=yes 16206 else $as_nop 16207 ac_cv_lib_dld_shl_load=no 16208 fi 16209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16210 conftest$ac_exeext conftest.$ac_ext 16211 LIBS=$ac_check_lib_save_LIBS 16212 fi 16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16214 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 16215 if test "x$ac_cv_lib_dld_shl_load" = xyes 16216 then : 16217 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 16218 else $as_nop 16219 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16220 if test "x$ac_cv_func_dlopen" = xyes 16221 then : 16222 lt_cv_dlopen=dlopen 16223 else $as_nop 16224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16225 printf %s "checking for dlopen in -ldl... " >&6; } 16226 if test ${ac_cv_lib_dl_dlopen+y} 16227 then : 16228 printf %s "(cached) " >&6 16229 else $as_nop 16230 ac_check_lib_save_LIBS=$LIBS 16231 LIBS="-ldl $LIBS" 16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16233 /* end confdefs.h. */ 16234 16235 16236 #ifdef __cplusplus 16237 extern "C" 16238 #endif 16239 char dlopen (); 16240 int main(void) 16241 { 16242 return dlopen (); 16243 return 0; 16244 } 16245 _ACEOF 16246 if ac_fn_c_try_link "$LINENO" 16247 then : 16248 ac_cv_lib_dl_dlopen=yes 16249 else $as_nop 16250 ac_cv_lib_dl_dlopen=no 16251 fi 16252 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16253 conftest$ac_exeext conftest.$ac_ext 16254 LIBS=$ac_check_lib_save_LIBS 16255 fi 16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16257 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16258 if test "x$ac_cv_lib_dl_dlopen" = xyes 16259 then : 16260 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16261 else $as_nop 16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16263 printf %s "checking for dlopen in -lsvld... " >&6; } 16264 if test ${ac_cv_lib_svld_dlopen+y} 16265 then : 16266 printf %s "(cached) " >&6 16267 else $as_nop 16268 ac_check_lib_save_LIBS=$LIBS 16269 LIBS="-lsvld $LIBS" 16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16271 /* end confdefs.h. */ 16272 16273 16274 #ifdef __cplusplus 16275 extern "C" 16276 #endif 16277 char dlopen (); 16278 int main(void) 16279 { 16280 return dlopen (); 16281 return 0; 16282 } 16283 _ACEOF 16284 if ac_fn_c_try_link "$LINENO" 16285 then : 16286 ac_cv_lib_svld_dlopen=yes 16287 else $as_nop 16288 ac_cv_lib_svld_dlopen=no 16289 fi 16290 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16291 conftest$ac_exeext conftest.$ac_ext 16292 LIBS=$ac_check_lib_save_LIBS 16293 fi 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16295 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 16296 if test "x$ac_cv_lib_svld_dlopen" = xyes 16297 then : 16298 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16299 else $as_nop 16300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16301 printf %s "checking for dld_link in -ldld... " >&6; } 16302 if test ${ac_cv_lib_dld_dld_link+y} 16303 then : 16304 printf %s "(cached) " >&6 16305 else $as_nop 16306 ac_check_lib_save_LIBS=$LIBS 16307 LIBS="-ldld $LIBS" 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309 /* end confdefs.h. */ 16310 16311 16312 #ifdef __cplusplus 16313 extern "C" 16314 #endif 16315 char dld_link (); 16316 int main(void) 16317 { 16318 return dld_link (); 16319 return 0; 16320 } 16321 _ACEOF 16322 if ac_fn_c_try_link "$LINENO" 16323 then : 16324 ac_cv_lib_dld_dld_link=yes 16325 else $as_nop 16326 ac_cv_lib_dld_dld_link=no 16327 fi 16328 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16329 conftest$ac_exeext conftest.$ac_ext 16330 LIBS=$ac_check_lib_save_LIBS 16331 fi 16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16333 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 16334 if test "x$ac_cv_lib_dld_dld_link" = xyes 16335 then : 16336 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16337 fi 16338 16339 16340 fi 16341 16342 16343 fi 16344 16345 16346 fi 16347 16348 16349 fi 16350 16351 16352 fi 16353 16354 ;; 16355 esac 16356 16357 if test no = "$lt_cv_dlopen"; then 16358 enable_dlopen=no 16359 else 16360 enable_dlopen=yes 16361 fi 16362 16363 case $lt_cv_dlopen in 16364 dlopen) 16365 save_CPPFLAGS=$CPPFLAGS 16366 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16367 16368 save_LDFLAGS=$LDFLAGS 16369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16370 16371 save_LIBS=$LIBS 16372 LIBS="$lt_cv_dlopen_libs $LIBS" 16373 16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16375 printf %s "checking whether a program can dlopen itself... " >&6; } 16376 if test ${lt_cv_dlopen_self+y} 16377 then : 16378 printf %s "(cached) " >&6 16379 else $as_nop 16380 if test yes = "$cross_compiling"; then : 16381 lt_cv_dlopen_self=cross 16382 else 16383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16384 lt_status=$lt_dlunknown 16385 cat > conftest.$ac_ext <<_LT_EOF 16386 #line $LINENO "configure" 16387 #include "confdefs.h" 16388 16389 #if HAVE_DLFCN_H 16390 #include <dlfcn.h> 16391 #endif 16392 16393 #include <stdio.h> 16394 16395 #ifdef RTLD_GLOBAL 16396 # define LT_DLGLOBAL RTLD_GLOBAL 16397 #else 16398 # ifdef DL_GLOBAL 16399 # define LT_DLGLOBAL DL_GLOBAL 16400 # else 16401 # define LT_DLGLOBAL 0 16402 # endif 16403 #endif 16404 16405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16406 find out it does not work in some platform. */ 16407 #ifndef LT_DLLAZY_OR_NOW 16408 # ifdef RTLD_LAZY 16409 # define LT_DLLAZY_OR_NOW RTLD_LAZY 16410 # else 16411 # ifdef DL_LAZY 16412 # define LT_DLLAZY_OR_NOW DL_LAZY 16413 # else 16414 # ifdef RTLD_NOW 16415 # define LT_DLLAZY_OR_NOW RTLD_NOW 16416 # else 16417 # ifdef DL_NOW 16418 # define LT_DLLAZY_OR_NOW DL_NOW 16419 # else 16420 # define LT_DLLAZY_OR_NOW 0 16421 # endif 16422 # endif 16423 # endif 16424 # endif 16425 #endif 16426 16427 /* When -fvisibility=hidden is used, assume the code has been annotated 16428 correspondingly for the symbols needed. */ 16429 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16430 int fnord () __attribute__((visibility("default"))); 16431 #endif 16432 16433 int fnord () { return 42; } 16434 int main () 16435 { 16436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16437 int status = $lt_dlunknown; 16438 16439 if (self) 16440 { 16441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16442 else 16443 { 16444 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16445 else puts (dlerror ()); 16446 } 16447 /* dlclose (self); */ 16448 } 16449 else 16450 puts (dlerror ()); 16451 16452 return status; 16453 } 16454 _LT_EOF 16455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16456 (eval $ac_link) 2>&5 16457 ac_status=$? 16458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16459 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16460 (./conftest; exit; ) >&5 2>/dev/null 16461 lt_status=$? 16462 case x$lt_status in 16463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16466 esac 16467 else : 16468 # compilation failed 16469 lt_cv_dlopen_self=no 16470 fi 16471 fi 16472 rm -fr conftest* 16473 16474 16475 fi 16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16477 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 16478 16479 if test yes = "$lt_cv_dlopen_self"; then 16480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16482 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 16483 if test ${lt_cv_dlopen_self_static+y} 16484 then : 16485 printf %s "(cached) " >&6 16486 else $as_nop 16487 if test yes = "$cross_compiling"; then : 16488 lt_cv_dlopen_self_static=cross 16489 else 16490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16491 lt_status=$lt_dlunknown 16492 cat > conftest.$ac_ext <<_LT_EOF 16493 #line $LINENO "configure" 16494 #include "confdefs.h" 16495 16496 #if HAVE_DLFCN_H 16497 #include <dlfcn.h> 16498 #endif 16499 16500 #include <stdio.h> 16501 16502 #ifdef RTLD_GLOBAL 16503 # define LT_DLGLOBAL RTLD_GLOBAL 16504 #else 16505 # ifdef DL_GLOBAL 16506 # define LT_DLGLOBAL DL_GLOBAL 16507 # else 16508 # define LT_DLGLOBAL 0 16509 # endif 16510 #endif 16511 16512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16513 find out it does not work in some platform. */ 16514 #ifndef LT_DLLAZY_OR_NOW 16515 # ifdef RTLD_LAZY 16516 # define LT_DLLAZY_OR_NOW RTLD_LAZY 16517 # else 16518 # ifdef DL_LAZY 16519 # define LT_DLLAZY_OR_NOW DL_LAZY 16520 # else 16521 # ifdef RTLD_NOW 16522 # define LT_DLLAZY_OR_NOW RTLD_NOW 16523 # else 16524 # ifdef DL_NOW 16525 # define LT_DLLAZY_OR_NOW DL_NOW 16526 # else 16527 # define LT_DLLAZY_OR_NOW 0 16528 # endif 16529 # endif 16530 # endif 16531 # endif 16532 #endif 16533 16534 /* When -fvisibility=hidden is used, assume the code has been annotated 16535 correspondingly for the symbols needed. */ 16536 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16537 int fnord () __attribute__((visibility("default"))); 16538 #endif 16539 16540 int fnord () { return 42; } 16541 int main () 16542 { 16543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16544 int status = $lt_dlunknown; 16545 16546 if (self) 16547 { 16548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16549 else 16550 { 16551 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16552 else puts (dlerror ()); 16553 } 16554 /* dlclose (self); */ 16555 } 16556 else 16557 puts (dlerror ()); 16558 16559 return status; 16560 } 16561 _LT_EOF 16562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16563 (eval $ac_link) 2>&5 16564 ac_status=$? 16565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16566 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16567 (./conftest; exit; ) >&5 2>/dev/null 16568 lt_status=$? 16569 case x$lt_status in 16570 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16571 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16572 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16573 esac 16574 else : 16575 # compilation failed 16576 lt_cv_dlopen_self_static=no 16577 fi 16578 fi 16579 rm -fr conftest* 16580 16581 16582 fi 16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16584 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 16585 fi 16586 16587 CPPFLAGS=$save_CPPFLAGS 16588 LDFLAGS=$save_LDFLAGS 16589 LIBS=$save_LIBS 16590 ;; 16591 esac 16592 16593 case $lt_cv_dlopen_self in 16594 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16595 *) enable_dlopen_self=unknown ;; 16596 esac 16597 16598 case $lt_cv_dlopen_self_static in 16599 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16600 *) enable_dlopen_self_static=unknown ;; 16601 esac 16602 fi 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 striplib= 16621 old_striplib= 16622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16623 printf %s "checking whether stripping libraries is possible... " >&6; } 16624 if test -z "$STRIP"; then 16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16626 printf "%s\n" "no" >&6; } 16627 else 16628 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16629 old_striplib="$STRIP --strip-debug" 16630 striplib="$STRIP --strip-unneeded" 16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16632 printf "%s\n" "yes" >&6; } 16633 else 16634 case $host_os in 16635 darwin*) 16636 # FIXME - insert some real tests, host_os isn't really good enough 16637 striplib="$STRIP -x" 16638 old_striplib="$STRIP -S" 16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16640 printf "%s\n" "yes" >&6; } 16641 ;; 16642 freebsd*) 16643 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 16644 old_striplib="$STRIP --strip-debug" 16645 striplib="$STRIP --strip-unneeded" 16646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16647 printf "%s\n" "yes" >&6; } 16648 else 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16650 printf "%s\n" "no" >&6; } 16651 fi 16652 ;; 16653 *) 16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16655 printf "%s\n" "no" >&6; } 16656 ;; 16657 esac 16658 fi 16659 fi 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 # Report what library types will actually be built 16673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16674 printf %s "checking if libtool supports shared libraries... " >&6; } 16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16676 printf "%s\n" "$can_build_shared" >&6; } 16677 16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16679 printf %s "checking whether to build shared libraries... " >&6; } 16680 test no = "$can_build_shared" && enable_shared=no 16681 16682 # On AIX, shared libraries and static libraries use the same namespace, and 16683 # are all built from PIC. 16684 case $host_os in 16685 aix3*) 16686 test yes = "$enable_shared" && enable_static=no 16687 if test -n "$RANLIB"; then 16688 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16689 postinstall_cmds='$RANLIB $lib' 16690 fi 16691 ;; 16692 16693 aix[4-9]*) 16694 if test ia64 != "$host_cpu"; then 16695 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16696 yes,aix,yes) ;; # shared object as lib.so file only 16697 yes,svr4,*) ;; # shared object as lib.so archive member only 16698 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16699 esac 16700 fi 16701 ;; 16702 esac 16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16704 printf "%s\n" "$enable_shared" >&6; } 16705 16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16707 printf %s "checking whether to build static libraries... " >&6; } 16708 # Make sure either enable_shared or enable_static is yes. 16709 test yes = "$enable_shared" || enable_static=yes 16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16711 printf "%s\n" "$enable_static" >&6; } 16712 16713 16714 16715 16716 fi 16717 ac_ext=c 16718 ac_cpp='$CPP $CPPFLAGS' 16719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16721 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16722 16723 CC=$lt_save_CC 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 ac_config_commands="$ac_config_commands libtool" 16740 16741 16742 16743 16744 # Only expand once: 16745 16746 16747 ## --------------------- ## 16748 ## End of libtool code ## 16749 ## --------------------- ## 16750 16751 # 16752 # Verify if finally libtool shared libraries will be built 16753 # 16754 16755 case "x$enable_shared" in # (( 16756 xyes | xno) 16757 xc_lt_build_shared=$enable_shared 16758 ;; 16759 *) 16760 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5 16761 ;; 16762 esac 16763 16764 # 16765 # Verify if finally libtool static libraries will be built 16766 # 16767 16768 case "x$enable_static" in # (( 16769 xyes | xno) 16770 xc_lt_build_static=$enable_static 16771 ;; 16772 *) 16773 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5 16774 ;; 16775 esac 16776 16777 # 16778 # Verify if libtool shared libraries should be linked using flag -version-info 16779 # 16780 16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5 16782 printf %s "checking whether to build shared libraries with -version-info... " >&6; } 16783 xc_lt_shlib_use_version_info='yes' 16784 if test "x$version_type" = 'xnone'; then 16785 xc_lt_shlib_use_version_info='no' 16786 fi 16787 case $host_os in # ( 16788 amigaos*) 16789 xc_lt_shlib_use_version_info='yes' 16790 ;; 16791 esac 16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5 16793 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; } 16794 16795 # 16796 # Verify if libtool shared libraries should be linked using flag -no-undefined 16797 # 16798 16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5 16800 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; } 16801 xc_lt_shlib_use_no_undefined='no' 16802 if test "x$allow_undefined" = 'xno'; then 16803 xc_lt_shlib_use_no_undefined='yes' 16804 elif test "x$allow_undefined_flag" = 'xunsupported'; then 16805 xc_lt_shlib_use_no_undefined='yes' 16806 fi 16807 case $host_os in # ( 16808 cygwin* | mingw* | cegcc* | os2* | aix*) 16809 xc_lt_shlib_use_no_undefined='yes' 16810 ;; 16811 esac 16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5 16813 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; } 16814 16815 # 16816 # Verify if libtool shared libraries should be linked using flag -mimpure-text 16817 # 16818 16819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5 16820 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; } 16821 xc_lt_shlib_use_mimpure_text='no' 16822 case $host_os in # ( 16823 solaris2*) 16824 if test "x$GCC" = 'xyes'; then 16825 xc_lt_shlib_use_mimpure_text='yes' 16826 fi 16827 ;; 16828 esac 16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5 16830 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; } 16831 16832 # 16833 # Find out whether libtool libraries would be built with PIC 16834 # 16835 16836 case "x$pic_mode" in # (((( 16837 xdefault) 16838 xc_lt_build_shared_with_pic='yes' 16839 xc_lt_build_static_with_pic='no' 16840 ;; 16841 xyes) 16842 xc_lt_build_shared_with_pic='yes' 16843 xc_lt_build_static_with_pic='yes' 16844 ;; 16845 xno) 16846 xc_lt_build_shared_with_pic='no' 16847 xc_lt_build_static_with_pic='no' 16848 ;; 16849 *) 16850 xc_lt_build_shared_with_pic='unknown' 16851 xc_lt_build_static_with_pic='unknown' 16852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5 16853 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;} 16854 ;; 16855 esac 16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5 16857 printf %s "checking whether to build shared libraries with PIC... " >&6; } 16858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5 16859 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; } 16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5 16861 printf %s "checking whether to build static libraries with PIC... " >&6; } 16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5 16863 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; } 16864 16865 # 16866 # Verify if libtool shared libraries will be built while static not built 16867 # 16868 16869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5 16870 printf %s "checking whether to build shared libraries only... " >&6; } 16871 if test "$xc_lt_build_shared" = 'yes' && 16872 test "$xc_lt_build_static" = 'no'; then 16873 xc_lt_build_shared_only='yes' 16874 else 16875 xc_lt_build_shared_only='no' 16876 fi 16877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5 16878 printf "%s\n" "$xc_lt_build_shared_only" >&6; } 16879 16880 # 16881 # Verify if libtool static libraries will be built while shared not built 16882 # 16883 16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5 16885 printf %s "checking whether to build static libraries only... " >&6; } 16886 if test "$xc_lt_build_static" = 'yes' && 16887 test "$xc_lt_build_shared" = 'no'; then 16888 xc_lt_build_static_only='yes' 16889 else 16890 xc_lt_build_static_only='no' 16891 fi 16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5 16893 printf "%s\n" "$xc_lt_build_static_only" >&6; } 16894 16895 16896 16897 16898 if test -n "$ac_tool_prefix"; then 16899 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 16900 set dummy ${ac_tool_prefix}windres; ac_word=$2 16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16902 printf %s "checking for $ac_word... " >&6; } 16903 if test ${ac_cv_prog_RC+y} 16904 then : 16905 printf %s "(cached) " >&6 16906 else $as_nop 16907 if test -n "$RC"; then 16908 ac_cv_prog_RC="$RC" # Let the user override the test. 16909 else 16910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16911 for as_dir in $PATH 16912 do 16913 IFS=$as_save_IFS 16914 case $as_dir in #((( 16915 '') as_dir=./ ;; 16916 */) ;; 16917 *) as_dir=$as_dir/ ;; 16918 esac 16919 for ac_exec_ext in '' $ac_executable_extensions; do 16920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16921 ac_cv_prog_RC="${ac_tool_prefix}windres" 16922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16923 break 2 16924 fi 16925 done 16926 done 16927 IFS=$as_save_IFS 16928 16929 fi 16930 fi 16931 RC=$ac_cv_prog_RC 16932 if test -n "$RC"; then 16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 16934 printf "%s\n" "$RC" >&6; } 16935 else 16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16937 printf "%s\n" "no" >&6; } 16938 fi 16939 16940 16941 fi 16942 if test -z "$ac_cv_prog_RC"; then 16943 ac_ct_RC=$RC 16944 # Extract the first word of "windres", so it can be a program name with args. 16945 set dummy windres; ac_word=$2 16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16947 printf %s "checking for $ac_word... " >&6; } 16948 if test ${ac_cv_prog_ac_ct_RC+y} 16949 then : 16950 printf %s "(cached) " >&6 16951 else $as_nop 16952 if test -n "$ac_ct_RC"; then 16953 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 16954 else 16955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16956 for as_dir in $PATH 16957 do 16958 IFS=$as_save_IFS 16959 case $as_dir in #((( 16960 '') as_dir=./ ;; 16961 */) ;; 16962 *) as_dir=$as_dir/ ;; 16963 esac 16964 for ac_exec_ext in '' $ac_executable_extensions; do 16965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16966 ac_cv_prog_ac_ct_RC="windres" 16967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16968 break 2 16969 fi 16970 done 16971 done 16972 IFS=$as_save_IFS 16973 16974 fi 16975 fi 16976 ac_ct_RC=$ac_cv_prog_ac_ct_RC 16977 if test -n "$ac_ct_RC"; then 16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 16979 printf "%s\n" "$ac_ct_RC" >&6; } 16980 else 16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16982 printf "%s\n" "no" >&6; } 16983 fi 16984 16985 if test "x$ac_ct_RC" = x; then 16986 RC="" 16987 else 16988 case $cross_compiling:$ac_tool_warned in 16989 yes:) 16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16992 ac_tool_warned=yes ;; 16993 esac 16994 RC=$ac_ct_RC 16995 fi 16996 else 16997 RC="$ac_cv_prog_RC" 16998 fi 16999 17000 17001 17002 17003 # Source file extension for RC test sources. 17004 ac_ext=rc 17005 17006 # Object file extension for compiled RC test sources. 17007 objext=o 17008 objext_RC=$objext 17009 17010 # Code to be used in simple compile tests 17011 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 17012 17013 # Code to be used in simple link tests 17014 lt_simple_link_test_code=$lt_simple_compile_test_code 17015 17016 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 17017 17018 17019 17020 17021 17022 17023 # If no C compiler was specified, use CC. 17024 LTCC=${LTCC-"$CC"} 17025 17026 # If no C compiler flags were specified, use CFLAGS. 17027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17028 17029 # Allow CC to be a program name with arguments. 17030 compiler=$CC 17031 17032 17033 # save warnings/boilerplate of simple test code 17034 ac_outfile=conftest.$ac_objext 17035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17037 _lt_compiler_boilerplate=`cat conftest.err` 17038 $RM conftest* 17039 17040 ac_outfile=conftest.$ac_objext 17041 echo "$lt_simple_link_test_code" >conftest.$ac_ext 17042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17043 _lt_linker_boilerplate=`cat conftest.err` 17044 $RM -r conftest* 17045 17046 17047 # Allow CC to be a program name with arguments. 17048 lt_save_CC=$CC 17049 lt_save_CFLAGS=$CFLAGS 17050 lt_save_GCC=$GCC 17051 GCC= 17052 CC=${RC-"windres"} 17053 CFLAGS= 17054 compiler=$CC 17055 compiler_RC=$CC 17056 func_cc_basename $compiler 17057 cc_basename=$func_cc_basename_result 17058 17059 lt_cv_prog_compiler_c_o_RC=yes 17060 17061 if test -n "$compiler"; then 17062 : 17063 17064 17065 17066 fi 17067 17068 GCC=$lt_save_GCC 17069 ac_ext=c 17070 ac_cpp='$CPP $CPPFLAGS' 17071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17073 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17074 17075 CC=$lt_save_CC 17076 CFLAGS=$lt_save_CFLAGS 17077 17078 17079 if test -z "$CURL_CI"; then 17080 NOT_CURL_CI_TRUE= 17081 NOT_CURL_CI_FALSE='#' 17082 else 17083 NOT_CURL_CI_TRUE='#' 17084 NOT_CURL_CI_FALSE= 17085 fi 17086 17087 17088 # 17089 # Automake conditionals based on libtool related checks 17090 # 17091 17092 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then 17093 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE= 17094 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#' 17095 else 17096 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#' 17097 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE= 17098 fi 17099 17100 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 17101 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE= 17102 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#' 17103 else 17104 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#' 17105 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE= 17106 fi 17107 17108 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then 17109 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE= 17110 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#' 17111 else 17112 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#' 17113 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE= 17114 fi 17115 17116 17117 # 17118 # Due to libtool and automake machinery limitations of not allowing 17119 # specifying separate CPPFLAGS or CFLAGS when compiling objects for 17120 # inclusion of these in shared or static libraries, we are forced to 17121 # build using separate configure runs for shared and static libraries 17122 # on systems where different CPPFLAGS or CFLAGS are mandatory in order 17123 # to compile objects for each kind of library. Notice that relying on 17124 # the '-DPIC' CFLAG that libtool provides is not valid given that the 17125 # user might for example choose to build static libraries with PIC. 17126 # 17127 17128 # 17129 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly 17130 # targeting a static library and not building its shared counterpart. 17131 # 17132 17133 if test "x$xc_lt_build_static_only" = 'xyes'; then 17134 USE_CPPFLAG_CURL_STATICLIB_TRUE= 17135 USE_CPPFLAG_CURL_STATICLIB_FALSE='#' 17136 else 17137 USE_CPPFLAG_CURL_STATICLIB_TRUE='#' 17138 USE_CPPFLAG_CURL_STATICLIB_FALSE= 17139 fi 17140 17141 17142 # 17143 # Make staticlib CPPFLAG variable and its definition visible in output 17144 # files unconditionally, providing an empty definition unless strictly 17145 # targeting a static library and not building its shared counterpart. 17146 # 17147 17148 LIBCURL_PC_CFLAGS_PRIVATE='-DCURL_STATICLIB' 17149 17150 17151 LIBCURL_PC_CFLAGS= 17152 if test "x$xc_lt_build_static_only" = 'xyes'; then 17153 LIBCURL_PC_CFLAGS="${LIBCURL_PC_CFLAGS_PRIVATE}" 17154 fi 17155 17156 17157 17158 17159 17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5 17161 printf %s "checking if cpp -P is needed... " >&6; } 17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17163 /* end confdefs.h. */ 17164 17165 #include <errno.h> 17166 TEST EINVAL TEST 17167 17168 _ACEOF 17169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17170 $EGREP "TEST.*TEST" >/dev/null 2>&1 17171 then : 17172 cpp=no 17173 else $as_nop 17174 cpp=yes 17175 fi 17176 rm -rf conftest* 17177 17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5 17179 printf "%s\n" "$cpp" >&6; } 17180 17181 if test "x$cpp" = "xyes"; then 17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5 17183 printf %s "checking if cpp -P works... " >&6; } 17184 OLDCPPFLAGS=$CPPFLAGS 17185 CPPFLAGS="$CPPFLAGS -P" 17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17187 /* end confdefs.h. */ 17188 17189 #include <errno.h> 17190 TEST EINVAL TEST 17191 17192 _ACEOF 17193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17194 $EGREP "TEST.*TEST" >/dev/null 2>&1 17195 then : 17196 cpp_p=yes 17197 else $as_nop 17198 cpp_p=no 17199 fi 17200 rm -rf conftest* 17201 17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5 17203 printf "%s\n" "$cpp_p" >&6; } 17204 17205 if test "x$cpp_p" = "xno"; then 17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5 17207 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;} 17208 # without -P 17209 CPPPFLAG="" 17210 else 17211 # with -P 17212 CPPPFLAG="-P" 17213 fi 17214 CPPFLAGS=$OLDCPPFLAGS 17215 else 17216 # without -P 17217 CPPPFLAG="" 17218 fi 17219 17220 17221 # 17222 compiler_id="unknown" 17223 compiler_ver="" 17224 compiler_num="0" 17225 # 17226 flags_dbg_yes="unknown" 17227 flags_opt_all="unknown" 17228 flags_opt_yes="unknown" 17229 flags_opt_off="unknown" 17230 # 17231 flags_prefer_cppflags="no" 17232 # 17233 17234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 17235 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; } 17236 17237 OLDCPPFLAGS=$CPPFLAGS 17238 # CPPPFLAG comes from CURL_CPP_P 17239 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17240 if test -z "$SED"; then 17241 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17242 fi 17243 if test -z "$GREP"; then 17244 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17245 fi 17246 17247 tmp_exp="" 17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17249 /* end confdefs.h. */ 17250 17251 17252 #ifdef __DECC 17253 CURL_DEF_TOKEN __DECC 17254 #endif 17255 17256 17257 _ACEOF 17258 if ac_fn_c_try_cpp "$LINENO" 17259 then : 17260 17261 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17262 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17263 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17264 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17265 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 17266 tmp_exp="" 17267 fi 17268 17269 fi 17270 rm -f conftest.err conftest.i conftest.$ac_ext 17271 if test -z "$tmp_exp"; then 17272 curl_cv_have_def___DECC=no 17273 17274 else 17275 curl_cv_have_def___DECC=yes 17276 curl_cv_def___DECC=$tmp_exp 17277 17278 fi 17279 CPPFLAGS=$OLDCPPFLAGS 17280 17281 17282 OLDCPPFLAGS=$CPPFLAGS 17283 # CPPPFLAG comes from CURL_CPP_P 17284 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17285 if test -z "$SED"; then 17286 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17287 fi 17288 if test -z "$GREP"; then 17289 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17290 fi 17291 17292 tmp_exp="" 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294 /* end confdefs.h. */ 17295 17296 17297 #ifdef __DECC_VER 17298 CURL_DEF_TOKEN __DECC_VER 17299 #endif 17300 17301 17302 _ACEOF 17303 if ac_fn_c_try_cpp "$LINENO" 17304 then : 17305 17306 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17307 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17308 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17309 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17310 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 17311 tmp_exp="" 17312 fi 17313 17314 fi 17315 rm -f conftest.err conftest.i conftest.$ac_ext 17316 if test -z "$tmp_exp"; then 17317 curl_cv_have_def___DECC_VER=no 17318 17319 else 17320 curl_cv_have_def___DECC_VER=yes 17321 curl_cv_def___DECC_VER=$tmp_exp 17322 17323 fi 17324 CPPFLAGS=$OLDCPPFLAGS 17325 17326 if test "$curl_cv_have_def___DECC" = "yes" && 17327 test "$curl_cv_have_def___DECC_VER" = "yes"; then 17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17329 printf "%s\n" "yes" >&6; } 17330 compiler_id="DEC_C" 17331 flags_dbg_yes="-g2" 17332 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 17333 flags_opt_yes="-O1" 17334 flags_opt_off="-O0" 17335 else 17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17337 printf "%s\n" "no" >&6; } 17338 fi 17339 17340 17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 17342 printf %s "checking if compiler is HP-UX C... " >&6; } 17343 17344 OLDCPPFLAGS=$CPPFLAGS 17345 # CPPPFLAG comes from CURL_CPP_P 17346 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17347 if test -z "$SED"; then 17348 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17349 fi 17350 if test -z "$GREP"; then 17351 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17352 fi 17353 17354 tmp_exp="" 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356 /* end confdefs.h. */ 17357 17358 17359 #ifdef __HP_cc 17360 CURL_DEF_TOKEN __HP_cc 17361 #endif 17362 17363 17364 _ACEOF 17365 if ac_fn_c_try_cpp "$LINENO" 17366 then : 17367 17368 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17369 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17370 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17371 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17372 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 17373 tmp_exp="" 17374 fi 17375 17376 fi 17377 rm -f conftest.err conftest.i conftest.$ac_ext 17378 if test -z "$tmp_exp"; then 17379 curl_cv_have_def___HP_cc=no 17380 17381 else 17382 curl_cv_have_def___HP_cc=yes 17383 curl_cv_def___HP_cc=$tmp_exp 17384 17385 fi 17386 CPPFLAGS=$OLDCPPFLAGS 17387 17388 if test "$curl_cv_have_def___HP_cc" = "yes"; then 17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17390 printf "%s\n" "yes" >&6; } 17391 compiler_id="HP_UX_C" 17392 flags_dbg_yes="-g" 17393 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 17394 flags_opt_yes="+O2" 17395 flags_opt_off="+O0" 17396 else 17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17398 printf "%s\n" "no" >&6; } 17399 fi 17400 17401 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 17403 printf %s "checking if compiler is IBM C... " >&6; } 17404 17405 OLDCPPFLAGS=$CPPFLAGS 17406 # CPPPFLAG comes from CURL_CPP_P 17407 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17408 if test -z "$SED"; then 17409 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17410 fi 17411 if test -z "$GREP"; then 17412 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17413 fi 17414 17415 tmp_exp="" 17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17417 /* end confdefs.h. */ 17418 17419 17420 #ifdef __IBMC__ 17421 CURL_DEF_TOKEN __IBMC__ 17422 #endif 17423 17424 17425 _ACEOF 17426 if ac_fn_c_try_cpp "$LINENO" 17427 then : 17428 17429 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17430 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17431 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17432 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17433 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 17434 tmp_exp="" 17435 fi 17436 17437 fi 17438 rm -f conftest.err conftest.i conftest.$ac_ext 17439 if test -z "$tmp_exp"; then 17440 curl_cv_have_def___IBMC__=no 17441 17442 else 17443 curl_cv_have_def___IBMC__=yes 17444 curl_cv_def___IBMC__=$tmp_exp 17445 17446 fi 17447 CPPFLAGS=$OLDCPPFLAGS 17448 17449 if test "$curl_cv_have_def___IBMC__" = "yes"; then 17450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17451 printf "%s\n" "yes" >&6; } 17452 compiler_id="IBM_C" 17453 flags_dbg_yes="-g" 17454 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 17455 flags_opt_all="$flags_opt_all -qnooptimize" 17456 flags_opt_all="$flags_opt_all -qoptimize=0" 17457 flags_opt_all="$flags_opt_all -qoptimize=1" 17458 flags_opt_all="$flags_opt_all -qoptimize=2" 17459 flags_opt_all="$flags_opt_all -qoptimize=3" 17460 flags_opt_all="$flags_opt_all -qoptimize=4" 17461 flags_opt_all="$flags_opt_all -qoptimize=5" 17462 flags_opt_yes="-O2" 17463 flags_opt_off="-qnooptimize" 17464 flags_prefer_cppflags="yes" 17465 else 17466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17467 printf "%s\n" "no" >&6; } 17468 fi 17469 17470 17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 17472 printf %s "checking if compiler is Intel C... " >&6; } 17473 17474 OLDCPPFLAGS=$CPPFLAGS 17475 # CPPPFLAG comes from CURL_CPP_P 17476 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17477 if test -z "$SED"; then 17478 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17479 fi 17480 if test -z "$GREP"; then 17481 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17482 fi 17483 17484 tmp_exp="" 17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17486 /* end confdefs.h. */ 17487 17488 17489 #ifdef __INTEL_COMPILER 17490 CURL_DEF_TOKEN __INTEL_COMPILER 17491 #endif 17492 17493 17494 _ACEOF 17495 if ac_fn_c_try_cpp "$LINENO" 17496 then : 17497 17498 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17499 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17500 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17501 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17502 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 17503 tmp_exp="" 17504 fi 17505 17506 fi 17507 rm -f conftest.err conftest.i conftest.$ac_ext 17508 if test -z "$tmp_exp"; then 17509 curl_cv_have_def___INTEL_COMPILER=no 17510 17511 else 17512 curl_cv_have_def___INTEL_COMPILER=yes 17513 curl_cv_def___INTEL_COMPILER=$tmp_exp 17514 17515 fi 17516 CPPFLAGS=$OLDCPPFLAGS 17517 17518 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17520 printf "%s\n" "yes" >&6; } 17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5 17522 printf %s "checking compiler version... " >&6; } 17523 compiler_num="$curl_cv_def___INTEL_COMPILER" 17524 compiler_ver=`echo "$compiler_num" | cut -c -2 | $SED 's/^0//'`.`echo "$compiler_num" | cut -c 3-4 | $SED 's/^0//'` 17525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Intel C '$compiler_num'" >&5 17526 printf "%s\n" "Intel C '$compiler_num'" >&6; } 17527 17528 OLDCPPFLAGS=$CPPFLAGS 17529 # CPPPFLAG comes from CURL_CPP_P 17530 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17531 if test -z "$SED"; then 17532 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17533 fi 17534 if test -z "$GREP"; then 17535 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17536 fi 17537 17538 tmp_exp="" 17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540 /* end confdefs.h. */ 17541 17542 17543 #ifdef __unix__ 17544 CURL_DEF_TOKEN __unix__ 17545 #endif 17546 17547 17548 _ACEOF 17549 if ac_fn_c_try_cpp "$LINENO" 17550 then : 17551 17552 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17553 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17554 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17555 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17556 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 17557 tmp_exp="" 17558 fi 17559 17560 fi 17561 rm -f conftest.err conftest.i conftest.$ac_ext 17562 if test -z "$tmp_exp"; then 17563 curl_cv_have_def___unix__=no 17564 17565 else 17566 curl_cv_have_def___unix__=yes 17567 curl_cv_def___unix__=$tmp_exp 17568 17569 fi 17570 CPPFLAGS=$OLDCPPFLAGS 17571 17572 if test "$curl_cv_have_def___unix__" = "yes"; then 17573 compiler_id="INTEL_UNIX_C" 17574 flags_dbg_yes="-g" 17575 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 17576 flags_opt_yes="-O2" 17577 flags_opt_off="-O0" 17578 else 17579 compiler_id="INTEL_WINDOWS_C" 17580 flags_dbg_yes="/Zi /Oy-" 17581 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 17582 flags_opt_yes="/O2" 17583 flags_opt_off="/Od" 17584 fi 17585 else 17586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17587 printf "%s\n" "no" >&6; } 17588 fi 17589 17590 17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 17592 printf %s "checking if compiler is clang... " >&6; } 17593 17594 OLDCPPFLAGS=$CPPFLAGS 17595 # CPPPFLAG comes from CURL_CPP_P 17596 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17597 if test -z "$SED"; then 17598 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17599 fi 17600 if test -z "$GREP"; then 17601 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17602 fi 17603 17604 tmp_exp="" 17605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17606 /* end confdefs.h. */ 17607 17608 17609 #ifdef __clang__ 17610 CURL_DEF_TOKEN __clang__ 17611 #endif 17612 17613 17614 _ACEOF 17615 if ac_fn_c_try_cpp "$LINENO" 17616 then : 17617 17618 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17619 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17620 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17621 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17622 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 17623 tmp_exp="" 17624 fi 17625 17626 fi 17627 rm -f conftest.err conftest.i conftest.$ac_ext 17628 if test -z "$tmp_exp"; then 17629 curl_cv_have_def___clang__=no 17630 17631 else 17632 curl_cv_have_def___clang__=yes 17633 curl_cv_def___clang__=$tmp_exp 17634 17635 fi 17636 CPPFLAGS=$OLDCPPFLAGS 17637 17638 if test "$curl_cv_have_def___clang__" = "yes"; then 17639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17640 printf "%s\n" "yes" >&6; } 17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5 17642 printf %s "checking if compiler is xlclang... " >&6; } 17643 17644 OLDCPPFLAGS=$CPPFLAGS 17645 # CPPPFLAG comes from CURL_CPP_P 17646 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17647 if test -z "$SED"; then 17648 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17649 fi 17650 if test -z "$GREP"; then 17651 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17652 fi 17653 17654 tmp_exp="" 17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17656 /* end confdefs.h. */ 17657 17658 17659 #ifdef __ibmxl__ 17660 CURL_DEF_TOKEN __ibmxl__ 17661 #endif 17662 17663 17664 _ACEOF 17665 if ac_fn_c_try_cpp "$LINENO" 17666 then : 17667 17668 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17669 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17670 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17671 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17672 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then 17673 tmp_exp="" 17674 fi 17675 17676 fi 17677 rm -f conftest.err conftest.i conftest.$ac_ext 17678 if test -z "$tmp_exp"; then 17679 curl_cv_have_def___ibmxl__=no 17680 17681 else 17682 curl_cv_have_def___ibmxl__=yes 17683 curl_cv_def___ibmxl__=$tmp_exp 17684 17685 fi 17686 CPPFLAGS=$OLDCPPFLAGS 17687 17688 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then 17689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17690 printf "%s\n" "yes" >&6; } 17691 compiler_id="XLCLANG" 17692 else 17693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17694 printf "%s\n" "no" >&6; } 17695 compiler_id="CLANG" 17696 fi 17697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Apple clang" >&5 17698 printf %s "checking if compiler is Apple clang... " >&6; } 17699 fullclangver=`$CC -v 2>&1 | grep version` 17700 if echo $fullclangver | grep 'Apple' >/dev/null; then 17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17702 printf "%s\n" "yes" >&6; } 17703 appleclang=1 17704 compiler_id="APPLECLANG" 17705 else 17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17707 printf "%s\n" "no" >&6; } 17708 appleclang=0 17709 fi 17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5 17711 printf %s "checking compiler version... " >&6; } 17712 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'` 17713 if test -z "$clangver"; then 17714 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'` 17715 oldapple=0 17716 else 17717 oldapple=1 17718 fi 17719 clangvhi=`echo $clangver | cut -d . -f1` 17720 clangvlo=`echo $clangver | cut -d . -f2` 17721 compiler_ver="$clangver" 17722 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 17723 if test "$appleclang" = '1' && test "$oldapple" = '0'; then 17724 if test "$compiler_num" -ge '1300'; then compiler_num='1200' 17725 elif test "$compiler_num" -ge '1205'; then compiler_num='1101' 17726 elif test "$compiler_num" -ge '1204'; then compiler_num='1000' 17727 elif test "$compiler_num" -ge '1107'; then compiler_num='900' 17728 elif test "$compiler_num" -ge '1103'; then compiler_num='800' 17729 elif test "$compiler_num" -ge '1003'; then compiler_num='700' 17730 elif test "$compiler_num" -ge '1001'; then compiler_num='600' 17731 elif test "$compiler_num" -ge '904'; then compiler_num='500' 17732 elif test "$compiler_num" -ge '902'; then compiler_num='400' 17733 elif test "$compiler_num" -ge '803'; then compiler_num='309' 17734 elif test "$compiler_num" -ge '703'; then compiler_num='308' 17735 else compiler_num='307' 17736 fi 17737 fi 17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5 17739 printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; } 17740 flags_dbg_yes="-g" 17741 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 17742 flags_opt_yes="-O2" 17743 flags_opt_off="-O0" 17744 else 17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17746 printf "%s\n" "no" >&6; } 17747 fi 17748 17749 17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 17751 printf %s "checking if compiler is GNU C... " >&6; } 17752 17753 OLDCPPFLAGS=$CPPFLAGS 17754 # CPPPFLAG comes from CURL_CPP_P 17755 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17756 if test -z "$SED"; then 17757 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17758 fi 17759 if test -z "$GREP"; then 17760 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17761 fi 17762 17763 tmp_exp="" 17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17765 /* end confdefs.h. */ 17766 17767 17768 #ifdef __GNUC__ 17769 CURL_DEF_TOKEN __GNUC__ 17770 #endif 17771 17772 17773 _ACEOF 17774 if ac_fn_c_try_cpp "$LINENO" 17775 then : 17776 17777 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17778 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17779 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17780 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17781 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 17782 tmp_exp="" 17783 fi 17784 17785 fi 17786 rm -f conftest.err conftest.i conftest.$ac_ext 17787 if test -z "$tmp_exp"; then 17788 curl_cv_have_def___GNUC__=no 17789 17790 else 17791 curl_cv_have_def___GNUC__=yes 17792 curl_cv_def___GNUC__=$tmp_exp 17793 17794 fi 17795 CPPFLAGS=$OLDCPPFLAGS 17796 17797 if test "$curl_cv_have_def___GNUC__" = "yes" && 17798 test "$compiler_id" = "unknown"; then 17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17800 printf "%s\n" "yes" >&6; } 17801 compiler_id="GNU_C" 17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5 17803 printf %s "checking compiler version... " >&6; } 17804 # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32' 17805 gccver=`$CC -dumpversion | "$SED" 's/-.\{1,\}$//'` 17806 gccvhi=`echo $gccver | cut -d . -f1` 17807 if echo $gccver | grep -F '.' >/dev/null; then 17808 gccvlo=`echo $gccver | cut -d . -f2` 17809 else 17810 gccvlo="0" 17811 fi 17812 compiler_ver="$gccver" 17813 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 17814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5 17815 printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; } 17816 flags_dbg_yes="-g" 17817 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast" 17818 flags_opt_yes="-O2" 17819 flags_opt_off="-O0" 17820 else 17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17822 printf "%s\n" "no" >&6; } 17823 fi 17824 17825 case $host in 17826 mips-sgi-irix*) 17827 17828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 17829 printf %s "checking if compiler is SGI MIPSpro C... " >&6; } 17830 17831 OLDCPPFLAGS=$CPPFLAGS 17832 # CPPPFLAG comes from CURL_CPP_P 17833 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17834 if test -z "$SED"; then 17835 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17836 fi 17837 if test -z "$GREP"; then 17838 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17839 fi 17840 17841 tmp_exp="" 17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843 /* end confdefs.h. */ 17844 17845 17846 #ifdef __GNUC__ 17847 CURL_DEF_TOKEN __GNUC__ 17848 #endif 17849 17850 17851 _ACEOF 17852 if ac_fn_c_try_cpp "$LINENO" 17853 then : 17854 17855 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17856 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17857 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17858 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17859 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 17860 tmp_exp="" 17861 fi 17862 17863 fi 17864 rm -f conftest.err conftest.i conftest.$ac_ext 17865 if test -z "$tmp_exp"; then 17866 curl_cv_have_def___GNUC__=no 17867 17868 else 17869 curl_cv_have_def___GNUC__=yes 17870 curl_cv_def___GNUC__=$tmp_exp 17871 17872 fi 17873 CPPFLAGS=$OLDCPPFLAGS 17874 17875 17876 OLDCPPFLAGS=$CPPFLAGS 17877 # CPPPFLAG comes from CURL_CPP_P 17878 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17879 if test -z "$SED"; then 17880 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17881 fi 17882 if test -z "$GREP"; then 17883 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17884 fi 17885 17886 tmp_exp="" 17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17888 /* end confdefs.h. */ 17889 17890 17891 #ifdef _COMPILER_VERSION 17892 CURL_DEF_TOKEN _COMPILER_VERSION 17893 #endif 17894 17895 17896 _ACEOF 17897 if ac_fn_c_try_cpp "$LINENO" 17898 then : 17899 17900 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17901 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17902 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17903 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17904 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 17905 tmp_exp="" 17906 fi 17907 17908 fi 17909 rm -f conftest.err conftest.i conftest.$ac_ext 17910 if test -z "$tmp_exp"; then 17911 curl_cv_have_def__COMPILER_VERSION=no 17912 17913 else 17914 curl_cv_have_def__COMPILER_VERSION=yes 17915 curl_cv_def__COMPILER_VERSION=$tmp_exp 17916 17917 fi 17918 CPPFLAGS=$OLDCPPFLAGS 17919 17920 17921 OLDCPPFLAGS=$CPPFLAGS 17922 # CPPPFLAG comes from CURL_CPP_P 17923 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17924 if test -z "$SED"; then 17925 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17926 fi 17927 if test -z "$GREP"; then 17928 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17929 fi 17930 17931 tmp_exp="" 17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17933 /* end confdefs.h. */ 17934 17935 17936 #ifdef _SGI_COMPILER_VERSION 17937 CURL_DEF_TOKEN _SGI_COMPILER_VERSION 17938 #endif 17939 17940 17941 _ACEOF 17942 if ac_fn_c_try_cpp "$LINENO" 17943 then : 17944 17945 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17946 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17947 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17948 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17949 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 17950 tmp_exp="" 17951 fi 17952 17953 fi 17954 rm -f conftest.err conftest.i conftest.$ac_ext 17955 if test -z "$tmp_exp"; then 17956 curl_cv_have_def__SGI_COMPILER_VERSION=no 17957 17958 else 17959 curl_cv_have_def__SGI_COMPILER_VERSION=yes 17960 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 17961 17962 fi 17963 CPPFLAGS=$OLDCPPFLAGS 17964 17965 if test "$curl_cv_have_def___GNUC__" = "no" && 17966 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 17967 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17969 printf "%s\n" "yes" >&6; } 17970 compiler_id="SGI_MIPSPRO_C" 17971 flags_dbg_yes="-g" 17972 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 17973 flags_opt_yes="-O2" 17974 flags_opt_off="-O0" 17975 else 17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17977 printf "%s\n" "no" >&6; } 17978 fi 17979 17980 17981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 17982 printf %s "checking if compiler is SGI MIPS C... " >&6; } 17983 17984 OLDCPPFLAGS=$CPPFLAGS 17985 # CPPPFLAG comes from CURL_CPP_P 17986 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17987 if test -z "$SED"; then 17988 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17989 fi 17990 if test -z "$GREP"; then 17991 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17992 fi 17993 17994 tmp_exp="" 17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17996 /* end confdefs.h. */ 17997 17998 17999 #ifdef __GNUC__ 18000 CURL_DEF_TOKEN __GNUC__ 18001 #endif 18002 18003 18004 _ACEOF 18005 if ac_fn_c_try_cpp "$LINENO" 18006 then : 18007 18008 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18009 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18010 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18011 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18012 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 18013 tmp_exp="" 18014 fi 18015 18016 fi 18017 rm -f conftest.err conftest.i conftest.$ac_ext 18018 if test -z "$tmp_exp"; then 18019 curl_cv_have_def___GNUC__=no 18020 18021 else 18022 curl_cv_have_def___GNUC__=yes 18023 curl_cv_def___GNUC__=$tmp_exp 18024 18025 fi 18026 CPPFLAGS=$OLDCPPFLAGS 18027 18028 18029 OLDCPPFLAGS=$CPPFLAGS 18030 # CPPPFLAG comes from CURL_CPP_P 18031 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18032 if test -z "$SED"; then 18033 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18034 fi 18035 if test -z "$GREP"; then 18036 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18037 fi 18038 18039 tmp_exp="" 18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18041 /* end confdefs.h. */ 18042 18043 18044 #ifdef __sgi 18045 CURL_DEF_TOKEN __sgi 18046 #endif 18047 18048 18049 _ACEOF 18050 if ac_fn_c_try_cpp "$LINENO" 18051 then : 18052 18053 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18054 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18055 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18056 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18057 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 18058 tmp_exp="" 18059 fi 18060 18061 fi 18062 rm -f conftest.err conftest.i conftest.$ac_ext 18063 if test -z "$tmp_exp"; then 18064 curl_cv_have_def___sgi=no 18065 18066 else 18067 curl_cv_have_def___sgi=yes 18068 curl_cv_def___sgi=$tmp_exp 18069 18070 fi 18071 CPPFLAGS=$OLDCPPFLAGS 18072 18073 if test "$curl_cv_have_def___GNUC__" = "no" && 18074 test "$curl_cv_have_def___sgi" = "yes" && 18075 test "$compiler_id" = "unknown"; then 18076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18077 printf "%s\n" "yes" >&6; } 18078 compiler_id="SGI_MIPS_C" 18079 flags_dbg_yes="-g" 18080 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 18081 flags_opt_yes="-O2" 18082 flags_opt_off="-O0" 18083 else 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18085 printf "%s\n" "no" >&6; } 18086 fi 18087 18088 ;; 18089 esac 18090 18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 18092 printf %s "checking if compiler is SunPro C... " >&6; } 18093 18094 OLDCPPFLAGS=$CPPFLAGS 18095 # CPPPFLAG comes from CURL_CPP_P 18096 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18097 if test -z "$SED"; then 18098 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18099 fi 18100 if test -z "$GREP"; then 18101 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18102 fi 18103 18104 tmp_exp="" 18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18106 /* end confdefs.h. */ 18107 18108 18109 #ifdef __SUNPRO_C 18110 CURL_DEF_TOKEN __SUNPRO_C 18111 #endif 18112 18113 18114 _ACEOF 18115 if ac_fn_c_try_cpp "$LINENO" 18116 then : 18117 18118 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18119 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18120 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18121 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18122 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 18123 tmp_exp="" 18124 fi 18125 18126 fi 18127 rm -f conftest.err conftest.i conftest.$ac_ext 18128 if test -z "$tmp_exp"; then 18129 curl_cv_have_def___SUNPRO_C=no 18130 18131 else 18132 curl_cv_have_def___SUNPRO_C=yes 18133 curl_cv_def___SUNPRO_C=$tmp_exp 18134 18135 fi 18136 CPPFLAGS=$OLDCPPFLAGS 18137 18138 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18140 printf "%s\n" "yes" >&6; } 18141 compiler_id="SUNPRO_C" 18142 flags_dbg_yes="-g" 18143 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 18144 flags_opt_yes="-xO2" 18145 flags_opt_off="" 18146 else 18147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18148 printf "%s\n" "no" >&6; } 18149 fi 18150 18151 18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 18153 printf %s "checking if compiler is Tiny C... " >&6; } 18154 18155 OLDCPPFLAGS=$CPPFLAGS 18156 # CPPPFLAG comes from CURL_CPP_P 18157 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18158 if test -z "$SED"; then 18159 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18160 fi 18161 if test -z "$GREP"; then 18162 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18163 fi 18164 18165 tmp_exp="" 18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167 /* end confdefs.h. */ 18168 18169 18170 #ifdef __TINYC__ 18171 CURL_DEF_TOKEN __TINYC__ 18172 #endif 18173 18174 18175 _ACEOF 18176 if ac_fn_c_try_cpp "$LINENO" 18177 then : 18178 18179 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18180 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18181 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18182 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18183 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 18184 tmp_exp="" 18185 fi 18186 18187 fi 18188 rm -f conftest.err conftest.i conftest.$ac_ext 18189 if test -z "$tmp_exp"; then 18190 curl_cv_have_def___TINYC__=no 18191 18192 else 18193 curl_cv_have_def___TINYC__=yes 18194 curl_cv_def___TINYC__=$tmp_exp 18195 18196 fi 18197 CPPFLAGS=$OLDCPPFLAGS 18198 18199 if test "$curl_cv_have_def___TINYC__" = "yes"; then 18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18201 printf "%s\n" "yes" >&6; } 18202 compiler_id="TINY_C" 18203 flags_dbg_yes="-g" 18204 flags_opt_all="" 18205 flags_opt_yes="" 18206 flags_opt_off="" 18207 else 18208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18209 printf "%s\n" "no" >&6; } 18210 fi 18211 18212 # 18213 if test "$compiler_id" = "unknown"; then 18214 cat <<_EOF 1>&2 18215 *** 18216 *** Warning: This configure script does not have information about the 18217 *** compiler you are using, relative to the flags required to enable or 18218 *** disable generation of debug info, optimization options or warnings. 18219 *** 18220 *** Whatever settings are present in CFLAGS will be used for this run. 18221 *** 18222 *** If you wish to help the curl project to better support your compiler 18223 *** you can report this and the required info on the libcurl development 18224 *** mailing list: https://lists.haxx.selistinfo/curl-library/ 18225 *** 18226 _EOF 18227 fi 18228 18229 18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 18231 printf %s "checking whether build target is a native Windows one... " >&6; } 18232 if test ${curl_cv_native_windows+y} 18233 then : 18234 printf %s "(cached) " >&6 18235 else $as_nop 18236 18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18238 /* end confdefs.h. */ 18239 18240 18241 18242 int main(void) 18243 { 18244 18245 #ifdef _WIN32 18246 int dummy = 1; 18247 (void)dummy; 18248 #else 18249 #error Not a native Windows build target. 18250 #endif 18251 18252 return 0; 18253 } 18254 18255 _ACEOF 18256 if ac_fn_c_try_compile "$LINENO" 18257 then : 18258 18259 curl_cv_native_windows="yes" 18260 18261 else $as_nop 18262 18263 curl_cv_native_windows="no" 18264 18265 fi 18266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18267 18268 fi 18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 18270 printf "%s\n" "$curl_cv_native_windows" >&6; } 18271 if test "x$curl_cv_native_windows" = xyes; then 18272 DOING_NATIVE_WINDOWS_TRUE= 18273 DOING_NATIVE_WINDOWS_FALSE='#' 18274 else 18275 DOING_NATIVE_WINDOWS_TRUE='#' 18276 DOING_NATIVE_WINDOWS_FALSE= 18277 fi 18278 18279 18280 18281 curl_cv_wince='no' 18282 curl_cv_winuwp='no' 18283 if test "$curl_cv_native_windows" = "yes"; then 18284 case $host_os in 18285 mingw32ce*) curl_cv_wince='yes';; 18286 esac 18287 case "$CPPFLAGS" in 18288 *-DWINSTORECOMPAT*) curl_cv_winuwp='yes';; 18289 esac 18290 fi 18291 18292 18293 squeeze() { 18294 _sqz_result="" 18295 eval _sqz_input=\$$1 18296 for _sqz_token in $_sqz_input; do 18297 if test -z "$_sqz_result"; then 18298 _sqz_result="$_sqz_token" 18299 else 18300 _sqz_result="$_sqz_result $_sqz_token" 18301 fi 18302 done 18303 eval $1=\$_sqz_result 18304 return 0 18305 } 18306 18307 18308 # 18309 if test "$compiler_id" != "unknown"; then 18310 # 18311 tmp_save_CPPFLAGS="$CPPFLAGS" 18312 tmp_save_CFLAGS="$CFLAGS" 18313 tmp_CPPFLAGS="" 18314 tmp_CFLAGS="" 18315 # 18316 case "$compiler_id" in 18317 # 18318 CLANG|APPLECLANG) 18319 # 18320 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 18321 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" 18322 ;; 18323 # 18324 DEC_C) 18325 # 18326 tmp_CFLAGS="$tmp_CFLAGS -std1" 18327 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 18328 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 18329 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 18330 ;; 18331 # 18332 GNU_C) 18333 # 18334 if test "$compiler_num" -ge "295"; then 18335 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" 18336 fi 18337 ;; 18338 # 18339 HP_UX_C) 18340 # 18341 tmp_CFLAGS="$tmp_CFLAGS -z" 18342 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 18343 ;; 18344 # 18345 IBM_C) 18346 # 18347 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 18348 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 18349 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 18350 ;; 18351 # 18352 INTEL_UNIX_C) 18353 # 18354 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 18355 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266" 18356 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259" 18357 ;; 18358 # 18359 INTEL_WINDOWS_C) 18360 # 18361 tmp_CFLAGS="$tmp_CFLAGS" 18362 ;; 18363 # 18364 SGI_MIPS_C) 18365 # 18366 tmp_CFLAGS="$tmp_CFLAGS" 18367 ;; 18368 # 18369 SGI_MIPSPRO_C) 18370 # 18371 tmp_CFLAGS="$tmp_CFLAGS" 18372 ;; 18373 # 18374 SUNPRO_C) 18375 # 18376 tmp_CFLAGS="$tmp_CFLAGS" 18377 ;; 18378 # 18379 TINY_C) 18380 # 18381 tmp_CFLAGS="$tmp_CFLAGS" 18382 ;; 18383 # 18384 esac 18385 # 18386 squeeze tmp_CPPFLAGS 18387 squeeze tmp_CFLAGS 18388 # 18389 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 18391 printf %s "checking if compiler accepts some basic options... " >&6; } 18392 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 18393 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 18394 squeeze CPPFLAGS 18395 squeeze CFLAGS 18396 18397 tmp_compiler_works="unknown" 18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18399 /* end confdefs.h. */ 18400 18401 18402 18403 int main(void) 18404 { 18405 18406 int i = 1; 18407 return i; 18408 18409 return 0; 18410 } 18411 18412 _ACEOF 18413 if ac_fn_c_try_compile "$LINENO" 18414 then : 18415 18416 tmp_compiler_works="yes" 18417 18418 else $as_nop 18419 18420 tmp_compiler_works="no" 18421 echo " " >&6 18422 sed 's/^/cc-fail: /' conftest.err >&6 18423 echo " " >&6 18424 18425 fi 18426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18427 if test "$tmp_compiler_works" = "yes"; then 18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18429 /* end confdefs.h. */ 18430 18431 18432 18433 int main(void) 18434 { 18435 18436 int i = 1; 18437 return i; 18438 18439 return 0; 18440 } 18441 18442 _ACEOF 18443 if ac_fn_c_try_link "$LINENO" 18444 then : 18445 18446 tmp_compiler_works="yes" 18447 18448 else $as_nop 18449 18450 tmp_compiler_works="no" 18451 echo " " >&6 18452 sed 's/^/link-fail: /' conftest.err >&6 18453 echo " " >&6 18454 18455 fi 18456 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18457 conftest$ac_exeext conftest.$ac_ext 18458 fi 18459 if test "x$cross_compiling" != "xyes" && 18460 test "$tmp_compiler_works" = "yes"; then 18461 18462 if test "$curl_cv_apple" = 'yes'; then 18463 if test "$cross_compiling" = yes 18464 then : 18465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18466 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18467 as_fn_error $? "cannot run test program while cross compiling 18468 See \`config.log' for more details" "$LINENO" 5; } 18469 else $as_nop 18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18471 /* end confdefs.h. */ 18472 18473 18474 #ifdef __STDC__ 18475 # include <stdlib.h> 18476 #endif 18477 18478 int main(void) 18479 { 18480 18481 int i = 0; 18482 return i; 18483 18484 return 0; 18485 } 18486 18487 _ACEOF 18488 if ac_fn_c_try_run "$LINENO" 18489 then : 18490 tmp_compiler_works="yes" 18491 18492 else $as_nop 18493 tmp_compiler_works="no" 18494 echo " " >&6 18495 echo "run-fail: test program exited with status $ac_status" >&6 18496 echo " " >&6 18497 18498 fi 18499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18500 conftest.$ac_objext conftest.beam conftest.$ac_ext 18501 fi 18502 18503 else 18504 oldcc=$CC 18505 old=$LD_LIBRARY_PATH 18506 CC="sh ./run-compiler" 18507 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 18508 export LD_LIBRARY_PATH 18509 if test "$cross_compiling" = yes 18510 then : 18511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18512 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18513 as_fn_error $? "cannot run test program while cross compiling 18514 See \`config.log' for more details" "$LINENO" 5; } 18515 else $as_nop 18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18517 /* end confdefs.h. */ 18518 18519 18520 #ifdef __STDC__ 18521 # include <stdlib.h> 18522 #endif 18523 18524 int main(void) 18525 { 18526 18527 int i = 0; 18528 return i; 18529 18530 return 0; 18531 } 18532 18533 _ACEOF 18534 if ac_fn_c_try_run "$LINENO" 18535 then : 18536 tmp_compiler_works="yes" 18537 18538 else $as_nop 18539 tmp_compiler_works="no" 18540 echo " " >&6 18541 echo "run-fail: test program exited with status $ac_status" >&6 18542 echo " " >&6 18543 18544 fi 18545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18546 conftest.$ac_objext conftest.beam conftest.$ac_ext 18547 fi 18548 18549 LD_LIBRARY_PATH=$old # restore 18550 CC=$oldcc 18551 fi 18552 18553 fi 18554 if test "$tmp_compiler_works" = "yes"; then 18555 18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18557 printf "%s\n" "yes" >&6; } 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18559 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 18560 18561 else 18562 18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18564 printf "%s\n" "no" >&6; } 18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18566 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 18567 CPPFLAGS="$tmp_save_CPPFLAGS" 18568 CFLAGS="$tmp_save_CFLAGS" 18569 18570 fi 18571 18572 fi 18573 # 18574 fi 18575 18576 18577 # 18578 if test "$compiler_id" != "unknown"; then 18579 # 18580 tmp_save_CFLAGS="$CFLAGS" 18581 tmp_save_CPPFLAGS="$CPPFLAGS" 18582 # 18583 tmp_options="" 18584 tmp_CFLAGS="$CFLAGS" 18585 tmp_CPPFLAGS="$CPPFLAGS" 18586 # 18587 if test "$want_debug" = "yes"; then 18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 18589 printf %s "checking if compiler accepts debug enabling options... " >&6; } 18590 tmp_options="$flags_dbg_yes" 18591 fi 18592 # 18593 if test "$flags_prefer_cppflags" = "yes"; then 18594 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 18595 CFLAGS="$tmp_CFLAGS" 18596 else 18597 CPPFLAGS="$tmp_CPPFLAGS" 18598 CFLAGS="$tmp_CFLAGS $tmp_options" 18599 fi 18600 squeeze CPPFLAGS 18601 squeeze CFLAGS 18602 fi 18603 18604 18605 # 18606 if test "$compiler_id" != "unknown"; then 18607 # 18608 tmp_save_CFLAGS="$CFLAGS" 18609 tmp_save_CPPFLAGS="$CPPFLAGS" 18610 # 18611 tmp_options="" 18612 tmp_CFLAGS="$CFLAGS" 18613 tmp_CPPFLAGS="$CPPFLAGS" 18614 honor_optimize_option="yes" 18615 # 18616 # 18617 if test "$want_optimize" = "assume_no" || 18618 test "$want_optimize" = "assume_yes"; then 18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 18620 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; } 18621 18622 18623 ac_var_match_word="no" 18624 for word1 in $tmp_CFLAGS; do 18625 for word2 in $flags_opt_all; do 18626 if test "$word1" = "$word2"; then 18627 ac_var_match_word="yes" 18628 fi 18629 done 18630 done 18631 18632 if test "$ac_var_match_word" = "yes"; then 18633 18634 honor_optimize_option="no" 18635 18636 18637 fi 18638 18639 18640 18641 ac_var_match_word="no" 18642 for word1 in $tmp_CPPFLAGS; do 18643 for word2 in $flags_opt_all; do 18644 if test "$word1" = "$word2"; then 18645 ac_var_match_word="yes" 18646 fi 18647 done 18648 done 18649 18650 if test "$ac_var_match_word" = "yes"; then 18651 18652 honor_optimize_option="no" 18653 18654 18655 fi 18656 18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 18658 printf "%s\n" "$honor_optimize_option" >&6; } 18659 if test "$honor_optimize_option" = "yes"; then 18660 if test "$want_optimize" = "assume_yes"; then 18661 want_optimize="yes" 18662 fi 18663 if test "$want_optimize" = "assume_no"; then 18664 want_optimize="no" 18665 fi 18666 fi 18667 fi 18668 # 18669 if test "$honor_optimize_option" = "yes"; then 18670 18671 ac_var_stripped="" 18672 for word1 in $tmp_CFLAGS; do 18673 ac_var_strip_word="no" 18674 for word2 in $flags_opt_all; do 18675 if test "$word1" = "$word2"; then 18676 ac_var_strip_word="yes" 18677 fi 18678 done 18679 if test "$ac_var_strip_word" = "no"; then 18680 ac_var_stripped="$ac_var_stripped $word1" 18681 fi 18682 done 18683 tmp_CFLAGS="$ac_var_stripped" 18684 squeeze tmp_CFLAGS 18685 18686 18687 ac_var_stripped="" 18688 for word1 in $tmp_CPPFLAGS; do 18689 ac_var_strip_word="no" 18690 for word2 in $flags_opt_all; do 18691 if test "$word1" = "$word2"; then 18692 ac_var_strip_word="yes" 18693 fi 18694 done 18695 if test "$ac_var_strip_word" = "no"; then 18696 ac_var_stripped="$ac_var_stripped $word1" 18697 fi 18698 done 18699 tmp_CPPFLAGS="$ac_var_stripped" 18700 squeeze tmp_CPPFLAGS 18701 18702 if test "$want_optimize" = "yes"; then 18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 18704 printf %s "checking if compiler accepts optimizer enabling options... " >&6; } 18705 tmp_options="$flags_opt_yes" 18706 fi 18707 if test "$want_optimize" = "no"; then 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 18709 printf %s "checking if compiler accepts optimizer disabling options... " >&6; } 18710 tmp_options="$flags_opt_off" 18711 fi 18712 if test "$flags_prefer_cppflags" = "yes"; then 18713 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 18714 CFLAGS="$tmp_CFLAGS" 18715 else 18716 CPPFLAGS="$tmp_CPPFLAGS" 18717 CFLAGS="$tmp_CFLAGS $tmp_options" 18718 fi 18719 squeeze CPPFLAGS 18720 squeeze CFLAGS 18721 18722 tmp_compiler_works="unknown" 18723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18724 /* end confdefs.h. */ 18725 18726 18727 18728 int main(void) 18729 { 18730 18731 int i = 1; 18732 return i; 18733 18734 return 0; 18735 } 18736 18737 _ACEOF 18738 if ac_fn_c_try_compile "$LINENO" 18739 then : 18740 18741 tmp_compiler_works="yes" 18742 18743 else $as_nop 18744 18745 tmp_compiler_works="no" 18746 echo " " >&6 18747 sed 's/^/cc-fail: /' conftest.err >&6 18748 echo " " >&6 18749 18750 fi 18751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18752 if test "$tmp_compiler_works" = "yes"; then 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754 /* end confdefs.h. */ 18755 18756 18757 18758 int main(void) 18759 { 18760 18761 int i = 1; 18762 return i; 18763 18764 return 0; 18765 } 18766 18767 _ACEOF 18768 if ac_fn_c_try_link "$LINENO" 18769 then : 18770 18771 tmp_compiler_works="yes" 18772 18773 else $as_nop 18774 18775 tmp_compiler_works="no" 18776 echo " " >&6 18777 sed 's/^/link-fail: /' conftest.err >&6 18778 echo " " >&6 18779 18780 fi 18781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18782 conftest$ac_exeext conftest.$ac_ext 18783 fi 18784 if test "x$cross_compiling" != "xyes" && 18785 test "$tmp_compiler_works" = "yes"; then 18786 18787 if test "$curl_cv_apple" = 'yes'; then 18788 if test "$cross_compiling" = yes 18789 then : 18790 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18791 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18792 as_fn_error $? "cannot run test program while cross compiling 18793 See \`config.log' for more details" "$LINENO" 5; } 18794 else $as_nop 18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18796 /* end confdefs.h. */ 18797 18798 18799 #ifdef __STDC__ 18800 # include <stdlib.h> 18801 #endif 18802 18803 int main(void) 18804 { 18805 18806 int i = 0; 18807 return i; 18808 18809 return 0; 18810 } 18811 18812 _ACEOF 18813 if ac_fn_c_try_run "$LINENO" 18814 then : 18815 tmp_compiler_works="yes" 18816 18817 else $as_nop 18818 tmp_compiler_works="no" 18819 echo " " >&6 18820 echo "run-fail: test program exited with status $ac_status" >&6 18821 echo " " >&6 18822 18823 fi 18824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18825 conftest.$ac_objext conftest.beam conftest.$ac_ext 18826 fi 18827 18828 else 18829 oldcc=$CC 18830 old=$LD_LIBRARY_PATH 18831 CC="sh ./run-compiler" 18832 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 18833 export LD_LIBRARY_PATH 18834 if test "$cross_compiling" = yes 18835 then : 18836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18837 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18838 as_fn_error $? "cannot run test program while cross compiling 18839 See \`config.log' for more details" "$LINENO" 5; } 18840 else $as_nop 18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18842 /* end confdefs.h. */ 18843 18844 18845 #ifdef __STDC__ 18846 # include <stdlib.h> 18847 #endif 18848 18849 int main(void) 18850 { 18851 18852 int i = 0; 18853 return i; 18854 18855 return 0; 18856 } 18857 18858 _ACEOF 18859 if ac_fn_c_try_run "$LINENO" 18860 then : 18861 tmp_compiler_works="yes" 18862 18863 else $as_nop 18864 tmp_compiler_works="no" 18865 echo " " >&6 18866 echo "run-fail: test program exited with status $ac_status" >&6 18867 echo " " >&6 18868 18869 fi 18870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18871 conftest.$ac_objext conftest.beam conftest.$ac_ext 18872 fi 18873 18874 LD_LIBRARY_PATH=$old # restore 18875 CC=$oldcc 18876 fi 18877 18878 fi 18879 if test "$tmp_compiler_works" = "yes"; then 18880 18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18882 printf "%s\n" "yes" >&6; } 18883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 18884 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;} 18885 18886 else 18887 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18889 printf "%s\n" "no" >&6; } 18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 18891 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 18892 CPPFLAGS="$tmp_save_CPPFLAGS" 18893 CFLAGS="$tmp_save_CFLAGS" 18894 18895 fi 18896 18897 fi 18898 # 18899 fi 18900 18901 18902 # 18903 if test "$compiler_id" != "unknown"; then 18904 # 18905 tmp_save_CPPFLAGS="$CPPFLAGS" 18906 tmp_save_CFLAGS="$CFLAGS" 18907 tmp_CPPFLAGS="" 18908 tmp_CFLAGS="" 18909 # 18910 case "$compiler_id" in 18911 # 18912 CLANG|APPLECLANG) 18913 # 18914 if test "$want_warnings" = "yes"; then 18915 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 18916 18917 ac_var_added_warnings="" 18918 for warning in all extra; do 18919 18920 ac_var_match_word="no" 18921 for word1 in $CFLAGS; do 18922 for word2 in -Wno-$warning -W$warning; do 18923 if test "$word1" = "$word2"; then 18924 ac_var_match_word="yes" 18925 fi 18926 done 18927 done 18928 18929 if test "$ac_var_match_word" = "no"; then 18930 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 18931 fi 18932 done 18933 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 18934 squeeze tmp_CFLAGS 18935 18936 18937 ac_var_added_warnings="" 18938 for warning in pointer-arith write-strings; do 18939 18940 ac_var_match_word="no" 18941 for word1 in $CFLAGS; do 18942 for word2 in -Wno-$warning -W$warning; do 18943 if test "$word1" = "$word2"; then 18944 ac_var_match_word="yes" 18945 fi 18946 done 18947 done 18948 18949 if test "$ac_var_match_word" = "no"; then 18950 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 18951 fi 18952 done 18953 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 18954 squeeze tmp_CFLAGS 18955 18956 18957 ac_var_added_warnings="" 18958 for warning in shadow; do 18959 18960 ac_var_match_word="no" 18961 for word1 in $CFLAGS; do 18962 for word2 in -Wno-$warning -W$warning; do 18963 if test "$word1" = "$word2"; then 18964 ac_var_match_word="yes" 18965 fi 18966 done 18967 done 18968 18969 if test "$ac_var_match_word" = "no"; then 18970 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 18971 fi 18972 done 18973 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 18974 squeeze tmp_CFLAGS 18975 18976 18977 ac_var_added_warnings="" 18978 for warning in nested-externs; do 18979 18980 ac_var_match_word="no" 18981 for word1 in $CFLAGS; do 18982 for word2 in -Wno-$warning -W$warning; do 18983 if test "$word1" = "$word2"; then 18984 ac_var_match_word="yes" 18985 fi 18986 done 18987 done 18988 18989 if test "$ac_var_match_word" = "no"; then 18990 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 18991 fi 18992 done 18993 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 18994 squeeze tmp_CFLAGS 18995 18996 18997 ac_var_added_warnings="" 18998 for warning in missing-declarations; do 18999 19000 ac_var_match_word="no" 19001 for word1 in $CFLAGS; do 19002 for word2 in -Wno-$warning -W$warning; do 19003 if test "$word1" = "$word2"; then 19004 ac_var_match_word="yes" 19005 fi 19006 done 19007 done 19008 19009 if test "$ac_var_match_word" = "no"; then 19010 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19011 fi 19012 done 19013 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19014 squeeze tmp_CFLAGS 19015 19016 19017 ac_var_added_warnings="" 19018 for warning in missing-prototypes; do 19019 19020 ac_var_match_word="no" 19021 for word1 in $CFLAGS; do 19022 for word2 in -Wno-$warning -W$warning; do 19023 if test "$word1" = "$word2"; then 19024 ac_var_match_word="yes" 19025 fi 19026 done 19027 done 19028 19029 if test "$ac_var_match_word" = "no"; then 19030 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19031 fi 19032 done 19033 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19034 squeeze tmp_CFLAGS 19035 19036 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 19037 19038 ac_var_added_warnings="" 19039 for warning in float-equal; do 19040 19041 ac_var_match_word="no" 19042 for word1 in $CFLAGS; do 19043 for word2 in -Wno-$warning -W$warning; do 19044 if test "$word1" = "$word2"; then 19045 ac_var_match_word="yes" 19046 fi 19047 done 19048 done 19049 19050 if test "$ac_var_match_word" = "no"; then 19051 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19052 fi 19053 done 19054 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19055 squeeze tmp_CFLAGS 19056 19057 19058 ac_var_added_warnings="" 19059 for warning in sign-compare; do 19060 19061 ac_var_match_word="no" 19062 for word1 in $CFLAGS; do 19063 for word2 in -Wno-$warning -W$warning; do 19064 if test "$word1" = "$word2"; then 19065 ac_var_match_word="yes" 19066 fi 19067 done 19068 done 19069 19070 if test "$ac_var_match_word" = "no"; then 19071 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19072 fi 19073 done 19074 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19075 squeeze tmp_CFLAGS 19076 19077 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar" 19078 19079 ac_var_added_warnings="" 19080 for warning in undef; do 19081 19082 ac_var_match_word="no" 19083 for word1 in $CFLAGS; do 19084 for word2 in -Wno-$warning -W$warning; do 19085 if test "$word1" = "$word2"; then 19086 ac_var_match_word="yes" 19087 fi 19088 done 19089 done 19090 19091 if test "$ac_var_match_word" = "no"; then 19092 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19093 fi 19094 done 19095 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19096 squeeze tmp_CFLAGS 19097 19098 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 19099 19100 ac_var_added_warnings="" 19101 for warning in endif-labels strict-prototypes; do 19102 19103 ac_var_match_word="no" 19104 for word1 in $CFLAGS; do 19105 for word2 in -Wno-$warning -W$warning; do 19106 if test "$word1" = "$word2"; then 19107 ac_var_match_word="yes" 19108 fi 19109 done 19110 done 19111 19112 if test "$ac_var_match_word" = "no"; then 19113 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19114 fi 19115 done 19116 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19117 squeeze tmp_CFLAGS 19118 19119 19120 ac_var_added_warnings="" 19121 for warning in declaration-after-statement; do 19122 19123 ac_var_match_word="no" 19124 for word1 in $CFLAGS; do 19125 for word2 in -Wno-$warning -W$warning; do 19126 if test "$word1" = "$word2"; then 19127 ac_var_match_word="yes" 19128 fi 19129 done 19130 done 19131 19132 if test "$ac_var_match_word" = "no"; then 19133 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19134 fi 19135 done 19136 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19137 squeeze tmp_CFLAGS 19138 19139 19140 ac_var_added_warnings="" 19141 for warning in cast-align; do 19142 19143 ac_var_match_word="no" 19144 for word1 in $CFLAGS; do 19145 for word2 in -Wno-$warning -W$warning; do 19146 if test "$word1" = "$word2"; then 19147 ac_var_match_word="yes" 19148 fi 19149 done 19150 done 19151 19152 if test "$ac_var_match_word" = "no"; then 19153 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19154 fi 19155 done 19156 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19157 squeeze tmp_CFLAGS 19158 19159 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 19160 19161 ac_var_added_warnings="" 19162 for warning in shorten-64-to-32; do 19163 19164 ac_var_match_word="no" 19165 for word1 in $CFLAGS; do 19166 for word2 in -Wno-$warning -W$warning; do 19167 if test "$word1" = "$word2"; then 19168 ac_var_match_word="yes" 19169 fi 19170 done 19171 done 19172 19173 if test "$ac_var_match_word" = "no"; then 19174 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19175 fi 19176 done 19177 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19178 squeeze tmp_CFLAGS 19179 19180 # 19181 if test "$compiler_num" -ge "101"; then 19182 19183 ac_var_added_warnings="" 19184 for warning in unused; do 19185 19186 ac_var_match_word="no" 19187 for word1 in $CFLAGS; do 19188 for word2 in -Wno-$warning -W$warning; do 19189 if test "$word1" = "$word2"; then 19190 ac_var_match_word="yes" 19191 fi 19192 done 19193 done 19194 19195 if test "$ac_var_match_word" = "no"; then 19196 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19197 fi 19198 done 19199 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19200 squeeze tmp_CFLAGS 19201 19202 fi 19203 # 19204 if test "$compiler_num" -ge "207"; then 19205 19206 ac_var_added_warnings="" 19207 for warning in address; do 19208 19209 ac_var_match_word="no" 19210 for word1 in $CFLAGS; do 19211 for word2 in -Wno-$warning -W$warning; do 19212 if test "$word1" = "$word2"; then 19213 ac_var_match_word="yes" 19214 fi 19215 done 19216 done 19217 19218 if test "$ac_var_match_word" = "no"; then 19219 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19220 fi 19221 done 19222 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19223 squeeze tmp_CFLAGS 19224 19225 19226 ac_var_added_warnings="" 19227 for warning in attributes; do 19228 19229 ac_var_match_word="no" 19230 for word1 in $CFLAGS; do 19231 for word2 in -Wno-$warning -W$warning; do 19232 if test "$word1" = "$word2"; then 19233 ac_var_match_word="yes" 19234 fi 19235 done 19236 done 19237 19238 if test "$ac_var_match_word" = "no"; then 19239 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19240 fi 19241 done 19242 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19243 squeeze tmp_CFLAGS 19244 19245 19246 ac_var_added_warnings="" 19247 for warning in bad-function-cast; do 19248 19249 ac_var_match_word="no" 19250 for word1 in $CFLAGS; do 19251 for word2 in -Wno-$warning -W$warning; do 19252 if test "$word1" = "$word2"; then 19253 ac_var_match_word="yes" 19254 fi 19255 done 19256 done 19257 19258 if test "$ac_var_match_word" = "no"; then 19259 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19260 fi 19261 done 19262 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19263 squeeze tmp_CFLAGS 19264 19265 19266 ac_var_added_warnings="" 19267 for warning in conversion; do 19268 19269 ac_var_match_word="no" 19270 for word1 in $CFLAGS; do 19271 for word2 in -Wno-$warning -W$warning; do 19272 if test "$word1" = "$word2"; then 19273 ac_var_match_word="yes" 19274 fi 19275 done 19276 done 19277 19278 if test "$ac_var_match_word" = "no"; then 19279 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19280 fi 19281 done 19282 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19283 squeeze tmp_CFLAGS 19284 19285 19286 ac_var_added_warnings="" 19287 for warning in div-by-zero format-security; do 19288 19289 ac_var_match_word="no" 19290 for word1 in $CFLAGS; do 19291 for word2 in -Wno-$warning -W$warning; do 19292 if test "$word1" = "$word2"; then 19293 ac_var_match_word="yes" 19294 fi 19295 done 19296 done 19297 19298 if test "$ac_var_match_word" = "no"; then 19299 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19300 fi 19301 done 19302 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19303 squeeze tmp_CFLAGS 19304 19305 19306 ac_var_added_warnings="" 19307 for warning in empty-body; do 19308 19309 ac_var_match_word="no" 19310 for word1 in $CFLAGS; do 19311 for word2 in -Wno-$warning -W$warning; do 19312 if test "$word1" = "$word2"; then 19313 ac_var_match_word="yes" 19314 fi 19315 done 19316 done 19317 19318 if test "$ac_var_match_word" = "no"; then 19319 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19320 fi 19321 done 19322 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19323 squeeze tmp_CFLAGS 19324 19325 19326 ac_var_added_warnings="" 19327 for warning in missing-field-initializers; do 19328 19329 ac_var_match_word="no" 19330 for word1 in $CFLAGS; do 19331 for word2 in -Wno-$warning -W$warning; do 19332 if test "$word1" = "$word2"; then 19333 ac_var_match_word="yes" 19334 fi 19335 done 19336 done 19337 19338 if test "$ac_var_match_word" = "no"; then 19339 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19340 fi 19341 done 19342 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19343 squeeze tmp_CFLAGS 19344 19345 19346 ac_var_added_warnings="" 19347 for warning in missing-noreturn; do 19348 19349 ac_var_match_word="no" 19350 for word1 in $CFLAGS; do 19351 for word2 in -Wno-$warning -W$warning; do 19352 if test "$word1" = "$word2"; then 19353 ac_var_match_word="yes" 19354 fi 19355 done 19356 done 19357 19358 if test "$ac_var_match_word" = "no"; then 19359 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19360 fi 19361 done 19362 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19363 squeeze tmp_CFLAGS 19364 19365 19366 ac_var_added_warnings="" 19367 for warning in old-style-definition; do 19368 19369 ac_var_match_word="no" 19370 for word1 in $CFLAGS; do 19371 for word2 in -Wno-$warning -W$warning; do 19372 if test "$word1" = "$word2"; then 19373 ac_var_match_word="yes" 19374 fi 19375 done 19376 done 19377 19378 if test "$ac_var_match_word" = "no"; then 19379 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19380 fi 19381 done 19382 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19383 squeeze tmp_CFLAGS 19384 19385 19386 ac_var_added_warnings="" 19387 for warning in redundant-decls; do 19388 19389 ac_var_match_word="no" 19390 for word1 in $CFLAGS; do 19391 for word2 in -Wno-$warning -W$warning; do 19392 if test "$word1" = "$word2"; then 19393 ac_var_match_word="yes" 19394 fi 19395 done 19396 done 19397 19398 if test "$ac_var_match_word" = "no"; then 19399 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19400 fi 19401 done 19402 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19403 squeeze tmp_CFLAGS 19404 19405 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case 19406 19407 ac_var_added_warnings="" 19408 for warning in type-limits; do 19409 19410 ac_var_match_word="no" 19411 for word1 in $CFLAGS; do 19412 for word2 in -Wno-$warning -W$warning; do 19413 if test "$word1" = "$word2"; then 19414 ac_var_match_word="yes" 19415 fi 19416 done 19417 done 19418 19419 if test "$ac_var_match_word" = "no"; then 19420 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19421 fi 19422 done 19423 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19424 squeeze tmp_CFLAGS 19425 19426 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical 19427 # tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros" 19428 19429 ac_var_added_warnings="" 19430 for warning in unreachable-code unused-parameter; do 19431 19432 ac_var_match_word="no" 19433 for word1 in $CFLAGS; do 19434 for word2 in -Wno-$warning -W$warning; do 19435 if test "$word1" = "$word2"; then 19436 ac_var_match_word="yes" 19437 fi 19438 done 19439 done 19440 19441 if test "$ac_var_match_word" = "no"; then 19442 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19443 fi 19444 done 19445 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19446 squeeze tmp_CFLAGS 19447 19448 fi 19449 # 19450 if test "$compiler_num" -ge "208"; then 19451 19452 ac_var_added_warnings="" 19453 for warning in ignored-qualifiers; do 19454 19455 ac_var_match_word="no" 19456 for word1 in $CFLAGS; do 19457 for word2 in -Wno-$warning -W$warning; do 19458 if test "$word1" = "$word2"; then 19459 ac_var_match_word="yes" 19460 fi 19461 done 19462 done 19463 19464 if test "$ac_var_match_word" = "no"; then 19465 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19466 fi 19467 done 19468 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19469 squeeze tmp_CFLAGS 19470 19471 19472 ac_var_added_warnings="" 19473 for warning in vla; do 19474 19475 ac_var_match_word="no" 19476 for word1 in $CFLAGS; do 19477 for word2 in -Wno-$warning -W$warning; do 19478 if test "$word1" = "$word2"; then 19479 ac_var_match_word="yes" 19480 fi 19481 done 19482 done 19483 19484 if test "$ac_var_match_word" = "no"; then 19485 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19486 fi 19487 done 19488 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19489 squeeze tmp_CFLAGS 19490 19491 fi 19492 # 19493 if test "$compiler_num" -ge "209"; then 19494 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion" 19495 19496 ac_var_added_warnings="" 19497 for warning in shift-sign-overflow; do 19498 19499 ac_var_match_word="no" 19500 for word1 in $CFLAGS; do 19501 for word2 in -Wno-$warning -W$warning; do 19502 if test "$word1" = "$word2"; then 19503 ac_var_match_word="yes" 19504 fi 19505 done 19506 done 19507 19508 if test "$ac_var_match_word" = "no"; then 19509 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19510 fi 19511 done 19512 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19513 squeeze tmp_CFLAGS 19514 19515 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs 19516 fi 19517 # 19518 if test "$compiler_num" -ge "300"; then 19519 19520 ac_var_added_warnings="" 19521 for warning in cast-qual; do 19522 19523 ac_var_match_word="no" 19524 for word1 in $CFLAGS; do 19525 for word2 in -Wno-$warning -W$warning; do 19526 if test "$word1" = "$word2"; then 19527 ac_var_match_word="yes" 19528 fi 19529 done 19530 done 19531 19532 if test "$ac_var_match_word" = "no"; then 19533 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19534 fi 19535 done 19536 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19537 squeeze tmp_CFLAGS 19538 19539 19540 ac_var_added_warnings="" 19541 for warning in language-extension-token; do 19542 19543 ac_var_match_word="no" 19544 for word1 in $CFLAGS; do 19545 for word2 in -Wno-$warning -W$warning; do 19546 if test "$word1" = "$word2"; then 19547 ac_var_match_word="yes" 19548 fi 19549 done 19550 done 19551 19552 if test "$ac_var_match_word" = "no"; then 19553 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19554 fi 19555 done 19556 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19557 squeeze tmp_CFLAGS 19558 19559 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" 19560 fi 19561 # 19562 if test "$compiler_num" -ge "302"; then 19563 19564 ac_var_added_warnings="" 19565 for warning in enum-conversion; do 19566 19567 ac_var_match_word="no" 19568 for word1 in $CFLAGS; do 19569 for word2 in -Wno-$warning -W$warning; do 19570 if test "$word1" = "$word2"; then 19571 ac_var_match_word="yes" 19572 fi 19573 done 19574 done 19575 19576 if test "$ac_var_match_word" = "no"; then 19577 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19578 fi 19579 done 19580 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19581 squeeze tmp_CFLAGS 19582 19583 19584 ac_var_added_warnings="" 19585 for warning in sometimes-uninitialized; do 19586 19587 ac_var_match_word="no" 19588 for word1 in $CFLAGS; do 19589 for word2 in -Wno-$warning -W$warning; do 19590 if test "$word1" = "$word2"; then 19591 ac_var_match_word="yes" 19592 fi 19593 done 19594 done 19595 19596 if test "$ac_var_match_word" = "no"; then 19597 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19598 fi 19599 done 19600 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19601 squeeze tmp_CFLAGS 19602 19603 case $host_os in 19604 cygwin* | mingw*) 19605 ;; 19606 *) 19607 19608 ac_var_added_warnings="" 19609 for warning in missing-variable-declarations; do 19610 19611 ac_var_match_word="no" 19612 for word1 in $CFLAGS; do 19613 for word2 in -Wno-$warning -W$warning; do 19614 if test "$word1" = "$word2"; then 19615 ac_var_match_word="yes" 19616 fi 19617 done 19618 done 19619 19620 if test "$ac_var_match_word" = "no"; then 19621 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19622 fi 19623 done 19624 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19625 squeeze tmp_CFLAGS 19626 19627 ;; 19628 esac 19629 fi 19630 # 19631 if test "$compiler_num" -ge "304"; then 19632 19633 ac_var_added_warnings="" 19634 for warning in header-guard; do 19635 19636 ac_var_match_word="no" 19637 for word1 in $CFLAGS; do 19638 for word2 in -Wno-$warning -W$warning; do 19639 if test "$word1" = "$word2"; then 19640 ac_var_match_word="yes" 19641 fi 19642 done 19643 done 19644 19645 if test "$ac_var_match_word" = "no"; then 19646 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19647 fi 19648 done 19649 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19650 squeeze tmp_CFLAGS 19651 19652 19653 ac_var_added_warnings="" 19654 for warning in unused-const-variable; do 19655 19656 ac_var_match_word="no" 19657 for word1 in $CFLAGS; do 19658 for word2 in -Wno-$warning -W$warning; do 19659 if test "$word1" = "$word2"; then 19660 ac_var_match_word="yes" 19661 fi 19662 done 19663 done 19664 19665 if test "$ac_var_match_word" = "no"; then 19666 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19667 fi 19668 done 19669 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19670 squeeze tmp_CFLAGS 19671 19672 fi 19673 # 19674 if test "$compiler_num" -ge "305"; then 19675 19676 ac_var_added_warnings="" 19677 for warning in pragmas; do 19678 19679 ac_var_match_word="no" 19680 for word1 in $CFLAGS; do 19681 for word2 in -Wno-$warning -W$warning; do 19682 if test "$word1" = "$word2"; then 19683 ac_var_match_word="yes" 19684 fi 19685 done 19686 done 19687 19688 if test "$ac_var_match_word" = "no"; then 19689 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19690 fi 19691 done 19692 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19693 squeeze tmp_CFLAGS 19694 19695 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) # Not used: Silent in "unity" builds 19696 fi 19697 # 19698 if test "$compiler_num" -ge "306"; then 19699 19700 ac_var_added_warnings="" 19701 for warning in double-promotion; do 19702 19703 ac_var_match_word="no" 19704 for word1 in $CFLAGS; do 19705 for word2 in -Wno-$warning -W$warning; do 19706 if test "$word1" = "$word2"; then 19707 ac_var_match_word="yes" 19708 fi 19709 done 19710 done 19711 19712 if test "$ac_var_match_word" = "no"; then 19713 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19714 fi 19715 done 19716 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19717 squeeze tmp_CFLAGS 19718 19719 fi 19720 # 19721 if test "$compiler_num" -ge "309"; then 19722 19723 ac_var_added_warnings="" 19724 for warning in comma; do 19725 19726 ac_var_match_word="no" 19727 for word1 in $CFLAGS; do 19728 for word2 in -Wno-$warning -W$warning; do 19729 if test "$word1" = "$word2"; then 19730 ac_var_match_word="yes" 19731 fi 19732 done 19733 done 19734 19735 if test "$ac_var_match_word" = "no"; then 19736 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19737 fi 19738 done 19739 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19740 squeeze tmp_CFLAGS 19741 19742 # avoid the varargs warning, fixed in 4.0 19743 # https://bugs.llvm.org/show_bug.cgi?id=29140 19744 if test "$compiler_num" -lt "400"; then 19745 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs" 19746 fi 19747 fi 19748 if test "$compiler_num" -ge "700"; then 19749 19750 ac_var_added_warnings="" 19751 for warning in assign-enum; do 19752 19753 ac_var_match_word="no" 19754 for word1 in $CFLAGS; do 19755 for word2 in -Wno-$warning -W$warning; do 19756 if test "$word1" = "$word2"; then 19757 ac_var_match_word="yes" 19758 fi 19759 done 19760 done 19761 19762 if test "$ac_var_match_word" = "no"; then 19763 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19764 fi 19765 done 19766 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19767 squeeze tmp_CFLAGS 19768 19769 19770 ac_var_added_warnings="" 19771 for warning in extra-semi-stmt; do 19772 19773 ac_var_match_word="no" 19774 for word1 in $CFLAGS; do 19775 for word2 in -Wno-$warning -W$warning; do 19776 if test "$word1" = "$word2"; then 19777 ac_var_match_word="yes" 19778 fi 19779 done 19780 done 19781 19782 if test "$ac_var_match_word" = "no"; then 19783 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19784 fi 19785 done 19786 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19787 squeeze tmp_CFLAGS 19788 19789 fi 19790 if test "$compiler_num" -ge "1000"; then 19791 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" # we have silencing markup for clang 10.0 and above only 19792 19793 ac_var_added_warnings="" 19794 for warning in xor-used-as-pow; do 19795 19796 ac_var_match_word="no" 19797 for word1 in $CFLAGS; do 19798 for word2 in -Wno-$warning -W$warning; do 19799 if test "$word1" = "$word2"; then 19800 ac_var_match_word="yes" 19801 fi 19802 done 19803 done 19804 19805 if test "$ac_var_match_word" = "no"; then 19806 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19807 fi 19808 done 19809 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19810 squeeze tmp_CFLAGS 19811 19812 fi 19813 fi 19814 ;; 19815 # 19816 DEC_C) 19817 # 19818 if test "$want_warnings" = "yes"; then 19819 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 19820 fi 19821 ;; 19822 # 19823 GNU_C) 19824 # 19825 if test "$want_warnings" = "yes"; then 19826 # 19827 if test "x$cross_compiling" != "xyes" || 19828 test "$compiler_num" -ge "300"; then 19829 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 19830 fi 19831 # 19832 19833 ac_var_added_warnings="" 19834 for warning in all; do 19835 19836 ac_var_match_word="no" 19837 for word1 in $CFLAGS; do 19838 for word2 in -Wno-$warning -W$warning; do 19839 if test "$word1" = "$word2"; then 19840 ac_var_match_word="yes" 19841 fi 19842 done 19843 done 19844 19845 if test "$ac_var_match_word" = "no"; then 19846 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19847 fi 19848 done 19849 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19850 squeeze tmp_CFLAGS 19851 19852 tmp_CFLAGS="$tmp_CFLAGS -W" 19853 # 19854 if test "$compiler_num" -ge "104"; then 19855 19856 ac_var_added_warnings="" 19857 for warning in pointer-arith write-strings; do 19858 19859 ac_var_match_word="no" 19860 for word1 in $CFLAGS; do 19861 for word2 in -Wno-$warning -W$warning; do 19862 if test "$word1" = "$word2"; then 19863 ac_var_match_word="yes" 19864 fi 19865 done 19866 done 19867 19868 if test "$ac_var_match_word" = "no"; then 19869 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19870 fi 19871 done 19872 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19873 squeeze tmp_CFLAGS 19874 19875 if test "x$cross_compiling" != "xyes" || 19876 test "$compiler_num" -ge "300"; then 19877 19878 ac_var_added_warnings="" 19879 for warning in unused shadow; do 19880 19881 ac_var_match_word="no" 19882 for word1 in $CFLAGS; do 19883 for word2 in -Wno-$warning -W$warning; do 19884 if test "$word1" = "$word2"; then 19885 ac_var_match_word="yes" 19886 fi 19887 done 19888 done 19889 19890 if test "$ac_var_match_word" = "no"; then 19891 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19892 fi 19893 done 19894 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19895 squeeze tmp_CFLAGS 19896 19897 fi 19898 fi 19899 # 19900 if test "$compiler_num" -ge "207"; then 19901 19902 ac_var_added_warnings="" 19903 for warning in nested-externs; do 19904 19905 ac_var_match_word="no" 19906 for word1 in $CFLAGS; do 19907 for word2 in -Wno-$warning -W$warning; do 19908 if test "$word1" = "$word2"; then 19909 ac_var_match_word="yes" 19910 fi 19911 done 19912 done 19913 19914 if test "$ac_var_match_word" = "no"; then 19915 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19916 fi 19917 done 19918 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19919 squeeze tmp_CFLAGS 19920 19921 if test "x$cross_compiling" != "xyes" || 19922 test "$compiler_num" -ge "300"; then 19923 19924 ac_var_added_warnings="" 19925 for warning in missing-declarations; do 19926 19927 ac_var_match_word="no" 19928 for word1 in $CFLAGS; do 19929 for word2 in -Wno-$warning -W$warning; do 19930 if test "$word1" = "$word2"; then 19931 ac_var_match_word="yes" 19932 fi 19933 done 19934 done 19935 19936 if test "$ac_var_match_word" = "no"; then 19937 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19938 fi 19939 done 19940 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19941 squeeze tmp_CFLAGS 19942 19943 19944 ac_var_added_warnings="" 19945 for warning in missing-prototypes; do 19946 19947 ac_var_match_word="no" 19948 for word1 in $CFLAGS; do 19949 for word2 in -Wno-$warning -W$warning; do 19950 if test "$word1" = "$word2"; then 19951 ac_var_match_word="yes" 19952 fi 19953 done 19954 done 19955 19956 if test "$ac_var_match_word" = "no"; then 19957 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19958 fi 19959 done 19960 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19961 squeeze tmp_CFLAGS 19962 19963 fi 19964 fi 19965 # 19966 if test "$compiler_num" -ge "295"; then 19967 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 19968 19969 ac_var_added_warnings="" 19970 for warning in bad-function-cast; do 19971 19972 ac_var_match_word="no" 19973 for word1 in $CFLAGS; do 19974 for word2 in -Wno-$warning -W$warning; do 19975 if test "$word1" = "$word2"; then 19976 ac_var_match_word="yes" 19977 fi 19978 done 19979 done 19980 19981 if test "$ac_var_match_word" = "no"; then 19982 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19983 fi 19984 done 19985 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19986 squeeze tmp_CFLAGS 19987 19988 fi 19989 # 19990 if test "$compiler_num" -ge "296"; then 19991 19992 ac_var_added_warnings="" 19993 for warning in float-equal; do 19994 19995 ac_var_match_word="no" 19996 for word1 in $CFLAGS; do 19997 for word2 in -Wno-$warning -W$warning; do 19998 if test "$word1" = "$word2"; then 19999 ac_var_match_word="yes" 20000 fi 20001 done 20002 done 20003 20004 if test "$ac_var_match_word" = "no"; then 20005 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20006 fi 20007 done 20008 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20009 squeeze tmp_CFLAGS 20010 20011 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar" 20012 20013 ac_var_added_warnings="" 20014 for warning in sign-compare; do 20015 20016 ac_var_match_word="no" 20017 for word1 in $CFLAGS; do 20018 for word2 in -Wno-$warning -W$warning; do 20019 if test "$word1" = "$word2"; then 20020 ac_var_match_word="yes" 20021 fi 20022 done 20023 done 20024 20025 if test "$ac_var_match_word" = "no"; then 20026 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20027 fi 20028 done 20029 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20030 squeeze tmp_CFLAGS 20031 20032 20033 ac_var_added_warnings="" 20034 for warning in undef; do 20035 20036 ac_var_match_word="no" 20037 for word1 in $CFLAGS; do 20038 for word2 in -Wno-$warning -W$warning; do 20039 if test "$word1" = "$word2"; then 20040 ac_var_match_word="yes" 20041 fi 20042 done 20043 done 20044 20045 if test "$ac_var_match_word" = "no"; then 20046 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20047 fi 20048 done 20049 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20050 squeeze tmp_CFLAGS 20051 20052 fi 20053 # 20054 if test "$compiler_num" -ge "297"; then 20055 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 20056 fi 20057 # 20058 if test "$compiler_num" -ge "300"; then 20059 tmp_CFLAGS="$tmp_CFLAGS" 20060 fi 20061 # 20062 if test "$compiler_num" -ge "303"; then 20063 20064 ac_var_added_warnings="" 20065 for warning in endif-labels strict-prototypes; do 20066 20067 ac_var_match_word="no" 20068 for word1 in $CFLAGS; do 20069 for word2 in -Wno-$warning -W$warning; do 20070 if test "$word1" = "$word2"; then 20071 ac_var_match_word="yes" 20072 fi 20073 done 20074 done 20075 20076 if test "$ac_var_match_word" = "no"; then 20077 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20078 fi 20079 done 20080 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20081 squeeze tmp_CFLAGS 20082 20083 fi 20084 # 20085 if test "$compiler_num" -ge "304"; then 20086 20087 ac_var_added_warnings="" 20088 for warning in declaration-after-statement; do 20089 20090 ac_var_match_word="no" 20091 for word1 in $CFLAGS; do 20092 for word2 in -Wno-$warning -W$warning; do 20093 if test "$word1" = "$word2"; then 20094 ac_var_match_word="yes" 20095 fi 20096 done 20097 done 20098 20099 if test "$ac_var_match_word" = "no"; then 20100 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20101 fi 20102 done 20103 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20104 squeeze tmp_CFLAGS 20105 20106 20107 ac_var_added_warnings="" 20108 for warning in old-style-definition; do 20109 20110 ac_var_match_word="no" 20111 for word1 in $CFLAGS; do 20112 for word2 in -Wno-$warning -W$warning; do 20113 if test "$word1" = "$word2"; then 20114 ac_var_match_word="yes" 20115 fi 20116 done 20117 done 20118 20119 if test "$ac_var_match_word" = "no"; then 20120 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20121 fi 20122 done 20123 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20124 squeeze tmp_CFLAGS 20125 20126 fi 20127 # 20128 if test "$compiler_num" -ge "400"; then 20129 20130 ac_var_added_warnings="" 20131 for warning in cast-qual; do 20132 20133 ac_var_match_word="no" 20134 for word1 in $CFLAGS; do 20135 for word2 in -Wno-$warning -W$warning; do 20136 if test "$word1" = "$word2"; then 20137 ac_var_match_word="yes" 20138 fi 20139 done 20140 done 20141 20142 if test "$ac_var_match_word" = "no"; then 20143 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20144 fi 20145 done 20146 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20147 squeeze tmp_CFLAGS 20148 20149 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" 20150 fi 20151 # 20152 if test "$compiler_num" -ge "401"; then 20153 20154 ac_var_added_warnings="" 20155 for warning in attributes; do 20156 20157 ac_var_match_word="no" 20158 for word1 in $CFLAGS; do 20159 for word2 in -Wno-$warning -W$warning; do 20160 if test "$word1" = "$word2"; then 20161 ac_var_match_word="yes" 20162 fi 20163 done 20164 done 20165 20166 if test "$ac_var_match_word" = "no"; then 20167 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20168 fi 20169 done 20170 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20171 squeeze tmp_CFLAGS 20172 20173 20174 ac_var_added_warnings="" 20175 for warning in div-by-zero format-security; do 20176 20177 ac_var_match_word="no" 20178 for word1 in $CFLAGS; do 20179 for word2 in -Wno-$warning -W$warning; do 20180 if test "$word1" = "$word2"; then 20181 ac_var_match_word="yes" 20182 fi 20183 done 20184 done 20185 20186 if test "$ac_var_match_word" = "no"; then 20187 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20188 fi 20189 done 20190 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20191 squeeze tmp_CFLAGS 20192 20193 20194 ac_var_added_warnings="" 20195 for warning in missing-field-initializers; do 20196 20197 ac_var_match_word="no" 20198 for word1 in $CFLAGS; do 20199 for word2 in -Wno-$warning -W$warning; do 20200 if test "$word1" = "$word2"; then 20201 ac_var_match_word="yes" 20202 fi 20203 done 20204 done 20205 20206 if test "$ac_var_match_word" = "no"; then 20207 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20208 fi 20209 done 20210 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20211 squeeze tmp_CFLAGS 20212 20213 case $host in 20214 *-*-msys*) 20215 ;; 20216 *) 20217 20218 ac_var_added_warnings="" 20219 for warning in missing-noreturn; do 20220 20221 ac_var_match_word="no" 20222 for word1 in $CFLAGS; do 20223 for word2 in -Wno-$warning -W$warning; do 20224 if test "$word1" = "$word2"; then 20225 ac_var_match_word="yes" 20226 fi 20227 done 20228 done 20229 20230 if test "$ac_var_match_word" = "no"; then 20231 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20232 fi 20233 done 20234 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20235 squeeze tmp_CFLAGS 20236 # Seen to clash with libtool-generated stub code 20237 ;; 20238 esac 20239 20240 ac_var_added_warnings="" 20241 for warning in unreachable-code unused-parameter; do 20242 20243 ac_var_match_word="no" 20244 for word1 in $CFLAGS; do 20245 for word2 in -Wno-$warning -W$warning; do 20246 if test "$word1" = "$word2"; then 20247 ac_var_match_word="yes" 20248 fi 20249 done 20250 done 20251 20252 if test "$ac_var_match_word" = "no"; then 20253 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20254 fi 20255 done 20256 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20257 squeeze tmp_CFLAGS 20258 20259 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs 20260 20261 ac_var_added_warnings="" 20262 for warning in pragmas; do 20263 20264 ac_var_match_word="no" 20265 for word1 in $CFLAGS; do 20266 for word2 in -Wno-$warning -W$warning; do 20267 if test "$word1" = "$word2"; then 20268 ac_var_match_word="yes" 20269 fi 20270 done 20271 done 20272 20273 if test "$ac_var_match_word" = "no"; then 20274 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20275 fi 20276 done 20277 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20278 squeeze tmp_CFLAGS 20279 20280 20281 ac_var_added_warnings="" 20282 for warning in redundant-decls; do 20283 20284 ac_var_match_word="no" 20285 for word1 in $CFLAGS; do 20286 for word2 in -Wno-$warning -W$warning; do 20287 if test "$word1" = "$word2"; then 20288 ac_var_match_word="yes" 20289 fi 20290 done 20291 done 20292 20293 if test "$ac_var_match_word" = "no"; then 20294 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20295 fi 20296 done 20297 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20298 squeeze tmp_CFLAGS 20299 20300 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case 20301 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical 20302 # tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros" 20303 fi 20304 # 20305 if test "$compiler_num" -ge "402"; then 20306 20307 ac_var_added_warnings="" 20308 for warning in cast-align; do 20309 20310 ac_var_match_word="no" 20311 for word1 in $CFLAGS; do 20312 for word2 in -Wno-$warning -W$warning; do 20313 if test "$word1" = "$word2"; then 20314 ac_var_match_word="yes" 20315 fi 20316 done 20317 done 20318 20319 if test "$ac_var_match_word" = "no"; then 20320 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20321 fi 20322 done 20323 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20324 squeeze tmp_CFLAGS 20325 20326 fi 20327 # 20328 if test "$compiler_num" -ge "403"; then 20329 20330 ac_var_added_warnings="" 20331 for warning in address; do 20332 20333 ac_var_match_word="no" 20334 for word1 in $CFLAGS; do 20335 for word2 in -Wno-$warning -W$warning; do 20336 if test "$word1" = "$word2"; then 20337 ac_var_match_word="yes" 20338 fi 20339 done 20340 done 20341 20342 if test "$ac_var_match_word" = "no"; then 20343 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20344 fi 20345 done 20346 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20347 squeeze tmp_CFLAGS 20348 20349 20350 ac_var_added_warnings="" 20351 for warning in type-limits old-style-declaration; do 20352 20353 ac_var_match_word="no" 20354 for word1 in $CFLAGS; do 20355 for word2 in -Wno-$warning -W$warning; do 20356 if test "$word1" = "$word2"; then 20357 ac_var_match_word="yes" 20358 fi 20359 done 20360 done 20361 20362 if test "$ac_var_match_word" = "no"; then 20363 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20364 fi 20365 done 20366 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20367 squeeze tmp_CFLAGS 20368 20369 20370 ac_var_added_warnings="" 20371 for warning in missing-parameter-type empty-body; do 20372 20373 ac_var_match_word="no" 20374 for word1 in $CFLAGS; do 20375 for word2 in -Wno-$warning -W$warning; do 20376 if test "$word1" = "$word2"; then 20377 ac_var_match_word="yes" 20378 fi 20379 done 20380 done 20381 20382 if test "$ac_var_match_word" = "no"; then 20383 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20384 fi 20385 done 20386 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20387 squeeze tmp_CFLAGS 20388 20389 20390 ac_var_added_warnings="" 20391 for warning in clobbered ignored-qualifiers; do 20392 20393 ac_var_match_word="no" 20394 for word1 in $CFLAGS; do 20395 for word2 in -Wno-$warning -W$warning; do 20396 if test "$word1" = "$word2"; then 20397 ac_var_match_word="yes" 20398 fi 20399 done 20400 done 20401 20402 if test "$ac_var_match_word" = "no"; then 20403 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20404 fi 20405 done 20406 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20407 squeeze tmp_CFLAGS 20408 20409 20410 ac_var_added_warnings="" 20411 for warning in conversion; do 20412 20413 ac_var_match_word="no" 20414 for word1 in $CFLAGS; do 20415 for word2 in -Wno-$warning -W$warning; do 20416 if test "$word1" = "$word2"; then 20417 ac_var_match_word="yes" 20418 fi 20419 done 20420 done 20421 20422 if test "$ac_var_match_word" = "no"; then 20423 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20424 fi 20425 done 20426 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20427 squeeze tmp_CFLAGS 20428 20429 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion" 20430 20431 ac_var_added_warnings="" 20432 for warning in vla; do 20433 20434 ac_var_match_word="no" 20435 for word1 in $CFLAGS; do 20436 for word2 in -Wno-$warning -W$warning; do 20437 if test "$word1" = "$word2"; then 20438 ac_var_match_word="yes" 20439 fi 20440 done 20441 done 20442 20443 if test "$ac_var_match_word" = "no"; then 20444 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20445 fi 20446 done 20447 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20448 squeeze tmp_CFLAGS 20449 20450 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp" 20451 fi 20452 # 20453 if test "$compiler_num" -ge "405"; then 20454 20455 ac_var_added_warnings="" 20456 for warning in jump-misses-init; do 20457 20458 ac_var_match_word="no" 20459 for word1 in $CFLAGS; do 20460 for word2 in -Wno-$warning -W$warning; do 20461 if test "$word1" = "$word2"; then 20462 ac_var_match_word="yes" 20463 fi 20464 done 20465 done 20466 20467 if test "$ac_var_match_word" = "no"; then 20468 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20469 fi 20470 done 20471 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20472 squeeze tmp_CFLAGS 20473 20474 if test "$curl_cv_native_windows" = "yes"; then 20475 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" 20476 fi 20477 case $host_os in 20478 cygwin*) 20479 tmp_CFLAGS="$tmp_CFLAGS -Wno-suggest-attribute=noreturn" 20480 ;; 20481 esac 20482 fi 20483 # 20484 if test "$compiler_num" -ge "406"; then 20485 20486 ac_var_added_warnings="" 20487 for warning in double-promotion; do 20488 20489 ac_var_match_word="no" 20490 for word1 in $CFLAGS; do 20491 for word2 in -Wno-$warning -W$warning; do 20492 if test "$word1" = "$word2"; then 20493 ac_var_match_word="yes" 20494 fi 20495 done 20496 done 20497 20498 if test "$ac_var_match_word" = "no"; then 20499 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20500 fi 20501 done 20502 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20503 squeeze tmp_CFLAGS 20504 20505 20506 ac_var_added_warnings="" 20507 for warning in trampolines; do 20508 20509 ac_var_match_word="no" 20510 for word1 in $CFLAGS; do 20511 for word2 in -Wno-$warning -W$warning; do 20512 if test "$word1" = "$word2"; then 20513 ac_var_match_word="yes" 20514 fi 20515 done 20516 done 20517 20518 if test "$ac_var_match_word" = "no"; then 20519 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20520 fi 20521 done 20522 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20523 squeeze tmp_CFLAGS 20524 20525 fi 20526 # 20527 if test "$compiler_num" -ge "408"; then 20528 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" 20529 fi 20530 # 20531 if test "$compiler_num" -ge "500"; then 20532 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2" 20533 fi 20534 # 20535 if test "$compiler_num" -ge "600"; then 20536 20537 ac_var_added_warnings="" 20538 for warning in shift-negative-value; do 20539 20540 ac_var_match_word="no" 20541 for word1 in $CFLAGS; do 20542 for word2 in -Wno-$warning -W$warning; do 20543 if test "$word1" = "$word2"; then 20544 ac_var_match_word="yes" 20545 fi 20546 done 20547 done 20548 20549 if test "$ac_var_match_word" = "no"; then 20550 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20551 fi 20552 done 20553 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20554 squeeze tmp_CFLAGS 20555 20556 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2" 20557 20558 ac_var_added_warnings="" 20559 for warning in null-dereference; do 20560 20561 ac_var_match_word="no" 20562 for word1 in $CFLAGS; do 20563 for word2 in -Wno-$warning -W$warning; do 20564 if test "$word1" = "$word2"; then 20565 ac_var_match_word="yes" 20566 fi 20567 done 20568 done 20569 20570 if test "$ac_var_match_word" = "no"; then 20571 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20572 fi 20573 done 20574 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20575 squeeze tmp_CFLAGS 20576 20577 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks" 20578 20579 ac_var_added_warnings="" 20580 for warning in duplicated-cond; do 20581 20582 ac_var_match_word="no" 20583 for word1 in $CFLAGS; do 20584 for word2 in -Wno-$warning -W$warning; do 20585 if test "$word1" = "$word2"; then 20586 ac_var_match_word="yes" 20587 fi 20588 done 20589 done 20590 20591 if test "$ac_var_match_word" = "no"; then 20592 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20593 fi 20594 done 20595 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20596 squeeze tmp_CFLAGS 20597 20598 20599 ac_var_added_warnings="" 20600 for warning in unused-const-variable; do 20601 20602 ac_var_match_word="no" 20603 for word1 in $CFLAGS; do 20604 for word2 in -Wno-$warning -W$warning; do 20605 if test "$word1" = "$word2"; then 20606 ac_var_match_word="yes" 20607 fi 20608 done 20609 done 20610 20611 if test "$ac_var_match_word" = "no"; then 20612 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20613 fi 20614 done 20615 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20616 squeeze tmp_CFLAGS 20617 20618 fi 20619 # 20620 if test "$compiler_num" -ge "700"; then 20621 20622 ac_var_added_warnings="" 20623 for warning in duplicated-branches; do 20624 20625 ac_var_match_word="no" 20626 for word1 in $CFLAGS; do 20627 for word2 in -Wno-$warning -W$warning; do 20628 if test "$word1" = "$word2"; then 20629 ac_var_match_word="yes" 20630 fi 20631 done 20632 done 20633 20634 if test "$ac_var_match_word" = "no"; then 20635 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20636 fi 20637 done 20638 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20639 squeeze tmp_CFLAGS 20640 20641 20642 ac_var_added_warnings="" 20643 for warning in restrict; do 20644 20645 ac_var_match_word="no" 20646 for word1 in $CFLAGS; do 20647 for word2 in -Wno-$warning -W$warning; do 20648 if test "$word1" = "$word2"; then 20649 ac_var_match_word="yes" 20650 fi 20651 done 20652 done 20653 20654 if test "$ac_var_match_word" = "no"; then 20655 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20656 fi 20657 done 20658 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20659 squeeze tmp_CFLAGS 20660 20661 20662 ac_var_added_warnings="" 20663 for warning in alloc-zero; do 20664 20665 ac_var_match_word="no" 20666 for word1 in $CFLAGS; do 20667 for word2 in -Wno-$warning -W$warning; do 20668 if test "$word1" = "$word2"; then 20669 ac_var_match_word="yes" 20670 fi 20671 done 20672 done 20673 20674 if test "$ac_var_match_word" = "no"; then 20675 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20676 fi 20677 done 20678 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20679 squeeze tmp_CFLAGS 20680 20681 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" 20682 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" 20683 fi 20684 # 20685 if test "$compiler_num" -ge "1000"; then 20686 20687 ac_var_added_warnings="" 20688 for warning in arith-conversion; do 20689 20690 ac_var_match_word="no" 20691 for word1 in $CFLAGS; do 20692 for word2 in -Wno-$warning -W$warning; do 20693 if test "$word1" = "$word2"; then 20694 ac_var_match_word="yes" 20695 fi 20696 done 20697 done 20698 20699 if test "$ac_var_match_word" = "no"; then 20700 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20701 fi 20702 done 20703 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20704 squeeze tmp_CFLAGS 20705 20706 20707 ac_var_added_warnings="" 20708 for warning in enum-conversion; do 20709 20710 ac_var_match_word="no" 20711 for word1 in $CFLAGS; do 20712 for word2 in -Wno-$warning -W$warning; do 20713 if test "$word1" = "$word2"; then 20714 ac_var_match_word="yes" 20715 fi 20716 done 20717 done 20718 20719 if test "$ac_var_match_word" = "no"; then 20720 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20721 fi 20722 done 20723 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20724 squeeze tmp_CFLAGS 20725 20726 fi 20727 # 20728 if test "$compiler_num" -ge "1200"; then 20729 20730 ac_var_added_warnings="" 20731 for warning in array-compare; do 20732 20733 ac_var_match_word="no" 20734 for word1 in $CFLAGS; do 20735 for word2 in -Wno-$warning -W$warning; do 20736 if test "$word1" = "$word2"; then 20737 ac_var_match_word="yes" 20738 fi 20739 done 20740 done 20741 20742 if test "$ac_var_match_word" = "no"; then 20743 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20744 fi 20745 done 20746 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20747 squeeze tmp_CFLAGS 20748 20749 fi 20750 # 20751 if test "$compiler_num" -ge "1300"; then 20752 20753 ac_var_added_warnings="" 20754 for warning in enum-int-mismatch; do 20755 20756 ac_var_match_word="no" 20757 for word1 in $CFLAGS; do 20758 for word2 in -Wno-$warning -W$warning; do 20759 if test "$word1" = "$word2"; then 20760 ac_var_match_word="yes" 20761 fi 20762 done 20763 done 20764 20765 if test "$ac_var_match_word" = "no"; then 20766 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20767 fi 20768 done 20769 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20770 squeeze tmp_CFLAGS 20771 20772 20773 ac_var_added_warnings="" 20774 for warning in xor-used-as-pow; do 20775 20776 ac_var_match_word="no" 20777 for word1 in $CFLAGS; do 20778 for word2 in -Wno-$warning -W$warning; do 20779 if test "$word1" = "$word2"; then 20780 ac_var_match_word="yes" 20781 fi 20782 done 20783 done 20784 20785 if test "$ac_var_match_word" = "no"; then 20786 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20787 fi 20788 done 20789 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20790 squeeze tmp_CFLAGS 20791 20792 fi 20793 # 20794 if test "$compiler_num" -ge "1500"; then 20795 20796 ac_var_added_warnings="" 20797 for warning in leading-whitespace=spaces; do 20798 20799 ac_var_match_word="no" 20800 for word1 in $CFLAGS; do 20801 for word2 in -Wno-$warning -W$warning; do 20802 if test "$word1" = "$word2"; then 20803 ac_var_match_word="yes" 20804 fi 20805 done 20806 done 20807 20808 if test "$ac_var_match_word" = "no"; then 20809 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20810 fi 20811 done 20812 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20813 squeeze tmp_CFLAGS 20814 20815 20816 ac_var_added_warnings="" 20817 for warning in trailing-whitespace=any; do 20818 20819 ac_var_match_word="no" 20820 for word1 in $CFLAGS; do 20821 for word2 in -Wno-$warning -W$warning; do 20822 if test "$word1" = "$word2"; then 20823 ac_var_match_word="yes" 20824 fi 20825 done 20826 done 20827 20828 if test "$ac_var_match_word" = "no"; then 20829 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20830 fi 20831 done 20832 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20833 squeeze tmp_CFLAGS 20834 20835 20836 ac_var_added_warnings="" 20837 for warning in unterminated-string-initialization; do 20838 20839 ac_var_match_word="no" 20840 for word1 in $CFLAGS; do 20841 for word2 in -Wno-$warning -W$warning; do 20842 if test "$word1" = "$word2"; then 20843 ac_var_match_word="yes" 20844 fi 20845 done 20846 done 20847 20848 if test "$ac_var_match_word" = "no"; then 20849 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20850 fi 20851 done 20852 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20853 squeeze tmp_CFLAGS 20854 20855 fi 20856 # 20857 fi 20858 # 20859 if test "$compiler_num" -ge "300"; then 20860 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 20861 else 20862 if test "x$cross_compiling" = "xyes"; then 20863 if test "$compiler_num" -ge "104"; then 20864 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 20865 fi 20866 if test "$compiler_num" -ge "207"; then 20867 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 20868 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 20869 fi 20870 fi 20871 fi 20872 if test "$compiler_num" -lt "405"; then 20873 tmp_CFLAGS="$tmp_CFLAGS -Wno-shadow" 20874 tmp_CFLAGS="$tmp_CFLAGS -Wno-unreachable-code" 20875 fi 20876 if test "$compiler_num" -ge "402" -a "$compiler_num" -lt "406"; then 20877 tmp_CFLAGS="$tmp_CFLAGS -Wno-overlength-strings" 20878 fi 20879 if test "$compiler_num" -ge "400" -a "$compiler_num" -lt "407"; then 20880 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-field-initializers" 20881 fi 20882 if test "$compiler_num" -ge "403" -a "$compiler_num" -lt "408"; then 20883 tmp_CFLAGS="$tmp_CFLAGS -Wno-type-limits" 20884 fi 20885 if test "$compiler_num" -ge "501" -a "$compiler_num" -lt "505"; then 20886 tmp_CFLAGS="$tmp_CFLAGS -Wno-conversion" 20887 fi 20888 ;; 20889 # 20890 HP_UX_C) 20891 # 20892 if test "$want_warnings" = "yes"; then 20893 tmp_CFLAGS="$tmp_CFLAGS +w1" 20894 fi 20895 ;; 20896 # 20897 IBM_C) 20898 # 20899 tmp_CFLAGS="$tmp_CFLAGS" 20900 ;; 20901 # 20902 INTEL_UNIX_C) 20903 # 20904 if test "$want_warnings" = "yes"; then 20905 if test "$compiler_num" -gt "600"; then 20906 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 20907 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 20908 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 20909 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 20910 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 20911 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 20912 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 20913 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 20914 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 20915 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 20916 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 20917 fi 20918 fi 20919 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 20920 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 20921 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 20922 ;; 20923 # 20924 INTEL_WINDOWS_C) 20925 # 20926 tmp_CFLAGS="$tmp_CFLAGS" 20927 ;; 20928 # 20929 SGI_MIPS_C) 20930 # 20931 if test "$want_warnings" = "yes"; then 20932 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 20933 fi 20934 ;; 20935 # 20936 SGI_MIPSPRO_C) 20937 # 20938 if test "$want_warnings" = "yes"; then 20939 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 20940 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 20941 fi 20942 ;; 20943 # 20944 SUNPRO_C) 20945 # 20946 if test "$want_warnings" = "yes"; then 20947 tmp_CFLAGS="$tmp_CFLAGS -v" 20948 fi 20949 ;; 20950 # 20951 TINY_C) 20952 # 20953 if test "$want_warnings" = "yes"; then 20954 20955 ac_var_added_warnings="" 20956 for warning in all; do 20957 20958 ac_var_match_word="no" 20959 for word1 in $CFLAGS; do 20960 for word2 in -Wno-$warning -W$warning; do 20961 if test "$word1" = "$word2"; then 20962 ac_var_match_word="yes" 20963 fi 20964 done 20965 done 20966 20967 if test "$ac_var_match_word" = "no"; then 20968 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20969 fi 20970 done 20971 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20972 squeeze tmp_CFLAGS 20973 20974 20975 ac_var_added_warnings="" 20976 for warning in write-strings; do 20977 20978 ac_var_match_word="no" 20979 for word1 in $CFLAGS; do 20980 for word2 in -Wno-$warning -W$warning; do 20981 if test "$word1" = "$word2"; then 20982 ac_var_match_word="yes" 20983 fi 20984 done 20985 done 20986 20987 if test "$ac_var_match_word" = "no"; then 20988 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20989 fi 20990 done 20991 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20992 squeeze tmp_CFLAGS 20993 20994 20995 ac_var_added_warnings="" 20996 for warning in unsupported; do 20997 20998 ac_var_match_word="no" 20999 for word1 in $CFLAGS; do 21000 for word2 in -Wno-$warning -W$warning; do 21001 if test "$word1" = "$word2"; then 21002 ac_var_match_word="yes" 21003 fi 21004 done 21005 done 21006 21007 if test "$ac_var_match_word" = "no"; then 21008 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 21009 fi 21010 done 21011 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 21012 squeeze tmp_CFLAGS 21013 21014 fi 21015 ;; 21016 # 21017 esac 21018 # 21019 squeeze tmp_CPPFLAGS 21020 squeeze tmp_CFLAGS 21021 # 21022 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 21023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 21024 printf %s "checking if compiler accepts strict warning options... " >&6; } 21025 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 21026 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 21027 squeeze CPPFLAGS 21028 squeeze CFLAGS 21029 21030 tmp_compiler_works="unknown" 21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21032 /* end confdefs.h. */ 21033 21034 21035 21036 int main(void) 21037 { 21038 21039 int i = 1; 21040 return i; 21041 21042 return 0; 21043 } 21044 21045 _ACEOF 21046 if ac_fn_c_try_compile "$LINENO" 21047 then : 21048 21049 tmp_compiler_works="yes" 21050 21051 else $as_nop 21052 21053 tmp_compiler_works="no" 21054 echo " " >&6 21055 sed 's/^/cc-fail: /' conftest.err >&6 21056 echo " " >&6 21057 21058 fi 21059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21060 if test "$tmp_compiler_works" = "yes"; then 21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21062 /* end confdefs.h. */ 21063 21064 21065 21066 int main(void) 21067 { 21068 21069 int i = 1; 21070 return i; 21071 21072 return 0; 21073 } 21074 21075 _ACEOF 21076 if ac_fn_c_try_link "$LINENO" 21077 then : 21078 21079 tmp_compiler_works="yes" 21080 21081 else $as_nop 21082 21083 tmp_compiler_works="no" 21084 echo " " >&6 21085 sed 's/^/link-fail: /' conftest.err >&6 21086 echo " " >&6 21087 21088 fi 21089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21090 conftest$ac_exeext conftest.$ac_ext 21091 fi 21092 if test "x$cross_compiling" != "xyes" && 21093 test "$tmp_compiler_works" = "yes"; then 21094 21095 if test "$curl_cv_apple" = 'yes'; then 21096 if test "$cross_compiling" = yes 21097 then : 21098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21099 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21100 as_fn_error $? "cannot run test program while cross compiling 21101 See \`config.log' for more details" "$LINENO" 5; } 21102 else $as_nop 21103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21104 /* end confdefs.h. */ 21105 21106 21107 #ifdef __STDC__ 21108 # include <stdlib.h> 21109 #endif 21110 21111 int main(void) 21112 { 21113 21114 int i = 0; 21115 return i; 21116 21117 return 0; 21118 } 21119 21120 _ACEOF 21121 if ac_fn_c_try_run "$LINENO" 21122 then : 21123 tmp_compiler_works="yes" 21124 21125 else $as_nop 21126 tmp_compiler_works="no" 21127 echo " " >&6 21128 echo "run-fail: test program exited with status $ac_status" >&6 21129 echo " " >&6 21130 21131 fi 21132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21133 conftest.$ac_objext conftest.beam conftest.$ac_ext 21134 fi 21135 21136 else 21137 oldcc=$CC 21138 old=$LD_LIBRARY_PATH 21139 CC="sh ./run-compiler" 21140 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 21141 export LD_LIBRARY_PATH 21142 if test "$cross_compiling" = yes 21143 then : 21144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21145 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21146 as_fn_error $? "cannot run test program while cross compiling 21147 See \`config.log' for more details" "$LINENO" 5; } 21148 else $as_nop 21149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21150 /* end confdefs.h. */ 21151 21152 21153 #ifdef __STDC__ 21154 # include <stdlib.h> 21155 #endif 21156 21157 int main(void) 21158 { 21159 21160 int i = 0; 21161 return i; 21162 21163 return 0; 21164 } 21165 21166 _ACEOF 21167 if ac_fn_c_try_run "$LINENO" 21168 then : 21169 tmp_compiler_works="yes" 21170 21171 else $as_nop 21172 tmp_compiler_works="no" 21173 echo " " >&6 21174 echo "run-fail: test program exited with status $ac_status" >&6 21175 echo " " >&6 21176 21177 fi 21178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21179 conftest.$ac_objext conftest.beam conftest.$ac_ext 21180 fi 21181 21182 LD_LIBRARY_PATH=$old # restore 21183 CC=$oldcc 21184 fi 21185 21186 fi 21187 if test "$tmp_compiler_works" = "yes"; then 21188 21189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21190 printf "%s\n" "yes" >&6; } 21191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 21192 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 21193 21194 else 21195 21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21197 printf "%s\n" "no" >&6; } 21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 21199 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 21200 CPPFLAGS="$tmp_save_CPPFLAGS" 21201 CFLAGS="$tmp_save_CFLAGS" 21202 21203 fi 21204 21205 fi 21206 # 21207 fi 21208 21209 21210 if test "$compiler_id" = "INTEL_UNIX_C"; then 21211 # 21212 if test "$compiler_num" -ge "1000"; then 21213 CFLAGS="$CFLAGS -shared-intel" 21214 elif test "$compiler_num" -ge "900"; then 21215 CFLAGS="$CFLAGS -i-dynamic" 21216 fi 21217 # 21218 fi 21219 21220 CURL_CFLAG_EXTRAS="" 21221 if test X"$want_werror" = Xyes; then 21222 CURL_CFLAG_EXTRAS="-Werror" 21223 if test "$compiler_id" = "GNU_C"; then 21224 if test "$compiler_num" -ge "500"; then 21225 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" 21226 fi 21227 elif test "$compiler_id" = "CLANG" -o "$compiler_id" = "APPLECLANG"; then 21228 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" 21229 fi 21230 fi 21231 21232 if test X"$want_werror" = Xyes; then 21233 CURL_WERROR_TRUE= 21234 CURL_WERROR_FALSE='#' 21235 else 21236 CURL_WERROR_TRUE='#' 21237 CURL_WERROR_FALSE= 21238 fi 21239 21240 21241 21242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 21243 printf %s "checking if compiler halts on compilation errors... " >&6; } 21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21245 /* end confdefs.h. */ 21246 21247 21248 21249 int main(void) 21250 { 21251 21252 #error force compilation error 21253 21254 return 0; 21255 } 21256 21257 _ACEOF 21258 if ac_fn_c_try_compile "$LINENO" 21259 then : 21260 21261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21262 printf "%s\n" "no" >&6; } 21263 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 21264 21265 else $as_nop 21266 21267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21268 printf "%s\n" "yes" >&6; } 21269 21270 fi 21271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21272 21273 21274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 21275 printf %s "checking if compiler halts on negative sized arrays... " >&6; } 21276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21277 /* end confdefs.h. */ 21278 21279 21280 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1]; 21281 21282 int main(void) 21283 { 21284 21285 bad_t dummy; 21286 (void)dummy; 21287 21288 return 0; 21289 } 21290 21291 _ACEOF 21292 if ac_fn_c_try_compile "$LINENO" 21293 then : 21294 21295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21296 printf "%s\n" "no" >&6; } 21297 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 21298 21299 else $as_nop 21300 21301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21302 printf "%s\n" "yes" >&6; } 21303 21304 fi 21305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21306 21307 21308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5 21309 printf %s "checking if compiler halts on function prototype mismatch... " >&6; } 21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21311 /* end confdefs.h. */ 21312 21313 21314 #include <stdlib.h> 21315 int rand(int n); 21316 int rand(int n) 21317 { 21318 if(n) 21319 return ++n; 21320 else 21321 return n; 21322 } 21323 21324 int main(void) 21325 { 21326 21327 int i[2]={0,0}; 21328 int j = rand(i[0]); 21329 if(j) 21330 return j; 21331 21332 return 0; 21333 } 21334 21335 _ACEOF 21336 if ac_fn_c_try_compile "$LINENO" 21337 then : 21338 21339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21340 printf "%s\n" "no" >&6; } 21341 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5 21342 21343 else $as_nop 21344 21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21346 printf "%s\n" "yes" >&6; } 21347 21348 fi 21349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21350 21351 21352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5 21353 printf %s "checking if compiler supports hiding library internal symbols... " >&6; } 21354 supports_symbol_hiding="no" 21355 symbol_hiding_CFLAGS="" 21356 symbol_hiding_EXTERN="" 21357 tmp_CFLAGS="" 21358 tmp_EXTERN="" 21359 case "$compiler_id" in 21360 CLANG|APPLECLANG) 21361 tmp_EXTERN="__attribute__((__visibility__(\"default\")))" 21362 tmp_CFLAGS="-fvisibility=hidden" 21363 supports_symbol_hiding="yes" 21364 ;; 21365 GNU_C) 21366 if test "$compiler_num" -ge "304"; then 21367 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then 21368 tmp_EXTERN="__attribute__((__visibility__(\"default\")))" 21369 tmp_CFLAGS="-fvisibility=hidden" 21370 supports_symbol_hiding="yes" 21371 fi 21372 fi 21373 ;; 21374 INTEL_UNIX_C) 21375 if test "$compiler_num" -ge "900"; then 21376 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then 21377 tmp_save_CFLAGS="$CFLAGS" 21378 CFLAGS="$CFLAGS -fvisibility=hidden" 21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21380 /* end confdefs.h. */ 21381 21382 21383 #include <stdio.h> 21384 21385 int main(void) 21386 { 21387 21388 printf("icc fvisibility bug test"); 21389 21390 return 0; 21391 } 21392 21393 _ACEOF 21394 if ac_fn_c_try_link "$LINENO" 21395 then : 21396 21397 tmp_EXTERN="__attribute__((__visibility__(\"default\")))" 21398 tmp_CFLAGS="-fvisibility=hidden" 21399 supports_symbol_hiding="yes" 21400 21401 fi 21402 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21403 conftest$ac_exeext conftest.$ac_ext 21404 CFLAGS="$tmp_save_CFLAGS" 21405 fi 21406 fi 21407 ;; 21408 SUNPRO_C) 21409 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 21410 tmp_EXTERN="__global" 21411 tmp_CFLAGS="-xldscope=hidden" 21412 supports_symbol_hiding="yes" 21413 fi 21414 ;; 21415 esac 21416 if test "$supports_symbol_hiding" = "yes"; then 21417 tmp_save_CFLAGS="$CFLAGS" 21418 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 21419 squeeze CFLAGS 21420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21421 /* end confdefs.h. */ 21422 21423 21424 $tmp_EXTERN const char *dummy(const char *buff); 21425 const char *dummy(const char *buff) 21426 { 21427 if(buff) 21428 return ++buff; 21429 else 21430 return buff; 21431 } 21432 21433 int main(void) 21434 { 21435 21436 const char *b = "example"; 21437 const char *r = dummy(&b[0]); 21438 if(r) 21439 return (int)*r; 21440 21441 return 0; 21442 } 21443 21444 _ACEOF 21445 if ac_fn_c_try_compile "$LINENO" 21446 then : 21447 21448 supports_symbol_hiding="yes" 21449 if test -f conftest.err; then 21450 grep 'visibility' conftest.err >/dev/null 21451 if test "$?" -eq "0"; then 21452 supports_symbol_hiding="no" 21453 fi 21454 fi 21455 21456 else $as_nop 21457 21458 supports_symbol_hiding="no" 21459 echo " " >&6 21460 sed 's/^/cc-src: /' conftest.$ac_ext >&6 21461 sed 's/^/cc-err: /' conftest.err >&6 21462 echo " " >&6 21463 21464 fi 21465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21466 CFLAGS="$tmp_save_CFLAGS" 21467 fi 21468 if test "$supports_symbol_hiding" = "yes"; then 21469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21470 printf "%s\n" "yes" >&6; } 21471 symbol_hiding_CFLAGS="$tmp_CFLAGS" 21472 symbol_hiding_EXTERN="$tmp_EXTERN" 21473 else 21474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21475 printf "%s\n" "no" >&6; } 21476 fi 21477 21478 21479 supports_unittests=yes 21480 # cross-compilation of unit tests static library/programs fails when 21481 # libcurl shared library is built. This might be due to a libtool or 21482 # automake issue. In this case we disable unit tests. 21483 if test "x$cross_compiling" != "xno" && 21484 test "x$enable_shared" != "xno"; then 21485 supports_unittests=no 21486 fi 21487 21488 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to 21489 # a problem related with OpenSSL headers and library versions not matching. 21490 # Disable unit tests while time to further investigate this is found. 21491 case $host in 21492 mips-sgi-irix6.5) 21493 if test "$compiler_id" = "GNU_C"; then 21494 supports_unittests=no 21495 fi 21496 ;; 21497 esac 21498 21499 # All AIX autobuilds fails unit tests linking against unittests library 21500 # due to unittests library being built with no symbols or members. Libtool ? 21501 # Disable unit tests while time to further investigate this is found. 21502 case $host_os in 21503 aix*) 21504 supports_unittests=no 21505 ;; 21506 esac 21507 21508 if test x$supports_unittests = xyes; then 21509 BUILD_UNITTESTS_TRUE= 21510 BUILD_UNITTESTS_FALSE='#' 21511 else 21512 BUILD_UNITTESTS_TRUE='#' 21513 BUILD_UNITTESTS_FALSE= 21514 fi 21515 21516 21517 # In order to detect support of sendmmsg() and accept4(), we need to escape the POSIX 21518 # jail by defining _GNU_SOURCE or <sys/socket.h> will not expose it. 21519 case $host_os in 21520 *linux*|cygwin*|msys*) 21521 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 21522 ;; 21523 esac 21524 21525 21526 21527 if test "$curl_cv_native_windows" = 'yes'; then 21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports Win32 large files" >&5 21529 printf %s "checking whether build target supports Win32 large files... " >&6; } 21530 if test "$curl_cv_wince" = 'yes'; then 21531 curl_win32_has_largefile='no' 21532 else 21533 curl_win32_has_largefile='yes' 21534 fi 21535 case "$curl_win32_has_largefile" in 21536 yes) 21537 if test x"$enable_largefile" = 'xno'; then 21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 21539 printf "%s\n" "yes (large file disabled)" >&6; } 21540 else 21541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 21542 printf "%s\n" "yes (large file enabled)" >&6; } 21543 21544 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h 21545 21546 fi 21547 ;; 21548 *) 21549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21550 printf "%s\n" "no" >&6; } 21551 ;; 21552 esac 21553 fi 21554 21555 21556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports Win32 crypto API" >&5 21557 printf %s "checking whether build target supports Win32 crypto API... " >&6; } 21558 curl_win32_crypto_api="no" 21559 if test "$curl_cv_native_windows" = "yes" -a "$curl_cv_winuwp" != "yes"; then 21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21561 /* end confdefs.h. */ 21562 21563 21564 #undef inline 21565 #ifndef WIN32_LEAN_AND_MEAN 21566 #define WIN32_LEAN_AND_MEAN 21567 #endif 21568 #include <windows.h> 21569 #include <wincrypt.h> 21570 21571 int main(void) 21572 { 21573 21574 HCRYPTPROV hCryptProv; 21575 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, 21576 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { 21577 CryptReleaseContext(hCryptProv, 0); 21578 } 21579 21580 return 0; 21581 } 21582 21583 _ACEOF 21584 if ac_fn_c_try_compile "$LINENO" 21585 then : 21586 21587 curl_win32_crypto_api="yes" 21588 21589 fi 21590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21591 fi 21592 case "$curl_win32_crypto_api" in 21593 yes) 21594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21595 printf "%s\n" "yes" >&6; } 21596 21597 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h 21598 21599 USE_WIN32_CRYPTO=1 21600 ;; 21601 *) 21602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21603 printf "%s\n" "no" >&6; } 21604 ;; 21605 esac 21606 21607 21608 curl_cv_apple='no' 21609 case $host in 21610 *-apple-*) curl_cv_apple='yes';; 21611 esac 21612 21613 if test "$curl_cv_apple" = 'yes'; then 21614 21615 old_CFLAGS=$CFLAGS 21616 CFLAGS="$CFLAGS -Werror=partial-availability" 21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5 21618 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; } 21619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21620 /* end confdefs.h. */ 21621 21622 int main(void) 21623 { 21624 21625 return 0; 21626 } 21627 _ACEOF 21628 if ac_fn_c_try_compile "$LINENO" 21629 then : 21630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21631 printf "%s\n" "yes" >&6; } 21632 else $as_nop 21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21634 printf "%s\n" "no" >&6; } 21635 CFLAGS=$old_CFLAGS 21636 fi 21637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21638 21639 21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5 21641 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; } 21642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21643 /* end confdefs.h. */ 21644 21645 21646 21647 int main(void) 21648 { 21649 21650 if(__builtin_available(macOS 10.12, iOS 5.0, *)) {} 21651 21652 return 0; 21653 } 21654 21655 _ACEOF 21656 if ac_fn_c_try_compile "$LINENO" 21657 then : 21658 21659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21660 printf "%s\n" "yes" >&6; } 21661 21662 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h 21663 21664 21665 else $as_nop 21666 21667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21668 printf "%s\n" "no" >&6; } 21669 21670 fi 21671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21672 21673 fi 21674 21675 curl_cv_cygwin='no' 21676 case $host_os in 21677 cygwin*|msys*) curl_cv_cygwin='yes';; 21678 esac 21679 21680 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then 21681 HAVE_WINDRES_TRUE= 21682 HAVE_WINDRES_FALSE='#' 21683 else 21684 HAVE_WINDRES_TRUE='#' 21685 HAVE_WINDRES_FALSE= 21686 fi 21687 21688 21689 if test "$curl_cv_native_windows" = "yes"; then 21690 if test -z "$HAVE_WINDRES_TRUE"; then : 21691 else 21692 as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5 21693 fi 21694 fi 21695 21696 21697 want_unity='no' 21698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build libcurl and curl in \"unity\" mode" >&5 21699 printf %s "checking whether to build libcurl and curl in \"unity\" mode... " >&6; } 21700 # Check whether --enable-unity was given. 21701 if test ${enable_unity+y} 21702 then : 21703 enableval=$enable_unity; case "$enableval" in 21704 yes) 21705 want_unity='yes' 21706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21707 printf "%s\n" "yes" >&6; } 21708 ;; 21709 *) 21710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21711 printf "%s\n" "no" >&6; } 21712 ;; 21713 esac 21714 else $as_nop 21715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21716 printf "%s\n" "no" >&6; } 21717 21718 fi 21719 21720 21721 if test "$want_unity" = 'yes'; then 21722 USE_UNITY_TRUE= 21723 USE_UNITY_FALSE='#' 21724 else 21725 USE_UNITY_TRUE='#' 21726 USE_UNITY_FALSE= 21727 fi 21728 21729 21730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 21731 printf %s "checking whether to support http... " >&6; } 21732 # Check whether --enable-http was given. 21733 if test ${enable_http+y} 21734 then : 21735 enableval=$enable_http; case "$enableval" in 21736 no) 21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21738 printf "%s\n" "no" >&6; } 21739 21740 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h 21741 21742 disable_http="yes" 21743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy, IPFS and RTSP" >&5 21744 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy, IPFS and RTSP" >&2;} 21745 CURL_DISABLE_HTTP=1 21746 21747 printf "%s\n" "#define CURL_DISABLE_IPFS 1" >>confdefs.h 21748 21749 CURL_DISABLE_IPFS=1 21750 21751 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h 21752 21753 CURL_DISABLE_RTSP=1 21754 21755 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h 21756 21757 21758 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h 21759 21760 curl_h1_msg="no (--enable-http)" 21761 curl_altsvc_msg="no"; 21762 curl_hsts_msg="no (--enable-hsts)"; 21763 enable_altsvc="no" 21764 hsts="no" 21765 ;; 21766 *) 21767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21768 printf "%s\n" "yes" >&6; } 21769 ;; 21770 esac 21771 else $as_nop 21772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21773 printf "%s\n" "yes" >&6; } 21774 21775 fi 21776 21777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 21778 printf %s "checking whether to support ftp... " >&6; } 21779 # Check whether --enable-ftp was given. 21780 if test ${enable_ftp+y} 21781 then : 21782 enableval=$enable_ftp; case "$enableval" in 21783 no) 21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21785 printf "%s\n" "no" >&6; } 21786 21787 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h 21788 21789 CURL_DISABLE_FTP=1 21790 ;; 21791 *) 21792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21793 printf "%s\n" "yes" >&6; } 21794 ;; 21795 esac 21796 else $as_nop 21797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21798 printf "%s\n" "yes" >&6; } 21799 21800 fi 21801 21802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 21803 printf %s "checking whether to support file... " >&6; } 21804 # Check whether --enable-file was given. 21805 if test ${enable_file+y} 21806 then : 21807 enableval=$enable_file; case "$enableval" in 21808 no) 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21810 printf "%s\n" "no" >&6; } 21811 21812 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h 21813 21814 CURL_DISABLE_FILE=1 21815 ;; 21816 *) 21817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21818 printf "%s\n" "yes" >&6; } 21819 ;; 21820 esac 21821 else $as_nop 21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21823 printf "%s\n" "yes" >&6; } 21824 21825 fi 21826 21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support IPFS" >&5 21828 printf %s "checking whether to support IPFS... " >&6; } 21829 # Check whether --enable-ipfs was given. 21830 if test ${enable_ipfs+y} 21831 then : 21832 enableval=$enable_ipfs; case "$enableval" in 21833 no) 21834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21835 printf "%s\n" "no" >&6; } 21836 21837 printf "%s\n" "#define CURL_DISABLE_IPFS 1" >>confdefs.h 21838 21839 CURL_DISABLE_IPFS=1 21840 ;; 21841 *) 21842 if test x$CURL_DISABLE_HTTP = x1; then 21843 as_fn_error $? "HTTP support needs to be enabled in order to enable IPFS support!" "$LINENO" 5 21844 else 21845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21846 printf "%s\n" "yes" >&6; } 21847 curl_ipfs_msg="enabled" 21848 fi 21849 ;; 21850 esac 21851 else $as_nop 21852 if test "x$CURL_DISABLE_HTTP" != "x1"; then 21853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21854 printf "%s\n" "yes" >&6; } 21855 curl_ipfs_msg="enabled" 21856 else 21857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21858 printf "%s\n" "no" >&6; } 21859 fi 21860 21861 fi 21862 21863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 21864 printf %s "checking whether to support ldap... " >&6; } 21865 # Check whether --enable-ldap was given. 21866 if test ${enable_ldap+y} 21867 then : 21868 enableval=$enable_ldap; case "$enableval" in 21869 no) 21870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21871 printf "%s\n" "no" >&6; } 21872 21873 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21874 21875 CURL_DISABLE_LDAP=1 21876 ;; 21877 yes) 21878 ldap_askedfor="yes" 21879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21880 printf "%s\n" "yes" >&6; } 21881 ;; 21882 *) 21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21884 printf "%s\n" "yes" >&6; } 21885 ;; 21886 esac 21887 else $as_nop 21888 21889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21890 printf "%s\n" "yes" >&6; } 21891 21892 fi 21893 21894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 21895 printf %s "checking whether to support ldaps... " >&6; } 21896 # Check whether --enable-ldaps was given. 21897 if test ${enable_ldaps+y} 21898 then : 21899 enableval=$enable_ldaps; case "$enableval" in 21900 no) 21901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21902 printf "%s\n" "no" >&6; } 21903 21904 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21905 21906 CURL_DISABLE_LDAPS=1 21907 ;; 21908 *) 21909 if test "x$CURL_DISABLE_LDAP" = "x1"; then 21910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 21911 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; } 21912 21913 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21914 21915 CURL_DISABLE_LDAPS=1 21916 else 21917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21918 printf "%s\n" "yes" >&6; } 21919 21920 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h 21921 21922 HAVE_LDAP_SSL=1 21923 fi 21924 ;; 21925 esac 21926 else $as_nop 21927 21928 if test "x$CURL_DISABLE_LDAP" = "x1"; then 21929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21930 printf "%s\n" "no" >&6; } 21931 21932 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21933 21934 CURL_DISABLE_LDAPS=1 21935 else 21936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21937 printf "%s\n" "yes" >&6; } 21938 21939 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h 21940 21941 HAVE_LDAP_SSL=1 21942 fi 21943 21944 fi 21945 21946 21947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 21948 printf %s "checking whether to support rtsp... " >&6; } 21949 # Check whether --enable-rtsp was given. 21950 if test ${enable_rtsp+y} 21951 then : 21952 enableval=$enable_rtsp; case "$enableval" in 21953 no) 21954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21955 printf "%s\n" "no" >&6; } 21956 21957 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h 21958 21959 CURL_DISABLE_RTSP=1 21960 ;; 21961 *) 21962 if test x$CURL_DISABLE_HTTP = x1; then 21963 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 21964 else 21965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21966 printf "%s\n" "yes" >&6; } 21967 curl_rtsp_msg="enabled" 21968 fi 21969 ;; 21970 esac 21971 else $as_nop 21972 if test "x$CURL_DISABLE_HTTP" != "x1"; then 21973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21974 printf "%s\n" "yes" >&6; } 21975 curl_rtsp_msg="enabled" 21976 else 21977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21978 printf "%s\n" "no" >&6; } 21979 fi 21980 21981 fi 21982 21983 21984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 21985 printf %s "checking whether to support proxies... " >&6; } 21986 # Check whether --enable-proxy was given. 21987 if test ${enable_proxy+y} 21988 then : 21989 enableval=$enable_proxy; case "$enableval" in 21990 no) 21991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21992 printf "%s\n" "no" >&6; } 21993 21994 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h 21995 21996 CURL_DISABLE_PROXY=1 21997 https_proxy="no" 21998 ;; 21999 *) 22000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22001 printf "%s\n" "yes" >&6; } 22002 ;; 22003 esac 22004 else $as_nop 22005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22006 printf "%s\n" "yes" >&6; } 22007 22008 fi 22009 22010 22011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 22012 printf %s "checking whether to support dict... " >&6; } 22013 # Check whether --enable-dict was given. 22014 if test ${enable_dict+y} 22015 then : 22016 enableval=$enable_dict; case "$enableval" in 22017 no) 22018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22019 printf "%s\n" "no" >&6; } 22020 22021 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h 22022 22023 CURL_DISABLE_DICT=1 22024 ;; 22025 *) 22026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22027 printf "%s\n" "yes" >&6; } 22028 ;; 22029 esac 22030 else $as_nop 22031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22032 printf "%s\n" "yes" >&6; } 22033 22034 fi 22035 22036 22037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 22038 printf %s "checking whether to support telnet... " >&6; } 22039 # Check whether --enable-telnet was given. 22040 if test ${enable_telnet+y} 22041 then : 22042 enableval=$enable_telnet; case "$enableval" in 22043 no) 22044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22045 printf "%s\n" "no" >&6; } 22046 22047 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h 22048 22049 CURL_DISABLE_TELNET=1 22050 ;; 22051 *) 22052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22053 printf "%s\n" "yes" >&6; } 22054 ;; 22055 esac 22056 else $as_nop 22057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22058 printf "%s\n" "yes" >&6; } 22059 22060 fi 22061 22062 22063 if test "$curl_cv_winuwp" = 'yes' -o "$curl_cv_wince" = 'yes'; then 22064 22065 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h 22066 22067 CURL_DISABLE_TELNET=1 22068 fi 22069 22070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 22071 printf %s "checking whether to support tftp... " >&6; } 22072 # Check whether --enable-tftp was given. 22073 if test ${enable_tftp+y} 22074 then : 22075 enableval=$enable_tftp; case "$enableval" in 22076 no) 22077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22078 printf "%s\n" "no" >&6; } 22079 22080 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h 22081 22082 CURL_DISABLE_TFTP=1 22083 ;; 22084 *) 22085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22086 printf "%s\n" "yes" >&6; } 22087 ;; 22088 esac 22089 else $as_nop 22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22091 printf "%s\n" "yes" >&6; } 22092 22093 fi 22094 22095 22096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 22097 printf %s "checking whether to support pop3... " >&6; } 22098 # Check whether --enable-pop3 was given. 22099 if test ${enable_pop3+y} 22100 then : 22101 enableval=$enable_pop3; case "$enableval" in 22102 no) 22103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22104 printf "%s\n" "no" >&6; } 22105 22106 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h 22107 22108 CURL_DISABLE_POP3=1 22109 ;; 22110 *) 22111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22112 printf "%s\n" "yes" >&6; } 22113 ;; 22114 esac 22115 else $as_nop 22116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22117 printf "%s\n" "yes" >&6; } 22118 22119 fi 22120 22121 22122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 22123 printf %s "checking whether to support imap... " >&6; } 22124 # Check whether --enable-imap was given. 22125 if test ${enable_imap+y} 22126 then : 22127 enableval=$enable_imap; case "$enableval" in 22128 no) 22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22130 printf "%s\n" "no" >&6; } 22131 22132 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h 22133 22134 CURL_DISABLE_IMAP=1 22135 ;; 22136 *) 22137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22138 printf "%s\n" "yes" >&6; } 22139 ;; 22140 esac 22141 else $as_nop 22142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22143 printf "%s\n" "yes" >&6; } 22144 22145 fi 22146 22147 22148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5 22149 printf %s "checking whether to support smb... " >&6; } 22150 # Check whether --enable-smb was given. 22151 if test ${enable_smb+y} 22152 then : 22153 enableval=$enable_smb; case "$enableval" in 22154 no) 22155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22156 printf "%s\n" "no" >&6; } 22157 22158 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h 22159 22160 CURL_DISABLE_SMB=1 22161 ;; 22162 *) 22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22164 printf "%s\n" "yes" >&6; } 22165 ;; 22166 esac 22167 else $as_nop 22168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22169 printf "%s\n" "yes" >&6; } 22170 22171 fi 22172 22173 22174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 22175 printf %s "checking whether to support smtp... " >&6; } 22176 # Check whether --enable-smtp was given. 22177 if test ${enable_smtp+y} 22178 then : 22179 enableval=$enable_smtp; case "$enableval" in 22180 no) 22181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22182 printf "%s\n" "no" >&6; } 22183 22184 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h 22185 22186 CURL_DISABLE_SMTP=1 22187 ;; 22188 *) 22189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22190 printf "%s\n" "yes" >&6; } 22191 ;; 22192 esac 22193 else $as_nop 22194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22195 printf "%s\n" "yes" >&6; } 22196 22197 fi 22198 22199 22200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 22201 printf %s "checking whether to support gopher... " >&6; } 22202 # Check whether --enable-gopher was given. 22203 if test ${enable_gopher+y} 22204 then : 22205 enableval=$enable_gopher; case "$enableval" in 22206 no) 22207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22208 printf "%s\n" "no" >&6; } 22209 22210 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h 22211 22212 CURL_DISABLE_GOPHER=1 22213 ;; 22214 *) 22215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22216 printf "%s\n" "yes" >&6; } 22217 ;; 22218 esac 22219 else $as_nop 22220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22221 printf "%s\n" "yes" >&6; } 22222 22223 fi 22224 22225 22226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5 22227 printf %s "checking whether to support mqtt... " >&6; } 22228 # Check whether --enable-mqtt was given. 22229 if test ${enable_mqtt+y} 22230 then : 22231 enableval=$enable_mqtt; case "$enableval" in 22232 no) 22233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22234 printf "%s\n" "no" >&6; } 22235 22236 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h 22237 22238 CURL_DISABLE_MQTT=1 22239 ;; 22240 *) 22241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22242 printf "%s\n" "yes" >&6; } 22243 ;; 22244 esac 22245 else $as_nop 22246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22247 printf "%s\n" "no" >&6; } 22248 22249 fi 22250 22251 22252 22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 22254 printf %s "checking whether to provide built-in manual... " >&6; } 22255 # Check whether --enable-manual was given. 22256 if test ${enable_manual+y} 22257 then : 22258 enableval=$enable_manual; case "$enableval" in 22259 no) 22260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22261 printf "%s\n" "no" >&6; } 22262 ;; 22263 *) 22264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22265 printf "%s\n" "yes" >&6; } 22266 USE_MANUAL="1" 22267 ;; 22268 esac 22269 else $as_nop 22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22271 printf "%s\n" "yes" >&6; } 22272 USE_MANUAL="1" 22273 22274 fi 22275 22276 22277 22278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 22279 printf %s "checking whether to build documentation... " >&6; } 22280 # Check whether --enable-docs was given. 22281 if test ${enable_docs+y} 22282 then : 22283 enableval=$enable_docs; case "$enableval" in 22284 no) 22285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22286 printf "%s\n" "no" >&6; } 22287 BUILD_DOCS=0 22288 USE_MANUAL=0 22289 curl_docs_msg="no" 22290 ;; 22291 *) 22292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22293 printf "%s\n" "yes" >&6; } 22294 BUILD_DOCS=1 22295 ;; 22296 esac 22297 else $as_nop 22298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22299 printf "%s\n" "yes" >&6; } 22300 BUILD_DOCS=1 22301 22302 fi 22303 22304 22305 22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5 22307 printf %s "checking whether to enable generation of C code... " >&6; } 22308 # Check whether --enable-libcurl_option was given. 22309 if test ${enable_libcurl_option+y} 22310 then : 22311 enableval=$enable_libcurl_option; case "$enableval" in 22312 no) 22313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22314 printf "%s\n" "no" >&6; } 22315 22316 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h 22317 22318 curl_libcurl_msg="no" 22319 ;; 22320 *) 22321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22322 printf "%s\n" "yes" >&6; } 22323 ;; 22324 esac 22325 else $as_nop 22326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22327 printf "%s\n" "yes" >&6; } 22328 22329 fi 22330 22331 22332 22333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 22334 printf %s "checking whether to use libgcc... " >&6; } 22335 # Check whether --enable-libgcc was given. 22336 if test ${enable_libgcc+y} 22337 then : 22338 enableval=$enable_libgcc; case "$enableval" in 22339 yes) 22340 LIBS="-lgcc $LIBS" 22341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22342 printf "%s\n" "yes" >&6; } 22343 ;; 22344 *) 22345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22346 printf "%s\n" "no" >&6; } 22347 ;; 22348 esac 22349 else $as_nop 22350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22351 printf "%s\n" "no" >&6; } 22352 22353 fi 22354 22355 22356 22357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 22358 printf %s "checking if X/Open network library is required... " >&6; } 22359 tst_lib_xnet_required="no" 22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22361 /* end confdefs.h. */ 22362 22363 22364 int main(void) 22365 { 22366 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 22367 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 22368 #else 22369 #error force compilation error 22370 #endif 22371 return 0; 22372 } 22373 22374 22375 _ACEOF 22376 if ac_fn_c_try_compile "$LINENO" 22377 then : 22378 22379 tst_lib_xnet_required="yes" 22380 LIBS="-lxnet $LIBS" 22381 22382 fi 22383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 22385 printf "%s\n" "$tst_lib_xnet_required" >&6; } 22386 22387 22388 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 22389 if test "x$ac_cv_func_gethostbyname" = xyes 22390 then : 22391 22392 HAVE_GETHOSTBYNAME="1" 22393 22394 else $as_nop 22395 22396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 22397 printf %s "checking for gethostbyname in -lnsl... " >&6; } 22398 if test ${ac_cv_lib_nsl_gethostbyname+y} 22399 then : 22400 printf %s "(cached) " >&6 22401 else $as_nop 22402 ac_check_lib_save_LIBS=$LIBS 22403 LIBS="-lnsl $LIBS" 22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22405 /* end confdefs.h. */ 22406 22407 22408 #ifdef __cplusplus 22409 extern "C" 22410 #endif 22411 char gethostbyname (); 22412 int main(void) 22413 { 22414 return gethostbyname (); 22415 return 0; 22416 } 22417 _ACEOF 22418 if ac_fn_c_try_link "$LINENO" 22419 then : 22420 ac_cv_lib_nsl_gethostbyname=yes 22421 else $as_nop 22422 ac_cv_lib_nsl_gethostbyname=no 22423 fi 22424 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22425 conftest$ac_exeext conftest.$ac_ext 22426 LIBS=$ac_check_lib_save_LIBS 22427 fi 22428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 22429 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 22430 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 22431 then : 22432 22433 HAVE_GETHOSTBYNAME="1" 22434 LIBS="-lnsl $LIBS" 22435 22436 22437 fi 22438 22439 22440 22441 fi 22442 22443 22444 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 22446 printf %s "checking for gethostbyname in -lsocket... " >&6; } 22447 if test ${ac_cv_lib_socket_gethostbyname+y} 22448 then : 22449 printf %s "(cached) " >&6 22450 else $as_nop 22451 ac_check_lib_save_LIBS=$LIBS 22452 LIBS="-lsocket $LIBS" 22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22454 /* end confdefs.h. */ 22455 22456 22457 #ifdef __cplusplus 22458 extern "C" 22459 #endif 22460 char gethostbyname (); 22461 int main(void) 22462 { 22463 return gethostbyname (); 22464 return 0; 22465 } 22466 _ACEOF 22467 if ac_fn_c_try_link "$LINENO" 22468 then : 22469 ac_cv_lib_socket_gethostbyname=yes 22470 else $as_nop 22471 ac_cv_lib_socket_gethostbyname=no 22472 fi 22473 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22474 conftest$ac_exeext conftest.$ac_ext 22475 LIBS=$ac_check_lib_save_LIBS 22476 fi 22477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 22478 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; } 22479 if test "x$ac_cv_lib_socket_gethostbyname" = xyes 22480 then : 22481 22482 HAVE_GETHOSTBYNAME="1" 22483 LIBS="-lsocket $LIBS" 22484 22485 22486 fi 22487 22488 fi 22489 22490 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22491 clean_CPPFLAGS=$CPPFLAGS 22492 clean_LDFLAGS=$LDFLAGS 22493 CPPFLAGS="-I${WATT_ROOT}/inc" 22494 LDFLAGS="-L${WATT_ROOT}/lib" 22495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5 22496 printf %s "checking for gethostbyname in -lwatt... " >&6; } 22497 if test ${ac_cv_lib_watt_gethostbyname+y} 22498 then : 22499 printf %s "(cached) " >&6 22500 else $as_nop 22501 ac_check_lib_save_LIBS=$LIBS 22502 LIBS="-lwatt $LIBS" 22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22504 /* end confdefs.h. */ 22505 22506 22507 #ifdef __cplusplus 22508 extern "C" 22509 #endif 22510 char gethostbyname (); 22511 int main(void) 22512 { 22513 return gethostbyname (); 22514 return 0; 22515 } 22516 _ACEOF 22517 if ac_fn_c_try_link "$LINENO" 22518 then : 22519 ac_cv_lib_watt_gethostbyname=yes 22520 else $as_nop 22521 ac_cv_lib_watt_gethostbyname=no 22522 fi 22523 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22524 conftest$ac_exeext conftest.$ac_ext 22525 LIBS=$ac_check_lib_save_LIBS 22526 fi 22527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5 22528 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; } 22529 if test "x$ac_cv_lib_watt_gethostbyname" = xyes 22530 then : 22531 22532 HAVE_GETHOSTBYNAME="1" 22533 LIBS="-lwatt $LIBS" 22534 22535 printf "%s\n" "#define USE_WATT32 1" >>confdefs.h 22536 22537 22538 else $as_nop 22539 22540 CPPFLAGS=$clean_CPPFLAGS 22541 LDFLAGS=$clean_LDFLAGS 22542 22543 22544 fi 22545 22546 fi 22547 22548 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 22550 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; } 22551 my_ac_save_LIBS=$LIBS 22552 LIBS="-lnsl -lsocket $LIBS" 22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22554 /* end confdefs.h. */ 22555 22556 22557 22558 int main(void) 22559 { 22560 22561 gethostbyname(); 22562 22563 return 0; 22564 } 22565 22566 _ACEOF 22567 if ac_fn_c_try_link "$LINENO" 22568 then : 22569 22570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22571 printf "%s\n" "yes" >&6; } 22572 HAVE_GETHOSTBYNAME="1" 22573 22574 else $as_nop 22575 22576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22577 printf "%s\n" "no" >&6; } 22578 LIBS=$my_ac_save_LIBS 22579 22580 fi 22581 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22582 conftest$ac_exeext conftest.$ac_ext 22583 fi 22584 22585 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22586 if test "$curl_cv_wince" = 'yes'; then 22587 winsock_LIB="-lws2" 22588 if test ! -z "$winsock_LIB"; then 22589 my_ac_save_LIBS=$LIBS 22590 LIBS="$winsock_LIB $LIBS" 22591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 22592 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; } 22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22594 /* end confdefs.h. */ 22595 22596 22597 #ifdef _WIN32 22598 #ifndef WIN32_LEAN_AND_MEAN 22599 #define WIN32_LEAN_AND_MEAN 22600 #endif 22601 #include <winsock2.h> 22602 #endif 22603 22604 int main(void) 22605 { 22606 22607 gethostbyname("localhost"); 22608 22609 return 0; 22610 } 22611 22612 _ACEOF 22613 if ac_fn_c_try_link "$LINENO" 22614 then : 22615 22616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22617 printf "%s\n" "yes" >&6; } 22618 HAVE_GETHOSTBYNAME="1" 22619 22620 else $as_nop 22621 22622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22623 printf "%s\n" "no" >&6; } 22624 winsock_LIB="" 22625 LIBS=$my_ac_save_LIBS 22626 22627 fi 22628 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22629 conftest$ac_exeext conftest.$ac_ext 22630 fi 22631 fi 22632 fi 22633 22634 # In UWP mode gethostbyname gets detected via the core libs, but some 22635 # code (in6addr_any) still need ws2_32, so let us detect and add it. 22636 if test "$HAVE_GETHOSTBYNAME" != "1" -o "$curl_cv_winuwp" = "yes"; then 22637 if test "$curl_cv_native_windows" = "yes"; then 22638 winsock_LIB="-lws2_32" 22639 if test "$curl_cv_winuwp" != "yes"; then 22640 winsock_LIB="$winsock_LIB -liphlpapi" 22641 fi 22642 if test ! -z "$winsock_LIB"; then 22643 my_ac_save_LIBS=$LIBS 22644 LIBS="$winsock_LIB $LIBS" 22645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 22646 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; } 22647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22648 /* end confdefs.h. */ 22649 22650 22651 #ifdef _WIN32 22652 #ifndef WIN32_LEAN_AND_MEAN 22653 #define WIN32_LEAN_AND_MEAN 22654 #endif 22655 #include <winsock2.h> 22656 #endif 22657 22658 int main(void) 22659 { 22660 22661 gethostbyname("localhost"); 22662 22663 return 0; 22664 } 22665 22666 _ACEOF 22667 if ac_fn_c_try_link "$LINENO" 22668 then : 22669 22670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22671 printf "%s\n" "yes" >&6; } 22672 HAVE_GETHOSTBYNAME="1" 22673 22674 else $as_nop 22675 22676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22677 printf "%s\n" "no" >&6; } 22678 winsock_LIB="" 22679 LIBS=$my_ac_save_LIBS 22680 22681 fi 22682 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22683 conftest$ac_exeext conftest.$ac_ext 22684 fi 22685 fi 22686 fi 22687 22688 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 22690 printf %s "checking for gethostbyname for Minix 3... " >&6; } 22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22692 /* end confdefs.h. */ 22693 22694 22695 /* Older Minix versions may need <net/gen/netdb.h> here instead */ 22696 #include <netdb.h> 22697 22698 int main(void) 22699 { 22700 22701 gethostbyname("localhost"); 22702 22703 return 0; 22704 } 22705 22706 _ACEOF 22707 if ac_fn_c_try_link "$LINENO" 22708 then : 22709 22710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22711 printf "%s\n" "yes" >&6; } 22712 HAVE_GETHOSTBYNAME="1" 22713 22714 else $as_nop 22715 22716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22717 printf "%s\n" "no" >&6; } 22718 22719 fi 22720 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22721 conftest$ac_exeext conftest.$ac_ext 22722 fi 22723 22724 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 22726 printf %s "checking for gethostbyname for eCos... " >&6; } 22727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22728 /* end confdefs.h. */ 22729 22730 22731 #include <stdio.h> 22732 #include <netdb.h> 22733 22734 int main(void) 22735 { 22736 22737 gethostbyname("localhost"); 22738 22739 return 0; 22740 } 22741 22742 _ACEOF 22743 if ac_fn_c_try_link "$LINENO" 22744 then : 22745 22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22747 printf "%s\n" "yes" >&6; } 22748 HAVE_GETHOSTBYNAME="1" 22749 22750 else $as_nop 22751 22752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22753 printf "%s\n" "no" >&6; } 22754 22755 fi 22756 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22757 conftest$ac_exeext conftest.$ac_ext 22758 fi 22759 22760 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set; then 22761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5 22762 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; } 22763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22764 /* end confdefs.h. */ 22765 22766 22767 #define __USE_INLINE__ 22768 #include <proto/bsdsocket.h> 22769 #ifdef __amigaos4__ 22770 struct SocketIFace *ISocket = NULL; 22771 #else 22772 struct Library *SocketBase = NULL; 22773 #endif 22774 22775 int main(void) 22776 { 22777 22778 unsigned char host[] = "localhost"; 22779 gethostbyname(host); 22780 22781 return 0; 22782 } 22783 22784 _ACEOF 22785 if ac_fn_c_try_link "$LINENO" 22786 then : 22787 22788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22789 printf "%s\n" "yes" >&6; } 22790 HAVE_GETHOSTBYNAME="1" 22791 HAVE_PROTO_BSDSOCKET_H="1" 22792 22793 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h 22794 22795 22796 else $as_nop 22797 22798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22799 printf "%s\n" "no" >&6; } 22800 22801 fi 22802 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22803 conftest$ac_exeext conftest.$ac_ext 22804 fi 22805 22806 if test "$HAVE_GETHOSTBYNAME" != "1"; then 22807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 22808 printf %s "checking for gethostbyname in -lnetwork... " >&6; } 22809 if test ${ac_cv_lib_network_gethostbyname+y} 22810 then : 22811 printf %s "(cached) " >&6 22812 else $as_nop 22813 ac_check_lib_save_LIBS=$LIBS 22814 LIBS="-lnetwork $LIBS" 22815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22816 /* end confdefs.h. */ 22817 22818 22819 #ifdef __cplusplus 22820 extern "C" 22821 #endif 22822 char gethostbyname (); 22823 int main(void) 22824 { 22825 return gethostbyname (); 22826 return 0; 22827 } 22828 _ACEOF 22829 if ac_fn_c_try_link "$LINENO" 22830 then : 22831 ac_cv_lib_network_gethostbyname=yes 22832 else $as_nop 22833 ac_cv_lib_network_gethostbyname=no 22834 fi 22835 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22836 conftest$ac_exeext conftest.$ac_ext 22837 LIBS=$ac_check_lib_save_LIBS 22838 fi 22839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 22840 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; } 22841 if test "x$ac_cv_lib_network_gethostbyname" = xyes 22842 then : 22843 22844 HAVE_GETHOSTBYNAME="1" 22845 LIBS="-lnetwork $LIBS" 22846 22847 22848 fi 22849 22850 fi 22851 22852 22853 curl_includes_winsock2="\ 22854 /* includes start */ 22855 #ifdef _WIN32 22856 # ifndef WIN32_LEAN_AND_MEAN 22857 # define WIN32_LEAN_AND_MEAN 22858 # endif 22859 # include <winsock2.h> 22860 #endif 22861 /* includes end */" 22862 22863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 22864 printf %s "checking whether build target is a native Windows one... " >&6; } 22865 if test ${curl_cv_native_windows+y} 22866 then : 22867 printf %s "(cached) " >&6 22868 else $as_nop 22869 22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22871 /* end confdefs.h. */ 22872 22873 22874 22875 int main(void) 22876 { 22877 22878 #ifdef _WIN32 22879 int dummy = 1; 22880 (void)dummy; 22881 #else 22882 #error Not a native Windows build target. 22883 #endif 22884 22885 return 0; 22886 } 22887 22888 _ACEOF 22889 if ac_fn_c_try_compile "$LINENO" 22890 then : 22891 22892 curl_cv_native_windows="yes" 22893 22894 else $as_nop 22895 22896 curl_cv_native_windows="no" 22897 22898 fi 22899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22900 22901 fi 22902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 22903 printf "%s\n" "$curl_cv_native_windows" >&6; } 22904 if test "x$curl_cv_native_windows" = xyes; then 22905 DOING_NATIVE_WINDOWS_TRUE= 22906 DOING_NATIVE_WINDOWS_FALSE='#' 22907 else 22908 DOING_NATIVE_WINDOWS_TRUE='#' 22909 DOING_NATIVE_WINDOWS_FALSE= 22910 fi 22911 22912 22913 22914 22915 curl_includes_bsdsocket="\ 22916 /* includes start */ 22917 #if defined(HAVE_PROTO_BSDSOCKET_H) 22918 # define __NO_NET_API 22919 # define __USE_INLINE__ 22920 # include <proto/bsdsocket.h> 22921 # ifdef HAVE_SYS_IOCTL_H 22922 # include <sys/ioctl.h> 22923 # endif 22924 # ifdef __amigaos4__ 22925 struct SocketIFace *ISocket = NULL; 22926 # else 22927 struct Library *SocketBase = NULL; 22928 # endif 22929 # define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0) 22930 #endif 22931 /* includes end */" 22932 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket 22933 " 22934 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes 22935 then : 22936 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h 22937 22938 fi 22939 22940 22941 22942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 22943 printf %s "checking for connect in libraries... " >&6; } 22944 tst_connect_save_LIBS="$LIBS" 22945 tst_connect_need_LIBS="unknown" 22946 for tst_lib in '' '-lsocket' ; do 22947 if test "$tst_connect_need_LIBS" = "unknown"; then 22948 LIBS="$tst_lib $tst_connect_save_LIBS" 22949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22950 /* end confdefs.h. */ 22951 22952 22953 $curl_includes_winsock2 22954 $curl_includes_bsdsocket 22955 #if !defined(_WIN32) && !defined(HAVE_PROTO_BSDSOCKET_H) 22956 int connect(int, void*, int); 22957 #endif 22958 22959 int main(void) 22960 { 22961 22962 if(0 != connect(0, 0, 0)) 22963 return 1; 22964 22965 return 0; 22966 } 22967 22968 _ACEOF 22969 if ac_fn_c_try_link "$LINENO" 22970 then : 22971 22972 tst_connect_need_LIBS="$tst_lib" 22973 22974 fi 22975 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22976 conftest$ac_exeext conftest.$ac_ext 22977 fi 22978 done 22979 LIBS="$tst_connect_save_LIBS" 22980 # 22981 case X-"$tst_connect_need_LIBS" in 22982 X-unknown) 22983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 22984 printf "%s\n" "cannot find connect" >&6; } 22985 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 22986 ;; 22987 X-) 22988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22989 printf "%s\n" "yes" >&6; } 22990 ;; 22991 *) 22992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 22993 printf "%s\n" "$tst_connect_need_LIBS" >&6; } 22994 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 22995 ;; 22996 esac 22997 22998 22999 23000 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 23001 if test "x$ac_cv_header_sys_types_h" = xyes 23002 then : 23003 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 23004 23005 fi 23006 23007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 23008 printf %s "checking for monotonic clock_gettime... " >&6; } 23009 # 23010 23011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23012 /* end confdefs.h. */ 23013 23014 23015 #ifdef HAVE_SYS_TYPES_H 23016 #include <sys/types.h> 23017 #endif 23018 #ifndef _WIN32 23019 #include <sys/time.h> 23020 #endif 23021 #include <time.h> 23022 23023 int main(void) 23024 { 23025 23026 struct timespec ts; 23027 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 23028 (void)ts; 23029 23030 return 0; 23031 } 23032 23033 _ACEOF 23034 if ac_fn_c_try_compile "$LINENO" 23035 then : 23036 23037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23038 printf "%s\n" "yes" >&6; } 23039 curl_func_clock_gettime="yes" 23040 23041 else $as_nop 23042 23043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23044 printf "%s\n" "no" >&6; } 23045 curl_func_clock_gettime="no" 23046 23047 fi 23048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23049 23050 23051 23052 # 23053 if test "$curl_func_clock_gettime" = "yes"; then 23054 # 23055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 23056 printf %s "checking for clock_gettime in libraries... " >&6; } 23057 # 23058 curl_cv_save_LIBS="$LIBS" 23059 curl_cv_gclk_LIBS="unknown" 23060 # 23061 for x_xlibs in '' '-lrt' '-lposix4' ; do 23062 if test "$curl_cv_gclk_LIBS" = "unknown"; then 23063 if test -z "$x_xlibs"; then 23064 LIBS="$curl_cv_save_LIBS" 23065 else 23066 LIBS="$x_xlibs $curl_cv_save_LIBS" 23067 fi 23068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23069 /* end confdefs.h. */ 23070 23071 23072 #ifdef HAVE_SYS_TYPES_H 23073 #include <sys/types.h> 23074 #endif 23075 #ifndef _WIN32 23076 #include <sys/time.h> 23077 #endif 23078 #include <time.h> 23079 23080 int main(void) 23081 { 23082 23083 struct timespec ts; 23084 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 23085 (void)ts; 23086 23087 return 0; 23088 } 23089 23090 _ACEOF 23091 if ac_fn_c_try_link "$LINENO" 23092 then : 23093 23094 curl_cv_gclk_LIBS="$x_xlibs" 23095 23096 fi 23097 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23098 conftest$ac_exeext conftest.$ac_ext 23099 fi 23100 done 23101 # 23102 LIBS="$curl_cv_save_LIBS" 23103 # 23104 case X-"$curl_cv_gclk_LIBS" in 23105 X-unknown) 23106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 23107 printf "%s\n" "cannot find clock_gettime" >&6; } 23108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23109 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23110 curl_func_clock_gettime="no" 23111 ;; 23112 X-) 23113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 23114 printf "%s\n" "no additional lib required" >&6; } 23115 curl_func_clock_gettime="yes" 23116 ;; 23117 *) 23118 if test "x$dontwant_rt" = "xyes" ; then 23119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: needs -lrt but asked not to use it, HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23120 printf "%s\n" "$as_me: WARNING: needs -lrt but asked not to use it, HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23121 curl_func_clock_gettime="no" 23122 else 23123 if test -z "$curl_cv_save_LIBS"; then 23124 LIBS="$curl_cv_gclk_LIBS" 23125 else 23126 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 23127 fi 23128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 23129 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; } 23130 curl_func_clock_gettime="yes" 23131 fi 23132 ;; 23133 esac 23134 # 23135 if test "x$cross_compiling" != "xyes" && 23136 test "$curl_func_clock_gettime" = "yes"; then 23137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 23138 printf %s "checking if monotonic clock_gettime works... " >&6; } 23139 23140 if test "$curl_cv_apple" = 'yes'; then 23141 if test "$cross_compiling" = yes 23142 then : 23143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23145 as_fn_error $? "cannot run test program while cross compiling 23146 See \`config.log' for more details" "$LINENO" 5; } 23147 else $as_nop 23148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23149 /* end confdefs.h. */ 23150 23151 23152 #include <stdlib.h> 23153 #ifdef HAVE_SYS_TYPES_H 23154 #include <sys/types.h> 23155 #endif 23156 #ifndef _WIN32 23157 #include <sys/time.h> 23158 #endif 23159 #include <time.h> 23160 23161 int main(void) 23162 { 23163 23164 struct timespec ts; 23165 if(0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 23166 return 0; 23167 (void)ts; 23168 return 1; 23169 23170 return 0; 23171 } 23172 23173 _ACEOF 23174 if ac_fn_c_try_run "$LINENO" 23175 then : 23176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23177 printf "%s\n" "yes" >&6; } 23178 23179 else $as_nop 23180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23181 printf "%s\n" "no" >&6; } 23182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23183 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23184 curl_func_clock_gettime="no" 23185 LIBS="$curl_cv_save_LIBS" 23186 23187 fi 23188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23189 conftest.$ac_objext conftest.beam conftest.$ac_ext 23190 fi 23191 23192 else 23193 oldcc=$CC 23194 old=$LD_LIBRARY_PATH 23195 CC="sh ./run-compiler" 23196 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 23197 export LD_LIBRARY_PATH 23198 if test "$cross_compiling" = yes 23199 then : 23200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23201 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23202 as_fn_error $? "cannot run test program while cross compiling 23203 See \`config.log' for more details" "$LINENO" 5; } 23204 else $as_nop 23205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23206 /* end confdefs.h. */ 23207 23208 23209 #include <stdlib.h> 23210 #ifdef HAVE_SYS_TYPES_H 23211 #include <sys/types.h> 23212 #endif 23213 #ifndef _WIN32 23214 #include <sys/time.h> 23215 #endif 23216 #include <time.h> 23217 23218 int main(void) 23219 { 23220 23221 struct timespec ts; 23222 if(0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 23223 return 0; 23224 (void)ts; 23225 return 1; 23226 23227 return 0; 23228 } 23229 23230 _ACEOF 23231 if ac_fn_c_try_run "$LINENO" 23232 then : 23233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23234 printf "%s\n" "yes" >&6; } 23235 23236 else $as_nop 23237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23238 printf "%s\n" "no" >&6; } 23239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23240 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23241 curl_func_clock_gettime="no" 23242 LIBS="$curl_cv_save_LIBS" 23243 23244 fi 23245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23246 conftest.$ac_objext conftest.beam conftest.$ac_ext 23247 fi 23248 23249 LD_LIBRARY_PATH=$old # restore 23250 CC=$oldcc 23251 fi 23252 23253 fi 23254 # 23255 case "$curl_func_clock_gettime" in 23256 yes) 23257 23258 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h 23259 23260 ;; 23261 esac 23262 # 23263 fi 23264 # 23265 23266 23267 23268 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 23269 if test "x$ac_cv_header_sys_types_h" = xyes 23270 then : 23271 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 23272 23273 fi 23274 23275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5 23276 printf %s "checking for raw monotonic clock_gettime... " >&6; } 23277 # 23278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23279 /* end confdefs.h. */ 23280 23281 23282 #ifdef HAVE_SYS_TYPES_H 23283 #include <sys/types.h> 23284 #endif 23285 #ifndef _WIN32 23286 #include <sys/time.h> 23287 #endif 23288 #include <time.h> 23289 23290 int main(void) 23291 { 23292 23293 struct timespec ts; 23294 (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts); 23295 (void)ts; 23296 23297 return 0; 23298 } 23299 23300 _ACEOF 23301 if ac_fn_c_try_compile "$LINENO" 23302 then : 23303 23304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23305 printf "%s\n" "yes" >&6; } 23306 23307 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h 23308 23309 23310 else $as_nop 23311 23312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23313 printf "%s\n" "no" >&6; } 23314 23315 fi 23316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23317 23318 23319 CURL_NETWORK_AND_TIME_LIBS=$LIBS 23320 23321 23322 23323 clean_CPPFLAGS=$CPPFLAGS 23324 clean_LDFLAGS=$LDFLAGS 23325 clean_LIBS=$LIBS 23326 ZLIB_LIBS="" 23327 23328 # Check whether --with-zlib was given. 23329 if test ${with_zlib+y} 23330 then : 23331 withval=$with_zlib; OPT_ZLIB="$withval" 23332 fi 23333 23334 23335 if test "$OPT_ZLIB" = "no"; then 23336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 23337 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;} 23338 else 23339 if test "$OPT_ZLIB" = "yes"; then 23340 OPT_ZLIB="" 23341 fi 23342 23343 if test -z "$OPT_ZLIB"; then 23344 23345 if test -n "$PKG_CONFIG"; then 23346 PKGCONFIG="$PKG_CONFIG" 23347 else 23348 if test -n "$ac_tool_prefix"; then 23349 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23350 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23352 printf %s "checking for $ac_word... " >&6; } 23353 if test ${ac_cv_path_PKGCONFIG+y} 23354 then : 23355 printf %s "(cached) " >&6 23356 else $as_nop 23357 case $PKGCONFIG in 23358 [\\/]* | ?:[\\/]*) 23359 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23360 ;; 23361 *) 23362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23363 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23364 for as_dir in $as_dummy 23365 do 23366 IFS=$as_save_IFS 23367 case $as_dir in #((( 23368 '') as_dir=./ ;; 23369 */) ;; 23370 *) as_dir=$as_dir/ ;; 23371 esac 23372 for ac_exec_ext in '' $ac_executable_extensions; do 23373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23374 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23376 break 2 23377 fi 23378 done 23379 done 23380 IFS=$as_save_IFS 23381 23382 ;; 23383 esac 23384 fi 23385 PKGCONFIG=$ac_cv_path_PKGCONFIG 23386 if test -n "$PKGCONFIG"; then 23387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23388 printf "%s\n" "$PKGCONFIG" >&6; } 23389 else 23390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23391 printf "%s\n" "no" >&6; } 23392 fi 23393 23394 23395 fi 23396 if test -z "$ac_cv_path_PKGCONFIG"; then 23397 ac_pt_PKGCONFIG=$PKGCONFIG 23398 # Extract the first word of "pkg-config", so it can be a program name with args. 23399 set dummy pkg-config; ac_word=$2 23400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23401 printf %s "checking for $ac_word... " >&6; } 23402 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 23403 then : 23404 printf %s "(cached) " >&6 23405 else $as_nop 23406 case $ac_pt_PKGCONFIG in 23407 [\\/]* | ?:[\\/]*) 23408 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 23409 ;; 23410 *) 23411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23412 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23413 for as_dir in $as_dummy 23414 do 23415 IFS=$as_save_IFS 23416 case $as_dir in #((( 23417 '') as_dir=./ ;; 23418 */) ;; 23419 *) as_dir=$as_dir/ ;; 23420 esac 23421 for ac_exec_ext in '' $ac_executable_extensions; do 23422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23423 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23425 break 2 23426 fi 23427 done 23428 done 23429 IFS=$as_save_IFS 23430 23431 ;; 23432 esac 23433 fi 23434 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 23435 if test -n "$ac_pt_PKGCONFIG"; then 23436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 23437 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 23438 else 23439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23440 printf "%s\n" "no" >&6; } 23441 fi 23442 23443 if test "x$ac_pt_PKGCONFIG" = x; then 23444 PKGCONFIG="no" 23445 else 23446 case $cross_compiling:$ac_tool_warned in 23447 yes:) 23448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23450 ac_tool_warned=yes ;; 23451 esac 23452 PKGCONFIG=$ac_pt_PKGCONFIG 23453 fi 23454 else 23455 PKGCONFIG="$ac_cv_path_PKGCONFIG" 23456 fi 23457 23458 fi 23459 23460 if test "x$PKGCONFIG" != "xno"; then 23461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5 23462 printf %s "checking for zlib options with pkg-config... " >&6; } 23463 itexists=` 23464 if test -n ""; then 23465 PKG_CONFIG_LIBDIR="" 23466 export PKG_CONFIG_LIBDIR 23467 fi 23468 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1` 23469 23470 if test -z "$itexists"; then 23471 PKGCONFIG="no" 23472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23473 printf "%s\n" "no" >&6; } 23474 else 23475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 23476 printf "%s\n" "found" >&6; } 23477 fi 23478 fi 23479 23480 23481 if test "$PKGCONFIG" != "no"; then 23482 ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`" 23483 if test -n "$ZLIB_LIBS"; then 23484 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`" 23485 else 23486 ZLIB_LIBS="`$PKGCONFIG --libs zlib`" 23487 fi 23488 LIBS="$ZLIB_LIBS $LIBS" 23489 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`" 23490 OPT_ZLIB="" 23491 HAVE_LIBZ="1" 23492 fi 23493 23494 if test -z "$HAVE_LIBZ"; then 23495 23496 23497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 23498 printf %s "checking for inflateEnd in -lz... " >&6; } 23499 if test ${ac_cv_lib_z_inflateEnd+y} 23500 then : 23501 printf %s "(cached) " >&6 23502 else $as_nop 23503 ac_check_lib_save_LIBS=$LIBS 23504 LIBS="-lz $LIBS" 23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23506 /* end confdefs.h. */ 23507 23508 23509 #ifdef __cplusplus 23510 extern "C" 23511 #endif 23512 char inflateEnd (); 23513 int main(void) 23514 { 23515 return inflateEnd (); 23516 return 0; 23517 } 23518 _ACEOF 23519 if ac_fn_c_try_link "$LINENO" 23520 then : 23521 ac_cv_lib_z_inflateEnd=yes 23522 else $as_nop 23523 ac_cv_lib_z_inflateEnd=no 23524 fi 23525 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23526 conftest$ac_exeext conftest.$ac_ext 23527 LIBS=$ac_check_lib_save_LIBS 23528 fi 23529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 23530 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; } 23531 if test "x$ac_cv_lib_z_inflateEnd" = xyes 23532 then : 23533 23534 HAVE_LIBZ="1" 23535 ZLIB_LIBS="-lz" 23536 LIBS="$ZLIB_LIBS $LIBS" 23537 23538 else $as_nop 23539 23540 OPT_ZLIB="/usr/local" 23541 23542 23543 fi 23544 23545 fi 23546 fi 23547 23548 if test -n "$OPT_ZLIB"; then 23549 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" 23550 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" 23551 fi 23552 23553 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 23554 if test "x$ac_cv_header_zlib_h" = xyes 23555 then : 23556 23557 HAVE_ZLIB_H="1" 23558 if test "$HAVE_LIBZ" != "1"; then 23559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 23560 printf %s "checking for gzread in -lz... " >&6; } 23561 if test ${ac_cv_lib_z_gzread+y} 23562 then : 23563 printf %s "(cached) " >&6 23564 else $as_nop 23565 ac_check_lib_save_LIBS=$LIBS 23566 LIBS="-lz $LIBS" 23567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23568 /* end confdefs.h. */ 23569 23570 23571 #ifdef __cplusplus 23572 extern "C" 23573 #endif 23574 char gzread (); 23575 int main(void) 23576 { 23577 return gzread (); 23578 return 0; 23579 } 23580 _ACEOF 23581 if ac_fn_c_try_link "$LINENO" 23582 then : 23583 ac_cv_lib_z_gzread=yes 23584 else $as_nop 23585 ac_cv_lib_z_gzread=no 23586 fi 23587 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23588 conftest$ac_exeext conftest.$ac_ext 23589 LIBS=$ac_check_lib_save_LIBS 23590 fi 23591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 23592 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; } 23593 if test "x$ac_cv_lib_z_gzread" = xyes 23594 then : 23595 23596 HAVE_LIBZ="1" 23597 ZLIB_LIBS="-lz" 23598 LIBS="$ZLIB_LIBS $LIBS" 23599 23600 else $as_nop 23601 23602 CPPFLAGS=$clean_CPPFLAGS 23603 LDFLAGS=$clean_LDFLAGS 23604 23605 23606 fi 23607 23608 fi 23609 23610 else $as_nop 23611 23612 CPPFLAGS=$clean_CPPFLAGS 23613 LDFLAGS=$clean_LDFLAGS 23614 23615 fi 23616 23617 23618 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"; then 23619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 23620 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} 23621 HAVE_LIBZ="" 23622 CPPFLAGS=$clean_CPPFLAGS 23623 LDFLAGS=$clean_LDFLAGS 23624 LIBS=$clean_LIBS 23625 ZLIB_LIBS="" 23626 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"; then 23627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 23628 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} 23629 CPPFLAGS=$clean_CPPFLAGS 23630 LDFLAGS=$clean_LDFLAGS 23631 LIBS=$clean_LIBS 23632 ZLIB_LIBS="" 23633 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"; then 23634 23635 23636 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 23637 23638 LIBS="$ZLIB_LIBS $clean_LIBS" 23639 23640 AMFIXLIB="1" 23641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 23642 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;} 23643 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE zlib" 23644 curl_zlib_msg="enabled" 23645 fi 23646 fi 23647 23648 if test x"$AMFIXLIB" = x1; then 23649 HAVE_LIBZ_TRUE= 23650 HAVE_LIBZ_FALSE='#' 23651 else 23652 HAVE_LIBZ_TRUE='#' 23653 HAVE_LIBZ_FALSE= 23654 fi 23655 23656 23657 23658 23659 23660 OPT_BROTLI=off 23661 23662 # Check whether --with-brotli was given. 23663 if test ${with_brotli+y} 23664 then : 23665 withval=$with_brotli; OPT_BROTLI=$withval 23666 fi 23667 23668 23669 if test X"$OPT_BROTLI" != Xno; then 23670 CLEANLDFLAGS="$LDFLAGS" 23671 CLEANLDFLAGSPC="$LDFLAGSPC" 23672 CLEANCPPFLAGS="$CPPFLAGS" 23673 CLEANLIBS="$LIBS" 23674 23675 case "$OPT_BROTLI" in 23676 yes) 23677 23678 if test -n "$PKG_CONFIG"; then 23679 PKGCONFIG="$PKG_CONFIG" 23680 else 23681 if test -n "$ac_tool_prefix"; then 23682 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23683 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23685 printf %s "checking for $ac_word... " >&6; } 23686 if test ${ac_cv_path_PKGCONFIG+y} 23687 then : 23688 printf %s "(cached) " >&6 23689 else $as_nop 23690 case $PKGCONFIG in 23691 [\\/]* | ?:[\\/]*) 23692 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23693 ;; 23694 *) 23695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23696 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23697 for as_dir in $as_dummy 23698 do 23699 IFS=$as_save_IFS 23700 case $as_dir in #((( 23701 '') as_dir=./ ;; 23702 */) ;; 23703 *) as_dir=$as_dir/ ;; 23704 esac 23705 for ac_exec_ext in '' $ac_executable_extensions; do 23706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23707 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23709 break 2 23710 fi 23711 done 23712 done 23713 IFS=$as_save_IFS 23714 23715 ;; 23716 esac 23717 fi 23718 PKGCONFIG=$ac_cv_path_PKGCONFIG 23719 if test -n "$PKGCONFIG"; then 23720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23721 printf "%s\n" "$PKGCONFIG" >&6; } 23722 else 23723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23724 printf "%s\n" "no" >&6; } 23725 fi 23726 23727 23728 fi 23729 if test -z "$ac_cv_path_PKGCONFIG"; then 23730 ac_pt_PKGCONFIG=$PKGCONFIG 23731 # Extract the first word of "pkg-config", so it can be a program name with args. 23732 set dummy pkg-config; ac_word=$2 23733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23734 printf %s "checking for $ac_word... " >&6; } 23735 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 23736 then : 23737 printf %s "(cached) " >&6 23738 else $as_nop 23739 case $ac_pt_PKGCONFIG in 23740 [\\/]* | ?:[\\/]*) 23741 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 23742 ;; 23743 *) 23744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23745 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23746 for as_dir in $as_dummy 23747 do 23748 IFS=$as_save_IFS 23749 case $as_dir in #((( 23750 '') as_dir=./ ;; 23751 */) ;; 23752 *) as_dir=$as_dir/ ;; 23753 esac 23754 for ac_exec_ext in '' $ac_executable_extensions; do 23755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23756 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23758 break 2 23759 fi 23760 done 23761 done 23762 IFS=$as_save_IFS 23763 23764 ;; 23765 esac 23766 fi 23767 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 23768 if test -n "$ac_pt_PKGCONFIG"; then 23769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 23770 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 23771 else 23772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23773 printf "%s\n" "no" >&6; } 23774 fi 23775 23776 if test "x$ac_pt_PKGCONFIG" = x; then 23777 PKGCONFIG="no" 23778 else 23779 case $cross_compiling:$ac_tool_warned in 23780 yes:) 23781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23783 ac_tool_warned=yes ;; 23784 esac 23785 PKGCONFIG=$ac_pt_PKGCONFIG 23786 fi 23787 else 23788 PKGCONFIG="$ac_cv_path_PKGCONFIG" 23789 fi 23790 23791 fi 23792 23793 if test "x$PKGCONFIG" != "xno"; then 23794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5 23795 printf %s "checking for libbrotlidec options with pkg-config... " >&6; } 23796 itexists=` 23797 if test -n ""; then 23798 PKG_CONFIG_LIBDIR="" 23799 export PKG_CONFIG_LIBDIR 23800 fi 23801 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1` 23802 23803 if test -z "$itexists"; then 23804 PKGCONFIG="no" 23805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23806 printf "%s\n" "no" >&6; } 23807 else 23808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 23809 printf "%s\n" "found" >&6; } 23810 fi 23811 fi 23812 23813 23814 if test "$PKGCONFIG" != "no"; then 23815 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec` 23816 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec` 23817 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec` 23818 version=`$PKGCONFIG --modversion libbrotlidec` 23819 fi 23820 23821 23822 if test -n "$PKG_CONFIG"; then 23823 PKGCONFIG="$PKG_CONFIG" 23824 else 23825 if test -n "$ac_tool_prefix"; then 23826 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23827 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23829 printf %s "checking for $ac_word... " >&6; } 23830 if test ${ac_cv_path_PKGCONFIG+y} 23831 then : 23832 printf %s "(cached) " >&6 23833 else $as_nop 23834 case $PKGCONFIG in 23835 [\\/]* | ?:[\\/]*) 23836 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23837 ;; 23838 *) 23839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23840 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23841 for as_dir in $as_dummy 23842 do 23843 IFS=$as_save_IFS 23844 case $as_dir in #((( 23845 '') as_dir=./ ;; 23846 */) ;; 23847 *) as_dir=$as_dir/ ;; 23848 esac 23849 for ac_exec_ext in '' $ac_executable_extensions; do 23850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23851 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23853 break 2 23854 fi 23855 done 23856 done 23857 IFS=$as_save_IFS 23858 23859 ;; 23860 esac 23861 fi 23862 PKGCONFIG=$ac_cv_path_PKGCONFIG 23863 if test -n "$PKGCONFIG"; then 23864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23865 printf "%s\n" "$PKGCONFIG" >&6; } 23866 else 23867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23868 printf "%s\n" "no" >&6; } 23869 fi 23870 23871 23872 fi 23873 if test -z "$ac_cv_path_PKGCONFIG"; then 23874 ac_pt_PKGCONFIG=$PKGCONFIG 23875 # Extract the first word of "pkg-config", so it can be a program name with args. 23876 set dummy pkg-config; ac_word=$2 23877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23878 printf %s "checking for $ac_word... " >&6; } 23879 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 23880 then : 23881 printf %s "(cached) " >&6 23882 else $as_nop 23883 case $ac_pt_PKGCONFIG in 23884 [\\/]* | ?:[\\/]*) 23885 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 23886 ;; 23887 *) 23888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23889 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23890 for as_dir in $as_dummy 23891 do 23892 IFS=$as_save_IFS 23893 case $as_dir in #((( 23894 '') as_dir=./ ;; 23895 */) ;; 23896 *) as_dir=$as_dir/ ;; 23897 esac 23898 for ac_exec_ext in '' $ac_executable_extensions; do 23899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23900 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23902 break 2 23903 fi 23904 done 23905 done 23906 IFS=$as_save_IFS 23907 23908 ;; 23909 esac 23910 fi 23911 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 23912 if test -n "$ac_pt_PKGCONFIG"; then 23913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 23914 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 23915 else 23916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23917 printf "%s\n" "no" >&6; } 23918 fi 23919 23920 if test "x$ac_pt_PKGCONFIG" = x; then 23921 PKGCONFIG="no" 23922 else 23923 case $cross_compiling:$ac_tool_warned in 23924 yes:) 23925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23927 ac_tool_warned=yes ;; 23928 esac 23929 PKGCONFIG=$ac_pt_PKGCONFIG 23930 fi 23931 else 23932 PKGCONFIG="$ac_cv_path_PKGCONFIG" 23933 fi 23934 23935 fi 23936 23937 if test "x$PKGCONFIG" != "xno"; then 23938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlicommon options with pkg-config" >&5 23939 printf %s "checking for libbrotlicommon options with pkg-config... " >&6; } 23940 itexists=` 23941 if test -n ""; then 23942 PKG_CONFIG_LIBDIR="" 23943 export PKG_CONFIG_LIBDIR 23944 fi 23945 $PKGCONFIG --exists libbrotlicommon >/dev/null 2>&1 && echo 1` 23946 23947 if test -z "$itexists"; then 23948 PKGCONFIG="no" 23949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23950 printf "%s\n" "no" >&6; } 23951 else 23952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 23953 printf "%s\n" "found" >&6; } 23954 fi 23955 fi 23956 23957 23958 if test "$PKGCONFIG" != "no"; then 23959 LIB_BROTLI="$LIB_BROTLI `$PKGCONFIG --libs-only-l libbrotlicommon`" 23960 LD_BROTLI="$LD_BROTLI `$PKGCONFIG --libs-only-L libbrotlicommon`" 23961 CPP_BROTLI="$CPP_BROTLI `$PKGCONFIG --cflags-only-I libbrotlicommon`" 23962 fi 23963 23964 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'` 23965 ;; 23966 off) 23967 ;; 23968 *) 23969 PREFIX_BROTLI=$OPT_BROTLI 23970 ;; 23971 esac 23972 23973 if test -n "$PREFIX_BROTLI"; then 23974 LIB_BROTLI="-lbrotlidec -lbrotlicommon" 23975 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff 23976 CPP_BROTLI=-I${PREFIX_BROTLI}/include 23977 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff 23978 fi 23979 23980 LDFLAGS="$LDFLAGS $LD_BROTLI" 23981 LDFLAGSPC="$LDFLAGSPC $LD_BROTLI" 23982 CPPFLAGS="$CPPFLAGS $CPP_BROTLI" 23983 LIBS="$LIB_BROTLI $LIBS" 23984 23985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5 23986 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; } 23987 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y} 23988 then : 23989 printf %s "(cached) " >&6 23990 else $as_nop 23991 ac_check_lib_save_LIBS=$LIBS 23992 LIBS="-lbrotlidec $LIBS" 23993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23994 /* end confdefs.h. */ 23995 23996 23997 #ifdef __cplusplus 23998 extern "C" 23999 #endif 24000 char BrotliDecoderDecompress (); 24001 int main(void) 24002 { 24003 return BrotliDecoderDecompress (); 24004 return 0; 24005 } 24006 _ACEOF 24007 if ac_fn_c_try_link "$LINENO" 24008 then : 24009 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes 24010 else $as_nop 24011 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no 24012 fi 24013 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24014 conftest$ac_exeext conftest.$ac_ext 24015 LIBS=$ac_check_lib_save_LIBS 24016 fi 24017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5 24018 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; } 24019 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes 24020 then : 24021 printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h 24022 24023 LIBS="-lbrotlidec $LIBS" 24024 24025 fi 24026 24027 24028 for ac_header in brotli/decode.h 24029 do : 24030 ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default" 24031 if test "x$ac_cv_header_brotli_decode_h" = xyes 24032 then : 24033 printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h 24034 curl_brotli_msg="enabled (libbrotlidec)" 24035 HAVE_BROTLI=1 24036 24037 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h 24038 24039 24040 fi 24041 24042 done 24043 24044 if test X"$OPT_BROTLI" != Xoff && 24045 test "$HAVE_BROTLI" != "1"; then 24046 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5 24047 fi 24048 24049 if test "$HAVE_BROTLI" = "1"; then 24050 if test -n "$DIR_BROTLI"; then 24051 24052 if test "x$cross_compiling" != "xyes"; then 24053 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI" 24054 export CURL_LIBRARY_PATH 24055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5 24056 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;} 24057 fi 24058 fi 24059 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libbrotlidec libbrotlicommon" 24060 else 24061 LDFLAGS=$CLEANLDFLAGS 24062 LDFLAGSPC=$CLEANLDFLAGSPC 24063 CPPFLAGS=$CLEANCPPFLAGS 24064 LIBS=$CLEANLIBS 24065 fi 24066 fi 24067 24068 24069 OPT_ZSTD=off 24070 24071 # Check whether --with-zstd was given. 24072 if test ${with_zstd+y} 24073 then : 24074 withval=$with_zstd; OPT_ZSTD=$withval 24075 fi 24076 24077 24078 if test X"$OPT_ZSTD" != Xno; then 24079 CLEANLDFLAGS="$LDFLAGS" 24080 CLEANLDFLAGSPC="$LDFLAGSPC" 24081 CLEANCPPFLAGS="$CPPFLAGS" 24082 CLEANLIBS="$LIBS" 24083 24084 case "$OPT_ZSTD" in 24085 yes) 24086 24087 if test -n "$PKG_CONFIG"; then 24088 PKGCONFIG="$PKG_CONFIG" 24089 else 24090 if test -n "$ac_tool_prefix"; then 24091 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24092 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24094 printf %s "checking for $ac_word... " >&6; } 24095 if test ${ac_cv_path_PKGCONFIG+y} 24096 then : 24097 printf %s "(cached) " >&6 24098 else $as_nop 24099 case $PKGCONFIG in 24100 [\\/]* | ?:[\\/]*) 24101 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 24102 ;; 24103 *) 24104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24105 as_dummy="$PATH:/usr/bin:/usr/local/bin" 24106 for as_dir in $as_dummy 24107 do 24108 IFS=$as_save_IFS 24109 case $as_dir in #((( 24110 '') as_dir=./ ;; 24111 */) ;; 24112 *) as_dir=$as_dir/ ;; 24113 esac 24114 for ac_exec_ext in '' $ac_executable_extensions; do 24115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24116 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24118 break 2 24119 fi 24120 done 24121 done 24122 IFS=$as_save_IFS 24123 24124 ;; 24125 esac 24126 fi 24127 PKGCONFIG=$ac_cv_path_PKGCONFIG 24128 if test -n "$PKGCONFIG"; then 24129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 24130 printf "%s\n" "$PKGCONFIG" >&6; } 24131 else 24132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24133 printf "%s\n" "no" >&6; } 24134 fi 24135 24136 24137 fi 24138 if test -z "$ac_cv_path_PKGCONFIG"; then 24139 ac_pt_PKGCONFIG=$PKGCONFIG 24140 # Extract the first word of "pkg-config", so it can be a program name with args. 24141 set dummy pkg-config; ac_word=$2 24142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24143 printf %s "checking for $ac_word... " >&6; } 24144 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 24145 then : 24146 printf %s "(cached) " >&6 24147 else $as_nop 24148 case $ac_pt_PKGCONFIG in 24149 [\\/]* | ?:[\\/]*) 24150 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 24151 ;; 24152 *) 24153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24154 as_dummy="$PATH:/usr/bin:/usr/local/bin" 24155 for as_dir in $as_dummy 24156 do 24157 IFS=$as_save_IFS 24158 case $as_dir in #((( 24159 '') as_dir=./ ;; 24160 */) ;; 24161 *) as_dir=$as_dir/ ;; 24162 esac 24163 for ac_exec_ext in '' $ac_executable_extensions; do 24164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24165 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24167 break 2 24168 fi 24169 done 24170 done 24171 IFS=$as_save_IFS 24172 24173 ;; 24174 esac 24175 fi 24176 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 24177 if test -n "$ac_pt_PKGCONFIG"; then 24178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 24179 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 24180 else 24181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24182 printf "%s\n" "no" >&6; } 24183 fi 24184 24185 if test "x$ac_pt_PKGCONFIG" = x; then 24186 PKGCONFIG="no" 24187 else 24188 case $cross_compiling:$ac_tool_warned in 24189 yes:) 24190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24192 ac_tool_warned=yes ;; 24193 esac 24194 PKGCONFIG=$ac_pt_PKGCONFIG 24195 fi 24196 else 24197 PKGCONFIG="$ac_cv_path_PKGCONFIG" 24198 fi 24199 24200 fi 24201 24202 if test "x$PKGCONFIG" != "xno"; then 24203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5 24204 printf %s "checking for libzstd options with pkg-config... " >&6; } 24205 itexists=` 24206 if test -n ""; then 24207 PKG_CONFIG_LIBDIR="" 24208 export PKG_CONFIG_LIBDIR 24209 fi 24210 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1` 24211 24212 if test -z "$itexists"; then 24213 PKGCONFIG="no" 24214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24215 printf "%s\n" "no" >&6; } 24216 else 24217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 24218 printf "%s\n" "found" >&6; } 24219 fi 24220 fi 24221 24222 24223 if test "$PKGCONFIG" != "no"; then 24224 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd` 24225 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd` 24226 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd` 24227 version=`$PKGCONFIG --modversion libzstd` 24228 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'` 24229 fi 24230 24231 ;; 24232 off) 24233 ;; 24234 *) 24235 PREFIX_ZSTD=$OPT_ZSTD 24236 ;; 24237 esac 24238 24239 if test -n "$PREFIX_ZSTD"; then 24240 LIB_ZSTD="-lzstd" 24241 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff 24242 CPP_ZSTD=-I${PREFIX_ZSTD}/include 24243 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff 24244 fi 24245 24246 LDFLAGS="$LDFLAGS $LD_ZSTD" 24247 LDFLAGSPC="$LDFLAGSPC $LD_ZSTD" 24248 CPPFLAGS="$CPPFLAGS $CPP_ZSTD" 24249 LIBS="$LIB_ZSTD $LIBS" 24250 24251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5 24252 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; } 24253 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y} 24254 then : 24255 printf %s "(cached) " >&6 24256 else $as_nop 24257 ac_check_lib_save_LIBS=$LIBS 24258 LIBS="-lzstd $LIBS" 24259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24260 /* end confdefs.h. */ 24261 24262 24263 #ifdef __cplusplus 24264 extern "C" 24265 #endif 24266 char ZSTD_createDStream (); 24267 int main(void) 24268 { 24269 return ZSTD_createDStream (); 24270 return 0; 24271 } 24272 _ACEOF 24273 if ac_fn_c_try_link "$LINENO" 24274 then : 24275 ac_cv_lib_zstd_ZSTD_createDStream=yes 24276 else $as_nop 24277 ac_cv_lib_zstd_ZSTD_createDStream=no 24278 fi 24279 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24280 conftest$ac_exeext conftest.$ac_ext 24281 LIBS=$ac_check_lib_save_LIBS 24282 fi 24283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5 24284 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; } 24285 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes 24286 then : 24287 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 24288 24289 LIBS="-lzstd $LIBS" 24290 24291 fi 24292 24293 24294 for ac_header in zstd.h 24295 do : 24296 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 24297 if test "x$ac_cv_header_zstd_h" = xyes 24298 then : 24299 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h 24300 curl_zstd_msg="enabled (libzstd)" 24301 HAVE_ZSTD=1 24302 24303 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h 24304 24305 24306 fi 24307 24308 done 24309 24310 if test X"$OPT_ZSTD" != Xoff && 24311 test "$HAVE_ZSTD" != "1"; then 24312 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5 24313 fi 24314 24315 if test "$HAVE_ZSTD" = "1"; then 24316 if test -n "$DIR_ZSTD"; then 24317 24318 if test "x$cross_compiling" != "xyes"; then 24319 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD" 24320 export CURL_LIBRARY_PATH 24321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5 24322 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;} 24323 fi 24324 fi 24325 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libzstd" 24326 else 24327 LDFLAGS=$CLEANLDFLAGS 24328 LDFLAGSPC=$CLEANLDFLAGSPC 24329 CPPFLAGS=$CLEANCPPFLAGS 24330 LIBS=$CLEANLIBS 24331 fi 24332 fi 24333 24334 24335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 24336 printf %s "checking whether to enable IPv6... " >&6; } 24337 # Check whether --enable-ipv6 was given. 24338 if test ${enable_ipv6+y} 24339 then : 24340 enableval=$enable_ipv6; case "$enableval" in 24341 no) 24342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24343 printf "%s\n" "no" >&6; } 24344 ipv6=no 24345 ;; 24346 *) 24347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24348 printf "%s\n" "yes" >&6; } 24349 ipv6=yes 24350 ;; 24351 esac 24352 else $as_nop 24353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24354 /* end confdefs.h. */ 24355 24356 24357 /* are AF_INET6 and sockaddr_in6 available? */ 24358 #include <sys/types.h> 24359 #ifdef _WIN32 24360 #include <winsock2.h> 24361 #include <ws2tcpip.h> 24362 #else 24363 #include <sys/socket.h> 24364 #include <netinet/in.h> 24365 #ifdef __TANDEM 24366 #include <netinet/in6.h> 24367 #endif 24368 #endif 24369 int main(void) 24370 { 24371 int s = (int)sizeof(struct sockaddr_in6); 24372 (void)s; 24373 return socket(AF_INET6, SOCK_STREAM, 0) > 0; 24374 } 24375 24376 24377 _ACEOF 24378 if ac_fn_c_try_compile "$LINENO" 24379 then : 24380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24381 printf "%s\n" "yes" >&6; } 24382 ipv6=yes 24383 else $as_nop 24384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24385 printf "%s\n" "no" >&6; } 24386 ipv6=no 24387 24388 fi 24389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24390 24391 fi 24392 24393 24394 if test "$curl_cv_wince" = 'yes'; then 24395 ipv6=no 24396 fi 24397 24398 if test "$ipv6" = yes; then 24399 curl_ipv6_msg="enabled" 24400 24401 printf "%s\n" "#define USE_IPV6 1" >>confdefs.h 24402 24403 IPV6_ENABLED=1 24404 24405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 24406 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } 24407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24408 /* end confdefs.h. */ 24409 24410 24411 #include <sys/types.h> 24412 #ifdef _WIN32 24413 #include <winsock2.h> 24414 #include <ws2tcpip.h> 24415 #else 24416 #include <netinet/in.h> 24417 #ifdef __TANDEM 24418 #include <netinet/in6.h> 24419 #endif 24420 #endif 24421 24422 int main(void) 24423 { 24424 24425 struct sockaddr_in6 s; 24426 s.sin6_scope_id = 0; 24427 (void)s; 24428 24429 return 0; 24430 } 24431 24432 _ACEOF 24433 if ac_fn_c_try_compile "$LINENO" 24434 then : 24435 24436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24437 printf "%s\n" "yes" >&6; } 24438 24439 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 24440 24441 24442 else $as_nop 24443 24444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24445 printf "%s\n" "no" >&6; } 24446 24447 fi 24448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24449 fi 24450 24451 24452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 24453 printf %s "checking if argv can be written to... " >&6; } 24454 24455 if test "$curl_cv_apple" = 'yes'; then 24456 if test "$cross_compiling" = yes 24457 then : 24458 curl_cv_writable_argv=cross 24459 24460 else $as_nop 24461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24462 /* end confdefs.h. */ 24463 24464 int main(int argc, char **argv) 24465 { 24466 #ifdef _WIN32 24467 /* on Windows, writing to the argv does not hide the argument in 24468 process lists so it can just be skipped */ 24469 (void)argc; 24470 (void)argv; 24471 return 1; 24472 #else 24473 (void)argc; 24474 argv[0][0] = ' '; 24475 return (argv[0][0] == ' ')?0:1; 24476 #endif 24477 } 24478 24479 _ACEOF 24480 if ac_fn_c_try_run "$LINENO" 24481 then : 24482 curl_cv_writable_argv=yes 24483 24484 else $as_nop 24485 curl_cv_writable_argv=no 24486 24487 fi 24488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24489 conftest.$ac_objext conftest.beam conftest.$ac_ext 24490 fi 24491 24492 else 24493 oldcc=$CC 24494 old=$LD_LIBRARY_PATH 24495 CC="sh ./run-compiler" 24496 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 24497 export LD_LIBRARY_PATH 24498 if test "$cross_compiling" = yes 24499 then : 24500 curl_cv_writable_argv=cross 24501 24502 else $as_nop 24503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24504 /* end confdefs.h. */ 24505 24506 int main(int argc, char **argv) 24507 { 24508 #ifdef _WIN32 24509 /* on Windows, writing to the argv does not hide the argument in 24510 process lists so it can just be skipped */ 24511 (void)argc; 24512 (void)argv; 24513 return 1; 24514 #else 24515 (void)argc; 24516 argv[0][0] = ' '; 24517 return (argv[0][0] == ' ')?0:1; 24518 #endif 24519 } 24520 24521 _ACEOF 24522 if ac_fn_c_try_run "$LINENO" 24523 then : 24524 curl_cv_writable_argv=yes 24525 24526 else $as_nop 24527 curl_cv_writable_argv=no 24528 24529 fi 24530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24531 conftest.$ac_objext conftest.beam conftest.$ac_ext 24532 fi 24533 24534 LD_LIBRARY_PATH=$old # restore 24535 CC=$oldcc 24536 fi 24537 24538 if test "$curl_cv_writable_argv" = 'cross' -a "$curl_cv_apple" = 'yes'; then 24539 curl_cv_writable_argv=yes 24540 fi 24541 case $curl_cv_writable_argv in 24542 yes) 24543 24544 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h 24545 24546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24547 printf "%s\n" "yes" >&6; } 24548 ;; 24549 no) 24550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24551 printf "%s\n" "no" >&6; } 24552 ;; 24553 *) 24554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24555 printf "%s\n" "no" >&6; } 24556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 24557 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;} 24558 ;; 24559 esac 24560 24561 24562 24563 GSSAPI_ROOT="/usr" 24564 24565 # Check whether --with-gssapi-includes was given. 24566 if test ${with_gssapi_includes+y} 24567 then : 24568 withval=$with_gssapi_includes; 24569 GSSAPI_INCS="-I$withval" 24570 want_gss="yes" 24571 24572 24573 fi 24574 24575 24576 24577 # Check whether --with-gssapi-libs was given. 24578 if test ${with_gssapi_libs+y} 24579 then : 24580 withval=$with_gssapi_libs; 24581 GSSAPI_LIB_DIR="-L$withval" 24582 want_gss="yes" 24583 24584 24585 fi 24586 24587 24588 24589 # Check whether --with-gssapi was given. 24590 if test ${with_gssapi+y} 24591 then : 24592 withval=$with_gssapi; 24593 GSSAPI_ROOT="$withval" 24594 if test x"$GSSAPI_ROOT" != xno; then 24595 want_gss="yes" 24596 if test x"$GSSAPI_ROOT" = xyes; then 24597 GSSAPI_ROOT="/usr" 24598 fi 24599 fi 24600 24601 24602 fi 24603 24604 24605 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"} 24606 24607 save_CPPFLAGS="$CPPFLAGS" 24608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5 24609 printf %s "checking if GSS-API support is requested... " >&6; } 24610 if test x"$want_gss" = xyes; then 24611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24612 printf "%s\n" "yes" >&6; } 24613 24614 if test $GSSAPI_ROOT != "/usr"; then 24615 24616 if test -n "$PKG_CONFIG"; then 24617 PKGCONFIG="$PKG_CONFIG" 24618 else 24619 if test -n "$ac_tool_prefix"; then 24620 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24621 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24623 printf %s "checking for $ac_word... " >&6; } 24624 if test ${ac_cv_path_PKGCONFIG+y} 24625 then : 24626 printf %s "(cached) " >&6 24627 else $as_nop 24628 case $PKGCONFIG in 24629 [\\/]* | ?:[\\/]*) 24630 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 24631 ;; 24632 *) 24633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24634 as_dummy="$PATH:/usr/bin:/usr/local/bin" 24635 for as_dir in $as_dummy 24636 do 24637 IFS=$as_save_IFS 24638 case $as_dir in #((( 24639 '') as_dir=./ ;; 24640 */) ;; 24641 *) as_dir=$as_dir/ ;; 24642 esac 24643 for ac_exec_ext in '' $ac_executable_extensions; do 24644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24645 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24647 break 2 24648 fi 24649 done 24650 done 24651 IFS=$as_save_IFS 24652 24653 ;; 24654 esac 24655 fi 24656 PKGCONFIG=$ac_cv_path_PKGCONFIG 24657 if test -n "$PKGCONFIG"; then 24658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 24659 printf "%s\n" "$PKGCONFIG" >&6; } 24660 else 24661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24662 printf "%s\n" "no" >&6; } 24663 fi 24664 24665 24666 fi 24667 if test -z "$ac_cv_path_PKGCONFIG"; then 24668 ac_pt_PKGCONFIG=$PKGCONFIG 24669 # Extract the first word of "pkg-config", so it can be a program name with args. 24670 set dummy pkg-config; ac_word=$2 24671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24672 printf %s "checking for $ac_word... " >&6; } 24673 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 24674 then : 24675 printf %s "(cached) " >&6 24676 else $as_nop 24677 case $ac_pt_PKGCONFIG in 24678 [\\/]* | ?:[\\/]*) 24679 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 24680 ;; 24681 *) 24682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24683 as_dummy="$PATH:/usr/bin:/usr/local/bin" 24684 for as_dir in $as_dummy 24685 do 24686 IFS=$as_save_IFS 24687 case $as_dir in #((( 24688 '') as_dir=./ ;; 24689 */) ;; 24690 *) as_dir=$as_dir/ ;; 24691 esac 24692 for ac_exec_ext in '' $ac_executable_extensions; do 24693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24694 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24696 break 2 24697 fi 24698 done 24699 done 24700 IFS=$as_save_IFS 24701 24702 ;; 24703 esac 24704 fi 24705 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 24706 if test -n "$ac_pt_PKGCONFIG"; then 24707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 24708 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 24709 else 24710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24711 printf "%s\n" "no" >&6; } 24712 fi 24713 24714 if test "x$ac_pt_PKGCONFIG" = x; then 24715 PKGCONFIG="no" 24716 else 24717 case $cross_compiling:$ac_tool_warned in 24718 yes:) 24719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24721 ac_tool_warned=yes ;; 24722 esac 24723 PKGCONFIG=$ac_pt_PKGCONFIG 24724 fi 24725 else 24726 PKGCONFIG="$ac_cv_path_PKGCONFIG" 24727 fi 24728 24729 fi 24730 24731 if test "x$PKGCONFIG" != "xno"; then 24732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 24733 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 24734 itexists=` 24735 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then 24736 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig" 24737 export PKG_CONFIG_LIBDIR 24738 fi 24739 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 24740 24741 if test -z "$itexists"; then 24742 PKGCONFIG="no" 24743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24744 printf "%s\n" "no" >&6; } 24745 else 24746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 24747 printf "%s\n" "found" >&6; } 24748 fi 24749 fi 24750 24751 else 24752 24753 if test -n "$PKG_CONFIG"; then 24754 PKGCONFIG="$PKG_CONFIG" 24755 else 24756 if test -n "$ac_tool_prefix"; then 24757 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24758 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24760 printf %s "checking for $ac_word... " >&6; } 24761 if test ${ac_cv_path_PKGCONFIG+y} 24762 then : 24763 printf %s "(cached) " >&6 24764 else $as_nop 24765 case $PKGCONFIG in 24766 [\\/]* | ?:[\\/]*) 24767 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 24768 ;; 24769 *) 24770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24771 as_dummy="$PATH:/usr/bin:/usr/local/bin" 24772 for as_dir in $as_dummy 24773 do 24774 IFS=$as_save_IFS 24775 case $as_dir in #((( 24776 '') as_dir=./ ;; 24777 */) ;; 24778 *) as_dir=$as_dir/ ;; 24779 esac 24780 for ac_exec_ext in '' $ac_executable_extensions; do 24781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24782 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24784 break 2 24785 fi 24786 done 24787 done 24788 IFS=$as_save_IFS 24789 24790 ;; 24791 esac 24792 fi 24793 PKGCONFIG=$ac_cv_path_PKGCONFIG 24794 if test -n "$PKGCONFIG"; then 24795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 24796 printf "%s\n" "$PKGCONFIG" >&6; } 24797 else 24798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24799 printf "%s\n" "no" >&6; } 24800 fi 24801 24802 24803 fi 24804 if test -z "$ac_cv_path_PKGCONFIG"; then 24805 ac_pt_PKGCONFIG=$PKGCONFIG 24806 # Extract the first word of "pkg-config", so it can be a program name with args. 24807 set dummy pkg-config; ac_word=$2 24808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24809 printf %s "checking for $ac_word... " >&6; } 24810 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 24811 then : 24812 printf %s "(cached) " >&6 24813 else $as_nop 24814 case $ac_pt_PKGCONFIG in 24815 [\\/]* | ?:[\\/]*) 24816 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 24817 ;; 24818 *) 24819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24820 as_dummy="$PATH:/usr/bin:/usr/local/bin" 24821 for as_dir in $as_dummy 24822 do 24823 IFS=$as_save_IFS 24824 case $as_dir in #((( 24825 '') as_dir=./ ;; 24826 */) ;; 24827 *) as_dir=$as_dir/ ;; 24828 esac 24829 for ac_exec_ext in '' $ac_executable_extensions; do 24830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24831 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24833 break 2 24834 fi 24835 done 24836 done 24837 IFS=$as_save_IFS 24838 24839 ;; 24840 esac 24841 fi 24842 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 24843 if test -n "$ac_pt_PKGCONFIG"; then 24844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 24845 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 24846 else 24847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24848 printf "%s\n" "no" >&6; } 24849 fi 24850 24851 if test "x$ac_pt_PKGCONFIG" = x; then 24852 PKGCONFIG="no" 24853 else 24854 case $cross_compiling:$ac_tool_warned in 24855 yes:) 24856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24858 ac_tool_warned=yes ;; 24859 esac 24860 PKGCONFIG=$ac_pt_PKGCONFIG 24861 fi 24862 else 24863 PKGCONFIG="$ac_cv_path_PKGCONFIG" 24864 fi 24865 24866 fi 24867 24868 if test "x$PKGCONFIG" != "xno"; then 24869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 24870 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 24871 itexists=` 24872 if test -n ""; then 24873 PKG_CONFIG_LIBDIR="" 24874 export PKG_CONFIG_LIBDIR 24875 fi 24876 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 24877 24878 if test -z "$itexists"; then 24879 PKGCONFIG="no" 24880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24881 printf "%s\n" "no" >&6; } 24882 else 24883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 24884 printf "%s\n" "found" >&6; } 24885 fi 24886 fi 24887 24888 fi 24889 if test -z "$GSSAPI_INCS"; then 24890 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 24891 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` 24892 elif test "$PKGCONFIG" != "no"; then 24893 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi` 24894 elif test -f "$KRB5CONFIG"; then 24895 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi` 24896 elif test "$GSSAPI_ROOT" != "yes"; then 24897 GSSAPI_INCS="-I$GSSAPI_ROOT/include" 24898 fi 24899 fi 24900 24901 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" 24902 24903 ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" 24904 if test "x$ac_cv_header_gss_h" = xyes 24905 then : 24906 24907 24908 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h 24909 24910 gnu_gss=yes 24911 24912 else $as_nop 24913 24914 for ac_header in gssapi/gssapi.h 24915 do : 24916 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 24917 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes 24918 then : 24919 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h 24920 24921 else $as_nop 24922 not_mit=1 24923 fi 24924 24925 done 24926 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h 24927 do : 24928 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 24929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 24930 $ac_includes_default 24931 #ifdef HAVE_GSSAPI_GSSAPI_H 24932 #include <gssapi/gssapi.h> 24933 #endif 24934 24935 " 24936 if eval test \"x\$"$as_ac_Header"\" = x"yes" 24937 then : 24938 cat >>confdefs.h <<_ACEOF 24939 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 24940 _ACEOF 24941 24942 else $as_nop 24943 not_mit=1 24944 fi 24945 24946 done 24947 if test "x$not_mit" = "x1"; then 24948 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 24949 if test "x$ac_cv_header_gssapi_h" = xyes 24950 then : 24951 24952 else $as_nop 24953 24954 want_gss=no 24955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5 24956 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;} 24957 24958 24959 fi 24960 24961 else 24962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 24963 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 24964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24965 /* end confdefs.h. */ 24966 24967 24968 #include <gssapi/gssapi.h> 24969 #include <gssapi/gssapi_generic.h> 24970 #include <gssapi/gssapi_krb5.h> 24971 24972 int main(void) 24973 { 24974 24975 gss_import_name( 24976 (OM_uint32 *)0, 24977 (gss_buffer_t)0, 24978 GSS_C_NT_HOSTBASED_SERVICE, 24979 (gss_name_t *)0); 24980 24981 return 0; 24982 } 24983 24984 _ACEOF 24985 if ac_fn_c_try_compile "$LINENO" 24986 then : 24987 24988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24989 printf "%s\n" "yes" >&6; } 24990 24991 else $as_nop 24992 24993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24994 printf "%s\n" "no" >&6; } 24995 24996 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h 24997 24998 24999 fi 25000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25001 fi 25002 25003 25004 fi 25005 25006 else 25007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25008 printf "%s\n" "no" >&6; } 25009 fi 25010 if test x"$want_gss" = xyes; then 25011 25012 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 25013 25014 HAVE_GSSAPI=1 25015 curl_gss_msg="enabled (MIT Kerberos/Heimdal)" 25016 link_pkgconfig='' 25017 25018 if test -n "$gnu_gss"; then 25019 curl_gss_msg="enabled (GNU GSS)" 25020 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 25021 LDFLAGSPC="$LDFLAGSPC $GSSAPI_LIB_DIR" 25022 LIBS="-lgss $LIBS" 25023 link_pkgconfig=1 25024 elif test -z "$GSSAPI_LIB_DIR"; then 25025 if test "$curl_cv_apple" = 'yes'; then 25026 LIBS="-lgssapi_krb5 -lresolv $LIBS" 25027 else 25028 if test $GSSAPI_ROOT != "/usr"; then 25029 25030 if test -n "$PKG_CONFIG"; then 25031 PKGCONFIG="$PKG_CONFIG" 25032 else 25033 if test -n "$ac_tool_prefix"; then 25034 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25035 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25037 printf %s "checking for $ac_word... " >&6; } 25038 if test ${ac_cv_path_PKGCONFIG+y} 25039 then : 25040 printf %s "(cached) " >&6 25041 else $as_nop 25042 case $PKGCONFIG in 25043 [\\/]* | ?:[\\/]*) 25044 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25045 ;; 25046 *) 25047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25048 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25049 for as_dir in $as_dummy 25050 do 25051 IFS=$as_save_IFS 25052 case $as_dir in #((( 25053 '') as_dir=./ ;; 25054 */) ;; 25055 *) as_dir=$as_dir/ ;; 25056 esac 25057 for ac_exec_ext in '' $ac_executable_extensions; do 25058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25059 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25061 break 2 25062 fi 25063 done 25064 done 25065 IFS=$as_save_IFS 25066 25067 ;; 25068 esac 25069 fi 25070 PKGCONFIG=$ac_cv_path_PKGCONFIG 25071 if test -n "$PKGCONFIG"; then 25072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25073 printf "%s\n" "$PKGCONFIG" >&6; } 25074 else 25075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25076 printf "%s\n" "no" >&6; } 25077 fi 25078 25079 25080 fi 25081 if test -z "$ac_cv_path_PKGCONFIG"; then 25082 ac_pt_PKGCONFIG=$PKGCONFIG 25083 # Extract the first word of "pkg-config", so it can be a program name with args. 25084 set dummy pkg-config; ac_word=$2 25085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25086 printf %s "checking for $ac_word... " >&6; } 25087 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 25088 then : 25089 printf %s "(cached) " >&6 25090 else $as_nop 25091 case $ac_pt_PKGCONFIG in 25092 [\\/]* | ?:[\\/]*) 25093 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25094 ;; 25095 *) 25096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25097 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25098 for as_dir in $as_dummy 25099 do 25100 IFS=$as_save_IFS 25101 case $as_dir in #((( 25102 '') as_dir=./ ;; 25103 */) ;; 25104 *) as_dir=$as_dir/ ;; 25105 esac 25106 for ac_exec_ext in '' $ac_executable_extensions; do 25107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25108 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25110 break 2 25111 fi 25112 done 25113 done 25114 IFS=$as_save_IFS 25115 25116 ;; 25117 esac 25118 fi 25119 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25120 if test -n "$ac_pt_PKGCONFIG"; then 25121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25122 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 25123 else 25124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25125 printf "%s\n" "no" >&6; } 25126 fi 25127 25128 if test "x$ac_pt_PKGCONFIG" = x; then 25129 PKGCONFIG="no" 25130 else 25131 case $cross_compiling:$ac_tool_warned in 25132 yes:) 25133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25135 ac_tool_warned=yes ;; 25136 esac 25137 PKGCONFIG=$ac_pt_PKGCONFIG 25138 fi 25139 else 25140 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25141 fi 25142 25143 fi 25144 25145 if test "x$PKGCONFIG" != "xno"; then 25146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 25147 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 25148 itexists=` 25149 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then 25150 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig" 25151 export PKG_CONFIG_LIBDIR 25152 fi 25153 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 25154 25155 if test -z "$itexists"; then 25156 PKGCONFIG="no" 25157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25158 printf "%s\n" "no" >&6; } 25159 else 25160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 25161 printf "%s\n" "found" >&6; } 25162 fi 25163 fi 25164 25165 else 25166 25167 if test -n "$PKG_CONFIG"; then 25168 PKGCONFIG="$PKG_CONFIG" 25169 else 25170 if test -n "$ac_tool_prefix"; then 25171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25172 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25174 printf %s "checking for $ac_word... " >&6; } 25175 if test ${ac_cv_path_PKGCONFIG+y} 25176 then : 25177 printf %s "(cached) " >&6 25178 else $as_nop 25179 case $PKGCONFIG in 25180 [\\/]* | ?:[\\/]*) 25181 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25182 ;; 25183 *) 25184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25185 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25186 for as_dir in $as_dummy 25187 do 25188 IFS=$as_save_IFS 25189 case $as_dir in #((( 25190 '') as_dir=./ ;; 25191 */) ;; 25192 *) as_dir=$as_dir/ ;; 25193 esac 25194 for ac_exec_ext in '' $ac_executable_extensions; do 25195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25196 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25198 break 2 25199 fi 25200 done 25201 done 25202 IFS=$as_save_IFS 25203 25204 ;; 25205 esac 25206 fi 25207 PKGCONFIG=$ac_cv_path_PKGCONFIG 25208 if test -n "$PKGCONFIG"; then 25209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25210 printf "%s\n" "$PKGCONFIG" >&6; } 25211 else 25212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25213 printf "%s\n" "no" >&6; } 25214 fi 25215 25216 25217 fi 25218 if test -z "$ac_cv_path_PKGCONFIG"; then 25219 ac_pt_PKGCONFIG=$PKGCONFIG 25220 # Extract the first word of "pkg-config", so it can be a program name with args. 25221 set dummy pkg-config; ac_word=$2 25222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25223 printf %s "checking for $ac_word... " >&6; } 25224 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 25225 then : 25226 printf %s "(cached) " >&6 25227 else $as_nop 25228 case $ac_pt_PKGCONFIG in 25229 [\\/]* | ?:[\\/]*) 25230 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25231 ;; 25232 *) 25233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25234 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25235 for as_dir in $as_dummy 25236 do 25237 IFS=$as_save_IFS 25238 case $as_dir in #((( 25239 '') as_dir=./ ;; 25240 */) ;; 25241 *) as_dir=$as_dir/ ;; 25242 esac 25243 for ac_exec_ext in '' $ac_executable_extensions; do 25244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25245 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25247 break 2 25248 fi 25249 done 25250 done 25251 IFS=$as_save_IFS 25252 25253 ;; 25254 esac 25255 fi 25256 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25257 if test -n "$ac_pt_PKGCONFIG"; then 25258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25259 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 25260 else 25261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25262 printf "%s\n" "no" >&6; } 25263 fi 25264 25265 if test "x$ac_pt_PKGCONFIG" = x; then 25266 PKGCONFIG="no" 25267 else 25268 case $cross_compiling:$ac_tool_warned in 25269 yes:) 25270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25272 ac_tool_warned=yes ;; 25273 esac 25274 PKGCONFIG=$ac_pt_PKGCONFIG 25275 fi 25276 else 25277 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25278 fi 25279 25280 fi 25281 25282 if test "x$PKGCONFIG" != "xno"; then 25283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 25284 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 25285 itexists=` 25286 if test -n ""; then 25287 PKG_CONFIG_LIBDIR="" 25288 export PKG_CONFIG_LIBDIR 25289 fi 25290 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 25291 25292 if test -z "$itexists"; then 25293 PKGCONFIG="no" 25294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25295 printf "%s\n" "no" >&6; } 25296 else 25297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 25298 printf "%s\n" "found" >&6; } 25299 fi 25300 fi 25301 25302 fi 25303 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 25304 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` 25305 LIBS="$gss_libs $LIBS" 25306 elif test "$PKGCONFIG" != "no"; then 25307 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi` 25308 LIBS="$gss_libs $LIBS" 25309 link_pkgconfig=1 25310 elif test -f "$KRB5CONFIG"; then 25311 gss_libs=`$KRB5CONFIG --libs gssapi` 25312 LIBS="$gss_libs $LIBS" 25313 link_pkgconfig=1 25314 else 25315 case $host in 25316 *-hp-hpux*) 25317 gss_libname="gss" 25318 ;; 25319 *) 25320 gss_libname="gssapi" 25321 ;; 25322 esac 25323 25324 if test "$GSSAPI_ROOT" != "yes"; then 25325 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" 25326 LDFLAGSPC="$LDFLAGSPC -L$GSSAPI_ROOT/lib$libsuff" 25327 LIBS="-l$gss_libname $LIBS" 25328 else 25329 LIBS="-l$gss_libname $LIBS" 25330 fi 25331 fi 25332 fi 25333 else 25334 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 25335 LDFLAGSPC="$LDFLAGSPC $GSSAPI_LIB_DIR" 25336 case $host in 25337 *-hp-hpux*) 25338 LIBS="-lgss $LIBS" 25339 ;; 25340 *) 25341 LIBS="-lgssapi $LIBS" 25342 ;; 25343 esac 25344 fi 25345 if test -n "$link_pkgconfig"; then 25346 if test -n "$gnu_gss"; then 25347 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE gss" 25348 elif test "x$not_mit" = "x1"; then 25349 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE heimdal-gssapi" 25350 else 25351 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE mit-krb5-gssapi" 25352 fi 25353 fi 25354 else 25355 CPPFLAGS="$save_CPPFLAGS" 25356 fi 25357 25358 if test x"$want_gss" = xyes; then 25359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5 25360 printf %s "checking if we can link against GSS-API library... " >&6; } 25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25362 /* end confdefs.h. */ 25363 25364 25365 #define gss_init_sec_context innocuous_gss_init_sec_context 25366 #ifdef __STDC__ 25367 # include <limits.h> 25368 #else 25369 # include <assert.h> 25370 #endif 25371 #undef gss_init_sec_context 25372 #ifdef __cplusplus 25373 extern "C" 25374 #endif 25375 char gss_init_sec_context (); 25376 #if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context 25377 #error force compilation error 25378 #endif 25379 25380 int main(void) 25381 { 25382 return gss_init_sec_context (); 25383 return 0; 25384 } 25385 25386 _ACEOF 25387 if ac_fn_c_try_link "$LINENO" 25388 then : 25389 25390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25391 printf "%s\n" "yes" >&6; } 25392 25393 else $as_nop 25394 25395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25396 printf "%s\n" "no" >&6; } 25397 as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5 25398 25399 fi 25400 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25401 conftest$ac_exeext conftest.$ac_ext 25402 fi 25403 25404 build_libstubgss=no 25405 if test x"$want_gss" = "xyes"; then 25406 build_libstubgss=yes 25407 fi 25408 25409 if test "x$build_libstubgss" = "xyes"; then 25410 BUILD_STUB_GSS_TRUE= 25411 BUILD_STUB_GSS_FALSE='#' 25412 else 25413 BUILD_STUB_GSS_TRUE='#' 25414 BUILD_STUB_GSS_FALSE= 25415 fi 25416 25417 25418 25419 DEFAULT_SSL_BACKEND=no 25420 VALID_DEFAULT_SSL_BACKEND= 25421 25422 # Check whether --with-default-ssl-backend was given. 25423 if test ${with_default_ssl_backend+y} 25424 then : 25425 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval 25426 fi 25427 25428 case "$DEFAULT_SSL_BACKEND" in 25429 no) 25430 ;; 25431 default|yes) 25432 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5 25433 ;; 25434 *) 25435 VALID_DEFAULT_SSL_BACKEND=no 25436 ;; 25437 esac 25438 25439 25440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5 25441 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; } 25442 if test "x$OPT_SCHANNEL" != xno; then 25443 ssl_msg= 25444 if test "x$OPT_SCHANNEL" != "xno" && 25445 test "x$curl_cv_native_windows" = "xyes"; then 25446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25447 printf "%s\n" "yes" >&6; } 25448 25449 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h 25450 25451 ssl_msg="Schannel" 25452 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 25453 SCHANNEL_ENABLED=1 25454 # --with-schannel implies --enable-sspi 25455 25456 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h 25457 25458 USE_WINDOWS_SSPI=1 25459 curl_sspi_msg="enabled" 25460 else 25461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25462 printf "%s\n" "no" >&6; } 25463 fi 25464 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 25465 else 25466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25467 printf "%s\n" "no" >&6; } 25468 fi 25469 25470 25471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5 25472 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; } 25473 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then 25474 if test "x$OPT_AMISSL" != xno; then 25475 ssl_msg= 25476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25477 /* end confdefs.h. */ 25478 25479 25480 #include <libraries/amisslmaster.h> 25481 #include <openssl/opensslv.h> 25482 25483 int main(void) 25484 { 25485 25486 #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \ 25487 (OPENSSL_VERSION_NUMBER >= 0x30000000L) && \ 25488 defined(PROTO_AMISSL_H) 25489 return 0; 25490 #else 25491 #error not AmiSSL v5 / OpenSSL 3 25492 #endif 25493 25494 return 0; 25495 } 25496 25497 _ACEOF 25498 if ac_fn_c_try_compile "$LINENO" 25499 then : 25500 25501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25502 printf "%s\n" "yes" >&6; } 25503 ssl_msg="AmiSSL" 25504 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 25505 AMISSL_ENABLED=1 25506 OPENSSL_ENABLED=1 25507 # Use AmiSSL's built-in ca bundle 25508 check_for_ca_bundle=1 25509 with_ca_fallback=yes 25510 LIBS="-lamisslstubs -lamisslauto $LIBS" 25511 CURL_NETWORK_AND_TIME_LIBS="-lamisslstubs -lamisslauto $CURL_NETWORK_AND_TIME_LIBS" 25512 25513 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h 25514 25515 25516 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h 25517 25518 ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 25519 if test "x$ac_cv_header_openssl_x509_h" = xyes 25520 then : 25521 printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h 25522 25523 fi 25524 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default" 25525 if test "x$ac_cv_header_openssl_rsa_h" = xyes 25526 then : 25527 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h 25528 25529 fi 25530 ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" 25531 if test "x$ac_cv_header_openssl_crypto_h" = xyes 25532 then : 25533 printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h 25534 25535 fi 25536 ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default" 25537 if test "x$ac_cv_header_openssl_pem_h" = xyes 25538 then : 25539 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h 25540 25541 fi 25542 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 25543 if test "x$ac_cv_header_openssl_ssl_h" = xyes 25544 then : 25545 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 25546 25547 fi 25548 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default" 25549 if test "x$ac_cv_header_openssl_err_h" = xyes 25550 then : 25551 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 25552 25553 fi 25554 25555 25556 else $as_nop 25557 25558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25559 printf "%s\n" "no" >&6; } 25560 25561 fi 25562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25563 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 25564 else 25565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25566 printf "%s\n" "no" >&6; } 25567 fi 25568 else 25569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25570 printf "%s\n" "no" >&6; } 25571 fi 25572 25573 25574 25575 if test "x$OPT_OPENSSL" != xno; then 25576 ssl_msg= 25577 25578 CLEANLDFLAGS="$LDFLAGS" 25579 CLEANLDFLAGSPC="$LDFLAGSPC" 25580 CLEANCPPFLAGS="$CPPFLAGS" 25581 CLEANLIBS="$LIBS" 25582 25583 case $host in 25584 *-*-msys* | *-*-mingw*) 25585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 25586 printf %s "checking for gdi32... " >&6; } 25587 my_ac_save_LIBS=$LIBS 25588 LIBS="-lgdi32 $LIBS" 25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25590 /* end confdefs.h. */ 25591 25592 #ifndef WIN32_LEAN_AND_MEAN 25593 #define WIN32_LEAN_AND_MEAN 25594 #endif 25595 #include <windef.h> 25596 #include <wingdi.h> 25597 25598 int main(void) 25599 { 25600 25601 GdiFlush(); 25602 25603 return 0; 25604 } 25605 _ACEOF 25606 if ac_fn_c_try_link "$LINENO" 25607 then : 25608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25609 printf "%s\n" "yes" >&6; } 25610 else $as_nop 25611 LIBS=$my_ac_save_LIBS 25612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25613 printf "%s\n" "no" >&6; } 25614 25615 fi 25616 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25617 conftest$ac_exeext conftest.$ac_ext 25618 ;; 25619 esac 25620 25621 case "$OPT_OPENSSL" in 25622 yes) 25623 PKGTEST="yes" 25624 PREFIX_OPENSSL= 25625 ;; 25626 *) 25627 PKGTEST="no" 25628 PREFIX_OPENSSL=$OPT_OPENSSL 25629 25630 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig" 25631 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 25632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 25633 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 25634 PKGTEST="yes" 25635 fi 25636 25637 if test "$PKGTEST" != "yes"; then 25638 # try lib64 instead 25639 OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig" 25640 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 25641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 25642 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 25643 PKGTEST="yes" 25644 fi 25645 fi 25646 25647 if test "$PKGTEST" != "yes"; then 25648 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then 25649 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5 25650 fi 25651 fi 25652 25653 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 25654 if test "$PREFIX_OPENSSL" != "/usr" ; then 25655 SSL_LDFLAGS="-L$LIB_OPENSSL" 25656 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" 25657 fi 25658 ;; 25659 esac 25660 25661 if test "$PKGTEST" = "yes"; then 25662 25663 25664 if test -n "$PKG_CONFIG"; then 25665 PKGCONFIG="$PKG_CONFIG" 25666 else 25667 if test -n "$ac_tool_prefix"; then 25668 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25669 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25671 printf %s "checking for $ac_word... " >&6; } 25672 if test ${ac_cv_path_PKGCONFIG+y} 25673 then : 25674 printf %s "(cached) " >&6 25675 else $as_nop 25676 case $PKGCONFIG in 25677 [\\/]* | ?:[\\/]*) 25678 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25679 ;; 25680 *) 25681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25682 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25683 for as_dir in $as_dummy 25684 do 25685 IFS=$as_save_IFS 25686 case $as_dir in #((( 25687 '') as_dir=./ ;; 25688 */) ;; 25689 *) as_dir=$as_dir/ ;; 25690 esac 25691 for ac_exec_ext in '' $ac_executable_extensions; do 25692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25693 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25695 break 2 25696 fi 25697 done 25698 done 25699 IFS=$as_save_IFS 25700 25701 ;; 25702 esac 25703 fi 25704 PKGCONFIG=$ac_cv_path_PKGCONFIG 25705 if test -n "$PKGCONFIG"; then 25706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25707 printf "%s\n" "$PKGCONFIG" >&6; } 25708 else 25709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25710 printf "%s\n" "no" >&6; } 25711 fi 25712 25713 25714 fi 25715 if test -z "$ac_cv_path_PKGCONFIG"; then 25716 ac_pt_PKGCONFIG=$PKGCONFIG 25717 # Extract the first word of "pkg-config", so it can be a program name with args. 25718 set dummy pkg-config; ac_word=$2 25719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25720 printf %s "checking for $ac_word... " >&6; } 25721 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 25722 then : 25723 printf %s "(cached) " >&6 25724 else $as_nop 25725 case $ac_pt_PKGCONFIG in 25726 [\\/]* | ?:[\\/]*) 25727 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25728 ;; 25729 *) 25730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25731 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25732 for as_dir in $as_dummy 25733 do 25734 IFS=$as_save_IFS 25735 case $as_dir in #((( 25736 '') as_dir=./ ;; 25737 */) ;; 25738 *) as_dir=$as_dir/ ;; 25739 esac 25740 for ac_exec_ext in '' $ac_executable_extensions; do 25741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25742 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25744 break 2 25745 fi 25746 done 25747 done 25748 IFS=$as_save_IFS 25749 25750 ;; 25751 esac 25752 fi 25753 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25754 if test -n "$ac_pt_PKGCONFIG"; then 25755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25756 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 25757 else 25758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25759 printf "%s\n" "no" >&6; } 25760 fi 25761 25762 if test "x$ac_pt_PKGCONFIG" = x; then 25763 PKGCONFIG="no" 25764 else 25765 case $cross_compiling:$ac_tool_warned in 25766 yes:) 25767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25769 ac_tool_warned=yes ;; 25770 esac 25771 PKGCONFIG=$ac_pt_PKGCONFIG 25772 fi 25773 else 25774 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25775 fi 25776 25777 fi 25778 25779 if test "x$PKGCONFIG" != "xno"; then 25780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 25781 printf %s "checking for openssl options with pkg-config... " >&6; } 25782 itexists=` 25783 if test -n "$OPENSSL_PCDIR"; then 25784 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 25785 export PKG_CONFIG_LIBDIR 25786 fi 25787 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` 25788 25789 if test -z "$itexists"; then 25790 PKGCONFIG="no" 25791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25792 printf "%s\n" "no" >&6; } 25793 else 25794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 25795 printf "%s\n" "found" >&6; } 25796 fi 25797 fi 25798 25799 25800 if test "$PKGCONFIG" != "no" ; then 25801 SSL_LIBS=` 25802 if test -n "$OPENSSL_PCDIR"; then 25803 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 25804 export PKG_CONFIG_LIBDIR 25805 fi 25806 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null` 25807 25808 SSL_LDFLAGS=` 25809 if test -n "$OPENSSL_PCDIR"; then 25810 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 25811 export PKG_CONFIG_LIBDIR 25812 fi 25813 $PKGCONFIG --libs-only-L openssl 2>/dev/null` 25814 25815 SSL_CPPFLAGS=` 25816 if test -n "$OPENSSL_PCDIR"; then 25817 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 25818 export PKG_CONFIG_LIBDIR 25819 fi 25820 $PKGCONFIG --cflags-only-I openssl 2>/dev/null` 25821 25822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 25823 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 25824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 25825 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 25826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 25827 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 25828 25829 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'` 25830 25831 LIBS="$SSL_LIBS $LIBS" 25832 fi 25833 fi 25834 25835 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" 25836 LDFLAGS="$LDFLAGS $SSL_LDFLAGS" 25837 LDFLAGSPC="$LDFLAGSPC $SSL_LDFLAGS" 25838 25839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5 25840 printf %s "checking for HMAC_Update in -lcrypto... " >&6; } 25841 if test ${ac_cv_lib_crypto_HMAC_Update+y} 25842 then : 25843 printf %s "(cached) " >&6 25844 else $as_nop 25845 ac_check_lib_save_LIBS=$LIBS 25846 LIBS="-lcrypto $LIBS" 25847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25848 /* end confdefs.h. */ 25849 25850 25851 #ifdef __cplusplus 25852 extern "C" 25853 #endif 25854 char HMAC_Update (); 25855 int main(void) 25856 { 25857 return HMAC_Update (); 25858 return 0; 25859 } 25860 _ACEOF 25861 if ac_fn_c_try_link "$LINENO" 25862 then : 25863 ac_cv_lib_crypto_HMAC_Update=yes 25864 else $as_nop 25865 ac_cv_lib_crypto_HMAC_Update=no 25866 fi 25867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25868 conftest$ac_exeext conftest.$ac_ext 25869 LIBS=$ac_check_lib_save_LIBS 25870 fi 25871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5 25872 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; } 25873 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes 25874 then : 25875 25876 HAVECRYPTO="yes" 25877 LIBS="-lcrypto $LIBS" 25878 25879 else $as_nop 25880 25881 if test -n "$LIB_OPENSSL" ; then 25882 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" 25883 LDFLAGSPC="$CLEANLDFLAGSPC -L$LIB_OPENSSL" 25884 fi 25885 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then 25886 # only set this if pkg-config wasn't used 25887 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include" 25888 fi 25889 # Linking previously failed, try extra paths from --with-openssl or 25890 # pkg-config. Use a different function name to avoid reusing the earlier 25891 # cached result. 25892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5 25893 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; } 25894 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y} 25895 then : 25896 printf %s "(cached) " >&6 25897 else $as_nop 25898 ac_check_lib_save_LIBS=$LIBS 25899 LIBS="-lcrypto $LIBS" 25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25901 /* end confdefs.h. */ 25902 25903 25904 #ifdef __cplusplus 25905 extern "C" 25906 #endif 25907 char HMAC_Init_ex (); 25908 int main(void) 25909 { 25910 return HMAC_Init_ex (); 25911 return 0; 25912 } 25913 _ACEOF 25914 if ac_fn_c_try_link "$LINENO" 25915 then : 25916 ac_cv_lib_crypto_HMAC_Init_ex=yes 25917 else $as_nop 25918 ac_cv_lib_crypto_HMAC_Init_ex=no 25919 fi 25920 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25921 conftest$ac_exeext conftest.$ac_ext 25922 LIBS=$ac_check_lib_save_LIBS 25923 fi 25924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5 25925 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; } 25926 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes 25927 then : 25928 25929 HAVECRYPTO="yes" 25930 LIBS="-lcrypto $LIBS" 25931 else $as_nop 25932 25933 25934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5 25935 printf %s "checking OpenSSL linking with -ldl... " >&6; } 25936 LIBS="-lcrypto $CLEANLIBS -ldl" 25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25938 /* end confdefs.h. */ 25939 25940 #include <openssl/err.h> 25941 25942 int main(void) 25943 { 25944 25945 ERR_clear_error(); 25946 25947 return 0; 25948 } 25949 _ACEOF 25950 if ac_fn_c_try_link "$LINENO" 25951 then : 25952 25953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25954 printf "%s\n" "yes" >&6; } 25955 HAVECRYPTO="yes" 25956 25957 else $as_nop 25958 25959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25960 printf "%s\n" "no" >&6; } 25961 25962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5 25963 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; } 25964 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread" 25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25966 /* end confdefs.h. */ 25967 25968 25969 #include <openssl/err.h> 25970 25971 int main(void) 25972 { 25973 25974 ERR_clear_error(); 25975 25976 return 0; 25977 } 25978 _ACEOF 25979 if ac_fn_c_try_link "$LINENO" 25980 then : 25981 25982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25983 printf "%s\n" "yes" >&6; } 25984 HAVECRYPTO="yes" 25985 25986 else $as_nop 25987 25988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25989 printf "%s\n" "no" >&6; } 25990 LDFLAGS="$CLEANLDFLAGS" 25991 LDFLAGSPC="$CLEANLDFLAGSPC" 25992 CPPFLAGS="$CLEANCPPFLAGS" 25993 LIBS="$CLEANLIBS" 25994 25995 fi 25996 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25997 conftest$ac_exeext conftest.$ac_ext 25998 25999 fi 26000 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26001 conftest$ac_exeext conftest.$ac_ext 26002 26003 fi 26004 26005 26006 fi 26007 26008 26009 if test X"$HAVECRYPTO" = X"yes"; then 26010 26011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 26012 printf %s "checking for SSL_connect in -lssl... " >&6; } 26013 if test ${ac_cv_lib_ssl_SSL_connect+y} 26014 then : 26015 printf %s "(cached) " >&6 26016 else $as_nop 26017 ac_check_lib_save_LIBS=$LIBS 26018 LIBS="-lssl $LIBS" 26019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26020 /* end confdefs.h. */ 26021 26022 26023 #ifdef __cplusplus 26024 extern "C" 26025 #endif 26026 char SSL_connect (); 26027 int main(void) 26028 { 26029 return SSL_connect (); 26030 return 0; 26031 } 26032 _ACEOF 26033 if ac_fn_c_try_link "$LINENO" 26034 then : 26035 ac_cv_lib_ssl_SSL_connect=yes 26036 else $as_nop 26037 ac_cv_lib_ssl_SSL_connect=no 26038 fi 26039 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26040 conftest$ac_exeext conftest.$ac_ext 26041 LIBS=$ac_check_lib_save_LIBS 26042 fi 26043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 26044 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; } 26045 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes 26046 then : 26047 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h 26048 26049 LIBS="-lssl $LIBS" 26050 26051 fi 26052 26053 26054 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 26055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 26056 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; 26057 OLIBS=$LIBS 26058 LIBS="-lRSAglue -lrsaref $LIBS" 26059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 26060 printf %s "checking for SSL_connect in -lssl... " >&6; } 26061 if test ${ac_cv_lib_ssl_SSL_connect+y} 26062 then : 26063 printf %s "(cached) " >&6 26064 else $as_nop 26065 ac_check_lib_save_LIBS=$LIBS 26066 LIBS="-lssl $LIBS" 26067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26068 /* end confdefs.h. */ 26069 26070 26071 #ifdef __cplusplus 26072 extern "C" 26073 #endif 26074 char SSL_connect (); 26075 int main(void) 26076 { 26077 return SSL_connect (); 26078 return 0; 26079 } 26080 _ACEOF 26081 if ac_fn_c_try_link "$LINENO" 26082 then : 26083 ac_cv_lib_ssl_SSL_connect=yes 26084 else $as_nop 26085 ac_cv_lib_ssl_SSL_connect=no 26086 fi 26087 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26088 conftest$ac_exeext conftest.$ac_ext 26089 LIBS=$ac_check_lib_save_LIBS 26090 fi 26091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 26092 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; } 26093 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes 26094 then : 26095 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h 26096 26097 LIBS="-lssl $LIBS" 26098 26099 fi 26100 26101 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 26102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26103 printf "%s\n" "no" >&6; } 26104 LIBS=$OLIBS 26105 else 26106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26107 printf "%s\n" "yes" >&6; } 26108 fi 26109 26110 else 26111 26112 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h 26113 do : 26114 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 26115 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26116 if eval test \"x\$"$as_ac_Header"\" = x"yes" 26117 then : 26118 cat >>confdefs.h <<_ACEOF 26119 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 26120 _ACEOF 26121 ssl_msg="OpenSSL" 26122 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26123 OPENSSL_ENABLED=1 26124 26125 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h 26126 26127 fi 26128 26129 done 26130 fi 26131 26132 if test X"$OPENSSL_ENABLED" != X"1"; then 26133 LIBS="$CLEANLIBS" 26134 fi 26135 26136 if test X"$OPT_OPENSSL" != Xoff && 26137 test "$OPENSSL_ENABLED" != "1"; then 26138 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 26139 fi 26140 fi 26141 26142 if test X"$OPENSSL_ENABLED" = X"1"; then 26143 26144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5 26145 printf %s "checking for BoringSSL... " >&6; } 26146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26147 /* end confdefs.h. */ 26148 26149 26150 #include <openssl/base.h> 26151 26152 int main(void) 26153 { 26154 26155 #ifndef OPENSSL_IS_BORINGSSL 26156 #error not boringssl 26157 #endif 26158 26159 return 0; 26160 } 26161 26162 _ACEOF 26163 if ac_fn_c_try_compile "$LINENO" 26164 then : 26165 26166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26167 printf "%s\n" "yes" >&6; } 26168 ssl_msg="BoringSSL" 26169 OPENSSL_IS_BORINGSSL=1 26170 26171 else $as_nop 26172 26173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26174 printf "%s\n" "no" >&6; } 26175 26176 fi 26177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26178 26179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5 26180 printf %s "checking for AWS-LC... " >&6; } 26181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26182 /* end confdefs.h. */ 26183 26184 26185 #include <openssl/base.h> 26186 26187 int main(void) 26188 { 26189 26190 #ifndef OPENSSL_IS_AWSLC 26191 #error not AWS-LC 26192 #endif 26193 26194 return 0; 26195 } 26196 26197 _ACEOF 26198 if ac_fn_c_try_compile "$LINENO" 26199 then : 26200 26201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26202 printf "%s\n" "yes" >&6; } 26203 ssl_msg="AWS-LC" 26204 OPENSSL_IS_BORINGSSL=1 26205 26206 else $as_nop 26207 26208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26209 printf "%s\n" "no" >&6; } 26210 26211 fi 26212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26213 26214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 26215 printf %s "checking for LibreSSL... " >&6; } 26216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26217 /* end confdefs.h. */ 26218 26219 26220 #include <openssl/opensslv.h> 26221 26222 int main(void) 26223 { 26224 26225 int dummy = LIBRESSL_VERSION_NUMBER; 26226 (void)dummy; 26227 26228 return 0; 26229 } 26230 26231 _ACEOF 26232 if ac_fn_c_try_compile "$LINENO" 26233 then : 26234 26235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26236 printf "%s\n" "yes" >&6; } 26237 ssl_msg="LibreSSL" 26238 26239 else $as_nop 26240 26241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26242 printf "%s\n" "no" >&6; } 26243 26244 fi 26245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26246 26247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5 26248 printf %s "checking for OpenSSL >= v3... " >&6; } 26249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26250 /* end confdefs.h. */ 26251 26252 26253 #include <openssl/opensslv.h> 26254 26255 int main(void) 26256 { 26257 26258 #if (OPENSSL_VERSION_NUMBER >= 0x30000000L) 26259 return 0; 26260 #else 26261 #error older than 3 26262 #endif 26263 26264 return 0; 26265 } 26266 26267 _ACEOF 26268 if ac_fn_c_try_compile "$LINENO" 26269 then : 26270 26271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26272 printf "%s\n" "yes" >&6; } 26273 ssl_msg="OpenSSL v3+" 26274 26275 else $as_nop 26276 26277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26278 printf "%s\n" "no" >&6; } 26279 26280 fi 26281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26282 fi 26283 26284 26285 for ac_func in SSL_set_quic_use_legacy_codepoint 26286 do : 26287 ac_fn_c_check_func "$LINENO" "SSL_set_quic_use_legacy_codepoint" "ac_cv_func_SSL_set_quic_use_legacy_codepoint" 26288 if test "x$ac_cv_func_SSL_set_quic_use_legacy_codepoint" = xyes 26289 then : 26290 printf "%s\n" "#define HAVE_SSL_SET_QUIC_USE_LEGACY_CODEPOINT 1" >>confdefs.h 26291 QUIC_ENABLED=yes 26292 fi 26293 26294 done 26295 if test "$QUIC_ENABLED" = "yes"; then 26296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL fork speaks QUIC API" >&5 26297 printf "%s\n" "$as_me: OpenSSL fork speaks QUIC API" >&6;} 26298 else 26299 26300 for ac_func in SSL_set_quic_tls_cbs 26301 do : 26302 ac_fn_c_check_func "$LINENO" "SSL_set_quic_tls_cbs" "ac_cv_func_SSL_set_quic_tls_cbs" 26303 if test "x$ac_cv_func_SSL_set_quic_tls_cbs" = xyes 26304 then : 26305 printf "%s\n" "#define HAVE_SSL_SET_QUIC_TLS_CBS 1" >>confdefs.h 26306 QUIC_ENABLED=yes 26307 fi 26308 26309 done 26310 if test "$QUIC_ENABLED" = "yes"; then 26311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL with QUIC APIv2" >&5 26312 printf "%s\n" "$as_me: OpenSSL with QUIC APIv2" >&6;} 26313 OPENSSL_QUIC_API2=1 26314 else 26315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL version does not speak any known QUIC API" >&5 26316 printf "%s\n" "$as_me: OpenSSL version does not speak any known QUIC API" >&6;} 26317 fi 26318 fi 26319 26320 if test "$OPENSSL_ENABLED" = "1"; then 26321 if test -n "$LIB_OPENSSL"; then 26322 if test "x$cross_compiling" != "xyes"; then 26323 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL" 26324 export CURL_LIBRARY_PATH 26325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5 26326 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;} 26327 fi 26328 fi 26329 check_for_ca_bundle=1 26330 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE openssl" 26331 fi 26332 26333 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 26334 fi 26335 26336 if test X"$OPT_OPENSSL" != Xno && 26337 test "$OPENSSL_ENABLED" != "1"; then 26338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5 26339 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;} 26340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5 26341 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;} 26342 as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5 26343 fi 26344 26345 if test "$OPENSSL_ENABLED" = "1"; then 26346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5 26347 printf %s "checking for SRP support in OpenSSL... " >&6; } 26348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26349 /* end confdefs.h. */ 26350 26351 26352 #ifndef OPENSSL_SUPPRESS_DEPRECATED 26353 #define OPENSSL_SUPPRESS_DEPRECATED 26354 #endif 26355 #include <openssl/ssl.h> 26356 26357 int main(void) 26358 { 26359 26360 SSL_CTX_set_srp_username(NULL, NULL); 26361 SSL_CTX_set_srp_password(NULL, NULL); 26362 26363 return 0; 26364 } 26365 26366 _ACEOF 26367 if ac_fn_c_try_link "$LINENO" 26368 then : 26369 26370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26371 printf "%s\n" "yes" >&6; } 26372 26373 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h 26374 26375 HAVE_OPENSSL_SRP=1 26376 26377 else $as_nop 26378 26379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26380 printf "%s\n" "no" >&6; } 26381 26382 fi 26383 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26384 conftest$ac_exeext conftest.$ac_ext 26385 fi 26386 26387 if test X"$OPENSSL_ENABLED" = X"1"; then 26388 # Check whether --enable-openssl-auto-load-config was given. 26389 if test ${enable_openssl_auto_load_config+y} 26390 then : 26391 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then 26392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5 26393 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;} 26394 26395 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h 26396 26397 fi 26398 26399 fi 26400 26401 fi 26402 26403 if test "$OPENSSL_ENABLED" = "1"; then 26404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QUIC support and OpenSSL >= 3.3" >&5 26405 printf %s "checking for QUIC support and OpenSSL >= 3.3... " >&6; } 26406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26407 /* end confdefs.h. */ 26408 26409 26410 #include <openssl/ssl.h> 26411 26412 int main(void) 26413 { 26414 26415 #if (OPENSSL_VERSION_NUMBER < 0x30300000L) 26416 #error need at least version 3.3.0 26417 #endif 26418 OSSL_QUIC_client_method(); 26419 26420 return 0; 26421 } 26422 26423 _ACEOF 26424 if ac_fn_c_try_link "$LINENO" 26425 then : 26426 26427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26428 printf "%s\n" "yes" >&6; } 26429 have_openssl_quic=1 26430 26431 else $as_nop 26432 26433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26434 printf "%s\n" "no" >&6; } 26435 26436 fi 26437 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26438 conftest$ac_exeext conftest.$ac_ext 26439 fi 26440 26441 26442 if test "x$OPT_GNUTLS" != xno; then 26443 ssl_msg= 26444 26445 if test X"$OPT_GNUTLS" != Xno; then 26446 26447 addld="" 26448 addlib="" 26449 gtlslib="" 26450 version="" 26451 addcflags="" 26452 26453 if test "x$OPT_GNUTLS" = "xyes"; then 26454 26455 if test -n "$PKG_CONFIG"; then 26456 PKGCONFIG="$PKG_CONFIG" 26457 else 26458 if test -n "$ac_tool_prefix"; then 26459 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 26460 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 26461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26462 printf %s "checking for $ac_word... " >&6; } 26463 if test ${ac_cv_path_PKGCONFIG+y} 26464 then : 26465 printf %s "(cached) " >&6 26466 else $as_nop 26467 case $PKGCONFIG in 26468 [\\/]* | ?:[\\/]*) 26469 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 26470 ;; 26471 *) 26472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26473 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26474 for as_dir in $as_dummy 26475 do 26476 IFS=$as_save_IFS 26477 case $as_dir in #((( 26478 '') as_dir=./ ;; 26479 */) ;; 26480 *) as_dir=$as_dir/ ;; 26481 esac 26482 for ac_exec_ext in '' $ac_executable_extensions; do 26483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26484 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 26485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26486 break 2 26487 fi 26488 done 26489 done 26490 IFS=$as_save_IFS 26491 26492 ;; 26493 esac 26494 fi 26495 PKGCONFIG=$ac_cv_path_PKGCONFIG 26496 if test -n "$PKGCONFIG"; then 26497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 26498 printf "%s\n" "$PKGCONFIG" >&6; } 26499 else 26500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26501 printf "%s\n" "no" >&6; } 26502 fi 26503 26504 26505 fi 26506 if test -z "$ac_cv_path_PKGCONFIG"; then 26507 ac_pt_PKGCONFIG=$PKGCONFIG 26508 # Extract the first word of "pkg-config", so it can be a program name with args. 26509 set dummy pkg-config; ac_word=$2 26510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26511 printf %s "checking for $ac_word... " >&6; } 26512 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 26513 then : 26514 printf %s "(cached) " >&6 26515 else $as_nop 26516 case $ac_pt_PKGCONFIG in 26517 [\\/]* | ?:[\\/]*) 26518 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26519 ;; 26520 *) 26521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26522 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26523 for as_dir in $as_dummy 26524 do 26525 IFS=$as_save_IFS 26526 case $as_dir in #((( 26527 '') as_dir=./ ;; 26528 */) ;; 26529 *) as_dir=$as_dir/ ;; 26530 esac 26531 for ac_exec_ext in '' $ac_executable_extensions; do 26532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26533 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 26534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26535 break 2 26536 fi 26537 done 26538 done 26539 IFS=$as_save_IFS 26540 26541 ;; 26542 esac 26543 fi 26544 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26545 if test -n "$ac_pt_PKGCONFIG"; then 26546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26547 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 26548 else 26549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26550 printf "%s\n" "no" >&6; } 26551 fi 26552 26553 if test "x$ac_pt_PKGCONFIG" = x; then 26554 PKGCONFIG="no" 26555 else 26556 case $cross_compiling:$ac_tool_warned in 26557 yes:) 26558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26559 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26560 ac_tool_warned=yes ;; 26561 esac 26562 PKGCONFIG=$ac_pt_PKGCONFIG 26563 fi 26564 else 26565 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26566 fi 26567 26568 fi 26569 26570 if test "x$PKGCONFIG" != "xno"; then 26571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 26572 printf %s "checking for gnutls options with pkg-config... " >&6; } 26573 itexists=` 26574 if test -n ""; then 26575 PKG_CONFIG_LIBDIR="" 26576 export PKG_CONFIG_LIBDIR 26577 fi 26578 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` 26579 26580 if test -z "$itexists"; then 26581 PKGCONFIG="no" 26582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26583 printf "%s\n" "no" >&6; } 26584 else 26585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 26586 printf "%s\n" "found" >&6; } 26587 fi 26588 fi 26589 26590 26591 if test "$PKGCONFIG" != "no" ; then 26592 addlib=`$PKGCONFIG --libs-only-l gnutls` 26593 addld=`$PKGCONFIG --libs-only-L gnutls` 26594 addcflags=`$PKGCONFIG --cflags-only-I gnutls` 26595 version=`$PKGCONFIG --modversion gnutls` 26596 gtlslib=`echo $addld | $SED -e 's/^-L//'` 26597 else 26598 check=`libgnutls-config --version 2>/dev/null` 26599 if test -n "$check"; then 26600 addlib=`libgnutls-config --libs` 26601 addcflags=`libgnutls-config --cflags` 26602 version=`libgnutls-config --version` 26603 gtlslib=`libgnutls-config --prefix`/lib$libsuff 26604 fi 26605 fi 26606 else 26607 cfg=$OPT_GNUTLS/bin/libgnutls-config 26608 check=`$cfg --version 2>/dev/null` 26609 if test -n "$check"; then 26610 addlib=`$cfg --libs` 26611 addcflags=`$cfg --cflags` 26612 version=`$cfg --version` 26613 gtlslib=`$cfg --prefix`/lib$libsuff 26614 else 26615 addlib=-lgnutls 26616 addld=-L$OPT_GNUTLS/lib$libsuff 26617 addcflags=-I$OPT_GNUTLS/include 26618 version="" # we just don't know 26619 gtlslib=$OPT_GNUTLS/lib$libsuff 26620 fi 26621 fi 26622 26623 if test -z "$version"; then 26624 version="unknown" 26625 fi 26626 26627 if test -n "$addlib"; then 26628 26629 CLEANLIBS="$LIBS" 26630 CLEANCPPFLAGS="$CPPFLAGS" 26631 CLEANLDFLAGS="$LDFLAGS" 26632 CLEANLDFLAGSPC="$LDFLAGSPC" 26633 26634 LIBS="$addlib $LIBS" 26635 LDFLAGS="$LDFLAGS $addld" 26636 LDFLAGSPC="$LDFLAGSPC $addld" 26637 if test "$addcflags" != "-I/usr/include"; then 26638 CPPFLAGS="$CPPFLAGS $addcflags" 26639 fi 26640 26641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5 26642 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; } 26643 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y} 26644 then : 26645 printf %s "(cached) " >&6 26646 else $as_nop 26647 ac_check_lib_save_LIBS=$LIBS 26648 LIBS="-lgnutls $LIBS" 26649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26650 /* end confdefs.h. */ 26651 26652 26653 #ifdef __cplusplus 26654 extern "C" 26655 #endif 26656 char gnutls_x509_crt_get_dn2 (); 26657 int main(void) 26658 { 26659 return gnutls_x509_crt_get_dn2 (); 26660 return 0; 26661 } 26662 _ACEOF 26663 if ac_fn_c_try_link "$LINENO" 26664 then : 26665 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes 26666 else $as_nop 26667 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no 26668 fi 26669 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26670 conftest$ac_exeext conftest.$ac_ext 26671 LIBS=$ac_check_lib_save_LIBS 26672 fi 26673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5 26674 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; } 26675 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes 26676 then : 26677 26678 26679 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h 26680 26681 GNUTLS_ENABLED=1 26682 USE_GNUTLS="yes" 26683 ssl_msg="GnuTLS" 26684 QUIC_ENABLED=yes 26685 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26686 26687 else $as_nop 26688 26689 LIBS="$CLEANLIBS" 26690 CPPFLAGS="$CLEANCPPFLAGS" 26691 26692 fi 26693 26694 26695 if test "x$USE_GNUTLS" = "xyes"; then 26696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 26697 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;} 26698 check_for_ca_bundle=1 26699 if test -n "$gtlslib"; then 26700 if test "x$cross_compiling" != "xyes"; then 26701 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib" 26702 export CURL_LIBRARY_PATH 26703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5 26704 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;} 26705 fi 26706 fi 26707 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE gnutls nettle" 26708 fi 26709 26710 fi 26711 26712 fi 26713 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 26714 fi 26715 26716 26717 if test "$GNUTLS_ENABLED" = "1"; then 26718 USE_GNUTLS_NETTLE= 26719 # First check if we can detect either crypto library via transitive linking 26720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5 26721 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; } 26722 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y} 26723 then : 26724 printf %s "(cached) " >&6 26725 else $as_nop 26726 ac_check_lib_save_LIBS=$LIBS 26727 LIBS="-lgnutls $LIBS" 26728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26729 /* end confdefs.h. */ 26730 26731 26732 #ifdef __cplusplus 26733 extern "C" 26734 #endif 26735 char nettle_MD5Init (); 26736 int main(void) 26737 { 26738 return nettle_MD5Init (); 26739 return 0; 26740 } 26741 _ACEOF 26742 if ac_fn_c_try_link "$LINENO" 26743 then : 26744 ac_cv_lib_gnutls_nettle_MD5Init=yes 26745 else $as_nop 26746 ac_cv_lib_gnutls_nettle_MD5Init=no 26747 fi 26748 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26749 conftest$ac_exeext conftest.$ac_ext 26750 LIBS=$ac_check_lib_save_LIBS 26751 fi 26752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5 26753 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; } 26754 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes 26755 then : 26756 USE_GNUTLS_NETTLE=1 26757 fi 26758 26759 26760 # If not, try linking directly to both of them to see if they are available 26761 if test "$USE_GNUTLS_NETTLE" = ""; then 26762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5 26763 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; } 26764 if test ${ac_cv_lib_nettle_nettle_MD5Init+y} 26765 then : 26766 printf %s "(cached) " >&6 26767 else $as_nop 26768 ac_check_lib_save_LIBS=$LIBS 26769 LIBS="-lnettle $LIBS" 26770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26771 /* end confdefs.h. */ 26772 26773 26774 #ifdef __cplusplus 26775 extern "C" 26776 #endif 26777 char nettle_MD5Init (); 26778 int main(void) 26779 { 26780 return nettle_MD5Init (); 26781 return 0; 26782 } 26783 _ACEOF 26784 if ac_fn_c_try_link "$LINENO" 26785 then : 26786 ac_cv_lib_nettle_nettle_MD5Init=yes 26787 else $as_nop 26788 ac_cv_lib_nettle_nettle_MD5Init=no 26789 fi 26790 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26791 conftest$ac_exeext conftest.$ac_ext 26792 LIBS=$ac_check_lib_save_LIBS 26793 fi 26794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5 26795 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; } 26796 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes 26797 then : 26798 USE_GNUTLS_NETTLE=1 26799 fi 26800 26801 fi 26802 if test "$USE_GNUTLS_NETTLE" = ""; then 26803 as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5 26804 fi 26805 LIBS="-lnettle $LIBS" 26806 fi 26807 26808 if test "$GNUTLS_ENABLED" = "1"; then 26809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 26810 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; } 26811 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y} 26812 then : 26813 printf %s "(cached) " >&6 26814 else $as_nop 26815 ac_check_lib_save_LIBS=$LIBS 26816 LIBS="-lgnutls $LIBS" 26817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26818 /* end confdefs.h. */ 26819 26820 26821 #ifdef __cplusplus 26822 extern "C" 26823 #endif 26824 char gnutls_srp_verifier (); 26825 int main(void) 26826 { 26827 return gnutls_srp_verifier (); 26828 return 0; 26829 } 26830 _ACEOF 26831 if ac_fn_c_try_link "$LINENO" 26832 then : 26833 ac_cv_lib_gnutls_gnutls_srp_verifier=yes 26834 else $as_nop 26835 ac_cv_lib_gnutls_gnutls_srp_verifier=no 26836 fi 26837 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26838 conftest$ac_exeext conftest.$ac_ext 26839 LIBS=$ac_check_lib_save_LIBS 26840 fi 26841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 26842 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } 26843 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes 26844 then : 26845 26846 26847 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h 26848 26849 HAVE_GNUTLS_SRP=1 26850 26851 fi 26852 26853 fi 26854 26855 26856 26857 26858 if test "x$OPT_MBEDTLS" != xno; then 26859 _cppflags=$CPPFLAGS 26860 _ldflags=$LDFLAGS 26861 _ldflagspc=$LDFLAGSPC 26862 ssl_msg= 26863 26864 if test X"$OPT_MBEDTLS" != Xno; then 26865 26866 if test "$OPT_MBEDTLS" = "yes"; then 26867 OPT_MBEDTLS="" 26868 fi 26869 26870 if test -z "$OPT_MBEDTLS" ; then 26871 26872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5 26873 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; } 26874 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y} 26875 then : 26876 printf %s "(cached) " >&6 26877 else $as_nop 26878 ac_check_lib_save_LIBS=$LIBS 26879 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 26880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26881 /* end confdefs.h. */ 26882 26883 26884 #ifdef __cplusplus 26885 extern "C" 26886 #endif 26887 char mbedtls_havege_init (); 26888 int main(void) 26889 { 26890 return mbedtls_havege_init (); 26891 return 0; 26892 } 26893 _ACEOF 26894 if ac_fn_c_try_link "$LINENO" 26895 then : 26896 ac_cv_lib_mbedtls_mbedtls_havege_init=yes 26897 else $as_nop 26898 ac_cv_lib_mbedtls_mbedtls_havege_init=no 26899 fi 26900 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26901 conftest$ac_exeext conftest.$ac_ext 26902 LIBS=$ac_check_lib_save_LIBS 26903 fi 26904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5 26905 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; } 26906 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes 26907 then : 26908 26909 26910 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h 26911 26912 MBEDTLS_ENABLED=1 26913 USE_MBEDTLS="yes" 26914 ssl_msg="mbedTLS" 26915 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26916 26917 fi 26918 26919 fi 26920 26921 addld="" 26922 addlib="" 26923 addcflags="" 26924 mbedtlslib="" 26925 26926 if test "x$USE_MBEDTLS" != "xyes"; then 26927 addld=-L$OPT_MBEDTLS/lib$libsuff 26928 addcflags=-I$OPT_MBEDTLS/include 26929 mbedtlslib=$OPT_MBEDTLS/lib$libsuff 26930 26931 LDFLAGS="$LDFLAGS $addld" 26932 LDFLAGSPC="$LDFLAGSPC $addld" 26933 if test "$addcflags" != "-I/usr/include"; then 26934 CPPFLAGS="$CPPFLAGS $addcflags" 26935 fi 26936 26937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5 26938 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; } 26939 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y} 26940 then : 26941 printf %s "(cached) " >&6 26942 else $as_nop 26943 ac_check_lib_save_LIBS=$LIBS 26944 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 26945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26946 /* end confdefs.h. */ 26947 26948 26949 #ifdef __cplusplus 26950 extern "C" 26951 #endif 26952 char mbedtls_ssl_init (); 26953 int main(void) 26954 { 26955 return mbedtls_ssl_init (); 26956 return 0; 26957 } 26958 _ACEOF 26959 if ac_fn_c_try_link "$LINENO" 26960 then : 26961 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes 26962 else $as_nop 26963 ac_cv_lib_mbedtls_mbedtls_ssl_init=no 26964 fi 26965 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26966 conftest$ac_exeext conftest.$ac_ext 26967 LIBS=$ac_check_lib_save_LIBS 26968 fi 26969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5 26970 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; } 26971 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes 26972 then : 26973 26974 26975 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h 26976 26977 MBEDTLS_ENABLED=1 26978 USE_MBEDTLS="yes" 26979 ssl_msg="mbedTLS" 26980 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26981 26982 else $as_nop 26983 26984 CPPFLAGS=$_cppflags 26985 LDFLAGS=$_ldflags 26986 LDFLAGSPC=$_ldflagspc 26987 26988 fi 26989 26990 fi 26991 26992 if test "x$USE_MBEDTLS" = "xyes"; then 26993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5 26994 printf "%s\n" "$as_me: detected mbedTLS" >&6;} 26995 check_for_ca_bundle=1 26996 26997 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 26998 26999 if test -n "$mbedtlslib"; then 27000 if test "x$cross_compiling" != "xyes"; then 27001 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib" 27002 export CURL_LIBRARY_PATH 27003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5 27004 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;} 27005 fi 27006 fi 27007 if false; then 27008 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE mbedtls mbedx509 mbedcrypto" 27009 fi 27010 fi 27011 27012 fi 27013 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 27014 fi 27015 27016 27017 27018 27019 case "$OPT_WOLFSSL" in 27020 yes|no) 27021 wolfpkg="" 27022 ;; 27023 *) 27024 wolfpkg="$withval/lib/pkgconfig" 27025 ;; 27026 esac 27027 27028 if test "x$OPT_WOLFSSL" != xno; then 27029 _cppflags=$CPPFLAGS 27030 _ldflags=$LDFLAGS 27031 _ldflagspc=$LDFLAGSPC 27032 27033 ssl_msg= 27034 27035 if test X"$OPT_WOLFSSL" != Xno; then 27036 27037 if test "$OPT_WOLFSSL" = "yes"; then 27038 OPT_WOLFSSL="" 27039 fi 27040 27041 27042 if test -n "$PKG_CONFIG"; then 27043 PKGCONFIG="$PKG_CONFIG" 27044 else 27045 if test -n "$ac_tool_prefix"; then 27046 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27047 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27049 printf %s "checking for $ac_word... " >&6; } 27050 if test ${ac_cv_path_PKGCONFIG+y} 27051 then : 27052 printf %s "(cached) " >&6 27053 else $as_nop 27054 case $PKGCONFIG in 27055 [\\/]* | ?:[\\/]*) 27056 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27057 ;; 27058 *) 27059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27060 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27061 for as_dir in $as_dummy 27062 do 27063 IFS=$as_save_IFS 27064 case $as_dir in #((( 27065 '') as_dir=./ ;; 27066 */) ;; 27067 *) as_dir=$as_dir/ ;; 27068 esac 27069 for ac_exec_ext in '' $ac_executable_extensions; do 27070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27071 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27073 break 2 27074 fi 27075 done 27076 done 27077 IFS=$as_save_IFS 27078 27079 ;; 27080 esac 27081 fi 27082 PKGCONFIG=$ac_cv_path_PKGCONFIG 27083 if test -n "$PKGCONFIG"; then 27084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 27085 printf "%s\n" "$PKGCONFIG" >&6; } 27086 else 27087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27088 printf "%s\n" "no" >&6; } 27089 fi 27090 27091 27092 fi 27093 if test -z "$ac_cv_path_PKGCONFIG"; then 27094 ac_pt_PKGCONFIG=$PKGCONFIG 27095 # Extract the first word of "pkg-config", so it can be a program name with args. 27096 set dummy pkg-config; ac_word=$2 27097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27098 printf %s "checking for $ac_word... " >&6; } 27099 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 27100 then : 27101 printf %s "(cached) " >&6 27102 else $as_nop 27103 case $ac_pt_PKGCONFIG in 27104 [\\/]* | ?:[\\/]*) 27105 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 27106 ;; 27107 *) 27108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27109 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27110 for as_dir in $as_dummy 27111 do 27112 IFS=$as_save_IFS 27113 case $as_dir in #((( 27114 '') as_dir=./ ;; 27115 */) ;; 27116 *) as_dir=$as_dir/ ;; 27117 esac 27118 for ac_exec_ext in '' $ac_executable_extensions; do 27119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27120 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27122 break 2 27123 fi 27124 done 27125 done 27126 IFS=$as_save_IFS 27127 27128 ;; 27129 esac 27130 fi 27131 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 27132 if test -n "$ac_pt_PKGCONFIG"; then 27133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 27134 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 27135 else 27136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27137 printf "%s\n" "no" >&6; } 27138 fi 27139 27140 if test "x$ac_pt_PKGCONFIG" = x; then 27141 PKGCONFIG="no" 27142 else 27143 case $cross_compiling:$ac_tool_warned in 27144 yes:) 27145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27146 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27147 ac_tool_warned=yes ;; 27148 esac 27149 PKGCONFIG=$ac_pt_PKGCONFIG 27150 fi 27151 else 27152 PKGCONFIG="$ac_cv_path_PKGCONFIG" 27153 fi 27154 27155 fi 27156 27157 if test "x$PKGCONFIG" != "xno"; then 27158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5 27159 printf %s "checking for wolfssl options with pkg-config... " >&6; } 27160 itexists=` 27161 if test -n "$wolfpkg"; then 27162 PKG_CONFIG_LIBDIR="$wolfpkg" 27163 export PKG_CONFIG_LIBDIR 27164 fi 27165 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1` 27166 27167 if test -z "$itexists"; then 27168 PKGCONFIG="no" 27169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27170 printf "%s\n" "no" >&6; } 27171 else 27172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 27173 printf "%s\n" "found" >&6; } 27174 fi 27175 fi 27176 27177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5 27178 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;} 27179 27180 addld="" 27181 addlib="" 27182 addcflags="" 27183 if test "$PKGCONFIG" != "no" ; then 27184 addlib=` 27185 if test -n "$wolfpkg"; then 27186 PKG_CONFIG_LIBDIR="$wolfpkg" 27187 export PKG_CONFIG_LIBDIR 27188 fi 27189 27190 $PKGCONFIG --libs-only-l wolfssl` 27191 addld=` 27192 if test -n "$wolfpkg"; then 27193 PKG_CONFIG_LIBDIR="$wolfpkg" 27194 export PKG_CONFIG_LIBDIR 27195 fi 27196 27197 $PKGCONFIG --libs-only-L wolfssl` 27198 addcflags=` 27199 if test -n "$wolfpkg"; then 27200 PKG_CONFIG_LIBDIR="$wolfpkg" 27201 export PKG_CONFIG_LIBDIR 27202 fi 27203 27204 $PKGCONFIG --cflags-only-I wolfssl` 27205 version=` 27206 if test -n "$wolfpkg"; then 27207 PKG_CONFIG_LIBDIR="$wolfpkg" 27208 export PKG_CONFIG_LIBDIR 27209 fi 27210 27211 $PKGCONFIG --modversion wolfssl` 27212 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'` 27213 else 27214 addlib=-lwolfssl 27215 if test -n "$OPT_WOLFSSL"; then 27216 addld=-L$OPT_WOLFSSL/lib$libsuff 27217 addcflags=-I$OPT_WOLFSSL/include 27218 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff 27219 fi 27220 fi 27221 27222 if test "x$USE_WOLFSSL" != "xyes"; then 27223 27224 LDFLAGS="$LDFLAGS $addld" 27225 LDFLAGSPC="$LDFLAGSPC $addld" 27226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5 27227 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;} 27228 if test "$addcflags" != "-I/usr/include"; then 27229 CPPFLAGS="$CPPFLAGS $addcflags" 27230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5 27231 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;} 27232 fi 27233 27234 my_ac_save_LIBS="$LIBS" 27235 LIBS="$addlib $LIBS" 27236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5 27237 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;} 27238 27239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5 27240 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; } 27241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27242 /* end confdefs.h. */ 27243 27244 27245 /* These are not needed for detection and confuse wolfSSL. 27246 They are set up properly later if it is detected. */ 27247 #undef SIZEOF_LONG 27248 #undef SIZEOF_LONG_LONG 27249 #include <wolfssl/options.h> 27250 #include <wolfssl/ssl.h> 27251 27252 int main(void) 27253 { 27254 27255 return wolfSSL_Init(); 27256 27257 return 0; 27258 } 27259 27260 _ACEOF 27261 if ac_fn_c_try_link "$LINENO" 27262 then : 27263 27264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27265 printf "%s\n" "yes" >&6; } 27266 27267 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h 27268 27269 WOLFSSL_ENABLED=1 27270 USE_WOLFSSL="yes" 27271 ssl_msg="wolfSSL" 27272 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27273 27274 else $as_nop 27275 27276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27277 printf "%s\n" "no" >&6; } 27278 CPPFLAGS=$_cppflags 27279 LDFLAGS=$_ldflags 27280 LDFLAGSPC=$_ldflagspc 27281 wolfssllibpath="" 27282 27283 fi 27284 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27285 conftest$ac_exeext conftest.$ac_ext 27286 LIBS="$my_ac_save_LIBS" 27287 fi 27288 27289 if test "x$USE_WOLFSSL" = "xyes"; then 27290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5 27291 printf "%s\n" "$as_me: detected wolfSSL" >&6;} 27292 check_for_ca_bundle=1 27293 27294 27295 27296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 27297 printf %s "checking size of long long... " >&6; } 27298 r=0 27299 for typesize in 8 4 2 16 1; do 27300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27301 /* end confdefs.h. */ 27302 27303 27304 #include <sys/types.h> 27305 27306 27307 int main(void) 27308 { 27309 27310 switch(0) { 27311 case 0: 27312 case (sizeof(long long) == $typesize):; 27313 } 27314 27315 return 0; 27316 } 27317 27318 _ACEOF 27319 if ac_fn_c_try_compile "$LINENO" 27320 then : 27321 27322 r=$typesize 27323 27324 else $as_nop 27325 27326 r=0 27327 27328 fi 27329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27330 if test $r -gt 0; then 27331 break; 27332 fi 27333 done 27334 if test $r -eq 0; then 27335 as_fn_error $? "Failed to find size of long long" "$LINENO" 5 27336 fi 27337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 27338 printf "%s\n" "$r" >&6; } 27339 tname=`echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_"` 27340 eval "$tname=$r" 27341 27342 27343 printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h 27344 27345 27346 27347 27348 LIBS="$addlib -lm $LIBS" 27349 27350 27351 for ac_func in wolfSSL_set_quic_use_legacy_codepoint 27352 do : 27353 ac_fn_c_check_func "$LINENO" "wolfSSL_set_quic_use_legacy_codepoint" "ac_cv_func_wolfSSL_set_quic_use_legacy_codepoint" 27354 if test "x$ac_cv_func_wolfSSL_set_quic_use_legacy_codepoint" = xyes 27355 then : 27356 printf "%s\n" "#define HAVE_WOLFSSL_SET_QUIC_USE_LEGACY_CODEPOINT 1" >>confdefs.h 27357 QUIC_ENABLED=yes 27358 fi 27359 27360 done 27361 27362 ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate" 27363 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes 27364 then : 27365 printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h 27366 27367 fi 27368 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN" 27369 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes 27370 then : 27371 printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h 27372 27373 fi 27374 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt" 27375 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes 27376 then : 27377 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h 27378 27379 fi 27380 ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_new" "ac_cv_func_wolfSSL_BIO_new" 27381 if test "x$ac_cv_func_wolfSSL_BIO_new" = xyes 27382 then : 27383 printf "%s\n" "#define HAVE_WOLFSSL_BIO_NEW 1" >>confdefs.h 27384 27385 fi 27386 ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown" 27387 if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes 27388 then : 27389 printf "%s\n" "#define HAVE_WOLFSSL_BIO_SET_SHUTDOWN 1" >>confdefs.h 27390 27391 fi 27392 27393 27394 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = 'xyes'; then 27395 HAVE_WOLFSSL_DES_ECB_ENCRYPT=1 27396 fi 27397 27398 if test "x$ac_cv_func_wolfSSL_BIO_new" = 'xyes'; then 27399 HAVE_WOLFSSL_BIO_NEW=1 27400 fi 27401 27402 if test -n "$wolfssllibpath"; then 27403 if test "x$cross_compiling" != "xyes"; then 27404 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath" 27405 export CURL_LIBRARY_PATH 27406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5 27407 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;} 27408 fi 27409 fi 27410 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE wolfssl" 27411 else 27412 as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5 27413 fi 27414 27415 fi 27416 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 27417 fi 27418 27419 27420 27421 27422 if test "x$OPT_RUSTLS" != xno; then 27423 ssl_msg= 27424 27425 CLEANLDFLAGS="$LDFLAGS" 27426 CLEANLDFLAGSPC="$LDFLAGSPC" 27427 CLEANCPPFLAGS="$CPPFLAGS" 27428 27429 ## NEW CODE 27430 27431 27432 case "$OPT_RUSTLS" in 27433 yes) 27434 PKGTEST="yes" 27435 PREFIX_RUSTLS= 27436 ;; 27437 *) 27438 PKGTEST="no" 27439 PREFIX_RUSTLS=$OPT_RUSTLS 27440 27441 27442 RUSTLS_PCDIR="$PREFIX_RUSTLS/lib/pkgconfig" 27443 if test -f "$RUSTLS_PCDIR/rustls.pc"; then 27444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&5 27445 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&6;} 27446 PKGTEST="yes" 27447 fi 27448 27449 if test "$PKGTEST" != "yes"; then 27450 # try lib64 instead 27451 RUSTLS_PCDIR="$PREFIX_RUSTLS/lib64/pkgconfig" 27452 if test -f "$RUSTLS_PCDIR/rustls.pc"; then 27453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&5 27454 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&6;} 27455 PKGTEST="yes" 27456 fi 27457 fi 27458 27459 if test "$PKGTEST" != "yes"; then 27460 27461 addld=-L$PREFIX_RUSTLS/lib$libsuff 27462 addcflags=-I$PREFIX_RUSTLS/include 27463 27464 LDFLAGS="$LDFLAGS $addld" 27465 LDFLAGSPC="$LDFLAGSPC $addld" 27466 if test "$addcflags" != "-I/usr/include"; then 27467 CPPFLAGS="$CPPFLAGS $addcflags" 27468 fi 27469 27470 if test "$curl_cv_apple" = 'yes'; then 27471 RUSTLS_LDFLAGS="-framework Security -framework Foundation" 27472 else 27473 RUSTLS_LDFLAGS="-lpthread -ldl -lm" 27474 fi 27475 27476 LIB_RUSTLS="$PREFIX_RUSTLS/lib$libsuff" 27477 if test "$PREFIX_RUSTLS" != "/usr" ; then 27478 SSL_LDFLAGS="-L$LIB_RUSTLS $RUSTLS_LDFLAGS" 27479 SSL_CPPFLAGS="-I$PREFIX_RUSTLS/include" 27480 fi 27481 27482 27483 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h 27484 27485 USE_RUSTLS="yes" 27486 fi 27487 ;; 27488 esac 27489 27490 link_pkgconfig='' 27491 27492 if test "$PKGTEST" = "yes"; then 27493 27494 27495 if test -n "$PKG_CONFIG"; then 27496 PKGCONFIG="$PKG_CONFIG" 27497 else 27498 if test -n "$ac_tool_prefix"; then 27499 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27500 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27502 printf %s "checking for $ac_word... " >&6; } 27503 if test ${ac_cv_path_PKGCONFIG+y} 27504 then : 27505 printf %s "(cached) " >&6 27506 else $as_nop 27507 case $PKGCONFIG in 27508 [\\/]* | ?:[\\/]*) 27509 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27510 ;; 27511 *) 27512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27513 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27514 for as_dir in $as_dummy 27515 do 27516 IFS=$as_save_IFS 27517 case $as_dir in #((( 27518 '') as_dir=./ ;; 27519 */) ;; 27520 *) as_dir=$as_dir/ ;; 27521 esac 27522 for ac_exec_ext in '' $ac_executable_extensions; do 27523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27524 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27526 break 2 27527 fi 27528 done 27529 done 27530 IFS=$as_save_IFS 27531 27532 ;; 27533 esac 27534 fi 27535 PKGCONFIG=$ac_cv_path_PKGCONFIG 27536 if test -n "$PKGCONFIG"; then 27537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 27538 printf "%s\n" "$PKGCONFIG" >&6; } 27539 else 27540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27541 printf "%s\n" "no" >&6; } 27542 fi 27543 27544 27545 fi 27546 if test -z "$ac_cv_path_PKGCONFIG"; then 27547 ac_pt_PKGCONFIG=$PKGCONFIG 27548 # Extract the first word of "pkg-config", so it can be a program name with args. 27549 set dummy pkg-config; ac_word=$2 27550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27551 printf %s "checking for $ac_word... " >&6; } 27552 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 27553 then : 27554 printf %s "(cached) " >&6 27555 else $as_nop 27556 case $ac_pt_PKGCONFIG in 27557 [\\/]* | ?:[\\/]*) 27558 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 27559 ;; 27560 *) 27561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27562 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27563 for as_dir in $as_dummy 27564 do 27565 IFS=$as_save_IFS 27566 case $as_dir in #((( 27567 '') as_dir=./ ;; 27568 */) ;; 27569 *) as_dir=$as_dir/ ;; 27570 esac 27571 for ac_exec_ext in '' $ac_executable_extensions; do 27572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27573 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27575 break 2 27576 fi 27577 done 27578 done 27579 IFS=$as_save_IFS 27580 27581 ;; 27582 esac 27583 fi 27584 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 27585 if test -n "$ac_pt_PKGCONFIG"; then 27586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 27587 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 27588 else 27589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27590 printf "%s\n" "no" >&6; } 27591 fi 27592 27593 if test "x$ac_pt_PKGCONFIG" = x; then 27594 PKGCONFIG="no" 27595 else 27596 case $cross_compiling:$ac_tool_warned in 27597 yes:) 27598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27599 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27600 ac_tool_warned=yes ;; 27601 esac 27602 PKGCONFIG=$ac_pt_PKGCONFIG 27603 fi 27604 else 27605 PKGCONFIG="$ac_cv_path_PKGCONFIG" 27606 fi 27607 27608 fi 27609 27610 if test "x$PKGCONFIG" != "xno"; then 27611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls options with pkg-config" >&5 27612 printf %s "checking for rustls options with pkg-config... " >&6; } 27613 itexists=` 27614 if test -n "$RUSTLS_PCDIR"; then 27615 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 27616 export PKG_CONFIG_LIBDIR 27617 fi 27618 $PKGCONFIG --exists rustls >/dev/null 2>&1 && echo 1` 27619 27620 if test -z "$itexists"; then 27621 PKGCONFIG="no" 27622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27623 printf "%s\n" "no" >&6; } 27624 else 27625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 27626 printf "%s\n" "found" >&6; } 27627 fi 27628 fi 27629 27630 27631 if test "$PKGCONFIG" != "no" ; then 27632 SSL_LIBS=` 27633 if test -n "$RUSTLS_PCDIR"; then 27634 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 27635 export PKG_CONFIG_LIBDIR 27636 fi 27637 $PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null` 27638 27639 SSL_LDFLAGS=` 27640 if test -n "$RUSTLS_PCDIR"; then 27641 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 27642 export PKG_CONFIG_LIBDIR 27643 fi 27644 $PKGCONFIG --libs-only-L rustls 2>/dev/null` 27645 27646 SSL_CPPFLAGS=` 27647 if test -n "$RUSTLS_PCDIR"; then 27648 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 27649 export PKG_CONFIG_LIBDIR 27650 fi 27651 $PKGCONFIG --cflags-only-I rustls 2>/dev/null` 27652 27653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 27654 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 27655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 27656 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 27657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 27658 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 27659 27660 LIB_RUSTLS=`echo $SSL_LDFLAGS | sed -e 's/^-L//'` 27661 27662 LIBS="$SSL_LIBS $LIBS" 27663 link_pkgconfig=1 27664 ssl_msg="rustls" 27665 27666 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h 27667 27668 USE_RUSTLS="yes" 27669 RUSTLS_ENABLED=1 27670 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27671 else 27672 as_fn_error $? "pkg-config: Could not find Rustls" "$LINENO" 5 27673 fi 27674 27675 else 27676 LIBS="-lrustls -lpthread -ldl -lm $LIBS" 27677 fi 27678 27679 CPPFLAGS="$CLEANCPPFLAGS $SSL_CPPFLAGS" 27680 LDFLAGS="$CLEANLDFLAGS $SSL_LDFLAGS" 27681 LDFLAGSPC="$CLEANLDFLAGSPC $SSL_LDFLAGS" 27682 27683 if test "x$USE_RUSTLS" = "xyes"; then 27684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected Rustls" >&5 27685 printf "%s\n" "$as_me: detected Rustls" >&6;} 27686 check_for_ca_bundle=1 27687 27688 if test -n "$LIB_RUSTLS"; then 27689 if test "x$cross_compiling" != "xyes"; then 27690 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_RUSTLS" 27691 export CURL_LIBRARY_PATH 27692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_RUSTLS to CURL_LIBRARY_PATH" >&5 27693 printf "%s\n" "$as_me: Added $LIB_RUSTLS to CURL_LIBRARY_PATH" >&6;} 27694 fi 27695 fi 27696 if test -n "$link_pkgconfig"; then 27697 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE rustls" 27698 fi 27699 27700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_supported_hpke in -lrustls" >&5 27701 printf %s "checking for rustls_supported_hpke in -lrustls... " >&6; } 27702 if test ${ac_cv_lib_rustls_rustls_supported_hpke+y} 27703 then : 27704 printf %s "(cached) " >&6 27705 else $as_nop 27706 ac_check_lib_save_LIBS=$LIBS 27707 LIBS="-lrustls $RUSTLS_LDFLAGS $LIBS" 27708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27709 /* end confdefs.h. */ 27710 27711 27712 #ifdef __cplusplus 27713 extern "C" 27714 #endif 27715 char rustls_supported_hpke (); 27716 int main(void) 27717 { 27718 return rustls_supported_hpke (); 27719 return 0; 27720 } 27721 _ACEOF 27722 if ac_fn_c_try_link "$LINENO" 27723 then : 27724 ac_cv_lib_rustls_rustls_supported_hpke=yes 27725 else $as_nop 27726 ac_cv_lib_rustls_rustls_supported_hpke=no 27727 fi 27728 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27729 conftest$ac_exeext conftest.$ac_ext 27730 LIBS=$ac_check_lib_save_LIBS 27731 fi 27732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_supported_hpke" >&5 27733 printf "%s\n" "$ac_cv_lib_rustls_rustls_supported_hpke" >&6; } 27734 if test "x$ac_cv_lib_rustls_rustls_supported_hpke" = xyes 27735 then : 27736 27737 27738 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h 27739 27740 RUSTLS_ENABLED=1 27741 USE_RUSTLS="yes" 27742 ssl_msg="rustls" 27743 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27744 27745 else $as_nop 27746 as_fn_error $? "--with-rustls was specified but could not find compatible Rustls." "$LINENO" 5 27747 fi 27748 27749 fi 27750 27751 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 27752 27753 if test X"$OPT_RUSTLS" != Xno && 27754 test "$RUSTLS_ENABLED" != "1"; then 27755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_RUSTLS: $OPT_RUSTLS" >&5 27756 printf "%s\n" "$as_me: OPT_RUSTLS: $OPT_RUSTLS" >&6;} 27757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: RUSTLS_ENABLED: $RUSTLS_ENABLED" >&5 27758 printf "%s\n" "$as_me: RUSTLS_ENABLED: $RUSTLS_ENABLED" >&6;} 27759 as_fn_error $? "--with-rustls was given but Rustls could not be detected" "$LINENO" 5 27760 fi 27761 fi 27762 27763 27764 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$SCHANNEL_ENABLED" = "x1"; then 27765 LIBS="-lcrypt32 $LIBS" 27766 if test "$curl_cv_wince" = 'no'; then 27767 LIBS="-ladvapi32 $LIBS" 27768 fi 27769 fi 27770 27771 if test "x$curl_cv_native_windows" = "xyes" -a "$curl_cv_wince" = 'no'; then 27772 LIBS="-lbcrypt $LIBS" 27773 fi 27774 27775 case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$RUSTLS_ENABLED" in 27776 x) 27777 as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more. 27778 Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-amissl or --with-rustls to address this." "$LINENO" 5 27779 ;; 27780 x1) 27781 # one SSL backend is enabled 27782 SSL_ENABLED="1" 27783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5 27784 printf "%s\n" "$as_me: built with one SSL backend" >&6;} 27785 ;; 27786 xD) 27787 # explicitly built without TLS 27788 ;; 27789 xD*) 27790 as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library 27791 (e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-amissl, --with-rustls). 27792 Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5 27793 ;; 27794 *) 27795 # more than one SSL backend is enabled 27796 SSL_ENABLED="1" 27797 CURL_WITH_MULTI_SSL="1" 27798 27799 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h 27800 27801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5 27802 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;} 27803 ;; 27804 esac 27805 27806 if test -n "$ssl_backends"; then 27807 curl_ssl_msg="enabled ($ssl_backends)" 27808 fi 27809 27810 if test no = "$VALID_DEFAULT_SSL_BACKEND"; then 27811 if test -n "$SSL_ENABLED"; then 27812 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5 27813 else 27814 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5 27815 fi 27816 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"; then 27817 27818 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h 27819 27820 fi 27821 27822 27823 if test -n "$check_for_ca_bundle"; then 27824 27825 27826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5 27827 printf %s "checking default CA cert bundle/path... " >&6; } 27828 27829 27830 # Check whether --with-ca-bundle was given. 27831 if test ${with_ca_bundle+y} 27832 then : 27833 withval=$with_ca_bundle; 27834 want_ca="$withval" 27835 if test "x$want_ca" = "xyes"; then 27836 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5 27837 fi 27838 27839 else $as_nop 27840 want_ca="unset" 27841 fi 27842 27843 27844 # Check whether --with-ca-path was given. 27845 if test ${with_ca_path+y} 27846 then : 27847 withval=$with_ca_path; 27848 want_capath="$withval" 27849 if test "x$want_capath" = "xyes"; then 27850 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5 27851 fi 27852 27853 else $as_nop 27854 want_capath="unset" 27855 fi 27856 27857 27858 ca_warning=" (warning: certs not found)" 27859 capath_warning=" (warning: certs not found)" 27860 check_capath="" 27861 27862 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ 27863 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 27864 ca="$want_ca" 27865 capath="$want_capath" 27866 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then 27867 ca="$want_ca" 27868 capath="no" 27869 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 27870 capath="$want_capath" 27871 ca="no" 27872 else 27873 ca="no" 27874 capath="no" 27875 if test "x$cross_compiling" != "xyes" -a \ 27876 "x$curl_cv_native_windows" != "xyes"; then 27877 if test "x$want_ca" = "xunset"; then 27878 if test "x$prefix" != xNONE; then 27879 cac="${prefix}/share/curl/curl-ca-bundle.crt" 27880 else 27881 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt" 27882 fi 27883 27884 for a in /etc/ssl/certs/ca-certificates.crt \ 27885 /etc/pki/tls/certs/ca-bundle.crt \ 27886 /usr/share/ssl/certs/ca-bundle.crt \ 27887 /usr/local/share/certs/ca-root-nss.crt \ 27888 /etc/ssl/cert.pem \ 27889 "$cac"; do 27890 if test -f "$a"; then 27891 ca="$a" 27892 break 27893 fi 27894 done 27895 fi 27896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5 27897 printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;} 27898 if test "x$want_capath" = "xunset"; then 27899 check_capath="/etc/ssl/certs" 27900 fi 27901 else 27902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5 27903 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;} 27904 fi 27905 fi 27906 27907 if test "x$ca" = "xno" || test -f "$ca"; then 27908 ca_warning="" 27909 fi 27910 27911 if test "x$capath" != "xno"; then 27912 check_capath="$capath" 27913 fi 27914 27915 if test ! -z "$check_capath"; then 27916 for a in "$check_capath"; do 27917 if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then 27918 if test "x$capath" = "xno"; then 27919 capath="$a" 27920 fi 27921 capath_warning="" 27922 break 27923 fi 27924 done 27925 fi 27926 27927 if test "x$capath" = "xno"; then 27928 capath_warning="" 27929 fi 27930 27931 if test "x$ca" != "xno"; then 27932 CURL_CA_BUNDLE="$ca" 27933 27934 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h 27935 27936 27937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5 27938 printf "%s\n" "$ca" >&6; } 27939 fi 27940 if test "x$capath" != "xno"; then 27941 CURL_CA_PATH="\"$capath\"" 27942 27943 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h 27944 27945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5 27946 printf "%s\n" "$capath (capath)" >&6; } 27947 fi 27948 if test "x$ca" = "xno" && test "x$capath" = "xno"; then 27949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27950 printf "%s\n" "no" >&6; } 27951 fi 27952 27953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use built-in CA store of SSL library" >&5 27954 printf %s "checking whether to use built-in CA store of SSL library... " >&6; } 27955 27956 # Check whether --with-ca-fallback was given. 27957 if test ${with_ca_fallback+y} 27958 then : 27959 withval=$with_ca_fallback; 27960 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then 27961 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5 27962 fi 27963 27964 else $as_nop 27965 with_ca_fallback="no" 27966 fi 27967 27968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5 27969 printf "%s\n" "$with_ca_fallback" >&6; } 27970 if test "x$with_ca_fallback" = "xyes"; then 27971 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then 27972 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5 27973 fi 27974 27975 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h 27976 27977 fi 27978 27979 27980 27981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CA cert bundle path to embed in the curl tool" >&5 27982 printf %s "checking CA cert bundle path to embed in the curl tool... " >&6; } 27983 27984 27985 # Check whether --with-ca-embed was given. 27986 if test ${with_ca_embed+y} 27987 then : 27988 withval=$with_ca_embed; 27989 want_ca_embed="$withval" 27990 if test "x$want_ca_embed" = "xyes"; then 27991 as_fn_error $? "--with-ca-embed=FILE requires a path to the CA bundle" "$LINENO" 5 27992 fi 27993 27994 else $as_nop 27995 want_ca_embed="unset" 27996 fi 27997 27998 27999 CURL_CA_EMBED='' 28000 if test "x$want_ca_embed" != "xno" -a "x$want_ca_embed" != "xunset" -a -f "$want_ca_embed"; then 28001 CURL_CA_EMBED="$want_ca_embed" 28002 28003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ca_embed" >&5 28004 printf "%s\n" "$want_ca_embed" >&6; } 28005 else 28006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28007 printf "%s\n" "no" >&6; } 28008 fi 28009 28010 fi 28011 28012 if test "x$CURL_CA_EMBED" != "x"; then 28013 CURL_CA_EMBED_SET_TRUE= 28014 CURL_CA_EMBED_SET_FALSE='#' 28015 else 28016 CURL_CA_EMBED_SET_TRUE='#' 28017 CURL_CA_EMBED_SET_FALSE= 28018 fi 28019 28020 28021 28022 if test "$curl_cv_native_windows" = "yes"; then 28023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable unsafe CA bundle search in PATH on Windows" >&5 28024 printf %s "checking whether to enable unsafe CA bundle search in PATH on Windows... " >&6; } 28025 # Check whether --enable-ca-search was given. 28026 if test ${enable_ca_search+y} 28027 then : 28028 enableval=$enable_ca_search; case "$enableval" in 28029 no) 28030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28031 printf "%s\n" "no" >&6; } 28032 28033 printf "%s\n" "#define CURL_DISABLE_CA_SEARCH 1" >>confdefs.h 28034 28035 ;; 28036 *) 28037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28038 printf "%s\n" "yes" >&6; } 28039 ;; 28040 esac 28041 else $as_nop 28042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28043 printf "%s\n" "yes" >&6; } 28044 28045 fi 28046 28047 fi 28048 28049 28050 if test "$curl_cv_native_windows" = "yes"; then 28051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable safe CA bundle search (within the curl tool directory) on Windows" >&5 28052 printf %s "checking whether to enable safe CA bundle search (within the curl tool directory) on Windows... " >&6; } 28053 # Check whether --enable-ca-search-safe was given. 28054 if test ${enable_ca_search_safe+y} 28055 then : 28056 enableval=$enable_ca_search_safe; case "$enableval" in 28057 yes) 28058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28059 printf "%s\n" "yes" >&6; } 28060 28061 printf "%s\n" "#define CURL_CA_SEARCH_SAFE 1" >>confdefs.h 28062 28063 ;; 28064 *) 28065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28066 printf "%s\n" "no" >&6; } 28067 ;; 28068 esac 28069 else $as_nop 28070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28071 printf "%s\n" "no" >&6; } 28072 28073 fi 28074 28075 fi 28076 28077 28078 OPT_LIBPSL=off 28079 28080 # Check whether --with-libpsl was given. 28081 if test ${with_libpsl+y} 28082 then : 28083 withval=$with_libpsl; OPT_LIBPSL=$withval 28084 fi 28085 28086 28087 if test X"$OPT_LIBPSL" != Xno; then 28088 CLEANLDFLAGS="$LDFLAGS" 28089 CLEANLDFLAGSPC="$LDFLAGSPC" 28090 CLEANCPPFLAGS="$CPPFLAGS" 28091 CLEANLIBS="$LIBS" 28092 28093 case "$OPT_LIBPSL" in 28094 yes|off) 28095 28096 if test -n "$PKG_CONFIG"; then 28097 PKGCONFIG="$PKG_CONFIG" 28098 else 28099 if test -n "$ac_tool_prefix"; then 28100 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 28101 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 28102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28103 printf %s "checking for $ac_word... " >&6; } 28104 if test ${ac_cv_path_PKGCONFIG+y} 28105 then : 28106 printf %s "(cached) " >&6 28107 else $as_nop 28108 case $PKGCONFIG in 28109 [\\/]* | ?:[\\/]*) 28110 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 28111 ;; 28112 *) 28113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28114 as_dummy="$PATH:/usr/bin:/usr/local/bin" 28115 for as_dir in $as_dummy 28116 do 28117 IFS=$as_save_IFS 28118 case $as_dir in #((( 28119 '') as_dir=./ ;; 28120 */) ;; 28121 *) as_dir=$as_dir/ ;; 28122 esac 28123 for ac_exec_ext in '' $ac_executable_extensions; do 28124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28125 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28127 break 2 28128 fi 28129 done 28130 done 28131 IFS=$as_save_IFS 28132 28133 ;; 28134 esac 28135 fi 28136 PKGCONFIG=$ac_cv_path_PKGCONFIG 28137 if test -n "$PKGCONFIG"; then 28138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 28139 printf "%s\n" "$PKGCONFIG" >&6; } 28140 else 28141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28142 printf "%s\n" "no" >&6; } 28143 fi 28144 28145 28146 fi 28147 if test -z "$ac_cv_path_PKGCONFIG"; then 28148 ac_pt_PKGCONFIG=$PKGCONFIG 28149 # Extract the first word of "pkg-config", so it can be a program name with args. 28150 set dummy pkg-config; ac_word=$2 28151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28152 printf %s "checking for $ac_word... " >&6; } 28153 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 28154 then : 28155 printf %s "(cached) " >&6 28156 else $as_nop 28157 case $ac_pt_PKGCONFIG in 28158 [\\/]* | ?:[\\/]*) 28159 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 28160 ;; 28161 *) 28162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28163 as_dummy="$PATH:/usr/bin:/usr/local/bin" 28164 for as_dir in $as_dummy 28165 do 28166 IFS=$as_save_IFS 28167 case $as_dir in #((( 28168 '') as_dir=./ ;; 28169 */) ;; 28170 *) as_dir=$as_dir/ ;; 28171 esac 28172 for ac_exec_ext in '' $ac_executable_extensions; do 28173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28174 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28176 break 2 28177 fi 28178 done 28179 done 28180 IFS=$as_save_IFS 28181 28182 ;; 28183 esac 28184 fi 28185 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 28186 if test -n "$ac_pt_PKGCONFIG"; then 28187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 28188 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 28189 else 28190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28191 printf "%s\n" "no" >&6; } 28192 fi 28193 28194 if test "x$ac_pt_PKGCONFIG" = x; then 28195 PKGCONFIG="no" 28196 else 28197 case $cross_compiling:$ac_tool_warned in 28198 yes:) 28199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28201 ac_tool_warned=yes ;; 28202 esac 28203 PKGCONFIG=$ac_pt_PKGCONFIG 28204 fi 28205 else 28206 PKGCONFIG="$ac_cv_path_PKGCONFIG" 28207 fi 28208 28209 fi 28210 28211 if test "x$PKGCONFIG" != "xno"; then 28212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpsl options with pkg-config" >&5 28213 printf %s "checking for libpsl options with pkg-config... " >&6; } 28214 itexists=` 28215 if test -n ""; then 28216 PKG_CONFIG_LIBDIR="" 28217 export PKG_CONFIG_LIBDIR 28218 fi 28219 $PKGCONFIG --exists libpsl >/dev/null 2>&1 && echo 1` 28220 28221 if test -z "$itexists"; then 28222 PKGCONFIG="no" 28223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28224 printf "%s\n" "no" >&6; } 28225 else 28226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28227 printf "%s\n" "found" >&6; } 28228 fi 28229 fi 28230 28231 28232 if test "$PKGCONFIG" != "no"; then 28233 LIB_PSL=`$PKGCONFIG --libs-only-l libpsl` 28234 LD_PSL=`$PKGCONFIG --libs-only-L libpsl` 28235 CPP_PSL=`$PKGCONFIG --cflags-only-I libpsl` 28236 else 28237 LIB_PSL="-lpsl" 28238 fi 28239 28240 ;; 28241 *) 28242 LIB_PSL="-lpsl" 28243 PREFIX_PSL=$OPT_LIBPSL 28244 ;; 28245 esac 28246 28247 if test -n "$PREFIX_PSL"; then 28248 LD_PSL=-L${PREFIX_PSL}/lib$libsuff 28249 CPP_PSL=-I${PREFIX_PSL}/include 28250 fi 28251 28252 LDFLAGS="$LDFLAGS $LD_PSL" 28253 LDFLAGSPC="$LDFLAGSPC $LD_PSL" 28254 CPPFLAGS="$CPPFLAGS $CPP_PSL" 28255 LIBS="$LIB_PSL $LIBS" 28256 28257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for psl_builtin in -lpsl" >&5 28258 printf %s "checking for psl_builtin in -lpsl... " >&6; } 28259 if test ${ac_cv_lib_psl_psl_builtin+y} 28260 then : 28261 printf %s "(cached) " >&6 28262 else $as_nop 28263 ac_check_lib_save_LIBS=$LIBS 28264 LIBS="-lpsl $LIBS" 28265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28266 /* end confdefs.h. */ 28267 28268 28269 #ifdef __cplusplus 28270 extern "C" 28271 #endif 28272 char psl_builtin (); 28273 int main(void) 28274 { 28275 return psl_builtin (); 28276 return 0; 28277 } 28278 _ACEOF 28279 if ac_fn_c_try_link "$LINENO" 28280 then : 28281 ac_cv_lib_psl_psl_builtin=yes 28282 else $as_nop 28283 ac_cv_lib_psl_psl_builtin=no 28284 fi 28285 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28286 conftest$ac_exeext conftest.$ac_ext 28287 LIBS=$ac_check_lib_save_LIBS 28288 fi 28289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psl_psl_builtin" >&5 28290 printf "%s\n" "$ac_cv_lib_psl_psl_builtin" >&6; } 28291 if test "x$ac_cv_lib_psl_psl_builtin" = xyes 28292 then : 28293 28294 for ac_header in libpsl.h 28295 do : 28296 ac_fn_c_check_header_compile "$LINENO" "libpsl.h" "ac_cv_header_libpsl_h" "$ac_includes_default" 28297 if test "x$ac_cv_header_libpsl_h" = xyes 28298 then : 28299 printf "%s\n" "#define HAVE_LIBPSL_H 1" >>confdefs.h 28300 curl_psl_msg="enabled" 28301 28302 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h 28303 28304 USE_LIBPSL=1 28305 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libpsl" 28306 28307 fi 28308 28309 done 28310 28311 else $as_nop 28312 LDFLAGS=$CLEANLDFLAGS 28313 LDFLAGSPC=$CLEANLDFLAGSPC 28314 CPPFLAGS=$CLEANCPPFLAGS 28315 LIBS=$CLEANLIBS 28316 28317 fi 28318 28319 28320 if test "$USE_LIBPSL" != "1"; then 28321 as_fn_error $? "libpsl libs and/or directories were not found where specified!" "$LINENO" 5 28322 fi 28323 fi 28324 if test "$curl_psl_msg" = "enabled"; then 28325 USE_LIBPSL_TRUE= 28326 USE_LIBPSL_FALSE='#' 28327 else 28328 USE_LIBPSL_TRUE='#' 28329 USE_LIBPSL_FALSE= 28330 fi 28331 28332 28333 28334 28335 28336 # Check whether --with-libgsasl was given. 28337 if test ${with_libgsasl+y} 28338 then : 28339 withval=$with_libgsasl; with_libgsasl=$withval 28340 else $as_nop 28341 with_libgsasl=yes 28342 fi 28343 28344 if test $with_libgsasl != "no"; then 28345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5 28346 printf %s "checking for library containing gsasl_init... " >&6; } 28347 if test ${ac_cv_search_gsasl_init+y} 28348 then : 28349 printf %s "(cached) " >&6 28350 else $as_nop 28351 ac_func_search_save_LIBS=$LIBS 28352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28353 /* end confdefs.h. */ 28354 28355 28356 #ifdef __cplusplus 28357 extern "C" 28358 #endif 28359 char gsasl_init (); 28360 int main(void) 28361 { 28362 return gsasl_init (); 28363 return 0; 28364 } 28365 _ACEOF 28366 for ac_lib in '' gsasl 28367 do 28368 if test -z "$ac_lib"; then 28369 ac_res="none required" 28370 else 28371 ac_res=-l$ac_lib 28372 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28373 fi 28374 if ac_fn_c_try_link "$LINENO" 28375 then : 28376 ac_cv_search_gsasl_init=$ac_res 28377 fi 28378 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28379 conftest$ac_exeext 28380 if test ${ac_cv_search_gsasl_init+y} 28381 then : 28382 break 28383 fi 28384 done 28385 if test ${ac_cv_search_gsasl_init+y} 28386 then : 28387 28388 else $as_nop 28389 ac_cv_search_gsasl_init=no 28390 fi 28391 rm conftest.$ac_ext 28392 LIBS=$ac_func_search_save_LIBS 28393 fi 28394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5 28395 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; } 28396 ac_res=$ac_cv_search_gsasl_init 28397 if test "$ac_res" != no 28398 then : 28399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28400 curl_gsasl_msg="enabled"; 28401 28402 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h 28403 28404 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libgsasl" 28405 28406 else $as_nop 28407 curl_gsasl_msg="no (libgsasl not found)"; 28408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5 28409 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;} 28410 28411 28412 fi 28413 28414 fi 28415 if test "$curl_gsasl_msg" = "enabled"; then 28416 USE_GSASL_TRUE= 28417 USE_GSASL_FALSE='#' 28418 else 28419 USE_GSASL_TRUE='#' 28420 USE_GSASL_FALSE= 28421 fi 28422 28423 28424 28425 # Check whether --with-libmetalink was given. 28426 if test ${with_libmetalink+y} 28427 then : 28428 withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5 28429 fi 28430 28431 28432 28433 OPT_LIBSSH2=off 28434 28435 # Check whether --with-libssh2 was given. 28436 if test ${with_libssh2+y} 28437 then : 28438 withval=$with_libssh2; OPT_LIBSSH2=$withval 28439 else $as_nop 28440 OPT_LIBSSH2=no 28441 fi 28442 28443 28444 28445 OPT_LIBSSH=off 28446 28447 # Check whether --with-libssh was given. 28448 if test ${with_libssh+y} 28449 then : 28450 withval=$with_libssh; OPT_LIBSSH=$withval 28451 else $as_nop 28452 OPT_LIBSSH=no 28453 fi 28454 28455 28456 OPT_WOLFSSH=off 28457 28458 # Check whether --with-wolfssh was given. 28459 if test ${with_wolfssh+y} 28460 then : 28461 withval=$with_wolfssh; OPT_WOLFSSH=$withval 28462 else $as_nop 28463 OPT_WOLFSSH=no 28464 fi 28465 28466 28467 if test X"$OPT_LIBSSH2" != Xno; then 28468 CLEANLDFLAGS="$LDFLAGS" 28469 CLEANLDFLAGSPC="$LDFLAGSPC" 28470 CLEANCPPFLAGS="$CPPFLAGS" 28471 CLEANLIBS="$LIBS" 28472 28473 case "$OPT_LIBSSH2" in 28474 yes) 28475 28476 if test -n "$PKG_CONFIG"; then 28477 PKGCONFIG="$PKG_CONFIG" 28478 else 28479 if test -n "$ac_tool_prefix"; then 28480 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 28481 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 28482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28483 printf %s "checking for $ac_word... " >&6; } 28484 if test ${ac_cv_path_PKGCONFIG+y} 28485 then : 28486 printf %s "(cached) " >&6 28487 else $as_nop 28488 case $PKGCONFIG in 28489 [\\/]* | ?:[\\/]*) 28490 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 28491 ;; 28492 *) 28493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28494 as_dummy="$PATH:/usr/bin:/usr/local/bin" 28495 for as_dir in $as_dummy 28496 do 28497 IFS=$as_save_IFS 28498 case $as_dir in #((( 28499 '') as_dir=./ ;; 28500 */) ;; 28501 *) as_dir=$as_dir/ ;; 28502 esac 28503 for ac_exec_ext in '' $ac_executable_extensions; do 28504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28505 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28507 break 2 28508 fi 28509 done 28510 done 28511 IFS=$as_save_IFS 28512 28513 ;; 28514 esac 28515 fi 28516 PKGCONFIG=$ac_cv_path_PKGCONFIG 28517 if test -n "$PKGCONFIG"; then 28518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 28519 printf "%s\n" "$PKGCONFIG" >&6; } 28520 else 28521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28522 printf "%s\n" "no" >&6; } 28523 fi 28524 28525 28526 fi 28527 if test -z "$ac_cv_path_PKGCONFIG"; then 28528 ac_pt_PKGCONFIG=$PKGCONFIG 28529 # Extract the first word of "pkg-config", so it can be a program name with args. 28530 set dummy pkg-config; ac_word=$2 28531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28532 printf %s "checking for $ac_word... " >&6; } 28533 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 28534 then : 28535 printf %s "(cached) " >&6 28536 else $as_nop 28537 case $ac_pt_PKGCONFIG in 28538 [\\/]* | ?:[\\/]*) 28539 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 28540 ;; 28541 *) 28542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28543 as_dummy="$PATH:/usr/bin:/usr/local/bin" 28544 for as_dir in $as_dummy 28545 do 28546 IFS=$as_save_IFS 28547 case $as_dir in #((( 28548 '') as_dir=./ ;; 28549 */) ;; 28550 *) as_dir=$as_dir/ ;; 28551 esac 28552 for ac_exec_ext in '' $ac_executable_extensions; do 28553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28554 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28556 break 2 28557 fi 28558 done 28559 done 28560 IFS=$as_save_IFS 28561 28562 ;; 28563 esac 28564 fi 28565 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 28566 if test -n "$ac_pt_PKGCONFIG"; then 28567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 28568 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 28569 else 28570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28571 printf "%s\n" "no" >&6; } 28572 fi 28573 28574 if test "x$ac_pt_PKGCONFIG" = x; then 28575 PKGCONFIG="no" 28576 else 28577 case $cross_compiling:$ac_tool_warned in 28578 yes:) 28579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28581 ac_tool_warned=yes ;; 28582 esac 28583 PKGCONFIG=$ac_pt_PKGCONFIG 28584 fi 28585 else 28586 PKGCONFIG="$ac_cv_path_PKGCONFIG" 28587 fi 28588 28589 fi 28590 28591 if test "x$PKGCONFIG" != "xno"; then 28592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5 28593 printf %s "checking for libssh2 options with pkg-config... " >&6; } 28594 itexists=` 28595 if test -n ""; then 28596 PKG_CONFIG_LIBDIR="" 28597 export PKG_CONFIG_LIBDIR 28598 fi 28599 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1` 28600 28601 if test -z "$itexists"; then 28602 PKGCONFIG="no" 28603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28604 printf "%s\n" "no" >&6; } 28605 else 28606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28607 printf "%s\n" "found" >&6; } 28608 fi 28609 fi 28610 28611 28612 if test "$PKGCONFIG" != "no"; then 28613 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2` 28614 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` 28615 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` 28616 version=`$PKGCONFIG --modversion libssh2` 28617 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'` 28618 fi 28619 28620 ;; 28621 off) 28622 ;; 28623 *) 28624 PREFIX_SSH2=$OPT_LIBSSH2 28625 ;; 28626 esac 28627 28628 if test -n "$PREFIX_SSH2"; then 28629 LIB_SSH2="-lssh2" 28630 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff 28631 CPP_SSH2=-I${PREFIX_SSH2}/include 28632 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff 28633 fi 28634 28635 LDFLAGS="$LDFLAGS $LD_SSH2" 28636 LDFLAGSPC="$LDFLAGSPC $LD_SSH2" 28637 CPPFLAGS="$CPPFLAGS $CPP_SSH2" 28638 LIBS="$LIB_SSH2 $LIBS" 28639 28640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_free in -lssh2" >&5 28641 printf %s "checking for libssh2_free in -lssh2... " >&6; } 28642 if test ${ac_cv_lib_ssh2_libssh2_free+y} 28643 then : 28644 printf %s "(cached) " >&6 28645 else $as_nop 28646 ac_check_lib_save_LIBS=$LIBS 28647 LIBS="-lssh2 $LIBS" 28648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28649 /* end confdefs.h. */ 28650 28651 28652 #ifdef __cplusplus 28653 extern "C" 28654 #endif 28655 char libssh2_free (); 28656 int main(void) 28657 { 28658 return libssh2_free (); 28659 return 0; 28660 } 28661 _ACEOF 28662 if ac_fn_c_try_link "$LINENO" 28663 then : 28664 ac_cv_lib_ssh2_libssh2_free=yes 28665 else $as_nop 28666 ac_cv_lib_ssh2_libssh2_free=no 28667 fi 28668 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28669 conftest$ac_exeext conftest.$ac_ext 28670 LIBS=$ac_check_lib_save_LIBS 28671 fi 28672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_free" >&5 28673 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_free" >&6; } 28674 if test "x$ac_cv_lib_ssh2_libssh2_free" = xyes 28675 then : 28676 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h 28677 28678 LIBS="-lssh2 $LIBS" 28679 28680 fi 28681 28682 28683 ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" 28684 if test "x$ac_cv_header_libssh2_h" = xyes 28685 then : 28686 curl_ssh_msg="enabled (libssh2)" 28687 28688 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h 28689 28690 USE_LIBSSH2=1 28691 28692 fi 28693 28694 28695 if test X"$OPT_LIBSSH2" != Xoff && 28696 test "$USE_LIBSSH2" != "1"; then 28697 as_fn_error $? "libssh2 libs and/or directories were not found where specified!" "$LINENO" 5 28698 fi 28699 28700 if test "$USE_LIBSSH2" = "1"; then 28701 if test -n "$DIR_SSH2"; then 28702 28703 if test "x$cross_compiling" != "xyes"; then 28704 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2" 28705 export CURL_LIBRARY_PATH 28706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5 28707 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;} 28708 fi 28709 fi 28710 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libssh2" 28711 else 28712 LDFLAGS=$CLEANLDFLAGS 28713 LDFLAGSPC=$CLEANLDFLAGSPC 28714 CPPFLAGS=$CLEANCPPFLAGS 28715 LIBS=$CLEANLIBS 28716 fi 28717 elif test X"$OPT_LIBSSH" != Xno; then 28718 CLEANLDFLAGS="$LDFLAGS" 28719 CLEANLDFLAGSPC="$LDFLAGSPC" 28720 CLEANCPPFLAGS="$CPPFLAGS" 28721 CLEANLIBS="$LIBS" 28722 28723 case "$OPT_LIBSSH" in 28724 yes) 28725 28726 if test -n "$PKG_CONFIG"; then 28727 PKGCONFIG="$PKG_CONFIG" 28728 else 28729 if test -n "$ac_tool_prefix"; then 28730 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 28731 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 28732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28733 printf %s "checking for $ac_word... " >&6; } 28734 if test ${ac_cv_path_PKGCONFIG+y} 28735 then : 28736 printf %s "(cached) " >&6 28737 else $as_nop 28738 case $PKGCONFIG in 28739 [\\/]* | ?:[\\/]*) 28740 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 28741 ;; 28742 *) 28743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28744 as_dummy="$PATH:/usr/bin:/usr/local/bin" 28745 for as_dir in $as_dummy 28746 do 28747 IFS=$as_save_IFS 28748 case $as_dir in #((( 28749 '') as_dir=./ ;; 28750 */) ;; 28751 *) as_dir=$as_dir/ ;; 28752 esac 28753 for ac_exec_ext in '' $ac_executable_extensions; do 28754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28755 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28757 break 2 28758 fi 28759 done 28760 done 28761 IFS=$as_save_IFS 28762 28763 ;; 28764 esac 28765 fi 28766 PKGCONFIG=$ac_cv_path_PKGCONFIG 28767 if test -n "$PKGCONFIG"; then 28768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 28769 printf "%s\n" "$PKGCONFIG" >&6; } 28770 else 28771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28772 printf "%s\n" "no" >&6; } 28773 fi 28774 28775 28776 fi 28777 if test -z "$ac_cv_path_PKGCONFIG"; then 28778 ac_pt_PKGCONFIG=$PKGCONFIG 28779 # Extract the first word of "pkg-config", so it can be a program name with args. 28780 set dummy pkg-config; ac_word=$2 28781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28782 printf %s "checking for $ac_word... " >&6; } 28783 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 28784 then : 28785 printf %s "(cached) " >&6 28786 else $as_nop 28787 case $ac_pt_PKGCONFIG in 28788 [\\/]* | ?:[\\/]*) 28789 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 28790 ;; 28791 *) 28792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28793 as_dummy="$PATH:/usr/bin:/usr/local/bin" 28794 for as_dir in $as_dummy 28795 do 28796 IFS=$as_save_IFS 28797 case $as_dir in #((( 28798 '') as_dir=./ ;; 28799 */) ;; 28800 *) as_dir=$as_dir/ ;; 28801 esac 28802 for ac_exec_ext in '' $ac_executable_extensions; do 28803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28804 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28806 break 2 28807 fi 28808 done 28809 done 28810 IFS=$as_save_IFS 28811 28812 ;; 28813 esac 28814 fi 28815 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 28816 if test -n "$ac_pt_PKGCONFIG"; then 28817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 28818 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 28819 else 28820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28821 printf "%s\n" "no" >&6; } 28822 fi 28823 28824 if test "x$ac_pt_PKGCONFIG" = x; then 28825 PKGCONFIG="no" 28826 else 28827 case $cross_compiling:$ac_tool_warned in 28828 yes:) 28829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28831 ac_tool_warned=yes ;; 28832 esac 28833 PKGCONFIG=$ac_pt_PKGCONFIG 28834 fi 28835 else 28836 PKGCONFIG="$ac_cv_path_PKGCONFIG" 28837 fi 28838 28839 fi 28840 28841 if test "x$PKGCONFIG" != "xno"; then 28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5 28843 printf %s "checking for libssh options with pkg-config... " >&6; } 28844 itexists=` 28845 if test -n ""; then 28846 PKG_CONFIG_LIBDIR="" 28847 export PKG_CONFIG_LIBDIR 28848 fi 28849 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1` 28850 28851 if test -z "$itexists"; then 28852 PKGCONFIG="no" 28853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28854 printf "%s\n" "no" >&6; } 28855 else 28856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28857 printf "%s\n" "found" >&6; } 28858 fi 28859 fi 28860 28861 28862 if test "$PKGCONFIG" != "no"; then 28863 LIB_SSH=`$PKGCONFIG --libs-only-l libssh` 28864 LD_SSH=`$PKGCONFIG --libs-only-L libssh` 28865 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh` 28866 version=`$PKGCONFIG --modversion libssh` 28867 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'` 28868 fi 28869 28870 ;; 28871 off) 28872 ;; 28873 *) 28874 PREFIX_SSH=$OPT_LIBSSH 28875 ;; 28876 esac 28877 28878 if test -n "$PREFIX_SSH"; then 28879 LIB_SSH="-lssh" 28880 LD_SSH=-L${PREFIX_SSH}/lib$libsuff 28881 CPP_SSH=-I${PREFIX_SSH}/include 28882 DIR_SSH=${PREFIX_SSH}/lib$libsuff 28883 fi 28884 28885 LDFLAGS="$LDFLAGS $LD_SSH" 28886 LDFLAGSPC="$LDFLAGSPC $LD_SSH" 28887 CPPFLAGS="$CPPFLAGS $CPP_SSH" 28888 LIBS="$LIB_SSH $LIBS" 28889 28890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5 28891 printf %s "checking for ssh_new in -lssh... " >&6; } 28892 if test ${ac_cv_lib_ssh_ssh_new+y} 28893 then : 28894 printf %s "(cached) " >&6 28895 else $as_nop 28896 ac_check_lib_save_LIBS=$LIBS 28897 LIBS="-lssh $LIBS" 28898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28899 /* end confdefs.h. */ 28900 28901 28902 #ifdef __cplusplus 28903 extern "C" 28904 #endif 28905 char ssh_new (); 28906 int main(void) 28907 { 28908 return ssh_new (); 28909 return 0; 28910 } 28911 _ACEOF 28912 if ac_fn_c_try_link "$LINENO" 28913 then : 28914 ac_cv_lib_ssh_ssh_new=yes 28915 else $as_nop 28916 ac_cv_lib_ssh_ssh_new=no 28917 fi 28918 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28919 conftest$ac_exeext conftest.$ac_ext 28920 LIBS=$ac_check_lib_save_LIBS 28921 fi 28922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5 28923 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; } 28924 if test "x$ac_cv_lib_ssh_ssh_new" = xyes 28925 then : 28926 printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h 28927 28928 LIBS="-lssh $LIBS" 28929 28930 fi 28931 28932 28933 ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default" 28934 if test "x$ac_cv_header_libssh_libssh_h" = xyes 28935 then : 28936 curl_ssh_msg="enabled (libssh)" 28937 28938 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h 28939 28940 USE_LIBSSH=1 28941 28942 fi 28943 28944 28945 if test X"$OPT_LIBSSH" != Xoff && 28946 test "$USE_LIBSSH" != "1"; then 28947 as_fn_error $? "libssh libs and/or directories were not found where specified!" "$LINENO" 5 28948 fi 28949 28950 if test "$USE_LIBSSH" = "1"; then 28951 if test "$curl_cv_native_windows" = "yes"; then 28952 LIBS="-liphlpapi $LIBS" 28953 fi 28954 if test -n "$DIR_SSH"; then 28955 28956 if test "x$cross_compiling" != "xyes"; then 28957 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH" 28958 export CURL_LIBRARY_PATH 28959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5 28960 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;} 28961 fi 28962 fi 28963 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libssh" 28964 else 28965 LDFLAGS=$CLEANLDFLAGS 28966 LDFLAGSPC=$CLEANLDFLAGSPC 28967 CPPFLAGS=$CLEANCPPFLAGS 28968 LIBS=$CLEANLIBS 28969 fi 28970 elif test X"$OPT_WOLFSSH" != Xno; then 28971 CLEANLDFLAGS="$LDFLAGS" 28972 CLEANLDFLAGSPC="$LDFLAGSPC" 28973 CLEANCPPFLAGS="$CPPFLAGS" 28974 CLEANLIBS="$LIBS" 28975 28976 if test "$OPT_WOLFSSH" != yes; then 28977 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config" 28978 WOLFSSH_LIBS=`$WOLFCONFIG --libs` 28979 LDFLAGS="$LDFLAGS $WOLFSSH_LIBS" 28980 LDFLAGSPC="$LDFLAGSPC $WOLFSSH_LIBS" 28981 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`" 28982 fi 28983 28984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5 28985 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; } 28986 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y} 28987 then : 28988 printf %s "(cached) " >&6 28989 else $as_nop 28990 ac_check_lib_save_LIBS=$LIBS 28991 LIBS="-lwolfssh $LIBS" 28992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28993 /* end confdefs.h. */ 28994 28995 28996 #ifdef __cplusplus 28997 extern "C" 28998 #endif 28999 char wolfSSH_Init (); 29000 int main(void) 29001 { 29002 return wolfSSH_Init (); 29003 return 0; 29004 } 29005 _ACEOF 29006 if ac_fn_c_try_link "$LINENO" 29007 then : 29008 ac_cv_lib_wolfssh_wolfSSH_Init=yes 29009 else $as_nop 29010 ac_cv_lib_wolfssh_wolfSSH_Init=no 29011 fi 29012 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29013 conftest$ac_exeext conftest.$ac_ext 29014 LIBS=$ac_check_lib_save_LIBS 29015 fi 29016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5 29017 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; } 29018 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes 29019 then : 29020 printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h 29021 29022 LIBS="-lwolfssh $LIBS" 29023 29024 fi 29025 29026 29027 for ac_header in wolfssh/ssh.h 29028 do : 29029 ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default" 29030 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes 29031 then : 29032 printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h 29033 curl_ssh_msg="enabled (wolfSSH)" 29034 29035 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h 29036 29037 USE_WOLFSSH=1 29038 29039 fi 29040 29041 done 29042 fi 29043 29044 29045 LDAPLIBNAME="" 29046 29047 # Check whether --with-ldap-lib was given. 29048 if test ${with_ldap_lib+y} 29049 then : 29050 withval=$with_ldap_lib; LDAPLIBNAME="$withval" 29051 fi 29052 29053 29054 LBERLIBNAME="" 29055 29056 # Check whether --with-lber-lib was given. 29057 if test ${with_lber_lib+y} 29058 then : 29059 withval=$with_lber_lib; LBERLIBNAME="$withval" 29060 fi 29061 29062 29063 clean_LDAP_CPPFLAGS=$CPPFLAGS 29064 clean_LDAP_LDFLAGS=$LDFLAGS 29065 clean_LDAP_LIBS=$LIBS 29066 OPT_LDAP=off 29067 29068 # Check whether --with-ldap was given. 29069 if test ${with_ldap+y} 29070 then : 29071 withval=$with_ldap; OPT_LDAP=$withval 29072 fi 29073 29074 29075 case "$OPT_LDAP" in 29076 no) 29077 want_ldap="no" 29078 ;; 29079 yes) 29080 want_ldap="yes" 29081 ;; 29082 off) 29083 want_ldap="default" 29084 ;; 29085 *) 29086 want_ldap="yes" 29087 if test -d "$OPT_LDAP/lib$libsuff"; then 29088 LDFLAGS="$LDFLAGS -L$OPT_LDAP/lib$libsuff" 29089 DIR_LDAP="$OPT_LDAP/lib$libsuff" 29090 elif test -d "$OPT_LDAP/lib"; then 29091 LDFLAGS="$LDFLAGS -L$OPT_LDAP/lib" 29092 DIR_LDAP="$OPT_LDAP/lib" 29093 fi 29094 if test -d "$OPT_LDAP/include"; then 29095 CPPFLAGS="$CPPFLAGS -I$OPT_LDAP/include" 29096 fi 29097 ldap_askedfor="yes" 29098 ;; 29099 esac 29100 29101 if test x$CURL_DISABLE_LDAP != x1 && test "$want_ldap" != "no"; then 29102 29103 29104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 29105 printf %s "checking for lber.h... " >&6; } 29106 if test ${curl_cv_header_lber_h+y} 29107 then : 29108 printf %s "(cached) " >&6 29109 else $as_nop 29110 29111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29112 /* end confdefs.h. */ 29113 29114 29115 #undef inline 29116 #ifdef _WIN32 29117 #ifndef WIN32_LEAN_AND_MEAN 29118 #define WIN32_LEAN_AND_MEAN 29119 #endif 29120 #include <windows.h> 29121 #else 29122 #ifdef HAVE_SYS_TYPES_H 29123 #include <sys/types.h> 29124 #endif 29125 #endif 29126 #ifndef NULL 29127 #define NULL (void *)0 29128 #endif 29129 #include <lber.h> 29130 29131 int main(void) 29132 { 29133 29134 BerValue *bvp = NULL; 29135 BerElement *bep = ber_init(bvp); 29136 ber_free(bep, 1); 29137 29138 return 0; 29139 } 29140 29141 _ACEOF 29142 if ac_fn_c_try_compile "$LINENO" 29143 then : 29144 29145 curl_cv_header_lber_h="yes" 29146 29147 else $as_nop 29148 29149 curl_cv_header_lber_h="no" 29150 29151 fi 29152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29153 29154 fi 29155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5 29156 printf "%s\n" "$curl_cv_header_lber_h" >&6; } 29157 if test "$curl_cv_header_lber_h" = "yes"; then 29158 29159 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h 29160 29161 # 29162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29163 /* end confdefs.h. */ 29164 29165 29166 #undef inline 29167 #ifdef _WIN32 29168 #ifndef WIN32_LEAN_AND_MEAN 29169 #define WIN32_LEAN_AND_MEAN 29170 #endif 29171 #include <windows.h> 29172 #else 29173 #ifdef HAVE_SYS_TYPES_H 29174 #include <sys/types.h> 29175 #endif 29176 #endif 29177 #ifndef NULL 29178 #define NULL (void *)0 29179 #endif 29180 #ifndef LDAP_DEPRECATED 29181 #define LDAP_DEPRECATED 1 29182 #endif 29183 #include <ldap.h> 29184 29185 int main(void) 29186 { 29187 29188 BerValue *bvp = NULL; 29189 BerElement *bep = ber_init(bvp); 29190 ber_free(bep, 1); 29191 29192 return 0; 29193 } 29194 29195 _ACEOF 29196 if ac_fn_c_try_compile "$LINENO" 29197 then : 29198 29199 curl_cv_need_header_lber_h="no" 29200 29201 else $as_nop 29202 29203 curl_cv_need_header_lber_h="yes" 29204 29205 fi 29206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29207 # 29208 case "$curl_cv_need_header_lber_h" in 29209 yes) 29210 29211 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h 29212 29213 ;; 29214 esac 29215 fi 29216 29217 29218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 29219 printf %s "checking for ldap.h... " >&6; } 29220 if test ${curl_cv_header_ldap_h+y} 29221 then : 29222 printf %s "(cached) " >&6 29223 else $as_nop 29224 29225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29226 /* end confdefs.h. */ 29227 29228 29229 #undef inline 29230 #ifdef _WIN32 29231 #ifndef WIN32_LEAN_AND_MEAN 29232 #define WIN32_LEAN_AND_MEAN 29233 #endif 29234 #include <windows.h> 29235 #else 29236 #ifdef HAVE_SYS_TYPES_H 29237 #include <sys/types.h> 29238 #endif 29239 #endif 29240 #ifndef LDAP_DEPRECATED 29241 #define LDAP_DEPRECATED 1 29242 #endif 29243 #ifdef NEED_LBER_H 29244 #include <lber.h> 29245 #endif 29246 #include <ldap.h> 29247 29248 int main(void) 29249 { 29250 29251 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT); 29252 int res = ldap_unbind(ldp); 29253 (void)res; 29254 29255 return 0; 29256 } 29257 29258 _ACEOF 29259 if ac_fn_c_try_compile "$LINENO" 29260 then : 29261 29262 curl_cv_header_ldap_h="yes" 29263 29264 else $as_nop 29265 29266 curl_cv_header_ldap_h="no" 29267 29268 fi 29269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29270 29271 fi 29272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5 29273 printf "%s\n" "$curl_cv_header_ldap_h" >&6; } 29274 case "$curl_cv_header_ldap_h" in 29275 yes) 29276 29277 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h 29278 29279 ;; 29280 esac 29281 29282 29283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 29284 printf %s "checking for ldap_ssl.h... " >&6; } 29285 if test ${curl_cv_header_ldap_ssl_h+y} 29286 then : 29287 printf %s "(cached) " >&6 29288 else $as_nop 29289 29290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29291 /* end confdefs.h. */ 29292 29293 29294 #undef inline 29295 #ifdef _WIN32 29296 #ifndef WIN32_LEAN_AND_MEAN 29297 #define WIN32_LEAN_AND_MEAN 29298 #endif 29299 #include <windows.h> 29300 #else 29301 #ifdef HAVE_SYS_TYPES_H 29302 #include <sys/types.h> 29303 #endif 29304 #endif 29305 #ifndef LDAP_DEPRECATED 29306 #define LDAP_DEPRECATED 1 29307 #endif 29308 #ifdef NEED_LBER_H 29309 #include <lber.h> 29310 #endif 29311 #ifdef HAVE_LDAP_H 29312 #include <ldap.h> 29313 #endif 29314 #include <ldap_ssl.h> 29315 29316 int main(void) 29317 { 29318 29319 LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1); 29320 (void)ldp; 29321 29322 return 0; 29323 } 29324 29325 _ACEOF 29326 if ac_fn_c_try_compile "$LINENO" 29327 then : 29328 29329 curl_cv_header_ldap_ssl_h="yes" 29330 29331 else $as_nop 29332 29333 curl_cv_header_ldap_ssl_h="no" 29334 29335 fi 29336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29337 29338 fi 29339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5 29340 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; } 29341 case "$curl_cv_header_ldap_ssl_h" in 29342 yes) 29343 29344 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h 29345 29346 ;; 29347 esac 29348 29349 29350 if test -z "$LDAPLIBNAME"; then 29351 if test "$curl_cv_native_windows" = "yes" -a "$curl_cv_winuwp" != "yes"; then 29352 LDAPLIBNAME="wldap32" 29353 LBERLIBNAME="no" 29354 fi 29355 fi 29356 29357 if test "$LDAPLIBNAME"; then 29358 if test "$LBERLIBNAME" -a "$LBERLIBNAME" != "no"; then 29359 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh` 29360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 29361 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 29362 if eval test \${$as_ac_Lib+y} 29363 then : 29364 printf %s "(cached) " >&6 29365 else $as_nop 29366 ac_check_lib_save_LIBS=$LIBS 29367 LIBS="-l"$LDAPLIBNAME" $LIBS" 29368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29369 /* end confdefs.h. */ 29370 29371 29372 #ifdef __cplusplus 29373 extern "C" 29374 #endif 29375 char ldap_init (); 29376 int main(void) 29377 { 29378 return ldap_init (); 29379 return 0; 29380 } 29381 _ACEOF 29382 if ac_fn_c_try_link "$LINENO" 29383 then : 29384 eval "$as_ac_Lib=yes" 29385 else $as_nop 29386 eval "$as_ac_Lib=no" 29387 fi 29388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29389 conftest$ac_exeext conftest.$ac_ext 29390 LIBS=$ac_check_lib_save_LIBS 29391 fi 29392 eval ac_res=\$$as_ac_Lib 29393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29394 printf "%s\n" "$ac_res" >&6; } 29395 if eval test \"x\$"$as_ac_Lib"\" = x"yes" 29396 then : 29397 ldap_lib_ok=yes 29398 else $as_nop 29399 ldap_lib_ok=no 29400 fi 29401 29402 if test "$ldap_lib_ok" = "no"; then 29403 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_unbind" | $as_tr_sh` 29404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_unbind in -l\"$LDAPLIBNAME\"" >&5 29405 printf %s "checking for ldap_unbind in -l\"$LDAPLIBNAME\"... " >&6; } 29406 if eval test \${$as_ac_Lib+y} 29407 then : 29408 printf %s "(cached) " >&6 29409 else $as_nop 29410 ac_check_lib_save_LIBS=$LIBS 29411 LIBS="-l"$LDAPLIBNAME" -l$LBERLIBNAME $LIBS" 29412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29413 /* end confdefs.h. */ 29414 29415 29416 #ifdef __cplusplus 29417 extern "C" 29418 #endif 29419 char ldap_unbind (); 29420 int main(void) 29421 { 29422 return ldap_unbind (); 29423 return 0; 29424 } 29425 _ACEOF 29426 if ac_fn_c_try_link "$LINENO" 29427 then : 29428 eval "$as_ac_Lib=yes" 29429 else $as_nop 29430 eval "$as_ac_Lib=no" 29431 fi 29432 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29433 conftest$ac_exeext conftest.$ac_ext 29434 LIBS=$ac_check_lib_save_LIBS 29435 fi 29436 eval ac_res=\$$as_ac_Lib 29437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29438 printf "%s\n" "$ac_res" >&6; } 29439 if eval test \"x\$"$as_ac_Lib"\" = x"yes" 29440 then : 29441 ldap_lib_ok=yes 29442 else $as_nop 29443 ldap_lib_ok=no 29444 fi 29445 29446 if test "$ldap_lib_ok" = "yes"; then 29447 LIBS="-l$LDAPLIBNAME -l$LBERLIBNAME $LIBS" 29448 fi 29449 else 29450 LIBS="-l$LDAPLIBNAME $LIBS" 29451 fi 29452 else 29453 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh` 29454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 29455 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 29456 if eval test \${$as_ac_Lib+y} 29457 then : 29458 printf %s "(cached) " >&6 29459 else $as_nop 29460 ac_check_lib_save_LIBS=$LIBS 29461 LIBS="-l"$LDAPLIBNAME" $LIBS" 29462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29463 /* end confdefs.h. */ 29464 29465 29466 #ifdef __cplusplus 29467 extern "C" 29468 #endif 29469 char ldap_init (); 29470 int main(void) 29471 { 29472 return ldap_init (); 29473 return 0; 29474 } 29475 _ACEOF 29476 if ac_fn_c_try_link "$LINENO" 29477 then : 29478 eval "$as_ac_Lib=yes" 29479 else $as_nop 29480 eval "$as_ac_Lib=no" 29481 fi 29482 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29483 conftest$ac_exeext conftest.$ac_ext 29484 LIBS=$ac_check_lib_save_LIBS 29485 fi 29486 eval ac_res=\$$as_ac_Lib 29487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29488 printf "%s\n" "$ac_res" >&6; } 29489 if eval test \"x\$"$as_ac_Lib"\" = x"yes" 29490 then : 29491 ldap_lib_ok=yes; LIBS="-l$LDAPLIBNAME $LIBS" 29492 else $as_nop 29493 ldap_lib_ok=no 29494 fi 29495 29496 fi 29497 29498 if test "$ldap_lib_ok" = "no"; then 29499 if test -n "$ldap_askedfor"; then 29500 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5 29501 fi 29502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 29503 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} 29504 29505 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 29506 29507 CURL_DISABLE_LDAP=1 29508 29509 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 29510 29511 CURL_DISABLE_LDAPS=1 29512 CPPFLAGS=$clean_LDAP_CPPFLAGS 29513 LDFLAGS=$clean_LDAP_LDFLAGS 29514 LIBS=$clean_LDAP_LIBS 29515 fi 29516 else 29517 29518 # 29519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 29520 printf %s "checking for LDAP libraries... " >&6; } 29521 # 29522 u_libs="" 29523 # 29524 29525 # 29526 curl_cv_save_LIBS="$LIBS" 29527 curl_cv_ldap_LIBS="unknown" 29528 # 29529 for x_nlibs in '' "$u_libs" \ 29530 '-lldap' \ 29531 '-lldap -llber' \ 29532 '-llber -lldap' \ 29533 '-lldapssl -lldapx -lldapsdk' \ 29534 '-lldapsdk -lldapx -lldapssl' \ 29535 '-lldap -llber -lssl -lcrypto'; do 29536 29537 if test "$curl_cv_ldap_LIBS" = "unknown"; then 29538 if test -z "$x_nlibs"; then 29539 LIBS="$curl_cv_save_LIBS" 29540 else 29541 LIBS="$x_nlibs $curl_cv_save_LIBS" 29542 fi 29543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29544 /* end confdefs.h. */ 29545 29546 29547 #undef inline 29548 #ifdef _WIN32 29549 #ifndef WIN32_LEAN_AND_MEAN 29550 #define WIN32_LEAN_AND_MEAN 29551 #endif 29552 #include <windows.h> 29553 #else 29554 #ifdef HAVE_SYS_TYPES_H 29555 #include <sys/types.h> 29556 #endif 29557 #endif 29558 #ifndef NULL 29559 #define NULL (void *)0 29560 #endif 29561 #ifndef LDAP_DEPRECATED 29562 #define LDAP_DEPRECATED 1 29563 #endif 29564 #ifdef NEED_LBER_H 29565 #include <lber.h> 29566 #endif 29567 #ifdef HAVE_LDAP_H 29568 #include <ldap.h> 29569 #endif 29570 29571 int main(void) 29572 { 29573 29574 BerValue *bvp = NULL; 29575 BerElement *bep = ber_init(bvp); 29576 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT); 29577 int res = ldap_unbind(ldp); 29578 ber_free(bep, 1); 29579 (void)res; 29580 29581 return 0; 29582 } 29583 29584 _ACEOF 29585 if ac_fn_c_try_link "$LINENO" 29586 then : 29587 29588 curl_cv_ldap_LIBS="$x_nlibs" 29589 29590 fi 29591 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29592 conftest$ac_exeext conftest.$ac_ext 29593 fi 29594 done 29595 # 29596 LIBS="$curl_cv_save_LIBS" 29597 # 29598 case X-"$curl_cv_ldap_LIBS" in 29599 X-unknown) 29600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 29601 printf "%s\n" "cannot find LDAP libraries" >&6; } 29602 ;; 29603 X-) 29604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 29605 printf "%s\n" "no additional lib required" >&6; } 29606 ;; 29607 *) 29608 if test -z "$curl_cv_save_LIBS"; then 29609 LIBS="$curl_cv_ldap_LIBS" 29610 else 29611 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" 29612 fi 29613 # FIXME: Enable when ldap was detected via pkg-config 29614 if false; then 29615 LIBCURL_PC_REQUIRES_PRIVATE="ldap $LIBCURL_PC_REQUIRES_PRIVATE" 29616 fi 29617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 29618 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; } 29619 ;; 29620 esac 29621 # 29622 29623 case X-"$curl_cv_ldap_LIBS" in 29624 X-unknown) 29625 if test -n "$ldap_askedfor"; then 29626 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5 29627 fi 29628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 29629 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} 29630 29631 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 29632 29633 CURL_DISABLE_LDAP=1 29634 29635 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 29636 29637 CURL_DISABLE_LDAPS=1 29638 CPPFLAGS=$clean_LDAP_CPPFLAGS 29639 LDFLAGS=$clean_LDAP_LDFLAGS 29640 LIBS=$clean_LDAP_LIBS 29641 ;; 29642 esac 29643 fi 29644 fi 29645 29646 if test x$CURL_DISABLE_LDAP != x1; then 29647 if test -n "$DIR_LDAP"; then 29648 29649 if test "x$cross_compiling" != "xyes"; then 29650 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_LDAP" 29651 export CURL_LIBRARY_PATH 29652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_LDAP to CURL_LIBRARY_PATH" >&5 29653 printf "%s\n" "$as_me: Added $DIR_LDAP to CURL_LIBRARY_PATH" >&6;} 29654 fi 29655 fi 29656 29657 if test "$LBERLIBNAME"; then 29658 if test "$LBERLIBNAME" != "no" -a "$ldap_lib_ok" != "yes"; then 29659 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh` 29660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 29661 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } 29662 if eval test \${$as_ac_Lib+y} 29663 then : 29664 printf %s "(cached) " >&6 29665 else $as_nop 29666 ac_check_lib_save_LIBS=$LIBS 29667 LIBS="-l"$LBERLIBNAME" $LIBS" 29668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29669 /* end confdefs.h. */ 29670 29671 29672 #ifdef __cplusplus 29673 extern "C" 29674 #endif 29675 char ber_free (); 29676 int main(void) 29677 { 29678 return ber_free (); 29679 return 0; 29680 } 29681 _ACEOF 29682 if ac_fn_c_try_link "$LINENO" 29683 then : 29684 eval "$as_ac_Lib=yes" 29685 else $as_nop 29686 eval "$as_ac_Lib=no" 29687 fi 29688 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29689 conftest$ac_exeext conftest.$ac_ext 29690 LIBS=$ac_check_lib_save_LIBS 29691 fi 29692 eval ac_res=\$$as_ac_Lib 29693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29694 printf "%s\n" "$ac_res" >&6; } 29695 if eval test \"x\$"$as_ac_Lib"\" = x"yes" 29696 then : 29697 cat >>confdefs.h <<_ACEOF 29698 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 29699 _ACEOF 29700 29701 LIBS="-l"$LBERLIBNAME" $LIBS" 29702 29703 else $as_nop 29704 29705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 29706 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} 29707 29708 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 29709 29710 CURL_DISABLE_LDAP=1 29711 29712 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 29713 29714 CURL_DISABLE_LDAPS=1 29715 CPPFLAGS=$clean_LDAP_CPPFLAGS 29716 LDFLAGS=$clean_LDAP_LDFLAGS 29717 LIBS=$clean_LDAP_LIBS 29718 29719 29720 fi 29721 29722 fi 29723 fi 29724 fi 29725 29726 if test x$CURL_DISABLE_LDAP != x1; then 29727 ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse" 29728 if test "x$ac_cv_func_ldap_url_parse" = xyes 29729 then : 29730 printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h 29731 29732 fi 29733 ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd" 29734 if test "x$ac_cv_func_ldap_init_fd" = xyes 29735 then : 29736 printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h 29737 29738 fi 29739 29740 29741 if test "$LDAPLIBNAME" = "wldap32"; then 29742 curl_ldap_msg="enabled (winldap)" 29743 29744 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h 29745 29746 else 29747 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then 29748 curl_ldap_msg="enabled (OpenLDAP)" 29749 29750 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h 29751 29752 USE_OPENLDAP=1 29753 else 29754 curl_ldap_msg="enabled (ancient OpenLDAP)" 29755 fi 29756 fi 29757 fi 29758 29759 if test x$CURL_DISABLE_LDAPS != x1; then 29760 curl_ldaps_msg="enabled" 29761 fi 29762 29763 29764 OPT_LIBRTMP=off 29765 29766 # Check whether --with-librtmp was given. 29767 if test ${with_librtmp+y} 29768 then : 29769 withval=$with_librtmp; OPT_LIBRTMP=$withval 29770 fi 29771 29772 29773 if test X"$OPT_LIBRTMP" != Xno; then 29774 CLEANLDFLAGS="$LDFLAGS" 29775 CLEANLDFLAGSPC="$LDFLAGSPC" 29776 CLEANCPPFLAGS="$CPPFLAGS" 29777 CLEANLIBS="$LIBS" 29778 29779 case "$OPT_LIBRTMP" in 29780 yes) 29781 29782 if test -n "$PKG_CONFIG"; then 29783 PKGCONFIG="$PKG_CONFIG" 29784 else 29785 if test -n "$ac_tool_prefix"; then 29786 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 29787 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 29788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29789 printf %s "checking for $ac_word... " >&6; } 29790 if test ${ac_cv_path_PKGCONFIG+y} 29791 then : 29792 printf %s "(cached) " >&6 29793 else $as_nop 29794 case $PKGCONFIG in 29795 [\\/]* | ?:[\\/]*) 29796 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 29797 ;; 29798 *) 29799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29800 as_dummy="$PATH:/usr/bin:/usr/local/bin" 29801 for as_dir in $as_dummy 29802 do 29803 IFS=$as_save_IFS 29804 case $as_dir in #((( 29805 '') as_dir=./ ;; 29806 */) ;; 29807 *) as_dir=$as_dir/ ;; 29808 esac 29809 for ac_exec_ext in '' $ac_executable_extensions; do 29810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29811 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29813 break 2 29814 fi 29815 done 29816 done 29817 IFS=$as_save_IFS 29818 29819 ;; 29820 esac 29821 fi 29822 PKGCONFIG=$ac_cv_path_PKGCONFIG 29823 if test -n "$PKGCONFIG"; then 29824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 29825 printf "%s\n" "$PKGCONFIG" >&6; } 29826 else 29827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29828 printf "%s\n" "no" >&6; } 29829 fi 29830 29831 29832 fi 29833 if test -z "$ac_cv_path_PKGCONFIG"; then 29834 ac_pt_PKGCONFIG=$PKGCONFIG 29835 # Extract the first word of "pkg-config", so it can be a program name with args. 29836 set dummy pkg-config; ac_word=$2 29837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29838 printf %s "checking for $ac_word... " >&6; } 29839 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 29840 then : 29841 printf %s "(cached) " >&6 29842 else $as_nop 29843 case $ac_pt_PKGCONFIG in 29844 [\\/]* | ?:[\\/]*) 29845 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 29846 ;; 29847 *) 29848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29849 as_dummy="$PATH:/usr/bin:/usr/local/bin" 29850 for as_dir in $as_dummy 29851 do 29852 IFS=$as_save_IFS 29853 case $as_dir in #((( 29854 '') as_dir=./ ;; 29855 */) ;; 29856 *) as_dir=$as_dir/ ;; 29857 esac 29858 for ac_exec_ext in '' $ac_executable_extensions; do 29859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29860 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29862 break 2 29863 fi 29864 done 29865 done 29866 IFS=$as_save_IFS 29867 29868 ;; 29869 esac 29870 fi 29871 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 29872 if test -n "$ac_pt_PKGCONFIG"; then 29873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 29874 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 29875 else 29876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29877 printf "%s\n" "no" >&6; } 29878 fi 29879 29880 if test "x$ac_pt_PKGCONFIG" = x; then 29881 PKGCONFIG="no" 29882 else 29883 case $cross_compiling:$ac_tool_warned in 29884 yes:) 29885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29886 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29887 ac_tool_warned=yes ;; 29888 esac 29889 PKGCONFIG=$ac_pt_PKGCONFIG 29890 fi 29891 else 29892 PKGCONFIG="$ac_cv_path_PKGCONFIG" 29893 fi 29894 29895 fi 29896 29897 if test "x$PKGCONFIG" != "xno"; then 29898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5 29899 printf %s "checking for librtmp options with pkg-config... " >&6; } 29900 itexists=` 29901 if test -n ""; then 29902 PKG_CONFIG_LIBDIR="" 29903 export PKG_CONFIG_LIBDIR 29904 fi 29905 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1` 29906 29907 if test -z "$itexists"; then 29908 PKGCONFIG="no" 29909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29910 printf "%s\n" "no" >&6; } 29911 else 29912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 29913 printf "%s\n" "found" >&6; } 29914 fi 29915 fi 29916 29917 29918 if test "$PKGCONFIG" != "no"; then 29919 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp` 29920 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp` 29921 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` 29922 version=`$PKGCONFIG --modversion librtmp` 29923 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'` 29924 else 29925 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5 29926 fi 29927 29928 ;; 29929 off) 29930 LIB_RTMP="-lrtmp" 29931 ;; 29932 *) 29933 LIB_RTMP="-lrtmp" 29934 PREFIX_RTMP=$OPT_LIBRTMP 29935 ;; 29936 esac 29937 29938 if test -n "$PREFIX_RTMP"; then 29939 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff 29940 CPP_RTMP=-I${PREFIX_RTMP}/include 29941 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff 29942 fi 29943 29944 LDFLAGS="$LDFLAGS $LD_RTMP" 29945 LDFLAGSPC="$LDFLAGSPC $LD_RTMP" 29946 CPPFLAGS="$CPPFLAGS $CPP_RTMP" 29947 LIBS="$LIB_RTMP $LIBS" 29948 29949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5 29950 printf %s "checking for RTMP_Init in -lrtmp... " >&6; } 29951 if test ${ac_cv_lib_rtmp_RTMP_Init+y} 29952 then : 29953 printf %s "(cached) " >&6 29954 else $as_nop 29955 ac_check_lib_save_LIBS=$LIBS 29956 LIBS="-lrtmp $LIBS" 29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29958 /* end confdefs.h. */ 29959 29960 29961 #ifdef __cplusplus 29962 extern "C" 29963 #endif 29964 char RTMP_Init (); 29965 int main(void) 29966 { 29967 return RTMP_Init (); 29968 return 0; 29969 } 29970 _ACEOF 29971 if ac_fn_c_try_link "$LINENO" 29972 then : 29973 ac_cv_lib_rtmp_RTMP_Init=yes 29974 else $as_nop 29975 ac_cv_lib_rtmp_RTMP_Init=no 29976 fi 29977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29978 conftest$ac_exeext conftest.$ac_ext 29979 LIBS=$ac_check_lib_save_LIBS 29980 fi 29981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5 29982 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; } 29983 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes 29984 then : 29985 29986 for ac_header in librtmp/rtmp.h 29987 do : 29988 ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default" 29989 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes 29990 then : 29991 printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h 29992 curl_rtmp_msg="enabled (librtmp)" 29993 29994 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h 29995 29996 USE_LIBRTMP=1 29997 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE librtmp" 29998 29999 fi 30000 30001 done 30002 30003 else $as_nop 30004 LDFLAGS=$CLEANLDFLAGS 30005 LDFLAGSPC=$CLEANLDFLAGSPC 30006 CPPFLAGS=$CLEANCPPFLAGS 30007 LIBS=$CLEANLIBS 30008 30009 fi 30010 30011 30012 if test X"$OPT_LIBRTMP" != Xoff && 30013 test "$USE_LIBRTMP" != "1"; then 30014 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5 30015 fi 30016 fi 30017 30018 30019 versioned_symbols_flavour= 30020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5 30021 printf %s "checking whether versioned symbols are wanted... " >&6; } 30022 # Check whether --enable-versioned-symbols was given. 30023 if test ${enable_versioned_symbols+y} 30024 then : 30025 enableval=$enable_versioned_symbols; case "$enableval" in 30026 no) 30027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30028 printf "%s\n" "no" >&6; } 30029 ;; 30030 *) 30031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30032 printf "%s\n" "yes" >&6; } 30033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5 30034 printf %s "checking if libraries can be versioned... " >&6; } 30035 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script` 30036 if test -z "$GLD"; then 30037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30038 printf "%s\n" "no" >&6; } 30039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5 30040 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;} 30041 else 30042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30043 printf "%s\n" "yes" >&6; } 30044 if test "x$enableval" != "xyes"; then 30045 versioned_symbols_flavour="$enableval" 30046 elif test "x$CURL_WITH_MULTI_SSL" = "x1"; then 30047 versioned_symbols_flavour="MULTISSL_" 30048 elif test "x$OPENSSL_ENABLED" = "x1"; then 30049 versioned_symbols_flavour="OPENSSL_" 30050 elif test "x$MBEDTLS_ENABLED" = "x1"; then 30051 versioned_symbols_flavour="MBEDTLS_" 30052 elif test "x$WOLFSSL_ENABLED" = "x1"; then 30053 versioned_symbols_flavour="WOLFSSL_" 30054 elif test "x$GNUTLS_ENABLED" = "x1"; then 30055 versioned_symbols_flavour="GNUTLS_" 30056 elif test "x$RUSTLS_ENABLED" = "x1"; then 30057 versioned_symbols_flavour="RUSTLS_" 30058 else 30059 versioned_symbols_flavour="" 30060 fi 30061 versioned_symbols="yes" 30062 fi 30063 ;; 30064 30065 esac 30066 30067 else $as_nop 30068 30069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30070 printf "%s\n" "no" >&6; } 30071 30072 30073 fi 30074 30075 30076 CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX="$versioned_symbols_flavour" 30077 30078 CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME="4" 30079 if test "x$versioned_symbols" = 'xyes'; then 30080 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE= 30081 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#' 30082 else 30083 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#' 30084 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE= 30085 fi 30086 30087 30088 30089 if test "$curl_cv_wince" = 'yes'; then 30090 want_winuni="yes" 30091 else 30092 want_winuni="no" 30093 fi 30094 if test "$curl_cv_native_windows" = "yes"; then 30095 if test "$curl_cv_winuwp" = 'yes'; then 30096 want_winuni="yes" 30097 else 30098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows Unicode (Windows native builds only)" >&5 30099 printf %s "checking whether to enable Windows Unicode (Windows native builds only)... " >&6; } 30100 # Check whether --enable-windows-unicode was given. 30101 if test ${enable_windows_unicode+y} 30102 then : 30103 enableval=$enable_windows_unicode; case "$enableval" in 30104 yes) 30105 want_winuni="yes" 30106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30107 printf "%s\n" "yes" >&6; } 30108 ;; 30109 *) 30110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30111 printf "%s\n" "no" >&6; } 30112 ;; 30113 esac 30114 else $as_nop 30115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30116 printf "%s\n" "no" >&6; } 30117 30118 fi 30119 30120 fi 30121 30122 if test "$want_winuni" = "yes"; then 30123 CPPFLAGS="${CPPFLAGS} -DUNICODE -D_UNICODE" 30124 fi 30125 fi 30126 30127 if test "$want_winuni" = "yes"; then 30128 USE_UNICODE_TRUE= 30129 USE_UNICODE_FALSE='#' 30130 else 30131 USE_UNICODE_TRUE='#' 30132 USE_UNICODE_FALSE= 30133 fi 30134 30135 30136 30137 tst_links_winidn='no' 30138 if test "$curl_cv_native_windows" = 'yes'; then 30139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5 30140 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; } 30141 OPT_WINIDN="default" 30142 30143 # Check whether --with-winidn was given. 30144 if test ${with_winidn+y} 30145 then : 30146 withval=$with_winidn; OPT_WINIDN=$withval 30147 fi 30148 30149 case "$OPT_WINIDN" in 30150 no|default) 30151 want_winidn="no" 30152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30153 printf "%s\n" "no" >&6; } 30154 ;; 30155 yes) 30156 want_winidn="yes" 30157 want_winidn_path="default" 30158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30159 printf "%s\n" "yes" >&6; } 30160 ;; 30161 *) 30162 want_winidn="yes" 30163 want_winidn_path="$withval" 30164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 30165 printf "%s\n" "yes ($withval)" >&6; } 30166 ;; 30167 esac 30168 30169 if test "$want_winidn" = "yes"; then 30170 clean_CPPFLAGS="$CPPFLAGS" 30171 clean_LDFLAGS="$LDFLAGS" 30172 clean_LDFLAGSPC="$LDFLAGSPC" 30173 clean_LIBS="$LIBS" 30174 WINIDN_LIBS="-lnormaliz" 30175 WINIDN_CPPFLAGS="" 30176 # 30177 if test "$want_winidn_path" != "default"; then 30178 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff" 30179 WINIDN_CPPFLAGS="-I$want_winidn_path/include" 30180 fi 30181 # 30182 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS" 30183 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS" 30184 LDFLAGSPC="$LDFLAGSPC $WINIDN_LDFLAGS" 30185 LIBS="$WINIDN_LIBS $LIBS" 30186 # 30187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5 30188 printf %s "checking if IdnToUnicode can be linked... " >&6; } 30189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30190 /* end confdefs.h. */ 30191 30192 30193 #include <windows.h> 30194 30195 int main(void) 30196 { 30197 30198 #if (!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600) && \ 30199 (!defined(WINVER) || WINVER < 0x600) 30200 WINBASEAPI int WINAPI IdnToUnicode(DWORD dwFlags, 30201 const WCHAR *lpASCIICharStr, 30202 int cchASCIIChar, 30203 WCHAR *lpUnicodeCharStr, 30204 int cchUnicodeChar); 30205 #endif 30206 IdnToUnicode(0, NULL, 0, NULL, 0); 30207 30208 return 0; 30209 } 30210 30211 _ACEOF 30212 if ac_fn_c_try_link "$LINENO" 30213 then : 30214 30215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30216 printf "%s\n" "yes" >&6; } 30217 tst_links_winidn="yes" 30218 30219 else $as_nop 30220 30221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30222 printf "%s\n" "no" >&6; } 30223 tst_links_winidn="no" 30224 30225 fi 30226 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30227 conftest$ac_exeext conftest.$ac_ext 30228 # 30229 if test "$tst_links_winidn" = "yes"; then 30230 30231 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h 30232 30233 IDN_ENABLED=1 30234 curl_idn_msg="enabled (Windows-native)" 30235 else 30236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5 30237 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;} 30238 CPPFLAGS="$clean_CPPFLAGS" 30239 LDFLAGS="$clean_LDFLAGS" 30240 LDFLAGSPC="$clean_LDFLAGSPC" 30241 LIBS="$clean_LIBS" 30242 fi 30243 fi 30244 fi 30245 30246 30247 tst_links_appleidn='no' 30248 if test "$curl_cv_apple" = 'yes'; then 30249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with Apple IDN" >&5 30250 printf %s "checking whether to build with Apple IDN... " >&6; } 30251 OPT_IDN="default" 30252 30253 # Check whether --with-apple-idn was given. 30254 if test ${with_apple_idn+y} 30255 then : 30256 withval=$with_apple_idn; OPT_IDN=$withval 30257 fi 30258 30259 case "$OPT_IDN" in 30260 yes) 30261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, check" >&5 30262 printf "%s\n" "yes, check" >&6; } 30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uidna_openUTS46 in -licucore" >&5 30264 printf %s "checking for uidna_openUTS46 in -licucore... " >&6; } 30265 if test ${ac_cv_lib_icucore_uidna_openUTS46+y} 30266 then : 30267 printf %s "(cached) " >&6 30268 else $as_nop 30269 ac_check_lib_save_LIBS=$LIBS 30270 LIBS="-licucore $LIBS" 30271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30272 /* end confdefs.h. */ 30273 30274 30275 #ifdef __cplusplus 30276 extern "C" 30277 #endif 30278 char uidna_openUTS46 (); 30279 int main(void) 30280 { 30281 return uidna_openUTS46 (); 30282 return 0; 30283 } 30284 _ACEOF 30285 if ac_fn_c_try_link "$LINENO" 30286 then : 30287 ac_cv_lib_icucore_uidna_openUTS46=yes 30288 else $as_nop 30289 ac_cv_lib_icucore_uidna_openUTS46=no 30290 fi 30291 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30292 conftest$ac_exeext conftest.$ac_ext 30293 LIBS=$ac_check_lib_save_LIBS 30294 fi 30295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icucore_uidna_openUTS46" >&5 30296 printf "%s\n" "$ac_cv_lib_icucore_uidna_openUTS46" >&6; } 30297 if test "x$ac_cv_lib_icucore_uidna_openUTS46" = xyes 30298 then : 30299 30300 for ac_header in unicode/uidna.h 30301 do : 30302 ac_fn_c_check_header_compile "$LINENO" "unicode/uidna.h" "ac_cv_header_unicode_uidna_h" "$ac_includes_default" 30303 if test "x$ac_cv_header_unicode_uidna_h" = xyes 30304 then : 30305 printf "%s\n" "#define HAVE_UNICODE_UIDNA_H 1" >>confdefs.h 30306 curl_idn_msg="enabled (AppleIDN)" 30307 30308 printf "%s\n" "#define USE_APPLE_IDN 1" >>confdefs.h 30309 30310 USE_APPLE_IDN=1 30311 IDN_ENABLED=1 30312 LIBS="-licucore -liconv $LIBS" 30313 tst_links_appleidn='yes' 30314 30315 fi 30316 30317 done 30318 30319 fi 30320 30321 ;; 30322 *) 30323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30324 printf "%s\n" "no" >&6; } 30325 ;; 30326 esac 30327 fi 30328 30329 30330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5 30331 printf %s "checking whether to build with libidn2... " >&6; } 30332 OPT_IDN="default" 30333 30334 # Check whether --with-libidn2 was given. 30335 if test ${with_libidn2+y} 30336 then : 30337 withval=$with_libidn2; OPT_IDN=$withval 30338 fi 30339 30340 if test "x$tst_links_winidn" = "xyes"; then 30341 want_idn="no" 30342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using WinIDN instead)" >&5 30343 printf "%s\n" "no (using WinIDN instead)" >&6; } 30344 elif test "x$tst_links_appleidn" = "xyes"; then 30345 want_idn="no" 30346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using AppleIDN instead)" >&5 30347 printf "%s\n" "no (using AppleIDN instead)" >&6; } 30348 else 30349 case "$OPT_IDN" in 30350 no) 30351 want_idn="no" 30352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30353 printf "%s\n" "no" >&6; } 30354 ;; 30355 default) 30356 want_idn="yes" 30357 want_idn_path="default" 30358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 30359 printf "%s\n" "(assumed) yes" >&6; } 30360 ;; 30361 yes) 30362 want_idn="yes" 30363 want_idn_path="default" 30364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30365 printf "%s\n" "yes" >&6; } 30366 ;; 30367 *) 30368 want_idn="yes" 30369 want_idn_path="$withval" 30370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 30371 printf "%s\n" "yes ($withval)" >&6; } 30372 ;; 30373 esac 30374 fi 30375 30376 if test "$want_idn" = "yes"; then 30377 clean_CPPFLAGS="$CPPFLAGS" 30378 clean_LDFLAGS="$LDFLAGS" 30379 clean_LDFLAGSPC="$LDFLAGSPC" 30380 clean_LIBS="$LIBS" 30381 PKGCONFIG="no" 30382 # 30383 if test "$want_idn_path" != "default"; then 30384 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig" 30385 30386 if test -n "$PKG_CONFIG"; then 30387 PKGCONFIG="$PKG_CONFIG" 30388 else 30389 if test -n "$ac_tool_prefix"; then 30390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 30391 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 30392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30393 printf %s "checking for $ac_word... " >&6; } 30394 if test ${ac_cv_path_PKGCONFIG+y} 30395 then : 30396 printf %s "(cached) " >&6 30397 else $as_nop 30398 case $PKGCONFIG in 30399 [\\/]* | ?:[\\/]*) 30400 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 30401 ;; 30402 *) 30403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30404 as_dummy="$PATH:/usr/bin:/usr/local/bin" 30405 for as_dir in $as_dummy 30406 do 30407 IFS=$as_save_IFS 30408 case $as_dir in #((( 30409 '') as_dir=./ ;; 30410 */) ;; 30411 *) as_dir=$as_dir/ ;; 30412 esac 30413 for ac_exec_ext in '' $ac_executable_extensions; do 30414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30415 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30417 break 2 30418 fi 30419 done 30420 done 30421 IFS=$as_save_IFS 30422 30423 ;; 30424 esac 30425 fi 30426 PKGCONFIG=$ac_cv_path_PKGCONFIG 30427 if test -n "$PKGCONFIG"; then 30428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 30429 printf "%s\n" "$PKGCONFIG" >&6; } 30430 else 30431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30432 printf "%s\n" "no" >&6; } 30433 fi 30434 30435 30436 fi 30437 if test -z "$ac_cv_path_PKGCONFIG"; then 30438 ac_pt_PKGCONFIG=$PKGCONFIG 30439 # Extract the first word of "pkg-config", so it can be a program name with args. 30440 set dummy pkg-config; ac_word=$2 30441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30442 printf %s "checking for $ac_word... " >&6; } 30443 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 30444 then : 30445 printf %s "(cached) " >&6 30446 else $as_nop 30447 case $ac_pt_PKGCONFIG in 30448 [\\/]* | ?:[\\/]*) 30449 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 30450 ;; 30451 *) 30452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30453 as_dummy="$PATH:/usr/bin:/usr/local/bin" 30454 for as_dir in $as_dummy 30455 do 30456 IFS=$as_save_IFS 30457 case $as_dir in #((( 30458 '') as_dir=./ ;; 30459 */) ;; 30460 *) as_dir=$as_dir/ ;; 30461 esac 30462 for ac_exec_ext in '' $ac_executable_extensions; do 30463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30464 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30466 break 2 30467 fi 30468 done 30469 done 30470 IFS=$as_save_IFS 30471 30472 ;; 30473 esac 30474 fi 30475 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 30476 if test -n "$ac_pt_PKGCONFIG"; then 30477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 30478 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 30479 else 30480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30481 printf "%s\n" "no" >&6; } 30482 fi 30483 30484 if test "x$ac_pt_PKGCONFIG" = x; then 30485 PKGCONFIG="no" 30486 else 30487 case $cross_compiling:$ac_tool_warned in 30488 yes:) 30489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30491 ac_tool_warned=yes ;; 30492 esac 30493 PKGCONFIG=$ac_pt_PKGCONFIG 30494 fi 30495 else 30496 PKGCONFIG="$ac_cv_path_PKGCONFIG" 30497 fi 30498 30499 fi 30500 30501 if test "x$PKGCONFIG" != "xno"; then 30502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 30503 printf %s "checking for libidn2 options with pkg-config... " >&6; } 30504 itexists=` 30505 if test -n "$IDN_PCDIR"; then 30506 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30507 export PKG_CONFIG_LIBDIR 30508 fi 30509 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` 30510 30511 if test -z "$itexists"; then 30512 PKGCONFIG="no" 30513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30514 printf "%s\n" "no" >&6; } 30515 else 30516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 30517 printf "%s\n" "found" >&6; } 30518 fi 30519 fi 30520 30521 if test "$PKGCONFIG" != "no"; then 30522 IDN_LIBS=` 30523 if test -n "$IDN_PCDIR"; then 30524 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30525 export PKG_CONFIG_LIBDIR 30526 fi 30527 $PKGCONFIG --libs-only-l libidn2 2>/dev/null` 30528 IDN_LDFLAGS=` 30529 if test -n "$IDN_PCDIR"; then 30530 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30531 export PKG_CONFIG_LIBDIR 30532 fi 30533 $PKGCONFIG --libs-only-L libidn2 2>/dev/null` 30534 IDN_CPPFLAGS=` 30535 if test -n "$IDN_PCDIR"; then 30536 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30537 export PKG_CONFIG_LIBDIR 30538 fi 30539 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null` 30540 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'` 30541 else 30542 IDN_LIBS="-lidn2" 30543 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff" 30544 IDN_CPPFLAGS="-I$want_idn_path/include" 30545 IDN_DIR="$want_idn_path/lib$libsuff" 30546 fi 30547 else 30548 30549 if test -n "$PKG_CONFIG"; then 30550 PKGCONFIG="$PKG_CONFIG" 30551 else 30552 if test -n "$ac_tool_prefix"; then 30553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 30554 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 30555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30556 printf %s "checking for $ac_word... " >&6; } 30557 if test ${ac_cv_path_PKGCONFIG+y} 30558 then : 30559 printf %s "(cached) " >&6 30560 else $as_nop 30561 case $PKGCONFIG in 30562 [\\/]* | ?:[\\/]*) 30563 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 30564 ;; 30565 *) 30566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30567 as_dummy="$PATH:/usr/bin:/usr/local/bin" 30568 for as_dir in $as_dummy 30569 do 30570 IFS=$as_save_IFS 30571 case $as_dir in #((( 30572 '') as_dir=./ ;; 30573 */) ;; 30574 *) as_dir=$as_dir/ ;; 30575 esac 30576 for ac_exec_ext in '' $ac_executable_extensions; do 30577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30578 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30580 break 2 30581 fi 30582 done 30583 done 30584 IFS=$as_save_IFS 30585 30586 ;; 30587 esac 30588 fi 30589 PKGCONFIG=$ac_cv_path_PKGCONFIG 30590 if test -n "$PKGCONFIG"; then 30591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 30592 printf "%s\n" "$PKGCONFIG" >&6; } 30593 else 30594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30595 printf "%s\n" "no" >&6; } 30596 fi 30597 30598 30599 fi 30600 if test -z "$ac_cv_path_PKGCONFIG"; then 30601 ac_pt_PKGCONFIG=$PKGCONFIG 30602 # Extract the first word of "pkg-config", so it can be a program name with args. 30603 set dummy pkg-config; ac_word=$2 30604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30605 printf %s "checking for $ac_word... " >&6; } 30606 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 30607 then : 30608 printf %s "(cached) " >&6 30609 else $as_nop 30610 case $ac_pt_PKGCONFIG in 30611 [\\/]* | ?:[\\/]*) 30612 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 30613 ;; 30614 *) 30615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30616 as_dummy="$PATH:/usr/bin:/usr/local/bin" 30617 for as_dir in $as_dummy 30618 do 30619 IFS=$as_save_IFS 30620 case $as_dir in #((( 30621 '') as_dir=./ ;; 30622 */) ;; 30623 *) as_dir=$as_dir/ ;; 30624 esac 30625 for ac_exec_ext in '' $ac_executable_extensions; do 30626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30627 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30629 break 2 30630 fi 30631 done 30632 done 30633 IFS=$as_save_IFS 30634 30635 ;; 30636 esac 30637 fi 30638 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 30639 if test -n "$ac_pt_PKGCONFIG"; then 30640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 30641 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 30642 else 30643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30644 printf "%s\n" "no" >&6; } 30645 fi 30646 30647 if test "x$ac_pt_PKGCONFIG" = x; then 30648 PKGCONFIG="no" 30649 else 30650 case $cross_compiling:$ac_tool_warned in 30651 yes:) 30652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30653 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30654 ac_tool_warned=yes ;; 30655 esac 30656 PKGCONFIG=$ac_pt_PKGCONFIG 30657 fi 30658 else 30659 PKGCONFIG="$ac_cv_path_PKGCONFIG" 30660 fi 30661 30662 fi 30663 30664 if test "x$PKGCONFIG" != "xno"; then 30665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 30666 printf %s "checking for libidn2 options with pkg-config... " >&6; } 30667 itexists=` 30668 if test -n ""; then 30669 PKG_CONFIG_LIBDIR="" 30670 export PKG_CONFIG_LIBDIR 30671 fi 30672 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` 30673 30674 if test -z "$itexists"; then 30675 PKGCONFIG="no" 30676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30677 printf "%s\n" "no" >&6; } 30678 else 30679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 30680 printf "%s\n" "found" >&6; } 30681 fi 30682 fi 30683 30684 if test "$PKGCONFIG" != "no"; then 30685 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null` 30686 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null` 30687 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null` 30688 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'` 30689 else 30690 IDN_LIBS="-lidn2" 30691 fi 30692 fi 30693 # 30694 if test "$PKGCONFIG" != "no"; then 30695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5 30696 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;} 30697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 30698 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} 30699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 30700 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} 30701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5 30702 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;} 30703 else 30704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5 30705 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;} 30706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 30707 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} 30708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 30709 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} 30710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5 30711 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;} 30712 fi 30713 # 30714 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS" 30715 LDFLAGS="$LDFLAGS $IDN_LDFLAGS" 30716 LDFLAGSPC="$LDFLAGSPC $IDN_LDFLAGS" 30717 LIBS="$IDN_LIBS $LIBS" 30718 # 30719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5 30720 printf %s "checking if idn2_lookup_ul can be linked... " >&6; } 30721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30722 /* end confdefs.h. */ 30723 30724 30725 #define idn2_lookup_ul innocuous_idn2_lookup_ul 30726 #ifdef __STDC__ 30727 # include <limits.h> 30728 #else 30729 # include <assert.h> 30730 #endif 30731 #undef idn2_lookup_ul 30732 #ifdef __cplusplus 30733 extern "C" 30734 #endif 30735 char idn2_lookup_ul (); 30736 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul 30737 #error force compilation error 30738 #endif 30739 30740 int main(void) 30741 { 30742 return idn2_lookup_ul (); 30743 return 0; 30744 } 30745 30746 _ACEOF 30747 if ac_fn_c_try_link "$LINENO" 30748 then : 30749 30750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30751 printf "%s\n" "yes" >&6; } 30752 tst_links_libidn="yes" 30753 30754 else $as_nop 30755 30756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30757 printf "%s\n" "no" >&6; } 30758 tst_links_libidn="no" 30759 30760 fi 30761 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30762 conftest$ac_exeext conftest.$ac_ext 30763 # 30764 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default" 30765 if test "x$ac_cv_header_idn2_h" = xyes 30766 then : 30767 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h 30768 30769 fi 30770 30771 30772 if test "$tst_links_libidn" = "yes"; then 30773 30774 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h 30775 30776 30777 IDN_ENABLED=1 30778 curl_idn_msg="enabled (libidn2)" 30779 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then 30780 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR" 30781 export CURL_LIBRARY_PATH 30782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5 30783 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;} 30784 fi 30785 LIBCURL_PC_REQUIRES_PRIVATE="libidn2 $LIBCURL_PC_REQUIRES_PRIVATE" 30786 else 30787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libidn2" >&5 30788 printf "%s\n" "$as_me: WARNING: Cannot find libidn2" >&2;} 30789 CPPFLAGS="$clean_CPPFLAGS" 30790 LDFLAGS="$clean_LDFLAGS" 30791 LDFLAGSPC="$clean_LDFLAGSPC" 30792 LIBS="$clean_LIBS" 30793 want_idn="no" 30794 fi 30795 fi 30796 30797 30798 OPT_H2="yes" 30799 30800 if test "x$disable_http" = "xyes"; then 30801 # without HTTP nghttp2 is no use 30802 OPT_H2="no" 30803 fi 30804 30805 30806 # Check whether --with-nghttp2 was given. 30807 if test ${with_nghttp2+y} 30808 then : 30809 withval=$with_nghttp2; OPT_H2=$withval 30810 fi 30811 30812 case "$OPT_H2" in 30813 no) 30814 want_nghttp2="no" 30815 ;; 30816 yes) 30817 want_nghttp2="default" 30818 want_nghttp2_path="" 30819 want_nghttp2_pkg_config_path="" 30820 ;; 30821 *) 30822 want_nghttp2="yes" 30823 want_nghttp2_path="$withval" 30824 want_nghttp2_pkg_config_path="$withval/lib/pkgconfig" 30825 ;; 30826 esac 30827 30828 if test X"$want_nghttp2" != Xno; then 30829 CLEANLDFLAGS="$LDFLAGS" 30830 CLEANLDFLAGSPC="$LDFLAGSPC" 30831 CLEANCPPFLAGS="$CPPFLAGS" 30832 CLEANLIBS="$LIBS" 30833 30834 30835 if test -n "$PKG_CONFIG"; then 30836 PKGCONFIG="$PKG_CONFIG" 30837 else 30838 if test -n "$ac_tool_prefix"; then 30839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 30840 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 30841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30842 printf %s "checking for $ac_word... " >&6; } 30843 if test ${ac_cv_path_PKGCONFIG+y} 30844 then : 30845 printf %s "(cached) " >&6 30846 else $as_nop 30847 case $PKGCONFIG in 30848 [\\/]* | ?:[\\/]*) 30849 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 30850 ;; 30851 *) 30852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30853 as_dummy="$PATH:/usr/bin:/usr/local/bin" 30854 for as_dir in $as_dummy 30855 do 30856 IFS=$as_save_IFS 30857 case $as_dir in #((( 30858 '') as_dir=./ ;; 30859 */) ;; 30860 *) as_dir=$as_dir/ ;; 30861 esac 30862 for ac_exec_ext in '' $ac_executable_extensions; do 30863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30864 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30866 break 2 30867 fi 30868 done 30869 done 30870 IFS=$as_save_IFS 30871 30872 ;; 30873 esac 30874 fi 30875 PKGCONFIG=$ac_cv_path_PKGCONFIG 30876 if test -n "$PKGCONFIG"; then 30877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 30878 printf "%s\n" "$PKGCONFIG" >&6; } 30879 else 30880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30881 printf "%s\n" "no" >&6; } 30882 fi 30883 30884 30885 fi 30886 if test -z "$ac_cv_path_PKGCONFIG"; then 30887 ac_pt_PKGCONFIG=$PKGCONFIG 30888 # Extract the first word of "pkg-config", so it can be a program name with args. 30889 set dummy pkg-config; ac_word=$2 30890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30891 printf %s "checking for $ac_word... " >&6; } 30892 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 30893 then : 30894 printf %s "(cached) " >&6 30895 else $as_nop 30896 case $ac_pt_PKGCONFIG in 30897 [\\/]* | ?:[\\/]*) 30898 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 30899 ;; 30900 *) 30901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30902 as_dummy="$PATH:/usr/bin:/usr/local/bin" 30903 for as_dir in $as_dummy 30904 do 30905 IFS=$as_save_IFS 30906 case $as_dir in #((( 30907 '') as_dir=./ ;; 30908 */) ;; 30909 *) as_dir=$as_dir/ ;; 30910 esac 30911 for ac_exec_ext in '' $ac_executable_extensions; do 30912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30913 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30915 break 2 30916 fi 30917 done 30918 done 30919 IFS=$as_save_IFS 30920 30921 ;; 30922 esac 30923 fi 30924 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 30925 if test -n "$ac_pt_PKGCONFIG"; then 30926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 30927 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 30928 else 30929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30930 printf "%s\n" "no" >&6; } 30931 fi 30932 30933 if test "x$ac_pt_PKGCONFIG" = x; then 30934 PKGCONFIG="no" 30935 else 30936 case $cross_compiling:$ac_tool_warned in 30937 yes:) 30938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30940 ac_tool_warned=yes ;; 30941 esac 30942 PKGCONFIG=$ac_pt_PKGCONFIG 30943 fi 30944 else 30945 PKGCONFIG="$ac_cv_path_PKGCONFIG" 30946 fi 30947 30948 fi 30949 30950 if test "x$PKGCONFIG" != "xno"; then 30951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5 30952 printf %s "checking for libnghttp2 options with pkg-config... " >&6; } 30953 itexists=` 30954 if test -n "$want_nghttp2_pkg_config_path"; then 30955 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 30956 export PKG_CONFIG_LIBDIR 30957 fi 30958 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1` 30959 30960 if test -z "$itexists"; then 30961 PKGCONFIG="no" 30962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30963 printf "%s\n" "no" >&6; } 30964 else 30965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 30966 printf "%s\n" "found" >&6; } 30967 fi 30968 fi 30969 30970 30971 if test "$PKGCONFIG" != "no"; then 30972 LIB_H2=` 30973 if test -n "$want_nghttp2_pkg_config_path"; then 30974 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 30975 export PKG_CONFIG_LIBDIR 30976 fi 30977 30978 $PKGCONFIG --libs-only-l libnghttp2` 30979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5 30980 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;} 30981 30982 CPP_H2=` 30983 if test -n "$want_nghttp2_pkg_config_path"; then 30984 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 30985 export PKG_CONFIG_LIBDIR 30986 fi 30987 $PKGCONFIG --cflags-only-I libnghttp2` 30988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5 30989 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;} 30990 30991 LD_H2=` 30992 if test -n "$want_nghttp2_pkg_config_path"; then 30993 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 30994 export PKG_CONFIG_LIBDIR 30995 fi 30996 30997 $PKGCONFIG --libs-only-L libnghttp2` 30998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5 30999 printf "%s\n" "$as_me: -L is $LD_H2" >&6;} 31000 31001 DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'` 31002 elif test x"$want_nghttp2_path" != x; then 31003 LIB_H2="-lnghttp2" 31004 LD_H2=-L${want_nghttp2_path}/lib$libsuff 31005 CPP_H2=-I${want_nghttp2_path}/include 31006 DIR_H2=${want_nghttp2_path}/lib$libsuff 31007 elif test X"$want_nghttp2" != Xdefault; then 31008 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5 31009 else 31010 LIB_H2="-lnghttp2" 31011 fi 31012 31013 LDFLAGS="$LDFLAGS $LD_H2" 31014 LDFLAGSPC="$LDFLAGSPC $LD_H2" 31015 CPPFLAGS="$CPPFLAGS $CPP_H2" 31016 LIBS="$LIB_H2 $LIBS" 31017 31018 # use nghttp2_session_get_stream_local_window_size to require nghttp2 31019 # >= 1.15.0 31020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5 31021 printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; } 31022 if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y} 31023 then : 31024 printf %s "(cached) " >&6 31025 else $as_nop 31026 ac_check_lib_save_LIBS=$LIBS 31027 LIBS="-lnghttp2 $LIBS" 31028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31029 /* end confdefs.h. */ 31030 31031 31032 #ifdef __cplusplus 31033 extern "C" 31034 #endif 31035 char nghttp2_session_get_stream_local_window_size (); 31036 int main(void) 31037 { 31038 return nghttp2_session_get_stream_local_window_size (); 31039 return 0; 31040 } 31041 _ACEOF 31042 if ac_fn_c_try_link "$LINENO" 31043 then : 31044 ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes 31045 else $as_nop 31046 ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no 31047 fi 31048 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31049 conftest$ac_exeext conftest.$ac_ext 31050 LIBS=$ac_check_lib_save_LIBS 31051 fi 31052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5 31053 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; } 31054 if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes 31055 then : 31056 31057 for ac_header in nghttp2/nghttp2.h 31058 do : 31059 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default" 31060 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes 31061 then : 31062 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h 31063 curl_h2_msg="enabled (nghttp2)" 31064 31065 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h 31066 31067 USE_NGHTTP2=1 31068 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libnghttp2" 31069 31070 fi 31071 31072 done 31073 31074 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2" 31075 export CURL_LIBRARY_PATH 31076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5 31077 printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;} 31078 31079 else $as_nop 31080 LDFLAGS=$CLEANLDFLAGS 31081 LDFLAGSPC=$CLEANLDFLAGSPC 31082 CPPFLAGS=$CLEANCPPFLAGS 31083 LIBS=$CLEANLIBS 31084 31085 fi 31086 31087 fi 31088 31089 31090 OPT_TCP2="no" 31091 31092 if test "x$disable_http" = "xyes"; then 31093 # without HTTP, ngtcp2 is no use 31094 OPT_TCP2="no" 31095 fi 31096 31097 31098 # Check whether --with-ngtcp2 was given. 31099 if test ${with_ngtcp2+y} 31100 then : 31101 withval=$with_ngtcp2; OPT_TCP2=$withval 31102 fi 31103 31104 case "$OPT_TCP2" in 31105 no) 31106 want_tcp2="no" 31107 ;; 31108 yes) 31109 want_tcp2="default" 31110 want_tcp2_path="" 31111 ;; 31112 *) 31113 want_tcp2="yes" 31114 want_tcp2_path="$withval/lib/pkgconfig" 31115 ;; 31116 esac 31117 31118 curl_tcp2_msg="no (--with-ngtcp2)" 31119 if test X"$want_tcp2" != Xno; then 31120 31121 if test "$QUIC_ENABLED" != "yes"; then 31122 as_fn_error $? "the detected TLS library does not support QUIC, making --with-ngtcp2 a no-no" "$LINENO" 5 31123 fi 31124 31125 CLEANLDFLAGS="$LDFLAGS" 31126 CLEANLDFLAGSPC="$LDFLAGSPC" 31127 CLEANCPPFLAGS="$CPPFLAGS" 31128 CLEANLIBS="$LIBS" 31129 31130 31131 if test -n "$PKG_CONFIG"; then 31132 PKGCONFIG="$PKG_CONFIG" 31133 else 31134 if test -n "$ac_tool_prefix"; then 31135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31136 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31138 printf %s "checking for $ac_word... " >&6; } 31139 if test ${ac_cv_path_PKGCONFIG+y} 31140 then : 31141 printf %s "(cached) " >&6 31142 else $as_nop 31143 case $PKGCONFIG in 31144 [\\/]* | ?:[\\/]*) 31145 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31146 ;; 31147 *) 31148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31149 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31150 for as_dir in $as_dummy 31151 do 31152 IFS=$as_save_IFS 31153 case $as_dir in #((( 31154 '') as_dir=./ ;; 31155 */) ;; 31156 *) as_dir=$as_dir/ ;; 31157 esac 31158 for ac_exec_ext in '' $ac_executable_extensions; do 31159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31160 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31162 break 2 31163 fi 31164 done 31165 done 31166 IFS=$as_save_IFS 31167 31168 ;; 31169 esac 31170 fi 31171 PKGCONFIG=$ac_cv_path_PKGCONFIG 31172 if test -n "$PKGCONFIG"; then 31173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31174 printf "%s\n" "$PKGCONFIG" >&6; } 31175 else 31176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31177 printf "%s\n" "no" >&6; } 31178 fi 31179 31180 31181 fi 31182 if test -z "$ac_cv_path_PKGCONFIG"; then 31183 ac_pt_PKGCONFIG=$PKGCONFIG 31184 # Extract the first word of "pkg-config", so it can be a program name with args. 31185 set dummy pkg-config; ac_word=$2 31186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31187 printf %s "checking for $ac_word... " >&6; } 31188 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31189 then : 31190 printf %s "(cached) " >&6 31191 else $as_nop 31192 case $ac_pt_PKGCONFIG in 31193 [\\/]* | ?:[\\/]*) 31194 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31195 ;; 31196 *) 31197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31198 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31199 for as_dir in $as_dummy 31200 do 31201 IFS=$as_save_IFS 31202 case $as_dir in #((( 31203 '') as_dir=./ ;; 31204 */) ;; 31205 *) as_dir=$as_dir/ ;; 31206 esac 31207 for ac_exec_ext in '' $ac_executable_extensions; do 31208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31209 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31211 break 2 31212 fi 31213 done 31214 done 31215 IFS=$as_save_IFS 31216 31217 ;; 31218 esac 31219 fi 31220 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31221 if test -n "$ac_pt_PKGCONFIG"; then 31222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31223 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31224 else 31225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31226 printf "%s\n" "no" >&6; } 31227 fi 31228 31229 if test "x$ac_pt_PKGCONFIG" = x; then 31230 PKGCONFIG="no" 31231 else 31232 case $cross_compiling:$ac_tool_warned in 31233 yes:) 31234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31236 ac_tool_warned=yes ;; 31237 esac 31238 PKGCONFIG=$ac_pt_PKGCONFIG 31239 fi 31240 else 31241 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31242 fi 31243 31244 fi 31245 31246 if test "x$PKGCONFIG" != "xno"; then 31247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5 31248 printf %s "checking for libngtcp2 options with pkg-config... " >&6; } 31249 itexists=` 31250 if test -n "$want_tcp2_path"; then 31251 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31252 export PKG_CONFIG_LIBDIR 31253 fi 31254 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1` 31255 31256 if test -z "$itexists"; then 31257 PKGCONFIG="no" 31258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31259 printf "%s\n" "no" >&6; } 31260 else 31261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31262 printf "%s\n" "found" >&6; } 31263 fi 31264 fi 31265 31266 31267 if test "$PKGCONFIG" != "no"; then 31268 LIB_TCP2=` 31269 if test -n "$want_tcp2_path"; then 31270 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31271 export PKG_CONFIG_LIBDIR 31272 fi 31273 31274 $PKGCONFIG --libs-only-l libngtcp2` 31275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5 31276 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;} 31277 31278 CPP_TCP2=` 31279 if test -n "$want_tcp2_path"; then 31280 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31281 export PKG_CONFIG_LIBDIR 31282 fi 31283 $PKGCONFIG --cflags-only-I libngtcp2` 31284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5 31285 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;} 31286 31287 LD_TCP2=` 31288 if test -n "$want_tcp2_path"; then 31289 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31290 export PKG_CONFIG_LIBDIR 31291 fi 31292 31293 $PKGCONFIG --libs-only-L libngtcp2` 31294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5 31295 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;} 31296 31297 LDFLAGS="$LDFLAGS $LD_TCP2" 31298 LDFLAGSPC="$LDFLAGSPC $LD_TCP2" 31299 CPPFLAGS="$CPPFLAGS $CPP_TCP2" 31300 LIBS="$LIB_TCP2 $LIBS" 31301 31302 if test "x$cross_compiling" != "xyes"; then 31303 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'` 31304 fi 31305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5 31306 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; } 31307 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y} 31308 then : 31309 printf %s "(cached) " >&6 31310 else $as_nop 31311 ac_check_lib_save_LIBS=$LIBS 31312 LIBS="-lngtcp2 $LIBS" 31313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31314 /* end confdefs.h. */ 31315 31316 31317 #ifdef __cplusplus 31318 extern "C" 31319 #endif 31320 char ngtcp2_conn_client_new_versioned (); 31321 int main(void) 31322 { 31323 return ngtcp2_conn_client_new_versioned (); 31324 return 0; 31325 } 31326 _ACEOF 31327 if ac_fn_c_try_link "$LINENO" 31328 then : 31329 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes 31330 else $as_nop 31331 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no 31332 fi 31333 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31334 conftest$ac_exeext conftest.$ac_ext 31335 LIBS=$ac_check_lib_save_LIBS 31336 fi 31337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5 31338 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; } 31339 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes 31340 then : 31341 31342 for ac_header in ngtcp2/ngtcp2.h 31343 do : 31344 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default" 31345 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes 31346 then : 31347 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h 31348 31349 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h 31350 31351 USE_NGTCP2=1 31352 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2" 31353 export CURL_LIBRARY_PATH 31354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5 31355 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;} 31356 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2" 31357 31358 fi 31359 31360 done 31361 31362 else $as_nop 31363 LDFLAGS=$CLEANLDFLAGS 31364 LDFLAGSPC=$CLEANLDFLAGSPC 31365 CPPFLAGS=$CLEANCPPFLAGS 31366 LIBS=$CLEANLIBS 31367 31368 fi 31369 31370 31371 else 31372 if test X"$want_tcp2" != Xdefault; then 31373 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5 31374 fi 31375 fi 31376 fi 31377 31378 if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a \ 31379 "x$OPENSSL_IS_BORINGSSL" != "x1" -a "x$OPENSSL_QUIC_API2" != "x1"; then 31380 CLEANLDFLAGS="$LDFLAGS" 31381 CLEANLDFLAGSPC="$LDFLAGSPC" 31382 CLEANCPPFLAGS="$CPPFLAGS" 31383 CLEANLIBS="$LIBS" 31384 31385 31386 if test -n "$PKG_CONFIG"; then 31387 PKGCONFIG="$PKG_CONFIG" 31388 else 31389 if test -n "$ac_tool_prefix"; then 31390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31391 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31393 printf %s "checking for $ac_word... " >&6; } 31394 if test ${ac_cv_path_PKGCONFIG+y} 31395 then : 31396 printf %s "(cached) " >&6 31397 else $as_nop 31398 case $PKGCONFIG in 31399 [\\/]* | ?:[\\/]*) 31400 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31401 ;; 31402 *) 31403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31404 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31405 for as_dir in $as_dummy 31406 do 31407 IFS=$as_save_IFS 31408 case $as_dir in #((( 31409 '') as_dir=./ ;; 31410 */) ;; 31411 *) as_dir=$as_dir/ ;; 31412 esac 31413 for ac_exec_ext in '' $ac_executable_extensions; do 31414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31415 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31417 break 2 31418 fi 31419 done 31420 done 31421 IFS=$as_save_IFS 31422 31423 ;; 31424 esac 31425 fi 31426 PKGCONFIG=$ac_cv_path_PKGCONFIG 31427 if test -n "$PKGCONFIG"; then 31428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31429 printf "%s\n" "$PKGCONFIG" >&6; } 31430 else 31431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31432 printf "%s\n" "no" >&6; } 31433 fi 31434 31435 31436 fi 31437 if test -z "$ac_cv_path_PKGCONFIG"; then 31438 ac_pt_PKGCONFIG=$PKGCONFIG 31439 # Extract the first word of "pkg-config", so it can be a program name with args. 31440 set dummy pkg-config; ac_word=$2 31441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31442 printf %s "checking for $ac_word... " >&6; } 31443 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31444 then : 31445 printf %s "(cached) " >&6 31446 else $as_nop 31447 case $ac_pt_PKGCONFIG in 31448 [\\/]* | ?:[\\/]*) 31449 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31450 ;; 31451 *) 31452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31453 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31454 for as_dir in $as_dummy 31455 do 31456 IFS=$as_save_IFS 31457 case $as_dir in #((( 31458 '') as_dir=./ ;; 31459 */) ;; 31460 *) as_dir=$as_dir/ ;; 31461 esac 31462 for ac_exec_ext in '' $ac_executable_extensions; do 31463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31464 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31466 break 2 31467 fi 31468 done 31469 done 31470 IFS=$as_save_IFS 31471 31472 ;; 31473 esac 31474 fi 31475 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31476 if test -n "$ac_pt_PKGCONFIG"; then 31477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31478 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31479 else 31480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31481 printf "%s\n" "no" >&6; } 31482 fi 31483 31484 if test "x$ac_pt_PKGCONFIG" = x; then 31485 PKGCONFIG="no" 31486 else 31487 case $cross_compiling:$ac_tool_warned in 31488 yes:) 31489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31491 ac_tool_warned=yes ;; 31492 esac 31493 PKGCONFIG=$ac_pt_PKGCONFIG 31494 fi 31495 else 31496 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31497 fi 31498 31499 fi 31500 31501 if test "x$PKGCONFIG" != "xno"; then 31502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5 31503 printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; } 31504 itexists=` 31505 if test -n "$want_tcp2_path"; then 31506 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31507 export PKG_CONFIG_LIBDIR 31508 fi 31509 $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1` 31510 31511 if test -z "$itexists"; then 31512 PKGCONFIG="no" 31513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31514 printf "%s\n" "no" >&6; } 31515 else 31516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31517 printf "%s\n" "found" >&6; } 31518 fi 31519 fi 31520 31521 31522 if test "$PKGCONFIG" != "no"; then 31523 LIB_NGTCP2_CRYPTO_QUICTLS=` 31524 if test -n "$want_tcp2_path"; then 31525 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31526 export PKG_CONFIG_LIBDIR 31527 fi 31528 31529 $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls` 31530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5 31531 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;} 31532 31533 CPP_NGTCP2_CRYPTO_QUICTLS=` 31534 if test -n "$want_tcp2_path"; then 31535 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31536 export PKG_CONFIG_LIBDIR 31537 fi 31538 $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls` 31539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5 31540 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;} 31541 31542 LD_NGTCP2_CRYPTO_QUICTLS=` 31543 if test -n "$want_tcp2_path"; then 31544 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31545 export PKG_CONFIG_LIBDIR 31546 fi 31547 31548 $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls` 31549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5 31550 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;} 31551 31552 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS" 31553 LDFLAGSPC="$LDFLAGSPC $LD_NGTCP2_CRYPTO_QUICTLS" 31554 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS" 31555 LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS" 31556 31557 if test "x$cross_compiling" != "xyes"; then 31558 DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'` 31559 fi 31560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5 31561 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; } 31562 if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y} 31563 then : 31564 printf %s "(cached) " >&6 31565 else $as_nop 31566 ac_check_lib_save_LIBS=$LIBS 31567 LIBS="-lngtcp2_crypto_quictls $LIBS" 31568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31569 /* end confdefs.h. */ 31570 31571 31572 #ifdef __cplusplus 31573 extern "C" 31574 #endif 31575 char ngtcp2_crypto_recv_client_initial_cb (); 31576 int main(void) 31577 { 31578 return ngtcp2_crypto_recv_client_initial_cb (); 31579 return 0; 31580 } 31581 _ACEOF 31582 if ac_fn_c_try_link "$LINENO" 31583 then : 31584 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes 31585 else $as_nop 31586 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no 31587 fi 31588 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31589 conftest$ac_exeext conftest.$ac_ext 31590 LIBS=$ac_check_lib_save_LIBS 31591 fi 31592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5 31593 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; } 31594 if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes 31595 then : 31596 31597 for ac_header in ngtcp2/ngtcp2_crypto.h 31598 do : 31599 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 31600 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 31601 then : 31602 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 31603 USE_NGTCP2=1 31604 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS" 31605 export CURL_LIBRARY_PATH 31606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5 31607 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;} 31608 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_quictls" 31609 31610 fi 31611 31612 done 31613 31614 else $as_nop 31615 LDFLAGS=$CLEANLDFLAGS 31616 LDFLAGSPC=$CLEANLDFLAGSPC 31617 CPPFLAGS=$CLEANCPPFLAGS 31618 LIBS=$CLEANLIBS 31619 31620 fi 31621 31622 31623 else 31624 if test X"$want_tcp2" != Xdefault; then 31625 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5 31626 fi 31627 fi 31628 fi 31629 31630 if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a \ 31631 "x$OPENSSL_IS_BORINGSSL" != "x1" -a "x$OPENSSL_QUIC_API2" = "x1"; then 31632 CLEANLDFLAGS="$LDFLAGS" 31633 CLEANLDFLAGSPC="$LDFLAGSPC" 31634 CLEANCPPFLAGS="$CPPFLAGS" 31635 CLEANLIBS="$LIBS" 31636 31637 31638 if test -n "$PKG_CONFIG"; then 31639 PKGCONFIG="$PKG_CONFIG" 31640 else 31641 if test -n "$ac_tool_prefix"; then 31642 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31643 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31645 printf %s "checking for $ac_word... " >&6; } 31646 if test ${ac_cv_path_PKGCONFIG+y} 31647 then : 31648 printf %s "(cached) " >&6 31649 else $as_nop 31650 case $PKGCONFIG in 31651 [\\/]* | ?:[\\/]*) 31652 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31653 ;; 31654 *) 31655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31656 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31657 for as_dir in $as_dummy 31658 do 31659 IFS=$as_save_IFS 31660 case $as_dir in #((( 31661 '') as_dir=./ ;; 31662 */) ;; 31663 *) as_dir=$as_dir/ ;; 31664 esac 31665 for ac_exec_ext in '' $ac_executable_extensions; do 31666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31667 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31669 break 2 31670 fi 31671 done 31672 done 31673 IFS=$as_save_IFS 31674 31675 ;; 31676 esac 31677 fi 31678 PKGCONFIG=$ac_cv_path_PKGCONFIG 31679 if test -n "$PKGCONFIG"; then 31680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31681 printf "%s\n" "$PKGCONFIG" >&6; } 31682 else 31683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31684 printf "%s\n" "no" >&6; } 31685 fi 31686 31687 31688 fi 31689 if test -z "$ac_cv_path_PKGCONFIG"; then 31690 ac_pt_PKGCONFIG=$PKGCONFIG 31691 # Extract the first word of "pkg-config", so it can be a program name with args. 31692 set dummy pkg-config; ac_word=$2 31693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31694 printf %s "checking for $ac_word... " >&6; } 31695 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31696 then : 31697 printf %s "(cached) " >&6 31698 else $as_nop 31699 case $ac_pt_PKGCONFIG in 31700 [\\/]* | ?:[\\/]*) 31701 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31702 ;; 31703 *) 31704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31705 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31706 for as_dir in $as_dummy 31707 do 31708 IFS=$as_save_IFS 31709 case $as_dir in #((( 31710 '') as_dir=./ ;; 31711 */) ;; 31712 *) as_dir=$as_dir/ ;; 31713 esac 31714 for ac_exec_ext in '' $ac_executable_extensions; do 31715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31716 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31718 break 2 31719 fi 31720 done 31721 done 31722 IFS=$as_save_IFS 31723 31724 ;; 31725 esac 31726 fi 31727 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31728 if test -n "$ac_pt_PKGCONFIG"; then 31729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31730 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31731 else 31732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31733 printf "%s\n" "no" >&6; } 31734 fi 31735 31736 if test "x$ac_pt_PKGCONFIG" = x; then 31737 PKGCONFIG="no" 31738 else 31739 case $cross_compiling:$ac_tool_warned in 31740 yes:) 31741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31742 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31743 ac_tool_warned=yes ;; 31744 esac 31745 PKGCONFIG=$ac_pt_PKGCONFIG 31746 fi 31747 else 31748 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31749 fi 31750 31751 fi 31752 31753 if test "x$PKGCONFIG" != "xno"; then 31754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_ossl options with pkg-config" >&5 31755 printf %s "checking for libngtcp2_crypto_ossl options with pkg-config... " >&6; } 31756 itexists=` 31757 if test -n "$want_tcp2_path"; then 31758 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31759 export PKG_CONFIG_LIBDIR 31760 fi 31761 $PKGCONFIG --exists libngtcp2_crypto_ossl >/dev/null 2>&1 && echo 1` 31762 31763 if test -z "$itexists"; then 31764 PKGCONFIG="no" 31765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31766 printf "%s\n" "no" >&6; } 31767 else 31768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31769 printf "%s\n" "found" >&6; } 31770 fi 31771 fi 31772 31773 31774 if test "$PKGCONFIG" != "no"; then 31775 LIB_NGTCP2_CRYPTO_QUICTLS=` 31776 if test -n "$want_tcp2_path"; then 31777 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31778 export PKG_CONFIG_LIBDIR 31779 fi 31780 31781 $PKGCONFIG --libs-only-l libngtcp2_crypto_ossl` 31782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5 31783 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;} 31784 31785 CPP_NGTCP2_CRYPTO_QUICTLS=` 31786 if test -n "$want_tcp2_path"; then 31787 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31788 export PKG_CONFIG_LIBDIR 31789 fi 31790 $PKGCONFIG --cflags-only-I libngtcp2_crypto_ossl` 31791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5 31792 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;} 31793 31794 LD_NGTCP2_CRYPTO_QUICTLS=` 31795 if test -n "$want_tcp2_path"; then 31796 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31797 export PKG_CONFIG_LIBDIR 31798 fi 31799 31800 $PKGCONFIG --libs-only-L libngtcp2_crypto_ossl` 31801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5 31802 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;} 31803 31804 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS" 31805 LDFLAGSPC="$LDFLAGSPC $LD_NGTCP2_CRYPTO_QUICTLS" 31806 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS" 31807 LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS" 31808 31809 if test "x$cross_compiling" != "xyes"; then 31810 DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'` 31811 fi 31812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_ossl" >&5 31813 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_ossl... " >&6; } 31814 if test ${ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_recv_client_initial_cb+y} 31815 then : 31816 printf %s "(cached) " >&6 31817 else $as_nop 31818 ac_check_lib_save_LIBS=$LIBS 31819 LIBS="-lngtcp2_crypto_ossl $LIBS" 31820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31821 /* end confdefs.h. */ 31822 31823 31824 #ifdef __cplusplus 31825 extern "C" 31826 #endif 31827 char ngtcp2_crypto_recv_client_initial_cb (); 31828 int main(void) 31829 { 31830 return ngtcp2_crypto_recv_client_initial_cb (); 31831 return 0; 31832 } 31833 _ACEOF 31834 if ac_fn_c_try_link "$LINENO" 31835 then : 31836 ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_recv_client_initial_cb=yes 31837 else $as_nop 31838 ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_recv_client_initial_cb=no 31839 fi 31840 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31841 conftest$ac_exeext conftest.$ac_ext 31842 LIBS=$ac_check_lib_save_LIBS 31843 fi 31844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_recv_client_initial_cb" >&5 31845 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_recv_client_initial_cb" >&6; } 31846 if test "x$ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_recv_client_initial_cb" = xyes 31847 then : 31848 31849 for ac_header in ngtcp2/ngtcp2_crypto.h 31850 do : 31851 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 31852 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 31853 then : 31854 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 31855 USE_NGTCP2=1 31856 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS" 31857 export CURL_LIBRARY_PATH 31858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5 31859 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;} 31860 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_ossl" 31861 31862 printf "%s\n" "#define OPENSSL_QUIC_API2 1" >>confdefs.h 31863 31864 31865 fi 31866 31867 done 31868 31869 else $as_nop 31870 LDFLAGS=$CLEANLDFLAGS 31871 LDFLAGSPC=$CLEANLDFLAGSPC 31872 CPPFLAGS=$CLEANCPPFLAGS 31873 LIBS=$CLEANLIBS 31874 31875 fi 31876 31877 31878 else 31879 if test X"$want_tcp2" != Xdefault; then 31880 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_ossl pkg-config file." "$LINENO" 5 31881 fi 31882 fi 31883 fi 31884 31885 if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then 31886 CLEANLDFLAGS="$LDFLAGS" 31887 CLEANLDFLAGSPC="$LDFLAGSPC" 31888 CLEANCPPFLAGS="$CPPFLAGS" 31889 CLEANLIBS="$LIBS" 31890 31891 31892 if test -n "$PKG_CONFIG"; then 31893 PKGCONFIG="$PKG_CONFIG" 31894 else 31895 if test -n "$ac_tool_prefix"; then 31896 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31897 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31899 printf %s "checking for $ac_word... " >&6; } 31900 if test ${ac_cv_path_PKGCONFIG+y} 31901 then : 31902 printf %s "(cached) " >&6 31903 else $as_nop 31904 case $PKGCONFIG in 31905 [\\/]* | ?:[\\/]*) 31906 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31907 ;; 31908 *) 31909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31910 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31911 for as_dir in $as_dummy 31912 do 31913 IFS=$as_save_IFS 31914 case $as_dir in #((( 31915 '') as_dir=./ ;; 31916 */) ;; 31917 *) as_dir=$as_dir/ ;; 31918 esac 31919 for ac_exec_ext in '' $ac_executable_extensions; do 31920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31921 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31923 break 2 31924 fi 31925 done 31926 done 31927 IFS=$as_save_IFS 31928 31929 ;; 31930 esac 31931 fi 31932 PKGCONFIG=$ac_cv_path_PKGCONFIG 31933 if test -n "$PKGCONFIG"; then 31934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31935 printf "%s\n" "$PKGCONFIG" >&6; } 31936 else 31937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31938 printf "%s\n" "no" >&6; } 31939 fi 31940 31941 31942 fi 31943 if test -z "$ac_cv_path_PKGCONFIG"; then 31944 ac_pt_PKGCONFIG=$PKGCONFIG 31945 # Extract the first word of "pkg-config", so it can be a program name with args. 31946 set dummy pkg-config; ac_word=$2 31947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31948 printf %s "checking for $ac_word... " >&6; } 31949 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31950 then : 31951 printf %s "(cached) " >&6 31952 else $as_nop 31953 case $ac_pt_PKGCONFIG in 31954 [\\/]* | ?:[\\/]*) 31955 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31956 ;; 31957 *) 31958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31959 as_dummy="$PATH:/usr/bin:/usr/local/bin" 31960 for as_dir in $as_dummy 31961 do 31962 IFS=$as_save_IFS 31963 case $as_dir in #((( 31964 '') as_dir=./ ;; 31965 */) ;; 31966 *) as_dir=$as_dir/ ;; 31967 esac 31968 for ac_exec_ext in '' $ac_executable_extensions; do 31969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31970 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31972 break 2 31973 fi 31974 done 31975 done 31976 IFS=$as_save_IFS 31977 31978 ;; 31979 esac 31980 fi 31981 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31982 if test -n "$ac_pt_PKGCONFIG"; then 31983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31984 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31985 else 31986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31987 printf "%s\n" "no" >&6; } 31988 fi 31989 31990 if test "x$ac_pt_PKGCONFIG" = x; then 31991 PKGCONFIG="no" 31992 else 31993 case $cross_compiling:$ac_tool_warned in 31994 yes:) 31995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31997 ac_tool_warned=yes ;; 31998 esac 31999 PKGCONFIG=$ac_pt_PKGCONFIG 32000 fi 32001 else 32002 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32003 fi 32004 32005 fi 32006 32007 if test "x$PKGCONFIG" != "xno"; then 32008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_boringssl options with pkg-config" >&5 32009 printf %s "checking for libngtcp2_crypto_boringssl options with pkg-config... " >&6; } 32010 itexists=` 32011 if test -n "$want_tcp2_path"; then 32012 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32013 export PKG_CONFIG_LIBDIR 32014 fi 32015 $PKGCONFIG --exists libngtcp2_crypto_boringssl >/dev/null 2>&1 && echo 1` 32016 32017 if test -z "$itexists"; then 32018 PKGCONFIG="no" 32019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32020 printf "%s\n" "no" >&6; } 32021 else 32022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32023 printf "%s\n" "found" >&6; } 32024 fi 32025 fi 32026 32027 32028 if test "$PKGCONFIG" != "no"; then 32029 LIB_NGTCP2_CRYPTO_BORINGSSL=` 32030 if test -n "$want_tcp2_path"; then 32031 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32032 export PKG_CONFIG_LIBDIR 32033 fi 32034 32035 $PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl` 32036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&5 32037 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&6;} 32038 32039 CPP_NGTCP2_CRYPTO_BORINGSSL=` 32040 if test -n "$want_tcp2_path"; then 32041 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32042 export PKG_CONFIG_LIBDIR 32043 fi 32044 $PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl` 32045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&5 32046 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&6;} 32047 32048 LD_NGTCP2_CRYPTO_BORINGSSL=` 32049 if test -n "$want_tcp2_path"; then 32050 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32051 export PKG_CONFIG_LIBDIR 32052 fi 32053 32054 $PKGCONFIG --libs-only-L libngtcp2_crypto_boringssl` 32055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&5 32056 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&6;} 32057 32058 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_BORINGSSL" 32059 LDFLAGSPC="$LDFLAGSPC $LD_NGTCP2_CRYPTO_BORINGSSL" 32060 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_BORINGSSL" 32061 LIBS="$LIB_NGTCP2_CRYPTO_BORINGSSL $LIBS" 32062 32063 if test "x$cross_compiling" != "xyes"; then 32064 DIR_NGTCP2_CRYPTO_BORINGSSL=`echo $LD_NGTCP2_CRYPTO_BORINGSSL | $SED -e 's/^-L//'` 32065 fi 32066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl" >&5 32067 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl... " >&6; } 32068 if test ${ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb+y} 32069 then : 32070 printf %s "(cached) " >&6 32071 else $as_nop 32072 ac_check_lib_save_LIBS=$LIBS 32073 LIBS="-lngtcp2_crypto_boringssl $LIBS" 32074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32075 /* end confdefs.h. */ 32076 32077 32078 #ifdef __cplusplus 32079 extern "C" 32080 #endif 32081 char ngtcp2_crypto_recv_client_initial_cb (); 32082 int main(void) 32083 { 32084 return ngtcp2_crypto_recv_client_initial_cb (); 32085 return 0; 32086 } 32087 _ACEOF 32088 if ac_fn_c_try_link "$LINENO" 32089 then : 32090 ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=yes 32091 else $as_nop 32092 ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=no 32093 fi 32094 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32095 conftest$ac_exeext conftest.$ac_ext 32096 LIBS=$ac_check_lib_save_LIBS 32097 fi 32098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&5 32099 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&6; } 32100 if test "x$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" = xyes 32101 then : 32102 32103 for ac_header in ngtcp2/ngtcp2_crypto.h 32104 do : 32105 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 32106 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 32107 then : 32108 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 32109 USE_NGTCP2=1 32110 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_BORINGSSL" 32111 export CURL_LIBRARY_PATH 32112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&5 32113 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&6;} 32114 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_boringssl" 32115 32116 fi 32117 32118 done 32119 32120 else $as_nop 32121 LDFLAGS=$CLEANLDFLAGS 32122 LDFLAGSPC=$CLEANLDFLAGSPC 32123 CPPFLAGS=$CLEANCPPFLAGS 32124 LIBS=$CLEANLIBS 32125 32126 fi 32127 32128 32129 else 32130 if test X"$want_tcp2" != Xdefault; then 32131 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_boringssl pkg-config file." "$LINENO" 5 32132 fi 32133 fi 32134 fi 32135 32136 if test "x$USE_NGTCP2" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then 32137 CLEANLDFLAGS="$LDFLAGS" 32138 CLEANLDFLAGSPC="$LDFLAGSPC" 32139 CLEANCPPFLAGS="$CPPFLAGS" 32140 CLEANLIBS="$LIBS" 32141 32142 32143 if test -n "$PKG_CONFIG"; then 32144 PKGCONFIG="$PKG_CONFIG" 32145 else 32146 if test -n "$ac_tool_prefix"; then 32147 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32148 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32150 printf %s "checking for $ac_word... " >&6; } 32151 if test ${ac_cv_path_PKGCONFIG+y} 32152 then : 32153 printf %s "(cached) " >&6 32154 else $as_nop 32155 case $PKGCONFIG in 32156 [\\/]* | ?:[\\/]*) 32157 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32158 ;; 32159 *) 32160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32161 as_dummy="$PATH:/usr/bin:/usr/local/bin" 32162 for as_dir in $as_dummy 32163 do 32164 IFS=$as_save_IFS 32165 case $as_dir in #((( 32166 '') as_dir=./ ;; 32167 */) ;; 32168 *) as_dir=$as_dir/ ;; 32169 esac 32170 for ac_exec_ext in '' $ac_executable_extensions; do 32171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32172 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32174 break 2 32175 fi 32176 done 32177 done 32178 IFS=$as_save_IFS 32179 32180 ;; 32181 esac 32182 fi 32183 PKGCONFIG=$ac_cv_path_PKGCONFIG 32184 if test -n "$PKGCONFIG"; then 32185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32186 printf "%s\n" "$PKGCONFIG" >&6; } 32187 else 32188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32189 printf "%s\n" "no" >&6; } 32190 fi 32191 32192 32193 fi 32194 if test -z "$ac_cv_path_PKGCONFIG"; then 32195 ac_pt_PKGCONFIG=$PKGCONFIG 32196 # Extract the first word of "pkg-config", so it can be a program name with args. 32197 set dummy pkg-config; ac_word=$2 32198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32199 printf %s "checking for $ac_word... " >&6; } 32200 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32201 then : 32202 printf %s "(cached) " >&6 32203 else $as_nop 32204 case $ac_pt_PKGCONFIG in 32205 [\\/]* | ?:[\\/]*) 32206 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32207 ;; 32208 *) 32209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32210 as_dummy="$PATH:/usr/bin:/usr/local/bin" 32211 for as_dir in $as_dummy 32212 do 32213 IFS=$as_save_IFS 32214 case $as_dir in #((( 32215 '') as_dir=./ ;; 32216 */) ;; 32217 *) as_dir=$as_dir/ ;; 32218 esac 32219 for ac_exec_ext in '' $ac_executable_extensions; do 32220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32221 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32223 break 2 32224 fi 32225 done 32226 done 32227 IFS=$as_save_IFS 32228 32229 ;; 32230 esac 32231 fi 32232 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32233 if test -n "$ac_pt_PKGCONFIG"; then 32234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32235 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32236 else 32237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32238 printf "%s\n" "no" >&6; } 32239 fi 32240 32241 if test "x$ac_pt_PKGCONFIG" = x; then 32242 PKGCONFIG="no" 32243 else 32244 case $cross_compiling:$ac_tool_warned in 32245 yes:) 32246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32248 ac_tool_warned=yes ;; 32249 esac 32250 PKGCONFIG=$ac_pt_PKGCONFIG 32251 fi 32252 else 32253 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32254 fi 32255 32256 fi 32257 32258 if test "x$PKGCONFIG" != "xno"; then 32259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5 32260 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; } 32261 itexists=` 32262 if test -n "$want_tcp2_path"; then 32263 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32264 export PKG_CONFIG_LIBDIR 32265 fi 32266 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1` 32267 32268 if test -z "$itexists"; then 32269 PKGCONFIG="no" 32270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32271 printf "%s\n" "no" >&6; } 32272 else 32273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32274 printf "%s\n" "found" >&6; } 32275 fi 32276 fi 32277 32278 32279 if test "$PKGCONFIG" != "no"; then 32280 LIB_NGTCP2_CRYPTO_GNUTLS=` 32281 if test -n "$want_tcp2_path"; then 32282 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32283 export PKG_CONFIG_LIBDIR 32284 fi 32285 32286 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls` 32287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5 32288 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;} 32289 32290 CPP_NGTCP2_CRYPTO_GNUTLS=` 32291 if test -n "$want_tcp2_path"; then 32292 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32293 export PKG_CONFIG_LIBDIR 32294 fi 32295 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls` 32296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5 32297 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;} 32298 32299 LD_NGTCP2_CRYPTO_GNUTLS=` 32300 if test -n "$want_tcp2_path"; then 32301 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32302 export PKG_CONFIG_LIBDIR 32303 fi 32304 32305 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls` 32306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5 32307 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;} 32308 32309 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS" 32310 LDFLAGSPC="$LDFLAGSPC $LD_NGTCP2_CRYPTO_GNUTLS" 32311 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS" 32312 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS" 32313 32314 if test "x$cross_compiling" != "xyes"; then 32315 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'` 32316 fi 32317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5 32318 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; } 32319 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y} 32320 then : 32321 printf %s "(cached) " >&6 32322 else $as_nop 32323 ac_check_lib_save_LIBS=$LIBS 32324 LIBS="-lngtcp2_crypto_gnutls $LIBS" 32325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32326 /* end confdefs.h. */ 32327 32328 32329 #ifdef __cplusplus 32330 extern "C" 32331 #endif 32332 char ngtcp2_crypto_recv_client_initial_cb (); 32333 int main(void) 32334 { 32335 return ngtcp2_crypto_recv_client_initial_cb (); 32336 return 0; 32337 } 32338 _ACEOF 32339 if ac_fn_c_try_link "$LINENO" 32340 then : 32341 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes 32342 else $as_nop 32343 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no 32344 fi 32345 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32346 conftest$ac_exeext conftest.$ac_ext 32347 LIBS=$ac_check_lib_save_LIBS 32348 fi 32349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5 32350 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; } 32351 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes 32352 then : 32353 32354 for ac_header in ngtcp2/ngtcp2_crypto.h 32355 do : 32356 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 32357 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 32358 then : 32359 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 32360 USE_NGTCP2=1 32361 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS" 32362 export CURL_LIBRARY_PATH 32363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5 32364 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;} 32365 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_gnutls" 32366 32367 fi 32368 32369 done 32370 32371 else $as_nop 32372 LDFLAGS=$CLEANLDFLAGS 32373 LDFLAGSPC=$CLEANLDFLAGSPC 32374 CPPFLAGS=$CLEANCPPFLAGS 32375 LIBS=$CLEANLIBS 32376 32377 fi 32378 32379 32380 else 32381 if test X"$want_tcp2" != Xdefault; then 32382 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5 32383 fi 32384 fi 32385 fi 32386 32387 if test "x$USE_NGTCP2" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then 32388 CLEANLDFLAGS="$LDFLAGS" 32389 CLEANLDFLAGSPC="$LDFLAGSPC" 32390 CLEANCPPFLAGS="$CPPFLAGS" 32391 CLEANLIBS="$LIBS" 32392 32393 32394 if test -n "$PKG_CONFIG"; then 32395 PKGCONFIG="$PKG_CONFIG" 32396 else 32397 if test -n "$ac_tool_prefix"; then 32398 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32399 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32401 printf %s "checking for $ac_word... " >&6; } 32402 if test ${ac_cv_path_PKGCONFIG+y} 32403 then : 32404 printf %s "(cached) " >&6 32405 else $as_nop 32406 case $PKGCONFIG in 32407 [\\/]* | ?:[\\/]*) 32408 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32409 ;; 32410 *) 32411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32412 as_dummy="$PATH:/usr/bin:/usr/local/bin" 32413 for as_dir in $as_dummy 32414 do 32415 IFS=$as_save_IFS 32416 case $as_dir in #((( 32417 '') as_dir=./ ;; 32418 */) ;; 32419 *) as_dir=$as_dir/ ;; 32420 esac 32421 for ac_exec_ext in '' $ac_executable_extensions; do 32422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32423 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32425 break 2 32426 fi 32427 done 32428 done 32429 IFS=$as_save_IFS 32430 32431 ;; 32432 esac 32433 fi 32434 PKGCONFIG=$ac_cv_path_PKGCONFIG 32435 if test -n "$PKGCONFIG"; then 32436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32437 printf "%s\n" "$PKGCONFIG" >&6; } 32438 else 32439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32440 printf "%s\n" "no" >&6; } 32441 fi 32442 32443 32444 fi 32445 if test -z "$ac_cv_path_PKGCONFIG"; then 32446 ac_pt_PKGCONFIG=$PKGCONFIG 32447 # Extract the first word of "pkg-config", so it can be a program name with args. 32448 set dummy pkg-config; ac_word=$2 32449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32450 printf %s "checking for $ac_word... " >&6; } 32451 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32452 then : 32453 printf %s "(cached) " >&6 32454 else $as_nop 32455 case $ac_pt_PKGCONFIG in 32456 [\\/]* | ?:[\\/]*) 32457 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32458 ;; 32459 *) 32460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32461 as_dummy="$PATH:/usr/bin:/usr/local/bin" 32462 for as_dir in $as_dummy 32463 do 32464 IFS=$as_save_IFS 32465 case $as_dir in #((( 32466 '') as_dir=./ ;; 32467 */) ;; 32468 *) as_dir=$as_dir/ ;; 32469 esac 32470 for ac_exec_ext in '' $ac_executable_extensions; do 32471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32472 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32474 break 2 32475 fi 32476 done 32477 done 32478 IFS=$as_save_IFS 32479 32480 ;; 32481 esac 32482 fi 32483 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32484 if test -n "$ac_pt_PKGCONFIG"; then 32485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32486 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32487 else 32488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32489 printf "%s\n" "no" >&6; } 32490 fi 32491 32492 if test "x$ac_pt_PKGCONFIG" = x; then 32493 PKGCONFIG="no" 32494 else 32495 case $cross_compiling:$ac_tool_warned in 32496 yes:) 32497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32498 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32499 ac_tool_warned=yes ;; 32500 esac 32501 PKGCONFIG=$ac_pt_PKGCONFIG 32502 fi 32503 else 32504 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32505 fi 32506 32507 fi 32508 32509 if test "x$PKGCONFIG" != "xno"; then 32510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5 32511 printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; } 32512 itexists=` 32513 if test -n "$want_tcp2_path"; then 32514 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32515 export PKG_CONFIG_LIBDIR 32516 fi 32517 $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1` 32518 32519 if test -z "$itexists"; then 32520 PKGCONFIG="no" 32521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32522 printf "%s\n" "no" >&6; } 32523 else 32524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32525 printf "%s\n" "found" >&6; } 32526 fi 32527 fi 32528 32529 32530 if test "$PKGCONFIG" != "no"; then 32531 LIB_NGTCP2_CRYPTO_WOLFSSL=` 32532 if test -n "$want_tcp2_path"; then 32533 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32534 export PKG_CONFIG_LIBDIR 32535 fi 32536 32537 $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl` 32538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5 32539 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;} 32540 32541 CPP_NGTCP2_CRYPTO_WOLFSSL=` 32542 if test -n "$want_tcp2_path"; then 32543 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32544 export PKG_CONFIG_LIBDIR 32545 fi 32546 $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl` 32547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5 32548 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;} 32549 32550 LD_NGTCP2_CRYPTO_WOLFSSL=` 32551 if test -n "$want_tcp2_path"; then 32552 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32553 export PKG_CONFIG_LIBDIR 32554 fi 32555 32556 $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl` 32557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5 32558 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;} 32559 32560 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL" 32561 LDFLAGSPC="$LDFLAGSPC $LD_NGTCP2_CRYPTO_WOLFSSL" 32562 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL" 32563 LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS" 32564 32565 if test "x$cross_compiling" != "xyes"; then 32566 DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'` 32567 fi 32568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5 32569 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; } 32570 if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y} 32571 then : 32572 printf %s "(cached) " >&6 32573 else $as_nop 32574 ac_check_lib_save_LIBS=$LIBS 32575 LIBS="-lngtcp2_crypto_wolfssl $LIBS" 32576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32577 /* end confdefs.h. */ 32578 32579 32580 #ifdef __cplusplus 32581 extern "C" 32582 #endif 32583 char ngtcp2_crypto_recv_client_initial_cb (); 32584 int main(void) 32585 { 32586 return ngtcp2_crypto_recv_client_initial_cb (); 32587 return 0; 32588 } 32589 _ACEOF 32590 if ac_fn_c_try_link "$LINENO" 32591 then : 32592 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes 32593 else $as_nop 32594 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no 32595 fi 32596 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32597 conftest$ac_exeext conftest.$ac_ext 32598 LIBS=$ac_check_lib_save_LIBS 32599 fi 32600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5 32601 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; } 32602 if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes 32603 then : 32604 32605 for ac_header in ngtcp2/ngtcp2_crypto.h 32606 do : 32607 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 32608 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 32609 then : 32610 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 32611 USE_NGTCP2=1 32612 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL" 32613 export CURL_LIBRARY_PATH 32614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5 32615 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;} 32616 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_wolfssl" 32617 32618 fi 32619 32620 done 32621 32622 else $as_nop 32623 LDFLAGS=$CLEANLDFLAGS 32624 LDFLAGSPC=$CLEANLDFLAGSPC 32625 CPPFLAGS=$CLEANCPPFLAGS 32626 LIBS=$CLEANLIBS 32627 32628 fi 32629 32630 32631 else 32632 if test X"$want_tcp2" != Xdefault; then 32633 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5 32634 fi 32635 fi 32636 fi 32637 32638 32639 OPT_OPENSSL_QUIC="no" 32640 32641 if test "x$disable_http" = "xyes" -o "x$OPENSSL_ENABLED" != "x1"; then 32642 # without HTTP or without openssl, no use 32643 OPT_OPENSSL_QUIC="no" 32644 fi 32645 32646 32647 # Check whether --with-openssl-quic was given. 32648 if test ${with_openssl_quic+y} 32649 then : 32650 withval=$with_openssl_quic; OPT_OPENSSL_QUIC=$withval 32651 fi 32652 32653 case "$OPT_OPENSSL_QUIC" in 32654 no) 32655 want_openssl_quic="no" 32656 ;; 32657 yes) 32658 want_openssl_quic="yes" 32659 ;; 32660 esac 32661 32662 curl_openssl_quic_msg="no (--with-openssl-quic)" 32663 if test "x$want_openssl_quic" = "xyes"; then 32664 32665 if test "$USE_NGTCP2" = 1; then 32666 as_fn_error $? "--with-openssl-quic and --with-ngtcp2 are mutually exclusive" "$LINENO" 5 32667 fi 32668 if test "$have_openssl_quic" != 1; then 32669 as_fn_error $? "--with-openssl-quic requires quic support and OpenSSL >= 3.3.0" "$LINENO" 5 32670 fi 32671 32672 printf "%s\n" "#define USE_OPENSSL_QUIC 1" >>confdefs.h 32673 32674 USE_OPENSSL_QUIC=1 32675 fi 32676 32677 32678 OPT_NGHTTP3="yes" 32679 32680 if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then 32681 # without ngtcp2 or openssl quic, nghttp3 is of no use for us 32682 OPT_NGHTTP3="no" 32683 want_nghttp3="no" 32684 fi 32685 32686 32687 # Check whether --with-nghttp3 was given. 32688 if test ${with_nghttp3+y} 32689 then : 32690 withval=$with_nghttp3; OPT_NGHTTP3=$withval 32691 fi 32692 32693 case "$OPT_NGHTTP3" in 32694 no) 32695 want_nghttp3="no" 32696 ;; 32697 yes) 32698 want_nghttp3="default" 32699 want_nghttp3_path="" 32700 ;; 32701 *) 32702 want_nghttp3="yes" 32703 want_nghttp3_path="$withval/lib/pkgconfig" 32704 ;; 32705 esac 32706 32707 curl_http3_msg="no (--with-nghttp3)" 32708 if test X"$want_nghttp3" != Xno; then 32709 32710 if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then 32711 # without ngtcp2 or openssl quic, nghttp3 is of no use for us 32712 as_fn_error $? "nghttp3 enabled without a QUIC library; enable ngtcp2 or OpenSSL-QUIC" "$LINENO" 5 32713 fi 32714 32715 CLEANLDFLAGS="$LDFLAGS" 32716 CLEANLDFLAGSPC="$LDFLAGSPC" 32717 CLEANCPPFLAGS="$CPPFLAGS" 32718 CLEANLIBS="$LIBS" 32719 32720 32721 if test -n "$PKG_CONFIG"; then 32722 PKGCONFIG="$PKG_CONFIG" 32723 else 32724 if test -n "$ac_tool_prefix"; then 32725 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32726 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32728 printf %s "checking for $ac_word... " >&6; } 32729 if test ${ac_cv_path_PKGCONFIG+y} 32730 then : 32731 printf %s "(cached) " >&6 32732 else $as_nop 32733 case $PKGCONFIG in 32734 [\\/]* | ?:[\\/]*) 32735 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32736 ;; 32737 *) 32738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32739 as_dummy="$PATH:/usr/bin:/usr/local/bin" 32740 for as_dir in $as_dummy 32741 do 32742 IFS=$as_save_IFS 32743 case $as_dir in #((( 32744 '') as_dir=./ ;; 32745 */) ;; 32746 *) as_dir=$as_dir/ ;; 32747 esac 32748 for ac_exec_ext in '' $ac_executable_extensions; do 32749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32750 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32752 break 2 32753 fi 32754 done 32755 done 32756 IFS=$as_save_IFS 32757 32758 ;; 32759 esac 32760 fi 32761 PKGCONFIG=$ac_cv_path_PKGCONFIG 32762 if test -n "$PKGCONFIG"; then 32763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32764 printf "%s\n" "$PKGCONFIG" >&6; } 32765 else 32766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32767 printf "%s\n" "no" >&6; } 32768 fi 32769 32770 32771 fi 32772 if test -z "$ac_cv_path_PKGCONFIG"; then 32773 ac_pt_PKGCONFIG=$PKGCONFIG 32774 # Extract the first word of "pkg-config", so it can be a program name with args. 32775 set dummy pkg-config; ac_word=$2 32776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32777 printf %s "checking for $ac_word... " >&6; } 32778 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32779 then : 32780 printf %s "(cached) " >&6 32781 else $as_nop 32782 case $ac_pt_PKGCONFIG in 32783 [\\/]* | ?:[\\/]*) 32784 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32785 ;; 32786 *) 32787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32788 as_dummy="$PATH:/usr/bin:/usr/local/bin" 32789 for as_dir in $as_dummy 32790 do 32791 IFS=$as_save_IFS 32792 case $as_dir in #((( 32793 '') as_dir=./ ;; 32794 */) ;; 32795 *) as_dir=$as_dir/ ;; 32796 esac 32797 for ac_exec_ext in '' $ac_executable_extensions; do 32798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32799 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32801 break 2 32802 fi 32803 done 32804 done 32805 IFS=$as_save_IFS 32806 32807 ;; 32808 esac 32809 fi 32810 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32811 if test -n "$ac_pt_PKGCONFIG"; then 32812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32813 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32814 else 32815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32816 printf "%s\n" "no" >&6; } 32817 fi 32818 32819 if test "x$ac_pt_PKGCONFIG" = x; then 32820 PKGCONFIG="no" 32821 else 32822 case $cross_compiling:$ac_tool_warned in 32823 yes:) 32824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32826 ac_tool_warned=yes ;; 32827 esac 32828 PKGCONFIG=$ac_pt_PKGCONFIG 32829 fi 32830 else 32831 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32832 fi 32833 32834 fi 32835 32836 if test "x$PKGCONFIG" != "xno"; then 32837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5 32838 printf %s "checking for libnghttp3 options with pkg-config... " >&6; } 32839 itexists=` 32840 if test -n "$want_nghttp3_path"; then 32841 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32842 export PKG_CONFIG_LIBDIR 32843 fi 32844 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1` 32845 32846 if test -z "$itexists"; then 32847 PKGCONFIG="no" 32848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32849 printf "%s\n" "no" >&6; } 32850 else 32851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32852 printf "%s\n" "found" >&6; } 32853 fi 32854 fi 32855 32856 32857 if test "$PKGCONFIG" != "no"; then 32858 LIB_NGHTTP3=` 32859 if test -n "$want_nghttp3_path"; then 32860 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32861 export PKG_CONFIG_LIBDIR 32862 fi 32863 32864 $PKGCONFIG --libs-only-l libnghttp3` 32865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5 32866 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;} 32867 32868 CPP_NGHTTP3=` 32869 if test -n "$want_nghttp3_path"; then 32870 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32871 export PKG_CONFIG_LIBDIR 32872 fi 32873 $PKGCONFIG --cflags-only-I libnghttp3` 32874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5 32875 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;} 32876 32877 LD_NGHTTP3=` 32878 if test -n "$want_nghttp3_path"; then 32879 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32880 export PKG_CONFIG_LIBDIR 32881 fi 32882 32883 $PKGCONFIG --libs-only-L libnghttp3` 32884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5 32885 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;} 32886 32887 LDFLAGS="$LDFLAGS $LD_NGHTTP3" 32888 LDFLAGSPC="$LDFLAGSPC $LD_NGHTTP3" 32889 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3" 32890 LIBS="$LIB_NGHTTP3 $LIBS" 32891 32892 if test "x$cross_compiling" != "xyes"; then 32893 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'` 32894 fi 32895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5 32896 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; } 32897 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y} 32898 then : 32899 printf %s "(cached) " >&6 32900 else $as_nop 32901 ac_check_lib_save_LIBS=$LIBS 32902 LIBS="-lnghttp3 $LIBS" 32903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32904 /* end confdefs.h. */ 32905 32906 32907 #ifdef __cplusplus 32908 extern "C" 32909 #endif 32910 char nghttp3_conn_client_new_versioned (); 32911 int main(void) 32912 { 32913 return nghttp3_conn_client_new_versioned (); 32914 return 0; 32915 } 32916 _ACEOF 32917 if ac_fn_c_try_link "$LINENO" 32918 then : 32919 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes 32920 else $as_nop 32921 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no 32922 fi 32923 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32924 conftest$ac_exeext conftest.$ac_ext 32925 LIBS=$ac_check_lib_save_LIBS 32926 fi 32927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5 32928 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; } 32929 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes 32930 then : 32931 32932 for ac_header in nghttp3/nghttp3.h 32933 do : 32934 ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default" 32935 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes 32936 then : 32937 printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h 32938 32939 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h 32940 32941 USE_NGHTTP3=1 32942 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3" 32943 export CURL_LIBRARY_PATH 32944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5 32945 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;} 32946 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libnghttp3" 32947 32948 fi 32949 32950 done 32951 32952 else $as_nop 32953 LDFLAGS=$CLEANLDFLAGS 32954 LDFLAGSPC=$CLEANLDFLAGSPC 32955 CPPFLAGS=$CLEANCPPFLAGS 32956 LIBS=$CLEANLIBS 32957 32958 fi 32959 32960 32961 else 32962 if test X"$want_nghttp3" != Xdefault; then 32963 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5 32964 fi 32965 fi 32966 fi 32967 32968 32969 if test "x$USE_NGTCP2" = "x1" -a "x$USE_NGHTTP3" = "x1"; then 32970 USE_NGTCP2_H3=1 32971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5 32972 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;} 32973 curl_h3_msg="enabled (ngtcp2 + nghttp3)" 32974 fi 32975 32976 32977 if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then 32978 experimental="$experimental HTTP3" 32979 USE_OPENSSL_H3=1 32980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5 32981 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;} 32982 curl_h3_msg="enabled (openssl + nghttp3)" 32983 fi 32984 32985 32986 OPT_QUICHE="no" 32987 32988 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then 32989 # without HTTP or with ngtcp2, quiche is no use 32990 OPT_QUICHE="no" 32991 fi 32992 32993 32994 # Check whether --with-quiche was given. 32995 if test ${with_quiche+y} 32996 then : 32997 withval=$with_quiche; OPT_QUICHE=$withval 32998 fi 32999 33000 case "$OPT_QUICHE" in 33001 no) 33002 want_quiche="no" 33003 ;; 33004 yes) 33005 want_quiche="default" 33006 want_quiche_path="" 33007 ;; 33008 *) 33009 want_quiche="yes" 33010 want_quiche_path="$withval" 33011 ;; 33012 esac 33013 33014 if test X"$want_quiche" != Xno; then 33015 33016 if test "$QUIC_ENABLED" != "yes"; then 33017 as_fn_error $? "the detected TLS library does not support QUIC, making --with-quiche a no-no" "$LINENO" 5 33018 fi 33019 33020 if test "$NGHTTP3_ENABLED" = 1; then 33021 as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5 33022 fi 33023 33024 CLEANLDFLAGS="$LDFLAGS" 33025 CLEANLDFLAGSPC="$LDFLAGSPC" 33026 CLEANCPPFLAGS="$CPPFLAGS" 33027 CLEANLIBS="$LIBS" 33028 33029 33030 if test -n "$PKG_CONFIG"; then 33031 PKGCONFIG="$PKG_CONFIG" 33032 else 33033 if test -n "$ac_tool_prefix"; then 33034 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33035 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33037 printf %s "checking for $ac_word... " >&6; } 33038 if test ${ac_cv_path_PKGCONFIG+y} 33039 then : 33040 printf %s "(cached) " >&6 33041 else $as_nop 33042 case $PKGCONFIG in 33043 [\\/]* | ?:[\\/]*) 33044 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 33045 ;; 33046 *) 33047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33048 as_dummy="$PATH:/usr/bin:/usr/local/bin" 33049 for as_dir in $as_dummy 33050 do 33051 IFS=$as_save_IFS 33052 case $as_dir in #((( 33053 '') as_dir=./ ;; 33054 */) ;; 33055 *) as_dir=$as_dir/ ;; 33056 esac 33057 for ac_exec_ext in '' $ac_executable_extensions; do 33058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33059 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33061 break 2 33062 fi 33063 done 33064 done 33065 IFS=$as_save_IFS 33066 33067 ;; 33068 esac 33069 fi 33070 PKGCONFIG=$ac_cv_path_PKGCONFIG 33071 if test -n "$PKGCONFIG"; then 33072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 33073 printf "%s\n" "$PKGCONFIG" >&6; } 33074 else 33075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33076 printf "%s\n" "no" >&6; } 33077 fi 33078 33079 33080 fi 33081 if test -z "$ac_cv_path_PKGCONFIG"; then 33082 ac_pt_PKGCONFIG=$PKGCONFIG 33083 # Extract the first word of "pkg-config", so it can be a program name with args. 33084 set dummy pkg-config; ac_word=$2 33085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33086 printf %s "checking for $ac_word... " >&6; } 33087 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 33088 then : 33089 printf %s "(cached) " >&6 33090 else $as_nop 33091 case $ac_pt_PKGCONFIG in 33092 [\\/]* | ?:[\\/]*) 33093 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 33094 ;; 33095 *) 33096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33097 as_dummy="$PATH:/usr/bin:/usr/local/bin" 33098 for as_dir in $as_dummy 33099 do 33100 IFS=$as_save_IFS 33101 case $as_dir in #((( 33102 '') as_dir=./ ;; 33103 */) ;; 33104 *) as_dir=$as_dir/ ;; 33105 esac 33106 for ac_exec_ext in '' $ac_executable_extensions; do 33107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33108 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33110 break 2 33111 fi 33112 done 33113 done 33114 IFS=$as_save_IFS 33115 33116 ;; 33117 esac 33118 fi 33119 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 33120 if test -n "$ac_pt_PKGCONFIG"; then 33121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 33122 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 33123 else 33124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33125 printf "%s\n" "no" >&6; } 33126 fi 33127 33128 if test "x$ac_pt_PKGCONFIG" = x; then 33129 PKGCONFIG="no" 33130 else 33131 case $cross_compiling:$ac_tool_warned in 33132 yes:) 33133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33135 ac_tool_warned=yes ;; 33136 esac 33137 PKGCONFIG=$ac_pt_PKGCONFIG 33138 fi 33139 else 33140 PKGCONFIG="$ac_cv_path_PKGCONFIG" 33141 fi 33142 33143 fi 33144 33145 if test "x$PKGCONFIG" != "xno"; then 33146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5 33147 printf %s "checking for quiche options with pkg-config... " >&6; } 33148 itexists=` 33149 if test -n "$want_quiche_path"; then 33150 PKG_CONFIG_LIBDIR="$want_quiche_path" 33151 export PKG_CONFIG_LIBDIR 33152 fi 33153 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1` 33154 33155 if test -z "$itexists"; then 33156 PKGCONFIG="no" 33157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33158 printf "%s\n" "no" >&6; } 33159 else 33160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 33161 printf "%s\n" "found" >&6; } 33162 fi 33163 fi 33164 33165 33166 if test "$PKGCONFIG" != "no"; then 33167 LIB_QUICHE=` 33168 if test -n "$want_quiche_path"; then 33169 PKG_CONFIG_LIBDIR="$want_quiche_path" 33170 export PKG_CONFIG_LIBDIR 33171 fi 33172 33173 $PKGCONFIG --libs-only-l quiche` 33174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5 33175 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;} 33176 33177 CPP_QUICHE=` 33178 if test -n "$want_quiche_path"; then 33179 PKG_CONFIG_LIBDIR="$want_quiche_path" 33180 export PKG_CONFIG_LIBDIR 33181 fi 33182 $PKGCONFIG --cflags-only-I quiche` 33183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5 33184 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;} 33185 33186 LD_QUICHE=` 33187 if test -n "$want_quiche_path"; then 33188 PKG_CONFIG_LIBDIR="$want_quiche_path" 33189 export PKG_CONFIG_LIBDIR 33190 fi 33191 33192 $PKGCONFIG --libs-only-L quiche` 33193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5 33194 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;} 33195 33196 LDFLAGS="$LDFLAGS $LD_QUICHE" 33197 LDFLAGSPC="$LDFLAGSPC $LD_QUICHE" 33198 CPPFLAGS="$CPPFLAGS $CPP_QUICHE" 33199 LIBS="$LIB_QUICHE $LIBS" 33200 33201 if test "x$cross_compiling" != "xyes"; then 33202 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'` 33203 fi 33204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5 33205 printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; } 33206 if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y} 33207 then : 33208 printf %s "(cached) " >&6 33209 else $as_nop 33210 ac_check_lib_save_LIBS=$LIBS 33211 LIBS="-lquiche $LIBS" 33212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33213 /* end confdefs.h. */ 33214 33215 33216 #ifdef __cplusplus 33217 extern "C" 33218 #endif 33219 char quiche_conn_send_ack_eliciting (); 33220 int main(void) 33221 { 33222 return quiche_conn_send_ack_eliciting (); 33223 return 0; 33224 } 33225 _ACEOF 33226 if ac_fn_c_try_link "$LINENO" 33227 then : 33228 ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes 33229 else $as_nop 33230 ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no 33231 fi 33232 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33233 conftest$ac_exeext conftest.$ac_ext 33234 LIBS=$ac_check_lib_save_LIBS 33235 fi 33236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5 33237 printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; } 33238 if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes 33239 then : 33240 33241 for ac_header in quiche.h 33242 do : 33243 ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" " 33244 $ac_includes_default 33245 #include <sys/socket.h> 33246 33247 33248 " 33249 if test "x$ac_cv_header_quiche_h" = xyes 33250 then : 33251 printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h 33252 experimental="$experimental HTTP3" 33253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5 33254 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;} 33255 curl_h3_msg="enabled (quiche)" 33256 33257 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h 33258 33259 USE_QUICHE=1 33260 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd" 33261 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes 33262 then : 33263 printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h 33264 33265 fi 33266 33267 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE" 33268 export CURL_LIBRARY_PATH 33269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5 33270 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;} 33271 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE quiche" 33272 fi 33273 33274 done 33275 33276 else $as_nop 33277 as_fn_error $? "couldn't use quiche" "$LINENO" 5 33278 33279 fi 33280 33281 else 33282 if test X"$want_quiche" != Xdefault; then 33283 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5 33284 fi 33285 fi 33286 fi 33287 33288 33289 OPT_MSH3="no" 33290 33291 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then 33292 # without HTTP or with ngtcp2, msh3 is no use 33293 OPT_MSH3="no" 33294 fi 33295 33296 33297 # Check whether --with-msh3 was given. 33298 if test ${with_msh3+y} 33299 then : 33300 withval=$with_msh3; OPT_MSH3=$withval 33301 fi 33302 33303 case "$OPT_MSH3" in 33304 no) 33305 want_msh3="no" 33306 ;; 33307 yes) 33308 want_msh3="default" 33309 want_msh3_path="" 33310 ;; 33311 *) 33312 want_msh3="yes" 33313 want_msh3_path="$withval" 33314 ;; 33315 esac 33316 33317 if test X"$want_msh3" != Xno; then 33318 33319 if test "$curl_cv_native_windows" != "yes"; then 33320 if test "$QUIC_ENABLED" != "yes"; then 33321 as_fn_error $? "the detected TLS library does not support QUIC, making --with-msh3 a no-no" "$LINENO" 5 33322 fi 33323 if test "$OPENSSL_ENABLED" != "1"; then 33324 as_fn_error $? "msh3/msquic requires OpenSSL" "$LINENO" 5 33325 fi 33326 fi 33327 33328 if test "$NGHTTP3_ENABLED" = 1; then 33329 as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5 33330 fi 33331 if test "$USE_QUICHE" = 1; then 33332 as_fn_error $? "--with-msh3 and --with-quiche are mutually exclusive" "$LINENO" 5 33333 fi 33334 33335 CLEANLDFLAGS="$LDFLAGS" 33336 CLEANLDFLAGSPC="$LDFLAGSPC" 33337 CLEANCPPFLAGS="$CPPFLAGS" 33338 CLEANLIBS="$LIBS" 33339 33340 if test -n "$want_msh3_path"; then 33341 LD_MSH3="-L$want_msh3_path/lib" 33342 CPP_MSH3="-I$want_msh3_path/include" 33343 DIR_MSH3="$want_msh3_path/lib" 33344 LDFLAGS="$LDFLAGS $LD_MSH3" 33345 LDFLAGSPC="$LDFLAGSPC $LD_MSH3" 33346 CPPFLAGS="$CPPFLAGS $CPP_MSH3" 33347 fi 33348 LIBS="-lmsh3 $LIBS" 33349 33350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5 33351 printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; } 33352 if test ${ac_cv_lib_msh3_MsH3ApiOpen+y} 33353 then : 33354 printf %s "(cached) " >&6 33355 else $as_nop 33356 ac_check_lib_save_LIBS=$LIBS 33357 LIBS="-lmsh3 $LIBS" 33358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33359 /* end confdefs.h. */ 33360 33361 33362 #ifdef __cplusplus 33363 extern "C" 33364 #endif 33365 char MsH3ApiOpen (); 33366 int main(void) 33367 { 33368 return MsH3ApiOpen (); 33369 return 0; 33370 } 33371 _ACEOF 33372 if ac_fn_c_try_link "$LINENO" 33373 then : 33374 ac_cv_lib_msh3_MsH3ApiOpen=yes 33375 else $as_nop 33376 ac_cv_lib_msh3_MsH3ApiOpen=no 33377 fi 33378 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33379 conftest$ac_exeext conftest.$ac_ext 33380 LIBS=$ac_check_lib_save_LIBS 33381 fi 33382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5 33383 printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; } 33384 if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes 33385 then : 33386 33387 for ac_header in msh3.h 33388 do : 33389 ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default" 33390 if test "x$ac_cv_header_msh3_h" = xyes 33391 then : 33392 printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h 33393 curl_h3_msg="enabled (msh3)" 33394 33395 printf "%s\n" "#define USE_MSH3 1" >>confdefs.h 33396 33397 USE_MSH3=1 33398 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3" 33399 export CURL_LIBRARY_PATH 33400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5 33401 printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;} 33402 if false; then 33403 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libmsh3" 33404 fi 33405 experimental="$experimental HTTP3" 33406 33407 fi 33408 33409 done 33410 33411 else $as_nop 33412 LDFLAGS=$CLEANLDFLAGS 33413 LDFLAGSPC=$CLEANLDFLAGSPC 33414 CPPFLAGS=$CLEANCPPFLAGS 33415 LIBS=$CLEANLIBS 33416 33417 fi 33418 33419 fi 33420 33421 33422 OPT_LIBUV=no 33423 33424 # Check whether --with-libuv was given. 33425 if test ${with_libuv+y} 33426 then : 33427 withval=$with_libuv; OPT_LIBUV=$withval 33428 fi 33429 33430 case "$OPT_LIBUV" in 33431 no) 33432 want_libuv="no" 33433 ;; 33434 yes) 33435 want_libuv="default" 33436 want_libuv_path="" 33437 ;; 33438 *) 33439 want_libuv="yes" 33440 want_libuv_path="$withval" 33441 ;; 33442 esac 33443 33444 if test X"$want_libuv" != Xno; then 33445 if test x$want_debug != xyes; then 33446 as_fn_error $? "Using libuv without debug support enabled is useless" "$LINENO" 5 33447 fi 33448 33449 CLEANLDFLAGS="$LDFLAGS" 33450 CLEANLDFLAGSPC="$LDFLAGSPC" 33451 CLEANCPPFLAGS="$CPPFLAGS" 33452 CLEANLIBS="$LIBS" 33453 33454 33455 if test -n "$PKG_CONFIG"; then 33456 PKGCONFIG="$PKG_CONFIG" 33457 else 33458 if test -n "$ac_tool_prefix"; then 33459 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33460 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33462 printf %s "checking for $ac_word... " >&6; } 33463 if test ${ac_cv_path_PKGCONFIG+y} 33464 then : 33465 printf %s "(cached) " >&6 33466 else $as_nop 33467 case $PKGCONFIG in 33468 [\\/]* | ?:[\\/]*) 33469 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 33470 ;; 33471 *) 33472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33473 as_dummy="$PATH:/usr/bin:/usr/local/bin" 33474 for as_dir in $as_dummy 33475 do 33476 IFS=$as_save_IFS 33477 case $as_dir in #((( 33478 '') as_dir=./ ;; 33479 */) ;; 33480 *) as_dir=$as_dir/ ;; 33481 esac 33482 for ac_exec_ext in '' $ac_executable_extensions; do 33483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33484 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33486 break 2 33487 fi 33488 done 33489 done 33490 IFS=$as_save_IFS 33491 33492 ;; 33493 esac 33494 fi 33495 PKGCONFIG=$ac_cv_path_PKGCONFIG 33496 if test -n "$PKGCONFIG"; then 33497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 33498 printf "%s\n" "$PKGCONFIG" >&6; } 33499 else 33500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33501 printf "%s\n" "no" >&6; } 33502 fi 33503 33504 33505 fi 33506 if test -z "$ac_cv_path_PKGCONFIG"; then 33507 ac_pt_PKGCONFIG=$PKGCONFIG 33508 # Extract the first word of "pkg-config", so it can be a program name with args. 33509 set dummy pkg-config; ac_word=$2 33510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33511 printf %s "checking for $ac_word... " >&6; } 33512 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 33513 then : 33514 printf %s "(cached) " >&6 33515 else $as_nop 33516 case $ac_pt_PKGCONFIG in 33517 [\\/]* | ?:[\\/]*) 33518 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 33519 ;; 33520 *) 33521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33522 as_dummy="$PATH:/usr/bin:/usr/local/bin" 33523 for as_dir in $as_dummy 33524 do 33525 IFS=$as_save_IFS 33526 case $as_dir in #((( 33527 '') as_dir=./ ;; 33528 */) ;; 33529 *) as_dir=$as_dir/ ;; 33530 esac 33531 for ac_exec_ext in '' $ac_executable_extensions; do 33532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33533 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33535 break 2 33536 fi 33537 done 33538 done 33539 IFS=$as_save_IFS 33540 33541 ;; 33542 esac 33543 fi 33544 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 33545 if test -n "$ac_pt_PKGCONFIG"; then 33546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 33547 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 33548 else 33549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33550 printf "%s\n" "no" >&6; } 33551 fi 33552 33553 if test "x$ac_pt_PKGCONFIG" = x; then 33554 PKGCONFIG="no" 33555 else 33556 case $cross_compiling:$ac_tool_warned in 33557 yes:) 33558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33559 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33560 ac_tool_warned=yes ;; 33561 esac 33562 PKGCONFIG=$ac_pt_PKGCONFIG 33563 fi 33564 else 33565 PKGCONFIG="$ac_cv_path_PKGCONFIG" 33566 fi 33567 33568 fi 33569 33570 if test "x$PKGCONFIG" != "xno"; then 33571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv options with pkg-config" >&5 33572 printf %s "checking for libuv options with pkg-config... " >&6; } 33573 itexists=` 33574 if test -n "$want_libuv_path"; then 33575 PKG_CONFIG_LIBDIR="$want_libuv_path" 33576 export PKG_CONFIG_LIBDIR 33577 fi 33578 $PKGCONFIG --exists libuv >/dev/null 2>&1 && echo 1` 33579 33580 if test -z "$itexists"; then 33581 PKGCONFIG="no" 33582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33583 printf "%s\n" "no" >&6; } 33584 else 33585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 33586 printf "%s\n" "found" >&6; } 33587 fi 33588 fi 33589 33590 33591 if test "$PKGCONFIG" != "no"; then 33592 LIB_LIBUV=` 33593 if test -n "$want_libuv_path"; then 33594 PKG_CONFIG_LIBDIR="$want_libuv_path" 33595 export PKG_CONFIG_LIBDIR 33596 fi 33597 33598 $PKGCONFIG --libs-only-l libuv` 33599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_LIBUV" >&5 33600 printf "%s\n" "$as_me: -l is $LIB_LIBUV" >&6;} 33601 33602 CPP_LIBUV=` 33603 if test -n "$want_libuv_path"; then 33604 PKG_CONFIG_LIBDIR="$want_libuv_path" 33605 export PKG_CONFIG_LIBDIR 33606 fi 33607 $PKGCONFIG --cflags-only-I libuv` 33608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_LIBUV" >&5 33609 printf "%s\n" "$as_me: -I is $CPP_LIBUV" >&6;} 33610 33611 LD_LIBUV=` 33612 if test -n "$want_libuv_path"; then 33613 PKG_CONFIG_LIBDIR="$want_libuv_path" 33614 export PKG_CONFIG_LIBDIR 33615 fi 33616 33617 $PKGCONFIG --libs-only-L libuv` 33618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_LIBUV" >&5 33619 printf "%s\n" "$as_me: -L is $LD_LIBUV" >&6;} 33620 33621 LDFLAGS="$LDFLAGS $LD_LIBUV" 33622 LDFLAGSPC="$LDFLAGSPC $LD_LIBUV" 33623 CPPFLAGS="$CPPFLAGS $CPP_LIBUV" 33624 LIBS="$LIB_LIBUV $LIBS" 33625 33626 if test "x$cross_compiling" != "xyes"; then 33627 DIR_LIBUV=`echo $LD_LIBUV | $SED -e 's/^-L//'` 33628 fi 33629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uv_default_loop in -luv" >&5 33630 printf %s "checking for uv_default_loop in -luv... " >&6; } 33631 if test ${ac_cv_lib_uv_uv_default_loop+y} 33632 then : 33633 printf %s "(cached) " >&6 33634 else $as_nop 33635 ac_check_lib_save_LIBS=$LIBS 33636 LIBS="-luv $LIBS" 33637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33638 /* end confdefs.h. */ 33639 33640 33641 #ifdef __cplusplus 33642 extern "C" 33643 #endif 33644 char uv_default_loop (); 33645 int main(void) 33646 { 33647 return uv_default_loop (); 33648 return 0; 33649 } 33650 _ACEOF 33651 if ac_fn_c_try_link "$LINENO" 33652 then : 33653 ac_cv_lib_uv_uv_default_loop=yes 33654 else $as_nop 33655 ac_cv_lib_uv_uv_default_loop=no 33656 fi 33657 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33658 conftest$ac_exeext conftest.$ac_ext 33659 LIBS=$ac_check_lib_save_LIBS 33660 fi 33661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uv_uv_default_loop" >&5 33662 printf "%s\n" "$ac_cv_lib_uv_uv_default_loop" >&6; } 33663 if test "x$ac_cv_lib_uv_uv_default_loop" = xyes 33664 then : 33665 33666 for ac_header in uv.h 33667 do : 33668 ac_fn_c_check_header_compile "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default" 33669 if test "x$ac_cv_header_uv_h" = xyes 33670 then : 33671 printf "%s\n" "#define HAVE_UV_H 1" >>confdefs.h 33672 33673 printf "%s\n" "#define USE_LIBUV 1" >>confdefs.h 33674 33675 USE_LIBUV=1 33676 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_LIBUV" 33677 export CURL_LIBRARY_PATH 33678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_LIBUV to CURL_LIBRARY_PATH" >&5 33679 printf "%s\n" "$as_me: Added $DIR_LIBUV to CURL_LIBRARY_PATH" >&6;} 33680 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libuv" 33681 33682 fi 33683 33684 done 33685 33686 else $as_nop 33687 LDFLAGS=$CLEANLDFLAGS 33688 LDFLAGSPC=$CLEANLDFLAGSPC 33689 CPPFLAGS=$CLEANCPPFLAGS 33690 LIBS=$CLEANLIBS 33691 33692 fi 33693 33694 33695 else 33696 if test X"$want_libuv" != Xdefault; then 33697 as_fn_error $? "--with-libuv was specified but could not find libuv pkg-config file." "$LINENO" 5 33698 fi 33699 fi 33700 33701 fi 33702 33703 33704 OPT_ZSH_FPATH=default 33705 33706 # Check whether --with-zsh-functions-dir was given. 33707 if test ${with_zsh_functions_dir+y} 33708 then : 33709 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval 33710 fi 33711 33712 case "$OPT_ZSH_FPATH" in 33713 default|no) 33714 ;; 33715 yes) 33716 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions" 33717 33718 ;; 33719 *) 33720 ZSH_FUNCTIONS_DIR="$withval" 33721 33722 ;; 33723 esac 33724 if test x"$ZSH_FUNCTIONS_DIR" != x; then 33725 USE_ZSH_COMPLETION_TRUE= 33726 USE_ZSH_COMPLETION_FALSE='#' 33727 else 33728 USE_ZSH_COMPLETION_TRUE='#' 33729 USE_ZSH_COMPLETION_FALSE= 33730 fi 33731 33732 33733 33734 OPT_FISH_FPATH=default 33735 33736 # Check whether --with-fish-functions-dir was given. 33737 if test ${with_fish_functions_dir+y} 33738 then : 33739 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval 33740 fi 33741 33742 case "$OPT_FISH_FPATH" in 33743 default|no) 33744 ;; 33745 yes) 33746 33747 if test -n "$PKG_CONFIG"; then 33748 PKGCONFIG="$PKG_CONFIG" 33749 else 33750 if test -n "$ac_tool_prefix"; then 33751 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33752 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33754 printf %s "checking for $ac_word... " >&6; } 33755 if test ${ac_cv_path_PKGCONFIG+y} 33756 then : 33757 printf %s "(cached) " >&6 33758 else $as_nop 33759 case $PKGCONFIG in 33760 [\\/]* | ?:[\\/]*) 33761 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 33762 ;; 33763 *) 33764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33765 as_dummy="$PATH:/usr/bin:/usr/local/bin" 33766 for as_dir in $as_dummy 33767 do 33768 IFS=$as_save_IFS 33769 case $as_dir in #((( 33770 '') as_dir=./ ;; 33771 */) ;; 33772 *) as_dir=$as_dir/ ;; 33773 esac 33774 for ac_exec_ext in '' $ac_executable_extensions; do 33775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33776 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33778 break 2 33779 fi 33780 done 33781 done 33782 IFS=$as_save_IFS 33783 33784 ;; 33785 esac 33786 fi 33787 PKGCONFIG=$ac_cv_path_PKGCONFIG 33788 if test -n "$PKGCONFIG"; then 33789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 33790 printf "%s\n" "$PKGCONFIG" >&6; } 33791 else 33792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33793 printf "%s\n" "no" >&6; } 33794 fi 33795 33796 33797 fi 33798 if test -z "$ac_cv_path_PKGCONFIG"; then 33799 ac_pt_PKGCONFIG=$PKGCONFIG 33800 # Extract the first word of "pkg-config", so it can be a program name with args. 33801 set dummy pkg-config; ac_word=$2 33802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33803 printf %s "checking for $ac_word... " >&6; } 33804 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 33805 then : 33806 printf %s "(cached) " >&6 33807 else $as_nop 33808 case $ac_pt_PKGCONFIG in 33809 [\\/]* | ?:[\\/]*) 33810 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 33811 ;; 33812 *) 33813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33814 as_dummy="$PATH:/usr/bin:/usr/local/bin" 33815 for as_dir in $as_dummy 33816 do 33817 IFS=$as_save_IFS 33818 case $as_dir in #((( 33819 '') as_dir=./ ;; 33820 */) ;; 33821 *) as_dir=$as_dir/ ;; 33822 esac 33823 for ac_exec_ext in '' $ac_executable_extensions; do 33824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33825 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33827 break 2 33828 fi 33829 done 33830 done 33831 IFS=$as_save_IFS 33832 33833 ;; 33834 esac 33835 fi 33836 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 33837 if test -n "$ac_pt_PKGCONFIG"; then 33838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 33839 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 33840 else 33841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33842 printf "%s\n" "no" >&6; } 33843 fi 33844 33845 if test "x$ac_pt_PKGCONFIG" = x; then 33846 PKGCONFIG="no" 33847 else 33848 case $cross_compiling:$ac_tool_warned in 33849 yes:) 33850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33852 ac_tool_warned=yes ;; 33853 esac 33854 PKGCONFIG=$ac_pt_PKGCONFIG 33855 fi 33856 else 33857 PKGCONFIG="$ac_cv_path_PKGCONFIG" 33858 fi 33859 33860 fi 33861 33862 if test "x$PKGCONFIG" != "xno"; then 33863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5 33864 printf %s "checking for fish options with pkg-config... " >&6; } 33865 itexists=` 33866 if test -n ""; then 33867 PKG_CONFIG_LIBDIR="" 33868 export PKG_CONFIG_LIBDIR 33869 fi 33870 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1` 33871 33872 if test -z "$itexists"; then 33873 PKGCONFIG="no" 33874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33875 printf "%s\n" "no" >&6; } 33876 else 33877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 33878 printf "%s\n" "found" >&6; } 33879 fi 33880 fi 33881 33882 if test "$PKGCONFIG" != "no"; then 33883 FISH_FUNCTIONS_DIR=`$PKGCONFIG --variable completionsdir fish` 33884 else 33885 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d" 33886 fi 33887 33888 ;; 33889 *) 33890 FISH_FUNCTIONS_DIR="$withval" 33891 33892 ;; 33893 esac 33894 if test x"$FISH_FUNCTIONS_DIR" != x; then 33895 USE_FISH_COMPLETION_TRUE= 33896 USE_FISH_COMPLETION_FALSE='#' 33897 else 33898 USE_FISH_COMPLETION_TRUE='#' 33899 USE_FISH_COMPLETION_FALSE= 33900 fi 33901 33902 33903 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" " 33904 #include <stdlib.h> 33905 #ifdef HAVE_SYS_TYPES_H 33906 #include <sys/types.h> 33907 #endif 33908 #if !defined(_WIN32) || defined(__MINGW32__) 33909 #include <sys/time.h> 33910 #endif 33911 #ifdef HAVE_SYS_SELECT_H 33912 #include <sys/select.h> 33913 #elif defined(HAVE_UNISTD_H) 33914 #include <unistd.h> 33915 #endif 33916 #ifndef _WIN32 33917 #include <sys/socket.h> 33918 #endif 33919 #ifdef HAVE_NETINET_IN_H 33920 #include <netinet/in.h> 33921 #endif 33922 #ifdef HAVE_NETINET_IN6_H 33923 #include <netinet/in6.h> /* is this really required to detect other headers? */ 33924 #endif 33925 #ifdef HAVE_SYS_UN_H 33926 #include <sys/un.h> /* is this really required to detect other headers? */ 33927 #endif 33928 33929 33930 " 33931 if test "x$ac_cv_header_sys_types_h" = xyes 33932 then : 33933 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 33934 33935 fi 33936 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" " 33937 #include <stdlib.h> 33938 #ifdef HAVE_SYS_TYPES_H 33939 #include <sys/types.h> 33940 #endif 33941 #if !defined(_WIN32) || defined(__MINGW32__) 33942 #include <sys/time.h> 33943 #endif 33944 #ifdef HAVE_SYS_SELECT_H 33945 #include <sys/select.h> 33946 #elif defined(HAVE_UNISTD_H) 33947 #include <unistd.h> 33948 #endif 33949 #ifndef _WIN32 33950 #include <sys/socket.h> 33951 #endif 33952 #ifdef HAVE_NETINET_IN_H 33953 #include <netinet/in.h> 33954 #endif 33955 #ifdef HAVE_NETINET_IN6_H 33956 #include <netinet/in6.h> /* is this really required to detect other headers? */ 33957 #endif 33958 #ifdef HAVE_SYS_UN_H 33959 #include <sys/un.h> /* is this really required to detect other headers? */ 33960 #endif 33961 33962 33963 " 33964 if test "x$ac_cv_header_sys_select_h" = xyes 33965 then : 33966 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 33967 33968 fi 33969 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" " 33970 #include <stdlib.h> 33971 #ifdef HAVE_SYS_TYPES_H 33972 #include <sys/types.h> 33973 #endif 33974 #if !defined(_WIN32) || defined(__MINGW32__) 33975 #include <sys/time.h> 33976 #endif 33977 #ifdef HAVE_SYS_SELECT_H 33978 #include <sys/select.h> 33979 #elif defined(HAVE_UNISTD_H) 33980 #include <unistd.h> 33981 #endif 33982 #ifndef _WIN32 33983 #include <sys/socket.h> 33984 #endif 33985 #ifdef HAVE_NETINET_IN_H 33986 #include <netinet/in.h> 33987 #endif 33988 #ifdef HAVE_NETINET_IN6_H 33989 #include <netinet/in6.h> /* is this really required to detect other headers? */ 33990 #endif 33991 #ifdef HAVE_SYS_UN_H 33992 #include <sys/un.h> /* is this really required to detect other headers? */ 33993 #endif 33994 33995 33996 " 33997 if test "x$ac_cv_header_sys_ioctl_h" = xyes 33998 then : 33999 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 34000 34001 fi 34002 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" " 34003 #include <stdlib.h> 34004 #ifdef HAVE_SYS_TYPES_H 34005 #include <sys/types.h> 34006 #endif 34007 #if !defined(_WIN32) || defined(__MINGW32__) 34008 #include <sys/time.h> 34009 #endif 34010 #ifdef HAVE_SYS_SELECT_H 34011 #include <sys/select.h> 34012 #elif defined(HAVE_UNISTD_H) 34013 #include <unistd.h> 34014 #endif 34015 #ifndef _WIN32 34016 #include <sys/socket.h> 34017 #endif 34018 #ifdef HAVE_NETINET_IN_H 34019 #include <netinet/in.h> 34020 #endif 34021 #ifdef HAVE_NETINET_IN6_H 34022 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34023 #endif 34024 #ifdef HAVE_SYS_UN_H 34025 #include <sys/un.h> /* is this really required to detect other headers? */ 34026 #endif 34027 34028 34029 " 34030 if test "x$ac_cv_header_unistd_h" = xyes 34031 then : 34032 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 34033 34034 fi 34035 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" " 34036 #include <stdlib.h> 34037 #ifdef HAVE_SYS_TYPES_H 34038 #include <sys/types.h> 34039 #endif 34040 #if !defined(_WIN32) || defined(__MINGW32__) 34041 #include <sys/time.h> 34042 #endif 34043 #ifdef HAVE_SYS_SELECT_H 34044 #include <sys/select.h> 34045 #elif defined(HAVE_UNISTD_H) 34046 #include <unistd.h> 34047 #endif 34048 #ifndef _WIN32 34049 #include <sys/socket.h> 34050 #endif 34051 #ifdef HAVE_NETINET_IN_H 34052 #include <netinet/in.h> 34053 #endif 34054 #ifdef HAVE_NETINET_IN6_H 34055 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34056 #endif 34057 #ifdef HAVE_SYS_UN_H 34058 #include <sys/un.h> /* is this really required to detect other headers? */ 34059 #endif 34060 34061 34062 " 34063 if test "x$ac_cv_header_arpa_inet_h" = xyes 34064 then : 34065 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 34066 34067 fi 34068 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 34069 #include <stdlib.h> 34070 #ifdef HAVE_SYS_TYPES_H 34071 #include <sys/types.h> 34072 #endif 34073 #if !defined(_WIN32) || defined(__MINGW32__) 34074 #include <sys/time.h> 34075 #endif 34076 #ifdef HAVE_SYS_SELECT_H 34077 #include <sys/select.h> 34078 #elif defined(HAVE_UNISTD_H) 34079 #include <unistd.h> 34080 #endif 34081 #ifndef _WIN32 34082 #include <sys/socket.h> 34083 #endif 34084 #ifdef HAVE_NETINET_IN_H 34085 #include <netinet/in.h> 34086 #endif 34087 #ifdef HAVE_NETINET_IN6_H 34088 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34089 #endif 34090 #ifdef HAVE_SYS_UN_H 34091 #include <sys/un.h> /* is this really required to detect other headers? */ 34092 #endif 34093 34094 34095 " 34096 if test "x$ac_cv_header_net_if_h" = xyes 34097 then : 34098 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 34099 34100 fi 34101 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" " 34102 #include <stdlib.h> 34103 #ifdef HAVE_SYS_TYPES_H 34104 #include <sys/types.h> 34105 #endif 34106 #if !defined(_WIN32) || defined(__MINGW32__) 34107 #include <sys/time.h> 34108 #endif 34109 #ifdef HAVE_SYS_SELECT_H 34110 #include <sys/select.h> 34111 #elif defined(HAVE_UNISTD_H) 34112 #include <unistd.h> 34113 #endif 34114 #ifndef _WIN32 34115 #include <sys/socket.h> 34116 #endif 34117 #ifdef HAVE_NETINET_IN_H 34118 #include <netinet/in.h> 34119 #endif 34120 #ifdef HAVE_NETINET_IN6_H 34121 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34122 #endif 34123 #ifdef HAVE_SYS_UN_H 34124 #include <sys/un.h> /* is this really required to detect other headers? */ 34125 #endif 34126 34127 34128 " 34129 if test "x$ac_cv_header_netinet_in_h" = xyes 34130 then : 34131 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 34132 34133 fi 34134 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" " 34135 #include <stdlib.h> 34136 #ifdef HAVE_SYS_TYPES_H 34137 #include <sys/types.h> 34138 #endif 34139 #if !defined(_WIN32) || defined(__MINGW32__) 34140 #include <sys/time.h> 34141 #endif 34142 #ifdef HAVE_SYS_SELECT_H 34143 #include <sys/select.h> 34144 #elif defined(HAVE_UNISTD_H) 34145 #include <unistd.h> 34146 #endif 34147 #ifndef _WIN32 34148 #include <sys/socket.h> 34149 #endif 34150 #ifdef HAVE_NETINET_IN_H 34151 #include <netinet/in.h> 34152 #endif 34153 #ifdef HAVE_NETINET_IN6_H 34154 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34155 #endif 34156 #ifdef HAVE_SYS_UN_H 34157 #include <sys/un.h> /* is this really required to detect other headers? */ 34158 #endif 34159 34160 34161 " 34162 if test "x$ac_cv_header_netinet_in6_h" = xyes 34163 then : 34164 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h 34165 34166 fi 34167 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " 34168 #include <stdlib.h> 34169 #ifdef HAVE_SYS_TYPES_H 34170 #include <sys/types.h> 34171 #endif 34172 #if !defined(_WIN32) || defined(__MINGW32__) 34173 #include <sys/time.h> 34174 #endif 34175 #ifdef HAVE_SYS_SELECT_H 34176 #include <sys/select.h> 34177 #elif defined(HAVE_UNISTD_H) 34178 #include <unistd.h> 34179 #endif 34180 #ifndef _WIN32 34181 #include <sys/socket.h> 34182 #endif 34183 #ifdef HAVE_NETINET_IN_H 34184 #include <netinet/in.h> 34185 #endif 34186 #ifdef HAVE_NETINET_IN6_H 34187 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34188 #endif 34189 #ifdef HAVE_SYS_UN_H 34190 #include <sys/un.h> /* is this really required to detect other headers? */ 34191 #endif 34192 34193 34194 " 34195 if test "x$ac_cv_header_sys_un_h" = xyes 34196 then : 34197 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 34198 34199 fi 34200 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" " 34201 #include <stdlib.h> 34202 #ifdef HAVE_SYS_TYPES_H 34203 #include <sys/types.h> 34204 #endif 34205 #if !defined(_WIN32) || defined(__MINGW32__) 34206 #include <sys/time.h> 34207 #endif 34208 #ifdef HAVE_SYS_SELECT_H 34209 #include <sys/select.h> 34210 #elif defined(HAVE_UNISTD_H) 34211 #include <unistd.h> 34212 #endif 34213 #ifndef _WIN32 34214 #include <sys/socket.h> 34215 #endif 34216 #ifdef HAVE_NETINET_IN_H 34217 #include <netinet/in.h> 34218 #endif 34219 #ifdef HAVE_NETINET_IN6_H 34220 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34221 #endif 34222 #ifdef HAVE_SYS_UN_H 34223 #include <sys/un.h> /* is this really required to detect other headers? */ 34224 #endif 34225 34226 34227 " 34228 if test "x$ac_cv_header_linux_tcp_h" = xyes 34229 then : 34230 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h 34231 34232 fi 34233 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" " 34234 #include <stdlib.h> 34235 #ifdef HAVE_SYS_TYPES_H 34236 #include <sys/types.h> 34237 #endif 34238 #if !defined(_WIN32) || defined(__MINGW32__) 34239 #include <sys/time.h> 34240 #endif 34241 #ifdef HAVE_SYS_SELECT_H 34242 #include <sys/select.h> 34243 #elif defined(HAVE_UNISTD_H) 34244 #include <unistd.h> 34245 #endif 34246 #ifndef _WIN32 34247 #include <sys/socket.h> 34248 #endif 34249 #ifdef HAVE_NETINET_IN_H 34250 #include <netinet/in.h> 34251 #endif 34252 #ifdef HAVE_NETINET_IN6_H 34253 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34254 #endif 34255 #ifdef HAVE_SYS_UN_H 34256 #include <sys/un.h> /* is this really required to detect other headers? */ 34257 #endif 34258 34259 34260 " 34261 if test "x$ac_cv_header_netinet_tcp_h" = xyes 34262 then : 34263 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 34264 34265 fi 34266 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" " 34267 #include <stdlib.h> 34268 #ifdef HAVE_SYS_TYPES_H 34269 #include <sys/types.h> 34270 #endif 34271 #if !defined(_WIN32) || defined(__MINGW32__) 34272 #include <sys/time.h> 34273 #endif 34274 #ifdef HAVE_SYS_SELECT_H 34275 #include <sys/select.h> 34276 #elif defined(HAVE_UNISTD_H) 34277 #include <unistd.h> 34278 #endif 34279 #ifndef _WIN32 34280 #include <sys/socket.h> 34281 #endif 34282 #ifdef HAVE_NETINET_IN_H 34283 #include <netinet/in.h> 34284 #endif 34285 #ifdef HAVE_NETINET_IN6_H 34286 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34287 #endif 34288 #ifdef HAVE_SYS_UN_H 34289 #include <sys/un.h> /* is this really required to detect other headers? */ 34290 #endif 34291 34292 34293 " 34294 if test "x$ac_cv_header_netinet_udp_h" = xyes 34295 then : 34296 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h 34297 34298 fi 34299 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" " 34300 #include <stdlib.h> 34301 #ifdef HAVE_SYS_TYPES_H 34302 #include <sys/types.h> 34303 #endif 34304 #if !defined(_WIN32) || defined(__MINGW32__) 34305 #include <sys/time.h> 34306 #endif 34307 #ifdef HAVE_SYS_SELECT_H 34308 #include <sys/select.h> 34309 #elif defined(HAVE_UNISTD_H) 34310 #include <unistd.h> 34311 #endif 34312 #ifndef _WIN32 34313 #include <sys/socket.h> 34314 #endif 34315 #ifdef HAVE_NETINET_IN_H 34316 #include <netinet/in.h> 34317 #endif 34318 #ifdef HAVE_NETINET_IN6_H 34319 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34320 #endif 34321 #ifdef HAVE_SYS_UN_H 34322 #include <sys/un.h> /* is this really required to detect other headers? */ 34323 #endif 34324 34325 34326 " 34327 if test "x$ac_cv_header_netdb_h" = xyes 34328 then : 34329 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 34330 34331 fi 34332 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" " 34333 #include <stdlib.h> 34334 #ifdef HAVE_SYS_TYPES_H 34335 #include <sys/types.h> 34336 #endif 34337 #if !defined(_WIN32) || defined(__MINGW32__) 34338 #include <sys/time.h> 34339 #endif 34340 #ifdef HAVE_SYS_SELECT_H 34341 #include <sys/select.h> 34342 #elif defined(HAVE_UNISTD_H) 34343 #include <unistd.h> 34344 #endif 34345 #ifndef _WIN32 34346 #include <sys/socket.h> 34347 #endif 34348 #ifdef HAVE_NETINET_IN_H 34349 #include <netinet/in.h> 34350 #endif 34351 #ifdef HAVE_NETINET_IN6_H 34352 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34353 #endif 34354 #ifdef HAVE_SYS_UN_H 34355 #include <sys/un.h> /* is this really required to detect other headers? */ 34356 #endif 34357 34358 34359 " 34360 if test "x$ac_cv_header_sys_sockio_h" = xyes 34361 then : 34362 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 34363 34364 fi 34365 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" " 34366 #include <stdlib.h> 34367 #ifdef HAVE_SYS_TYPES_H 34368 #include <sys/types.h> 34369 #endif 34370 #if !defined(_WIN32) || defined(__MINGW32__) 34371 #include <sys/time.h> 34372 #endif 34373 #ifdef HAVE_SYS_SELECT_H 34374 #include <sys/select.h> 34375 #elif defined(HAVE_UNISTD_H) 34376 #include <unistd.h> 34377 #endif 34378 #ifndef _WIN32 34379 #include <sys/socket.h> 34380 #endif 34381 #ifdef HAVE_NETINET_IN_H 34382 #include <netinet/in.h> 34383 #endif 34384 #ifdef HAVE_NETINET_IN6_H 34385 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34386 #endif 34387 #ifdef HAVE_SYS_UN_H 34388 #include <sys/un.h> /* is this really required to detect other headers? */ 34389 #endif 34390 34391 34392 " 34393 if test "x$ac_cv_header_sys_param_h" = xyes 34394 then : 34395 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 34396 34397 fi 34398 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" " 34399 #include <stdlib.h> 34400 #ifdef HAVE_SYS_TYPES_H 34401 #include <sys/types.h> 34402 #endif 34403 #if !defined(_WIN32) || defined(__MINGW32__) 34404 #include <sys/time.h> 34405 #endif 34406 #ifdef HAVE_SYS_SELECT_H 34407 #include <sys/select.h> 34408 #elif defined(HAVE_UNISTD_H) 34409 #include <unistd.h> 34410 #endif 34411 #ifndef _WIN32 34412 #include <sys/socket.h> 34413 #endif 34414 #ifdef HAVE_NETINET_IN_H 34415 #include <netinet/in.h> 34416 #endif 34417 #ifdef HAVE_NETINET_IN6_H 34418 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34419 #endif 34420 #ifdef HAVE_SYS_UN_H 34421 #include <sys/un.h> /* is this really required to detect other headers? */ 34422 #endif 34423 34424 34425 " 34426 if test "x$ac_cv_header_termios_h" = xyes 34427 then : 34428 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 34429 34430 fi 34431 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" " 34432 #include <stdlib.h> 34433 #ifdef HAVE_SYS_TYPES_H 34434 #include <sys/types.h> 34435 #endif 34436 #if !defined(_WIN32) || defined(__MINGW32__) 34437 #include <sys/time.h> 34438 #endif 34439 #ifdef HAVE_SYS_SELECT_H 34440 #include <sys/select.h> 34441 #elif defined(HAVE_UNISTD_H) 34442 #include <unistd.h> 34443 #endif 34444 #ifndef _WIN32 34445 #include <sys/socket.h> 34446 #endif 34447 #ifdef HAVE_NETINET_IN_H 34448 #include <netinet/in.h> 34449 #endif 34450 #ifdef HAVE_NETINET_IN6_H 34451 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34452 #endif 34453 #ifdef HAVE_SYS_UN_H 34454 #include <sys/un.h> /* is this really required to detect other headers? */ 34455 #endif 34456 34457 34458 " 34459 if test "x$ac_cv_header_termio_h" = xyes 34460 then : 34461 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h 34462 34463 fi 34464 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" " 34465 #include <stdlib.h> 34466 #ifdef HAVE_SYS_TYPES_H 34467 #include <sys/types.h> 34468 #endif 34469 #if !defined(_WIN32) || defined(__MINGW32__) 34470 #include <sys/time.h> 34471 #endif 34472 #ifdef HAVE_SYS_SELECT_H 34473 #include <sys/select.h> 34474 #elif defined(HAVE_UNISTD_H) 34475 #include <unistd.h> 34476 #endif 34477 #ifndef _WIN32 34478 #include <sys/socket.h> 34479 #endif 34480 #ifdef HAVE_NETINET_IN_H 34481 #include <netinet/in.h> 34482 #endif 34483 #ifdef HAVE_NETINET_IN6_H 34484 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34485 #endif 34486 #ifdef HAVE_SYS_UN_H 34487 #include <sys/un.h> /* is this really required to detect other headers? */ 34488 #endif 34489 34490 34491 " 34492 if test "x$ac_cv_header_fcntl_h" = xyes 34493 then : 34494 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 34495 34496 fi 34497 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" " 34498 #include <stdlib.h> 34499 #ifdef HAVE_SYS_TYPES_H 34500 #include <sys/types.h> 34501 #endif 34502 #if !defined(_WIN32) || defined(__MINGW32__) 34503 #include <sys/time.h> 34504 #endif 34505 #ifdef HAVE_SYS_SELECT_H 34506 #include <sys/select.h> 34507 #elif defined(HAVE_UNISTD_H) 34508 #include <unistd.h> 34509 #endif 34510 #ifndef _WIN32 34511 #include <sys/socket.h> 34512 #endif 34513 #ifdef HAVE_NETINET_IN_H 34514 #include <netinet/in.h> 34515 #endif 34516 #ifdef HAVE_NETINET_IN6_H 34517 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34518 #endif 34519 #ifdef HAVE_SYS_UN_H 34520 #include <sys/un.h> /* is this really required to detect other headers? */ 34521 #endif 34522 34523 34524 " 34525 if test "x$ac_cv_header_io_h" = xyes 34526 then : 34527 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 34528 34529 fi 34530 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" " 34531 #include <stdlib.h> 34532 #ifdef HAVE_SYS_TYPES_H 34533 #include <sys/types.h> 34534 #endif 34535 #if !defined(_WIN32) || defined(__MINGW32__) 34536 #include <sys/time.h> 34537 #endif 34538 #ifdef HAVE_SYS_SELECT_H 34539 #include <sys/select.h> 34540 #elif defined(HAVE_UNISTD_H) 34541 #include <unistd.h> 34542 #endif 34543 #ifndef _WIN32 34544 #include <sys/socket.h> 34545 #endif 34546 #ifdef HAVE_NETINET_IN_H 34547 #include <netinet/in.h> 34548 #endif 34549 #ifdef HAVE_NETINET_IN6_H 34550 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34551 #endif 34552 #ifdef HAVE_SYS_UN_H 34553 #include <sys/un.h> /* is this really required to detect other headers? */ 34554 #endif 34555 34556 34557 " 34558 if test "x$ac_cv_header_pwd_h" = xyes 34559 then : 34560 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 34561 34562 fi 34563 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" " 34564 #include <stdlib.h> 34565 #ifdef HAVE_SYS_TYPES_H 34566 #include <sys/types.h> 34567 #endif 34568 #if !defined(_WIN32) || defined(__MINGW32__) 34569 #include <sys/time.h> 34570 #endif 34571 #ifdef HAVE_SYS_SELECT_H 34572 #include <sys/select.h> 34573 #elif defined(HAVE_UNISTD_H) 34574 #include <unistd.h> 34575 #endif 34576 #ifndef _WIN32 34577 #include <sys/socket.h> 34578 #endif 34579 #ifdef HAVE_NETINET_IN_H 34580 #include <netinet/in.h> 34581 #endif 34582 #ifdef HAVE_NETINET_IN6_H 34583 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34584 #endif 34585 #ifdef HAVE_SYS_UN_H 34586 #include <sys/un.h> /* is this really required to detect other headers? */ 34587 #endif 34588 34589 34590 " 34591 if test "x$ac_cv_header_utime_h" = xyes 34592 then : 34593 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 34594 34595 fi 34596 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" " 34597 #include <stdlib.h> 34598 #ifdef HAVE_SYS_TYPES_H 34599 #include <sys/types.h> 34600 #endif 34601 #if !defined(_WIN32) || defined(__MINGW32__) 34602 #include <sys/time.h> 34603 #endif 34604 #ifdef HAVE_SYS_SELECT_H 34605 #include <sys/select.h> 34606 #elif defined(HAVE_UNISTD_H) 34607 #include <unistd.h> 34608 #endif 34609 #ifndef _WIN32 34610 #include <sys/socket.h> 34611 #endif 34612 #ifdef HAVE_NETINET_IN_H 34613 #include <netinet/in.h> 34614 #endif 34615 #ifdef HAVE_NETINET_IN6_H 34616 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34617 #endif 34618 #ifdef HAVE_SYS_UN_H 34619 #include <sys/un.h> /* is this really required to detect other headers? */ 34620 #endif 34621 34622 34623 " 34624 if test "x$ac_cv_header_sys_utime_h" = xyes 34625 then : 34626 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h 34627 34628 fi 34629 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" " 34630 #include <stdlib.h> 34631 #ifdef HAVE_SYS_TYPES_H 34632 #include <sys/types.h> 34633 #endif 34634 #if !defined(_WIN32) || defined(__MINGW32__) 34635 #include <sys/time.h> 34636 #endif 34637 #ifdef HAVE_SYS_SELECT_H 34638 #include <sys/select.h> 34639 #elif defined(HAVE_UNISTD_H) 34640 #include <unistd.h> 34641 #endif 34642 #ifndef _WIN32 34643 #include <sys/socket.h> 34644 #endif 34645 #ifdef HAVE_NETINET_IN_H 34646 #include <netinet/in.h> 34647 #endif 34648 #ifdef HAVE_NETINET_IN6_H 34649 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34650 #endif 34651 #ifdef HAVE_SYS_UN_H 34652 #include <sys/un.h> /* is this really required to detect other headers? */ 34653 #endif 34654 34655 34656 " 34657 if test "x$ac_cv_header_sys_poll_h" = xyes 34658 then : 34659 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 34660 34661 fi 34662 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" " 34663 #include <stdlib.h> 34664 #ifdef HAVE_SYS_TYPES_H 34665 #include <sys/types.h> 34666 #endif 34667 #if !defined(_WIN32) || defined(__MINGW32__) 34668 #include <sys/time.h> 34669 #endif 34670 #ifdef HAVE_SYS_SELECT_H 34671 #include <sys/select.h> 34672 #elif defined(HAVE_UNISTD_H) 34673 #include <unistd.h> 34674 #endif 34675 #ifndef _WIN32 34676 #include <sys/socket.h> 34677 #endif 34678 #ifdef HAVE_NETINET_IN_H 34679 #include <netinet/in.h> 34680 #endif 34681 #ifdef HAVE_NETINET_IN6_H 34682 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34683 #endif 34684 #ifdef HAVE_SYS_UN_H 34685 #include <sys/un.h> /* is this really required to detect other headers? */ 34686 #endif 34687 34688 34689 " 34690 if test "x$ac_cv_header_poll_h" = xyes 34691 then : 34692 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 34693 34694 fi 34695 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 34696 #include <stdlib.h> 34697 #ifdef HAVE_SYS_TYPES_H 34698 #include <sys/types.h> 34699 #endif 34700 #if !defined(_WIN32) || defined(__MINGW32__) 34701 #include <sys/time.h> 34702 #endif 34703 #ifdef HAVE_SYS_SELECT_H 34704 #include <sys/select.h> 34705 #elif defined(HAVE_UNISTD_H) 34706 #include <unistd.h> 34707 #endif 34708 #ifndef _WIN32 34709 #include <sys/socket.h> 34710 #endif 34711 #ifdef HAVE_NETINET_IN_H 34712 #include <netinet/in.h> 34713 #endif 34714 #ifdef HAVE_NETINET_IN6_H 34715 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34716 #endif 34717 #ifdef HAVE_SYS_UN_H 34718 #include <sys/un.h> /* is this really required to detect other headers? */ 34719 #endif 34720 34721 34722 " 34723 if test "x$ac_cv_header_sys_resource_h" = xyes 34724 then : 34725 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 34726 34727 fi 34728 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" " 34729 #include <stdlib.h> 34730 #ifdef HAVE_SYS_TYPES_H 34731 #include <sys/types.h> 34732 #endif 34733 #if !defined(_WIN32) || defined(__MINGW32__) 34734 #include <sys/time.h> 34735 #endif 34736 #ifdef HAVE_SYS_SELECT_H 34737 #include <sys/select.h> 34738 #elif defined(HAVE_UNISTD_H) 34739 #include <unistd.h> 34740 #endif 34741 #ifndef _WIN32 34742 #include <sys/socket.h> 34743 #endif 34744 #ifdef HAVE_NETINET_IN_H 34745 #include <netinet/in.h> 34746 #endif 34747 #ifdef HAVE_NETINET_IN6_H 34748 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34749 #endif 34750 #ifdef HAVE_SYS_UN_H 34751 #include <sys/un.h> /* is this really required to detect other headers? */ 34752 #endif 34753 34754 34755 " 34756 if test "x$ac_cv_header_libgen_h" = xyes 34757 then : 34758 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h 34759 34760 fi 34761 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" " 34762 #include <stdlib.h> 34763 #ifdef HAVE_SYS_TYPES_H 34764 #include <sys/types.h> 34765 #endif 34766 #if !defined(_WIN32) || defined(__MINGW32__) 34767 #include <sys/time.h> 34768 #endif 34769 #ifdef HAVE_SYS_SELECT_H 34770 #include <sys/select.h> 34771 #elif defined(HAVE_UNISTD_H) 34772 #include <unistd.h> 34773 #endif 34774 #ifndef _WIN32 34775 #include <sys/socket.h> 34776 #endif 34777 #ifdef HAVE_NETINET_IN_H 34778 #include <netinet/in.h> 34779 #endif 34780 #ifdef HAVE_NETINET_IN6_H 34781 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34782 #endif 34783 #ifdef HAVE_SYS_UN_H 34784 #include <sys/un.h> /* is this really required to detect other headers? */ 34785 #endif 34786 34787 34788 " 34789 if test "x$ac_cv_header_locale_h" = xyes 34790 then : 34791 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 34792 34793 fi 34794 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" " 34795 #include <stdlib.h> 34796 #ifdef HAVE_SYS_TYPES_H 34797 #include <sys/types.h> 34798 #endif 34799 #if !defined(_WIN32) || defined(__MINGW32__) 34800 #include <sys/time.h> 34801 #endif 34802 #ifdef HAVE_SYS_SELECT_H 34803 #include <sys/select.h> 34804 #elif defined(HAVE_UNISTD_H) 34805 #include <unistd.h> 34806 #endif 34807 #ifndef _WIN32 34808 #include <sys/socket.h> 34809 #endif 34810 #ifdef HAVE_NETINET_IN_H 34811 #include <netinet/in.h> 34812 #endif 34813 #ifdef HAVE_NETINET_IN6_H 34814 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34815 #endif 34816 #ifdef HAVE_SYS_UN_H 34817 #include <sys/un.h> /* is this really required to detect other headers? */ 34818 #endif 34819 34820 34821 " 34822 if test "x$ac_cv_header_stdbool_h" = xyes 34823 then : 34824 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 34825 34826 fi 34827 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" " 34828 #include <stdlib.h> 34829 #ifdef HAVE_SYS_TYPES_H 34830 #include <sys/types.h> 34831 #endif 34832 #if !defined(_WIN32) || defined(__MINGW32__) 34833 #include <sys/time.h> 34834 #endif 34835 #ifdef HAVE_SYS_SELECT_H 34836 #include <sys/select.h> 34837 #elif defined(HAVE_UNISTD_H) 34838 #include <unistd.h> 34839 #endif 34840 #ifndef _WIN32 34841 #include <sys/socket.h> 34842 #endif 34843 #ifdef HAVE_NETINET_IN_H 34844 #include <netinet/in.h> 34845 #endif 34846 #ifdef HAVE_NETINET_IN6_H 34847 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34848 #endif 34849 #ifdef HAVE_SYS_UN_H 34850 #include <sys/un.h> /* is this really required to detect other headers? */ 34851 #endif 34852 34853 34854 " 34855 if test "x$ac_cv_header_stdint_h" = xyes 34856 then : 34857 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 34858 34859 fi 34860 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" " 34861 #include <stdlib.h> 34862 #ifdef HAVE_SYS_TYPES_H 34863 #include <sys/types.h> 34864 #endif 34865 #if !defined(_WIN32) || defined(__MINGW32__) 34866 #include <sys/time.h> 34867 #endif 34868 #ifdef HAVE_SYS_SELECT_H 34869 #include <sys/select.h> 34870 #elif defined(HAVE_UNISTD_H) 34871 #include <unistd.h> 34872 #endif 34873 #ifndef _WIN32 34874 #include <sys/socket.h> 34875 #endif 34876 #ifdef HAVE_NETINET_IN_H 34877 #include <netinet/in.h> 34878 #endif 34879 #ifdef HAVE_NETINET_IN6_H 34880 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34881 #endif 34882 #ifdef HAVE_SYS_UN_H 34883 #include <sys/un.h> /* is this really required to detect other headers? */ 34884 #endif 34885 34886 34887 " 34888 if test "x$ac_cv_header_sys_filio_h" = xyes 34889 then : 34890 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 34891 34892 fi 34893 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" " 34894 #include <stdlib.h> 34895 #ifdef HAVE_SYS_TYPES_H 34896 #include <sys/types.h> 34897 #endif 34898 #if !defined(_WIN32) || defined(__MINGW32__) 34899 #include <sys/time.h> 34900 #endif 34901 #ifdef HAVE_SYS_SELECT_H 34902 #include <sys/select.h> 34903 #elif defined(HAVE_UNISTD_H) 34904 #include <unistd.h> 34905 #endif 34906 #ifndef _WIN32 34907 #include <sys/socket.h> 34908 #endif 34909 #ifdef HAVE_NETINET_IN_H 34910 #include <netinet/in.h> 34911 #endif 34912 #ifdef HAVE_NETINET_IN6_H 34913 #include <netinet/in6.h> /* is this really required to detect other headers? */ 34914 #endif 34915 #ifdef HAVE_SYS_UN_H 34916 #include <sys/un.h> /* is this really required to detect other headers? */ 34917 #endif 34918 34919 34920 " 34921 if test "x$ac_cv_header_sys_eventfd_h" = xyes 34922 then : 34923 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h 34924 34925 fi 34926 34927 34928 34929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 34930 printf %s "checking for an ANSI C-conforming const... " >&6; } 34931 if test ${ac_cv_c_const+y} 34932 then : 34933 printf %s "(cached) " >&6 34934 else $as_nop 34935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34936 /* end confdefs.h. */ 34937 34938 int main(void) 34939 { 34940 34941 #ifndef __cplusplus 34942 /* Ultrix mips cc rejects this sort of thing. */ 34943 typedef int charset[2]; 34944 const charset cs = { 0, 0 }; 34945 /* SunOS 4.1.1 cc rejects this. */ 34946 char const *const *pcpcc; 34947 char **ppc; 34948 /* NEC SVR4.0.2 mips cc rejects this. */ 34949 struct point {int x, y;}; 34950 static struct point const zero = {0,0}; 34951 /* IBM XL C 1.02.0.0 rejects this. 34952 It does not let you subtract one const X* pointer from another in 34953 an arm of an if-expression whose if-part is not a constant 34954 expression */ 34955 const char *g = "string"; 34956 pcpcc = &g + (g ? g-g : 0); 34957 /* HPUX 7.0 cc rejects these. */ 34958 ++pcpcc; 34959 ppc = (char**) pcpcc; 34960 pcpcc = (char const *const *) ppc; 34961 { /* SCO 3.2v4 cc rejects this sort of thing. */ 34962 char tx; 34963 char *t = &tx; 34964 char const *s = 0 ? (char *) 0 : (char const *) 0; 34965 34966 *t++ = 0; 34967 if (s) return 0; 34968 } 34969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 34970 int x[] = {25, 17}; 34971 const int *foo = &x[0]; 34972 ++foo; 34973 } 34974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 34975 typedef const int *iptr; 34976 iptr p = 0; 34977 ++p; 34978 } 34979 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 34980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 34981 struct s { int j; const int *ap[3]; } bx; 34982 struct s *b = &bx; b->j = 5; 34983 } 34984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 34985 const int foo = 10; 34986 if (!foo) return 0; 34987 } 34988 return !cs[0] && !zero.x; 34989 #endif 34990 34991 return 0; 34992 } 34993 _ACEOF 34994 if ac_fn_c_try_compile "$LINENO" 34995 then : 34996 ac_cv_c_const=yes 34997 else $as_nop 34998 ac_cv_c_const=no 34999 fi 35000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35001 fi 35002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 35003 printf "%s\n" "$ac_cv_c_const" >&6; } 35004 if test $ac_cv_c_const = no; then 35005 35006 printf "%s\n" "#define const /**/" >>confdefs.h 35007 35008 fi 35009 35010 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 35011 if test "x$ac_cv_type_size_t" = xyes 35012 then : 35013 35014 else $as_nop 35015 35016 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 35017 35018 fi 35019 35020 35021 35022 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 35023 if test "x$ac_cv_header_sys_types_h" = xyes 35024 then : 35025 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 35026 35027 fi 35028 35029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 35030 printf %s "checking for struct timeval... " >&6; } 35031 if test ${curl_cv_struct_timeval+y} 35032 then : 35033 printf %s "(cached) " >&6 35034 else $as_nop 35035 35036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35037 /* end confdefs.h. */ 35038 35039 35040 #undef inline 35041 #ifdef _WIN32 35042 #ifndef WIN32_LEAN_AND_MEAN 35043 #define WIN32_LEAN_AND_MEAN 35044 #endif 35045 #include <winsock2.h> 35046 #else 35047 #include <sys/socket.h> 35048 #include <sys/time.h> 35049 #endif 35050 #ifdef HAVE_SYS_TYPES_H 35051 #include <sys/types.h> 35052 #endif 35053 #include <time.h> 35054 35055 int main(void) 35056 { 35057 35058 struct timeval ts; 35059 ts.tv_sec = 0; 35060 ts.tv_usec = 0; 35061 (void)ts; 35062 35063 return 0; 35064 } 35065 35066 _ACEOF 35067 if ac_fn_c_try_compile "$LINENO" 35068 then : 35069 35070 curl_cv_struct_timeval="yes" 35071 35072 else $as_nop 35073 35074 curl_cv_struct_timeval="no" 35075 35076 fi 35077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35078 35079 fi 35080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5 35081 printf "%s\n" "$curl_cv_struct_timeval" >&6; } 35082 case "$curl_cv_struct_timeval" in 35083 yes) 35084 35085 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 35086 35087 ;; 35088 esac 35089 35090 35091 35092 if test "x$cross_compiling" != xyes; then 35093 35094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5 35095 printf %s "checking run-time libs availability... " >&6; } 35096 35097 if test "$curl_cv_apple" = 'yes'; then 35098 if test "$cross_compiling" = yes 35099 then : 35100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35102 as_fn_error $? "cannot run test program while cross compiling 35103 See \`config.log' for more details" "$LINENO" 5; } 35104 else $as_nop 35105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35106 /* end confdefs.h. */ 35107 35108 int main(void) 35109 { 35110 return 0; 35111 } 35112 35113 _ACEOF 35114 if ac_fn_c_try_run "$LINENO" 35115 then : 35116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5 35117 printf "%s\n" "fine" >&6; } 35118 else $as_nop 35119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 35120 printf "%s\n" "failed" >&6; } 35121 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 35122 35123 fi 35124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35125 conftest.$ac_objext conftest.beam conftest.$ac_ext 35126 fi 35127 35128 else 35129 oldcc=$CC 35130 old=$LD_LIBRARY_PATH 35131 CC="sh ./run-compiler" 35132 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 35133 export LD_LIBRARY_PATH 35134 if test "$cross_compiling" = yes 35135 then : 35136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35138 as_fn_error $? "cannot run test program while cross compiling 35139 See \`config.log' for more details" "$LINENO" 5; } 35140 else $as_nop 35141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35142 /* end confdefs.h. */ 35143 35144 int main(void) 35145 { 35146 return 0; 35147 } 35148 35149 _ACEOF 35150 if ac_fn_c_try_run "$LINENO" 35151 then : 35152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5 35153 printf "%s\n" "fine" >&6; } 35154 else $as_nop 35155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 35156 printf "%s\n" "failed" >&6; } 35157 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 35158 35159 fi 35160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35161 conftest.$ac_objext conftest.beam conftest.$ac_ext 35162 fi 35163 35164 LD_LIBRARY_PATH=$old # restore 35165 CC=$oldcc 35166 fi 35167 35168 35169 fi 35170 35171 35172 35173 35174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 35175 printf %s "checking size of size_t... " >&6; } 35176 r=0 35177 for typesize in 8 4 2 16 1; do 35178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35179 /* end confdefs.h. */ 35180 35181 35182 #include <sys/types.h> 35183 35184 35185 int main(void) 35186 { 35187 35188 switch(0) { 35189 case 0: 35190 case (sizeof(size_t) == $typesize):; 35191 } 35192 35193 return 0; 35194 } 35195 35196 _ACEOF 35197 if ac_fn_c_try_compile "$LINENO" 35198 then : 35199 35200 r=$typesize 35201 35202 else $as_nop 35203 35204 r=0 35205 35206 fi 35207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35208 if test $r -gt 0; then 35209 break; 35210 fi 35211 done 35212 if test $r -eq 0; then 35213 as_fn_error $? "Failed to find size of size_t" "$LINENO" 5 35214 fi 35215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35216 printf "%s\n" "$r" >&6; } 35217 tname=`echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_"` 35218 eval "$tname=$r" 35219 35220 35221 printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h 35222 35223 35224 35225 35226 35227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 35228 printf %s "checking size of long... " >&6; } 35229 r=0 35230 for typesize in 8 4 2 16 1; do 35231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35232 /* end confdefs.h. */ 35233 35234 35235 #include <sys/types.h> 35236 35237 35238 int main(void) 35239 { 35240 35241 switch(0) { 35242 case 0: 35243 case (sizeof(long) == $typesize):; 35244 } 35245 35246 return 0; 35247 } 35248 35249 _ACEOF 35250 if ac_fn_c_try_compile "$LINENO" 35251 then : 35252 35253 r=$typesize 35254 35255 else $as_nop 35256 35257 r=0 35258 35259 fi 35260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35261 if test $r -gt 0; then 35262 break; 35263 fi 35264 done 35265 if test $r -eq 0; then 35266 as_fn_error $? "Failed to find size of long" "$LINENO" 5 35267 fi 35268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35269 printf "%s\n" "$r" >&6; } 35270 tname=`echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_"` 35271 eval "$tname=$r" 35272 35273 35274 printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h 35275 35276 35277 35278 35279 35280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 35281 printf %s "checking size of int... " >&6; } 35282 r=0 35283 for typesize in 8 4 2 16 1; do 35284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35285 /* end confdefs.h. */ 35286 35287 35288 #include <sys/types.h> 35289 35290 35291 int main(void) 35292 { 35293 35294 switch(0) { 35295 case 0: 35296 case (sizeof(int) == $typesize):; 35297 } 35298 35299 return 0; 35300 } 35301 35302 _ACEOF 35303 if ac_fn_c_try_compile "$LINENO" 35304 then : 35305 35306 r=$typesize 35307 35308 else $as_nop 35309 35310 r=0 35311 35312 fi 35313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35314 if test $r -gt 0; then 35315 break; 35316 fi 35317 done 35318 if test $r -eq 0; then 35319 as_fn_error $? "Failed to find size of int" "$LINENO" 5 35320 fi 35321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35322 printf "%s\n" "$r" >&6; } 35323 tname=`echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_"` 35324 eval "$tname=$r" 35325 35326 35327 printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h 35328 35329 35330 35331 35332 35333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 35334 printf %s "checking size of time_t... " >&6; } 35335 r=0 35336 for typesize in 8 4 2 16 1; do 35337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35338 /* end confdefs.h. */ 35339 35340 35341 #include <sys/types.h> 35342 35343 35344 int main(void) 35345 { 35346 35347 switch(0) { 35348 case 0: 35349 case (sizeof(time_t) == $typesize):; 35350 } 35351 35352 return 0; 35353 } 35354 35355 _ACEOF 35356 if ac_fn_c_try_compile "$LINENO" 35357 then : 35358 35359 r=$typesize 35360 35361 else $as_nop 35362 35363 r=0 35364 35365 fi 35366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35367 if test $r -gt 0; then 35368 break; 35369 fi 35370 done 35371 if test $r -eq 0; then 35372 as_fn_error $? "Failed to find size of time_t" "$LINENO" 5 35373 fi 35374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35375 printf "%s\n" "$r" >&6; } 35376 tname=`echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_"` 35377 eval "$tname=$r" 35378 35379 35380 printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h 35381 35382 35383 35384 35385 35386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 35387 printf %s "checking size of off_t... " >&6; } 35388 r=0 35389 for typesize in 8 4 2 16 1; do 35390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35391 /* end confdefs.h. */ 35392 35393 35394 #include <sys/types.h> 35395 35396 35397 int main(void) 35398 { 35399 35400 switch(0) { 35401 case 0: 35402 case (sizeof(off_t) == $typesize):; 35403 } 35404 35405 return 0; 35406 } 35407 35408 _ACEOF 35409 if ac_fn_c_try_compile "$LINENO" 35410 then : 35411 35412 r=$typesize 35413 35414 else $as_nop 35415 35416 r=0 35417 35418 fi 35419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35420 if test $r -gt 0; then 35421 break; 35422 fi 35423 done 35424 if test $r -eq 0; then 35425 as_fn_error $? "Failed to find size of off_t" "$LINENO" 5 35426 fi 35427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35428 printf "%s\n" "$r" >&6; } 35429 tname=`echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_"` 35430 eval "$tname=$r" 35431 35432 35433 printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h 35434 35435 35436 35437 35438 o=$CPPFLAGS 35439 CPPFLAGS="-I$srcdir/include $CPPFLAGS" 35440 35441 35442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5 35443 printf %s "checking size of curl_off_t... " >&6; } 35444 r=0 35445 for typesize in 8 4 2 16 1; do 35446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35447 /* end confdefs.h. */ 35448 35449 35450 #include <sys/types.h> 35451 35452 #include <curl/system.h> 35453 35454 35455 int main(void) 35456 { 35457 35458 switch(0) { 35459 case 0: 35460 case (sizeof(curl_off_t) == $typesize):; 35461 } 35462 35463 return 0; 35464 } 35465 35466 _ACEOF 35467 if ac_fn_c_try_compile "$LINENO" 35468 then : 35469 35470 r=$typesize 35471 35472 else $as_nop 35473 35474 r=0 35475 35476 fi 35477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35478 if test $r -gt 0; then 35479 break; 35480 fi 35481 done 35482 if test $r -eq 0; then 35483 as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5 35484 fi 35485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35486 printf "%s\n" "$r" >&6; } 35487 tname=`echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_"` 35488 eval "$tname=$r" 35489 35490 35491 printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h 35492 35493 35494 35495 35496 35497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5 35498 printf %s "checking size of curl_socket_t... " >&6; } 35499 r=0 35500 for typesize in 8 4 2 16 1; do 35501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35502 /* end confdefs.h. */ 35503 35504 35505 #include <sys/types.h> 35506 35507 #include <curl/curl.h> 35508 35509 35510 int main(void) 35511 { 35512 35513 switch(0) { 35514 case 0: 35515 case (sizeof(curl_socket_t) == $typesize):; 35516 } 35517 35518 return 0; 35519 } 35520 35521 _ACEOF 35522 if ac_fn_c_try_compile "$LINENO" 35523 then : 35524 35525 r=$typesize 35526 35527 else $as_nop 35528 35529 r=0 35530 35531 fi 35532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35533 if test $r -gt 0; then 35534 break; 35535 fi 35536 done 35537 if test $r -eq 0; then 35538 as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5 35539 fi 35540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35541 printf "%s\n" "$r" >&6; } 35542 tname=`echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_"` 35543 eval "$tname=$r" 35544 35545 35546 printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h 35547 35548 35549 35550 CPPFLAGS=$o 35551 35552 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 35553 if test "x$ac_cv_type_long_long" = xyes 35554 then : 35555 35556 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h 35557 35558 longlong="yes" 35559 35560 fi 35561 35562 35563 if test ${ac_cv_sizeof_curl_off_t} -lt 8; then 35564 as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5 35565 fi 35566 35567 # check for ssize_t 35568 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 35569 if test "x$ac_cv_type_ssize_t" = xyes 35570 then : 35571 35572 else $as_nop 35573 35574 printf "%s\n" "#define ssize_t int" >>confdefs.h 35575 35576 fi 35577 35578 35579 # check for bool type 35580 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " 35581 #ifdef HAVE_SYS_TYPES_H 35582 #include <sys/types.h> 35583 #endif 35584 #ifdef HAVE_STDBOOL_H 35585 #include <stdbool.h> 35586 #endif 35587 35588 " 35589 if test "x$ac_cv_type_bool" = xyes 35590 then : 35591 35592 35593 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h 35594 35595 35596 fi 35597 35598 35599 # check for sa_family_t 35600 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " 35601 #ifndef _WIN32 35602 #include <sys/socket.h> 35603 #endif 35604 35605 " 35606 if test "x$ac_cv_type_sa_family_t" = xyes 35607 then : 35608 35609 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 35610 35611 else $as_nop 35612 35613 # The Windows name? 35614 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" " 35615 #ifdef _WIN32 35616 #ifndef WIN32_LEAN_AND_MEAN 35617 #define WIN32_LEAN_AND_MEAN 35618 #endif 35619 #include <winsock2.h> 35620 #else 35621 #include <sys/socket.h> 35622 #endif 35623 35624 " 35625 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes 35626 then : 35627 35628 printf "%s\n" "#define HAVE_ADDRESS_FAMILY 1" >>confdefs.h 35629 35630 fi 35631 35632 35633 fi 35634 35635 35636 # check for suseconds_t 35637 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" " 35638 #ifdef HAVE_SYS_TYPES_H 35639 #include <sys/types.h> 35640 #endif 35641 #ifndef _WIN32 35642 #include <sys/time.h> 35643 #endif 35644 35645 " 35646 if test "x$ac_cv_type_suseconds_t" = xyes 35647 then : 35648 35649 35650 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h 35651 35652 35653 fi 35654 35655 35656 case $host_os in 35657 amigaos*|msdos*) 35658 35659 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h 35660 35661 ;; 35662 *) 35663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5 35664 printf %s "checking if time_t is unsigned... " >&6; } 35665 35666 if test "$curl_cv_apple" = 'yes'; then 35667 if test "$cross_compiling" = yes 35668 then : 35669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35670 printf "%s\n" "no" >&6; } 35671 35672 else $as_nop 35673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35674 /* end confdefs.h. */ 35675 35676 #include <time.h> 35677 int main(void) { 35678 time_t t = -1; 35679 return t < 0; 35680 } 35681 35682 _ACEOF 35683 if ac_fn_c_try_run "$LINENO" 35684 then : 35685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35686 printf "%s\n" "yes" >&6; } 35687 35688 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h 35689 35690 35691 else $as_nop 35692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35693 printf "%s\n" "no" >&6; } 35694 35695 fi 35696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35697 conftest.$ac_objext conftest.beam conftest.$ac_ext 35698 fi 35699 35700 else 35701 oldcc=$CC 35702 old=$LD_LIBRARY_PATH 35703 CC="sh ./run-compiler" 35704 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 35705 export LD_LIBRARY_PATH 35706 if test "$cross_compiling" = yes 35707 then : 35708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35709 printf "%s\n" "no" >&6; } 35710 35711 else $as_nop 35712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35713 /* end confdefs.h. */ 35714 35715 #include <time.h> 35716 int main(void) { 35717 time_t t = -1; 35718 return t < 0; 35719 } 35720 35721 _ACEOF 35722 if ac_fn_c_try_run "$LINENO" 35723 then : 35724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35725 printf "%s\n" "yes" >&6; } 35726 35727 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h 35728 35729 35730 else $as_nop 35731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35732 printf "%s\n" "no" >&6; } 35733 35734 fi 35735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35736 conftest.$ac_objext conftest.beam conftest.$ac_ext 35737 fi 35738 35739 LD_LIBRARY_PATH=$old # restore 35740 CC=$oldcc 35741 fi 35742 35743 ;; 35744 esac 35745 35746 35747 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 35748 #undef inline 35749 #ifdef _WIN32 35750 #ifndef WIN32_LEAN_AND_MEAN 35751 #define WIN32_LEAN_AND_MEAN 35752 #endif 35753 #include <winsock2.h> 35754 #else 35755 #ifdef HAVE_SYS_TYPES_H 35756 #include <sys/types.h> 35757 #endif 35758 #include <sys/socket.h> 35759 #ifdef HAVE_NETINET_IN_H 35760 #include <netinet/in.h> 35761 #endif 35762 #ifdef HAVE_ARPA_INET_H 35763 #include <arpa/inet.h> 35764 #endif 35765 #endif 35766 35767 " 35768 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 35769 then : 35770 35771 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 35772 35773 fi 35774 35775 35776 35777 35778 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 35779 if test "x$ac_cv_header_sys_select_h" = xyes 35780 then : 35781 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 35782 35783 fi 35784 35785 # 35786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5 35787 printf %s "checking for select... " >&6; } 35788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35789 /* end confdefs.h. */ 35790 35791 35792 #undef inline 35793 #ifdef _WIN32 35794 #ifndef WIN32_LEAN_AND_MEAN 35795 #define WIN32_LEAN_AND_MEAN 35796 #endif 35797 #include <winsock2.h> 35798 #else 35799 #include <sys/socket.h> 35800 #include <sys/time.h> 35801 #endif 35802 #ifdef HAVE_SYS_TYPES_H 35803 #include <sys/types.h> 35804 #endif 35805 #include <time.h> 35806 #ifndef _WIN32 35807 #ifdef HAVE_SYS_SELECT_H 35808 #include <sys/select.h> 35809 #elif defined(HAVE_UNISTD_H) 35810 #include <unistd.h> 35811 #endif 35812 $curl_includes_bsdsocket 35813 #endif 35814 35815 int main(void) 35816 { 35817 35818 select(0, 0, 0, 0, 0); 35819 35820 return 0; 35821 } 35822 35823 _ACEOF 35824 if ac_fn_c_try_link "$LINENO" 35825 then : 35826 35827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35828 printf "%s\n" "yes" >&6; } 35829 curl_cv_select="yes" 35830 35831 else $as_nop 35832 35833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35834 printf "%s\n" "no" >&6; } 35835 curl_cv_select="no" 35836 35837 fi 35838 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35839 conftest$ac_exeext conftest.$ac_ext 35840 # 35841 if test "$curl_cv_select" = "yes"; then 35842 35843 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 35844 35845 curl_cv_func_select="yes" 35846 fi 35847 35848 35849 35850 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 35851 if test "x$ac_cv_header_sys_types_h" = xyes 35852 then : 35853 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 35854 35855 fi 35856 35857 # 35858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 35859 printf %s "checking for recv... " >&6; } 35860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35861 /* end confdefs.h. */ 35862 35863 35864 #undef inline 35865 #ifdef _WIN32 35866 #ifndef WIN32_LEAN_AND_MEAN 35867 #define WIN32_LEAN_AND_MEAN 35868 #endif 35869 #include <winsock2.h> 35870 #else 35871 $curl_includes_bsdsocket 35872 #ifdef HAVE_SYS_TYPES_H 35873 #include <sys/types.h> 35874 #endif 35875 #include <sys/socket.h> 35876 #endif 35877 35878 int main(void) 35879 { 35880 35881 recv(0, 0, 0, 0); 35882 35883 return 0; 35884 } 35885 35886 _ACEOF 35887 if ac_fn_c_try_link "$LINENO" 35888 then : 35889 35890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35891 printf "%s\n" "yes" >&6; } 35892 curl_cv_recv="yes" 35893 35894 else $as_nop 35895 35896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35897 printf "%s\n" "no" >&6; } 35898 curl_cv_recv="no" 35899 35900 fi 35901 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35902 conftest$ac_exeext conftest.$ac_ext 35903 # 35904 if test "$curl_cv_recv" = "yes"; then 35905 35906 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h 35907 35908 curl_cv_func_recv="yes" 35909 else 35910 as_fn_error $? "Unable to link function recv" "$LINENO" 5 35911 fi 35912 35913 35914 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 35915 if test "x$ac_cv_header_sys_types_h" = xyes 35916 then : 35917 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 35918 35919 fi 35920 35921 # 35922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5 35923 printf %s "checking for send... " >&6; } 35924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35925 /* end confdefs.h. */ 35926 35927 35928 #undef inline 35929 #ifdef _WIN32 35930 #ifndef WIN32_LEAN_AND_MEAN 35931 #define WIN32_LEAN_AND_MEAN 35932 #endif 35933 #include <winsock2.h> 35934 #else 35935 $curl_includes_bsdsocket 35936 #ifdef HAVE_SYS_TYPES_H 35937 #include <sys/types.h> 35938 #endif 35939 #include <sys/socket.h> 35940 #endif 35941 35942 int main(void) 35943 { 35944 35945 char s[] = ""; 35946 send(0, (void *)s, 0, 0); 35947 35948 return 0; 35949 } 35950 35951 _ACEOF 35952 if ac_fn_c_try_link "$LINENO" 35953 then : 35954 35955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35956 printf "%s\n" "yes" >&6; } 35957 curl_cv_send="yes" 35958 35959 else $as_nop 35960 35961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35962 printf "%s\n" "no" >&6; } 35963 curl_cv_send="no" 35964 35965 fi 35966 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35967 conftest$ac_exeext conftest.$ac_ext 35968 # 35969 if test "$curl_cv_send" = "yes"; then 35970 35971 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h 35972 35973 curl_cv_func_send="yes" 35974 else 35975 as_fn_error $? "Unable to link function send" "$LINENO" 5 35976 fi 35977 35978 35979 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 35980 if test "x$ac_cv_header_sys_types_h" = xyes 35981 then : 35982 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 35983 35984 fi 35985 35986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 35987 printf %s "checking for MSG_NOSIGNAL... " >&6; } 35988 if test ${curl_cv_msg_nosignal+y} 35989 then : 35990 printf %s "(cached) " >&6 35991 else $as_nop 35992 35993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35994 /* end confdefs.h. */ 35995 35996 35997 #undef inline 35998 #ifdef _WIN32 35999 #ifndef WIN32_LEAN_AND_MEAN 36000 #define WIN32_LEAN_AND_MEAN 36001 #endif 36002 #include <winsock2.h> 36003 #else 36004 #ifdef HAVE_SYS_TYPES_H 36005 #include <sys/types.h> 36006 #endif 36007 #include <sys/socket.h> 36008 #endif 36009 36010 int main(void) 36011 { 36012 36013 int flag = MSG_NOSIGNAL; 36014 (void)flag; 36015 36016 return 0; 36017 } 36018 36019 _ACEOF 36020 if ac_fn_c_try_compile "$LINENO" 36021 then : 36022 36023 curl_cv_msg_nosignal="yes" 36024 36025 else $as_nop 36026 36027 curl_cv_msg_nosignal="no" 36028 36029 fi 36030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36031 36032 fi 36033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5 36034 printf "%s\n" "$curl_cv_msg_nosignal" >&6; } 36035 case "$curl_cv_msg_nosignal" in 36036 yes) 36037 36038 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h 36039 36040 ;; 36041 esac 36042 36043 36044 36045 curl_includes_unistd="\ 36046 /* includes start */ 36047 #ifdef HAVE_SYS_TYPES_H 36048 # include <sys/types.h> 36049 #endif 36050 #ifdef HAVE_UNISTD_H 36051 # include <unistd.h> 36052 #endif 36053 /* includes end */" 36054 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd 36055 " 36056 if test "x$ac_cv_header_sys_types_h" = xyes 36057 then : 36058 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36059 36060 fi 36061 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd 36062 " 36063 if test "x$ac_cv_header_unistd_h" = xyes 36064 then : 36065 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 36066 36067 fi 36068 36069 36070 36071 # 36072 tst_links_alarm="unknown" 36073 tst_proto_alarm="unknown" 36074 tst_compi_alarm="unknown" 36075 tst_allow_alarm="unknown" 36076 # 36077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5 36078 printf %s "checking if alarm can be linked... " >&6; } 36079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36080 /* end confdefs.h. */ 36081 36082 36083 #define alarm innocuous_alarm 36084 #ifdef __STDC__ 36085 # include <limits.h> 36086 #else 36087 # include <assert.h> 36088 #endif 36089 #undef alarm 36090 #ifdef __cplusplus 36091 extern "C" 36092 #endif 36093 char alarm (); 36094 #if defined __stub_alarm || defined __stub___alarm 36095 #error force compilation error 36096 #endif 36097 36098 int main(void) 36099 { 36100 return alarm (); 36101 return 0; 36102 } 36103 36104 _ACEOF 36105 if ac_fn_c_try_link "$LINENO" 36106 then : 36107 36108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36109 printf "%s\n" "yes" >&6; } 36110 tst_links_alarm="yes" 36111 36112 else $as_nop 36113 36114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36115 printf "%s\n" "no" >&6; } 36116 tst_links_alarm="no" 36117 36118 fi 36119 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36120 conftest$ac_exeext conftest.$ac_ext 36121 # 36122 if test "$tst_links_alarm" = "yes"; then 36123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5 36124 printf %s "checking if alarm is prototyped... " >&6; } 36125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36126 /* end confdefs.h. */ 36127 36128 $curl_includes_unistd 36129 36130 _ACEOF 36131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36132 $EGREP "alarm" >/dev/null 2>&1 36133 then : 36134 36135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36136 printf "%s\n" "yes" >&6; } 36137 tst_proto_alarm="yes" 36138 36139 else $as_nop 36140 36141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36142 printf "%s\n" "no" >&6; } 36143 tst_proto_alarm="no" 36144 36145 fi 36146 rm -rf conftest* 36147 36148 fi 36149 # 36150 if test "$tst_proto_alarm" = "yes"; then 36151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5 36152 printf %s "checking if alarm is compilable... " >&6; } 36153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36154 /* end confdefs.h. */ 36155 36156 36157 $curl_includes_unistd 36158 36159 int main(void) 36160 { 36161 36162 if(0 != alarm(0)) 36163 return 1; 36164 36165 return 0; 36166 } 36167 36168 _ACEOF 36169 if ac_fn_c_try_compile "$LINENO" 36170 then : 36171 36172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36173 printf "%s\n" "yes" >&6; } 36174 tst_compi_alarm="yes" 36175 36176 else $as_nop 36177 36178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36179 printf "%s\n" "no" >&6; } 36180 tst_compi_alarm="no" 36181 36182 fi 36183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36184 fi 36185 # 36186 if test "$tst_compi_alarm" = "yes"; then 36187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5 36188 printf %s "checking if alarm usage allowed... " >&6; } 36189 if test "x$curl_disallow_alarm" != "xyes"; then 36190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36191 printf "%s\n" "yes" >&6; } 36192 tst_allow_alarm="yes" 36193 else 36194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36195 printf "%s\n" "no" >&6; } 36196 tst_allow_alarm="no" 36197 fi 36198 fi 36199 # 36200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5 36201 printf %s "checking if alarm might be used... " >&6; } 36202 if test "$tst_links_alarm" = "yes" && 36203 test "$tst_proto_alarm" = "yes" && 36204 test "$tst_compi_alarm" = "yes" && 36205 test "$tst_allow_alarm" = "yes"; then 36206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36207 printf "%s\n" "yes" >&6; } 36208 36209 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h 36210 36211 curl_cv_func_alarm="yes" 36212 else 36213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36214 printf "%s\n" "no" >&6; } 36215 curl_cv_func_alarm="no" 36216 fi 36217 36218 36219 curl_includes_string="\ 36220 /* includes start */ 36221 #ifdef HAVE_SYS_TYPES_H 36222 # include <sys/types.h> 36223 #endif 36224 #include <string.h> 36225 #ifdef HAVE_STRINGS_H 36226 # include <strings.h> 36227 #endif 36228 /* includes end */" 36229 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string 36230 " 36231 if test "x$ac_cv_header_sys_types_h" = xyes 36232 then : 36233 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36234 36235 fi 36236 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string 36237 " 36238 if test "x$ac_cv_header_strings_h" = xyes 36239 then : 36240 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 36241 36242 fi 36243 36244 36245 36246 curl_includes_libgen="\ 36247 /* includes start */ 36248 #ifdef HAVE_SYS_TYPES_H 36249 # include <sys/types.h> 36250 #endif 36251 #ifdef HAVE_LIBGEN_H 36252 # include <libgen.h> 36253 #endif 36254 /* includes end */" 36255 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen 36256 " 36257 if test "x$ac_cv_header_sys_types_h" = xyes 36258 then : 36259 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36260 36261 fi 36262 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen 36263 " 36264 if test "x$ac_cv_header_libgen_h" = xyes 36265 then : 36266 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h 36267 36268 fi 36269 36270 36271 36272 # 36273 tst_links_basename="unknown" 36274 tst_proto_basename="unknown" 36275 tst_compi_basename="unknown" 36276 tst_allow_basename="unknown" 36277 # 36278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5 36279 printf %s "checking if basename can be linked... " >&6; } 36280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36281 /* end confdefs.h. */ 36282 36283 36284 #define basename innocuous_basename 36285 #ifdef __STDC__ 36286 # include <limits.h> 36287 #else 36288 # include <assert.h> 36289 #endif 36290 #undef basename 36291 #ifdef __cplusplus 36292 extern "C" 36293 #endif 36294 char basename (); 36295 #if defined __stub_basename || defined __stub___basename 36296 #error force compilation error 36297 #endif 36298 36299 int main(void) 36300 { 36301 return basename (); 36302 return 0; 36303 } 36304 36305 _ACEOF 36306 if ac_fn_c_try_link "$LINENO" 36307 then : 36308 36309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36310 printf "%s\n" "yes" >&6; } 36311 tst_links_basename="yes" 36312 36313 else $as_nop 36314 36315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36316 printf "%s\n" "no" >&6; } 36317 tst_links_basename="no" 36318 36319 fi 36320 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36321 conftest$ac_exeext conftest.$ac_ext 36322 # 36323 if test "$tst_links_basename" = "yes"; then 36324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5 36325 printf %s "checking if basename is prototyped... " >&6; } 36326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36327 /* end confdefs.h. */ 36328 36329 $curl_includes_string 36330 $curl_includes_libgen 36331 $curl_includes_unistd 36332 36333 _ACEOF 36334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36335 $EGREP "basename" >/dev/null 2>&1 36336 then : 36337 36338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36339 printf "%s\n" "yes" >&6; } 36340 tst_proto_basename="yes" 36341 36342 else $as_nop 36343 36344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36345 printf "%s\n" "no" >&6; } 36346 tst_proto_basename="no" 36347 36348 fi 36349 rm -rf conftest* 36350 36351 fi 36352 # 36353 if test "$tst_proto_basename" = "yes"; then 36354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5 36355 printf %s "checking if basename is compilable... " >&6; } 36356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36357 /* end confdefs.h. */ 36358 36359 36360 $curl_includes_string 36361 $curl_includes_libgen 36362 $curl_includes_unistd 36363 36364 int main(void) 36365 { 36366 36367 if(0 != basename(0)) 36368 return 1; 36369 36370 return 0; 36371 } 36372 36373 _ACEOF 36374 if ac_fn_c_try_compile "$LINENO" 36375 then : 36376 36377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36378 printf "%s\n" "yes" >&6; } 36379 tst_compi_basename="yes" 36380 36381 else $as_nop 36382 36383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36384 printf "%s\n" "no" >&6; } 36385 tst_compi_basename="no" 36386 36387 fi 36388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36389 fi 36390 # 36391 if test "$tst_compi_basename" = "yes"; then 36392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5 36393 printf %s "checking if basename usage allowed... " >&6; } 36394 if test "x$curl_disallow_basename" != "xyes"; then 36395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36396 printf "%s\n" "yes" >&6; } 36397 tst_allow_basename="yes" 36398 else 36399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36400 printf "%s\n" "no" >&6; } 36401 tst_allow_basename="no" 36402 fi 36403 fi 36404 # 36405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5 36406 printf %s "checking if basename might be used... " >&6; } 36407 if test "$tst_links_basename" = "yes" && 36408 test "$tst_proto_basename" = "yes" && 36409 test "$tst_compi_basename" = "yes" && 36410 test "$tst_allow_basename" = "yes"; then 36411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36412 printf "%s\n" "yes" >&6; } 36413 36414 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h 36415 36416 curl_cv_func_basename="yes" 36417 else 36418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36419 printf "%s\n" "no" >&6; } 36420 curl_cv_func_basename="no" 36421 fi 36422 36423 36424 # 36425 tst_links_closesocket="unknown" 36426 tst_proto_closesocket="unknown" 36427 tst_compi_closesocket="unknown" 36428 tst_allow_closesocket="unknown" 36429 # 36430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 36431 printf %s "checking if closesocket can be linked... " >&6; } 36432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36433 /* end confdefs.h. */ 36434 36435 36436 $curl_includes_winsock2 36437 36438 int main(void) 36439 { 36440 36441 if(0 != closesocket(0)) 36442 return 1; 36443 36444 return 0; 36445 } 36446 36447 _ACEOF 36448 if ac_fn_c_try_link "$LINENO" 36449 then : 36450 36451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36452 printf "%s\n" "yes" >&6; } 36453 tst_links_closesocket="yes" 36454 36455 else $as_nop 36456 36457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36458 printf "%s\n" "no" >&6; } 36459 tst_links_closesocket="no" 36460 36461 fi 36462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36463 conftest$ac_exeext conftest.$ac_ext 36464 # 36465 if test "$tst_links_closesocket" = "yes"; then 36466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 36467 printf %s "checking if closesocket is prototyped... " >&6; } 36468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36469 /* end confdefs.h. */ 36470 36471 $curl_includes_winsock2 36472 36473 _ACEOF 36474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36475 $EGREP "closesocket" >/dev/null 2>&1 36476 then : 36477 36478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36479 printf "%s\n" "yes" >&6; } 36480 tst_proto_closesocket="yes" 36481 36482 else $as_nop 36483 36484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36485 printf "%s\n" "no" >&6; } 36486 tst_proto_closesocket="no" 36487 36488 fi 36489 rm -rf conftest* 36490 36491 fi 36492 # 36493 if test "$tst_proto_closesocket" = "yes"; then 36494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 36495 printf %s "checking if closesocket is compilable... " >&6; } 36496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36497 /* end confdefs.h. */ 36498 36499 36500 $curl_includes_winsock2 36501 36502 int main(void) 36503 { 36504 36505 if(0 != closesocket(0)) 36506 return 1; 36507 36508 return 0; 36509 } 36510 36511 _ACEOF 36512 if ac_fn_c_try_compile "$LINENO" 36513 then : 36514 36515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36516 printf "%s\n" "yes" >&6; } 36517 tst_compi_closesocket="yes" 36518 36519 else $as_nop 36520 36521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36522 printf "%s\n" "no" >&6; } 36523 tst_compi_closesocket="no" 36524 36525 fi 36526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36527 fi 36528 # 36529 if test "$tst_compi_closesocket" = "yes"; then 36530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 36531 printf %s "checking if closesocket usage allowed... " >&6; } 36532 if test "x$curl_disallow_closesocket" != "xyes"; then 36533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36534 printf "%s\n" "yes" >&6; } 36535 tst_allow_closesocket="yes" 36536 else 36537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36538 printf "%s\n" "no" >&6; } 36539 tst_allow_closesocket="no" 36540 fi 36541 fi 36542 # 36543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 36544 printf %s "checking if closesocket might be used... " >&6; } 36545 if test "$tst_links_closesocket" = "yes" && 36546 test "$tst_proto_closesocket" = "yes" && 36547 test "$tst_compi_closesocket" = "yes" && 36548 test "$tst_allow_closesocket" = "yes"; then 36549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36550 printf "%s\n" "yes" >&6; } 36551 36552 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h 36553 36554 curl_cv_func_closesocket="yes" 36555 else 36556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36557 printf "%s\n" "no" >&6; } 36558 curl_cv_func_closesocket="no" 36559 fi 36560 36561 36562 curl_includes_sys_socket="\ 36563 /* includes start */ 36564 #ifdef HAVE_SYS_TYPES_H 36565 # include <sys/types.h> 36566 #endif 36567 #ifndef _WIN32 36568 # include <sys/socket.h> 36569 #endif 36570 /* includes end */" 36571 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket 36572 " 36573 if test "x$ac_cv_header_sys_types_h" = xyes 36574 then : 36575 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36576 36577 fi 36578 36579 36580 36581 # 36582 tst_links_closesocket_camel="unknown" 36583 tst_compi_closesocket_camel="unknown" 36584 tst_allow_closesocket_camel="unknown" 36585 # 36586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 36587 printf %s "checking if CloseSocket can be linked... " >&6; } 36588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36589 /* end confdefs.h. */ 36590 36591 36592 $curl_includes_bsdsocket 36593 $curl_includes_sys_socket 36594 36595 int main(void) 36596 { 36597 36598 if(0 != CloseSocket(0)) 36599 return 1; 36600 36601 return 0; 36602 } 36603 36604 _ACEOF 36605 if ac_fn_c_try_link "$LINENO" 36606 then : 36607 36608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36609 printf "%s\n" "yes" >&6; } 36610 tst_links_closesocket_camel="yes" 36611 36612 else $as_nop 36613 36614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36615 printf "%s\n" "no" >&6; } 36616 tst_links_closesocket_camel="no" 36617 36618 fi 36619 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36620 conftest$ac_exeext conftest.$ac_ext 36621 # 36622 if test "$tst_links_closesocket_camel" = "yes"; then 36623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 36624 printf %s "checking if CloseSocket is compilable... " >&6; } 36625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36626 /* end confdefs.h. */ 36627 36628 36629 $curl_includes_bsdsocket 36630 $curl_includes_sys_socket 36631 36632 int main(void) 36633 { 36634 36635 if(0 != CloseSocket(0)) 36636 return 1; 36637 36638 return 0; 36639 } 36640 36641 _ACEOF 36642 if ac_fn_c_try_compile "$LINENO" 36643 then : 36644 36645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36646 printf "%s\n" "yes" >&6; } 36647 tst_compi_closesocket_camel="yes" 36648 36649 else $as_nop 36650 36651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36652 printf "%s\n" "no" >&6; } 36653 tst_compi_closesocket_camel="no" 36654 36655 fi 36656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36657 fi 36658 # 36659 if test "$tst_compi_closesocket_camel" = "yes"; then 36660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 36661 printf %s "checking if CloseSocket usage allowed... " >&6; } 36662 if test "x$curl_disallow_closesocket_camel" != "xyes"; then 36663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36664 printf "%s\n" "yes" >&6; } 36665 tst_allow_closesocket_camel="yes" 36666 else 36667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36668 printf "%s\n" "no" >&6; } 36669 tst_allow_closesocket_camel="no" 36670 fi 36671 fi 36672 # 36673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 36674 printf %s "checking if CloseSocket might be used... " >&6; } 36675 if test "$tst_links_closesocket_camel" = "yes" && 36676 test "$tst_compi_closesocket_camel" = "yes" && 36677 test "$tst_allow_closesocket_camel" = "yes"; then 36678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36679 printf "%s\n" "yes" >&6; } 36680 36681 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h 36682 36683 curl_cv_func_closesocket_camel="yes" 36684 else 36685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36686 printf "%s\n" "no" >&6; } 36687 curl_cv_func_closesocket_camel="no" 36688 fi 36689 36690 36691 curl_includes_fcntl="\ 36692 /* includes start */ 36693 #ifdef HAVE_SYS_TYPES_H 36694 # include <sys/types.h> 36695 #endif 36696 #ifdef HAVE_UNISTD_H 36697 # include <unistd.h> 36698 #endif 36699 #ifdef HAVE_FCNTL_H 36700 # include <fcntl.h> 36701 #endif 36702 /* includes end */" 36703 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl 36704 " 36705 if test "x$ac_cv_header_sys_types_h" = xyes 36706 then : 36707 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36708 36709 fi 36710 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl 36711 " 36712 if test "x$ac_cv_header_unistd_h" = xyes 36713 then : 36714 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 36715 36716 fi 36717 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl 36718 " 36719 if test "x$ac_cv_header_fcntl_h" = xyes 36720 then : 36721 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 36722 36723 fi 36724 36725 36726 36727 # 36728 tst_links_fcntl="unknown" 36729 tst_proto_fcntl="unknown" 36730 tst_compi_fcntl="unknown" 36731 tst_allow_fcntl="unknown" 36732 # 36733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 36734 printf %s "checking if fcntl can be linked... " >&6; } 36735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36736 /* end confdefs.h. */ 36737 36738 36739 #define fcntl innocuous_fcntl 36740 #ifdef __STDC__ 36741 # include <limits.h> 36742 #else 36743 # include <assert.h> 36744 #endif 36745 #undef fcntl 36746 #ifdef __cplusplus 36747 extern "C" 36748 #endif 36749 char fcntl (); 36750 #if defined __stub_fcntl || defined __stub___fcntl 36751 #error force compilation error 36752 #endif 36753 36754 int main(void) 36755 { 36756 return fcntl (); 36757 return 0; 36758 } 36759 36760 _ACEOF 36761 if ac_fn_c_try_link "$LINENO" 36762 then : 36763 36764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36765 printf "%s\n" "yes" >&6; } 36766 tst_links_fcntl="yes" 36767 36768 else $as_nop 36769 36770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36771 printf "%s\n" "no" >&6; } 36772 tst_links_fcntl="no" 36773 36774 fi 36775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36776 conftest$ac_exeext conftest.$ac_ext 36777 # 36778 if test "$tst_links_fcntl" = "yes"; then 36779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 36780 printf %s "checking if fcntl is prototyped... " >&6; } 36781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36782 /* end confdefs.h. */ 36783 36784 $curl_includes_fcntl 36785 36786 _ACEOF 36787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36788 $EGREP "fcntl" >/dev/null 2>&1 36789 then : 36790 36791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36792 printf "%s\n" "yes" >&6; } 36793 tst_proto_fcntl="yes" 36794 36795 else $as_nop 36796 36797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36798 printf "%s\n" "no" >&6; } 36799 tst_proto_fcntl="no" 36800 36801 fi 36802 rm -rf conftest* 36803 36804 fi 36805 # 36806 if test "$tst_proto_fcntl" = "yes"; then 36807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 36808 printf %s "checking if fcntl is compilable... " >&6; } 36809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36810 /* end confdefs.h. */ 36811 36812 36813 $curl_includes_fcntl 36814 36815 int main(void) 36816 { 36817 36818 if(0 != fcntl(0, 0, 0)) 36819 return 1; 36820 36821 return 0; 36822 } 36823 36824 _ACEOF 36825 if ac_fn_c_try_compile "$LINENO" 36826 then : 36827 36828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36829 printf "%s\n" "yes" >&6; } 36830 tst_compi_fcntl="yes" 36831 36832 else $as_nop 36833 36834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36835 printf "%s\n" "no" >&6; } 36836 tst_compi_fcntl="no" 36837 36838 fi 36839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36840 fi 36841 # 36842 if test "$tst_compi_fcntl" = "yes"; then 36843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 36844 printf %s "checking if fcntl usage allowed... " >&6; } 36845 if test "x$curl_disallow_fcntl" != "xyes"; then 36846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36847 printf "%s\n" "yes" >&6; } 36848 tst_allow_fcntl="yes" 36849 else 36850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36851 printf "%s\n" "no" >&6; } 36852 tst_allow_fcntl="no" 36853 fi 36854 fi 36855 # 36856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 36857 printf %s "checking if fcntl might be used... " >&6; } 36858 if test "$tst_links_fcntl" = "yes" && 36859 test "$tst_proto_fcntl" = "yes" && 36860 test "$tst_compi_fcntl" = "yes" && 36861 test "$tst_allow_fcntl" = "yes"; then 36862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36863 printf "%s\n" "yes" >&6; } 36864 36865 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 36866 36867 curl_cv_func_fcntl="yes" 36868 36869 # 36870 tst_compi_fcntl_o_nonblock="unknown" 36871 tst_allow_fcntl_o_nonblock="unknown" 36872 # 36873 case $host_os in 36874 sunos4* | aix3*) 36875 curl_disallow_fcntl_o_nonblock="yes" 36876 ;; 36877 esac 36878 # 36879 if test "$curl_cv_func_fcntl" = "yes"; then 36880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 36881 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; } 36882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36883 /* end confdefs.h. */ 36884 36885 36886 $curl_includes_fcntl 36887 36888 int main(void) 36889 { 36890 36891 int flags = 0; 36892 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) 36893 return 1; 36894 36895 return 0; 36896 } 36897 36898 _ACEOF 36899 if ac_fn_c_try_compile "$LINENO" 36900 then : 36901 36902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36903 printf "%s\n" "yes" >&6; } 36904 tst_compi_fcntl_o_nonblock="yes" 36905 36906 else $as_nop 36907 36908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36909 printf "%s\n" "no" >&6; } 36910 tst_compi_fcntl_o_nonblock="no" 36911 36912 fi 36913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36914 fi 36915 # 36916 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then 36917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 36918 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; } 36919 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then 36920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36921 printf "%s\n" "yes" >&6; } 36922 tst_allow_fcntl_o_nonblock="yes" 36923 else 36924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36925 printf "%s\n" "no" >&6; } 36926 tst_allow_fcntl_o_nonblock="no" 36927 fi 36928 fi 36929 # 36930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 36931 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; } 36932 if test "$tst_compi_fcntl_o_nonblock" = "yes" && 36933 test "$tst_allow_fcntl_o_nonblock" = "yes"; then 36934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36935 printf "%s\n" "yes" >&6; } 36936 36937 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h 36938 36939 curl_cv_func_fcntl_o_nonblock="yes" 36940 else 36941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36942 printf "%s\n" "no" >&6; } 36943 curl_cv_func_fcntl_o_nonblock="no" 36944 fi 36945 36946 else 36947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36948 printf "%s\n" "no" >&6; } 36949 curl_cv_func_fcntl="no" 36950 fi 36951 36952 36953 curl_includes_ws2tcpip="\ 36954 /* includes start */ 36955 #ifdef _WIN32 36956 # ifndef WIN32_LEAN_AND_MEAN 36957 # define WIN32_LEAN_AND_MEAN 36958 # endif 36959 # include <winsock2.h> 36960 # include <ws2tcpip.h> 36961 #endif 36962 /* includes end */" 36963 36964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 36965 printf %s "checking whether build target is a native Windows one... " >&6; } 36966 if test ${curl_cv_native_windows+y} 36967 then : 36968 printf %s "(cached) " >&6 36969 else $as_nop 36970 36971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36972 /* end confdefs.h. */ 36973 36974 36975 36976 int main(void) 36977 { 36978 36979 #ifdef _WIN32 36980 int dummy = 1; 36981 (void)dummy; 36982 #else 36983 #error Not a native Windows build target. 36984 #endif 36985 36986 return 0; 36987 } 36988 36989 _ACEOF 36990 if ac_fn_c_try_compile "$LINENO" 36991 then : 36992 36993 curl_cv_native_windows="yes" 36994 36995 else $as_nop 36996 36997 curl_cv_native_windows="no" 36998 36999 fi 37000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37001 37002 fi 37003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 37004 printf "%s\n" "$curl_cv_native_windows" >&6; } 37005 if test "x$curl_cv_native_windows" = xyes; then 37006 DOING_NATIVE_WINDOWS_TRUE= 37007 DOING_NATIVE_WINDOWS_FALSE='#' 37008 else 37009 DOING_NATIVE_WINDOWS_TRUE='#' 37010 DOING_NATIVE_WINDOWS_FALSE= 37011 fi 37012 37013 37014 37015 37016 curl_includes_netdb="\ 37017 /* includes start */ 37018 #ifdef HAVE_SYS_TYPES_H 37019 # include <sys/types.h> 37020 #endif 37021 #ifdef HAVE_NETDB_H 37022 # include <netdb.h> 37023 #endif 37024 /* includes end */" 37025 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb 37026 " 37027 if test "x$ac_cv_header_sys_types_h" = xyes 37028 then : 37029 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 37030 37031 fi 37032 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb 37033 " 37034 if test "x$ac_cv_header_netdb_h" = xyes 37035 then : 37036 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 37037 37038 fi 37039 37040 37041 37042 # 37043 tst_links_freeaddrinfo="unknown" 37044 tst_proto_freeaddrinfo="unknown" 37045 tst_compi_freeaddrinfo="unknown" 37046 tst_allow_freeaddrinfo="unknown" 37047 # 37048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 37049 printf %s "checking if freeaddrinfo can be linked... " >&6; } 37050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37051 /* end confdefs.h. */ 37052 37053 37054 $curl_includes_ws2tcpip 37055 $curl_includes_sys_socket 37056 $curl_includes_netdb 37057 37058 int main(void) 37059 { 37060 37061 freeaddrinfo(0); 37062 37063 return 0; 37064 } 37065 37066 _ACEOF 37067 if ac_fn_c_try_link "$LINENO" 37068 then : 37069 37070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37071 printf "%s\n" "yes" >&6; } 37072 tst_links_freeaddrinfo="yes" 37073 37074 else $as_nop 37075 37076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37077 printf "%s\n" "no" >&6; } 37078 tst_links_freeaddrinfo="no" 37079 37080 fi 37081 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37082 conftest$ac_exeext conftest.$ac_ext 37083 # 37084 if test "$tst_links_freeaddrinfo" = "yes"; then 37085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 37086 printf %s "checking if freeaddrinfo is prototyped... " >&6; } 37087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37088 /* end confdefs.h. */ 37089 37090 $curl_includes_ws2tcpip 37091 $curl_includes_sys_socket 37092 $curl_includes_netdb 37093 37094 _ACEOF 37095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37096 $EGREP "freeaddrinfo" >/dev/null 2>&1 37097 then : 37098 37099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37100 printf "%s\n" "yes" >&6; } 37101 tst_proto_freeaddrinfo="yes" 37102 37103 else $as_nop 37104 37105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37106 printf "%s\n" "no" >&6; } 37107 tst_proto_freeaddrinfo="no" 37108 37109 fi 37110 rm -rf conftest* 37111 37112 fi 37113 # 37114 if test "$tst_proto_freeaddrinfo" = "yes"; then 37115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 37116 printf %s "checking if freeaddrinfo is compilable... " >&6; } 37117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37118 /* end confdefs.h. */ 37119 37120 37121 $curl_includes_ws2tcpip 37122 $curl_includes_sys_socket 37123 $curl_includes_netdb 37124 37125 int main(void) 37126 { 37127 37128 freeaddrinfo(0); 37129 37130 return 0; 37131 } 37132 37133 _ACEOF 37134 if ac_fn_c_try_compile "$LINENO" 37135 then : 37136 37137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37138 printf "%s\n" "yes" >&6; } 37139 tst_compi_freeaddrinfo="yes" 37140 37141 else $as_nop 37142 37143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37144 printf "%s\n" "no" >&6; } 37145 tst_compi_freeaddrinfo="no" 37146 37147 fi 37148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37149 fi 37150 # 37151 if test "$tst_compi_freeaddrinfo" = "yes"; then 37152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 37153 printf %s "checking if freeaddrinfo usage allowed... " >&6; } 37154 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then 37155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37156 printf "%s\n" "yes" >&6; } 37157 tst_allow_freeaddrinfo="yes" 37158 else 37159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37160 printf "%s\n" "no" >&6; } 37161 tst_allow_freeaddrinfo="no" 37162 fi 37163 fi 37164 # 37165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 37166 printf %s "checking if freeaddrinfo might be used... " >&6; } 37167 if test "$tst_links_freeaddrinfo" = "yes" && 37168 test "$tst_proto_freeaddrinfo" = "yes" && 37169 test "$tst_compi_freeaddrinfo" = "yes" && 37170 test "$tst_allow_freeaddrinfo" = "yes"; then 37171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37172 printf "%s\n" "yes" >&6; } 37173 37174 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 37175 37176 curl_cv_func_freeaddrinfo="yes" 37177 else 37178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37179 printf "%s\n" "no" >&6; } 37180 curl_cv_func_freeaddrinfo="no" 37181 fi 37182 37183 37184 curl_includes_sys_xattr="\ 37185 /* includes start */ 37186 #ifdef HAVE_SYS_TYPES_H 37187 # include <sys/types.h> 37188 #endif 37189 #ifdef HAVE_SYS_XATTR_H 37190 # include <sys/xattr.h> 37191 #endif 37192 /* includes end */" 37193 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr 37194 " 37195 if test "x$ac_cv_header_sys_types_h" = xyes 37196 then : 37197 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 37198 37199 fi 37200 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr 37201 " 37202 if test "x$ac_cv_header_sys_xattr_h" = xyes 37203 then : 37204 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h 37205 37206 fi 37207 37208 37209 37210 # 37211 tst_links_fsetxattr="unknown" 37212 tst_proto_fsetxattr="unknown" 37213 tst_compi_fsetxattr="unknown" 37214 tst_allow_fsetxattr="unknown" 37215 tst_nargs_fsetxattr="unknown" 37216 # 37217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5 37218 printf %s "checking if fsetxattr can be linked... " >&6; } 37219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37220 /* end confdefs.h. */ 37221 37222 37223 #define fsetxattr innocuous_fsetxattr 37224 #ifdef __STDC__ 37225 # include <limits.h> 37226 #else 37227 # include <assert.h> 37228 #endif 37229 #undef fsetxattr 37230 #ifdef __cplusplus 37231 extern "C" 37232 #endif 37233 char fsetxattr (); 37234 #if defined __stub_fsetxattr || defined __stub___fsetxattr 37235 #error force compilation error 37236 #endif 37237 37238 int main(void) 37239 { 37240 return fsetxattr (); 37241 return 0; 37242 } 37243 37244 _ACEOF 37245 if ac_fn_c_try_link "$LINENO" 37246 then : 37247 37248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37249 printf "%s\n" "yes" >&6; } 37250 tst_links_fsetxattr="yes" 37251 37252 else $as_nop 37253 37254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37255 printf "%s\n" "no" >&6; } 37256 tst_links_fsetxattr="no" 37257 37258 fi 37259 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37260 conftest$ac_exeext conftest.$ac_ext 37261 # 37262 if test "$tst_links_fsetxattr" = "yes"; then 37263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5 37264 printf %s "checking if fsetxattr is prototyped... " >&6; } 37265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37266 /* end confdefs.h. */ 37267 37268 $curl_includes_sys_xattr 37269 37270 _ACEOF 37271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37272 $EGREP "fsetxattr" >/dev/null 2>&1 37273 then : 37274 37275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37276 printf "%s\n" "yes" >&6; } 37277 tst_proto_fsetxattr="yes" 37278 37279 else $as_nop 37280 37281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37282 printf "%s\n" "no" >&6; } 37283 tst_proto_fsetxattr="no" 37284 37285 fi 37286 rm -rf conftest* 37287 37288 fi 37289 # 37290 if test "$tst_proto_fsetxattr" = "yes"; then 37291 if test "$tst_nargs_fsetxattr" = "unknown"; then 37292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5 37293 printf %s "checking if fsetxattr takes 5 args.... " >&6; } 37294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37295 /* end confdefs.h. */ 37296 37297 37298 $curl_includes_sys_xattr 37299 37300 int main(void) 37301 { 37302 37303 if(0 != fsetxattr(0, "", 0, 0, 0)) 37304 return 1; 37305 37306 return 0; 37307 } 37308 37309 _ACEOF 37310 if ac_fn_c_try_compile "$LINENO" 37311 then : 37312 37313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37314 printf "%s\n" "yes" >&6; } 37315 tst_compi_fsetxattr="yes" 37316 tst_nargs_fsetxattr="5" 37317 37318 else $as_nop 37319 37320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37321 printf "%s\n" "no" >&6; } 37322 tst_compi_fsetxattr="no" 37323 37324 fi 37325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37326 fi 37327 if test "$tst_nargs_fsetxattr" = "unknown"; then 37328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5 37329 printf %s "checking if fsetxattr takes 6 args.... " >&6; } 37330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37331 /* end confdefs.h. */ 37332 37333 37334 $curl_includes_sys_xattr 37335 37336 int main(void) 37337 { 37338 37339 if(0 != fsetxattr(0, 0, 0, 0, 0, 0)) 37340 return 1; 37341 37342 return 0; 37343 } 37344 37345 _ACEOF 37346 if ac_fn_c_try_compile "$LINENO" 37347 then : 37348 37349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37350 printf "%s\n" "yes" >&6; } 37351 tst_compi_fsetxattr="yes" 37352 tst_nargs_fsetxattr="6" 37353 37354 else $as_nop 37355 37356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37357 printf "%s\n" "no" >&6; } 37358 tst_compi_fsetxattr="no" 37359 37360 fi 37361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37362 fi 37363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5 37364 printf %s "checking if fsetxattr is compilable... " >&6; } 37365 if test "$tst_compi_fsetxattr" = "yes"; then 37366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37367 printf "%s\n" "yes" >&6; } 37368 else 37369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37370 printf "%s\n" "no" >&6; } 37371 fi 37372 fi 37373 # 37374 if test "$tst_compi_fsetxattr" = "yes"; then 37375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5 37376 printf %s "checking if fsetxattr usage allowed... " >&6; } 37377 if test "x$curl_disallow_fsetxattr" != "xyes"; then 37378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37379 printf "%s\n" "yes" >&6; } 37380 tst_allow_fsetxattr="yes" 37381 else 37382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37383 printf "%s\n" "no" >&6; } 37384 tst_allow_fsetxattr="no" 37385 fi 37386 fi 37387 # 37388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5 37389 printf %s "checking if fsetxattr might be used... " >&6; } 37390 if test "$tst_links_fsetxattr" = "yes" && 37391 test "$tst_proto_fsetxattr" = "yes" && 37392 test "$tst_compi_fsetxattr" = "yes" && 37393 test "$tst_allow_fsetxattr" = "yes"; then 37394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37395 printf "%s\n" "yes" >&6; } 37396 37397 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h 37398 37399 # 37400 if test "$tst_nargs_fsetxattr" -eq "5"; then 37401 37402 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h 37403 37404 elif test "$tst_nargs_fsetxattr" -eq "6"; then 37405 37406 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h 37407 37408 fi 37409 # 37410 curl_cv_func_fsetxattr="yes" 37411 else 37412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37413 printf "%s\n" "no" >&6; } 37414 curl_cv_func_fsetxattr="no" 37415 fi 37416 37417 37418 # 37419 tst_links_ftruncate="unknown" 37420 tst_proto_ftruncate="unknown" 37421 tst_compi_ftruncate="unknown" 37422 tst_allow_ftruncate="unknown" 37423 # 37424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5 37425 printf %s "checking if ftruncate can be linked... " >&6; } 37426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37427 /* end confdefs.h. */ 37428 37429 37430 #define ftruncate innocuous_ftruncate 37431 #ifdef __STDC__ 37432 # include <limits.h> 37433 #else 37434 # include <assert.h> 37435 #endif 37436 #undef ftruncate 37437 #ifdef __cplusplus 37438 extern "C" 37439 #endif 37440 char ftruncate (); 37441 #if defined __stub_ftruncate || defined __stub___ftruncate 37442 #error force compilation error 37443 #endif 37444 37445 int main(void) 37446 { 37447 return ftruncate (); 37448 return 0; 37449 } 37450 37451 _ACEOF 37452 if ac_fn_c_try_link "$LINENO" 37453 then : 37454 37455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37456 printf "%s\n" "yes" >&6; } 37457 tst_links_ftruncate="yes" 37458 37459 else $as_nop 37460 37461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37462 printf "%s\n" "no" >&6; } 37463 tst_links_ftruncate="no" 37464 37465 fi 37466 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37467 conftest$ac_exeext conftest.$ac_ext 37468 # 37469 if test "$tst_links_ftruncate" = "yes"; then 37470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5 37471 printf %s "checking if ftruncate is prototyped... " >&6; } 37472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37473 /* end confdefs.h. */ 37474 37475 $curl_includes_unistd 37476 37477 _ACEOF 37478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37479 $EGREP "ftruncate" >/dev/null 2>&1 37480 then : 37481 37482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37483 printf "%s\n" "yes" >&6; } 37484 tst_proto_ftruncate="yes" 37485 37486 else $as_nop 37487 37488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37489 printf "%s\n" "no" >&6; } 37490 tst_proto_ftruncate="no" 37491 37492 fi 37493 rm -rf conftest* 37494 37495 fi 37496 # 37497 if test "$tst_proto_ftruncate" = "yes"; then 37498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5 37499 printf %s "checking if ftruncate is compilable... " >&6; } 37500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37501 /* end confdefs.h. */ 37502 37503 37504 $curl_includes_unistd 37505 37506 int main(void) 37507 { 37508 37509 if(0 != ftruncate(0, 0)) 37510 return 1; 37511 37512 return 0; 37513 } 37514 37515 _ACEOF 37516 if ac_fn_c_try_compile "$LINENO" 37517 then : 37518 37519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37520 printf "%s\n" "yes" >&6; } 37521 tst_compi_ftruncate="yes" 37522 37523 else $as_nop 37524 37525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37526 printf "%s\n" "no" >&6; } 37527 tst_compi_ftruncate="no" 37528 37529 fi 37530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37531 fi 37532 # 37533 if test "$tst_compi_ftruncate" = "yes"; then 37534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5 37535 printf %s "checking if ftruncate usage allowed... " >&6; } 37536 if test "x$curl_disallow_ftruncate" != "xyes"; then 37537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37538 printf "%s\n" "yes" >&6; } 37539 tst_allow_ftruncate="yes" 37540 else 37541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37542 printf "%s\n" "no" >&6; } 37543 tst_allow_ftruncate="no" 37544 fi 37545 fi 37546 # 37547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5 37548 printf %s "checking if ftruncate might be used... " >&6; } 37549 if test "$tst_links_ftruncate" = "yes" && 37550 test "$tst_proto_ftruncate" = "yes" && 37551 test "$tst_compi_ftruncate" = "yes" && 37552 test "$tst_allow_ftruncate" = "yes"; then 37553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37554 printf "%s\n" "yes" >&6; } 37555 37556 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h 37557 37558 curl_cv_func_ftruncate="yes" 37559 else 37560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37561 printf "%s\n" "no" >&6; } 37562 curl_cv_func_ftruncate="no" 37563 fi 37564 37565 37566 curl_includes_stdlib="\ 37567 /* includes start */ 37568 #ifdef HAVE_SYS_TYPES_H 37569 # include <sys/types.h> 37570 #endif 37571 #include <stdlib.h> 37572 /* includes end */" 37573 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib 37574 " 37575 if test "x$ac_cv_header_sys_types_h" = xyes 37576 then : 37577 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 37578 37579 fi 37580 37581 37582 37583 # 37584 tst_links_getaddrinfo="unknown" 37585 tst_proto_getaddrinfo="unknown" 37586 tst_compi_getaddrinfo="unknown" 37587 tst_works_getaddrinfo="unknown" 37588 tst_allow_getaddrinfo="unknown" 37589 tst_tsafe_getaddrinfo="unknown" 37590 # 37591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 37592 printf %s "checking if getaddrinfo can be linked... " >&6; } 37593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37594 /* end confdefs.h. */ 37595 37596 37597 $curl_includes_ws2tcpip 37598 $curl_includes_sys_socket 37599 $curl_includes_netdb 37600 37601 int main(void) 37602 { 37603 37604 struct addrinfo *ai = 0; 37605 if(0 != getaddrinfo(0, 0, 0, &ai)) 37606 return 1; 37607 37608 return 0; 37609 } 37610 37611 _ACEOF 37612 if ac_fn_c_try_link "$LINENO" 37613 then : 37614 37615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37616 printf "%s\n" "yes" >&6; } 37617 tst_links_getaddrinfo="yes" 37618 37619 else $as_nop 37620 37621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37622 printf "%s\n" "no" >&6; } 37623 tst_links_getaddrinfo="no" 37624 37625 fi 37626 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37627 conftest$ac_exeext conftest.$ac_ext 37628 # 37629 if test "$tst_links_getaddrinfo" = "yes"; then 37630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 37631 printf %s "checking if getaddrinfo is prototyped... " >&6; } 37632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37633 /* end confdefs.h. */ 37634 37635 $curl_includes_ws2tcpip 37636 $curl_includes_sys_socket 37637 $curl_includes_netdb 37638 37639 _ACEOF 37640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37641 $EGREP "getaddrinfo" >/dev/null 2>&1 37642 then : 37643 37644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37645 printf "%s\n" "yes" >&6; } 37646 tst_proto_getaddrinfo="yes" 37647 37648 else $as_nop 37649 37650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37651 printf "%s\n" "no" >&6; } 37652 tst_proto_getaddrinfo="no" 37653 37654 fi 37655 rm -rf conftest* 37656 37657 fi 37658 # 37659 if test "$tst_proto_getaddrinfo" = "yes"; then 37660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 37661 printf %s "checking if getaddrinfo is compilable... " >&6; } 37662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37663 /* end confdefs.h. */ 37664 37665 37666 $curl_includes_ws2tcpip 37667 $curl_includes_sys_socket 37668 $curl_includes_netdb 37669 37670 int main(void) 37671 { 37672 37673 struct addrinfo *ai = 0; 37674 if(0 != getaddrinfo(0, 0, 0, &ai)) 37675 return 1; 37676 37677 return 0; 37678 } 37679 37680 _ACEOF 37681 if ac_fn_c_try_compile "$LINENO" 37682 then : 37683 37684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37685 printf "%s\n" "yes" >&6; } 37686 tst_compi_getaddrinfo="yes" 37687 37688 else $as_nop 37689 37690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37691 printf "%s\n" "no" >&6; } 37692 tst_compi_getaddrinfo="no" 37693 37694 fi 37695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37696 fi 37697 # 37698 if test "x$cross_compiling" != "xyes" && 37699 test "$tst_compi_getaddrinfo" = "yes"; then 37700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 37701 printf %s "checking if getaddrinfo seems to work... " >&6; } 37702 37703 if test "$curl_cv_apple" = 'yes'; then 37704 if test "$cross_compiling" = yes 37705 then : 37706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 37707 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 37708 as_fn_error $? "cannot run test program while cross compiling 37709 See \`config.log' for more details" "$LINENO" 5; } 37710 else $as_nop 37711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37712 /* end confdefs.h. */ 37713 37714 37715 $curl_includes_ws2tcpip 37716 $curl_includes_stdlib 37717 $curl_includes_string 37718 $curl_includes_sys_socket 37719 $curl_includes_netdb 37720 37721 int main(void) 37722 { 37723 37724 struct addrinfo hints; 37725 struct addrinfo *ai = 0; 37726 int error; 37727 int exitcode; 37728 37729 #ifdef _WIN32 37730 WSADATA wsa; 37731 if(WSAStartup(MAKEWORD(2, 2), &wsa)) 37732 return 2; 37733 #endif 37734 37735 memset(&hints, 0, sizeof(hints)); 37736 hints.ai_flags = AI_NUMERICHOST; 37737 hints.ai_family = AF_UNSPEC; 37738 hints.ai_socktype = SOCK_STREAM; 37739 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 37740 if(error || !ai) 37741 exitcode = 1; /* fail */ 37742 else { 37743 freeaddrinfo(ai); 37744 exitcode = 0; 37745 } 37746 #ifdef _WIN32 37747 WSACleanup(); 37748 #endif 37749 return exitcode; 37750 37751 return 0; 37752 } 37753 37754 _ACEOF 37755 if ac_fn_c_try_run "$LINENO" 37756 then : 37757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37758 printf "%s\n" "yes" >&6; } 37759 tst_works_getaddrinfo="yes" 37760 37761 else $as_nop 37762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37763 printf "%s\n" "no" >&6; } 37764 tst_works_getaddrinfo="no" 37765 37766 fi 37767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37768 conftest.$ac_objext conftest.beam conftest.$ac_ext 37769 fi 37770 37771 else 37772 oldcc=$CC 37773 old=$LD_LIBRARY_PATH 37774 CC="sh ./run-compiler" 37775 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 37776 export LD_LIBRARY_PATH 37777 if test "$cross_compiling" = yes 37778 then : 37779 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 37780 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 37781 as_fn_error $? "cannot run test program while cross compiling 37782 See \`config.log' for more details" "$LINENO" 5; } 37783 else $as_nop 37784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37785 /* end confdefs.h. */ 37786 37787 37788 $curl_includes_ws2tcpip 37789 $curl_includes_stdlib 37790 $curl_includes_string 37791 $curl_includes_sys_socket 37792 $curl_includes_netdb 37793 37794 int main(void) 37795 { 37796 37797 struct addrinfo hints; 37798 struct addrinfo *ai = 0; 37799 int error; 37800 int exitcode; 37801 37802 #ifdef _WIN32 37803 WSADATA wsa; 37804 if(WSAStartup(MAKEWORD(2, 2), &wsa)) 37805 return 2; 37806 #endif 37807 37808 memset(&hints, 0, sizeof(hints)); 37809 hints.ai_flags = AI_NUMERICHOST; 37810 hints.ai_family = AF_UNSPEC; 37811 hints.ai_socktype = SOCK_STREAM; 37812 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 37813 if(error || !ai) 37814 exitcode = 1; /* fail */ 37815 else { 37816 freeaddrinfo(ai); 37817 exitcode = 0; 37818 } 37819 #ifdef _WIN32 37820 WSACleanup(); 37821 #endif 37822 return exitcode; 37823 37824 return 0; 37825 } 37826 37827 _ACEOF 37828 if ac_fn_c_try_run "$LINENO" 37829 then : 37830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37831 printf "%s\n" "yes" >&6; } 37832 tst_works_getaddrinfo="yes" 37833 37834 else $as_nop 37835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37836 printf "%s\n" "no" >&6; } 37837 tst_works_getaddrinfo="no" 37838 37839 fi 37840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37841 conftest.$ac_objext conftest.beam conftest.$ac_ext 37842 fi 37843 37844 LD_LIBRARY_PATH=$old # restore 37845 CC=$oldcc 37846 fi 37847 37848 fi 37849 # 37850 if test "$tst_compi_getaddrinfo" = "yes" && 37851 test "$tst_works_getaddrinfo" != "no"; then 37852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 37853 printf %s "checking if getaddrinfo usage allowed... " >&6; } 37854 if test "x$curl_disallow_getaddrinfo" != "xyes"; then 37855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37856 printf "%s\n" "yes" >&6; } 37857 tst_allow_getaddrinfo="yes" 37858 else 37859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37860 printf "%s\n" "no" >&6; } 37861 tst_allow_getaddrinfo="no" 37862 fi 37863 fi 37864 # 37865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 37866 printf %s "checking if getaddrinfo might be used... " >&6; } 37867 if test "$tst_proto_getaddrinfo" = "yes" && 37868 test "$tst_compi_getaddrinfo" = "yes" && 37869 test "$tst_allow_getaddrinfo" = "yes" && 37870 test "$tst_works_getaddrinfo" != "no"; then 37871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37872 printf "%s\n" "yes" >&6; } 37873 37874 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 37875 37876 curl_cv_func_getaddrinfo="yes" 37877 else 37878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37879 printf "%s\n" "no" >&6; } 37880 curl_cv_func_getaddrinfo="no" 37881 curl_cv_func_getaddrinfo_threadsafe="no" 37882 fi 37883 # 37884 if test "$curl_cv_func_getaddrinfo" = "yes"; then 37885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 37886 printf %s "checking if getaddrinfo is threadsafe... " >&6; } 37887 if test "$curl_cv_apple" = 'yes'; then 37888 tst_tsafe_getaddrinfo="yes" 37889 fi 37890 case $host_os in 37891 aix[1234].* | aix5.[01].*) 37892 tst_tsafe_getaddrinfo="no" 37893 ;; 37894 aix*) 37895 tst_tsafe_getaddrinfo="yes" 37896 ;; 37897 darwin[12345].*) 37898 tst_tsafe_getaddrinfo="no" 37899 ;; 37900 freebsd[1234].* | freebsd5.[1234]*) 37901 tst_tsafe_getaddrinfo="no" 37902 ;; 37903 freebsd*) 37904 tst_tsafe_getaddrinfo="yes" 37905 ;; 37906 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) 37907 tst_tsafe_getaddrinfo="no" 37908 ;; 37909 hpux*) 37910 tst_tsafe_getaddrinfo="yes" 37911 ;; 37912 midnightbsd*) 37913 tst_tsafe_getaddrinfo="yes" 37914 ;; 37915 netbsd[123].*) 37916 tst_tsafe_getaddrinfo="no" 37917 ;; 37918 netbsd*) 37919 tst_tsafe_getaddrinfo="yes" 37920 ;; 37921 *bsd*) 37922 tst_tsafe_getaddrinfo="no" 37923 ;; 37924 solaris2*) 37925 tst_tsafe_getaddrinfo="yes" 37926 ;; 37927 esac 37928 if test "$tst_tsafe_getaddrinfo" = "unknown" && 37929 test "$curl_cv_native_windows" = "yes"; then 37930 tst_tsafe_getaddrinfo="yes" 37931 fi 37932 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 37933 tst_tsafe_getaddrinfo="yes" 37934 fi 37935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 37936 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; } 37937 if test "$tst_tsafe_getaddrinfo" = "yes"; then 37938 37939 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h 37940 37941 curl_cv_func_getaddrinfo_threadsafe="yes" 37942 else 37943 curl_cv_func_getaddrinfo_threadsafe="no" 37944 fi 37945 fi 37946 37947 37948 # 37949 tst_links_gethostbyname_r="unknown" 37950 tst_proto_gethostbyname_r="unknown" 37951 tst_compi_gethostbyname_r="unknown" 37952 tst_allow_gethostbyname_r="unknown" 37953 tst_nargs_gethostbyname_r="unknown" 37954 # 37955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5 37956 printf %s "checking if gethostbyname_r can be linked... " >&6; } 37957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37958 /* end confdefs.h. */ 37959 37960 37961 #define gethostbyname_r innocuous_gethostbyname_r 37962 #ifdef __STDC__ 37963 # include <limits.h> 37964 #else 37965 # include <assert.h> 37966 #endif 37967 #undef gethostbyname_r 37968 #ifdef __cplusplus 37969 extern "C" 37970 #endif 37971 char gethostbyname_r (); 37972 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 37973 #error force compilation error 37974 #endif 37975 37976 int main(void) 37977 { 37978 return gethostbyname_r (); 37979 return 0; 37980 } 37981 37982 _ACEOF 37983 if ac_fn_c_try_link "$LINENO" 37984 then : 37985 37986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37987 printf "%s\n" "yes" >&6; } 37988 tst_links_gethostbyname_r="yes" 37989 37990 else $as_nop 37991 37992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37993 printf "%s\n" "no" >&6; } 37994 tst_links_gethostbyname_r="no" 37995 37996 fi 37997 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37998 conftest$ac_exeext conftest.$ac_ext 37999 # 38000 if test "$tst_links_gethostbyname_r" = "yes"; then 38001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5 38002 printf %s "checking if gethostbyname_r is prototyped... " >&6; } 38003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38004 /* end confdefs.h. */ 38005 38006 $curl_includes_netdb 38007 38008 _ACEOF 38009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38010 $EGREP "gethostbyname_r" >/dev/null 2>&1 38011 then : 38012 38013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38014 printf "%s\n" "yes" >&6; } 38015 tst_proto_gethostbyname_r="yes" 38016 38017 else $as_nop 38018 38019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38020 printf "%s\n" "no" >&6; } 38021 tst_proto_gethostbyname_r="no" 38022 38023 fi 38024 rm -rf conftest* 38025 38026 fi 38027 # 38028 if test "$tst_proto_gethostbyname_r" = "yes"; then 38029 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 38030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5 38031 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; } 38032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38033 /* end confdefs.h. */ 38034 38035 38036 $curl_includes_netdb 38037 $curl_includes_bsdsocket 38038 38039 int main(void) 38040 { 38041 38042 if(0 != gethostbyname_r(0, 0, 0)) 38043 return 1; 38044 38045 return 0; 38046 } 38047 38048 _ACEOF 38049 if ac_fn_c_try_compile "$LINENO" 38050 then : 38051 38052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38053 printf "%s\n" "yes" >&6; } 38054 tst_compi_gethostbyname_r="yes" 38055 tst_nargs_gethostbyname_r="3" 38056 38057 else $as_nop 38058 38059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38060 printf "%s\n" "no" >&6; } 38061 tst_compi_gethostbyname_r="no" 38062 38063 fi 38064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38065 fi 38066 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 38067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5 38068 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; } 38069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38070 /* end confdefs.h. */ 38071 38072 38073 $curl_includes_netdb 38074 $curl_includes_bsdsocket 38075 38076 int main(void) 38077 { 38078 38079 if(0 != gethostbyname_r(0, 0, 0, 0, 0)) 38080 return 1; 38081 38082 return 0; 38083 } 38084 38085 _ACEOF 38086 if ac_fn_c_try_compile "$LINENO" 38087 then : 38088 38089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38090 printf "%s\n" "yes" >&6; } 38091 tst_compi_gethostbyname_r="yes" 38092 tst_nargs_gethostbyname_r="5" 38093 38094 else $as_nop 38095 38096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38097 printf "%s\n" "no" >&6; } 38098 tst_compi_gethostbyname_r="no" 38099 38100 fi 38101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38102 fi 38103 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 38104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5 38105 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; } 38106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38107 /* end confdefs.h. */ 38108 38109 38110 $curl_includes_netdb 38111 $curl_includes_bsdsocket 38112 38113 int main(void) 38114 { 38115 38116 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0)) 38117 return 1; 38118 38119 return 0; 38120 } 38121 38122 _ACEOF 38123 if ac_fn_c_try_compile "$LINENO" 38124 then : 38125 38126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38127 printf "%s\n" "yes" >&6; } 38128 tst_compi_gethostbyname_r="yes" 38129 tst_nargs_gethostbyname_r="6" 38130 38131 else $as_nop 38132 38133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38134 printf "%s\n" "no" >&6; } 38135 tst_compi_gethostbyname_r="no" 38136 38137 fi 38138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38139 fi 38140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5 38141 printf %s "checking if gethostbyname_r is compilable... " >&6; } 38142 if test "$tst_compi_gethostbyname_r" = "yes"; then 38143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38144 printf "%s\n" "yes" >&6; } 38145 else 38146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38147 printf "%s\n" "no" >&6; } 38148 fi 38149 fi 38150 # 38151 if test "$tst_compi_gethostbyname_r" = "yes"; then 38152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5 38153 printf %s "checking if gethostbyname_r usage allowed... " >&6; } 38154 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then 38155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38156 printf "%s\n" "yes" >&6; } 38157 tst_allow_gethostbyname_r="yes" 38158 else 38159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38160 printf "%s\n" "no" >&6; } 38161 tst_allow_gethostbyname_r="no" 38162 fi 38163 fi 38164 # 38165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5 38166 printf %s "checking if gethostbyname_r might be used... " >&6; } 38167 if test "$tst_links_gethostbyname_r" = "yes" && 38168 test "$tst_proto_gethostbyname_r" = "yes" && 38169 test "$tst_compi_gethostbyname_r" = "yes" && 38170 test "$tst_allow_gethostbyname_r" = "yes"; then 38171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38172 printf "%s\n" "yes" >&6; } 38173 38174 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 38175 38176 # 38177 if test "$tst_nargs_gethostbyname_r" -eq "3"; then 38178 38179 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h 38180 38181 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then 38182 38183 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h 38184 38185 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then 38186 38187 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h 38188 38189 fi 38190 # 38191 curl_cv_func_gethostbyname_r="yes" 38192 else 38193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38194 printf "%s\n" "no" >&6; } 38195 curl_cv_func_gethostbyname_r="no" 38196 fi 38197 38198 38199 curl_preprocess_callconv="\ 38200 /* preprocess start */ 38201 #ifdef _WIN32 38202 # define FUNCALLCONV __stdcall 38203 #else 38204 # define FUNCALLCONV 38205 #endif 38206 /* preprocess end */" 38207 38208 38209 # 38210 tst_links_gethostname="unknown" 38211 tst_proto_gethostname="unknown" 38212 tst_compi_gethostname="unknown" 38213 tst_allow_gethostname="unknown" 38214 # 38215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 38216 printf %s "checking if gethostname can be linked... " >&6; } 38217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38218 /* end confdefs.h. */ 38219 38220 38221 $curl_includes_winsock2 38222 $curl_includes_unistd 38223 $curl_includes_bsdsocket 38224 38225 int main(void) 38226 { 38227 38228 char s[1]; 38229 if(0 != gethostname((void *)s, 0)) 38230 return 1; 38231 38232 return 0; 38233 } 38234 38235 _ACEOF 38236 if ac_fn_c_try_link "$LINENO" 38237 then : 38238 38239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38240 printf "%s\n" "yes" >&6; } 38241 tst_links_gethostname="yes" 38242 38243 else $as_nop 38244 38245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38246 printf "%s\n" "no" >&6; } 38247 tst_links_gethostname="no" 38248 38249 fi 38250 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38251 conftest$ac_exeext conftest.$ac_ext 38252 # 38253 if test "$tst_links_gethostname" = "yes"; then 38254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 38255 printf %s "checking if gethostname is prototyped... " >&6; } 38256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38257 /* end confdefs.h. */ 38258 38259 $curl_includes_winsock2 38260 $curl_includes_unistd 38261 $curl_includes_bsdsocket 38262 38263 _ACEOF 38264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38265 $EGREP "gethostname" >/dev/null 2>&1 38266 then : 38267 38268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38269 printf "%s\n" "yes" >&6; } 38270 tst_proto_gethostname="yes" 38271 38272 else $as_nop 38273 38274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38275 printf "%s\n" "no" >&6; } 38276 tst_proto_gethostname="no" 38277 38278 fi 38279 rm -rf conftest* 38280 38281 fi 38282 # 38283 if test "$tst_proto_gethostname" = "yes"; then 38284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 38285 printf %s "checking if gethostname is compilable... " >&6; } 38286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38287 /* end confdefs.h. */ 38288 38289 38290 $curl_includes_winsock2 38291 $curl_includes_unistd 38292 $curl_includes_bsdsocket 38293 38294 int main(void) 38295 { 38296 38297 char s[1]; 38298 if(0 != gethostname((void *)s, 0)) 38299 return 1; 38300 38301 return 0; 38302 } 38303 38304 _ACEOF 38305 if ac_fn_c_try_compile "$LINENO" 38306 then : 38307 38308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38309 printf "%s\n" "yes" >&6; } 38310 tst_compi_gethostname="yes" 38311 38312 else $as_nop 38313 38314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38315 printf "%s\n" "no" >&6; } 38316 tst_compi_gethostname="no" 38317 38318 fi 38319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38320 fi 38321 # 38322 if test "$tst_compi_gethostname" = "yes"; then 38323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5 38324 printf %s "checking for gethostname arg 2 data type... " >&6; } 38325 tst_gethostname_type_arg2="unknown" 38326 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do 38327 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do 38328 if test "$tst_gethostname_type_arg2" = "unknown"; then 38329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38330 /* end confdefs.h. */ 38331 38332 38333 $curl_includes_winsock2 38334 $curl_includes_unistd 38335 $curl_includes_bsdsocket 38336 $curl_preprocess_callconv 38337 #if defined(_WIN32) && defined(WINSOCK_API_LINKAGE) 38338 WINSOCK_API_LINKAGE 38339 #else 38340 extern 38341 #endif 38342 int FUNCALLCONV gethostname($tst_arg1, $tst_arg2); 38343 38344 int main(void) 38345 { 38346 38347 char s[1]; 38348 if(0 != gethostname(($tst_arg1)s, 0)) 38349 return 1; 38350 38351 return 0; 38352 } 38353 38354 _ACEOF 38355 if ac_fn_c_try_compile "$LINENO" 38356 then : 38357 38358 tst_gethostname_type_arg2="$tst_arg2" 38359 38360 fi 38361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38362 fi 38363 done 38364 done 38365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5 38366 printf "%s\n" "$tst_gethostname_type_arg2" >&6; } 38367 if test "$tst_gethostname_type_arg2" != "unknown"; then 38368 38369 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h 38370 38371 fi 38372 fi 38373 # 38374 if test "$tst_compi_gethostname" = "yes"; then 38375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 38376 printf %s "checking if gethostname usage allowed... " >&6; } 38377 if test "x$curl_disallow_gethostname" != "xyes"; then 38378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38379 printf "%s\n" "yes" >&6; } 38380 tst_allow_gethostname="yes" 38381 else 38382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38383 printf "%s\n" "no" >&6; } 38384 tst_allow_gethostname="no" 38385 fi 38386 fi 38387 # 38388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 38389 printf %s "checking if gethostname might be used... " >&6; } 38390 if test "$tst_links_gethostname" = "yes" && 38391 test "$tst_proto_gethostname" = "yes" && 38392 test "$tst_compi_gethostname" = "yes" && 38393 test "$tst_allow_gethostname" = "yes"; then 38394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38395 printf "%s\n" "yes" >&6; } 38396 38397 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 38398 38399 curl_cv_func_gethostname="yes" 38400 else 38401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38402 printf "%s\n" "no" >&6; } 38403 curl_cv_func_gethostname="no" 38404 fi 38405 38406 38407 curl_includes_ifaddrs="\ 38408 /* includes start */ 38409 #ifdef HAVE_SYS_TYPES_H 38410 # include <sys/types.h> 38411 #endif 38412 #ifndef _WIN32 38413 # include <sys/socket.h> 38414 #endif 38415 #ifdef HAVE_NETINET_IN_H 38416 # include <netinet/in.h> 38417 #endif 38418 #ifdef HAVE_IFADDRS_H 38419 # include <ifaddrs.h> 38420 #endif 38421 /* includes end */" 38422 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs 38423 " 38424 if test "x$ac_cv_header_sys_types_h" = xyes 38425 then : 38426 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 38427 38428 fi 38429 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs 38430 " 38431 if test "x$ac_cv_header_netinet_in_h" = xyes 38432 then : 38433 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 38434 38435 fi 38436 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs 38437 " 38438 if test "x$ac_cv_header_ifaddrs_h" = xyes 38439 then : 38440 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 38441 38442 fi 38443 38444 38445 38446 # 38447 tst_links_getifaddrs="unknown" 38448 tst_proto_getifaddrs="unknown" 38449 tst_compi_getifaddrs="unknown" 38450 tst_works_getifaddrs="unknown" 38451 tst_allow_getifaddrs="unknown" 38452 # 38453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5 38454 printf %s "checking if getifaddrs can be linked... " >&6; } 38455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38456 /* end confdefs.h. */ 38457 38458 38459 #define getifaddrs innocuous_getifaddrs 38460 #ifdef __STDC__ 38461 # include <limits.h> 38462 #else 38463 # include <assert.h> 38464 #endif 38465 #undef getifaddrs 38466 #ifdef __cplusplus 38467 extern "C" 38468 #endif 38469 char getifaddrs (); 38470 #if defined __stub_getifaddrs || defined __stub___getifaddrs 38471 #error force compilation error 38472 #endif 38473 38474 int main(void) 38475 { 38476 return getifaddrs (); 38477 return 0; 38478 } 38479 38480 _ACEOF 38481 if ac_fn_c_try_link "$LINENO" 38482 then : 38483 38484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38485 printf "%s\n" "yes" >&6; } 38486 tst_links_getifaddrs="yes" 38487 38488 else $as_nop 38489 38490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38491 printf "%s\n" "no" >&6; } 38492 tst_links_getifaddrs="no" 38493 38494 fi 38495 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38496 conftest$ac_exeext conftest.$ac_ext 38497 # 38498 if test "$tst_links_getifaddrs" = "yes"; then 38499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5 38500 printf %s "checking if getifaddrs is prototyped... " >&6; } 38501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38502 /* end confdefs.h. */ 38503 38504 $curl_includes_ifaddrs 38505 38506 _ACEOF 38507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38508 $EGREP "getifaddrs" >/dev/null 2>&1 38509 then : 38510 38511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38512 printf "%s\n" "yes" >&6; } 38513 tst_proto_getifaddrs="yes" 38514 38515 else $as_nop 38516 38517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38518 printf "%s\n" "no" >&6; } 38519 tst_proto_getifaddrs="no" 38520 38521 fi 38522 rm -rf conftest* 38523 38524 fi 38525 # 38526 if test "$tst_proto_getifaddrs" = "yes"; then 38527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5 38528 printf %s "checking if getifaddrs is compilable... " >&6; } 38529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38530 /* end confdefs.h. */ 38531 38532 38533 $curl_includes_ifaddrs 38534 38535 int main(void) 38536 { 38537 38538 if(0 != getifaddrs(0)) 38539 return 1; 38540 38541 return 0; 38542 } 38543 38544 _ACEOF 38545 if ac_fn_c_try_compile "$LINENO" 38546 then : 38547 38548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38549 printf "%s\n" "yes" >&6; } 38550 tst_compi_getifaddrs="yes" 38551 38552 else $as_nop 38553 38554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38555 printf "%s\n" "no" >&6; } 38556 tst_compi_getifaddrs="no" 38557 38558 fi 38559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38560 fi 38561 # 38562 if test "x$cross_compiling" != "xyes" && 38563 test "$tst_compi_getifaddrs" = "yes"; then 38564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5 38565 printf %s "checking if getifaddrs seems to work... " >&6; } 38566 38567 if test "$curl_cv_apple" = 'yes'; then 38568 if test "$cross_compiling" = yes 38569 then : 38570 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38571 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38572 as_fn_error $? "cannot run test program while cross compiling 38573 See \`config.log' for more details" "$LINENO" 5; } 38574 else $as_nop 38575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38576 /* end confdefs.h. */ 38577 38578 38579 $curl_includes_stdlib 38580 $curl_includes_ifaddrs 38581 38582 int main(void) 38583 { 38584 38585 struct ifaddrs *ifa = 0; 38586 int error; 38587 38588 error = getifaddrs(&ifa); 38589 if(error || !ifa) 38590 return 1; /* fail */ 38591 else { 38592 freeifaddrs(ifa); 38593 return 0; 38594 } 38595 38596 return 0; 38597 } 38598 38599 _ACEOF 38600 if ac_fn_c_try_run "$LINENO" 38601 then : 38602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38603 printf "%s\n" "yes" >&6; } 38604 tst_works_getifaddrs="yes" 38605 38606 else $as_nop 38607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38608 printf "%s\n" "no" >&6; } 38609 tst_works_getifaddrs="no" 38610 38611 fi 38612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38613 conftest.$ac_objext conftest.beam conftest.$ac_ext 38614 fi 38615 38616 else 38617 oldcc=$CC 38618 old=$LD_LIBRARY_PATH 38619 CC="sh ./run-compiler" 38620 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 38621 export LD_LIBRARY_PATH 38622 if test "$cross_compiling" = yes 38623 then : 38624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38625 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38626 as_fn_error $? "cannot run test program while cross compiling 38627 See \`config.log' for more details" "$LINENO" 5; } 38628 else $as_nop 38629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38630 /* end confdefs.h. */ 38631 38632 38633 $curl_includes_stdlib 38634 $curl_includes_ifaddrs 38635 38636 int main(void) 38637 { 38638 38639 struct ifaddrs *ifa = 0; 38640 int error; 38641 38642 error = getifaddrs(&ifa); 38643 if(error || !ifa) 38644 return 1; /* fail */ 38645 else { 38646 freeifaddrs(ifa); 38647 return 0; 38648 } 38649 38650 return 0; 38651 } 38652 38653 _ACEOF 38654 if ac_fn_c_try_run "$LINENO" 38655 then : 38656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38657 printf "%s\n" "yes" >&6; } 38658 tst_works_getifaddrs="yes" 38659 38660 else $as_nop 38661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38662 printf "%s\n" "no" >&6; } 38663 tst_works_getifaddrs="no" 38664 38665 fi 38666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38667 conftest.$ac_objext conftest.beam conftest.$ac_ext 38668 fi 38669 38670 LD_LIBRARY_PATH=$old # restore 38671 CC=$oldcc 38672 fi 38673 38674 fi 38675 # 38676 if test "$tst_compi_getifaddrs" = "yes" && 38677 test "$tst_works_getifaddrs" != "no"; then 38678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5 38679 printf %s "checking if getifaddrs usage allowed... " >&6; } 38680 if test "x$curl_disallow_getifaddrs" != "xyes"; then 38681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38682 printf "%s\n" "yes" >&6; } 38683 tst_allow_getifaddrs="yes" 38684 else 38685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38686 printf "%s\n" "no" >&6; } 38687 tst_allow_getifaddrs="no" 38688 fi 38689 fi 38690 # 38691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5 38692 printf %s "checking if getifaddrs might be used... " >&6; } 38693 if test "$tst_links_getifaddrs" = "yes" && 38694 test "$tst_proto_getifaddrs" = "yes" && 38695 test "$tst_compi_getifaddrs" = "yes" && 38696 test "$tst_allow_getifaddrs" = "yes" && 38697 test "$tst_works_getifaddrs" != "no"; then 38698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38699 printf "%s\n" "yes" >&6; } 38700 38701 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 38702 38703 curl_cv_func_getifaddrs="yes" 38704 else 38705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38706 printf "%s\n" "no" >&6; } 38707 curl_cv_func_getifaddrs="no" 38708 fi 38709 38710 38711 # 38712 tst_links_getpeername="unknown" 38713 tst_proto_getpeername="unknown" 38714 tst_compi_getpeername="unknown" 38715 tst_allow_getpeername="unknown" 38716 # 38717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5 38718 printf %s "checking if getpeername can be linked... " >&6; } 38719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38720 /* end confdefs.h. */ 38721 38722 38723 $curl_includes_winsock2 38724 $curl_includes_bsdsocket 38725 $curl_includes_sys_socket 38726 38727 int main(void) 38728 { 38729 38730 if(0 != getpeername(0, (void *)0, (void *)0)) 38731 return 1; 38732 38733 return 0; 38734 } 38735 38736 _ACEOF 38737 if ac_fn_c_try_link "$LINENO" 38738 then : 38739 38740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38741 printf "%s\n" "yes" >&6; } 38742 tst_links_getpeername="yes" 38743 38744 else $as_nop 38745 38746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38747 printf "%s\n" "no" >&6; } 38748 tst_links_getpeername="no" 38749 38750 fi 38751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38752 conftest$ac_exeext conftest.$ac_ext 38753 # 38754 if test "$tst_links_getpeername" = "yes"; then 38755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5 38756 printf %s "checking if getpeername is prototyped... " >&6; } 38757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38758 /* end confdefs.h. */ 38759 38760 $curl_includes_winsock2 38761 $curl_includes_bsdsocket 38762 $curl_includes_sys_socket 38763 38764 _ACEOF 38765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38766 $EGREP "getpeername" >/dev/null 2>&1 38767 then : 38768 38769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38770 printf "%s\n" "yes" >&6; } 38771 tst_proto_getpeername="yes" 38772 38773 else $as_nop 38774 38775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38776 printf "%s\n" "no" >&6; } 38777 tst_proto_getpeername="no" 38778 38779 fi 38780 rm -rf conftest* 38781 38782 fi 38783 # 38784 if test "$tst_proto_getpeername" = "yes"; then 38785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5 38786 printf %s "checking if getpeername is compilable... " >&6; } 38787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38788 /* end confdefs.h. */ 38789 38790 38791 $curl_includes_winsock2 38792 $curl_includes_bsdsocket 38793 $curl_includes_sys_socket 38794 38795 int main(void) 38796 { 38797 38798 if(0 != getpeername(0, (void *)0, (void *)0)) 38799 return 1; 38800 38801 return 0; 38802 } 38803 38804 _ACEOF 38805 if ac_fn_c_try_compile "$LINENO" 38806 then : 38807 38808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38809 printf "%s\n" "yes" >&6; } 38810 tst_compi_getpeername="yes" 38811 38812 else $as_nop 38813 38814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38815 printf "%s\n" "no" >&6; } 38816 tst_compi_getpeername="no" 38817 38818 fi 38819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38820 fi 38821 # 38822 if test "$tst_compi_getpeername" = "yes"; then 38823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5 38824 printf %s "checking if getpeername usage allowed... " >&6; } 38825 if test "x$curl_disallow_getpeername" != "xyes"; then 38826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38827 printf "%s\n" "yes" >&6; } 38828 tst_allow_getpeername="yes" 38829 else 38830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38831 printf "%s\n" "no" >&6; } 38832 tst_allow_getpeername="no" 38833 fi 38834 fi 38835 # 38836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5 38837 printf %s "checking if getpeername might be used... " >&6; } 38838 if test "$tst_links_getpeername" = "yes" && 38839 test "$tst_proto_getpeername" = "yes" && 38840 test "$tst_compi_getpeername" = "yes" && 38841 test "$tst_allow_getpeername" = "yes"; then 38842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38843 printf "%s\n" "yes" >&6; } 38844 38845 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h 38846 38847 curl_cv_func_getpeername="yes" 38848 else 38849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38850 printf "%s\n" "no" >&6; } 38851 curl_cv_func_getpeername="no" 38852 fi 38853 38854 38855 # 38856 tst_links_getsockname="unknown" 38857 tst_proto_getsockname="unknown" 38858 tst_compi_getsockname="unknown" 38859 tst_allow_getsockname="unknown" 38860 # 38861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5 38862 printf %s "checking if getsockname can be linked... " >&6; } 38863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38864 /* end confdefs.h. */ 38865 38866 38867 $curl_includes_winsock2 38868 $curl_includes_bsdsocket 38869 $curl_includes_sys_socket 38870 38871 int main(void) 38872 { 38873 38874 if(0 != getsockname(0, (void *)0, (void *)0)) 38875 return 1; 38876 38877 return 0; 38878 } 38879 38880 _ACEOF 38881 if ac_fn_c_try_link "$LINENO" 38882 then : 38883 38884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38885 printf "%s\n" "yes" >&6; } 38886 tst_links_getsockname="yes" 38887 38888 else $as_nop 38889 38890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38891 printf "%s\n" "no" >&6; } 38892 tst_links_getsockname="no" 38893 38894 fi 38895 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38896 conftest$ac_exeext conftest.$ac_ext 38897 # 38898 if test "$tst_links_getsockname" = "yes"; then 38899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5 38900 printf %s "checking if getsockname is prototyped... " >&6; } 38901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38902 /* end confdefs.h. */ 38903 38904 $curl_includes_winsock2 38905 $curl_includes_bsdsocket 38906 $curl_includes_sys_socket 38907 38908 _ACEOF 38909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38910 $EGREP "getsockname" >/dev/null 2>&1 38911 then : 38912 38913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38914 printf "%s\n" "yes" >&6; } 38915 tst_proto_getsockname="yes" 38916 38917 else $as_nop 38918 38919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38920 printf "%s\n" "no" >&6; } 38921 tst_proto_getsockname="no" 38922 38923 fi 38924 rm -rf conftest* 38925 38926 fi 38927 # 38928 if test "$tst_proto_getsockname" = "yes"; then 38929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5 38930 printf %s "checking if getsockname is compilable... " >&6; } 38931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38932 /* end confdefs.h. */ 38933 38934 38935 $curl_includes_winsock2 38936 $curl_includes_bsdsocket 38937 $curl_includes_sys_socket 38938 38939 int main(void) 38940 { 38941 38942 if(0 != getsockname(0, (void *)0, (void *)0)) 38943 return 1; 38944 38945 return 0; 38946 } 38947 38948 _ACEOF 38949 if ac_fn_c_try_compile "$LINENO" 38950 then : 38951 38952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38953 printf "%s\n" "yes" >&6; } 38954 tst_compi_getsockname="yes" 38955 38956 else $as_nop 38957 38958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38959 printf "%s\n" "no" >&6; } 38960 tst_compi_getsockname="no" 38961 38962 fi 38963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38964 fi 38965 # 38966 if test "$tst_compi_getsockname" = "yes"; then 38967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5 38968 printf %s "checking if getsockname usage allowed... " >&6; } 38969 if test "x$curl_disallow_getsockname" != "xyes"; then 38970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38971 printf "%s\n" "yes" >&6; } 38972 tst_allow_getsockname="yes" 38973 else 38974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38975 printf "%s\n" "no" >&6; } 38976 tst_allow_getsockname="no" 38977 fi 38978 fi 38979 # 38980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5 38981 printf %s "checking if getsockname might be used... " >&6; } 38982 if test "$tst_links_getsockname" = "yes" && 38983 test "$tst_proto_getsockname" = "yes" && 38984 test "$tst_compi_getsockname" = "yes" && 38985 test "$tst_allow_getsockname" = "yes"; then 38986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38987 printf "%s\n" "yes" >&6; } 38988 38989 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h 38990 38991 curl_cv_func_getsockname="yes" 38992 else 38993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38994 printf "%s\n" "no" >&6; } 38995 curl_cv_func_getsockname="no" 38996 fi 38997 38998 38999 curl_includes_time="\ 39000 /* includes start */ 39001 #ifdef HAVE_SYS_TYPES_H 39002 # include <sys/types.h> 39003 #endif 39004 #if !defined(_WIN32) || defined(__MINGW32__) 39005 # include <sys/time.h> 39006 #endif 39007 #include <time.h> 39008 /* includes end */" 39009 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time 39010 " 39011 if test "x$ac_cv_header_sys_types_h" = xyes 39012 then : 39013 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 39014 39015 fi 39016 39017 39018 39019 # 39020 tst_links_gmtime_r="unknown" 39021 tst_proto_gmtime_r="unknown" 39022 tst_compi_gmtime_r="unknown" 39023 tst_works_gmtime_r="unknown" 39024 tst_allow_gmtime_r="unknown" 39025 # 39026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5 39027 printf %s "checking if gmtime_r can be linked... " >&6; } 39028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39029 /* end confdefs.h. */ 39030 39031 39032 #define gmtime_r innocuous_gmtime_r 39033 #ifdef __STDC__ 39034 # include <limits.h> 39035 #else 39036 # include <assert.h> 39037 #endif 39038 #undef gmtime_r 39039 #ifdef __cplusplus 39040 extern "C" 39041 #endif 39042 char gmtime_r (); 39043 #if defined __stub_gmtime_r || defined __stub___gmtime_r 39044 #error force compilation error 39045 #endif 39046 39047 int main(void) 39048 { 39049 return gmtime_r (); 39050 return 0; 39051 } 39052 39053 _ACEOF 39054 if ac_fn_c_try_link "$LINENO" 39055 then : 39056 39057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39058 printf "%s\n" "yes" >&6; } 39059 tst_links_gmtime_r="yes" 39060 39061 else $as_nop 39062 39063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39064 printf "%s\n" "no" >&6; } 39065 tst_links_gmtime_r="no" 39066 39067 fi 39068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39069 conftest$ac_exeext conftest.$ac_ext 39070 # 39071 if test "$tst_links_gmtime_r" = "yes"; then 39072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5 39073 printf %s "checking if gmtime_r is prototyped... " >&6; } 39074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39075 /* end confdefs.h. */ 39076 39077 $curl_includes_time 39078 39079 _ACEOF 39080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39081 $EGREP "gmtime_r" >/dev/null 2>&1 39082 then : 39083 39084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39085 printf "%s\n" "yes" >&6; } 39086 tst_proto_gmtime_r="yes" 39087 39088 else $as_nop 39089 39090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39091 printf "%s\n" "no" >&6; } 39092 tst_proto_gmtime_r="no" 39093 39094 fi 39095 rm -rf conftest* 39096 39097 fi 39098 # 39099 if test "$tst_proto_gmtime_r" = "yes"; then 39100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5 39101 printf %s "checking if gmtime_r is compilable... " >&6; } 39102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39103 /* end confdefs.h. */ 39104 39105 39106 $curl_includes_time 39107 39108 int main(void) 39109 { 39110 39111 time_t tm = 1170352587; 39112 struct tm result; 39113 if(0 != gmtime_r(&tm, &result)) 39114 return 1; 39115 (void)result; 39116 39117 return 0; 39118 } 39119 39120 _ACEOF 39121 if ac_fn_c_try_compile "$LINENO" 39122 then : 39123 39124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39125 printf "%s\n" "yes" >&6; } 39126 tst_compi_gmtime_r="yes" 39127 39128 else $as_nop 39129 39130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39131 printf "%s\n" "no" >&6; } 39132 tst_compi_gmtime_r="no" 39133 39134 fi 39135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39136 fi 39137 # 39138 if test "x$cross_compiling" != "xyes" && 39139 test "$tst_compi_gmtime_r" = "yes"; then 39140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5 39141 printf %s "checking if gmtime_r seems to work... " >&6; } 39142 39143 if test "$curl_cv_apple" = 'yes'; then 39144 if test "$cross_compiling" = yes 39145 then : 39146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39147 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39148 as_fn_error $? "cannot run test program while cross compiling 39149 See \`config.log' for more details" "$LINENO" 5; } 39150 else $as_nop 39151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39152 /* end confdefs.h. */ 39153 39154 39155 $curl_includes_stdlib 39156 $curl_includes_time 39157 39158 int main(void) 39159 { 39160 39161 time_t local = 1170352587; 39162 struct tm *gmt = 0; 39163 struct tm result; 39164 gmt = gmtime_r(&local, &result); 39165 (void)result; 39166 if(gmt) 39167 return 0; 39168 else 39169 return 1; 39170 39171 return 0; 39172 } 39173 39174 _ACEOF 39175 if ac_fn_c_try_run "$LINENO" 39176 then : 39177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39178 printf "%s\n" "yes" >&6; } 39179 tst_works_gmtime_r="yes" 39180 39181 else $as_nop 39182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39183 printf "%s\n" "no" >&6; } 39184 tst_works_gmtime_r="no" 39185 39186 fi 39187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39188 conftest.$ac_objext conftest.beam conftest.$ac_ext 39189 fi 39190 39191 else 39192 oldcc=$CC 39193 old=$LD_LIBRARY_PATH 39194 CC="sh ./run-compiler" 39195 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 39196 export LD_LIBRARY_PATH 39197 if test "$cross_compiling" = yes 39198 then : 39199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39200 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39201 as_fn_error $? "cannot run test program while cross compiling 39202 See \`config.log' for more details" "$LINENO" 5; } 39203 else $as_nop 39204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39205 /* end confdefs.h. */ 39206 39207 39208 $curl_includes_stdlib 39209 $curl_includes_time 39210 39211 int main(void) 39212 { 39213 39214 time_t local = 1170352587; 39215 struct tm *gmt = 0; 39216 struct tm result; 39217 gmt = gmtime_r(&local, &result); 39218 (void)result; 39219 if(gmt) 39220 return 0; 39221 else 39222 return 1; 39223 39224 return 0; 39225 } 39226 39227 _ACEOF 39228 if ac_fn_c_try_run "$LINENO" 39229 then : 39230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39231 printf "%s\n" "yes" >&6; } 39232 tst_works_gmtime_r="yes" 39233 39234 else $as_nop 39235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39236 printf "%s\n" "no" >&6; } 39237 tst_works_gmtime_r="no" 39238 39239 fi 39240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39241 conftest.$ac_objext conftest.beam conftest.$ac_ext 39242 fi 39243 39244 LD_LIBRARY_PATH=$old # restore 39245 CC=$oldcc 39246 fi 39247 39248 fi 39249 # 39250 if test "$tst_compi_gmtime_r" = "yes" && 39251 test "$tst_works_gmtime_r" != "no"; then 39252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5 39253 printf %s "checking if gmtime_r usage allowed... " >&6; } 39254 if test "x$curl_disallow_gmtime_r" != "xyes"; then 39255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39256 printf "%s\n" "yes" >&6; } 39257 tst_allow_gmtime_r="yes" 39258 else 39259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39260 printf "%s\n" "no" >&6; } 39261 tst_allow_gmtime_r="no" 39262 fi 39263 fi 39264 # 39265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5 39266 printf %s "checking if gmtime_r might be used... " >&6; } 39267 if test "$tst_links_gmtime_r" = "yes" && 39268 test "$tst_proto_gmtime_r" = "yes" && 39269 test "$tst_compi_gmtime_r" = "yes" && 39270 test "$tst_allow_gmtime_r" = "yes" && 39271 test "$tst_works_gmtime_r" != "no"; then 39272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39273 printf "%s\n" "yes" >&6; } 39274 39275 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 39276 39277 curl_cv_func_gmtime_r="yes" 39278 else 39279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39280 printf "%s\n" "no" >&6; } 39281 curl_cv_func_gmtime_r="no" 39282 fi 39283 39284 39285 curl_includes_stropts="\ 39286 /* includes start */ 39287 #ifdef HAVE_SYS_TYPES_H 39288 # include <sys/types.h> 39289 #endif 39290 #ifdef HAVE_UNISTD_H 39291 # include <unistd.h> 39292 #endif 39293 #ifndef _WIN32 39294 # include <sys/socket.h> 39295 #endif 39296 #ifdef HAVE_SYS_IOCTL_H 39297 # include <sys/ioctl.h> 39298 #endif 39299 #ifdef HAVE_STROPTS_H 39300 # include <stropts.h> 39301 #endif 39302 /* includes end */" 39303 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts 39304 " 39305 if test "x$ac_cv_header_sys_types_h" = xyes 39306 then : 39307 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 39308 39309 fi 39310 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts 39311 " 39312 if test "x$ac_cv_header_unistd_h" = xyes 39313 then : 39314 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 39315 39316 fi 39317 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts 39318 " 39319 if test "x$ac_cv_header_sys_ioctl_h" = xyes 39320 then : 39321 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 39322 39323 fi 39324 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts 39325 " 39326 if test "x$ac_cv_header_stropts_h" = xyes 39327 then : 39328 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 39329 39330 fi 39331 39332 39333 39334 # 39335 tst_links_ioctl="unknown" 39336 tst_proto_ioctl="unknown" 39337 tst_compi_ioctl="unknown" 39338 tst_allow_ioctl="unknown" 39339 # 39340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 39341 printf %s "checking if ioctl can be linked... " >&6; } 39342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39343 /* end confdefs.h. */ 39344 39345 39346 #define ioctl innocuous_ioctl 39347 #ifdef __STDC__ 39348 # include <limits.h> 39349 #else 39350 # include <assert.h> 39351 #endif 39352 #undef ioctl 39353 #ifdef __cplusplus 39354 extern "C" 39355 #endif 39356 char ioctl (); 39357 #if defined __stub_ioctl || defined __stub___ioctl 39358 #error force compilation error 39359 #endif 39360 39361 int main(void) 39362 { 39363 return ioctl (); 39364 return 0; 39365 } 39366 39367 _ACEOF 39368 if ac_fn_c_try_link "$LINENO" 39369 then : 39370 39371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39372 printf "%s\n" "yes" >&6; } 39373 tst_links_ioctl="yes" 39374 39375 else $as_nop 39376 39377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39378 printf "%s\n" "no" >&6; } 39379 tst_links_ioctl="no" 39380 39381 fi 39382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39383 conftest$ac_exeext conftest.$ac_ext 39384 # 39385 if test "$tst_links_ioctl" = "yes"; then 39386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 39387 printf %s "checking if ioctl is prototyped... " >&6; } 39388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39389 /* end confdefs.h. */ 39390 39391 $curl_includes_stropts 39392 39393 _ACEOF 39394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39395 $EGREP "ioctl" >/dev/null 2>&1 39396 then : 39397 39398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39399 printf "%s\n" "yes" >&6; } 39400 tst_proto_ioctl="yes" 39401 39402 else $as_nop 39403 39404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39405 printf "%s\n" "no" >&6; } 39406 tst_proto_ioctl="no" 39407 39408 fi 39409 rm -rf conftest* 39410 39411 fi 39412 # 39413 if test "$tst_proto_ioctl" = "yes"; then 39414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 39415 printf %s "checking if ioctl is compilable... " >&6; } 39416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39417 /* end confdefs.h. */ 39418 39419 39420 $curl_includes_stropts 39421 39422 int main(void) 39423 { 39424 39425 if(0 != ioctl(0, 0, 0)) 39426 return 1; 39427 39428 return 0; 39429 } 39430 39431 _ACEOF 39432 if ac_fn_c_try_compile "$LINENO" 39433 then : 39434 39435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39436 printf "%s\n" "yes" >&6; } 39437 tst_compi_ioctl="yes" 39438 39439 else $as_nop 39440 39441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39442 printf "%s\n" "no" >&6; } 39443 tst_compi_ioctl="no" 39444 39445 fi 39446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39447 fi 39448 # 39449 if test "$tst_compi_ioctl" = "yes"; then 39450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 39451 printf %s "checking if ioctl usage allowed... " >&6; } 39452 if test "x$curl_disallow_ioctl" != "xyes"; then 39453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39454 printf "%s\n" "yes" >&6; } 39455 tst_allow_ioctl="yes" 39456 else 39457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39458 printf "%s\n" "no" >&6; } 39459 tst_allow_ioctl="no" 39460 fi 39461 fi 39462 # 39463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 39464 printf %s "checking if ioctl might be used... " >&6; } 39465 if test "$tst_links_ioctl" = "yes" && 39466 test "$tst_proto_ioctl" = "yes" && 39467 test "$tst_compi_ioctl" = "yes" && 39468 test "$tst_allow_ioctl" = "yes"; then 39469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39470 printf "%s\n" "yes" >&6; } 39471 curl_cv_func_ioctl="yes" 39472 39473 # 39474 tst_compi_ioctl_fionbio="unknown" 39475 tst_allow_ioctl_fionbio="unknown" 39476 # 39477 if test "$curl_cv_func_ioctl" = "yes"; then 39478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 39479 printf %s "checking if ioctl FIONBIO is compilable... " >&6; } 39480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39481 /* end confdefs.h. */ 39482 39483 39484 $curl_includes_stropts 39485 39486 int main(void) 39487 { 39488 39489 int flags = 0; 39490 if(0 != ioctl(0, FIONBIO, &flags)) 39491 return 1; 39492 39493 return 0; 39494 } 39495 39496 _ACEOF 39497 if ac_fn_c_try_compile "$LINENO" 39498 then : 39499 39500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39501 printf "%s\n" "yes" >&6; } 39502 tst_compi_ioctl_fionbio="yes" 39503 39504 else $as_nop 39505 39506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39507 printf "%s\n" "no" >&6; } 39508 tst_compi_ioctl_fionbio="no" 39509 39510 fi 39511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39512 fi 39513 # 39514 if test "$tst_compi_ioctl_fionbio" = "yes"; then 39515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 39516 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; } 39517 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then 39518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39519 printf "%s\n" "yes" >&6; } 39520 tst_allow_ioctl_fionbio="yes" 39521 else 39522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39523 printf "%s\n" "no" >&6; } 39524 tst_allow_ioctl_fionbio="no" 39525 fi 39526 fi 39527 # 39528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 39529 printf %s "checking if ioctl FIONBIO might be used... " >&6; } 39530 if test "$tst_compi_ioctl_fionbio" = "yes" && 39531 test "$tst_allow_ioctl_fionbio" = "yes"; then 39532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39533 printf "%s\n" "yes" >&6; } 39534 39535 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h 39536 39537 curl_cv_func_ioctl_fionbio="yes" 39538 else 39539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39540 printf "%s\n" "no" >&6; } 39541 curl_cv_func_ioctl_fionbio="no" 39542 fi 39543 39544 39545 # 39546 tst_compi_ioctl_siocgifaddr="unknown" 39547 tst_allow_ioctl_siocgifaddr="unknown" 39548 # 39549 if test "$curl_cv_func_ioctl" = "yes"; then 39550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 39551 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; } 39552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39553 /* end confdefs.h. */ 39554 39555 39556 $curl_includes_stropts 39557 #include <net/if.h> 39558 39559 int main(void) 39560 { 39561 39562 struct ifreq ifr; 39563 if(0 != ioctl(0, SIOCGIFADDR, &ifr)) 39564 return 1; 39565 39566 return 0; 39567 } 39568 39569 _ACEOF 39570 if ac_fn_c_try_compile "$LINENO" 39571 then : 39572 39573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39574 printf "%s\n" "yes" >&6; } 39575 tst_compi_ioctl_siocgifaddr="yes" 39576 39577 else $as_nop 39578 39579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39580 printf "%s\n" "no" >&6; } 39581 tst_compi_ioctl_siocgifaddr="no" 39582 39583 fi 39584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39585 fi 39586 # 39587 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then 39588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 39589 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } 39590 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then 39591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39592 printf "%s\n" "yes" >&6; } 39593 tst_allow_ioctl_siocgifaddr="yes" 39594 else 39595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39596 printf "%s\n" "no" >&6; } 39597 tst_allow_ioctl_siocgifaddr="no" 39598 fi 39599 fi 39600 # 39601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 39602 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; } 39603 if test "$tst_compi_ioctl_siocgifaddr" = "yes" && 39604 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then 39605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39606 printf "%s\n" "yes" >&6; } 39607 39608 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h 39609 39610 curl_cv_func_ioctl_siocgifaddr="yes" 39611 else 39612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39613 printf "%s\n" "no" >&6; } 39614 curl_cv_func_ioctl_siocgifaddr="no" 39615 fi 39616 39617 else 39618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39619 printf "%s\n" "no" >&6; } 39620 curl_cv_func_ioctl="no" 39621 fi 39622 39623 39624 # 39625 tst_links_ioctlsocket="unknown" 39626 tst_proto_ioctlsocket="unknown" 39627 tst_compi_ioctlsocket="unknown" 39628 tst_allow_ioctlsocket="unknown" 39629 # 39630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 39631 printf %s "checking if ioctlsocket can be linked... " >&6; } 39632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39633 /* end confdefs.h. */ 39634 39635 39636 $curl_includes_winsock2 39637 39638 int main(void) 39639 { 39640 39641 if(0 != ioctlsocket(0, 0, 0)) 39642 return 1; 39643 39644 return 0; 39645 } 39646 39647 _ACEOF 39648 if ac_fn_c_try_link "$LINENO" 39649 then : 39650 39651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39652 printf "%s\n" "yes" >&6; } 39653 tst_links_ioctlsocket="yes" 39654 39655 else $as_nop 39656 39657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39658 printf "%s\n" "no" >&6; } 39659 tst_links_ioctlsocket="no" 39660 39661 fi 39662 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39663 conftest$ac_exeext conftest.$ac_ext 39664 # 39665 if test "$tst_links_ioctlsocket" = "yes"; then 39666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 39667 printf %s "checking if ioctlsocket is prototyped... " >&6; } 39668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39669 /* end confdefs.h. */ 39670 39671 $curl_includes_winsock2 39672 39673 _ACEOF 39674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39675 $EGREP "ioctlsocket" >/dev/null 2>&1 39676 then : 39677 39678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39679 printf "%s\n" "yes" >&6; } 39680 tst_proto_ioctlsocket="yes" 39681 39682 else $as_nop 39683 39684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39685 printf "%s\n" "no" >&6; } 39686 tst_proto_ioctlsocket="no" 39687 39688 fi 39689 rm -rf conftest* 39690 39691 fi 39692 # 39693 if test "$tst_proto_ioctlsocket" = "yes"; then 39694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 39695 printf %s "checking if ioctlsocket is compilable... " >&6; } 39696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39697 /* end confdefs.h. */ 39698 39699 39700 $curl_includes_winsock2 39701 39702 int main(void) 39703 { 39704 39705 if(0 != ioctlsocket(0, 0, 0)) 39706 return 1; 39707 39708 return 0; 39709 } 39710 39711 _ACEOF 39712 if ac_fn_c_try_compile "$LINENO" 39713 then : 39714 39715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39716 printf "%s\n" "yes" >&6; } 39717 tst_compi_ioctlsocket="yes" 39718 39719 else $as_nop 39720 39721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39722 printf "%s\n" "no" >&6; } 39723 tst_compi_ioctlsocket="no" 39724 39725 fi 39726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39727 fi 39728 # 39729 if test "$tst_compi_ioctlsocket" = "yes"; then 39730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 39731 printf %s "checking if ioctlsocket usage allowed... " >&6; } 39732 if test "x$curl_disallow_ioctlsocket" != "xyes"; then 39733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39734 printf "%s\n" "yes" >&6; } 39735 tst_allow_ioctlsocket="yes" 39736 else 39737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39738 printf "%s\n" "no" >&6; } 39739 tst_allow_ioctlsocket="no" 39740 fi 39741 fi 39742 # 39743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 39744 printf %s "checking if ioctlsocket might be used... " >&6; } 39745 if test "$tst_links_ioctlsocket" = "yes" && 39746 test "$tst_proto_ioctlsocket" = "yes" && 39747 test "$tst_compi_ioctlsocket" = "yes" && 39748 test "$tst_allow_ioctlsocket" = "yes"; then 39749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39750 printf "%s\n" "yes" >&6; } 39751 39752 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 39753 39754 curl_cv_func_ioctlsocket="yes" 39755 39756 # 39757 tst_compi_ioctlsocket_fionbio="unknown" 39758 tst_allow_ioctlsocket_fionbio="unknown" 39759 # 39760 if test "$curl_cv_func_ioctlsocket" = "yes"; then 39761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 39762 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; } 39763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39764 /* end confdefs.h. */ 39765 39766 39767 $curl_includes_winsock2 39768 39769 int main(void) 39770 { 39771 39772 unsigned long flags = 0; 39773 if(0 != ioctlsocket(0, FIONBIO, &flags)) 39774 return 1; 39775 39776 return 0; 39777 } 39778 39779 _ACEOF 39780 if ac_fn_c_try_compile "$LINENO" 39781 then : 39782 39783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39784 printf "%s\n" "yes" >&6; } 39785 tst_compi_ioctlsocket_fionbio="yes" 39786 39787 else $as_nop 39788 39789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39790 printf "%s\n" "no" >&6; } 39791 tst_compi_ioctlsocket_fionbio="no" 39792 39793 fi 39794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39795 fi 39796 # 39797 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then 39798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 39799 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; } 39800 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then 39801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39802 printf "%s\n" "yes" >&6; } 39803 tst_allow_ioctlsocket_fionbio="yes" 39804 else 39805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39806 printf "%s\n" "no" >&6; } 39807 tst_allow_ioctlsocket_fionbio="no" 39808 fi 39809 fi 39810 # 39811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 39812 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; } 39813 if test "$tst_compi_ioctlsocket_fionbio" = "yes" && 39814 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then 39815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39816 printf "%s\n" "yes" >&6; } 39817 39818 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h 39819 39820 curl_cv_func_ioctlsocket_fionbio="yes" 39821 else 39822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39823 printf "%s\n" "no" >&6; } 39824 curl_cv_func_ioctlsocket_fionbio="no" 39825 fi 39826 39827 else 39828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39829 printf "%s\n" "no" >&6; } 39830 curl_cv_func_ioctlsocket="no" 39831 fi 39832 39833 39834 # 39835 tst_links_ioctlsocket_camel="unknown" 39836 tst_compi_ioctlsocket_camel="unknown" 39837 tst_allow_ioctlsocket_camel="unknown" 39838 # 39839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 39840 printf %s "checking if IoctlSocket can be linked... " >&6; } 39841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39842 /* end confdefs.h. */ 39843 39844 39845 $curl_includes_bsdsocket 39846 39847 int main(void) 39848 { 39849 39850 if(0 != IoctlSocket(0, 0, 0)) 39851 return 1; 39852 39853 return 0; 39854 } 39855 39856 _ACEOF 39857 if ac_fn_c_try_link "$LINENO" 39858 then : 39859 39860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39861 printf "%s\n" "yes" >&6; } 39862 tst_links_ioctlsocket_camel="yes" 39863 39864 else $as_nop 39865 39866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39867 printf "%s\n" "no" >&6; } 39868 tst_links_ioctlsocket_camel="no" 39869 39870 fi 39871 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39872 conftest$ac_exeext conftest.$ac_ext 39873 # 39874 if test "$tst_links_ioctlsocket_camel" = "yes"; then 39875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 39876 printf %s "checking if IoctlSocket is compilable... " >&6; } 39877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39878 /* end confdefs.h. */ 39879 39880 39881 $curl_includes_bsdsocket 39882 39883 int main(void) 39884 { 39885 39886 if(0 != IoctlSocket(0, 0, 0)) 39887 return 1; 39888 39889 return 0; 39890 } 39891 39892 _ACEOF 39893 if ac_fn_c_try_compile "$LINENO" 39894 then : 39895 39896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39897 printf "%s\n" "yes" >&6; } 39898 tst_compi_ioctlsocket_camel="yes" 39899 39900 else $as_nop 39901 39902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39903 printf "%s\n" "no" >&6; } 39904 tst_compi_ioctlsocket_camel="no" 39905 39906 fi 39907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39908 fi 39909 # 39910 if test "$tst_compi_ioctlsocket_camel" = "yes"; then 39911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 39912 printf %s "checking if IoctlSocket usage allowed... " >&6; } 39913 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then 39914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39915 printf "%s\n" "yes" >&6; } 39916 tst_allow_ioctlsocket_camel="yes" 39917 else 39918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39919 printf "%s\n" "no" >&6; } 39920 tst_allow_ioctlsocket_camel="no" 39921 fi 39922 fi 39923 # 39924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 39925 printf %s "checking if IoctlSocket might be used... " >&6; } 39926 if test "$tst_links_ioctlsocket_camel" = "yes" && 39927 test "$tst_compi_ioctlsocket_camel" = "yes" && 39928 test "$tst_allow_ioctlsocket_camel" = "yes"; then 39929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39930 printf "%s\n" "yes" >&6; } 39931 39932 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h 39933 39934 curl_cv_func_ioctlsocket_camel="yes" 39935 39936 # 39937 tst_compi_ioctlsocket_camel_fionbio="unknown" 39938 tst_allow_ioctlsocket_camel_fionbio="unknown" 39939 # 39940 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then 39941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 39942 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; } 39943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39944 /* end confdefs.h. */ 39945 39946 39947 $curl_includes_bsdsocket 39948 39949 int main(void) 39950 { 39951 39952 long flags = 0; 39953 if(0 != IoctlSocket(0, FIONBIO, &flags)) 39954 return 1; 39955 39956 return 0; 39957 } 39958 39959 _ACEOF 39960 if ac_fn_c_try_compile "$LINENO" 39961 then : 39962 39963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39964 printf "%s\n" "yes" >&6; } 39965 tst_compi_ioctlsocket_camel_fionbio="yes" 39966 39967 else $as_nop 39968 39969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39970 printf "%s\n" "no" >&6; } 39971 tst_compi_ioctlsocket_camel_fionbio="no" 39972 39973 fi 39974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39975 fi 39976 # 39977 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then 39978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 39979 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; } 39980 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then 39981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39982 printf "%s\n" "yes" >&6; } 39983 tst_allow_ioctlsocket_camel_fionbio="yes" 39984 else 39985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39986 printf "%s\n" "no" >&6; } 39987 tst_allow_ioctlsocket_camel_fionbio="no" 39988 fi 39989 fi 39990 # 39991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 39992 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; } 39993 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && 39994 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then 39995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39996 printf "%s\n" "yes" >&6; } 39997 39998 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h 39999 40000 curl_cv_func_ioctlsocket_camel_fionbio="yes" 40001 else 40002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40003 printf "%s\n" "no" >&6; } 40004 curl_cv_func_ioctlsocket_camel_fionbio="no" 40005 fi 40006 40007 else 40008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40009 printf "%s\n" "no" >&6; } 40010 curl_cv_func_ioctlsocket_camel="no" 40011 fi 40012 40013 40014 # 40015 tst_links_memrchr="unknown" 40016 tst_macro_memrchr="unknown" 40017 tst_proto_memrchr="unknown" 40018 tst_compi_memrchr="unknown" 40019 tst_allow_memrchr="unknown" 40020 # 40021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5 40022 printf %s "checking if memrchr can be linked... " >&6; } 40023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40024 /* end confdefs.h. */ 40025 40026 40027 #define memrchr innocuous_memrchr 40028 #ifdef __STDC__ 40029 # include <limits.h> 40030 #else 40031 # include <assert.h> 40032 #endif 40033 #undef memrchr 40034 #ifdef __cplusplus 40035 extern "C" 40036 #endif 40037 char memrchr (); 40038 #if defined __stub_memrchr || defined __stub___memrchr 40039 #error force compilation error 40040 #endif 40041 40042 int main(void) 40043 { 40044 return memrchr (); 40045 return 0; 40046 } 40047 40048 _ACEOF 40049 if ac_fn_c_try_link "$LINENO" 40050 then : 40051 40052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40053 printf "%s\n" "yes" >&6; } 40054 tst_links_memrchr="yes" 40055 40056 else $as_nop 40057 40058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40059 printf "%s\n" "no" >&6; } 40060 tst_links_memrchr="no" 40061 40062 fi 40063 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40064 conftest$ac_exeext conftest.$ac_ext 40065 # 40066 if test "$tst_links_memrchr" = "no"; then 40067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5 40068 printf %s "checking if memrchr seems a macro... " >&6; } 40069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40070 /* end confdefs.h. */ 40071 40072 40073 $curl_includes_string 40074 40075 int main(void) 40076 { 40077 40078 if(0 != memrchr("", 0, 0)) 40079 return 1; 40080 40081 return 0; 40082 } 40083 40084 _ACEOF 40085 if ac_fn_c_try_link "$LINENO" 40086 then : 40087 40088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40089 printf "%s\n" "yes" >&6; } 40090 tst_macro_memrchr="yes" 40091 40092 else $as_nop 40093 40094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40095 printf "%s\n" "no" >&6; } 40096 tst_macro_memrchr="no" 40097 40098 fi 40099 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40100 conftest$ac_exeext conftest.$ac_ext 40101 fi 40102 # 40103 if test "$tst_links_memrchr" = "yes"; then 40104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5 40105 printf %s "checking if memrchr is prototyped... " >&6; } 40106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40107 /* end confdefs.h. */ 40108 40109 $curl_includes_string 40110 40111 _ACEOF 40112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40113 $EGREP "memrchr" >/dev/null 2>&1 40114 then : 40115 40116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40117 printf "%s\n" "yes" >&6; } 40118 tst_proto_memrchr="yes" 40119 40120 else $as_nop 40121 40122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40123 printf "%s\n" "no" >&6; } 40124 tst_proto_memrchr="no" 40125 40126 fi 40127 rm -rf conftest* 40128 40129 fi 40130 # 40131 if test "$tst_proto_memrchr" = "yes" || 40132 test "$tst_macro_memrchr" = "yes"; then 40133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5 40134 printf %s "checking if memrchr is compilable... " >&6; } 40135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40136 /* end confdefs.h. */ 40137 40138 40139 $curl_includes_string 40140 40141 int main(void) 40142 { 40143 40144 if(0 != memrchr("", 0, 0)) 40145 return 1; 40146 40147 return 0; 40148 } 40149 40150 _ACEOF 40151 if ac_fn_c_try_compile "$LINENO" 40152 then : 40153 40154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40155 printf "%s\n" "yes" >&6; } 40156 tst_compi_memrchr="yes" 40157 40158 else $as_nop 40159 40160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40161 printf "%s\n" "no" >&6; } 40162 tst_compi_memrchr="no" 40163 40164 fi 40165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40166 fi 40167 # 40168 if test "$tst_compi_memrchr" = "yes"; then 40169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5 40170 printf %s "checking if memrchr usage allowed... " >&6; } 40171 if test "x$curl_disallow_memrchr" != "xyes"; then 40172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40173 printf "%s\n" "yes" >&6; } 40174 tst_allow_memrchr="yes" 40175 else 40176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40177 printf "%s\n" "no" >&6; } 40178 tst_allow_memrchr="no" 40179 fi 40180 fi 40181 # 40182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5 40183 printf %s "checking if memrchr might be used... " >&6; } 40184 if (test "$tst_proto_memrchr" = "yes" || 40185 test "$tst_macro_memrchr" = "yes") && 40186 test "$tst_compi_memrchr" = "yes" && 40187 test "$tst_allow_memrchr" = "yes"; then 40188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40189 printf "%s\n" "yes" >&6; } 40190 40191 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 40192 40193 curl_cv_func_memrchr="yes" 40194 else 40195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40196 printf "%s\n" "no" >&6; } 40197 curl_cv_func_memrchr="no" 40198 fi 40199 40200 40201 curl_includes_signal="\ 40202 /* includes start */ 40203 #ifdef HAVE_SYS_TYPES_H 40204 # include <sys/types.h> 40205 #endif 40206 #include <signal.h> 40207 /* includes end */" 40208 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal 40209 " 40210 if test "x$ac_cv_header_sys_types_h" = xyes 40211 then : 40212 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 40213 40214 fi 40215 40216 40217 40218 # 40219 tst_links_sigaction="unknown" 40220 tst_proto_sigaction="unknown" 40221 tst_compi_sigaction="unknown" 40222 tst_allow_sigaction="unknown" 40223 # 40224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5 40225 printf %s "checking if sigaction can be linked... " >&6; } 40226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40227 /* end confdefs.h. */ 40228 40229 40230 #define sigaction innocuous_sigaction 40231 #ifdef __STDC__ 40232 # include <limits.h> 40233 #else 40234 # include <assert.h> 40235 #endif 40236 #undef sigaction 40237 #ifdef __cplusplus 40238 extern "C" 40239 #endif 40240 char sigaction (); 40241 #if defined __stub_sigaction || defined __stub___sigaction 40242 #error force compilation error 40243 #endif 40244 40245 int main(void) 40246 { 40247 return sigaction (); 40248 return 0; 40249 } 40250 40251 _ACEOF 40252 if ac_fn_c_try_link "$LINENO" 40253 then : 40254 40255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40256 printf "%s\n" "yes" >&6; } 40257 tst_links_sigaction="yes" 40258 40259 else $as_nop 40260 40261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40262 printf "%s\n" "no" >&6; } 40263 tst_links_sigaction="no" 40264 40265 fi 40266 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40267 conftest$ac_exeext conftest.$ac_ext 40268 # 40269 if test "$tst_links_sigaction" = "yes"; then 40270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5 40271 printf %s "checking if sigaction is prototyped... " >&6; } 40272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40273 /* end confdefs.h. */ 40274 40275 $curl_includes_signal 40276 40277 _ACEOF 40278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40279 $EGREP "sigaction" >/dev/null 2>&1 40280 then : 40281 40282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40283 printf "%s\n" "yes" >&6; } 40284 tst_proto_sigaction="yes" 40285 40286 else $as_nop 40287 40288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40289 printf "%s\n" "no" >&6; } 40290 tst_proto_sigaction="no" 40291 40292 fi 40293 rm -rf conftest* 40294 40295 fi 40296 # 40297 if test "$tst_proto_sigaction" = "yes"; then 40298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5 40299 printf %s "checking if sigaction is compilable... " >&6; } 40300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40301 /* end confdefs.h. */ 40302 40303 40304 $curl_includes_signal 40305 40306 int main(void) 40307 { 40308 40309 if(0 != sigaction(0, 0, 0)) 40310 return 1; 40311 40312 return 0; 40313 } 40314 40315 _ACEOF 40316 if ac_fn_c_try_compile "$LINENO" 40317 then : 40318 40319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40320 printf "%s\n" "yes" >&6; } 40321 tst_compi_sigaction="yes" 40322 40323 else $as_nop 40324 40325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40326 printf "%s\n" "no" >&6; } 40327 tst_compi_sigaction="no" 40328 40329 fi 40330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40331 fi 40332 # 40333 if test "$tst_compi_sigaction" = "yes"; then 40334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5 40335 printf %s "checking if sigaction usage allowed... " >&6; } 40336 if test "x$curl_disallow_sigaction" != "xyes"; then 40337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40338 printf "%s\n" "yes" >&6; } 40339 tst_allow_sigaction="yes" 40340 else 40341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40342 printf "%s\n" "no" >&6; } 40343 tst_allow_sigaction="no" 40344 fi 40345 fi 40346 # 40347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5 40348 printf %s "checking if sigaction might be used... " >&6; } 40349 if test "$tst_links_sigaction" = "yes" && 40350 test "$tst_proto_sigaction" = "yes" && 40351 test "$tst_compi_sigaction" = "yes" && 40352 test "$tst_allow_sigaction" = "yes"; then 40353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40354 printf "%s\n" "yes" >&6; } 40355 40356 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 40357 40358 curl_cv_func_sigaction="yes" 40359 else 40360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40361 printf "%s\n" "no" >&6; } 40362 curl_cv_func_sigaction="no" 40363 fi 40364 40365 40366 # 40367 tst_links_siginterrupt="unknown" 40368 tst_proto_siginterrupt="unknown" 40369 tst_compi_siginterrupt="unknown" 40370 tst_allow_siginterrupt="unknown" 40371 # 40372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5 40373 printf %s "checking if siginterrupt can be linked... " >&6; } 40374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40375 /* end confdefs.h. */ 40376 40377 40378 #define siginterrupt innocuous_siginterrupt 40379 #ifdef __STDC__ 40380 # include <limits.h> 40381 #else 40382 # include <assert.h> 40383 #endif 40384 #undef siginterrupt 40385 #ifdef __cplusplus 40386 extern "C" 40387 #endif 40388 char siginterrupt (); 40389 #if defined __stub_siginterrupt || defined __stub___siginterrupt 40390 #error force compilation error 40391 #endif 40392 40393 int main(void) 40394 { 40395 return siginterrupt (); 40396 return 0; 40397 } 40398 40399 _ACEOF 40400 if ac_fn_c_try_link "$LINENO" 40401 then : 40402 40403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40404 printf "%s\n" "yes" >&6; } 40405 tst_links_siginterrupt="yes" 40406 40407 else $as_nop 40408 40409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40410 printf "%s\n" "no" >&6; } 40411 tst_links_siginterrupt="no" 40412 40413 fi 40414 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40415 conftest$ac_exeext conftest.$ac_ext 40416 # 40417 if test "$tst_links_siginterrupt" = "yes"; then 40418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5 40419 printf %s "checking if siginterrupt is prototyped... " >&6; } 40420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40421 /* end confdefs.h. */ 40422 40423 $curl_includes_signal 40424 40425 _ACEOF 40426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40427 $EGREP "siginterrupt" >/dev/null 2>&1 40428 then : 40429 40430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40431 printf "%s\n" "yes" >&6; } 40432 tst_proto_siginterrupt="yes" 40433 40434 else $as_nop 40435 40436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40437 printf "%s\n" "no" >&6; } 40438 tst_proto_siginterrupt="no" 40439 40440 fi 40441 rm -rf conftest* 40442 40443 fi 40444 # 40445 if test "$tst_proto_siginterrupt" = "yes"; then 40446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5 40447 printf %s "checking if siginterrupt is compilable... " >&6; } 40448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40449 /* end confdefs.h. */ 40450 40451 40452 $curl_includes_signal 40453 40454 int main(void) 40455 { 40456 40457 if(0 != siginterrupt(0, 0)) 40458 return 1; 40459 40460 return 0; 40461 } 40462 40463 _ACEOF 40464 if ac_fn_c_try_compile "$LINENO" 40465 then : 40466 40467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40468 printf "%s\n" "yes" >&6; } 40469 tst_compi_siginterrupt="yes" 40470 40471 else $as_nop 40472 40473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40474 printf "%s\n" "no" >&6; } 40475 tst_compi_siginterrupt="no" 40476 40477 fi 40478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40479 fi 40480 # 40481 if test "$tst_compi_siginterrupt" = "yes"; then 40482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5 40483 printf %s "checking if siginterrupt usage allowed... " >&6; } 40484 if test "x$curl_disallow_siginterrupt" != "xyes"; then 40485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40486 printf "%s\n" "yes" >&6; } 40487 tst_allow_siginterrupt="yes" 40488 else 40489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40490 printf "%s\n" "no" >&6; } 40491 tst_allow_siginterrupt="no" 40492 fi 40493 fi 40494 # 40495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5 40496 printf %s "checking if siginterrupt might be used... " >&6; } 40497 if test "$tst_links_siginterrupt" = "yes" && 40498 test "$tst_proto_siginterrupt" = "yes" && 40499 test "$tst_compi_siginterrupt" = "yes" && 40500 test "$tst_allow_siginterrupt" = "yes"; then 40501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40502 printf "%s\n" "yes" >&6; } 40503 40504 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h 40505 40506 curl_cv_func_siginterrupt="yes" 40507 else 40508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40509 printf "%s\n" "no" >&6; } 40510 curl_cv_func_siginterrupt="no" 40511 fi 40512 40513 40514 # 40515 tst_links_signal="unknown" 40516 tst_proto_signal="unknown" 40517 tst_compi_signal="unknown" 40518 tst_allow_signal="unknown" 40519 # 40520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5 40521 printf %s "checking if signal can be linked... " >&6; } 40522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40523 /* end confdefs.h. */ 40524 40525 40526 #define signal innocuous_signal 40527 #ifdef __STDC__ 40528 # include <limits.h> 40529 #else 40530 # include <assert.h> 40531 #endif 40532 #undef signal 40533 #ifdef __cplusplus 40534 extern "C" 40535 #endif 40536 char signal (); 40537 #if defined __stub_signal || defined __stub___signal 40538 #error force compilation error 40539 #endif 40540 40541 int main(void) 40542 { 40543 return signal (); 40544 return 0; 40545 } 40546 40547 _ACEOF 40548 if ac_fn_c_try_link "$LINENO" 40549 then : 40550 40551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40552 printf "%s\n" "yes" >&6; } 40553 tst_links_signal="yes" 40554 40555 else $as_nop 40556 40557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40558 printf "%s\n" "no" >&6; } 40559 tst_links_signal="no" 40560 40561 fi 40562 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40563 conftest$ac_exeext conftest.$ac_ext 40564 # 40565 if test "$tst_links_signal" = "yes"; then 40566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5 40567 printf %s "checking if signal is prototyped... " >&6; } 40568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40569 /* end confdefs.h. */ 40570 40571 $curl_includes_signal 40572 40573 _ACEOF 40574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40575 $EGREP "signal" >/dev/null 2>&1 40576 then : 40577 40578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40579 printf "%s\n" "yes" >&6; } 40580 tst_proto_signal="yes" 40581 40582 else $as_nop 40583 40584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40585 printf "%s\n" "no" >&6; } 40586 tst_proto_signal="no" 40587 40588 fi 40589 rm -rf conftest* 40590 40591 fi 40592 # 40593 if test "$tst_proto_signal" = "yes"; then 40594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5 40595 printf %s "checking if signal is compilable... " >&6; } 40596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40597 /* end confdefs.h. */ 40598 40599 40600 $curl_includes_signal 40601 40602 int main(void) 40603 { 40604 40605 if(0 != signal(0, 0)) 40606 return 1; 40607 40608 return 0; 40609 } 40610 40611 _ACEOF 40612 if ac_fn_c_try_compile "$LINENO" 40613 then : 40614 40615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40616 printf "%s\n" "yes" >&6; } 40617 tst_compi_signal="yes" 40618 40619 else $as_nop 40620 40621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40622 printf "%s\n" "no" >&6; } 40623 tst_compi_signal="no" 40624 40625 fi 40626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40627 fi 40628 # 40629 if test "$tst_compi_signal" = "yes"; then 40630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5 40631 printf %s "checking if signal usage allowed... " >&6; } 40632 if test "x$curl_disallow_signal" != "xyes"; then 40633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40634 printf "%s\n" "yes" >&6; } 40635 tst_allow_signal="yes" 40636 else 40637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40638 printf "%s\n" "no" >&6; } 40639 tst_allow_signal="no" 40640 fi 40641 fi 40642 # 40643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5 40644 printf %s "checking if signal might be used... " >&6; } 40645 if test "$tst_links_signal" = "yes" && 40646 test "$tst_proto_signal" = "yes" && 40647 test "$tst_compi_signal" = "yes" && 40648 test "$tst_allow_signal" = "yes"; then 40649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40650 printf "%s\n" "yes" >&6; } 40651 40652 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h 40653 40654 curl_cv_func_signal="yes" 40655 else 40656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40657 printf "%s\n" "no" >&6; } 40658 curl_cv_func_signal="no" 40659 fi 40660 40661 40662 curl_includes_setjmp="\ 40663 /* includes start */ 40664 #ifdef HAVE_SYS_TYPES_H 40665 # include <sys/types.h> 40666 #endif 40667 #include <setjmp.h> 40668 /* includes end */" 40669 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp 40670 " 40671 if test "x$ac_cv_header_sys_types_h" = xyes 40672 then : 40673 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 40674 40675 fi 40676 40677 40678 40679 # 40680 tst_links_sigsetjmp="unknown" 40681 tst_macro_sigsetjmp="unknown" 40682 tst_proto_sigsetjmp="unknown" 40683 tst_compi_sigsetjmp="unknown" 40684 tst_allow_sigsetjmp="unknown" 40685 # 40686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5 40687 printf %s "checking if sigsetjmp can be linked... " >&6; } 40688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40689 /* end confdefs.h. */ 40690 40691 40692 #define sigsetjmp innocuous_sigsetjmp 40693 #ifdef __STDC__ 40694 # include <limits.h> 40695 #else 40696 # include <assert.h> 40697 #endif 40698 #undef sigsetjmp 40699 #ifdef __cplusplus 40700 extern "C" 40701 #endif 40702 char sigsetjmp (); 40703 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp 40704 #error force compilation error 40705 #endif 40706 40707 int main(void) 40708 { 40709 return sigsetjmp (); 40710 return 0; 40711 } 40712 40713 _ACEOF 40714 if ac_fn_c_try_link "$LINENO" 40715 then : 40716 40717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40718 printf "%s\n" "yes" >&6; } 40719 tst_links_sigsetjmp="yes" 40720 40721 else $as_nop 40722 40723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40724 printf "%s\n" "no" >&6; } 40725 tst_links_sigsetjmp="no" 40726 40727 fi 40728 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40729 conftest$ac_exeext conftest.$ac_ext 40730 # 40731 if test "$tst_links_sigsetjmp" = "no"; then 40732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5 40733 printf %s "checking if sigsetjmp seems a macro... " >&6; } 40734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40735 /* end confdefs.h. */ 40736 40737 40738 $curl_includes_setjmp 40739 40740 int main(void) 40741 { 40742 40743 sigjmp_buf env; 40744 if(0 != sigsetjmp(env, 0)) 40745 return 1; 40746 40747 return 0; 40748 } 40749 40750 _ACEOF 40751 if ac_fn_c_try_link "$LINENO" 40752 then : 40753 40754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40755 printf "%s\n" "yes" >&6; } 40756 tst_macro_sigsetjmp="yes" 40757 40758 else $as_nop 40759 40760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40761 printf "%s\n" "no" >&6; } 40762 tst_macro_sigsetjmp="no" 40763 40764 fi 40765 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40766 conftest$ac_exeext conftest.$ac_ext 40767 fi 40768 # 40769 if test "$tst_links_sigsetjmp" = "yes"; then 40770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5 40771 printf %s "checking if sigsetjmp is prototyped... " >&6; } 40772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40773 /* end confdefs.h. */ 40774 40775 $curl_includes_setjmp 40776 40777 _ACEOF 40778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40779 $EGREP "sigsetjmp" >/dev/null 2>&1 40780 then : 40781 40782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40783 printf "%s\n" "yes" >&6; } 40784 tst_proto_sigsetjmp="yes" 40785 40786 else $as_nop 40787 40788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40789 printf "%s\n" "no" >&6; } 40790 tst_proto_sigsetjmp="no" 40791 40792 fi 40793 rm -rf conftest* 40794 40795 fi 40796 # 40797 if test "$tst_proto_sigsetjmp" = "yes" || 40798 test "$tst_macro_sigsetjmp" = "yes"; then 40799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5 40800 printf %s "checking if sigsetjmp is compilable... " >&6; } 40801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40802 /* end confdefs.h. */ 40803 40804 40805 $curl_includes_setjmp 40806 40807 int main(void) 40808 { 40809 40810 sigjmp_buf env; 40811 if(0 != sigsetjmp(env, 0)) 40812 return 1; 40813 40814 return 0; 40815 } 40816 40817 _ACEOF 40818 if ac_fn_c_try_compile "$LINENO" 40819 then : 40820 40821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40822 printf "%s\n" "yes" >&6; } 40823 tst_compi_sigsetjmp="yes" 40824 40825 else $as_nop 40826 40827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40828 printf "%s\n" "no" >&6; } 40829 tst_compi_sigsetjmp="no" 40830 40831 fi 40832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40833 fi 40834 # 40835 if test "$tst_compi_sigsetjmp" = "yes"; then 40836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5 40837 printf %s "checking if sigsetjmp usage allowed... " >&6; } 40838 if test "x$curl_disallow_sigsetjmp" != "xyes"; then 40839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40840 printf "%s\n" "yes" >&6; } 40841 tst_allow_sigsetjmp="yes" 40842 else 40843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40844 printf "%s\n" "no" >&6; } 40845 tst_allow_sigsetjmp="no" 40846 fi 40847 fi 40848 # 40849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5 40850 printf %s "checking if sigsetjmp might be used... " >&6; } 40851 if (test "$tst_proto_sigsetjmp" = "yes" || 40852 test "$tst_macro_sigsetjmp" = "yes") && 40853 test "$tst_compi_sigsetjmp" = "yes" && 40854 test "$tst_allow_sigsetjmp" = "yes"; then 40855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40856 printf "%s\n" "yes" >&6; } 40857 40858 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h 40859 40860 curl_cv_func_sigsetjmp="yes" 40861 else 40862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40863 printf "%s\n" "no" >&6; } 40864 curl_cv_func_sigsetjmp="no" 40865 fi 40866 40867 40868 # 40869 tst_links_socket="unknown" 40870 tst_proto_socket="unknown" 40871 tst_compi_socket="unknown" 40872 tst_allow_socket="unknown" 40873 # 40874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 40875 printf %s "checking if socket can be linked... " >&6; } 40876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40877 /* end confdefs.h. */ 40878 40879 40880 $curl_includes_winsock2 40881 $curl_includes_bsdsocket 40882 $curl_includes_sys_socket 40883 40884 int main(void) 40885 { 40886 40887 if(0 != socket(0, 0, 0)) 40888 return 1; 40889 40890 return 0; 40891 } 40892 40893 _ACEOF 40894 if ac_fn_c_try_link "$LINENO" 40895 then : 40896 40897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40898 printf "%s\n" "yes" >&6; } 40899 tst_links_socket="yes" 40900 40901 else $as_nop 40902 40903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40904 printf "%s\n" "no" >&6; } 40905 tst_links_socket="no" 40906 40907 fi 40908 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40909 conftest$ac_exeext conftest.$ac_ext 40910 # 40911 if test "$tst_links_socket" = "yes"; then 40912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 40913 printf %s "checking if socket is prototyped... " >&6; } 40914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40915 /* end confdefs.h. */ 40916 40917 $curl_includes_winsock2 40918 $curl_includes_bsdsocket 40919 $curl_includes_sys_socket 40920 40921 _ACEOF 40922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40923 $EGREP "socket" >/dev/null 2>&1 40924 then : 40925 40926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40927 printf "%s\n" "yes" >&6; } 40928 tst_proto_socket="yes" 40929 40930 else $as_nop 40931 40932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40933 printf "%s\n" "no" >&6; } 40934 tst_proto_socket="no" 40935 40936 fi 40937 rm -rf conftest* 40938 40939 fi 40940 # 40941 if test "$tst_proto_socket" = "yes"; then 40942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 40943 printf %s "checking if socket is compilable... " >&6; } 40944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40945 /* end confdefs.h. */ 40946 40947 40948 $curl_includes_winsock2 40949 $curl_includes_bsdsocket 40950 $curl_includes_sys_socket 40951 40952 int main(void) 40953 { 40954 40955 if(0 != socket(0, 0, 0)) 40956 return 1; 40957 40958 return 0; 40959 } 40960 40961 _ACEOF 40962 if ac_fn_c_try_compile "$LINENO" 40963 then : 40964 40965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40966 printf "%s\n" "yes" >&6; } 40967 tst_compi_socket="yes" 40968 40969 else $as_nop 40970 40971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40972 printf "%s\n" "no" >&6; } 40973 tst_compi_socket="no" 40974 40975 fi 40976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40977 fi 40978 # 40979 if test "$tst_compi_socket" = "yes"; then 40980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 40981 printf %s "checking if socket usage allowed... " >&6; } 40982 if test "x$curl_disallow_socket" != "xyes"; then 40983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40984 printf "%s\n" "yes" >&6; } 40985 tst_allow_socket="yes" 40986 else 40987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40988 printf "%s\n" "no" >&6; } 40989 tst_allow_socket="no" 40990 fi 40991 fi 40992 # 40993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 40994 printf %s "checking if socket might be used... " >&6; } 40995 if test "$tst_links_socket" = "yes" && 40996 test "$tst_proto_socket" = "yes" && 40997 test "$tst_compi_socket" = "yes" && 40998 test "$tst_allow_socket" = "yes"; then 40999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41000 printf "%s\n" "yes" >&6; } 41001 41002 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 41003 41004 curl_cv_func_socket="yes" 41005 else 41006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41007 printf "%s\n" "no" >&6; } 41008 curl_cv_func_socket="no" 41009 fi 41010 41011 41012 # 41013 tst_links_socketpair="unknown" 41014 tst_proto_socketpair="unknown" 41015 tst_compi_socketpair="unknown" 41016 tst_allow_socketpair="unknown" 41017 # 41018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5 41019 printf %s "checking if socketpair can be linked... " >&6; } 41020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41021 /* end confdefs.h. */ 41022 41023 41024 #define socketpair innocuous_socketpair 41025 #ifdef __STDC__ 41026 # include <limits.h> 41027 #else 41028 # include <assert.h> 41029 #endif 41030 #undef socketpair 41031 #ifdef __cplusplus 41032 extern "C" 41033 #endif 41034 char socketpair (); 41035 #if defined __stub_socketpair || defined __stub___socketpair 41036 #error force compilation error 41037 #endif 41038 41039 int main(void) 41040 { 41041 return socketpair (); 41042 return 0; 41043 } 41044 41045 _ACEOF 41046 if ac_fn_c_try_link "$LINENO" 41047 then : 41048 41049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41050 printf "%s\n" "yes" >&6; } 41051 tst_links_socketpair="yes" 41052 41053 else $as_nop 41054 41055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41056 printf "%s\n" "no" >&6; } 41057 tst_links_socketpair="no" 41058 41059 fi 41060 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41061 conftest$ac_exeext conftest.$ac_ext 41062 # 41063 if test "$tst_links_socketpair" = "yes"; then 41064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5 41065 printf %s "checking if socketpair is prototyped... " >&6; } 41066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41067 /* end confdefs.h. */ 41068 41069 $curl_includes_sys_socket 41070 41071 _ACEOF 41072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41073 $EGREP "socketpair" >/dev/null 2>&1 41074 then : 41075 41076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41077 printf "%s\n" "yes" >&6; } 41078 tst_proto_socketpair="yes" 41079 41080 else $as_nop 41081 41082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41083 printf "%s\n" "no" >&6; } 41084 tst_proto_socketpair="no" 41085 41086 fi 41087 rm -rf conftest* 41088 41089 fi 41090 # 41091 if test "$tst_proto_socketpair" = "yes"; then 41092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5 41093 printf %s "checking if socketpair is compilable... " >&6; } 41094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41095 /* end confdefs.h. */ 41096 41097 41098 $curl_includes_sys_socket 41099 41100 int main(void) 41101 { 41102 41103 int sv[2]; 41104 if(0 != socketpair(0, 0, 0, sv)) 41105 return 1; 41106 41107 return 0; 41108 } 41109 41110 _ACEOF 41111 if ac_fn_c_try_compile "$LINENO" 41112 then : 41113 41114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41115 printf "%s\n" "yes" >&6; } 41116 tst_compi_socketpair="yes" 41117 41118 else $as_nop 41119 41120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41121 printf "%s\n" "no" >&6; } 41122 tst_compi_socketpair="no" 41123 41124 fi 41125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41126 fi 41127 # 41128 if test "$tst_compi_socketpair" = "yes"; then 41129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5 41130 printf %s "checking if socketpair usage allowed... " >&6; } 41131 if test "x$curl_disallow_socketpair" != "xyes"; then 41132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41133 printf "%s\n" "yes" >&6; } 41134 tst_allow_socketpair="yes" 41135 else 41136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41137 printf "%s\n" "no" >&6; } 41138 tst_allow_socketpair="no" 41139 fi 41140 fi 41141 # 41142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5 41143 printf %s "checking if socketpair might be used... " >&6; } 41144 if test "$tst_links_socketpair" = "yes" && 41145 test "$tst_proto_socketpair" = "yes" && 41146 test "$tst_compi_socketpair" = "yes" && 41147 test "$tst_allow_socketpair" = "yes"; then 41148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41149 printf "%s\n" "yes" >&6; } 41150 41151 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 41152 41153 curl_cv_func_socketpair="yes" 41154 else 41155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41156 printf "%s\n" "no" >&6; } 41157 curl_cv_func_socketpair="no" 41158 fi 41159 41160 41161 # 41162 tst_links_strdup="unknown" 41163 tst_proto_strdup="unknown" 41164 tst_compi_strdup="unknown" 41165 tst_allow_strdup="unknown" 41166 # 41167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 41168 printf %s "checking if strdup can be linked... " >&6; } 41169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41170 /* end confdefs.h. */ 41171 41172 41173 #define strdup innocuous_strdup 41174 #ifdef __STDC__ 41175 # include <limits.h> 41176 #else 41177 # include <assert.h> 41178 #endif 41179 #undef strdup 41180 #ifdef __cplusplus 41181 extern "C" 41182 #endif 41183 char strdup (); 41184 #if defined __stub_strdup || defined __stub___strdup 41185 #error force compilation error 41186 #endif 41187 41188 int main(void) 41189 { 41190 return strdup (); 41191 return 0; 41192 } 41193 41194 _ACEOF 41195 if ac_fn_c_try_link "$LINENO" 41196 then : 41197 41198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41199 printf "%s\n" "yes" >&6; } 41200 tst_links_strdup="yes" 41201 41202 else $as_nop 41203 41204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41205 printf "%s\n" "no" >&6; } 41206 tst_links_strdup="no" 41207 41208 fi 41209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41210 conftest$ac_exeext conftest.$ac_ext 41211 # 41212 if test "$tst_links_strdup" = "yes"; then 41213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 41214 printf %s "checking if strdup is prototyped... " >&6; } 41215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41216 /* end confdefs.h. */ 41217 41218 $curl_includes_string 41219 41220 _ACEOF 41221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41222 $EGREP "strdup" >/dev/null 2>&1 41223 then : 41224 41225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41226 printf "%s\n" "yes" >&6; } 41227 tst_proto_strdup="yes" 41228 41229 else $as_nop 41230 41231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41232 printf "%s\n" "no" >&6; } 41233 tst_proto_strdup="no" 41234 41235 fi 41236 rm -rf conftest* 41237 41238 fi 41239 # 41240 if test "$tst_proto_strdup" = "yes"; then 41241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 41242 printf %s "checking if strdup is compilable... " >&6; } 41243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41244 /* end confdefs.h. */ 41245 41246 41247 $curl_includes_string 41248 $curl_includes_stdlib 41249 41250 int main(void) 41251 { 41252 41253 free(strdup("")); 41254 41255 return 0; 41256 } 41257 41258 _ACEOF 41259 if ac_fn_c_try_compile "$LINENO" 41260 then : 41261 41262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41263 printf "%s\n" "yes" >&6; } 41264 tst_compi_strdup="yes" 41265 41266 else $as_nop 41267 41268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41269 printf "%s\n" "no" >&6; } 41270 tst_compi_strdup="no" 41271 41272 fi 41273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41274 fi 41275 # 41276 if test "$tst_compi_strdup" = "yes"; then 41277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 41278 printf %s "checking if strdup usage allowed... " >&6; } 41279 if test "x$curl_disallow_strdup" != "xyes"; then 41280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41281 printf "%s\n" "yes" >&6; } 41282 tst_allow_strdup="yes" 41283 else 41284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41285 printf "%s\n" "no" >&6; } 41286 tst_allow_strdup="no" 41287 fi 41288 fi 41289 # 41290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 41291 printf %s "checking if strdup might be used... " >&6; } 41292 if test "$tst_links_strdup" = "yes" && 41293 test "$tst_proto_strdup" = "yes" && 41294 test "$tst_compi_strdup" = "yes" && 41295 test "$tst_allow_strdup" = "yes"; then 41296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41297 printf "%s\n" "yes" >&6; } 41298 41299 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 41300 41301 curl_cv_func_strdup="yes" 41302 else 41303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41304 printf "%s\n" "no" >&6; } 41305 curl_cv_func_strdup="no" 41306 fi 41307 41308 41309 # 41310 tst_links_strerror_r="unknown" 41311 tst_proto_strerror_r="unknown" 41312 tst_compi_strerror_r="unknown" 41313 tst_glibc_strerror_r="unknown" 41314 tst_posix_strerror_r="unknown" 41315 tst_allow_strerror_r="unknown" 41316 tst_works_glibc_strerror_r="unknown" 41317 tst_works_posix_strerror_r="unknown" 41318 tst_glibc_strerror_r_type_arg3="unknown" 41319 tst_posix_strerror_r_type_arg3="unknown" 41320 # 41321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5 41322 printf %s "checking if strerror_r can be linked... " >&6; } 41323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41324 /* end confdefs.h. */ 41325 41326 41327 #define strerror_r innocuous_strerror_r 41328 #ifdef __STDC__ 41329 # include <limits.h> 41330 #else 41331 # include <assert.h> 41332 #endif 41333 #undef strerror_r 41334 #ifdef __cplusplus 41335 extern "C" 41336 #endif 41337 char strerror_r (); 41338 #if defined __stub_strerror_r || defined __stub___strerror_r 41339 #error force compilation error 41340 #endif 41341 41342 int main(void) 41343 { 41344 return strerror_r (); 41345 return 0; 41346 } 41347 41348 _ACEOF 41349 if ac_fn_c_try_link "$LINENO" 41350 then : 41351 41352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41353 printf "%s\n" "yes" >&6; } 41354 tst_links_strerror_r="yes" 41355 41356 else $as_nop 41357 41358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41359 printf "%s\n" "no" >&6; } 41360 tst_links_strerror_r="no" 41361 41362 fi 41363 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41364 conftest$ac_exeext conftest.$ac_ext 41365 # 41366 if test "$tst_links_strerror_r" = "yes"; then 41367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5 41368 printf %s "checking if strerror_r is prototyped... " >&6; } 41369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41370 /* end confdefs.h. */ 41371 41372 $curl_includes_string 41373 41374 _ACEOF 41375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41376 $EGREP "strerror_r" >/dev/null 2>&1 41377 then : 41378 41379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41380 printf "%s\n" "yes" >&6; } 41381 tst_proto_strerror_r="yes" 41382 41383 else $as_nop 41384 41385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41386 printf "%s\n" "no" >&6; } 41387 tst_proto_strerror_r="no" 41388 41389 fi 41390 rm -rf conftest* 41391 41392 fi 41393 # 41394 if test "$tst_proto_strerror_r" = "yes"; then 41395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5 41396 printf %s "checking if strerror_r is compilable... " >&6; } 41397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41398 /* end confdefs.h. */ 41399 41400 41401 $curl_includes_string 41402 41403 int main(void) 41404 { 41405 41406 char s[1]; 41407 if(0 != strerror_r(0, s, 0)) 41408 return 1; 41409 41410 return 0; 41411 } 41412 41413 _ACEOF 41414 if ac_fn_c_try_compile "$LINENO" 41415 then : 41416 41417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41418 printf "%s\n" "yes" >&6; } 41419 tst_compi_strerror_r="yes" 41420 41421 else $as_nop 41422 41423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41424 printf "%s\n" "no" >&6; } 41425 tst_compi_strerror_r="no" 41426 41427 fi 41428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41429 fi 41430 # 41431 if test "$tst_compi_strerror_r" = "yes"; then 41432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5 41433 printf %s "checking if strerror_r is glibc like... " >&6; } 41434 tst_glibc_strerror_r_type_arg3="unknown" 41435 for arg3 in 'size_t' 'int' 'unsigned int'; do 41436 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then 41437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41438 /* end confdefs.h. */ 41439 41440 41441 $curl_includes_string 41442 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize); 41443 41444 int main(void) 41445 { 41446 41447 char s[1]; 41448 if(0 != strerror_r(0, s, 0)) 41449 return 1; 41450 (void)s; 41451 41452 return 0; 41453 } 41454 41455 _ACEOF 41456 if ac_fn_c_try_compile "$LINENO" 41457 then : 41458 41459 tst_glibc_strerror_r_type_arg3="$arg3" 41460 41461 fi 41462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41463 fi 41464 done 41465 case "$tst_glibc_strerror_r_type_arg3" in 41466 unknown) 41467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41468 printf "%s\n" "no" >&6; } 41469 tst_glibc_strerror_r="no" 41470 ;; 41471 *) 41472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41473 printf "%s\n" "yes" >&6; } 41474 tst_glibc_strerror_r="yes" 41475 ;; 41476 esac 41477 fi 41478 # 41479 if test "x$cross_compiling" != "xyes" && 41480 test "$tst_glibc_strerror_r" = "yes"; then 41481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 41482 printf %s "checking if strerror_r seems to work... " >&6; } 41483 41484 if test "$curl_cv_apple" = 'yes'; then 41485 if test "$cross_compiling" = yes 41486 then : 41487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 41489 as_fn_error $? "cannot run test program while cross compiling 41490 See \`config.log' for more details" "$LINENO" 5; } 41491 else $as_nop 41492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41493 /* end confdefs.h. */ 41494 41495 41496 $curl_includes_stdlib 41497 $curl_includes_string 41498 #include <errno.h> 41499 41500 int main(void) 41501 { 41502 41503 char buffer[1024]; 41504 char *string = 0; 41505 buffer[0] = '\0'; 41506 string = strerror_r(EACCES, buffer, sizeof(buffer)); 41507 if(!string) 41508 return 1; /* fail */ 41509 if(!string[0]) 41510 return 1; /* fail */ 41511 else 41512 return 0; 41513 41514 return 0; 41515 } 41516 41517 _ACEOF 41518 if ac_fn_c_try_run "$LINENO" 41519 then : 41520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41521 printf "%s\n" "yes" >&6; } 41522 tst_works_glibc_strerror_r="yes" 41523 41524 else $as_nop 41525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41526 printf "%s\n" "no" >&6; } 41527 tst_works_glibc_strerror_r="no" 41528 41529 fi 41530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41531 conftest.$ac_objext conftest.beam conftest.$ac_ext 41532 fi 41533 41534 else 41535 oldcc=$CC 41536 old=$LD_LIBRARY_PATH 41537 CC="sh ./run-compiler" 41538 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 41539 export LD_LIBRARY_PATH 41540 if test "$cross_compiling" = yes 41541 then : 41542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41543 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 41544 as_fn_error $? "cannot run test program while cross compiling 41545 See \`config.log' for more details" "$LINENO" 5; } 41546 else $as_nop 41547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41548 /* end confdefs.h. */ 41549 41550 41551 $curl_includes_stdlib 41552 $curl_includes_string 41553 #include <errno.h> 41554 41555 int main(void) 41556 { 41557 41558 char buffer[1024]; 41559 char *string = 0; 41560 buffer[0] = '\0'; 41561 string = strerror_r(EACCES, buffer, sizeof(buffer)); 41562 if(!string) 41563 return 1; /* fail */ 41564 if(!string[0]) 41565 return 1; /* fail */ 41566 else 41567 return 0; 41568 41569 return 0; 41570 } 41571 41572 _ACEOF 41573 if ac_fn_c_try_run "$LINENO" 41574 then : 41575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41576 printf "%s\n" "yes" >&6; } 41577 tst_works_glibc_strerror_r="yes" 41578 41579 else $as_nop 41580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41581 printf "%s\n" "no" >&6; } 41582 tst_works_glibc_strerror_r="no" 41583 41584 fi 41585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41586 conftest.$ac_objext conftest.beam conftest.$ac_ext 41587 fi 41588 41589 LD_LIBRARY_PATH=$old # restore 41590 CC=$oldcc 41591 fi 41592 41593 fi 41594 # 41595 if test "$tst_compi_strerror_r" = "yes" && 41596 test "$tst_works_glibc_strerror_r" != "yes"; then 41597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5 41598 printf %s "checking if strerror_r is POSIX like... " >&6; } 41599 tst_posix_strerror_r_type_arg3="unknown" 41600 for arg3 in 'size_t' 'int' 'unsigned int'; do 41601 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then 41602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41603 /* end confdefs.h. */ 41604 41605 41606 $curl_includes_string 41607 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize); 41608 41609 int main(void) 41610 { 41611 41612 char s[1]; 41613 if(0 != strerror_r(0, s, 0)) 41614 return 1; 41615 (void)s; 41616 41617 return 0; 41618 } 41619 41620 _ACEOF 41621 if ac_fn_c_try_compile "$LINENO" 41622 then : 41623 41624 tst_posix_strerror_r_type_arg3="$arg3" 41625 41626 fi 41627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41628 fi 41629 done 41630 case "$tst_posix_strerror_r_type_arg3" in 41631 unknown) 41632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41633 printf "%s\n" "no" >&6; } 41634 tst_posix_strerror_r="no" 41635 ;; 41636 *) 41637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41638 printf "%s\n" "yes" >&6; } 41639 tst_posix_strerror_r="yes" 41640 ;; 41641 esac 41642 fi 41643 # 41644 if test "x$cross_compiling" != "xyes" && 41645 test "$tst_posix_strerror_r" = "yes"; then 41646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 41647 printf %s "checking if strerror_r seems to work... " >&6; } 41648 41649 if test "$curl_cv_apple" = 'yes'; then 41650 if test "$cross_compiling" = yes 41651 then : 41652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41653 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 41654 as_fn_error $? "cannot run test program while cross compiling 41655 See \`config.log' for more details" "$LINENO" 5; } 41656 else $as_nop 41657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41658 /* end confdefs.h. */ 41659 41660 41661 $curl_includes_stdlib 41662 $curl_includes_string 41663 #include <errno.h> 41664 41665 int main(void) 41666 { 41667 41668 char buffer[1024]; 41669 int error = 1; 41670 buffer[0] = '\0'; 41671 error = strerror_r(EACCES, buffer, sizeof(buffer)); 41672 if(error) 41673 return 1; /* fail */ 41674 if(buffer[0] == '\0') 41675 return 1; /* fail */ 41676 else 41677 return 0; 41678 41679 return 0; 41680 } 41681 41682 _ACEOF 41683 if ac_fn_c_try_run "$LINENO" 41684 then : 41685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41686 printf "%s\n" "yes" >&6; } 41687 tst_works_posix_strerror_r="yes" 41688 41689 else $as_nop 41690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41691 printf "%s\n" "no" >&6; } 41692 tst_works_posix_strerror_r="no" 41693 41694 fi 41695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41696 conftest.$ac_objext conftest.beam conftest.$ac_ext 41697 fi 41698 41699 else 41700 oldcc=$CC 41701 old=$LD_LIBRARY_PATH 41702 CC="sh ./run-compiler" 41703 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 41704 export LD_LIBRARY_PATH 41705 if test "$cross_compiling" = yes 41706 then : 41707 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41708 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 41709 as_fn_error $? "cannot run test program while cross compiling 41710 See \`config.log' for more details" "$LINENO" 5; } 41711 else $as_nop 41712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41713 /* end confdefs.h. */ 41714 41715 41716 $curl_includes_stdlib 41717 $curl_includes_string 41718 #include <errno.h> 41719 41720 int main(void) 41721 { 41722 41723 char buffer[1024]; 41724 int error = 1; 41725 buffer[0] = '\0'; 41726 error = strerror_r(EACCES, buffer, sizeof(buffer)); 41727 if(error) 41728 return 1; /* fail */ 41729 if(buffer[0] == '\0') 41730 return 1; /* fail */ 41731 else 41732 return 0; 41733 41734 return 0; 41735 } 41736 41737 _ACEOF 41738 if ac_fn_c_try_run "$LINENO" 41739 then : 41740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41741 printf "%s\n" "yes" >&6; } 41742 tst_works_posix_strerror_r="yes" 41743 41744 else $as_nop 41745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41746 printf "%s\n" "no" >&6; } 41747 tst_works_posix_strerror_r="no" 41748 41749 fi 41750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41751 conftest.$ac_objext conftest.beam conftest.$ac_ext 41752 fi 41753 41754 LD_LIBRARY_PATH=$old # restore 41755 CC=$oldcc 41756 fi 41757 41758 fi 41759 # 41760 if test "$tst_works_glibc_strerror_r" = "yes"; then 41761 tst_posix_strerror_r="no" 41762 fi 41763 if test "$tst_works_posix_strerror_r" = "yes"; then 41764 tst_glibc_strerror_r="no" 41765 fi 41766 if test "$tst_glibc_strerror_r" = "yes" && 41767 test "$tst_works_glibc_strerror_r" != "no" && 41768 test "$tst_posix_strerror_r" != "yes"; then 41769 tst_allow_strerror_r="check" 41770 fi 41771 if test "$tst_posix_strerror_r" = "yes" && 41772 test "$tst_works_posix_strerror_r" != "no" && 41773 test "$tst_glibc_strerror_r" != "yes"; then 41774 tst_allow_strerror_r="check" 41775 fi 41776 if test "$tst_allow_strerror_r" = "check"; then 41777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5 41778 printf %s "checking if strerror_r usage allowed... " >&6; } 41779 if test "x$curl_disallow_strerror_r" != "xyes"; then 41780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41781 printf "%s\n" "yes" >&6; } 41782 tst_allow_strerror_r="yes" 41783 else 41784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41785 printf "%s\n" "no" >&6; } 41786 tst_allow_strerror_r="no" 41787 fi 41788 fi 41789 # 41790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5 41791 printf %s "checking if strerror_r might be used... " >&6; } 41792 if test "$tst_links_strerror_r" = "yes" && 41793 test "$tst_proto_strerror_r" = "yes" && 41794 test "$tst_compi_strerror_r" = "yes" && 41795 test "$tst_allow_strerror_r" = "yes"; then 41796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41797 printf "%s\n" "yes" >&6; } 41798 if test "$tst_glibc_strerror_r" = "yes"; then 41799 41800 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 41801 41802 41803 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h 41804 41805 fi 41806 if test "$tst_posix_strerror_r" = "yes"; then 41807 41808 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 41809 41810 41811 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h 41812 41813 fi 41814 curl_cv_func_strerror_r="yes" 41815 else 41816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41817 printf "%s\n" "no" >&6; } 41818 curl_cv_func_strerror_r="no" 41819 fi 41820 # 41821 if test "$tst_compi_strerror_r" = "yes" && 41822 test "$tst_allow_strerror_r" = "unknown"; then 41823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5 41824 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;} 41825 fi 41826 # 41827 41828 41829 case $host in 41830 *msdosdjgpp) 41831 ac_cv_func_pipe=no 41832 skipcheck_pipe=yes 41833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5 41834 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;} 41835 ;; 41836 esac 41837 41838 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 41839 if test "x$ac_cv_func_accept4" = xyes 41840 then : 41841 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 41842 41843 fi 41844 ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" 41845 if test "x$ac_cv_func_eventfd" = xyes 41846 then : 41847 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h 41848 41849 fi 41850 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 41851 if test "x$ac_cv_func_fnmatch" = xyes 41852 then : 41853 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h 41854 41855 fi 41856 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 41857 if test "x$ac_cv_func_geteuid" = xyes 41858 then : 41859 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 41860 41861 fi 41862 ac_fn_c_check_func "$LINENO" "getpass_r" "ac_cv_func_getpass_r" 41863 if test "x$ac_cv_func_getpass_r" = xyes 41864 then : 41865 printf "%s\n" "#define HAVE_GETPASS_R 1" >>confdefs.h 41866 41867 fi 41868 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid" 41869 if test "x$ac_cv_func_getppid" = xyes 41870 then : 41871 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h 41872 41873 fi 41874 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 41875 if test "x$ac_cv_func_getpwuid" = xyes 41876 then : 41877 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 41878 41879 fi 41880 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 41881 if test "x$ac_cv_func_getpwuid_r" = xyes 41882 then : 41883 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h 41884 41885 fi 41886 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 41887 if test "x$ac_cv_func_getrlimit" = xyes 41888 then : 41889 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 41890 41891 fi 41892 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 41893 if test "x$ac_cv_func_gettimeofday" = xyes 41894 then : 41895 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 41896 41897 fi 41898 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 41899 if test "x$ac_cv_func_if_nametoindex" = xyes 41900 then : 41901 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 41902 41903 fi 41904 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" 41905 if test "x$ac_cv_func_mach_absolute_time" = xyes 41906 then : 41907 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h 41908 41909 fi 41910 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" 41911 if test "x$ac_cv_func_pipe" = xyes 41912 then : 41913 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 41914 41915 fi 41916 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 41917 if test "x$ac_cv_func_pipe2" = xyes 41918 then : 41919 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 41920 41921 fi 41922 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 41923 if test "x$ac_cv_func_poll" = xyes 41924 then : 41925 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 41926 41927 fi 41928 ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg" 41929 if test "x$ac_cv_func_sendmmsg" = xyes 41930 then : 41931 printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h 41932 41933 fi 41934 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 41935 if test "x$ac_cv_func_sendmsg" = xyes 41936 then : 41937 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 41938 41939 fi 41940 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 41941 if test "x$ac_cv_func_setlocale" = xyes 41942 then : 41943 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 41944 41945 fi 41946 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 41947 if test "x$ac_cv_func_setrlimit" = xyes 41948 then : 41949 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 41950 41951 fi 41952 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 41953 if test "x$ac_cv_func_snprintf" = xyes 41954 then : 41955 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 41956 41957 fi 41958 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 41959 if test "x$ac_cv_func_utime" = xyes 41960 then : 41961 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 41962 41963 fi 41964 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 41965 if test "x$ac_cv_func_utimes" = xyes 41966 then : 41967 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 41968 41969 fi 41970 41971 41972 if test "$curl_cv_native_windows" != 'yes'; then 41973 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 41974 if test "x$ac_cv_func_realpath" = xyes 41975 then : 41976 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 41977 41978 fi 41979 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 41980 if test "x$ac_cv_func_sched_yield" = xyes 41981 then : 41982 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h 41983 41984 fi 41985 41986 41987 curl_includes_arpa_inet="\ 41988 /* includes start */ 41989 #ifdef HAVE_SYS_TYPES_H 41990 # include <sys/types.h> 41991 #endif 41992 #ifdef HAVE_NETINET_IN_H 41993 # include <netinet/in.h> 41994 #endif 41995 #ifdef HAVE_ARPA_INET_H 41996 # include <arpa/inet.h> 41997 #endif 41998 #ifdef _WIN32 41999 #include <winsock2.h> 42000 #include <ws2tcpip.h> 42001 #else 42002 #include <sys/socket.h> 42003 #endif 42004 /* includes end */" 42005 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet 42006 " 42007 if test "x$ac_cv_header_sys_types_h" = xyes 42008 then : 42009 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 42010 42011 fi 42012 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet 42013 " 42014 if test "x$ac_cv_header_netinet_in_h" = xyes 42015 then : 42016 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 42017 42018 fi 42019 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet 42020 " 42021 if test "x$ac_cv_header_arpa_inet_h" = xyes 42022 then : 42023 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 42024 42025 fi 42026 42027 42028 42029 # 42030 tst_links_inet_ntop="unknown" 42031 tst_proto_inet_ntop="unknown" 42032 tst_compi_inet_ntop="unknown" 42033 tst_works_inet_ntop="unknown" 42034 tst_allow_inet_ntop="unknown" 42035 # 42036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 42037 printf %s "checking if inet_ntop can be linked... " >&6; } 42038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42039 /* end confdefs.h. */ 42040 42041 42042 #define inet_ntop innocuous_inet_ntop 42043 #ifdef __STDC__ 42044 # include <limits.h> 42045 #else 42046 # include <assert.h> 42047 #endif 42048 #undef inet_ntop 42049 #ifdef __cplusplus 42050 extern "C" 42051 #endif 42052 char inet_ntop (); 42053 #if defined __stub_inet_ntop || defined __stub___inet_ntop 42054 #error force compilation error 42055 #endif 42056 42057 int main(void) 42058 { 42059 return inet_ntop (); 42060 return 0; 42061 } 42062 42063 _ACEOF 42064 if ac_fn_c_try_link "$LINENO" 42065 then : 42066 42067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42068 printf "%s\n" "yes" >&6; } 42069 tst_links_inet_ntop="yes" 42070 42071 else $as_nop 42072 42073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42074 printf "%s\n" "no" >&6; } 42075 tst_links_inet_ntop="no" 42076 42077 fi 42078 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42079 conftest$ac_exeext conftest.$ac_ext 42080 # 42081 if test "$tst_links_inet_ntop" = "yes"; then 42082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 42083 printf %s "checking if inet_ntop is prototyped... " >&6; } 42084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42085 /* end confdefs.h. */ 42086 42087 $curl_includes_arpa_inet 42088 42089 _ACEOF 42090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42091 $EGREP "inet_ntop" >/dev/null 2>&1 42092 then : 42093 42094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42095 printf "%s\n" "yes" >&6; } 42096 tst_proto_inet_ntop="yes" 42097 42098 else $as_nop 42099 42100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42101 printf "%s\n" "no" >&6; } 42102 tst_proto_inet_ntop="no" 42103 42104 fi 42105 rm -rf conftest* 42106 42107 fi 42108 # 42109 if test "$tst_proto_inet_ntop" = "yes"; then 42110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 42111 printf %s "checking if inet_ntop is compilable... " >&6; } 42112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42113 /* end confdefs.h. */ 42114 42115 42116 $curl_includes_arpa_inet 42117 42118 int main(void) 42119 { 42120 42121 char ipv4res[sizeof("255.255.255.255")]; 42122 unsigned char ipv4a[5] = ""; 42123 if(0 != inet_ntop(0, ipv4a, ipv4res, 0)) 42124 return 1; 42125 42126 return 0; 42127 } 42128 42129 _ACEOF 42130 if ac_fn_c_try_compile "$LINENO" 42131 then : 42132 42133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42134 printf "%s\n" "yes" >&6; } 42135 tst_compi_inet_ntop="yes" 42136 42137 else $as_nop 42138 42139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42140 printf "%s\n" "no" >&6; } 42141 tst_compi_inet_ntop="no" 42142 42143 fi 42144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42145 fi 42146 # 42147 if test "x$cross_compiling" != "xyes" && 42148 test "$tst_compi_inet_ntop" = "yes"; then 42149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 42150 printf %s "checking if inet_ntop seems to work... " >&6; } 42151 42152 if test "$curl_cv_apple" = 'yes'; then 42153 if test "$cross_compiling" = yes 42154 then : 42155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 42157 as_fn_error $? "cannot run test program while cross compiling 42158 See \`config.log' for more details" "$LINENO" 5; } 42159 else $as_nop 42160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42161 /* end confdefs.h. */ 42162 42163 42164 $curl_includes_stdlib 42165 $curl_includes_arpa_inet 42166 $curl_includes_string 42167 42168 int main(void) 42169 { 42170 42171 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 42172 char ipv4res[sizeof("255.255.255.255")]; 42173 unsigned char ipv6a[26]; 42174 unsigned char ipv4a[5]; 42175 const char *ipv6ptr = 0; 42176 const char *ipv4ptr = 0; 42177 /* - */ 42178 ipv4res[0] = '\0'; 42179 ipv4a[0] = 0xc0; 42180 ipv4a[1] = 0xa8; 42181 ipv4a[2] = 0x64; 42182 ipv4a[3] = 0x01; 42183 ipv4a[4] = 0x01; 42184 /* - */ 42185 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 42186 if(!ipv4ptr) 42187 return 1; /* fail */ 42188 if(ipv4ptr != ipv4res) 42189 return 1; /* fail */ 42190 if(!ipv4ptr[0]) 42191 return 1; /* fail */ 42192 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 42193 return 1; /* fail */ 42194 /* - */ 42195 ipv6res[0] = '\0'; 42196 memset(ipv6a, 0, sizeof(ipv6a)); 42197 ipv6a[0] = 0xfe; 42198 ipv6a[1] = 0x80; 42199 ipv6a[8] = 0x02; 42200 ipv6a[9] = 0x14; 42201 ipv6a[10] = 0x4f; 42202 ipv6a[11] = 0xff; 42203 ipv6a[12] = 0xfe; 42204 ipv6a[13] = 0x0b; 42205 ipv6a[14] = 0x76; 42206 ipv6a[15] = 0xc8; 42207 ipv6a[25] = 0x01; 42208 /* - */ 42209 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 42210 if(!ipv6ptr) 42211 return 1; /* fail */ 42212 if(ipv6ptr != ipv6res) 42213 return 1; /* fail */ 42214 if(!ipv6ptr[0]) 42215 return 1; /* fail */ 42216 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 42217 return 1; /* fail */ 42218 /* - */ 42219 return 0; 42220 42221 return 0; 42222 } 42223 42224 _ACEOF 42225 if ac_fn_c_try_run "$LINENO" 42226 then : 42227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42228 printf "%s\n" "yes" >&6; } 42229 tst_works_inet_ntop="yes" 42230 42231 else $as_nop 42232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42233 printf "%s\n" "no" >&6; } 42234 tst_works_inet_ntop="no" 42235 42236 fi 42237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42238 conftest.$ac_objext conftest.beam conftest.$ac_ext 42239 fi 42240 42241 else 42242 oldcc=$CC 42243 old=$LD_LIBRARY_PATH 42244 CC="sh ./run-compiler" 42245 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 42246 export LD_LIBRARY_PATH 42247 if test "$cross_compiling" = yes 42248 then : 42249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42250 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 42251 as_fn_error $? "cannot run test program while cross compiling 42252 See \`config.log' for more details" "$LINENO" 5; } 42253 else $as_nop 42254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42255 /* end confdefs.h. */ 42256 42257 42258 $curl_includes_stdlib 42259 $curl_includes_arpa_inet 42260 $curl_includes_string 42261 42262 int main(void) 42263 { 42264 42265 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 42266 char ipv4res[sizeof("255.255.255.255")]; 42267 unsigned char ipv6a[26]; 42268 unsigned char ipv4a[5]; 42269 const char *ipv6ptr = 0; 42270 const char *ipv4ptr = 0; 42271 /* - */ 42272 ipv4res[0] = '\0'; 42273 ipv4a[0] = 0xc0; 42274 ipv4a[1] = 0xa8; 42275 ipv4a[2] = 0x64; 42276 ipv4a[3] = 0x01; 42277 ipv4a[4] = 0x01; 42278 /* - */ 42279 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 42280 if(!ipv4ptr) 42281 return 1; /* fail */ 42282 if(ipv4ptr != ipv4res) 42283 return 1; /* fail */ 42284 if(!ipv4ptr[0]) 42285 return 1; /* fail */ 42286 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 42287 return 1; /* fail */ 42288 /* - */ 42289 ipv6res[0] = '\0'; 42290 memset(ipv6a, 0, sizeof(ipv6a)); 42291 ipv6a[0] = 0xfe; 42292 ipv6a[1] = 0x80; 42293 ipv6a[8] = 0x02; 42294 ipv6a[9] = 0x14; 42295 ipv6a[10] = 0x4f; 42296 ipv6a[11] = 0xff; 42297 ipv6a[12] = 0xfe; 42298 ipv6a[13] = 0x0b; 42299 ipv6a[14] = 0x76; 42300 ipv6a[15] = 0xc8; 42301 ipv6a[25] = 0x01; 42302 /* - */ 42303 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 42304 if(!ipv6ptr) 42305 return 1; /* fail */ 42306 if(ipv6ptr != ipv6res) 42307 return 1; /* fail */ 42308 if(!ipv6ptr[0]) 42309 return 1; /* fail */ 42310 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 42311 return 1; /* fail */ 42312 /* - */ 42313 return 0; 42314 42315 return 0; 42316 } 42317 42318 _ACEOF 42319 if ac_fn_c_try_run "$LINENO" 42320 then : 42321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42322 printf "%s\n" "yes" >&6; } 42323 tst_works_inet_ntop="yes" 42324 42325 else $as_nop 42326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42327 printf "%s\n" "no" >&6; } 42328 tst_works_inet_ntop="no" 42329 42330 fi 42331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42332 conftest.$ac_objext conftest.beam conftest.$ac_ext 42333 fi 42334 42335 LD_LIBRARY_PATH=$old # restore 42336 CC=$oldcc 42337 fi 42338 42339 fi 42340 # 42341 if test "$tst_compi_inet_ntop" = "yes" && 42342 test "$tst_works_inet_ntop" != "no"; then 42343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 42344 printf %s "checking if inet_ntop usage allowed... " >&6; } 42345 if test "x$curl_disallow_inet_ntop" != "xyes"; then 42346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42347 printf "%s\n" "yes" >&6; } 42348 tst_allow_inet_ntop="yes" 42349 else 42350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42351 printf "%s\n" "no" >&6; } 42352 tst_allow_inet_ntop="no" 42353 fi 42354 fi 42355 # 42356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 42357 printf %s "checking if inet_ntop might be used... " >&6; } 42358 if test "$tst_links_inet_ntop" = "yes" && 42359 test "$tst_proto_inet_ntop" = "yes" && 42360 test "$tst_compi_inet_ntop" = "yes" && 42361 test "$tst_allow_inet_ntop" = "yes" && 42362 test "$tst_works_inet_ntop" != "no"; then 42363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42364 printf "%s\n" "yes" >&6; } 42365 42366 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 42367 42368 curl_cv_func_inet_ntop="yes" 42369 else 42370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42371 printf "%s\n" "no" >&6; } 42372 curl_cv_func_inet_ntop="no" 42373 fi 42374 42375 42376 # 42377 tst_links_inet_pton="unknown" 42378 tst_proto_inet_pton="unknown" 42379 tst_compi_inet_pton="unknown" 42380 tst_works_inet_pton="unknown" 42381 tst_allow_inet_pton="unknown" 42382 # 42383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 42384 printf %s "checking if inet_pton can be linked... " >&6; } 42385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42386 /* end confdefs.h. */ 42387 42388 42389 #define inet_pton innocuous_inet_pton 42390 #ifdef __STDC__ 42391 # include <limits.h> 42392 #else 42393 # include <assert.h> 42394 #endif 42395 #undef inet_pton 42396 #ifdef __cplusplus 42397 extern "C" 42398 #endif 42399 char inet_pton (); 42400 #if defined __stub_inet_pton || defined __stub___inet_pton 42401 #error force compilation error 42402 #endif 42403 42404 int main(void) 42405 { 42406 return inet_pton (); 42407 return 0; 42408 } 42409 42410 _ACEOF 42411 if ac_fn_c_try_link "$LINENO" 42412 then : 42413 42414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42415 printf "%s\n" "yes" >&6; } 42416 tst_links_inet_pton="yes" 42417 42418 else $as_nop 42419 42420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42421 printf "%s\n" "no" >&6; } 42422 tst_links_inet_pton="no" 42423 42424 fi 42425 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42426 conftest$ac_exeext conftest.$ac_ext 42427 # 42428 if test "$tst_links_inet_pton" = "yes"; then 42429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 42430 printf %s "checking if inet_pton is prototyped... " >&6; } 42431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42432 /* end confdefs.h. */ 42433 42434 $curl_includes_arpa_inet 42435 42436 _ACEOF 42437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42438 $EGREP "inet_pton" >/dev/null 2>&1 42439 then : 42440 42441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42442 printf "%s\n" "yes" >&6; } 42443 tst_proto_inet_pton="yes" 42444 42445 else $as_nop 42446 42447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42448 printf "%s\n" "no" >&6; } 42449 tst_proto_inet_pton="no" 42450 42451 fi 42452 rm -rf conftest* 42453 42454 fi 42455 # 42456 if test "$tst_proto_inet_pton" = "yes"; then 42457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 42458 printf %s "checking if inet_pton is compilable... " >&6; } 42459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42460 /* end confdefs.h. */ 42461 42462 42463 $curl_includes_arpa_inet 42464 42465 int main(void) 42466 { 42467 42468 unsigned char ipv4a[4+1] = ""; 42469 const char *ipv4src = "192.168.100.1"; 42470 if(0 != inet_pton(0, ipv4src, ipv4a)) 42471 return 1; 42472 42473 return 0; 42474 } 42475 42476 _ACEOF 42477 if ac_fn_c_try_compile "$LINENO" 42478 then : 42479 42480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42481 printf "%s\n" "yes" >&6; } 42482 tst_compi_inet_pton="yes" 42483 42484 else $as_nop 42485 42486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42487 printf "%s\n" "no" >&6; } 42488 tst_compi_inet_pton="no" 42489 42490 fi 42491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42492 fi 42493 # 42494 if test "x$cross_compiling" != "xyes" && 42495 test "$tst_compi_inet_pton" = "yes"; then 42496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 42497 printf %s "checking if inet_pton seems to work... " >&6; } 42498 42499 if test "$curl_cv_apple" = 'yes'; then 42500 if test "$cross_compiling" = yes 42501 then : 42502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42503 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 42504 as_fn_error $? "cannot run test program while cross compiling 42505 See \`config.log' for more details" "$LINENO" 5; } 42506 else $as_nop 42507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42508 /* end confdefs.h. */ 42509 42510 42511 $curl_includes_stdlib 42512 $curl_includes_arpa_inet 42513 $curl_includes_string 42514 42515 int main(void) 42516 { 42517 42518 unsigned char ipv6a[16+1]; 42519 unsigned char ipv4a[4+1]; 42520 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 42521 const char *ipv4src = "192.168.100.1"; 42522 /* - */ 42523 memset(ipv4a, 1, sizeof(ipv4a)); 42524 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 42525 return 1; /* fail */ 42526 /* - */ 42527 if( (ipv4a[0] != 0xc0) || 42528 (ipv4a[1] != 0xa8) || 42529 (ipv4a[2] != 0x64) || 42530 (ipv4a[3] != 0x01) || 42531 (ipv4a[4] != 0x01) ) 42532 return 1; /* fail */ 42533 /* - */ 42534 memset(ipv6a, 1, sizeof(ipv6a)); 42535 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 42536 return 1; /* fail */ 42537 /* - */ 42538 if( (ipv6a[0] != 0xfe) || 42539 (ipv6a[1] != 0x80) || 42540 (ipv6a[8] != 0x02) || 42541 (ipv6a[9] != 0x14) || 42542 (ipv6a[10] != 0x4f) || 42543 (ipv6a[11] != 0xff) || 42544 (ipv6a[12] != 0xfe) || 42545 (ipv6a[13] != 0x0b) || 42546 (ipv6a[14] != 0x76) || 42547 (ipv6a[15] != 0xc8) || 42548 (ipv6a[16] != 0x01) ) 42549 return 1; /* fail */ 42550 /* - */ 42551 if( (ipv6a[2] != 0x0) || 42552 (ipv6a[3] != 0x0) || 42553 (ipv6a[4] != 0x0) || 42554 (ipv6a[5] != 0x0) || 42555 (ipv6a[6] != 0x0) || 42556 (ipv6a[7] != 0x0) ) 42557 return 1; /* fail */ 42558 /* - */ 42559 return 0; 42560 42561 return 0; 42562 } 42563 42564 _ACEOF 42565 if ac_fn_c_try_run "$LINENO" 42566 then : 42567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42568 printf "%s\n" "yes" >&6; } 42569 tst_works_inet_pton="yes" 42570 42571 else $as_nop 42572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42573 printf "%s\n" "no" >&6; } 42574 tst_works_inet_pton="no" 42575 42576 fi 42577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42578 conftest.$ac_objext conftest.beam conftest.$ac_ext 42579 fi 42580 42581 else 42582 oldcc=$CC 42583 old=$LD_LIBRARY_PATH 42584 CC="sh ./run-compiler" 42585 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 42586 export LD_LIBRARY_PATH 42587 if test "$cross_compiling" = yes 42588 then : 42589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42590 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 42591 as_fn_error $? "cannot run test program while cross compiling 42592 See \`config.log' for more details" "$LINENO" 5; } 42593 else $as_nop 42594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42595 /* end confdefs.h. */ 42596 42597 42598 $curl_includes_stdlib 42599 $curl_includes_arpa_inet 42600 $curl_includes_string 42601 42602 int main(void) 42603 { 42604 42605 unsigned char ipv6a[16+1]; 42606 unsigned char ipv4a[4+1]; 42607 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 42608 const char *ipv4src = "192.168.100.1"; 42609 /* - */ 42610 memset(ipv4a, 1, sizeof(ipv4a)); 42611 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 42612 return 1; /* fail */ 42613 /* - */ 42614 if( (ipv4a[0] != 0xc0) || 42615 (ipv4a[1] != 0xa8) || 42616 (ipv4a[2] != 0x64) || 42617 (ipv4a[3] != 0x01) || 42618 (ipv4a[4] != 0x01) ) 42619 return 1; /* fail */ 42620 /* - */ 42621 memset(ipv6a, 1, sizeof(ipv6a)); 42622 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 42623 return 1; /* fail */ 42624 /* - */ 42625 if( (ipv6a[0] != 0xfe) || 42626 (ipv6a[1] != 0x80) || 42627 (ipv6a[8] != 0x02) || 42628 (ipv6a[9] != 0x14) || 42629 (ipv6a[10] != 0x4f) || 42630 (ipv6a[11] != 0xff) || 42631 (ipv6a[12] != 0xfe) || 42632 (ipv6a[13] != 0x0b) || 42633 (ipv6a[14] != 0x76) || 42634 (ipv6a[15] != 0xc8) || 42635 (ipv6a[16] != 0x01) ) 42636 return 1; /* fail */ 42637 /* - */ 42638 if( (ipv6a[2] != 0x0) || 42639 (ipv6a[3] != 0x0) || 42640 (ipv6a[4] != 0x0) || 42641 (ipv6a[5] != 0x0) || 42642 (ipv6a[6] != 0x0) || 42643 (ipv6a[7] != 0x0) ) 42644 return 1; /* fail */ 42645 /* - */ 42646 return 0; 42647 42648 return 0; 42649 } 42650 42651 _ACEOF 42652 if ac_fn_c_try_run "$LINENO" 42653 then : 42654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42655 printf "%s\n" "yes" >&6; } 42656 tst_works_inet_pton="yes" 42657 42658 else $as_nop 42659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42660 printf "%s\n" "no" >&6; } 42661 tst_works_inet_pton="no" 42662 42663 fi 42664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42665 conftest.$ac_objext conftest.beam conftest.$ac_ext 42666 fi 42667 42668 LD_LIBRARY_PATH=$old # restore 42669 CC=$oldcc 42670 fi 42671 42672 fi 42673 # 42674 if test "$tst_compi_inet_pton" = "yes" && 42675 test "$tst_works_inet_pton" != "no"; then 42676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 42677 printf %s "checking if inet_pton usage allowed... " >&6; } 42678 if test "x$curl_disallow_inet_pton" != "xyes"; then 42679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42680 printf "%s\n" "yes" >&6; } 42681 tst_allow_inet_pton="yes" 42682 else 42683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42684 printf "%s\n" "no" >&6; } 42685 tst_allow_inet_pton="no" 42686 fi 42687 fi 42688 # 42689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 42690 printf %s "checking if inet_pton might be used... " >&6; } 42691 if test "$tst_links_inet_pton" = "yes" && 42692 test "$tst_proto_inet_pton" = "yes" && 42693 test "$tst_compi_inet_pton" = "yes" && 42694 test "$tst_allow_inet_pton" = "yes" && 42695 test "$tst_works_inet_pton" != "no"; then 42696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42697 printf "%s\n" "yes" >&6; } 42698 42699 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 42700 42701 curl_cv_func_inet_pton="yes" 42702 else 42703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42704 printf "%s\n" "no" >&6; } 42705 curl_cv_func_inet_pton="no" 42706 fi 42707 42708 42709 # 42710 tst_links_strcasecmp="unknown" 42711 tst_proto_strcasecmp="unknown" 42712 tst_compi_strcasecmp="unknown" 42713 tst_allow_strcasecmp="unknown" 42714 # 42715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 42716 printf %s "checking if strcasecmp can be linked... " >&6; } 42717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42718 /* end confdefs.h. */ 42719 42720 42721 #define strcasecmp innocuous_strcasecmp 42722 #ifdef __STDC__ 42723 # include <limits.h> 42724 #else 42725 # include <assert.h> 42726 #endif 42727 #undef strcasecmp 42728 #ifdef __cplusplus 42729 extern "C" 42730 #endif 42731 char strcasecmp (); 42732 #if defined __stub_strcasecmp || defined __stub___strcasecmp 42733 #error force compilation error 42734 #endif 42735 42736 int main(void) 42737 { 42738 return strcasecmp (); 42739 return 0; 42740 } 42741 42742 _ACEOF 42743 if ac_fn_c_try_link "$LINENO" 42744 then : 42745 42746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42747 printf "%s\n" "yes" >&6; } 42748 tst_links_strcasecmp="yes" 42749 42750 else $as_nop 42751 42752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42753 printf "%s\n" "no" >&6; } 42754 tst_links_strcasecmp="no" 42755 42756 fi 42757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42758 conftest$ac_exeext conftest.$ac_ext 42759 # 42760 if test "$tst_links_strcasecmp" = "yes"; then 42761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 42762 printf %s "checking if strcasecmp is prototyped... " >&6; } 42763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42764 /* end confdefs.h. */ 42765 42766 $curl_includes_string 42767 42768 _ACEOF 42769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42770 $EGREP "strcasecmp" >/dev/null 2>&1 42771 then : 42772 42773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42774 printf "%s\n" "yes" >&6; } 42775 tst_proto_strcasecmp="yes" 42776 42777 else $as_nop 42778 42779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42780 printf "%s\n" "no" >&6; } 42781 tst_proto_strcasecmp="no" 42782 42783 fi 42784 rm -rf conftest* 42785 42786 fi 42787 # 42788 if test "$tst_proto_strcasecmp" = "yes"; then 42789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 42790 printf %s "checking if strcasecmp is compilable... " >&6; } 42791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42792 /* end confdefs.h. */ 42793 42794 42795 $curl_includes_string 42796 42797 int main(void) 42798 { 42799 42800 if(0 != strcasecmp("", "")) 42801 return 1; 42802 42803 return 0; 42804 } 42805 42806 _ACEOF 42807 if ac_fn_c_try_compile "$LINENO" 42808 then : 42809 42810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42811 printf "%s\n" "yes" >&6; } 42812 tst_compi_strcasecmp="yes" 42813 42814 else $as_nop 42815 42816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42817 printf "%s\n" "no" >&6; } 42818 tst_compi_strcasecmp="no" 42819 42820 fi 42821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42822 fi 42823 # 42824 if test "$tst_compi_strcasecmp" = "yes"; then 42825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 42826 printf %s "checking if strcasecmp usage allowed... " >&6; } 42827 if test "x$curl_disallow_strcasecmp" != "xyes"; then 42828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42829 printf "%s\n" "yes" >&6; } 42830 tst_allow_strcasecmp="yes" 42831 else 42832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42833 printf "%s\n" "no" >&6; } 42834 tst_allow_strcasecmp="no" 42835 fi 42836 fi 42837 # 42838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 42839 printf %s "checking if strcasecmp might be used... " >&6; } 42840 if test "$tst_links_strcasecmp" = "yes" && 42841 test "$tst_proto_strcasecmp" = "yes" && 42842 test "$tst_compi_strcasecmp" = "yes" && 42843 test "$tst_allow_strcasecmp" = "yes"; then 42844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42845 printf "%s\n" "yes" >&6; } 42846 42847 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 42848 42849 curl_cv_func_strcasecmp="yes" 42850 else 42851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42852 printf "%s\n" "no" >&6; } 42853 curl_cv_func_strcasecmp="no" 42854 fi 42855 42856 42857 # 42858 tst_links_strcmpi="unknown" 42859 tst_proto_strcmpi="unknown" 42860 tst_compi_strcmpi="unknown" 42861 tst_allow_strcmpi="unknown" 42862 # 42863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 42864 printf %s "checking if strcmpi can be linked... " >&6; } 42865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42866 /* end confdefs.h. */ 42867 42868 42869 #define strcmpi innocuous_strcmpi 42870 #ifdef __STDC__ 42871 # include <limits.h> 42872 #else 42873 # include <assert.h> 42874 #endif 42875 #undef strcmpi 42876 #ifdef __cplusplus 42877 extern "C" 42878 #endif 42879 char strcmpi (); 42880 #if defined __stub_strcmpi || defined __stub___strcmpi 42881 #error force compilation error 42882 #endif 42883 42884 int main(void) 42885 { 42886 return strcmpi (); 42887 return 0; 42888 } 42889 42890 _ACEOF 42891 if ac_fn_c_try_link "$LINENO" 42892 then : 42893 42894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42895 printf "%s\n" "yes" >&6; } 42896 tst_links_strcmpi="yes" 42897 42898 else $as_nop 42899 42900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42901 printf "%s\n" "no" >&6; } 42902 tst_links_strcmpi="no" 42903 42904 fi 42905 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42906 conftest$ac_exeext conftest.$ac_ext 42907 # 42908 if test "$tst_links_strcmpi" = "yes"; then 42909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 42910 printf %s "checking if strcmpi is prototyped... " >&6; } 42911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42912 /* end confdefs.h. */ 42913 42914 $curl_includes_string 42915 42916 _ACEOF 42917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42918 $EGREP "strcmpi" >/dev/null 2>&1 42919 then : 42920 42921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42922 printf "%s\n" "yes" >&6; } 42923 tst_proto_strcmpi="yes" 42924 42925 else $as_nop 42926 42927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42928 printf "%s\n" "no" >&6; } 42929 tst_proto_strcmpi="no" 42930 42931 fi 42932 rm -rf conftest* 42933 42934 fi 42935 # 42936 if test "$tst_proto_strcmpi" = "yes"; then 42937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 42938 printf %s "checking if strcmpi is compilable... " >&6; } 42939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42940 /* end confdefs.h. */ 42941 42942 42943 $curl_includes_string 42944 42945 int main(void) 42946 { 42947 42948 if(0 != strcmpi(0, 0)) 42949 return 1; 42950 42951 return 0; 42952 } 42953 42954 _ACEOF 42955 if ac_fn_c_try_compile "$LINENO" 42956 then : 42957 42958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42959 printf "%s\n" "yes" >&6; } 42960 tst_compi_strcmpi="yes" 42961 42962 else $as_nop 42963 42964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42965 printf "%s\n" "no" >&6; } 42966 tst_compi_strcmpi="no" 42967 42968 fi 42969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42970 fi 42971 # 42972 if test "$tst_compi_strcmpi" = "yes"; then 42973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 42974 printf %s "checking if strcmpi usage allowed... " >&6; } 42975 if test "x$curl_disallow_strcmpi" != "xyes"; then 42976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42977 printf "%s\n" "yes" >&6; } 42978 tst_allow_strcmpi="yes" 42979 else 42980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42981 printf "%s\n" "no" >&6; } 42982 tst_allow_strcmpi="no" 42983 fi 42984 fi 42985 # 42986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 42987 printf %s "checking if strcmpi might be used... " >&6; } 42988 if test "$tst_links_strcmpi" = "yes" && 42989 test "$tst_proto_strcmpi" = "yes" && 42990 test "$tst_compi_strcmpi" = "yes" && 42991 test "$tst_allow_strcmpi" = "yes"; then 42992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42993 printf "%s\n" "yes" >&6; } 42994 42995 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h 42996 42997 curl_cv_func_strcmpi="yes" 42998 else 42999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43000 printf "%s\n" "no" >&6; } 43001 curl_cv_func_strcmpi="no" 43002 fi 43003 43004 43005 # 43006 tst_links_stricmp="unknown" 43007 tst_proto_stricmp="unknown" 43008 tst_compi_stricmp="unknown" 43009 tst_allow_stricmp="unknown" 43010 # 43011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 43012 printf %s "checking if stricmp can be linked... " >&6; } 43013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43014 /* end confdefs.h. */ 43015 43016 43017 #define stricmp innocuous_stricmp 43018 #ifdef __STDC__ 43019 # include <limits.h> 43020 #else 43021 # include <assert.h> 43022 #endif 43023 #undef stricmp 43024 #ifdef __cplusplus 43025 extern "C" 43026 #endif 43027 char stricmp (); 43028 #if defined __stub_stricmp || defined __stub___stricmp 43029 #error force compilation error 43030 #endif 43031 43032 int main(void) 43033 { 43034 return stricmp (); 43035 return 0; 43036 } 43037 43038 _ACEOF 43039 if ac_fn_c_try_link "$LINENO" 43040 then : 43041 43042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43043 printf "%s\n" "yes" >&6; } 43044 tst_links_stricmp="yes" 43045 43046 else $as_nop 43047 43048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43049 printf "%s\n" "no" >&6; } 43050 tst_links_stricmp="no" 43051 43052 fi 43053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43054 conftest$ac_exeext conftest.$ac_ext 43055 # 43056 if test "$tst_links_stricmp" = "yes"; then 43057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 43058 printf %s "checking if stricmp is prototyped... " >&6; } 43059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43060 /* end confdefs.h. */ 43061 43062 $curl_includes_string 43063 43064 _ACEOF 43065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43066 $EGREP "stricmp" >/dev/null 2>&1 43067 then : 43068 43069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43070 printf "%s\n" "yes" >&6; } 43071 tst_proto_stricmp="yes" 43072 43073 else $as_nop 43074 43075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43076 printf "%s\n" "no" >&6; } 43077 tst_proto_stricmp="no" 43078 43079 fi 43080 rm -rf conftest* 43081 43082 fi 43083 # 43084 if test "$tst_proto_stricmp" = "yes"; then 43085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 43086 printf %s "checking if stricmp is compilable... " >&6; } 43087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43088 /* end confdefs.h. */ 43089 43090 43091 $curl_includes_string 43092 43093 int main(void) 43094 { 43095 43096 if(0 != stricmp(0, 0)) 43097 return 1; 43098 43099 return 0; 43100 } 43101 43102 _ACEOF 43103 if ac_fn_c_try_compile "$LINENO" 43104 then : 43105 43106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43107 printf "%s\n" "yes" >&6; } 43108 tst_compi_stricmp="yes" 43109 43110 else $as_nop 43111 43112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43113 printf "%s\n" "no" >&6; } 43114 tst_compi_stricmp="no" 43115 43116 fi 43117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43118 fi 43119 # 43120 if test "$tst_compi_stricmp" = "yes"; then 43121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 43122 printf %s "checking if stricmp usage allowed... " >&6; } 43123 if test "x$curl_disallow_stricmp" != "xyes"; then 43124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43125 printf "%s\n" "yes" >&6; } 43126 tst_allow_stricmp="yes" 43127 else 43128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43129 printf "%s\n" "no" >&6; } 43130 tst_allow_stricmp="no" 43131 fi 43132 fi 43133 # 43134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 43135 printf %s "checking if stricmp might be used... " >&6; } 43136 if test "$tst_links_stricmp" = "yes" && 43137 test "$tst_proto_stricmp" = "yes" && 43138 test "$tst_compi_stricmp" = "yes" && 43139 test "$tst_allow_stricmp" = "yes"; then 43140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43141 printf "%s\n" "yes" >&6; } 43142 43143 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h 43144 43145 curl_cv_func_stricmp="yes" 43146 else 43147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43148 printf "%s\n" "no" >&6; } 43149 curl_cv_func_stricmp="no" 43150 fi 43151 43152 fi 43153 43154 if test "$curl_cv_wince" = 'no'; then 43155 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode" 43156 if test "x$ac_cv_func_setmode" = xyes 43157 then : 43158 printf "%s\n" "#define HAVE_SETMODE 1" >>confdefs.h 43159 43160 fi 43161 43162 if test "$curl_cv_native_windows" = 'yes' -o "$curl_cv_cygwin" = 'yes'; then 43163 ac_fn_c_check_func "$LINENO" "_setmode" "ac_cv_func__setmode" 43164 if test "x$ac_cv_func__setmode" = xyes 43165 then : 43166 printf "%s\n" "#define HAVE__SETMODE 1" >>confdefs.h 43167 43168 fi 43169 43170 fi 43171 fi 43172 43173 if test -z "$ssl_backends"; then 43174 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 43175 if test "x$ac_cv_func_arc4random" = xyes 43176 then : 43177 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 43178 43179 fi 43180 43181 fi 43182 43183 if test "$curl_cv_native_windows" != 'yes'; then 43184 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" 43185 if test "x$ac_cv_func_fseeko" = xyes 43186 then : 43187 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 43188 43189 fi 43190 43191 43192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 43193 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 43194 if test ${ac_cv_c_undeclared_builtin_options+y} 43195 then : 43196 printf %s "(cached) " >&6 43197 else $as_nop 43198 ac_save_CFLAGS=$CFLAGS 43199 ac_cv_c_undeclared_builtin_options='cannot detect' 43200 for ac_arg in '' -fno-builtin; do 43201 CFLAGS="$ac_save_CFLAGS $ac_arg" 43202 # This test program should *not* compile successfully. 43203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43204 /* end confdefs.h. */ 43205 43206 int main(void) 43207 { 43208 (void) strchr; 43209 return 0; 43210 } 43211 _ACEOF 43212 if ac_fn_c_try_compile "$LINENO" 43213 then : 43214 43215 else $as_nop 43216 # This test program should compile successfully. 43217 # No library function is consistently available on 43218 # freestanding implementations, so test against a dummy 43219 # declaration. Include always-available headers on the 43220 # off chance that they somehow elicit warnings. 43221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43222 /* end confdefs.h. */ 43223 #include <float.h> 43224 #include <limits.h> 43225 #include <stdarg.h> 43226 #include <stddef.h> 43227 extern void ac_decl (int, char *); 43228 43229 int main(void) 43230 { 43231 (void) ac_decl (0, (char *) 0); 43232 (void) ac_decl; 43233 43234 return 0; 43235 } 43236 _ACEOF 43237 if ac_fn_c_try_compile "$LINENO" 43238 then : 43239 if test x"$ac_arg" = x 43240 then : 43241 ac_cv_c_undeclared_builtin_options='none needed' 43242 else $as_nop 43243 ac_cv_c_undeclared_builtin_options=$ac_arg 43244 fi 43245 break 43246 fi 43247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43248 fi 43249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43250 done 43251 CFLAGS=$ac_save_CFLAGS 43252 43253 fi 43254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 43255 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 43256 case $ac_cv_c_undeclared_builtin_options in #( 43257 'cannot detect') : 43258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 43259 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 43260 as_fn_error $? "cannot make $CC report undeclared builtins 43261 See \`config.log' for more details" "$LINENO" 5; } ;; #( 43262 'none needed') : 43263 ac_c_undeclared_builtin_options='' ;; #( 43264 *) : 43265 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 43266 esac 43267 43268 ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "#include <stdio.h> 43269 " "$ac_c_undeclared_builtin_options" "CFLAGS" 43270 if test "x$ac_cv_have_decl_fseeko" = xyes 43271 then : 43272 43273 printf "%s\n" "#define HAVE_DECL_FSEEKO 1" >>confdefs.h 43274 43275 fi 43276 fi 43277 43278 43279 # 43280 tst_method="unknown" 43281 43282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 43283 printf %s "checking how to set a socket into non-blocking mode... " >&6; } 43284 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then 43285 tst_method="fcntl O_NONBLOCK" 43286 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then 43287 tst_method="ioctl FIONBIO" 43288 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then 43289 tst_method="ioctlsocket FIONBIO" 43290 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 43291 tst_method="IoctlSocket FIONBIO" 43292 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then 43293 tst_method="setsockopt SO_NONBLOCK" 43294 fi 43295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 43296 printf "%s\n" "$tst_method" >&6; } 43297 if test "$tst_method" = "unknown"; then 43298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 43299 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} 43300 fi 43301 43302 43303 # Extract the first word of "perl", so it can be a program name with args. 43304 set dummy perl; ac_word=$2 43305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43306 printf %s "checking for $ac_word... " >&6; } 43307 if test ${ac_cv_path_PERL+y} 43308 then : 43309 printf %s "(cached) " >&6 43310 else $as_nop 43311 case $PERL in 43312 [\\/]* | ?:[\\/]*) 43313 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 43314 ;; 43315 *) 43316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43317 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin" 43318 for as_dir in $as_dummy 43319 do 43320 IFS=$as_save_IFS 43321 case $as_dir in #((( 43322 '') as_dir=./ ;; 43323 */) ;; 43324 *) as_dir=$as_dir/ ;; 43325 esac 43326 for ac_exec_ext in '' $ac_executable_extensions; do 43327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 43328 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 43329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 43330 break 2 43331 fi 43332 done 43333 done 43334 IFS=$as_save_IFS 43335 43336 ;; 43337 esac 43338 fi 43339 PERL=$ac_cv_path_PERL 43340 if test -n "$PERL"; then 43341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 43342 printf "%s\n" "$PERL" >&6; } 43343 else 43344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43345 printf "%s\n" "no" >&6; } 43346 fi 43347 43348 43349 43350 43351 if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then 43352 if test -z "$PERL"; then 43353 as_fn_error $? "perl was not found, needed for docs, manual and CA embed" "$LINENO" 5 43354 fi 43355 fi 43356 43357 if test x"$BUILD_DOCS" = x1; then 43358 BUILD_DOCS_TRUE= 43359 BUILD_DOCS_FALSE='#' 43360 else 43361 BUILD_DOCS_TRUE='#' 43362 BUILD_DOCS_FALSE= 43363 fi 43364 43365 43366 43367 if test "$USE_MANUAL" = "1"; then 43368 curl_manual_msg="enabled" 43369 fi 43370 43371 if test x"$USE_MANUAL" = x1; then 43372 USE_MANUAL_TRUE= 43373 USE_MANUAL_FALSE='#' 43374 else 43375 USE_MANUAL_TRUE='#' 43376 USE_MANUAL_FALSE= 43377 fi 43378 43379 43380 43381 # 43382 if test "$want_ares" = "yes"; then 43383 clean_CPPFLAGS="$CPPFLAGS" 43384 clean_LDFLAGS="$LDFLAGS" 43385 clean_LDFLAGSPC="$LDFLAGSPC" 43386 clean_LIBS="$LIBS" 43387 configure_runpath=`pwd` 43388 if test -n "$want_ares_path"; then 43389 ARES_PCDIR="$want_ares_path/lib/pkgconfig" 43390 43391 if test -n "$PKG_CONFIG"; then 43392 PKGCONFIG="$PKG_CONFIG" 43393 else 43394 if test -n "$ac_tool_prefix"; then 43395 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 43396 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 43397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43398 printf %s "checking for $ac_word... " >&6; } 43399 if test ${ac_cv_path_PKGCONFIG+y} 43400 then : 43401 printf %s "(cached) " >&6 43402 else $as_nop 43403 case $PKGCONFIG in 43404 [\\/]* | ?:[\\/]*) 43405 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 43406 ;; 43407 *) 43408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43409 as_dummy="$PATH:/usr/bin:/usr/local/bin" 43410 for as_dir in $as_dummy 43411 do 43412 IFS=$as_save_IFS 43413 case $as_dir in #((( 43414 '') as_dir=./ ;; 43415 */) ;; 43416 *) as_dir=$as_dir/ ;; 43417 esac 43418 for ac_exec_ext in '' $ac_executable_extensions; do 43419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 43420 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 43421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 43422 break 2 43423 fi 43424 done 43425 done 43426 IFS=$as_save_IFS 43427 43428 ;; 43429 esac 43430 fi 43431 PKGCONFIG=$ac_cv_path_PKGCONFIG 43432 if test -n "$PKGCONFIG"; then 43433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 43434 printf "%s\n" "$PKGCONFIG" >&6; } 43435 else 43436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43437 printf "%s\n" "no" >&6; } 43438 fi 43439 43440 43441 fi 43442 if test -z "$ac_cv_path_PKGCONFIG"; then 43443 ac_pt_PKGCONFIG=$PKGCONFIG 43444 # Extract the first word of "pkg-config", so it can be a program name with args. 43445 set dummy pkg-config; ac_word=$2 43446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43447 printf %s "checking for $ac_word... " >&6; } 43448 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 43449 then : 43450 printf %s "(cached) " >&6 43451 else $as_nop 43452 case $ac_pt_PKGCONFIG in 43453 [\\/]* | ?:[\\/]*) 43454 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 43455 ;; 43456 *) 43457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43458 as_dummy="$PATH:/usr/bin:/usr/local/bin" 43459 for as_dir in $as_dummy 43460 do 43461 IFS=$as_save_IFS 43462 case $as_dir in #((( 43463 '') as_dir=./ ;; 43464 */) ;; 43465 *) as_dir=$as_dir/ ;; 43466 esac 43467 for ac_exec_ext in '' $ac_executable_extensions; do 43468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 43469 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 43470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 43471 break 2 43472 fi 43473 done 43474 done 43475 IFS=$as_save_IFS 43476 43477 ;; 43478 esac 43479 fi 43480 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 43481 if test -n "$ac_pt_PKGCONFIG"; then 43482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 43483 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 43484 else 43485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43486 printf "%s\n" "no" >&6; } 43487 fi 43488 43489 if test "x$ac_pt_PKGCONFIG" = x; then 43490 PKGCONFIG="no" 43491 else 43492 case $cross_compiling:$ac_tool_warned in 43493 yes:) 43494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43495 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43496 ac_tool_warned=yes ;; 43497 esac 43498 PKGCONFIG=$ac_pt_PKGCONFIG 43499 fi 43500 else 43501 PKGCONFIG="$ac_cv_path_PKGCONFIG" 43502 fi 43503 43504 fi 43505 43506 if test "x$PKGCONFIG" != "xno"; then 43507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5 43508 printf %s "checking for libcares options with pkg-config... " >&6; } 43509 itexists=` 43510 if test -n "$ARES_PCDIR"; then 43511 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 43512 export PKG_CONFIG_LIBDIR 43513 fi 43514 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1` 43515 43516 if test -z "$itexists"; then 43517 PKGCONFIG="no" 43518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43519 printf "%s\n" "no" >&6; } 43520 else 43521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 43522 printf "%s\n" "found" >&6; } 43523 fi 43524 fi 43525 43526 if test "$PKGCONFIG" != "no" ; then 43527 ares_LIBS=` 43528 if test -n "$ARES_PCDIR"; then 43529 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 43530 export PKG_CONFIG_LIBDIR 43531 fi 43532 43533 $PKGCONFIG --libs-only-l libcares` 43534 ares_LDFLAGS=` 43535 if test -n "$ARES_PCDIR"; then 43536 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 43537 export PKG_CONFIG_LIBDIR 43538 fi 43539 43540 $PKGCONFIG --libs-only-L libcares` 43541 ares_CPPFLAGS=` 43542 if test -n "$ARES_PCDIR"; then 43543 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 43544 export PKG_CONFIG_LIBDIR 43545 fi 43546 43547 $PKGCONFIG --cflags-only-I libcares` 43548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5 43549 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;} 43550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5 43551 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;} 43552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5 43553 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;} 43554 else 43555 ares_CPPFLAGS="-I$want_ares_path/include" 43556 ares_LDFLAGS="-L$want_ares_path/lib" 43557 ares_LIBS="-lcares" 43558 fi 43559 else 43560 43561 if test -n "$PKG_CONFIG"; then 43562 PKGCONFIG="$PKG_CONFIG" 43563 else 43564 if test -n "$ac_tool_prefix"; then 43565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 43566 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 43567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43568 printf %s "checking for $ac_word... " >&6; } 43569 if test ${ac_cv_path_PKGCONFIG+y} 43570 then : 43571 printf %s "(cached) " >&6 43572 else $as_nop 43573 case $PKGCONFIG in 43574 [\\/]* | ?:[\\/]*) 43575 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 43576 ;; 43577 *) 43578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43579 as_dummy="$PATH:/usr/bin:/usr/local/bin" 43580 for as_dir in $as_dummy 43581 do 43582 IFS=$as_save_IFS 43583 case $as_dir in #((( 43584 '') as_dir=./ ;; 43585 */) ;; 43586 *) as_dir=$as_dir/ ;; 43587 esac 43588 for ac_exec_ext in '' $ac_executable_extensions; do 43589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 43590 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 43591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 43592 break 2 43593 fi 43594 done 43595 done 43596 IFS=$as_save_IFS 43597 43598 ;; 43599 esac 43600 fi 43601 PKGCONFIG=$ac_cv_path_PKGCONFIG 43602 if test -n "$PKGCONFIG"; then 43603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 43604 printf "%s\n" "$PKGCONFIG" >&6; } 43605 else 43606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43607 printf "%s\n" "no" >&6; } 43608 fi 43609 43610 43611 fi 43612 if test -z "$ac_cv_path_PKGCONFIG"; then 43613 ac_pt_PKGCONFIG=$PKGCONFIG 43614 # Extract the first word of "pkg-config", so it can be a program name with args. 43615 set dummy pkg-config; ac_word=$2 43616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43617 printf %s "checking for $ac_word... " >&6; } 43618 if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 43619 then : 43620 printf %s "(cached) " >&6 43621 else $as_nop 43622 case $ac_pt_PKGCONFIG in 43623 [\\/]* | ?:[\\/]*) 43624 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 43625 ;; 43626 *) 43627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43628 as_dummy="$PATH:/usr/bin:/usr/local/bin" 43629 for as_dir in $as_dummy 43630 do 43631 IFS=$as_save_IFS 43632 case $as_dir in #((( 43633 '') as_dir=./ ;; 43634 */) ;; 43635 *) as_dir=$as_dir/ ;; 43636 esac 43637 for ac_exec_ext in '' $ac_executable_extensions; do 43638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 43639 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 43640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 43641 break 2 43642 fi 43643 done 43644 done 43645 IFS=$as_save_IFS 43646 43647 ;; 43648 esac 43649 fi 43650 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 43651 if test -n "$ac_pt_PKGCONFIG"; then 43652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 43653 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 43654 else 43655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43656 printf "%s\n" "no" >&6; } 43657 fi 43658 43659 if test "x$ac_pt_PKGCONFIG" = x; then 43660 PKGCONFIG="no" 43661 else 43662 case $cross_compiling:$ac_tool_warned in 43663 yes:) 43664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43666 ac_tool_warned=yes ;; 43667 esac 43668 PKGCONFIG=$ac_pt_PKGCONFIG 43669 fi 43670 else 43671 PKGCONFIG="$ac_cv_path_PKGCONFIG" 43672 fi 43673 43674 fi 43675 43676 if test "x$PKGCONFIG" != "xno"; then 43677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5 43678 printf %s "checking for libcares options with pkg-config... " >&6; } 43679 itexists=` 43680 if test -n ""; then 43681 PKG_CONFIG_LIBDIR="" 43682 export PKG_CONFIG_LIBDIR 43683 fi 43684 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1` 43685 43686 if test -z "$itexists"; then 43687 PKGCONFIG="no" 43688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43689 printf "%s\n" "no" >&6; } 43690 else 43691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 43692 printf "%s\n" "found" >&6; } 43693 fi 43694 fi 43695 43696 if test "$PKGCONFIG" != "no" ; then 43697 ares_LIBS=`$PKGCONFIG --libs-only-l libcares` 43698 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares` 43699 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares` 43700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5 43701 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;} 43702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5 43703 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;} 43704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5 43705 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;} 43706 else 43707 ares_CPPFLAGS="" 43708 ares_LDFLAGS="" 43709 ares_LIBS="-lcares" 43710 fi 43711 fi 43712 # 43713 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS" 43714 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS" 43715 LDFLAGSPC="$clean_LDFLAGSPC $ares_LDFLAGS" 43716 LIBS="$ares_LIBS $clean_LIBS" 43717 # 43718 43719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5 43720 printf %s "checking that c-ares is good and recent enough... " >&6; } 43721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43722 /* end confdefs.h. */ 43723 43724 43725 #include <ares.h> 43726 /* set of dummy functions in case c-ares was built with debug */ 43727 void curl_dofree(void); void curl_dofree(void) {} 43728 void curl_sclose(void); void curl_sclose(void) {} 43729 void curl_domalloc(void); void curl_domalloc(void) {} 43730 void curl_docalloc(void); void curl_docalloc(void) {} 43731 void curl_socket(void); void curl_socket(void) {} 43732 43733 int main(void) 43734 { 43735 43736 ares_channel channel; 43737 ares_cancel(channel); /* added in 1.2.0 */ 43738 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ 43739 ares_dup(&channel, channel); /* added in 1.6.0 */ 43740 43741 return 0; 43742 } 43743 43744 _ACEOF 43745 if ac_fn_c_try_link "$LINENO" 43746 then : 43747 43748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43749 printf "%s\n" "yes" >&6; } 43750 43751 else $as_nop 43752 43753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43754 printf "%s\n" "no" >&6; } 43755 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5 43756 CPPFLAGS="$clean_CPPFLAGS" 43757 LDFLAGS="$clean_LDFLAGS" 43758 LDFLAGSPC="$clean_LDFLAGSPC" 43759 LIBS="$clean_LIBS" 43760 # prevent usage 43761 want_ares="no" 43762 43763 fi 43764 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43765 conftest$ac_exeext conftest.$ac_ext 43766 43767 if test "$want_ares" = "yes"; then 43768 43769 printf "%s\n" "#define USE_ARES 1" >>confdefs.h 43770 43771 USE_ARES=1 43772 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libcares" 43773 curl_res_msg="c-ares" 43774 fi 43775 fi 43776 43777 43778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5 43779 printf %s "checking whether to enable the threaded resolver... " >&6; } 43780 OPT_THRES="default" 43781 # Check whether --enable-threaded_resolver was given. 43782 if test ${enable_threaded_resolver+y} 43783 then : 43784 enableval=$enable_threaded_resolver; OPT_THRES=$enableval 43785 fi 43786 43787 case "$OPT_THRES" in 43788 no) 43789 want_threaded_resolver="no" 43790 ;; 43791 yes) 43792 want_threaded_resolver="yes" 43793 ;; 43794 *) 43795 case $host_os in 43796 msdos* | amiga*) 43797 want_threaded_resolver="no" 43798 ;; 43799 *) 43800 if test "$want_ares" = "yes"; then 43801 want_threaded_resolver="no" 43802 else 43803 want_threaded_resolver="yes" 43804 fi 43805 ;; 43806 esac 43807 ;; 43808 esac 43809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_threaded_resolver" >&5 43810 printf "%s\n" "$want_threaded_resolver" >&6; } 43811 43812 43813 if test "$ipv6" = yes -a "$curl_cv_apple" = 'yes'; then 43814 43815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5 43816 printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; } 43817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43818 /* end confdefs.h. */ 43819 43820 43821 #include <sys/types.h> 43822 #include <TargetConditionals.h> 43823 43824 int main(void) 43825 { 43826 43827 #if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) 43828 return 0; 43829 #else 43830 #error Not macOS 43831 #endif 43832 43833 return 0; 43834 } 43835 43836 _ACEOF 43837 if ac_fn_c_try_compile "$LINENO" 43838 then : 43839 43840 build_for_macos="yes" 43841 43842 else $as_nop 43843 43844 build_for_macos="no" 43845 43846 fi 43847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43848 if test "x$build_for_macos" != xno; then 43849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43850 printf "%s\n" "yes" >&6; } 43851 SYSCONFIG_LDFLAGS='-framework CoreFoundation -framework CoreServices -framework SystemConfiguration' 43852 LDFLAGS="$LDFLAGS $SYSCONFIG_LDFLAGS" 43853 LDFLAGSPC="$LDFLAGSPC $SYSCONFIG_LDFLAGS" 43854 else 43855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43856 printf "%s\n" "no" >&6; } 43857 fi 43858 43859 fi 43860 43861 if test "$want_threaded_resolver" = "yes" && test "$curl_cv_native_windows" = "yes"; then 43862 USE_THREADS_WIN32=1 43863 43864 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h 43865 43866 curl_res_msg="Win32 threaded" 43867 fi 43868 43869 if test "$want_threaded_resolver" = "yes" && test "$USE_THREADS_WIN32" != "1"; then 43870 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 43871 if test "x$ac_cv_header_pthread_h" = xyes 43872 then : 43873 43874 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 43875 43876 save_CFLAGS="$CFLAGS" 43877 save_LIBS="$LIBS" 43878 43879 LIBS= 43880 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 43881 if test "x$ac_cv_func_pthread_create" = xyes 43882 then : 43883 USE_THREADS_POSIX=1 43884 fi 43885 43886 LIBS="$save_LIBS" 43887 43888 case $host in 43889 *-hp-hpux*) 43890 USE_THREADS_POSIX="" 43891 ;; 43892 *) 43893 ;; 43894 esac 43895 43896 if test "$USE_THREADS_POSIX" != "1"; then 43897 # assign PTHREAD for pkg-config use 43898 PTHREAD=" -pthread" 43899 43900 case $host in 43901 *-ibm-aix*) 43902 COMPILER_VERSION=`"$CC" -qversion 2>/dev/null` 43903 if test x"$COMPILER_VERSION" = "x"; then 43904 CFLAGS="$CFLAGS -pthread" 43905 else 43906 CFLAGS="$CFLAGS -qthreaded" 43907 fi 43908 ;; 43909 powerpc-*amigaos*) 43910 PTHREAD=" -lpthread" 43911 ;; 43912 *) 43913 CFLAGS="$CFLAGS -pthread" 43914 ;; 43915 esac 43916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 43917 printf %s "checking for pthread_create in -lpthread... " >&6; } 43918 if test ${ac_cv_lib_pthread_pthread_create+y} 43919 then : 43920 printf %s "(cached) " >&6 43921 else $as_nop 43922 ac_check_lib_save_LIBS=$LIBS 43923 LIBS="-lpthread $LIBS" 43924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43925 /* end confdefs.h. */ 43926 43927 43928 #ifdef __cplusplus 43929 extern "C" 43930 #endif 43931 char pthread_create (); 43932 int main(void) 43933 { 43934 return pthread_create (); 43935 return 0; 43936 } 43937 _ACEOF 43938 if ac_fn_c_try_link "$LINENO" 43939 then : 43940 ac_cv_lib_pthread_pthread_create=yes 43941 else $as_nop 43942 ac_cv_lib_pthread_pthread_create=no 43943 fi 43944 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43945 conftest$ac_exeext conftest.$ac_ext 43946 LIBS=$ac_check_lib_save_LIBS 43947 fi 43948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 43949 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } 43950 if test "x$ac_cv_lib_pthread_pthread_create" = xyes 43951 then : 43952 USE_THREADS_POSIX=1 43953 else $as_nop 43954 CFLAGS="$save_CFLAGS" 43955 fi 43956 43957 fi 43958 43959 if test "x$USE_THREADS_POSIX" = "x1"; then 43960 43961 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h 43962 43963 curl_res_msg="POSIX threaded" 43964 fi 43965 43966 fi 43967 43968 fi 43969 43970 if test "$want_threaded_resolver" != "no" -a "x$USE_THREADS_POSIX" != "x1" -a "x$USE_THREADS_WIN32" != "x1"; then 43971 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5 43972 fi 43973 43974 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 43975 if test "x$ac_cv_header_dirent_h" = xyes 43976 then : 43977 43978 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h 43979 43980 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" 43981 if test "x$ac_cv_func_opendir" = xyes 43982 then : 43983 43984 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h 43985 43986 fi 43987 43988 43989 43990 fi 43991 43992 43993 43994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5 43995 printf %s "checking convert -I options to -isystem... " >&6; } 43996 if test "$compiler_id" = "GNU_C" || 43997 test "$compiler_id" = "CLANG" -o "$compiler_id" = "APPLECLANG"; then 43998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43999 printf "%s\n" "yes" >&6; } 44000 tmp_has_include="no" 44001 tmp_chg_FLAGS="$CFLAGS" 44002 for word1 in $tmp_chg_FLAGS; do 44003 case "$word1" in 44004 -I*) 44005 tmp_has_include="yes" 44006 ;; 44007 esac 44008 done 44009 if test "$tmp_has_include" = "yes"; then 44010 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 44011 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 44012 CFLAGS="$tmp_chg_FLAGS" 44013 squeeze CFLAGS 44014 fi 44015 tmp_has_include="no" 44016 tmp_chg_FLAGS="$CPPFLAGS" 44017 for word1 in $tmp_chg_FLAGS; do 44018 case "$word1" in 44019 -I*) 44020 tmp_has_include="yes" 44021 ;; 44022 esac 44023 done 44024 if test "$tmp_has_include" = "yes"; then 44025 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 44026 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 44027 CPPFLAGS="$tmp_chg_FLAGS" 44028 squeeze CPPFLAGS 44029 fi 44030 else 44031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44032 printf "%s\n" "no" >&6; } 44033 fi 44034 44035 44036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5 44037 printf %s "checking whether to enable verbose strings... " >&6; } 44038 # Check whether --enable-verbose was given. 44039 if test ${enable_verbose+y} 44040 then : 44041 enableval=$enable_verbose; case "$enableval" in 44042 no) 44043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44044 printf "%s\n" "no" >&6; } 44045 44046 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h 44047 44048 curl_verbose_msg="no" 44049 ;; 44050 *) 44051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44052 printf "%s\n" "yes" >&6; } 44053 ;; 44054 esac 44055 else $as_nop 44056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44057 printf "%s\n" "yes" >&6; } 44058 44059 fi 44060 44061 44062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5 44063 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; } 44064 # Check whether --enable-sspi was given. 44065 if test ${enable_sspi+y} 44066 then : 44067 enableval=$enable_sspi; case "$enableval" in 44068 yes) 44069 if test "$curl_cv_native_windows" = "yes"; then 44070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44071 printf "%s\n" "yes" >&6; } 44072 44073 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h 44074 44075 USE_WINDOWS_SSPI=1 44076 curl_sspi_msg="enabled" 44077 else 44078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44079 printf "%s\n" "no" >&6; } 44080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5 44081 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;} 44082 fi 44083 ;; 44084 *) 44085 if test "x$SCHANNEL_ENABLED" = "x1"; then 44086 # --with-schannel implies --enable-sspi 44087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44088 printf "%s\n" "yes" >&6; } 44089 else 44090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44091 printf "%s\n" "no" >&6; } 44092 fi 44093 ;; 44094 esac 44095 else $as_nop 44096 if test "x$SCHANNEL_ENABLED" = "x1"; then 44097 # --with-schannel implies --enable-sspi 44098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44099 printf "%s\n" "yes" >&6; } 44100 else 44101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44102 printf "%s\n" "no" >&6; } 44103 fi 44104 44105 fi 44106 44107 44108 if test "x$USE_WINDOWS_SSPI" = "x1"; then 44109 LIBS="-lsecur32 $LIBS" 44110 fi 44111 44112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5 44113 printf %s "checking whether to enable basic authentication method... " >&6; } 44114 # Check whether --enable-basic-auth was given. 44115 if test ${enable_basic_auth+y} 44116 then : 44117 enableval=$enable_basic_auth; case "$enableval" in 44118 no) 44119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44120 printf "%s\n" "no" >&6; } 44121 44122 printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h 44123 44124 ;; 44125 *) 44126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44127 printf "%s\n" "yes" >&6; } 44128 ;; 44129 esac 44130 else $as_nop 44131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44132 printf "%s\n" "yes" >&6; } 44133 44134 fi 44135 44136 44137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5 44138 printf %s "checking whether to enable bearer authentication method... " >&6; } 44139 # Check whether --enable-bearer-auth was given. 44140 if test ${enable_bearer_auth+y} 44141 then : 44142 enableval=$enable_bearer_auth; case "$enableval" in 44143 no) 44144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44145 printf "%s\n" "no" >&6; } 44146 44147 printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h 44148 44149 ;; 44150 *) 44151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44152 printf "%s\n" "yes" >&6; } 44153 ;; 44154 esac 44155 else $as_nop 44156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44157 printf "%s\n" "yes" >&6; } 44158 44159 fi 44160 44161 44162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5 44163 printf %s "checking whether to enable digest authentication method... " >&6; } 44164 # Check whether --enable-digest-auth was given. 44165 if test ${enable_digest_auth+y} 44166 then : 44167 enableval=$enable_digest_auth; case "$enableval" in 44168 no) 44169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44170 printf "%s\n" "no" >&6; } 44171 44172 printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h 44173 44174 ;; 44175 *) 44176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44177 printf "%s\n" "yes" >&6; } 44178 ;; 44179 esac 44180 else $as_nop 44181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44182 printf "%s\n" "yes" >&6; } 44183 44184 fi 44185 44186 44187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5 44188 printf %s "checking whether to enable kerberos authentication method... " >&6; } 44189 # Check whether --enable-kerberos-auth was given. 44190 if test ${enable_kerberos_auth+y} 44191 then : 44192 enableval=$enable_kerberos_auth; case "$enableval" in 44193 no) 44194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44195 printf "%s\n" "no" >&6; } 44196 44197 printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h 44198 44199 CURL_DISABLE_KERBEROS_AUTH=1 44200 ;; 44201 *) 44202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44203 printf "%s\n" "yes" >&6; } 44204 ;; 44205 esac 44206 else $as_nop 44207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44208 printf "%s\n" "yes" >&6; } 44209 44210 fi 44211 44212 44213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5 44214 printf %s "checking whether to enable negotiate authentication method... " >&6; } 44215 # Check whether --enable-negotiate-auth was given. 44216 if test ${enable_negotiate_auth+y} 44217 then : 44218 enableval=$enable_negotiate_auth; case "$enableval" in 44219 no) 44220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44221 printf "%s\n" "no" >&6; } 44222 44223 printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h 44224 44225 CURL_DISABLE_NEGOTIATE_AUTH=1 44226 ;; 44227 *) 44228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44229 printf "%s\n" "yes" >&6; } 44230 ;; 44231 esac 44232 else $as_nop 44233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44234 printf "%s\n" "yes" >&6; } 44235 44236 fi 44237 44238 44239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5 44240 printf %s "checking whether to enable aws sig methods... " >&6; } 44241 # Check whether --enable-aws was given. 44242 if test ${enable_aws+y} 44243 then : 44244 enableval=$enable_aws; case "$enableval" in 44245 no) 44246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44247 printf "%s\n" "no" >&6; } 44248 44249 printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h 44250 44251 ;; 44252 *) 44253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44254 printf "%s\n" "yes" >&6; } 44255 ;; 44256 esac 44257 else $as_nop 44258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44259 printf "%s\n" "yes" >&6; } 44260 44261 fi 44262 44263 44264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5 44265 printf %s "checking whether to support NTLM... " >&6; } 44266 # Check whether --enable-ntlm was given. 44267 if test ${enable_ntlm+y} 44268 then : 44269 enableval=$enable_ntlm; case "$enableval" in 44270 no) 44271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44272 printf "%s\n" "no" >&6; } 44273 44274 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h 44275 44276 CURL_DISABLE_NTLM=1 44277 ;; 44278 *) 44279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44280 printf "%s\n" "yes" >&6; } 44281 ;; 44282 esac 44283 else $as_nop 44284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44285 printf "%s\n" "yes" >&6; } 44286 44287 fi 44288 44289 44290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5 44291 printf %s "checking whether to enable TLS-SRP authentication... " >&6; } 44292 # Check whether --enable-tls-srp was given. 44293 if test ${enable_tls_srp+y} 44294 then : 44295 enableval=$enable_tls_srp; case "$enableval" in 44296 no) 44297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44298 printf "%s\n" "no" >&6; } 44299 want_tls_srp=no 44300 ;; 44301 *) 44302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44303 printf "%s\n" "yes" >&6; } 44304 want_tls_srp=yes 44305 ;; 44306 esac 44307 else $as_nop 44308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44309 printf "%s\n" "yes" >&6; } 44310 want_tls_srp=yes 44311 44312 fi 44313 44314 44315 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1"); then 44316 44317 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h 44318 44319 USE_TLS_SRP=1 44320 curl_tls_srp_msg="enabled" 44321 fi 44322 44323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5 44324 printf %s "checking whether to enable Unix domain sockets... " >&6; } 44325 # Check whether --enable-unix-sockets was given. 44326 if test ${enable_unix_sockets+y} 44327 then : 44328 enableval=$enable_unix_sockets; case "$enableval" in 44329 no) 44330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44331 printf "%s\n" "no" >&6; } 44332 want_unix_sockets=no 44333 ;; 44334 *) 44335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44336 printf "%s\n" "yes" >&6; } 44337 want_unix_sockets=yes 44338 ;; 44339 esac 44340 else $as_nop 44341 44342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5 44343 printf "%s\n" "auto" >&6; } 44344 want_unix_sockets=auto 44345 44346 44347 fi 44348 44349 if test "x$want_unix_sockets" != "xno" -a "$curl_cv_wince" = 'no'; then 44350 if test "x$curl_cv_native_windows" = "xyes"; then 44351 USE_UNIX_SOCKETS=1 44352 44353 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h 44354 44355 curl_unix_sockets_msg="enabled" 44356 else 44357 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" " 44358 #include <sys/un.h> 44359 44360 " 44361 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes 44362 then : 44363 44364 44365 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h 44366 44367 USE_UNIX_SOCKETS=1 44368 curl_unix_sockets_msg="enabled" 44369 44370 else $as_nop 44371 44372 if test "x$want_unix_sockets" = "xyes"; then 44373 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5 44374 fi 44375 44376 fi 44377 44378 fi 44379 fi 44380 44381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5 44382 printf %s "checking whether to support cookies... " >&6; } 44383 # Check whether --enable-cookies was given. 44384 if test ${enable_cookies+y} 44385 then : 44386 enableval=$enable_cookies; case "$enableval" in 44387 no) 44388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44389 printf "%s\n" "no" >&6; } 44390 44391 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h 44392 44393 ;; 44394 *) 44395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44396 printf "%s\n" "yes" >&6; } 44397 ;; 44398 esac 44399 else $as_nop 44400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44401 printf "%s\n" "yes" >&6; } 44402 44403 fi 44404 44405 44406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5 44407 printf %s "checking whether to support socketpair... " >&6; } 44408 # Check whether --enable-socketpair was given. 44409 if test ${enable_socketpair+y} 44410 then : 44411 enableval=$enable_socketpair; case "$enableval" in 44412 no) 44413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44414 printf "%s\n" "no" >&6; } 44415 44416 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h 44417 44418 ;; 44419 *) 44420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44421 printf "%s\n" "yes" >&6; } 44422 ;; 44423 esac 44424 else $as_nop 44425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44426 printf "%s\n" "yes" >&6; } 44427 44428 fi 44429 44430 44431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5 44432 printf %s "checking whether to support HTTP authentication... " >&6; } 44433 # Check whether --enable-http-auth was given. 44434 if test ${enable_http_auth+y} 44435 then : 44436 enableval=$enable_http_auth; case "$enableval" in 44437 no) 44438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44439 printf "%s\n" "no" >&6; } 44440 44441 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h 44442 44443 ;; 44444 *) 44445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44446 printf "%s\n" "yes" >&6; } 44447 ;; 44448 esac 44449 else $as_nop 44450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44451 printf "%s\n" "yes" >&6; } 44452 44453 fi 44454 44455 44456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5 44457 printf %s "checking whether to support DoH... " >&6; } 44458 # Check whether --enable-doh was given. 44459 if test ${enable_doh+y} 44460 then : 44461 enableval=$enable_doh; case "$enableval" in 44462 no) 44463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44464 printf "%s\n" "no" >&6; } 44465 44466 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h 44467 44468 ;; 44469 *) 44470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44471 printf "%s\n" "yes" >&6; } 44472 ;; 44473 esac 44474 else $as_nop 44475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44476 printf "%s\n" "yes" >&6; } 44477 44478 fi 44479 44480 44481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5 44482 printf %s "checking whether to support the MIME API... " >&6; } 44483 # Check whether --enable-mime was given. 44484 if test ${enable_mime+y} 44485 then : 44486 enableval=$enable_mime; case "$enableval" in 44487 no) 44488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44489 printf "%s\n" "no" >&6; } 44490 44491 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h 44492 44493 ;; 44494 *) 44495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44496 printf "%s\n" "yes" >&6; } 44497 ;; 44498 esac 44499 else $as_nop 44500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44501 printf "%s\n" "yes" >&6; } 44502 44503 fi 44504 44505 44506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5 44507 printf %s "checking whether to support binding connections locally... " >&6; } 44508 # Check whether --enable-bindlocal was given. 44509 if test ${enable_bindlocal+y} 44510 then : 44511 enableval=$enable_bindlocal; case "$enableval" in 44512 no) 44513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44514 printf "%s\n" "no" >&6; } 44515 44516 printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h 44517 44518 ;; 44519 *) 44520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44521 printf "%s\n" "yes" >&6; } 44522 ;; 44523 esac 44524 else $as_nop 44525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44526 printf "%s\n" "yes" >&6; } 44527 44528 fi 44529 44530 44531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5 44532 printf %s "checking whether to support the form API... " >&6; } 44533 # Check whether --enable-form-api was given. 44534 if test ${enable_form_api+y} 44535 then : 44536 enableval=$enable_form_api; case "$enableval" in 44537 no) 44538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44539 printf "%s\n" "no" >&6; } 44540 44541 printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h 44542 44543 ;; 44544 *) 44545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44546 printf "%s\n" "yes" >&6; } 44547 test "$enable_mime" = no && 44548 as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5 44549 ;; 44550 esac 44551 else $as_nop 44552 44553 if test "$enable_mime" = no; then 44554 enable_form_api=no 44555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44556 printf "%s\n" "no" >&6; } 44557 44558 printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h 44559 44560 else 44561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44562 printf "%s\n" "yes" >&6; } 44563 fi 44564 44565 fi 44566 44567 44568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5 44569 printf %s "checking whether to support date parsing... " >&6; } 44570 # Check whether --enable-dateparse was given. 44571 if test ${enable_dateparse+y} 44572 then : 44573 enableval=$enable_dateparse; case "$enableval" in 44574 no) 44575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44576 printf "%s\n" "no" >&6; } 44577 44578 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h 44579 44580 ;; 44581 *) 44582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44583 printf "%s\n" "yes" >&6; } 44584 ;; 44585 esac 44586 else $as_nop 44587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44588 printf "%s\n" "yes" >&6; } 44589 44590 fi 44591 44592 44593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5 44594 printf %s "checking whether to support netrc parsing... " >&6; } 44595 # Check whether --enable-netrc was given. 44596 if test ${enable_netrc+y} 44597 then : 44598 enableval=$enable_netrc; case "$enableval" in 44599 no) 44600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44601 printf "%s\n" "no" >&6; } 44602 44603 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h 44604 44605 ;; 44606 *) 44607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44608 printf "%s\n" "yes" >&6; } 44609 ;; 44610 esac 44611 else $as_nop 44612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44613 printf "%s\n" "yes" >&6; } 44614 44615 fi 44616 44617 44618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5 44619 printf %s "checking whether to support progress-meter... " >&6; } 44620 # Check whether --enable-progress-meter was given. 44621 if test ${enable_progress_meter+y} 44622 then : 44623 enableval=$enable_progress_meter; case "$enableval" in 44624 no) 44625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44626 printf "%s\n" "no" >&6; } 44627 44628 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h 44629 44630 ;; 44631 *) 44632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44633 printf "%s\n" "yes" >&6; } 44634 ;; 44635 esac 44636 else $as_nop 44637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44638 printf "%s\n" "yes" >&6; } 44639 44640 fi 44641 44642 44643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the SHA-512/256 hash algorithm" >&5 44644 printf %s "checking whether to support the SHA-512/256 hash algorithm... " >&6; } 44645 # Check whether --enable-sha512-256 was given. 44646 if test ${enable_sha512_256+y} 44647 then : 44648 enableval=$enable_sha512_256; case "$enableval" in 44649 no) 44650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44651 printf "%s\n" "no" >&6; } 44652 44653 printf "%s\n" "#define CURL_DISABLE_SHA512_256 1" >>confdefs.h 44654 44655 ;; 44656 *) 44657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44658 printf "%s\n" "yes" >&6; } 44659 ;; 44660 esac 44661 else $as_nop 44662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44663 printf "%s\n" "yes" >&6; } 44664 44665 fi 44666 44667 44668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5 44669 printf %s "checking whether to support DNS shuffling... " >&6; } 44670 # Check whether --enable-dnsshuffle was given. 44671 if test ${enable_dnsshuffle+y} 44672 then : 44673 enableval=$enable_dnsshuffle; case "$enableval" in 44674 no) 44675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44676 printf "%s\n" "no" >&6; } 44677 44678 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h 44679 44680 ;; 44681 *) 44682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44683 printf "%s\n" "yes" >&6; } 44684 ;; 44685 esac 44686 else $as_nop 44687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44688 printf "%s\n" "yes" >&6; } 44689 44690 fi 44691 44692 44693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5 44694 printf %s "checking whether to support curl_easy_option*... " >&6; } 44695 # Check whether --enable-get-easy-options was given. 44696 if test ${enable_get_easy_options+y} 44697 then : 44698 enableval=$enable_get_easy_options; case "$enableval" in 44699 no) 44700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44701 printf "%s\n" "no" >&6; } 44702 44703 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h 44704 44705 ;; 44706 *) 44707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44708 printf "%s\n" "yes" >&6; } 44709 ;; 44710 esac 44711 else $as_nop 44712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44713 printf "%s\n" "yes" >&6; } 44714 44715 fi 44716 44717 44718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5 44719 printf %s "checking whether to support alt-svc... " >&6; } 44720 # Check whether --enable-alt-svc was given. 44721 if test ${enable_alt_svc+y} 44722 then : 44723 enableval=$enable_alt_svc; case "$enableval" in 44724 no) 44725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44726 printf "%s\n" "no" >&6; } 44727 44728 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h 44729 44730 curl_altsvc_msg="no"; 44731 enable_altsvc="no" 44732 ;; 44733 *) 44734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44735 printf "%s\n" "yes" >&6; } 44736 ;; 44737 esac 44738 else $as_nop 44739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44740 printf "%s\n" "yes" >&6; } 44741 44742 fi 44743 44744 44745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5 44746 printf %s "checking whether to support headers-api... " >&6; } 44747 # Check whether --enable-headers-api was given. 44748 if test ${enable_headers_api+y} 44749 then : 44750 enableval=$enable_headers_api; case "$enableval" in 44751 no) 44752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44753 printf "%s\n" "no" >&6; } 44754 curl_headers_msg="no (--enable-headers-api)" 44755 44756 printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h 44757 44758 ;; 44759 *) 44760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44761 printf "%s\n" "yes" >&6; } 44762 ;; 44763 esac 44764 else $as_nop 44765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44766 printf "%s\n" "yes" >&6; } 44767 44768 fi 44769 44770 44771 if test -n "$SSL_ENABLED"; then 44772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5 44773 printf %s "checking whether to support HSTS... " >&6; } 44774 # Check whether --enable-hsts was given. 44775 if test ${enable_hsts+y} 44776 then : 44777 enableval=$enable_hsts; case "$enableval" in 44778 no) 44779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44780 printf "%s\n" "no" >&6; } 44781 hsts="no" 44782 ;; 44783 *) 44784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44785 printf "%s\n" "yes" >&6; } 44786 ;; 44787 esac 44788 else $as_nop 44789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5 44790 printf "%s\n" "$hsts" >&6; } 44791 44792 fi 44793 44794 else 44795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5 44796 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;} 44797 hsts="no" 44798 fi 44799 44800 if test "x$hsts" != "xyes"; then 44801 curl_hsts_msg="no (--enable-hsts)"; 44802 44803 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h 44804 44805 fi 44806 44807 44808 if test "x$want_ech" != "xno"; then 44809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5 44810 printf %s "checking whether ECH support is available... " >&6; } 44811 44812 ECH_ENABLED=0 44813 ECH_ENABLED_OPENSSL=0 44814 ECH_ENABLED_WOLFSSL=0 44815 ECH_ENABLED_RUSTLS=0 44816 ECH_SUPPORT='' 44817 44818 if test "x$OPENSSL_ENABLED" = "x1"; then 44819 44820 for ac_func in SSL_set1_ech_config_list 44821 do : 44822 ac_fn_c_check_func "$LINENO" "SSL_set1_ech_config_list" "ac_cv_func_SSL_set1_ech_config_list" 44823 if test "x$ac_cv_func_SSL_set1_ech_config_list" = xyes 44824 then : 44825 printf "%s\n" "#define HAVE_SSL_SET1_ECH_CONFIG_LIST 1" >>confdefs.h 44826 ECH_SUPPORT="$ECH_SUPPORT OpenSSL" 44827 ECH_ENABLED_OPENSSL=1 44828 fi 44829 44830 done 44831 fi 44832 if test "x$WOLFSSL_ENABLED" = "x1"; then 44833 44834 for ac_func in wolfSSL_CTX_GenerateEchConfig 44835 do : 44836 ac_fn_c_check_func "$LINENO" "wolfSSL_CTX_GenerateEchConfig" "ac_cv_func_wolfSSL_CTX_GenerateEchConfig" 44837 if test "x$ac_cv_func_wolfSSL_CTX_GenerateEchConfig" = xyes 44838 then : 44839 printf "%s\n" "#define HAVE_WOLFSSL_CTX_GENERATEECHCONFIG 1" >>confdefs.h 44840 ECH_SUPPORT="$ECH_SUPPORT wolfSSL" 44841 ECH_ENABLED_WOLFSSL=1 44842 fi 44843 44844 done 44845 fi 44846 if test "x$RUSTLS_ENABLED" = "x1"; then 44847 ECH_SUPPORT="$ECH_SUPPORT rustls-ffi" 44848 ECH_ENABLED_RUSTLS=1 44849 fi 44850 44851 if test "x$ECH_ENABLED_OPENSSL" = "x1" -o \ 44852 "x$ECH_ENABLED_WOLFSSL" = "x1" -o \ 44853 "x$ECH_ENABLED_RUSTLS" = "x1"; then 44854 44855 printf "%s\n" "#define USE_ECH 1" >>confdefs.h 44856 44857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ECH support available via:$ECH_SUPPORT" >&5 44858 printf "%s\n" "ECH support available via:$ECH_SUPPORT" >&6; } 44859 experimental="$experimental ECH" 44860 ECH_ENABLED=1 44861 want_httpsrr="yes" 44862 else 44863 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5 44864 fi 44865 fi 44866 44867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable HTTPS-RR support" >&5 44868 printf %s "checking whether to enable HTTPS-RR support... " >&6; } 44869 if test "x$want_httpsrr" != "xno"; then 44870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44871 printf "%s\n" "yes" >&6; } 44872 44873 printf "%s\n" "#define USE_HTTPSRR 1" >>confdefs.h 44874 44875 experimental="$experimental HTTPSRR" 44876 curl_httpsrr_msg="enabled (--disable-httpsrr)" 44877 else 44878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44879 printf "%s\n" "no" >&6; } 44880 # no HTTPSRR wanted 44881 if test "$want_threaded_resolver" = "yes"; then 44882 # and using the threaded resolver 44883 if test "x$USE_ARES" = "x1"; then 44884 as_fn_error $? "without HTTPS-RR support, asking for both threaded resolver and c-ares support is ambivalent. Please drop one of them." "$LINENO" 5 44885 fi 44886 fi 44887 fi 44888 44889 44890 if test "x$OPENSSL_ENABLED" = "x1"; then 44891 ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio" 44892 if test "x$ac_cv_func_SSL_set0_wbio" = xyes 44893 then : 44894 printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h 44895 44896 fi 44897 44898 fi 44899 44900 if test "x$CURL_DISABLE_HTTP" != "x1"; then 44901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5 44902 printf %s "checking whether to support WebSockets... " >&6; } 44903 # Check whether --enable-websockets was given. 44904 if test ${enable_websockets+y} 44905 then : 44906 enableval=$enable_websockets; case "$enableval" in 44907 no) 44908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44909 printf "%s\n" "no" >&6; } 44910 44911 printf "%s\n" "#define CURL_DISABLE_WEBSOCKETS 1" >>confdefs.h 44912 44913 CURL_DISABLE_WEBSOCKETS=1 44914 ;; 44915 *) 44916 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then 44917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44918 printf "%s\n" "yes" >&6; } 44919 else 44920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44921 printf "%s\n" "no" >&6; } 44922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WebSockets disabled due to lack of >32 bit curl_off_t" >&5 44923 printf "%s\n" "$as_me: WARNING: WebSockets disabled due to lack of >32 bit curl_off_t" >&2;} 44924 44925 printf "%s\n" "#define CURL_DISABLE_WEBSOCKETS 1" >>confdefs.h 44926 44927 CURL_DISABLE_WEBSOCKETS=1 44928 fi 44929 ;; 44930 esac 44931 else $as_nop 44932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44933 printf "%s\n" "yes" >&6; } 44934 44935 fi 44936 44937 else 44938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WebSockets disabled because HTTP is disabled" >&5 44939 printf "%s\n" "$as_me: WARNING: WebSockets disabled because HTTP is disabled" >&2;} 44940 44941 printf "%s\n" "#define CURL_DISABLE_WEBSOCKETS 1" >>confdefs.h 44942 44943 CURL_DISABLE_WEBSOCKETS=1 44944 fi 44945 44946 if test "x$want_ssls_export" != "xno"; then 44947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SSL session export support is available" >&5 44948 printf %s "checking whether SSL session export support is available... " >&6; } 44949 44950 SSLS_EXPORT_ENABLED=0 44951 SSLS_EXPORT_SUPPORT='' 44952 44953 if test "x$SSL_ENABLED" != "x1"; then 44954 as_fn_error $? "--enable-ssls-export ignored: No SSL support" "$LINENO" 5 44955 else 44956 SSLS_EXPORT_ENABLED=1 44957 44958 printf "%s\n" "#define USE_SSLS_EXPORT 1" >>confdefs.h 44959 44960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"SSL session im-/export enabled\"" >&5 44961 printf "%s\n" "\"SSL session im-/export enabled\"" >&6; } 44962 experimental="$experimental SSLS-EXPORT" 44963 fi 44964 fi 44965 44966 44967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5 44968 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; } 44969 CFLAG_CURL_SYMBOL_HIDING="" 44970 doing_symbol_hiding="no" 44971 if test "$want_symbol_hiding" = "yes" && 44972 test "$supports_symbol_hiding" = "yes"; then 44973 doing_symbol_hiding="yes" 44974 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS" 44975 44976 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h 44977 44978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44979 printf "%s\n" "yes" >&6; } 44980 else 44981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44982 printf "%s\n" "no" >&6; } 44983 fi 44984 if test x$doing_symbol_hiding = xyes; then 44985 DOING_CURL_SYMBOL_HIDING_TRUE= 44986 DOING_CURL_SYMBOL_HIDING_FALSE='#' 44987 else 44988 DOING_CURL_SYMBOL_HIDING_TRUE='#' 44989 DOING_CURL_SYMBOL_HIDING_FALSE= 44990 fi 44991 44992 44993 44994 44995 LIBCURL_PC_LDFLAGS_PRIVATE='' 44996 set -- $INITIAL_LDFLAGS 44997 while test -n "$1"; do 44998 case "$1" in 44999 -L* | --library-path=* | -F*) 45000 LIBCURL_PC_LDFLAGS_PRIVATE="$LIBCURL_PC_LDFLAGS_PRIVATE $1" 45001 ;; 45002 -framework) 45003 if test -n "$2"; then 45004 LIBCURL_PC_LDFLAGS_PRIVATE="$LIBCURL_PC_LDFLAGS_PRIVATE $1 $2" 45005 shift 45006 fi 45007 ;; 45008 esac 45009 shift 45010 done 45011 LIBCURL_PC_LDFLAGS_PRIVATE="$LIBCURL_PC_LDFLAGS_PRIVATE $LDFLAGSPC" 45012 LIBCURL_PC_LIBS_PRIVATE="$LIBS$PTHREAD" 45013 45014 45015 45016 45017 45018 BLANK_AT_MAKETIME= 45019 45020 45021 if test x$cross_compiling = xyes; then 45022 CROSSCOMPILING_TRUE= 45023 CROSSCOMPILING_FALSE='#' 45024 else 45025 CROSSCOMPILING_TRUE='#' 45026 CROSSCOMPILING_FALSE= 45027 fi 45028 45029 45030 ENABLE_SHARED="$enable_shared" 45031 45032 45033 ENABLE_STATIC="$enable_static" 45034 45035 45036 squeeze LIBCURL_PC_REQUIRES_PRIVATE 45037 LIBCURL_PC_REQUIRES_PRIVATE=`echo $LIBCURL_PC_REQUIRES_PRIVATE | tr ' ' ','` 45038 45039 45040 45041 if test "x$enable_shared" = "xno"; then 45042 LIBCURL_PC_REQUIRES=$LIBCURL_PC_REQUIRES_PRIVATE 45043 LIBCURL_PC_LIBS=$LIBCURL_PC_LIBS_PRIVATE 45044 else 45045 LIBCURL_PC_REQUIRES= 45046 LIBCURL_PC_LIBS= 45047 fi 45048 45049 45050 45051 rm $compilersh 45052 45053 45054 if test "x$OPENSSL_ENABLED" = "x1"; then 45055 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 45056 elif test -n "$SSL_ENABLED"; then 45057 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 45058 fi 45059 if test "x$IPV6_ENABLED" = "x1"; then 45060 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6" 45061 fi 45062 if test "x$USE_UNIX_SOCKETS" = "x1"; then 45063 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets" 45064 fi 45065 if test "x$HAVE_LIBZ" = "x1"; then 45066 SUPPORT_FEATURES="$SUPPORT_FEATURES libz" 45067 fi 45068 if test "x$HAVE_BROTLI" = "x1"; then 45069 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli" 45070 fi 45071 if test "x$HAVE_ZSTD" = "x1"; then 45072 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd" 45073 fi 45074 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \ 45075 -o "x$USE_THREADS_WIN32" = "x1"; then 45076 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" 45077 fi 45078 if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes" -a "x$want_httpsrr" != "xno"; then 45079 SUPPORT_FEATURES="$SUPPORT_FEATURES asyn-rr" 45080 fi 45081 if test "x$IDN_ENABLED" = "x1"; then 45082 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN" 45083 fi 45084 if test "x$USE_WINDOWS_SSPI" = "x1"; then 45085 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI" 45086 fi 45087 45088 if test "x$HAVE_GSSAPI" = "x1"; then 45089 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API" 45090 fi 45091 45092 if test "x$curl_psl_msg" = "xenabled"; then 45093 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL" 45094 fi 45095 45096 if test "x$curl_gsasl_msg" = "xenabled"; then 45097 SUPPORT_FEATURES="$SUPPORT_FEATURES gsasl" 45098 fi 45099 45100 if test "x$enable_altsvc" = "xyes"; then 45101 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc" 45102 fi 45103 if test "x$hsts" = "xyes"; then 45104 SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS" 45105 fi 45106 45107 if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \ 45108 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then 45109 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO" 45110 fi 45111 45112 if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \ 45113 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then 45114 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos" 45115 fi 45116 45117 use_curl_ntlm_core=no 45118 45119 if test "x$CURL_DISABLE_NTLM" != "x1"; then 45120 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ 45121 -o "x$GNUTLS_ENABLED" = "x1" \ 45122 -o "x$USE_WIN32_CRYPTO" = "x1" \ 45123 -o "x$HAVE_WOLFSSL_DES_ECB_ENCRYPT" = "x1"; then 45124 use_curl_ntlm_core=yes 45125 fi 45126 45127 if test "x$use_curl_ntlm_core" = "xyes" \ 45128 -o "x$USE_WINDOWS_SSPI" = "x1"; then 45129 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" 45130 fi 45131 fi 45132 45133 if test "x$USE_TLS_SRP" = "x1"; then 45134 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP" 45135 fi 45136 45137 if test "x$USE_NGHTTP2" = "x1"; then 45138 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2" 45139 fi 45140 45141 if test "x$USE_NGTCP2_H3" = "x1" -o "x$USE_QUICHE" = "x1" \ 45142 -o "x$USE_OPENSSL_H3" = "x1" -o "x$USE_MSH3" = "x1"; then 45143 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then 45144 as_fn_error $? "MultiSSL cannot be enabled with HTTP/3 and vice versa" "$LINENO" 5 45145 fi 45146 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3" 45147 fi 45148 45149 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then 45150 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL" 45151 fi 45152 45153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this build supports HTTPS-proxy" >&5 45154 printf %s "checking if this build supports HTTPS-proxy... " >&6; } 45155 if test "x$CURL_DISABLE_HTTP" != "x1"; then 45156 if test "x$https_proxy" != "xno"; then 45157 if test "x$OPENSSL_ENABLED" = "x1" \ 45158 -o "x$GNUTLS_ENABLED" = "x1" \ 45159 -o "x$RUSTLS_ENABLED" = "x1" \ 45160 -o "x$SCHANNEL_ENABLED" = "x1" \ 45161 -o "x$GNUTLS_ENABLED" = "x1" \ 45162 -o "x$MBEDTLS_ENABLED" = "x1"; then 45163 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy" 45164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45165 printf "%s\n" "yes" >&6; } 45166 elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$HAVE_WOLFSSL_BIO_NEW" = "x1"; then 45167 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy" 45168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45169 printf "%s\n" "yes" >&6; } 45170 else 45171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45172 printf "%s\n" "no" >&6; } 45173 fi 45174 else 45175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45176 printf "%s\n" "no" >&6; } 45177 fi 45178 else 45179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45180 printf "%s\n" "no" >&6; } 45181 fi 45182 45183 if test "x$OPENSSL_ENABLED" = "x1" -o -n "$SSL_ENABLED"; then 45184 if test "x$ECH_ENABLED" = "x1"; then 45185 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH" 45186 fi 45187 fi 45188 45189 if test "x$want_httpsrr" != "xno"; then 45190 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPSRR" 45191 fi 45192 45193 if test "x$SSLS_EXPORT_ENABLED" = "x1"; then 45194 SUPPORT_FEATURES="$SUPPORT_FEATURES SSLS-EXPORT" 45195 fi 45196 45197 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then 45198 if test ${ac_cv_sizeof_off_t} -gt 4 -o \ 45199 "$curl_win32_file_api" = "win32_large_files"; then 45200 SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile" 45201 fi 45202 fi 45203 45204 if test "$tst_atomic" = "yes"; then 45205 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe" 45206 elif test "x$USE_THREADS_POSIX" = "x1" -a \ 45207 "x$ac_cv_header_pthread_h" = "xyes"; then 45208 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe" 45209 else 45210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45211 /* end confdefs.h. */ 45212 45213 45214 #include <windows.h> 45215 45216 int main(void) 45217 { 45218 45219 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600) 45220 #error 45221 #endif 45222 45223 return 0; 45224 } 45225 45226 _ACEOF 45227 if ac_fn_c_try_compile "$LINENO" 45228 then : 45229 45230 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe" 45231 45232 fi 45233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45234 fi 45235 45236 if test "x$want_winuni" = "xyes"; then 45237 SUPPORT_FEATURES="$SUPPORT_FEATURES Unicode" 45238 fi 45239 if test "x$want_debug" = "xyes"; then 45240 SUPPORT_FEATURES="$SUPPORT_FEATURES Debug" 45241 fi 45242 if test "x$want_curldebug" = "xyes"; then 45243 SUPPORT_FEATURES="$SUPPORT_FEATURES TrackMemory" 45244 fi 45245 if test "x$CURL_CA_EMBED" != "x"; then 45246 SUPPORT_FEATURES="$SUPPORT_FEATURES CAcert" 45247 CURL_CA_EMBED_msg="$CURL_CA_EMBED" 45248 else 45249 CURL_CA_EMBED_msg='no' 45250 fi 45251 45252 if sort -f </dev/null >/dev/null 2>&1; then 45253 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort -f | tr '\012' ' '` 45254 else 45255 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '` 45256 fi 45257 45258 45259 if test "x$CURL_DISABLE_HTTP" != "x1"; then 45260 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP" 45261 if test "x$SSL_ENABLED" = "x1"; then 45262 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS" 45263 fi 45264 fi 45265 if test "x$CURL_DISABLE_FTP" != "x1"; then 45266 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP" 45267 if test "x$SSL_ENABLED" = "x1"; then 45268 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS" 45269 fi 45270 fi 45271 if test "x$CURL_DISABLE_FILE" != "x1"; then 45272 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE" 45273 fi 45274 if test "x$CURL_DISABLE_TELNET" != "x1"; then 45275 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" 45276 fi 45277 if test "x$CURL_DISABLE_LDAP" != "x1"; then 45278 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" 45279 if test "x$CURL_DISABLE_LDAPS" != "x1"; then 45280 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") || 45281 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then 45282 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" 45283 fi 45284 fi 45285 fi 45286 if test "x$CURL_DISABLE_DICT" != "x1"; then 45287 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" 45288 fi 45289 if test "x$CURL_DISABLE_TFTP" != "x1"; then 45290 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP" 45291 fi 45292 if test "x$CURL_DISABLE_GOPHER" != "x1"; then 45293 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER" 45294 if test "x$SSL_ENABLED" = "x1"; then 45295 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS" 45296 fi 45297 fi 45298 if test "x$CURL_DISABLE_MQTT" != "x1"; then 45299 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT" 45300 fi 45301 if test "x$CURL_DISABLE_POP3" != "x1"; then 45302 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3" 45303 if test "x$SSL_ENABLED" = "x1"; then 45304 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S" 45305 fi 45306 fi 45307 if test "x$CURL_DISABLE_IMAP" != "x1"; then 45308 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP" 45309 if test "x$SSL_ENABLED" = "x1"; then 45310 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS" 45311 fi 45312 fi 45313 if test "x$CURL_DISABLE_SMB" != "x1" \ 45314 -a "x$use_curl_ntlm_core" = "xyes"; then 45315 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB" 45316 if test "x$SSL_ENABLED" = "x1"; then 45317 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS" 45318 fi 45319 fi 45320 if test "x$CURL_DISABLE_SMTP" != "x1"; then 45321 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP" 45322 if test "x$SSL_ENABLED" = "x1"; then 45323 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS" 45324 fi 45325 fi 45326 if test "x$USE_LIBSSH2" = "x1"; then 45327 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 45328 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 45329 fi 45330 if test "x$USE_LIBSSH" = "x1"; then 45331 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 45332 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 45333 fi 45334 if test "x$USE_WOLFSSH" = "x1"; then 45335 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 45336 fi 45337 if test "x$CURL_DISABLE_IPFS" != "x1"; then 45338 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IPFS IPNS" 45339 fi 45340 if test "x$CURL_DISABLE_RTSP" != "x1"; then 45341 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP" 45342 fi 45343 if test "x$USE_LIBRTMP" = "x1"; then 45344 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP" 45345 fi 45346 if test "x$CURL_DISABLE_WEBSOCKETS" != "x1"; then 45347 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS" 45348 if test "x$SSL_ENABLED" = "x1"; then 45349 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS" 45350 fi 45351 fi 45352 45353 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '` 45354 45355 45356 45357 45358 squeeze CFLAGS 45359 squeeze CPPFLAGS 45360 squeeze DEFS 45361 squeeze LDFLAGS 45362 squeeze LIBS 45363 45364 squeeze LIBCURL_PC_LDFLAGS_PRIVATE 45365 squeeze LIBCURL_PC_LIBS_PRIVATE 45366 squeeze CURL_NETWORK_AND_TIME_LIBS 45367 45368 squeeze SUPPORT_FEATURES 45369 squeeze SUPPORT_PROTOCOLS 45370 45371 45372 45373 xc_bad_var_libs=no 45374 for xc_word in $LIBS; do 45375 case "$xc_word" in 45376 -l* | --library=*) 45377 : 45378 ;; 45379 *) 45380 xc_bad_var_libs=yes 45381 ;; 45382 esac 45383 done 45384 if test $xc_bad_var_libs = yes; then 45385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 45386 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;} 45387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 45388 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 45389 fi 45390 45391 45392 xc_bad_var_ldflags=no 45393 for xc_word in $LDFLAGS; do 45394 case "$xc_word" in 45395 -D*) 45396 xc_bad_var_ldflags=yes 45397 ;; 45398 -U*) 45399 xc_bad_var_ldflags=yes 45400 ;; 45401 -I*) 45402 xc_bad_var_ldflags=yes 45403 ;; 45404 -l* | --library=*) 45405 xc_bad_var_ldflags=yes 45406 ;; 45407 esac 45408 done 45409 if test $xc_bad_var_ldflags = yes; then 45410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 45411 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 45412 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 45413 for xc_word in $LDFLAGS; do 45414 case "$xc_word" in 45415 -D*) 45416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 45417 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 45418 ;; 45419 -U*) 45420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 45421 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 45422 ;; 45423 -I*) 45424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 45425 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 45426 ;; 45427 -l* | --library=*) 45428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 45429 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 45430 ;; 45431 esac 45432 done 45433 fi 45434 45435 45436 xc_bad_var_cppflags=no 45437 for xc_word in $CPPFLAGS; do 45438 case "$xc_word" in 45439 -rpath*) 45440 xc_bad_var_cppflags=yes 45441 ;; 45442 -L* | --library-path=*) 45443 xc_bad_var_cppflags=yes 45444 ;; 45445 -l* | --library=*) 45446 xc_bad_var_cppflags=yes 45447 ;; 45448 esac 45449 done 45450 if test $xc_bad_var_cppflags = yes; then 45451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 45452 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 45453 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 45454 for xc_word in $CPPFLAGS; do 45455 case "$xc_word" in 45456 -rpath*) 45457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 45458 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 45459 ;; 45460 -L* | --library-path=*) 45461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 45462 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 45463 ;; 45464 -l* | --library=*) 45465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 45466 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 45467 ;; 45468 esac 45469 done 45470 fi 45471 45472 45473 xc_bad_var_cflags=no 45474 for xc_word in $CFLAGS; do 45475 case "$xc_word" in 45476 -D*) 45477 xc_bad_var_cflags=yes 45478 ;; 45479 -U*) 45480 xc_bad_var_cflags=yes 45481 ;; 45482 -I*) 45483 xc_bad_var_cflags=yes 45484 ;; 45485 -rpath*) 45486 xc_bad_var_cflags=yes 45487 ;; 45488 -L* | --library-path=*) 45489 xc_bad_var_cflags=yes 45490 ;; 45491 -l* | --library=*) 45492 xc_bad_var_cflags=yes 45493 ;; 45494 esac 45495 done 45496 if test $xc_bad_var_cflags = yes; then 45497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 45498 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;} 45499 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 45500 for xc_word in $CFLAGS; do 45501 case "$xc_word" in 45502 -D*) 45503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 45504 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 45505 ;; 45506 -U*) 45507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 45508 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 45509 ;; 45510 -I*) 45511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 45512 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 45513 ;; 45514 -rpath*) 45515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 45516 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 45517 ;; 45518 -L* | --library-path=*) 45519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 45520 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 45521 ;; 45522 -l* | --library=*) 45523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 45524 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 45525 ;; 45526 esac 45527 done 45528 fi 45529 45530 if test $xc_bad_var_libs = yes || 45531 test $xc_bad_var_cflags = yes || 45532 test $xc_bad_var_ldflags = yes || 45533 test $xc_bad_var_cppflags = yes; then 45534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 45535 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 45536 fi 45537 45538 45539 SSL_BACKENDS=${ssl_backends} 45540 45541 45542 if test "x$want_curldebug_assumed" = "xyes" && 45543 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then 45544 ac_configure_args="$ac_configure_args --enable-curldebug" 45545 fi 45546 45547 45548 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null` 45549 if test -z "$tmp_cpp"; then 45550 tmp_cpp='cpp' 45551 fi 45552 CURL_CPP=$tmp_cpp 45553 45554 45555 45556 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/config tests/configurehelp.pm tests/certs/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile tests/tunit/Makefile tests/client/Makefile tests/http/config.ini tests/http/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc" 45557 45558 cat >confcache <<\_ACEOF 45559 # This file is a shell script that caches the results of configure 45560 # tests run on this system so they can be shared between configure 45561 # scripts and configure runs, see configure's option --config-cache. 45562 # It is not useful on other systems. If it contains results you don't 45563 # want to keep, you may remove or edit it. 45564 # 45565 # config.status only pays attention to the cache file if you give it 45566 # the --recheck option to rerun configure. 45567 # 45568 # `ac_cv_env_foo' variables (set or unset) will be overridden when 45569 # loading this file, other *unset* `ac_cv_foo' will be assigned the 45570 # following values. 45571 45572 _ACEOF 45573 45574 # The following way of writing the cache mishandles newlines in values, 45575 # but we know of no workaround that is simple, portable, and efficient. 45576 # So, we kill variables containing newlines. 45577 # Ultrix sh set writes to stderr and can't be redirected directly, 45578 # and sets the high bit in the cache file unless we assign to the vars. 45579 ( 45580 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 45581 eval ac_val=\$$ac_var 45582 case $ac_val in #( 45583 *${as_nl}*) 45584 case $ac_var in #( 45585 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 45586 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 45587 esac 45588 case $ac_var in #( 45589 _ | IFS | as_nl) ;; #( 45590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 45591 *) { eval $ac_var=; unset $ac_var;} ;; 45592 esac ;; 45593 esac 45594 done 45595 45596 (set) 2>&1 | 45597 case $as_nl`(ac_space=' '; set) 2>&1` in #( 45598 *${as_nl}ac_space=\ *) 45599 # `set' does not quote correctly, so add quotes: double-quote 45600 # substitution turns \\\\ into \\, and sed turns \\ into \. 45601 sed -n \ 45602 "s/'/'\\\\''/g; 45603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 45604 ;; #( 45605 *) 45606 # `set' quotes correctly as required by POSIX, so do not add quotes. 45607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 45608 ;; 45609 esac | 45610 sort 45611 ) | 45612 sed ' 45613 /^ac_cv_env_/b end 45614 t clear 45615 :clear 45616 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 45617 t end 45618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 45619 :end' >>confcache 45620 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 45621 if test -w "$cache_file"; then 45622 if test "x$cache_file" != "x/dev/null"; then 45623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 45624 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 45625 if test ! -f "$cache_file" || test -h "$cache_file"; then 45626 cat confcache >"$cache_file" 45627 else 45628 case $cache_file in #( 45629 */* | ?:*) 45630 mv -f confcache "$cache_file"$$ && 45631 mv -f "$cache_file"$$ "$cache_file" ;; #( 45632 *) 45633 mv -f confcache "$cache_file" ;; 45634 esac 45635 fi 45636 fi 45637 else 45638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 45639 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 45640 fi 45641 fi 45642 rm -f confcache 45643 45644 test "x$prefix" = xNONE && prefix=$ac_default_prefix 45645 # Let make expand exec_prefix. 45646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 45647 45648 DEFS=-DHAVE_CONFIG_H 45649 45650 ac_libobjs= 45651 ac_ltlibobjs= 45652 U= 45653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 45654 # 1. Remove the extension, and $U if already installed. 45655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 45656 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 45657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 45658 # will be set to the directory where LIBOBJS objects are built. 45659 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 45660 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 45661 done 45662 LIBOBJS=$ac_libobjs 45663 45664 LTLIBOBJS=$ac_ltlibobjs 45665 45666 45667 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 45668 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 45669 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45670 fi 45671 if test -z "${DEBUGBUILD_TRUE}" && test -z "${DEBUGBUILD_FALSE}"; then 45672 as_fn_error $? "conditional \"DEBUGBUILD\" was never defined. 45673 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45674 fi 45675 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then 45676 as_fn_error $? "conditional \"CURLDEBUG\" was never defined. 45677 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45678 fi 45679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 45680 printf %s "checking that generated files are newer than configure... " >&6; } 45681 if test -n "$am_sleep_pid"; then 45682 # Hide warnings about reused PIDs. 45683 wait $am_sleep_pid 2>/dev/null 45684 fi 45685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 45686 printf "%s\n" "done" >&6; } 45687 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 45688 as_fn_error $? "conditional \"AMDEP\" was never defined. 45689 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45690 fi 45691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 45692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 45693 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45694 fi 45695 if test -n "$EXEEXT"; then 45696 am__EXEEXT_TRUE= 45697 am__EXEEXT_FALSE='#' 45698 else 45699 am__EXEEXT_TRUE='#' 45700 am__EXEEXT_FALSE= 45701 fi 45702 45703 if test -z "${NOT_CURL_CI_TRUE}" && test -z "${NOT_CURL_CI_FALSE}"; then 45704 as_fn_error $? "conditional \"NOT_CURL_CI\" was never defined. 45705 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45706 fi 45707 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then 45708 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined. 45709 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45710 fi 45711 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then 45712 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined. 45713 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45714 fi 45715 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then 45716 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined. 45717 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45718 fi 45719 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then 45720 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined. 45721 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45722 fi 45723 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 45724 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 45725 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45726 fi 45727 if test -z "${CURL_WERROR_TRUE}" && test -z "${CURL_WERROR_FALSE}"; then 45728 as_fn_error $? "conditional \"CURL_WERROR\" was never defined. 45729 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45730 fi 45731 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then 45732 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined. 45733 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45734 fi 45735 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then 45736 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined. 45737 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45738 fi 45739 if test -z "${USE_UNITY_TRUE}" && test -z "${USE_UNITY_FALSE}"; then 45740 as_fn_error $? "conditional \"USE_UNITY\" was never defined. 45741 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45742 fi 45743 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 45744 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 45745 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45746 fi 45747 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then 45748 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined. 45749 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45750 fi 45751 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then 45752 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined. 45753 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45754 fi 45755 if test -z "${CURL_CA_EMBED_SET_TRUE}" && test -z "${CURL_CA_EMBED_SET_FALSE}"; then 45756 as_fn_error $? "conditional \"CURL_CA_EMBED_SET\" was never defined. 45757 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45758 fi 45759 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then 45760 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined. 45761 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45762 fi 45763 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then 45764 as_fn_error $? "conditional \"USE_GSASL\" was never defined. 45765 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45766 fi 45767 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then 45768 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined. 45769 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45770 fi 45771 if test -z "${USE_UNICODE_TRUE}" && test -z "${USE_UNICODE_FALSE}"; then 45772 as_fn_error $? "conditional \"USE_UNICODE\" was never defined. 45773 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45774 fi 45775 if test -z "${USE_ZSH_COMPLETION_TRUE}" && test -z "${USE_ZSH_COMPLETION_FALSE}"; then 45776 as_fn_error $? "conditional \"USE_ZSH_COMPLETION\" was never defined. 45777 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45778 fi 45779 if test -z "${USE_FISH_COMPLETION_TRUE}" && test -z "${USE_FISH_COMPLETION_FALSE}"; then 45780 as_fn_error $? "conditional \"USE_FISH_COMPLETION\" was never defined. 45781 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45782 fi 45783 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 45784 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 45785 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45786 fi 45787 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 45788 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 45789 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45790 fi 45791 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then 45792 as_fn_error $? "conditional \"USE_MANUAL\" was never defined. 45793 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45794 fi 45795 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then 45796 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined. 45797 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45798 fi 45799 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then 45800 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined. 45801 Usually this means the macro was only invoked conditionally." "$LINENO" 5 45802 fi 45803 45804 : "${CONFIG_STATUS=./config.status}" 45805 ac_write_fail=0 45806 ac_clean_files_save=$ac_clean_files 45807 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 45808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 45809 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 45810 as_write_fail=0 45811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 45812 #! $SHELL 45813 # Generated by $as_me. 45814 # Run this file to recreate the current configuration. 45815 # Compiler output produced by configure, useful for debugging 45816 # configure, is in config.log if it exists. 45817 45818 debug=false 45819 ac_cs_recheck=false 45820 ac_cs_silent=false 45821 45822 SHELL=\${CONFIG_SHELL-$SHELL} 45823 export SHELL 45824 _ASEOF 45825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 45826 ## -------------------- ## 45827 ## M4sh Initialization. ## 45828 ## -------------------- ## 45829 45830 # Be more Bourne compatible 45831 DUALCASE=1; export DUALCASE # for MKS sh 45832 as_nop=: 45833 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 45834 then : 45835 emulate sh 45836 NULLCMD=: 45837 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 45838 # is contrary to our usage. Disable this feature. 45839 alias -g '${1+"$@"}'='"$@"' 45840 setopt NO_GLOB_SUBST 45841 else $as_nop 45842 case `(set -o) 2>/dev/null` in #( 45843 *posix*) : 45844 set -o posix ;; #( 45845 *) : 45846 ;; 45847 esac 45848 fi 45849 45850 45851 45852 # Reset variables that may have inherited troublesome values from 45853 # the environment. 45854 45855 # IFS needs to be set, to space, tab, and newline, in precisely that order. 45856 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45857 # side effect of setting IFS to empty, thus disabling word splitting.) 45858 # Quoting is to prevent editors from complaining about space-tab. 45859 as_nl=' 45860 ' 45861 export as_nl 45862 IFS=" "" $as_nl" 45863 45864 PS1='$ ' 45865 PS2='> ' 45866 PS4='+ ' 45867 45868 # Ensure predictable behavior from utilities with locale-dependent output. 45869 LC_ALL=C 45870 export LC_ALL 45871 LANGUAGE=C 45872 export LANGUAGE 45873 45874 # We cannot yet rely on "unset" to work, but we need these variables 45875 # to be unset--not just set to an empty or harmless value--now, to 45876 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 45877 # also avoids known problems related to "unset" and subshell syntax 45878 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 45879 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 45880 do eval test \${$as_var+y} \ 45881 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 45882 done 45883 45884 # Ensure that fds 0, 1, and 2 are open. 45885 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 45886 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 45887 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 45888 45889 45890 45891 # Find who we are. Look in the path if we contain no directory separator. 45892 as_myself= 45893 case $0 in #(( 45894 *[\\/]* ) as_myself=$0 ;; 45895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45896 for as_dir in $PATH 45897 do 45898 IFS=$as_save_IFS 45899 case $as_dir in #((( 45900 '') as_dir=./ ;; 45901 */) ;; 45902 *) as_dir=$as_dir/ ;; 45903 esac 45904 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 45905 done 45906 IFS=$as_save_IFS 45907 45908 ;; 45909 esac 45910 # We did not find ourselves, most probably we were run as `sh COMMAND' 45911 # in which case we are not to be found in the path. 45912 if test "x$as_myself" = x; then 45913 as_myself=$0 45914 fi 45915 if test ! -f "$as_myself"; then 45916 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 45917 exit 1 45918 fi 45919 45920 45921 45922 # as_fn_error STATUS ERROR [LINENO LOG_FD] 45923 # ---------------------------------------- 45924 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 45925 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 45926 # script with STATUS, using 1 if that was 0. 45927 as_fn_error () 45928 { 45929 as_status=$1; test $as_status -eq 0 && as_status=1 45930 if test "$4"; then 45931 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 45932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 45933 fi 45934 printf "%s\n" "$as_me: error: $2" >&2 45935 as_fn_exit $as_status 45936 } # as_fn_error 45937 45938 45939 45940 # as_fn_set_status STATUS 45941 # ----------------------- 45942 # Set $? to STATUS, without forking. 45943 as_fn_set_status () 45944 { 45945 return $1 45946 } # as_fn_set_status 45947 45948 # as_fn_exit STATUS 45949 # ----------------- 45950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 45951 as_fn_exit () 45952 { 45953 set +e 45954 as_fn_set_status $1 45955 exit $1 45956 } # as_fn_exit 45957 45958 # as_fn_unset VAR 45959 # --------------- 45960 # Portably unset VAR. 45961 as_fn_unset () 45962 { 45963 { eval $1=; unset $1;} 45964 } 45965 as_unset=as_fn_unset 45966 45967 # as_fn_append VAR VALUE 45968 # ---------------------- 45969 # Append the text in VALUE to the end of the definition contained in VAR. Take 45970 # advantage of any shell optimizations that allow amortized linear growth over 45971 # repeated appends, instead of the typical quadratic growth present in naive 45972 # implementations. 45973 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 45974 then : 45975 eval 'as_fn_append () 45976 { 45977 eval $1+=\$2 45978 }' 45979 else $as_nop 45980 as_fn_append () 45981 { 45982 eval $1=\$$1\$2 45983 } 45984 fi # as_fn_append 45985 45986 # as_fn_arith ARG... 45987 # ------------------ 45988 # Perform arithmetic evaluation on the ARGs, and store the result in the 45989 # global $as_val. Take advantage of shells that can avoid forks. The arguments 45990 # must be portable across $(()) and expr. 45991 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 45992 then : 45993 eval 'as_fn_arith () 45994 { 45995 as_val=$(( $* )) 45996 }' 45997 else $as_nop 45998 as_fn_arith () 45999 { 46000 as_val=`expr "$@" || test $? -eq 1` 46001 } 46002 fi # as_fn_arith 46003 46004 46005 if expr a : '\(a\)' >/dev/null 2>&1 && 46006 test "X`expr 00001 : '.*\(...\)'`" = X001; then 46007 as_expr=expr 46008 else 46009 as_expr=false 46010 fi 46011 46012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 46013 as_basename=basename 46014 else 46015 as_basename=false 46016 fi 46017 46018 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 46019 as_dirname=dirname 46020 else 46021 as_dirname=false 46022 fi 46023 46024 as_me=`$as_basename -- "$0" || 46025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 46026 X"$0" : 'X\(//\)$' \| \ 46027 X"$0" : 'X\(/\)' \| . 2>/dev/null || 46028 printf "%s\n" X/"$0" | 46029 sed '/^.*\/\([^/][^/]*\)\/*$/{ 46030 s//\1/ 46031 q 46032 } 46033 /^X\/\(\/\/\)$/{ 46034 s//\1/ 46035 q 46036 } 46037 /^X\/\(\/\).*/{ 46038 s//\1/ 46039 q 46040 } 46041 s/.*/./; q'` 46042 46043 # Avoid depending upon Character Ranges. 46044 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 46045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 46046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 46047 as_cr_digits='0123456789' 46048 as_cr_alnum=$as_cr_Letters$as_cr_digits 46049 46050 46051 # Determine whether it's possible to make 'echo' print without a newline. 46052 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 46053 # for compatibility with existing Makefiles. 46054 ECHO_C= ECHO_N= ECHO_T= 46055 case `echo -n x` in #((((( 46056 -n*) 46057 case `echo 'xy\c'` in 46058 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 46059 xy) ECHO_C='\c';; 46060 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 46061 ECHO_T=' ';; 46062 esac;; 46063 *) 46064 ECHO_N='-n';; 46065 esac 46066 46067 # For backward compatibility with old third-party macros, we provide 46068 # the shell variables $as_echo and $as_echo_n. New code should use 46069 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 46070 as_echo='printf %s\n' 46071 as_echo_n='printf %s' 46072 46073 rm -f conf$$ conf$$.exe conf$$.file 46074 if test -d conf$$.dir; then 46075 rm -f conf$$.dir/conf$$.file 46076 else 46077 rm -f conf$$.dir 46078 mkdir conf$$.dir 2>/dev/null 46079 fi 46080 if (echo >conf$$.file) 2>/dev/null; then 46081 if ln -s conf$$.file conf$$ 2>/dev/null; then 46082 as_ln_s='ln -s' 46083 # ... but there are two gotchas: 46084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 46085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 46086 # In both cases, we have to default to `cp -pR'. 46087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 46088 as_ln_s='cp -pR' 46089 elif ln conf$$.file conf$$ 2>/dev/null; then 46090 as_ln_s=ln 46091 else 46092 as_ln_s='cp -pR' 46093 fi 46094 else 46095 as_ln_s='cp -pR' 46096 fi 46097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 46098 rmdir conf$$.dir 2>/dev/null 46099 46100 46101 # as_fn_mkdir_p 46102 # ------------- 46103 # Create "$as_dir" as a directory, including parents if necessary. 46104 as_fn_mkdir_p () 46105 { 46106 46107 case $as_dir in #( 46108 -*) as_dir=./$as_dir;; 46109 esac 46110 test -d "$as_dir" || eval $as_mkdir_p || { 46111 as_dirs= 46112 while :; do 46113 case $as_dir in #( 46114 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 46115 *) as_qdir=$as_dir;; 46116 esac 46117 as_dirs="'$as_qdir' $as_dirs" 46118 as_dir=`$as_dirname -- "$as_dir" || 46119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 46120 X"$as_dir" : 'X\(//\)[^/]' \| \ 46121 X"$as_dir" : 'X\(//\)$' \| \ 46122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 46123 printf "%s\n" X"$as_dir" | 46124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 46125 s//\1/ 46126 q 46127 } 46128 /^X\(\/\/\)[^/].*/{ 46129 s//\1/ 46130 q 46131 } 46132 /^X\(\/\/\)$/{ 46133 s//\1/ 46134 q 46135 } 46136 /^X\(\/\).*/{ 46137 s//\1/ 46138 q 46139 } 46140 s/.*/./; q'` 46141 test -d "$as_dir" && break 46142 done 46143 test -z "$as_dirs" || eval "mkdir $as_dirs" 46144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 46145 46146 46147 } # as_fn_mkdir_p 46148 if mkdir -p . 2>/dev/null; then 46149 as_mkdir_p='mkdir -p "$as_dir"' 46150 else 46151 test -d ./-p && rmdir ./-p 46152 as_mkdir_p=false 46153 fi 46154 46155 46156 # as_fn_executable_p FILE 46157 # ----------------------- 46158 # Test if FILE is an executable regular file. 46159 as_fn_executable_p () 46160 { 46161 test -f "$1" && test -x "$1" 46162 } # as_fn_executable_p 46163 as_test_x='test -x' 46164 as_executable_p=as_fn_executable_p 46165 46166 # Sed expression to map a string onto a valid CPP name. 46167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 46168 46169 # Sed expression to map a string onto a valid variable name. 46170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 46171 46172 46173 exec 6>&1 46174 ## ----------------------------------- ## 46175 ## Main body of $CONFIG_STATUS script. ## 46176 ## ----------------------------------- ## 46177 _ASEOF 46178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 46179 46180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46181 # Save the log message, to keep $0 and so on meaningful, and to 46182 # report actual input values of CONFIG_FILES etc. instead of their 46183 # values after options handling. 46184 ac_log=" 46185 This file was extended by curl $as_me -, which was 46186 generated by GNU Autoconf 2.71. Invocation command line was 46187 46188 CONFIG_FILES = $CONFIG_FILES 46189 CONFIG_HEADERS = $CONFIG_HEADERS 46190 CONFIG_LINKS = $CONFIG_LINKS 46191 CONFIG_COMMANDS = $CONFIG_COMMANDS 46192 $ $0 $@ 46193 46194 on `(hostname || uname -n) 2>/dev/null | sed 1q` 46195 " 46196 46197 _ACEOF 46198 46199 case $ac_config_files in *" 46200 "*) set x $ac_config_files; shift; ac_config_files=$*;; 46201 esac 46202 46203 case $ac_config_headers in *" 46204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 46205 esac 46206 46207 46208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 46209 # Files that config.status was made for. 46210 config_files="$ac_config_files" 46211 config_headers="$ac_config_headers" 46212 config_commands="$ac_config_commands" 46213 46214 _ACEOF 46215 46216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46217 ac_cs_usage="\ 46218 \`$as_me' instantiates files and other configuration actions 46219 from templates according to the current configuration. Unless the files 46220 and actions are specified as TAGs, all are instantiated by default. 46221 46222 Usage: $0 [OPTION]... [TAG]... 46223 46224 -h, --help print this help, then exit 46225 -V, --version print version number and configuration settings, then exit 46226 --config print configuration, then exit 46227 -q, --quiet, --silent 46228 do not print progress messages 46229 -d, --debug don't remove temporary files 46230 --recheck update $as_me by reconfiguring in the same conditions 46231 --file=FILE[:TEMPLATE] 46232 instantiate the configuration file FILE 46233 --header=FILE[:TEMPLATE] 46234 instantiate the configuration header FILE 46235 46236 Configuration files: 46237 $config_files 46238 46239 Configuration headers: 46240 $config_headers 46241 46242 Configuration commands: 46243 $config_commands 46244 46245 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>." 46246 46247 _ACEOF 46248 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 46249 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 46250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 46251 ac_cs_config='$ac_cs_config_escaped' 46252 ac_cs_version="\\ 46253 curl config.status - 46254 configured by $0, generated by GNU Autoconf 2.71, 46255 with options \\"\$ac_cs_config\\" 46256 46257 Copyright (C) 2021 Free Software Foundation, Inc. 46258 This config.status script is free software; the Free Software Foundation 46259 gives unlimited permission to copy, distribute and modify it." 46260 46261 ac_pwd='$ac_pwd' 46262 srcdir='$srcdir' 46263 INSTALL='$INSTALL' 46264 MKDIR_P='$MKDIR_P' 46265 AWK='$AWK' 46266 test -n "\$AWK" || AWK=awk 46267 _ACEOF 46268 46269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46270 # The default lists apply if the user does not specify any file. 46271 ac_need_defaults=: 46272 while test $# != 0 46273 do 46274 case $1 in 46275 --*=?*) 46276 ac_option=`expr "X$1" : 'X\([^=]*\)='` 46277 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 46278 ac_shift=: 46279 ;; 46280 --*=) 46281 ac_option=`expr "X$1" : 'X\([^=]*\)='` 46282 ac_optarg= 46283 ac_shift=: 46284 ;; 46285 *) 46286 ac_option=$1 46287 ac_optarg=$2 46288 ac_shift=shift 46289 ;; 46290 esac 46291 46292 case $ac_option in 46293 # Handling of the options. 46294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 46295 ac_cs_recheck=: ;; 46296 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 46297 printf "%s\n" "$ac_cs_version"; exit ;; 46298 --config | --confi | --conf | --con | --co | --c ) 46299 printf "%s\n" "$ac_cs_config"; exit ;; 46300 --debug | --debu | --deb | --de | --d | -d ) 46301 debug=: ;; 46302 --file | --fil | --fi | --f ) 46303 $ac_shift 46304 case $ac_optarg in 46305 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 46306 '') as_fn_error $? "missing file argument" ;; 46307 esac 46308 as_fn_append CONFIG_FILES " '$ac_optarg'" 46309 ac_need_defaults=false;; 46310 --header | --heade | --head | --hea ) 46311 $ac_shift 46312 case $ac_optarg in 46313 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 46314 esac 46315 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 46316 ac_need_defaults=false;; 46317 --he | --h) 46318 # Conflict between --help and --header 46319 as_fn_error $? "ambiguous option: \`$1' 46320 Try \`$0 --help' for more information.";; 46321 --help | --hel | -h ) 46322 printf "%s\n" "$ac_cs_usage"; exit ;; 46323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 46324 | -silent | --silent | --silen | --sile | --sil | --si | --s) 46325 ac_cs_silent=: ;; 46326 46327 # This is an error. 46328 -*) as_fn_error $? "unrecognized option: \`$1' 46329 Try \`$0 --help' for more information." ;; 46330 46331 *) as_fn_append ac_config_targets " $1" 46332 ac_need_defaults=false ;; 46333 46334 esac 46335 shift 46336 done 46337 46338 ac_configure_extra_args= 46339 46340 if $ac_cs_silent; then 46341 exec 6>/dev/null 46342 ac_configure_extra_args="$ac_configure_extra_args --silent" 46343 fi 46344 46345 _ACEOF 46346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 46347 if \$ac_cs_recheck; then 46348 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 46349 shift 46350 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 46351 CONFIG_SHELL='$SHELL' 46352 export CONFIG_SHELL 46353 exec "\$@" 46354 fi 46355 46356 _ACEOF 46357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46358 exec 5>>config.log 46359 { 46360 echo 46361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 46362 ## Running $as_me. ## 46363 _ASBOX 46364 printf "%s\n" "$ac_log" 46365 } >&5 46366 46367 _ACEOF 46368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 46369 # 46370 # INIT-COMMANDS 46371 # 46372 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 46373 46374 46375 # The HP-UX ksh and POSIX shell print the target directory to stdout 46376 # if CDPATH is set. 46377 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 46378 46379 sed_quote_subst='$sed_quote_subst' 46380 double_quote_subst='$double_quote_subst' 46381 delay_variable_subst='$delay_variable_subst' 46382 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 46383 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 46384 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 46385 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 46386 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 46387 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 46388 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 46389 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 46390 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 46391 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 46392 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 46393 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 46394 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 46395 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 46396 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 46397 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 46398 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 46399 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 46400 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 46401 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 46402 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 46403 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 46404 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 46405 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 46406 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 46407 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 46408 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 46409 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 46410 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 46411 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 46412 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 46413 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 46414 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 46415 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 46416 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 46417 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 46418 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 46419 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 46420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 46421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 46422 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 46423 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 46424 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 46425 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 46426 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 46427 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 46428 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 46429 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 46430 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 46431 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 46432 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 46433 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 46434 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 46435 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 46436 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 46437 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 46438 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 46439 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 46440 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 46441 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 46442 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 46443 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"`' 46444 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 46445 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 46446 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 46447 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 46448 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 46449 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 46450 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 46451 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 46452 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 46453 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 46454 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 46455 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 46456 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 46457 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 46458 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 46459 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 46460 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 46461 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 46462 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 46463 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 46464 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 46465 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 46466 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 46467 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 46468 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 46469 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 46470 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 46471 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 46472 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 46473 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 46474 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 46475 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 46476 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 46477 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 46478 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 46479 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 46480 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 46481 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 46482 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 46483 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 46484 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 46485 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 46486 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 46487 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 46488 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 46489 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 46490 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 46491 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 46492 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 46493 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 46494 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 46495 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 46496 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 46497 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 46498 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 46499 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 46500 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 46501 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 46502 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 46503 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 46504 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 46505 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 46506 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 46507 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 46508 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 46509 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 46510 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 46511 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 46512 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 46513 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 46514 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 46515 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 46516 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 46517 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 46518 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 46519 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 46520 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 46521 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 46522 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 46523 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 46524 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 46525 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 46526 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 46527 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 46528 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 46529 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 46530 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 46531 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 46532 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 46533 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 46534 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 46535 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 46536 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 46537 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 46538 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 46539 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 46540 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 46541 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 46542 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 46543 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 46544 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 46545 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 46546 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 46547 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 46548 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 46549 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 46550 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 46551 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 46552 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 46553 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 46554 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 46555 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 46556 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 46557 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 46558 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 46559 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 46560 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 46561 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 46562 46563 LTCC='$LTCC' 46564 LTCFLAGS='$LTCFLAGS' 46565 compiler='$compiler_DEFAULT' 46566 46567 # A function that is used when there is no print builtin or printf. 46568 func_fallback_echo () 46569 { 46570 eval 'cat <<_LTECHO_EOF 46571 \$1 46572 _LTECHO_EOF' 46573 } 46574 46575 # Quote evaled strings. 46576 for var in AS \ 46577 DLLTOOL \ 46578 OBJDUMP \ 46579 SHELL \ 46580 ECHO \ 46581 PATH_SEPARATOR \ 46582 SED \ 46583 GREP \ 46584 EGREP \ 46585 FGREP \ 46586 LD \ 46587 NM \ 46588 LN_S \ 46589 lt_SP2NL \ 46590 lt_NL2SP \ 46591 reload_flag \ 46592 FILECMD \ 46593 deplibs_check_method \ 46594 file_magic_cmd \ 46595 file_magic_glob \ 46596 want_nocaseglob \ 46597 sharedlib_from_linklib_cmd \ 46598 AR \ 46599 archiver_list_spec \ 46600 STRIP \ 46601 RANLIB \ 46602 CC \ 46603 CFLAGS \ 46604 compiler \ 46605 lt_cv_sys_global_symbol_pipe \ 46606 lt_cv_sys_global_symbol_to_cdecl \ 46607 lt_cv_sys_global_symbol_to_import \ 46608 lt_cv_sys_global_symbol_to_c_name_address \ 46609 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 46610 lt_cv_nm_interface \ 46611 nm_file_list_spec \ 46612 lt_cv_truncate_bin \ 46613 lt_prog_compiler_no_builtin_flag \ 46614 lt_prog_compiler_pic \ 46615 lt_prog_compiler_wl \ 46616 lt_prog_compiler_static \ 46617 lt_cv_prog_compiler_c_o \ 46618 need_locks \ 46619 MANIFEST_TOOL \ 46620 DSYMUTIL \ 46621 NMEDIT \ 46622 LIPO \ 46623 OTOOL \ 46624 OTOOL64 \ 46625 shrext_cmds \ 46626 export_dynamic_flag_spec \ 46627 whole_archive_flag_spec \ 46628 compiler_needs_object \ 46629 with_gnu_ld \ 46630 allow_undefined_flag \ 46631 no_undefined_flag \ 46632 hardcode_libdir_flag_spec \ 46633 hardcode_libdir_separator \ 46634 exclude_expsyms \ 46635 include_expsyms \ 46636 file_list_spec \ 46637 variables_saved_for_relink \ 46638 libname_spec \ 46639 library_names_spec \ 46640 soname_spec \ 46641 install_override_mode \ 46642 finish_eval \ 46643 old_striplib \ 46644 striplib \ 46645 LD_RC \ 46646 reload_flag_RC \ 46647 compiler_RC \ 46648 lt_prog_compiler_no_builtin_flag_RC \ 46649 lt_prog_compiler_pic_RC \ 46650 lt_prog_compiler_wl_RC \ 46651 lt_prog_compiler_static_RC \ 46652 lt_cv_prog_compiler_c_o_RC \ 46653 export_dynamic_flag_spec_RC \ 46654 whole_archive_flag_spec_RC \ 46655 compiler_needs_object_RC \ 46656 with_gnu_ld_RC \ 46657 allow_undefined_flag_RC \ 46658 no_undefined_flag_RC \ 46659 hardcode_libdir_flag_spec_RC \ 46660 hardcode_libdir_separator_RC \ 46661 exclude_expsyms_RC \ 46662 include_expsyms_RC \ 46663 file_list_spec_RC; do 46664 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 46665 *[\\\\\\\`\\"\\\$]*) 46666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 46667 ;; 46668 *) 46669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 46670 ;; 46671 esac 46672 done 46673 46674 # Double-quote double-evaled strings. 46675 for var in reload_cmds \ 46676 old_postinstall_cmds \ 46677 old_postuninstall_cmds \ 46678 old_archive_cmds \ 46679 extract_expsyms_cmds \ 46680 old_archive_from_new_cmds \ 46681 old_archive_from_expsyms_cmds \ 46682 archive_cmds \ 46683 archive_expsym_cmds \ 46684 module_cmds \ 46685 module_expsym_cmds \ 46686 export_symbols_cmds \ 46687 prelink_cmds \ 46688 postlink_cmds \ 46689 postinstall_cmds \ 46690 postuninstall_cmds \ 46691 finish_cmds \ 46692 sys_lib_search_path_spec \ 46693 configure_time_dlsearch_path \ 46694 configure_time_lt_sys_library_path \ 46695 reload_cmds_RC \ 46696 old_archive_cmds_RC \ 46697 old_archive_from_new_cmds_RC \ 46698 old_archive_from_expsyms_cmds_RC \ 46699 archive_cmds_RC \ 46700 archive_expsym_cmds_RC \ 46701 module_cmds_RC \ 46702 module_expsym_cmds_RC \ 46703 export_symbols_cmds_RC \ 46704 prelink_cmds_RC \ 46705 postlink_cmds_RC; do 46706 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 46707 *[\\\\\\\`\\"\\\$]*) 46708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 46709 ;; 46710 *) 46711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 46712 ;; 46713 esac 46714 done 46715 46716 ac_aux_dir='$ac_aux_dir' 46717 46718 # See if we are running on zsh, and set the options that allow our 46719 # commands through without removal of \ escapes INIT. 46720 if test -n "\${ZSH_VERSION+set}"; then 46721 setopt NO_GLOB_SUBST 46722 fi 46723 46724 46725 PACKAGE='$PACKAGE' 46726 VERSION='$VERSION' 46727 RM='$RM' 46728 ofile='$ofile' 46729 46730 46731 46732 46733 46734 46735 _ACEOF 46736 46737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46738 46739 # Handling of arguments. 46740 for ac_config_target in $ac_config_targets 46741 do 46742 case $ac_config_target in 46743 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;; 46744 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 46745 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 46746 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 46747 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 46748 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;; 46749 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;; 46750 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;; 46751 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;; 46752 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 46753 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;; 46754 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 46755 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 46756 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 46757 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;; 46758 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 46759 "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;; 46760 "tests/configurehelp.pm") CONFIG_FILES="$CONFIG_FILES tests/configurehelp.pm" ;; 46761 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;; 46762 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;; 46763 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;; 46764 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 46765 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 46766 "tests/tunit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tunit/Makefile" ;; 46767 "tests/client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/client/Makefile" ;; 46768 "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;; 46769 "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;; 46770 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 46771 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;; 46772 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;; 46773 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;; 46774 46775 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 46776 esac 46777 done 46778 46779 46780 # If the user did not use the arguments to specify the items to instantiate, 46781 # then the envvar interface is used. Set only those that are not. 46782 # We use the long form for the default assignment because of an extremely 46783 # bizarre bug on SunOS 4.1.3. 46784 if $ac_need_defaults; then 46785 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 46786 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 46787 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 46788 fi 46789 46790 # Have a temporary directory for convenience. Make it in the build tree 46791 # simply because there is no reason against having it here, and in addition, 46792 # creating and moving files from /tmp can sometimes cause problems. 46793 # Hook for its removal unless debugging. 46794 # Note that there is a small window in which the directory will not be cleaned: 46795 # after its creation but before its name has been assigned to `$tmp'. 46796 $debug || 46797 { 46798 tmp= ac_tmp= 46799 trap 'exit_status=$? 46800 : "${ac_tmp:=$tmp}" 46801 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 46802 ' 0 46803 trap 'as_fn_exit 1' 1 2 13 15 46804 } 46805 # Create a (secure) tmp directory for tmp files. 46806 46807 { 46808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 46809 test -d "$tmp" 46810 } || 46811 { 46812 tmp=./conf$$-$RANDOM 46813 (umask 077 && mkdir "$tmp") 46814 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 46815 ac_tmp=$tmp 46816 46817 # Set up the scripts for CONFIG_FILES section. 46818 # No need to generate them if there are no CONFIG_FILES. 46819 # This happens for instance with `./config.status config.h'. 46820 if test -n "$CONFIG_FILES"; then 46821 46822 46823 ac_cr=`echo X | tr X '\015'` 46824 # On cygwin, bash can eat \r inside `` if the user requested igncr. 46825 # But we know of no other shell where ac_cr would be empty at this 46826 # point, so we can use a bashism as a fallback. 46827 if test "x$ac_cr" = x; then 46828 eval ac_cr=\$\'\\r\' 46829 fi 46830 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 46831 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 46832 ac_cs_awk_cr='\\r' 46833 else 46834 ac_cs_awk_cr=$ac_cr 46835 fi 46836 46837 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 46838 _ACEOF 46839 46840 46841 { 46842 echo "cat >conf$$subs.awk <<_ACEOF" && 46843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 46844 echo "_ACEOF" 46845 } >conf$$subs.sh || 46846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 46847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 46848 ac_delim='%!_!# ' 46849 for ac_last_try in false false false false false :; do 46850 . ./conf$$subs.sh || 46851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 46852 46853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 46854 if test $ac_delim_n = $ac_delim_num; then 46855 break 46856 elif $ac_last_try; then 46857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 46858 else 46859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 46860 fi 46861 done 46862 rm -f conf$$subs.sh 46863 46864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 46865 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 46866 _ACEOF 46867 sed -n ' 46868 h 46869 s/^/S["/; s/!.*/"]=/ 46870 p 46871 g 46872 s/^[^!]*!// 46873 :repl 46874 t repl 46875 s/'"$ac_delim"'$// 46876 t delim 46877 :nl 46878 h 46879 s/\(.\{148\}\)..*/\1/ 46880 t more1 46881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 46882 p 46883 n 46884 b repl 46885 :more1 46886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 46887 p 46888 g 46889 s/.\{148\}// 46890 t nl 46891 :delim 46892 h 46893 s/\(.\{148\}\)..*/\1/ 46894 t more2 46895 s/["\\]/\\&/g; s/^/"/; s/$/"/ 46896 p 46897 b 46898 :more2 46899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 46900 p 46901 g 46902 s/.\{148\}// 46903 t delim 46904 ' <conf$$subs.awk | sed ' 46905 /^[^""]/{ 46906 N 46907 s/\n// 46908 } 46909 ' >>$CONFIG_STATUS || ac_write_fail=1 46910 rm -f conf$$subs.awk 46911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 46912 _ACAWK 46913 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 46914 for (key in S) S_is_set[key] = 1 46915 FS = "" 46916 46917 } 46918 { 46919 line = $ 0 46920 nfields = split(line, field, "@") 46921 substed = 0 46922 len = length(field[1]) 46923 for (i = 2; i < nfields; i++) { 46924 key = field[i] 46925 keylen = length(key) 46926 if (S_is_set[key]) { 46927 value = S[key] 46928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 46929 len += length(value) + length(field[++i]) 46930 substed = 1 46931 } else 46932 len += 1 + keylen 46933 } 46934 46935 print line 46936 } 46937 46938 _ACAWK 46939 _ACEOF 46940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46941 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 46942 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 46943 else 46944 cat 46945 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 46946 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 46947 _ACEOF 46948 46949 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 46950 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 46951 # trailing colons and then remove the whole line if VPATH becomes empty 46952 # (actually we leave an empty line to preserve line numbers). 46953 if test "x$srcdir" = x.; then 46954 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 46955 h 46956 s/// 46957 s/^/:/ 46958 s/[ ]*$/:/ 46959 s/:\$(srcdir):/:/g 46960 s/:\${srcdir}:/:/g 46961 s/:@srcdir@:/:/g 46962 s/^:*// 46963 s/:*$// 46964 x 46965 s/\(=[ ]*\).*/\1/ 46966 G 46967 s/\n// 46968 s/^[^=]*=[ ]*$// 46969 }' 46970 fi 46971 46972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 46973 fi # test -n "$CONFIG_FILES" 46974 46975 # Set up the scripts for CONFIG_HEADERS section. 46976 # No need to generate them if there are no CONFIG_HEADERS. 46977 # This happens for instance with `./config.status Makefile'. 46978 if test -n "$CONFIG_HEADERS"; then 46979 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 46980 BEGIN { 46981 _ACEOF 46982 46983 # Transform confdefs.h into an awk script `defines.awk', embedded as 46984 # here-document in config.status, that substitutes the proper values into 46985 # config.h.in to produce config.h. 46986 46987 # Create a delimiter string that does not exist in confdefs.h, to ease 46988 # handling of long lines. 46989 ac_delim='%!_!# ' 46990 for ac_last_try in false false :; do 46991 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 46992 if test -z "$ac_tt"; then 46993 break 46994 elif $ac_last_try; then 46995 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 46996 else 46997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 46998 fi 46999 done 47000 47001 # For the awk script, D is an array of macro values keyed by name, 47002 # likewise P contains macro parameters if any. Preserve backslash 47003 # newline sequences. 47004 47005 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 47006 sed -n ' 47007 s/.\{148\}/&'"$ac_delim"'/g 47008 t rset 47009 :rset 47010 s/^[ ]*#[ ]*define[ ][ ]*/ / 47011 t def 47012 d 47013 :def 47014 s/\\$// 47015 t bsnl 47016 s/["\\]/\\&/g 47017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 47018 D["\1"]=" \3"/p 47019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 47020 d 47021 :bsnl 47022 s/["\\]/\\&/g 47023 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 47024 D["\1"]=" \3\\\\\\n"\\/p 47025 t cont 47026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 47027 t cont 47028 d 47029 :cont 47030 n 47031 s/.\{148\}/&'"$ac_delim"'/g 47032 t clear 47033 :clear 47034 s/\\$// 47035 t bsnlc 47036 s/["\\]/\\&/g; s/^/"/; s/$/"/p 47037 d 47038 :bsnlc 47039 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 47040 b cont 47041 ' <confdefs.h | sed ' 47042 s/'"$ac_delim"'/"\\\ 47043 "/g' >>$CONFIG_STATUS || ac_write_fail=1 47044 47045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47046 for (key in D) D_is_set[key] = 1 47047 FS = "" 47048 } 47049 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 47050 line = \$ 0 47051 split(line, arg, " ") 47052 if (arg[1] == "#") { 47053 defundef = arg[2] 47054 mac1 = arg[3] 47055 } else { 47056 defundef = substr(arg[1], 2) 47057 mac1 = arg[2] 47058 } 47059 split(mac1, mac2, "(") #) 47060 macro = mac2[1] 47061 prefix = substr(line, 1, index(line, defundef) - 1) 47062 if (D_is_set[macro]) { 47063 # Preserve the white space surrounding the "#". 47064 print prefix "define", macro P[macro] D[macro] 47065 next 47066 } else { 47067 # Replace #undef with comments. This is necessary, for example, 47068 # in the case of _POSIX_SOURCE, which is predefined and required 47069 # on some systems where configure will not decide to define it. 47070 if (defundef == "undef") { 47071 print "/*", prefix defundef, macro, "*/" 47072 next 47073 } 47074 } 47075 } 47076 { print } 47077 _ACAWK 47078 _ACEOF 47079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47080 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 47081 fi # test -n "$CONFIG_HEADERS" 47082 47083 47084 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 47085 shift 47086 for ac_tag 47087 do 47088 case $ac_tag in 47089 :[FHLC]) ac_mode=$ac_tag; continue;; 47090 esac 47091 case $ac_mode$ac_tag in 47092 :[FHL]*:*);; 47093 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 47094 :[FH]-) ac_tag=-:-;; 47095 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 47096 esac 47097 ac_save_IFS=$IFS 47098 IFS=: 47099 set x $ac_tag 47100 IFS=$ac_save_IFS 47101 shift 47102 ac_file=$1 47103 shift 47104 47105 case $ac_mode in 47106 :L) ac_source=$1;; 47107 :[FH]) 47108 ac_file_inputs= 47109 for ac_f 47110 do 47111 case $ac_f in 47112 -) ac_f="$ac_tmp/stdin";; 47113 *) # Look for the file first in the build tree, then in the source tree 47114 # (if the path is not absolute). The absolute path cannot be DOS-style, 47115 # because $ac_f cannot contain `:'. 47116 test -f "$ac_f" || 47117 case $ac_f in 47118 [\\/$]*) false;; 47119 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 47120 esac || 47121 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 47122 esac 47123 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 47124 as_fn_append ac_file_inputs " '$ac_f'" 47125 done 47126 47127 # Let's still pretend it is `configure' which instantiates (i.e., don't 47128 # use $as_me), people would be surprised to read: 47129 # /* config.h. Generated by config.status. */ 47130 configure_input='Generated from '` 47131 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 47132 `' by configure.' 47133 if test x"$ac_file" != x-; then 47134 configure_input="$ac_file. $configure_input" 47135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 47136 printf "%s\n" "$as_me: creating $ac_file" >&6;} 47137 fi 47138 # Neutralize special characters interpreted by sed in replacement strings. 47139 case $configure_input in #( 47140 *\&* | *\|* | *\\* ) 47141 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 47142 sed 's/[\\\\&|]/\\\\&/g'`;; #( 47143 *) ac_sed_conf_input=$configure_input;; 47144 esac 47145 47146 case $ac_tag in 47147 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 47148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 47149 esac 47150 ;; 47151 esac 47152 47153 ac_dir=`$as_dirname -- "$ac_file" || 47154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47155 X"$ac_file" : 'X\(//\)[^/]' \| \ 47156 X"$ac_file" : 'X\(//\)$' \| \ 47157 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 47158 printf "%s\n" X"$ac_file" | 47159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47160 s//\1/ 47161 q 47162 } 47163 /^X\(\/\/\)[^/].*/{ 47164 s//\1/ 47165 q 47166 } 47167 /^X\(\/\/\)$/{ 47168 s//\1/ 47169 q 47170 } 47171 /^X\(\/\).*/{ 47172 s//\1/ 47173 q 47174 } 47175 s/.*/./; q'` 47176 as_dir="$ac_dir"; as_fn_mkdir_p 47177 ac_builddir=. 47178 47179 case "$ac_dir" in 47180 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 47181 *) 47182 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 47183 # A ".." for each directory in $ac_dir_suffix. 47184 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 47185 case $ac_top_builddir_sub in 47186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 47187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 47188 esac ;; 47189 esac 47190 ac_abs_top_builddir=$ac_pwd 47191 ac_abs_builddir=$ac_pwd$ac_dir_suffix 47192 # for backward compatibility: 47193 ac_top_builddir=$ac_top_build_prefix 47194 47195 case $srcdir in 47196 .) # We are building in place. 47197 ac_srcdir=. 47198 ac_top_srcdir=$ac_top_builddir_sub 47199 ac_abs_top_srcdir=$ac_pwd ;; 47200 [\\/]* | ?:[\\/]* ) # Absolute name. 47201 ac_srcdir=$srcdir$ac_dir_suffix; 47202 ac_top_srcdir=$srcdir 47203 ac_abs_top_srcdir=$srcdir ;; 47204 *) # Relative name. 47205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 47206 ac_top_srcdir=$ac_top_build_prefix$srcdir 47207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 47208 esac 47209 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 47210 47211 47212 case $ac_mode in 47213 :F) 47214 # 47215 # CONFIG_FILE 47216 # 47217 47218 case $INSTALL in 47219 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 47220 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 47221 esac 47222 ac_MKDIR_P=$MKDIR_P 47223 case $MKDIR_P in 47224 [\\/$]* | ?:[\\/]* ) ;; 47225 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 47226 esac 47227 _ACEOF 47228 47229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47230 # If the template does not know about datarootdir, expand it. 47231 # FIXME: This hack should be removed a few years after 2.60. 47232 ac_datarootdir_hack=; ac_datarootdir_seen= 47233 ac_sed_dataroot=' 47234 /datarootdir/ { 47235 p 47236 q 47237 } 47238 /@datadir@/p 47239 /@docdir@/p 47240 /@infodir@/p 47241 /@localedir@/p 47242 /@mandir@/p' 47243 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 47244 *datarootdir*) ac_datarootdir_seen=yes;; 47245 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 47246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 47247 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 47248 _ACEOF 47249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47250 ac_datarootdir_hack=' 47251 s&@datadir@&$datadir&g 47252 s&@docdir@&$docdir&g 47253 s&@infodir@&$infodir&g 47254 s&@localedir@&$localedir&g 47255 s&@mandir@&$mandir&g 47256 s&\\\${datarootdir}&$datarootdir&g' ;; 47257 esac 47258 _ACEOF 47259 47260 # Neutralize VPATH when `$srcdir' = `.'. 47261 # Shell code in configure.ac might set extrasub. 47262 # FIXME: do we really want to maintain this feature? 47263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47264 ac_sed_extra="$ac_vpsub 47265 $extrasub 47266 _ACEOF 47267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47268 :t 47269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 47270 s|@configure_input@|$ac_sed_conf_input|;t t 47271 s&@top_builddir@&$ac_top_builddir_sub&;t t 47272 s&@top_build_prefix@&$ac_top_build_prefix&;t t 47273 s&@srcdir@&$ac_srcdir&;t t 47274 s&@abs_srcdir@&$ac_abs_srcdir&;t t 47275 s&@top_srcdir@&$ac_top_srcdir&;t t 47276 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 47277 s&@builddir@&$ac_builddir&;t t 47278 s&@abs_builddir@&$ac_abs_builddir&;t t 47279 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 47280 s&@INSTALL@&$ac_INSTALL&;t t 47281 s&@MKDIR_P@&$ac_MKDIR_P&;t t 47282 $ac_datarootdir_hack 47283 " 47284 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 47285 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47286 47287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 47288 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 47289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 47290 "$ac_tmp/out"`; test -z "$ac_out"; } && 47291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 47292 which seems to be undefined. Please make sure it is defined" >&5 47293 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 47294 which seems to be undefined. Please make sure it is defined" >&2;} 47295 47296 rm -f "$ac_tmp/stdin" 47297 case $ac_file in 47298 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 47299 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 47300 esac \ 47301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47302 ;; 47303 :H) 47304 # 47305 # CONFIG_HEADER 47306 # 47307 if test x"$ac_file" != x-; then 47308 { 47309 printf "%s\n" "/* $configure_input */" >&1 \ 47310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 47311 } >"$ac_tmp/config.h" \ 47312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47313 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 47314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 47315 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 47316 else 47317 rm -f "$ac_file" 47318 mv "$ac_tmp/config.h" "$ac_file" \ 47319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47320 fi 47321 else 47322 printf "%s\n" "/* $configure_input */" >&1 \ 47323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 47324 || as_fn_error $? "could not create -" "$LINENO" 5 47325 fi 47326 # Compute "$ac_file"'s index in $config_headers. 47327 _am_arg="$ac_file" 47328 _am_stamp_count=1 47329 for _am_header in $config_headers :; do 47330 case $_am_header in 47331 $_am_arg | $_am_arg:* ) 47332 break ;; 47333 * ) 47334 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 47335 esac 47336 done 47337 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 47338 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47339 X"$_am_arg" : 'X\(//\)[^/]' \| \ 47340 X"$_am_arg" : 'X\(//\)$' \| \ 47341 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 47342 printf "%s\n" X"$_am_arg" | 47343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47344 s//\1/ 47345 q 47346 } 47347 /^X\(\/\/\)[^/].*/{ 47348 s//\1/ 47349 q 47350 } 47351 /^X\(\/\/\)$/{ 47352 s//\1/ 47353 q 47354 } 47355 /^X\(\/\).*/{ 47356 s//\1/ 47357 q 47358 } 47359 s/.*/./; q'`/stamp-h$_am_stamp_count 47360 ;; 47361 47362 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 47363 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 47364 ;; 47365 esac 47366 47367 47368 case $ac_file$ac_mode in 47369 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 47370 # Older Autoconf quotes --file arguments for eval, but not when files 47371 # are listed without --file. Let's play safe and only enable the eval 47372 # if we detect the quoting. 47373 # TODO: see whether this extra hack can be removed once we start 47374 # requiring Autoconf 2.70 or later. 47375 case $CONFIG_FILES in #( 47376 *\'*) : 47377 eval set x "$CONFIG_FILES" ;; #( 47378 *) : 47379 set x $CONFIG_FILES ;; #( 47380 *) : 47381 ;; 47382 esac 47383 shift 47384 # Used to flag and report bootstrapping failures. 47385 am_rc=0 47386 for am_mf 47387 do 47388 # Strip MF so we end up with the name of the file. 47389 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 47390 # Check whether this is an Automake generated Makefile which includes 47391 # dependency-tracking related rules and includes. 47392 # Grep'ing the whole file directly is not great: AIX grep has a line 47393 # limit of 2048, but all sed's we know have understand at least 4000. 47394 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 47395 || continue 47396 am_dirpart=`$as_dirname -- "$am_mf" || 47397 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47398 X"$am_mf" : 'X\(//\)[^/]' \| \ 47399 X"$am_mf" : 'X\(//\)$' \| \ 47400 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 47401 printf "%s\n" X"$am_mf" | 47402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47403 s//\1/ 47404 q 47405 } 47406 /^X\(\/\/\)[^/].*/{ 47407 s//\1/ 47408 q 47409 } 47410 /^X\(\/\/\)$/{ 47411 s//\1/ 47412 q 47413 } 47414 /^X\(\/\).*/{ 47415 s//\1/ 47416 q 47417 } 47418 s/.*/./; q'` 47419 am_filepart=`$as_basename -- "$am_mf" || 47420 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 47421 X"$am_mf" : 'X\(//\)$' \| \ 47422 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 47423 printf "%s\n" X/"$am_mf" | 47424 sed '/^.*\/\([^/][^/]*\)\/*$/{ 47425 s//\1/ 47426 q 47427 } 47428 /^X\/\(\/\/\)$/{ 47429 s//\1/ 47430 q 47431 } 47432 /^X\/\(\/\).*/{ 47433 s//\1/ 47434 q 47435 } 47436 s/.*/./; q'` 47437 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 47438 && sed -e '/# am--include-marker/d' "$am_filepart" \ 47439 | $MAKE -f - am--depfiles" >&5 47440 (cd "$am_dirpart" \ 47441 && sed -e '/# am--include-marker/d' "$am_filepart" \ 47442 | $MAKE -f - am--depfiles) >&5 2>&5 47443 ac_status=$? 47444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47445 (exit $ac_status); } || am_rc=$? 47446 done 47447 if test $am_rc -ne 0; then 47448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47449 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 47450 as_fn_error $? "Something went wrong bootstrapping makefile fragments 47451 for automatic dependency tracking. If GNU make was not used, consider 47452 re-running the configure script with MAKE=\"gmake\" (or whatever is 47453 necessary). You can also try re-running configure with the 47454 '--disable-dependency-tracking' option to at least be able to build 47455 the package (albeit without support for automatic dependency tracking). 47456 See \`config.log' for more details" "$LINENO" 5; } 47457 fi 47458 { am_dirpart=; unset am_dirpart;} 47459 { am_filepart=; unset am_filepart;} 47460 { am_mf=; unset am_mf;} 47461 { am_rc=; unset am_rc;} 47462 rm -f conftest-deps.mk 47463 } 47464 ;; 47465 "libtool":C) 47466 47467 # See if we are running on zsh, and set the options that allow our 47468 # commands through without removal of \ escapes. 47469 if test -n "${ZSH_VERSION+set}"; then 47470 setopt NO_GLOB_SUBST 47471 fi 47472 47473 cfgfile=${ofile}T 47474 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 47475 $RM "$cfgfile" 47476 47477 cat <<_LT_EOF >> "$cfgfile" 47478 #! $SHELL 47479 # Generated automatically by $as_me ($PACKAGE) $VERSION 47480 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 47481 47482 # Provide generalized library-building support services. 47483 # Written by Gordon Matzigkeit, 1996 47484 47485 # Copyright (C) 2014 Free Software Foundation, Inc. 47486 # This is free software; see the source for copying conditions. There is NO 47487 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47488 47489 # GNU Libtool is free software; you can redistribute it and/or modify 47490 # it under the terms of the GNU General Public License as published by 47491 # the Free Software Foundation; either version 2 of of the License, or 47492 # (at your option) any later version. 47493 # 47494 # As a special exception to the GNU General Public License, if you 47495 # distribute this file as part of a program or library that is built 47496 # using GNU Libtool, you may include this file under the same 47497 # distribution terms that you use for the rest of that program. 47498 # 47499 # GNU Libtool is distributed in the hope that it will be useful, but 47500 # WITHOUT ANY WARRANTY; without even the implied warranty of 47501 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 47502 # GNU General Public License for more details. 47503 # 47504 # You should have received a copy of the GNU General Public License 47505 # along with this program. If not, see <http://www.gnu.org/licenses/>. 47506 47507 47508 # The names of the tagged configurations supported by this script. 47509 available_tags='RC ' 47510 47511 # Configured defaults for sys_lib_dlsearch_path munging. 47512 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 47513 47514 # ### BEGIN LIBTOOL CONFIG 47515 47516 # Which release of libtool.m4 was used? 47517 macro_version=$macro_version 47518 macro_revision=$macro_revision 47519 47520 # Assembler program. 47521 AS=$lt_AS 47522 47523 # DLL creation program. 47524 DLLTOOL=$lt_DLLTOOL 47525 47526 # Object dumper program. 47527 OBJDUMP=$lt_OBJDUMP 47528 47529 # Whether or not to build shared libraries. 47530 build_libtool_libs=$enable_shared 47531 47532 # Whether or not to build static libraries. 47533 build_old_libs=$enable_static 47534 47535 # What type of objects to build. 47536 pic_mode=$pic_mode 47537 47538 # Whether or not to optimize for fast installation. 47539 fast_install=$enable_fast_install 47540 47541 # Shared archive member basename,for filename based shared library versioning on AIX. 47542 shared_archive_member_spec=$shared_archive_member_spec 47543 47544 # Shell to use when invoking shell scripts. 47545 SHELL=$lt_SHELL 47546 47547 # An echo program that protects backslashes. 47548 ECHO=$lt_ECHO 47549 47550 # The PATH separator for the build system. 47551 PATH_SEPARATOR=$lt_PATH_SEPARATOR 47552 47553 # The host system. 47554 host_alias=$host_alias 47555 host=$host 47556 host_os=$host_os 47557 47558 # The build system. 47559 build_alias=$build_alias 47560 build=$build 47561 build_os=$build_os 47562 47563 # A sed program that does not truncate output. 47564 SED=$lt_SED 47565 47566 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 47567 Xsed="\$SED -e 1s/^X//" 47568 47569 # A grep program that handles long lines. 47570 GREP=$lt_GREP 47571 47572 # An ERE matcher. 47573 EGREP=$lt_EGREP 47574 47575 # A literal string matcher. 47576 FGREP=$lt_FGREP 47577 47578 # A BSD- or MS-compatible name lister. 47579 NM=$lt_NM 47580 47581 # Whether we need soft or hard links. 47582 LN_S=$lt_LN_S 47583 47584 # What is the maximum length of a command? 47585 max_cmd_len=$max_cmd_len 47586 47587 # Object file suffix (normally "o"). 47588 objext=$ac_objext 47589 47590 # Executable file suffix (normally ""). 47591 exeext=$exeext 47592 47593 # whether the shell understands "unset". 47594 lt_unset=$lt_unset 47595 47596 # turn spaces into newlines. 47597 SP2NL=$lt_lt_SP2NL 47598 47599 # turn newlines into spaces. 47600 NL2SP=$lt_lt_NL2SP 47601 47602 # convert \$build file names to \$host format. 47603 to_host_file_cmd=$lt_cv_to_host_file_cmd 47604 47605 # convert \$build files to toolchain format. 47606 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 47607 47608 # A file(cmd) program that detects file types. 47609 FILECMD=$lt_FILECMD 47610 47611 # Method to check whether dependent libraries are shared objects. 47612 deplibs_check_method=$lt_deplibs_check_method 47613 47614 # Command to use when deplibs_check_method = "file_magic". 47615 file_magic_cmd=$lt_file_magic_cmd 47616 47617 # How to find potential files when deplibs_check_method = "file_magic". 47618 file_magic_glob=$lt_file_magic_glob 47619 47620 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 47621 want_nocaseglob=$lt_want_nocaseglob 47622 47623 # Command to associate shared and link libraries. 47624 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 47625 47626 # The archiver. 47627 AR=$lt_AR 47628 47629 # Flags to create an archive (by configure). 47630 lt_ar_flags=$lt_ar_flags 47631 47632 # Flags to create an archive. 47633 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 47634 47635 # How to feed a file listing to the archiver. 47636 archiver_list_spec=$lt_archiver_list_spec 47637 47638 # A symbol stripping program. 47639 STRIP=$lt_STRIP 47640 47641 # Commands used to install an old-style archive. 47642 RANLIB=$lt_RANLIB 47643 old_postinstall_cmds=$lt_old_postinstall_cmds 47644 old_postuninstall_cmds=$lt_old_postuninstall_cmds 47645 47646 # Whether to use a lock for old archive extraction. 47647 lock_old_archive_extraction=$lock_old_archive_extraction 47648 47649 # A C compiler. 47650 LTCC=$lt_CC 47651 47652 # LTCC compiler flags. 47653 LTCFLAGS=$lt_CFLAGS 47654 47655 # Take the output of nm and produce a listing of raw symbols and C names. 47656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 47657 47658 # Transform the output of nm in a proper C declaration. 47659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 47660 47661 # Transform the output of nm into a list of symbols to manually relocate. 47662 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 47663 47664 # Transform the output of nm in a C name address pair. 47665 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 47666 47667 # Transform the output of nm in a C name address pair when lib prefix is needed. 47668 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 47669 47670 # The name lister interface. 47671 nm_interface=$lt_lt_cv_nm_interface 47672 47673 # Specify filename containing input files for \$NM. 47674 nm_file_list_spec=$lt_nm_file_list_spec 47675 47676 # The root where to search for dependent libraries,and where our libraries should be installed. 47677 lt_sysroot=$lt_sysroot 47678 47679 # Command to truncate a binary pipe. 47680 lt_truncate_bin=$lt_lt_cv_truncate_bin 47681 47682 # The name of the directory that contains temporary libtool files. 47683 objdir=$objdir 47684 47685 # Used to examine libraries when file_magic_cmd begins with "file". 47686 MAGIC_CMD=$MAGIC_CMD 47687 47688 # Must we lock files when doing compilation? 47689 need_locks=$lt_need_locks 47690 47691 # Manifest tool. 47692 MANIFEST_TOOL=$lt_MANIFEST_TOOL 47693 47694 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 47695 DSYMUTIL=$lt_DSYMUTIL 47696 47697 # Tool to change global to local symbols on Mac OS X. 47698 NMEDIT=$lt_NMEDIT 47699 47700 # Tool to manipulate fat objects and archives on Mac OS X. 47701 LIPO=$lt_LIPO 47702 47703 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 47704 OTOOL=$lt_OTOOL 47705 47706 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 47707 OTOOL64=$lt_OTOOL64 47708 47709 # Old archive suffix (normally "a"). 47710 libext=$libext 47711 47712 # Shared library suffix (normally ".so"). 47713 shrext_cmds=$lt_shrext_cmds 47714 47715 # The commands to extract the exported symbol list from a shared archive. 47716 extract_expsyms_cmds=$lt_extract_expsyms_cmds 47717 47718 # Variables whose values should be saved in libtool wrapper scripts and 47719 # restored at link time. 47720 variables_saved_for_relink=$lt_variables_saved_for_relink 47721 47722 # Do we need the "lib" prefix for modules? 47723 need_lib_prefix=$need_lib_prefix 47724 47725 # Do we need a version for libraries? 47726 need_version=$need_version 47727 47728 # Library versioning type. 47729 version_type=$version_type 47730 47731 # Shared library runtime path variable. 47732 runpath_var=$runpath_var 47733 47734 # Shared library path variable. 47735 shlibpath_var=$shlibpath_var 47736 47737 # Is shlibpath searched before the hard-coded library search path? 47738 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 47739 47740 # Format of library name prefix. 47741 libname_spec=$lt_libname_spec 47742 47743 # List of archive names. First name is the real one, the rest are links. 47744 # The last name is the one that the linker finds with -lNAME 47745 library_names_spec=$lt_library_names_spec 47746 47747 # The coded name of the library, if different from the real name. 47748 soname_spec=$lt_soname_spec 47749 47750 # Permission mode override for installation of shared libraries. 47751 install_override_mode=$lt_install_override_mode 47752 47753 # Command to use after installation of a shared archive. 47754 postinstall_cmds=$lt_postinstall_cmds 47755 47756 # Command to use after uninstallation of a shared archive. 47757 postuninstall_cmds=$lt_postuninstall_cmds 47758 47759 # Commands used to finish a libtool library installation in a directory. 47760 finish_cmds=$lt_finish_cmds 47761 47762 # As "finish_cmds", except a single script fragment to be evaled but 47763 # not shown. 47764 finish_eval=$lt_finish_eval 47765 47766 # Whether we should hardcode library paths into libraries. 47767 hardcode_into_libs=$hardcode_into_libs 47768 47769 # Compile-time system search path for libraries. 47770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 47771 47772 # Detected run-time system search path for libraries. 47773 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 47774 47775 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 47776 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 47777 47778 # Whether dlopen is supported. 47779 dlopen_support=$enable_dlopen 47780 47781 # Whether dlopen of programs is supported. 47782 dlopen_self=$enable_dlopen_self 47783 47784 # Whether dlopen of statically linked programs is supported. 47785 dlopen_self_static=$enable_dlopen_self_static 47786 47787 # Commands to strip libraries. 47788 old_striplib=$lt_old_striplib 47789 striplib=$lt_striplib 47790 47791 47792 # The linker used to build libraries. 47793 LD=$lt_LD 47794 47795 # How to create reloadable object files. 47796 reload_flag=$lt_reload_flag 47797 reload_cmds=$lt_reload_cmds 47798 47799 # Commands used to build an old-style archive. 47800 old_archive_cmds=$lt_old_archive_cmds 47801 47802 # A language specific compiler. 47803 CC=$lt_compiler 47804 47805 # Is the compiler the GNU compiler? 47806 with_gcc=$GCC 47807 47808 # Compiler flag to turn off builtin functions. 47809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 47810 47811 # Additional compiler flags for building library objects. 47812 pic_flag=$lt_lt_prog_compiler_pic 47813 47814 # How to pass a linker flag through the compiler. 47815 wl=$lt_lt_prog_compiler_wl 47816 47817 # Compiler flag to prevent dynamic linking. 47818 link_static_flag=$lt_lt_prog_compiler_static 47819 47820 # Does compiler simultaneously support -c and -o options? 47821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 47822 47823 # Whether or not to add -lc for building shared libraries. 47824 build_libtool_need_lc=$archive_cmds_need_lc 47825 47826 # Whether or not to disallow shared libs when runtime libs are static. 47827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 47828 47829 # Compiler flag to allow reflexive dlopens. 47830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 47831 47832 # Compiler flag to generate shared objects directly from archives. 47833 whole_archive_flag_spec=$lt_whole_archive_flag_spec 47834 47835 # Whether the compiler copes with passing no objects directly. 47836 compiler_needs_object=$lt_compiler_needs_object 47837 47838 # Create an old-style archive from a shared archive. 47839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 47840 47841 # Create a temporary old-style archive to link instead of a shared archive. 47842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 47843 47844 # Commands used to build a shared archive. 47845 archive_cmds=$lt_archive_cmds 47846 archive_expsym_cmds=$lt_archive_expsym_cmds 47847 47848 # Commands used to build a loadable module if different from building 47849 # a shared archive. 47850 module_cmds=$lt_module_cmds 47851 module_expsym_cmds=$lt_module_expsym_cmds 47852 47853 # Whether we are building with GNU ld or not. 47854 with_gnu_ld=$lt_with_gnu_ld 47855 47856 # Flag that allows shared libraries with undefined symbols to be built. 47857 allow_undefined_flag=$lt_allow_undefined_flag 47858 47859 # Flag that enforces no undefined symbols. 47860 no_undefined_flag=$lt_no_undefined_flag 47861 47862 # Flag to hardcode \$libdir into a binary during linking. 47863 # This must work even if \$libdir does not exist 47864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 47865 47866 # Whether we need a single "-rpath" flag with a separated argument. 47867 hardcode_libdir_separator=$lt_hardcode_libdir_separator 47868 47869 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 47870 # DIR into the resulting binary. 47871 hardcode_direct=$hardcode_direct 47872 47873 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 47874 # DIR into the resulting binary and the resulting library dependency is 47875 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 47876 # library is relocated. 47877 hardcode_direct_absolute=$hardcode_direct_absolute 47878 47879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 47880 # into the resulting binary. 47881 hardcode_minus_L=$hardcode_minus_L 47882 47883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 47884 # into the resulting binary. 47885 hardcode_shlibpath_var=$hardcode_shlibpath_var 47886 47887 # Set to "yes" if building a shared library automatically hardcodes DIR 47888 # into the library and all subsequent libraries and executables linked 47889 # against it. 47890 hardcode_automatic=$hardcode_automatic 47891 47892 # Set to yes if linker adds runtime paths of dependent libraries 47893 # to runtime path list. 47894 inherit_rpath=$inherit_rpath 47895 47896 # Whether libtool must link a program against all its dependency libraries. 47897 link_all_deplibs=$link_all_deplibs 47898 47899 # Set to "yes" if exported symbols are required. 47900 always_export_symbols=$always_export_symbols 47901 47902 # The commands to list exported symbols. 47903 export_symbols_cmds=$lt_export_symbols_cmds 47904 47905 # Symbols that should not be listed in the preloaded symbols. 47906 exclude_expsyms=$lt_exclude_expsyms 47907 47908 # Symbols that must always be exported. 47909 include_expsyms=$lt_include_expsyms 47910 47911 # Commands necessary for linking programs (against libraries) with templates. 47912 prelink_cmds=$lt_prelink_cmds 47913 47914 # Commands necessary for finishing linking programs. 47915 postlink_cmds=$lt_postlink_cmds 47916 47917 # Specify filename containing input files. 47918 file_list_spec=$lt_file_list_spec 47919 47920 # How to hardcode a shared library path into an executable. 47921 hardcode_action=$hardcode_action 47922 47923 # ### END LIBTOOL CONFIG 47924 47925 _LT_EOF 47926 47927 cat <<'_LT_EOF' >> "$cfgfile" 47928 47929 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 47930 47931 # func_munge_path_list VARIABLE PATH 47932 # ----------------------------------- 47933 # VARIABLE is name of variable containing _space_ separated list of 47934 # directories to be munged by the contents of PATH, which is string 47935 # having a format: 47936 # "DIR[:DIR]:" 47937 # string "DIR[ DIR]" will be prepended to VARIABLE 47938 # ":DIR[:DIR]" 47939 # string "DIR[ DIR]" will be appended to VARIABLE 47940 # "DIRP[:DIRP]::[DIRA:]DIRA" 47941 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 47942 # "DIRA[ DIRA]" will be appended to VARIABLE 47943 # "DIR[:DIR]" 47944 # VARIABLE will be replaced by "DIR[ DIR]" 47945 func_munge_path_list () 47946 { 47947 case x$2 in 47948 x) 47949 ;; 47950 *:) 47951 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 47952 ;; 47953 x:*) 47954 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 47955 ;; 47956 *::*) 47957 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 47958 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 47959 ;; 47960 *) 47961 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 47962 ;; 47963 esac 47964 } 47965 47966 47967 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 47968 func_cc_basename () 47969 { 47970 for cc_temp in $*""; do 47971 case $cc_temp in 47972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 47973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 47974 \-*) ;; 47975 *) break;; 47976 esac 47977 done 47978 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 47979 } 47980 47981 47982 # ### END FUNCTIONS SHARED WITH CONFIGURE 47983 47984 _LT_EOF 47985 47986 case $host_os in 47987 aix3*) 47988 cat <<\_LT_EOF >> "$cfgfile" 47989 # AIX sometimes has problems with the GCC collect2 program. For some 47990 # reason, if we set the COLLECT_NAMES environment variable, the problems 47991 # vanish in a puff of smoke. 47992 if test set != "${COLLECT_NAMES+set}"; then 47993 COLLECT_NAMES= 47994 export COLLECT_NAMES 47995 fi 47996 _LT_EOF 47997 ;; 47998 esac 47999 48000 48001 48002 ltmain=$ac_aux_dir/ltmain.sh 48003 48004 48005 # We use sed instead of cat because bash on DJGPP gets confused if 48006 # if finds mixed CR/LF and LF-only lines. Since sed operates in 48007 # text mode, it properly converts lines to CR/LF. This bash problem 48008 # is reportedly fixed, but why not run on old versions too? 48009 $SED '$q' "$ltmain" >> "$cfgfile" \ 48010 || (rm -f "$cfgfile"; exit 1) 48011 48012 mv -f "$cfgfile" "$ofile" || 48013 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 48014 chmod +x "$ofile" 48015 48016 48017 cat <<_LT_EOF >> "$ofile" 48018 48019 # ### BEGIN LIBTOOL TAG CONFIG: RC 48020 48021 # The linker used to build libraries. 48022 LD=$lt_LD_RC 48023 48024 # How to create reloadable object files. 48025 reload_flag=$lt_reload_flag_RC 48026 reload_cmds=$lt_reload_cmds_RC 48027 48028 # Commands used to build an old-style archive. 48029 old_archive_cmds=$lt_old_archive_cmds_RC 48030 48031 # A language specific compiler. 48032 CC=$lt_compiler_RC 48033 48034 # Is the compiler the GNU compiler? 48035 with_gcc=$GCC_RC 48036 48037 # Compiler flag to turn off builtin functions. 48038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 48039 48040 # Additional compiler flags for building library objects. 48041 pic_flag=$lt_lt_prog_compiler_pic_RC 48042 48043 # How to pass a linker flag through the compiler. 48044 wl=$lt_lt_prog_compiler_wl_RC 48045 48046 # Compiler flag to prevent dynamic linking. 48047 link_static_flag=$lt_lt_prog_compiler_static_RC 48048 48049 # Does compiler simultaneously support -c and -o options? 48050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 48051 48052 # Whether or not to add -lc for building shared libraries. 48053 build_libtool_need_lc=$archive_cmds_need_lc_RC 48054 48055 # Whether or not to disallow shared libs when runtime libs are static. 48056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 48057 48058 # Compiler flag to allow reflexive dlopens. 48059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 48060 48061 # Compiler flag to generate shared objects directly from archives. 48062 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 48063 48064 # Whether the compiler copes with passing no objects directly. 48065 compiler_needs_object=$lt_compiler_needs_object_RC 48066 48067 # Create an old-style archive from a shared archive. 48068 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 48069 48070 # Create a temporary old-style archive to link instead of a shared archive. 48071 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 48072 48073 # Commands used to build a shared archive. 48074 archive_cmds=$lt_archive_cmds_RC 48075 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 48076 48077 # Commands used to build a loadable module if different from building 48078 # a shared archive. 48079 module_cmds=$lt_module_cmds_RC 48080 module_expsym_cmds=$lt_module_expsym_cmds_RC 48081 48082 # Whether we are building with GNU ld or not. 48083 with_gnu_ld=$lt_with_gnu_ld_RC 48084 48085 # Flag that allows shared libraries with undefined symbols to be built. 48086 allow_undefined_flag=$lt_allow_undefined_flag_RC 48087 48088 # Flag that enforces no undefined symbols. 48089 no_undefined_flag=$lt_no_undefined_flag_RC 48090 48091 # Flag to hardcode \$libdir into a binary during linking. 48092 # This must work even if \$libdir does not exist 48093 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 48094 48095 # Whether we need a single "-rpath" flag with a separated argument. 48096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 48097 48098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 48099 # DIR into the resulting binary. 48100 hardcode_direct=$hardcode_direct_RC 48101 48102 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 48103 # DIR into the resulting binary and the resulting library dependency is 48104 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 48105 # library is relocated. 48106 hardcode_direct_absolute=$hardcode_direct_absolute_RC 48107 48108 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 48109 # into the resulting binary. 48110 hardcode_minus_L=$hardcode_minus_L_RC 48111 48112 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 48113 # into the resulting binary. 48114 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 48115 48116 # Set to "yes" if building a shared library automatically hardcodes DIR 48117 # into the library and all subsequent libraries and executables linked 48118 # against it. 48119 hardcode_automatic=$hardcode_automatic_RC 48120 48121 # Set to yes if linker adds runtime paths of dependent libraries 48122 # to runtime path list. 48123 inherit_rpath=$inherit_rpath_RC 48124 48125 # Whether libtool must link a program against all its dependency libraries. 48126 link_all_deplibs=$link_all_deplibs_RC 48127 48128 # Set to "yes" if exported symbols are required. 48129 always_export_symbols=$always_export_symbols_RC 48130 48131 # The commands to list exported symbols. 48132 export_symbols_cmds=$lt_export_symbols_cmds_RC 48133 48134 # Symbols that should not be listed in the preloaded symbols. 48135 exclude_expsyms=$lt_exclude_expsyms_RC 48136 48137 # Symbols that must always be exported. 48138 include_expsyms=$lt_include_expsyms_RC 48139 48140 # Commands necessary for linking programs (against libraries) with templates. 48141 prelink_cmds=$lt_prelink_cmds_RC 48142 48143 # Commands necessary for finishing linking programs. 48144 postlink_cmds=$lt_postlink_cmds_RC 48145 48146 # Specify filename containing input files. 48147 file_list_spec=$lt_file_list_spec_RC 48148 48149 # How to hardcode a shared library path into an executable. 48150 hardcode_action=$hardcode_action_RC 48151 48152 # ### END LIBTOOL TAG CONFIG: RC 48153 _LT_EOF 48154 48155 ;; 48156 48157 esac 48158 done # for ac_tag 48159 48160 48161 as_fn_exit 0 48162 _ACEOF 48163 ac_clean_files=$ac_clean_files_save 48164 48165 test $ac_write_fail = 0 || 48166 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 48167 48168 48169 # configure is writing to config.log, and then calls config.status. 48170 # config.status does its own redirection, appending to config.log. 48171 # Unfortunately, on DOS this fails, as config.log is still kept open 48172 # by configure, so config.status won't be able to write to it; its 48173 # output is simply discarded. So we exec the FD to /dev/null, 48174 # effectively closing config.log, so it can be properly (re)opened and 48175 # appended to by config.status. When coming back to configure, we 48176 # need to make the FD available again. 48177 if test "$no_create" != yes; then 48178 ac_cs_success=: 48179 ac_config_status_args= 48180 test "$silent" = yes && 48181 ac_config_status_args="$ac_config_status_args --quiet" 48182 exec 5>/dev/null 48183 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 48184 exec 5>>config.log 48185 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 48186 # would make configure fail if this is the last instruction. 48187 $ac_cs_success || as_fn_exit 1 48188 fi 48189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 48190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 48191 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 48192 fi 48193 48194 48195 SUPPORT_PROTOCOLS_LOWER=`echo "$SUPPORT_PROTOCOLS" | tr A-Z a-z` 48196 48197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl: 48198 48199 Host setup: ${host} 48200 Install prefix: ${prefix} 48201 Compiler: ${CC} 48202 CFLAGS: ${CFLAGS} 48203 CFLAGS extras: ${CURL_CFLAG_EXTRAS} 48204 CPPFLAGS: ${CPPFLAGS} 48205 LDFLAGS: ${LDFLAGS} 48206 curl-config: ${LIBCURL_PC_LDFLAGS_PRIVATE} 48207 LIBS: ${LIBS} 48208 48209 curl version: ${CURLVERSION} 48210 SSL: ${curl_ssl_msg} 48211 SSH: ${curl_ssh_msg} 48212 zlib: ${curl_zlib_msg} 48213 brotli: ${curl_brotli_msg} 48214 zstd: ${curl_zstd_msg} 48215 GSS-API: ${curl_gss_msg} 48216 GSASL: ${curl_gsasl_msg} 48217 TLS-SRP: ${curl_tls_srp_msg} 48218 resolver: ${curl_res_msg} 48219 IPv6: ${curl_ipv6_msg} 48220 Unix sockets: ${curl_unix_sockets_msg} 48221 IDN: ${curl_idn_msg} 48222 Build docs: ${curl_docs_msg} 48223 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 48224 Built-in manual: ${curl_manual_msg} 48225 --libcurl option: ${curl_libcurl_msg} 48226 Verbose errors: ${curl_verbose_msg} 48227 Code coverage: ${curl_coverage_msg} 48228 SSPI: ${curl_sspi_msg} 48229 ca cert bundle: ${ca}${ca_warning} 48230 ca cert path: ${capath}${capath_warning} 48231 ca cert embed: ${CURL_CA_EMBED_msg} 48232 ca fallback: ${with_ca_fallback} 48233 LDAP: ${curl_ldap_msg} 48234 LDAPS: ${curl_ldaps_msg} 48235 IPFS/IPNS: ${curl_ipfs_msg} 48236 RTSP: ${curl_rtsp_msg} 48237 RTMP: ${curl_rtmp_msg} 48238 PSL: ${curl_psl_msg} 48239 Alt-svc: ${curl_altsvc_msg} 48240 Headers API: ${curl_headers_msg} 48241 HSTS: ${curl_hsts_msg} 48242 HTTP1: ${curl_h1_msg} 48243 HTTP2: ${curl_h2_msg} 48244 HTTP3: ${curl_h3_msg} 48245 ECH: ${curl_ech_msg} 48246 HTTPS RR: ${curl_httpsrr_msg} 48247 SSLS-EXPORT: ${curl_ssls_export_msg} 48248 Protocols: ${SUPPORT_PROTOCOLS_LOWER} 48249 Features: ${SUPPORT_FEATURES} 48250 " >&5 48251 printf "%s\n" "$as_me: Configured to build curl/libcurl: 48252 48253 Host setup: ${host} 48254 Install prefix: ${prefix} 48255 Compiler: ${CC} 48256 CFLAGS: ${CFLAGS} 48257 CFLAGS extras: ${CURL_CFLAG_EXTRAS} 48258 CPPFLAGS: ${CPPFLAGS} 48259 LDFLAGS: ${LDFLAGS} 48260 curl-config: ${LIBCURL_PC_LDFLAGS_PRIVATE} 48261 LIBS: ${LIBS} 48262 48263 curl version: ${CURLVERSION} 48264 SSL: ${curl_ssl_msg} 48265 SSH: ${curl_ssh_msg} 48266 zlib: ${curl_zlib_msg} 48267 brotli: ${curl_brotli_msg} 48268 zstd: ${curl_zstd_msg} 48269 GSS-API: ${curl_gss_msg} 48270 GSASL: ${curl_gsasl_msg} 48271 TLS-SRP: ${curl_tls_srp_msg} 48272 resolver: ${curl_res_msg} 48273 IPv6: ${curl_ipv6_msg} 48274 Unix sockets: ${curl_unix_sockets_msg} 48275 IDN: ${curl_idn_msg} 48276 Build docs: ${curl_docs_msg} 48277 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 48278 Built-in manual: ${curl_manual_msg} 48279 --libcurl option: ${curl_libcurl_msg} 48280 Verbose errors: ${curl_verbose_msg} 48281 Code coverage: ${curl_coverage_msg} 48282 SSPI: ${curl_sspi_msg} 48283 ca cert bundle: ${ca}${ca_warning} 48284 ca cert path: ${capath}${capath_warning} 48285 ca cert embed: ${CURL_CA_EMBED_msg} 48286 ca fallback: ${with_ca_fallback} 48287 LDAP: ${curl_ldap_msg} 48288 LDAPS: ${curl_ldaps_msg} 48289 IPFS/IPNS: ${curl_ipfs_msg} 48290 RTSP: ${curl_rtsp_msg} 48291 RTMP: ${curl_rtmp_msg} 48292 PSL: ${curl_psl_msg} 48293 Alt-svc: ${curl_altsvc_msg} 48294 Headers API: ${curl_headers_msg} 48295 HSTS: ${curl_hsts_msg} 48296 HTTP1: ${curl_h1_msg} 48297 HTTP2: ${curl_h2_msg} 48298 HTTP3: ${curl_h3_msg} 48299 ECH: ${curl_ech_msg} 48300 HTTPS RR: ${curl_httpsrr_msg} 48301 SSLS-EXPORT: ${curl_ssls_export_msg} 48302 Protocols: ${SUPPORT_PROTOCOLS_LOWER} 48303 Features: ${SUPPORT_FEATURES} 48304 " >&6;} 48305 48306 if test -n "$experimental"; then 48307 for a in $experimental; do 48308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $a is enabled but marked EXPERIMENTAL. Use with caution!" >&5 48309 printf "%s\n" "$as_me: WARNING: $a is enabled but marked EXPERIMENTAL. Use with caution!" >&2;} 48310 done 48311 fi 48312 48313 48314 curl_pflags="" 48315 if test "$curl_cv_apple" = 'yes'; then 48316 curl_pflags="${curl_pflags} APPLE" 48317 fi 48318 case $host in 48319 *-*-*bsd*|*-*-aix*|*-*-hpux*|*-*-interix*|*-*-irix*|*-*-linux*|*-*-solaris*|*-*-sunos*|*-apple-*|*-*-cygwin*|*-*-msys*) 48320 curl_pflags="${curl_pflags} UNIX";; 48321 esac 48322 case $host in 48323 *-*-*bsd*) 48324 curl_pflags="${curl_pflags} BSD";; 48325 esac 48326 case $host in 48327 *-*-android*) 48328 curl_pflags="${curl_pflags} ANDROID" 48329 ANDROID_PLATFORM_LEVEL=`echo "$host_os" | $SED -ne 's/.*android\([0-9]*\).*/\1/p'` 48330 if test -n "${ANDROID_PLATFORM_LEVEL}"; then 48331 curl_pflags="${curl_pflags}-${ANDROID_PLATFORM_LEVEL}" 48332 fi 48333 ;; 48334 esac 48335 if test "$curl_cv_native_windows" = 'yes'; then 48336 curl_pflags="${curl_pflags} WIN32" 48337 fi 48338 if test "$curl_cv_wince" = 'yes'; then 48339 curl_pflags="${curl_pflags} WINCE" 48340 fi 48341 if test "$curl_cv_winuwp" = 'yes'; then 48342 curl_pflags="${curl_pflags} UWP" 48343 fi 48344 case $host in 48345 *-*-*bsd*|*-*-aix*|*-*-hpux*|*-*-interix*|*-*-irix*|*-*-linux*|*-*-solaris*|*-*-sunos*|*-apple-*|*-*-cygwin*|*-*-msys*) 48346 curl_pflags="${curl_pflags} UNIX";; 48347 esac 48348 case $host in 48349 *-*-*bsd*) 48350 curl_pflags="${curl_pflags} BSD";; 48351 esac 48352 if test "$curl_cv_cygwin" = 'yes'; then 48353 curl_pflags="${curl_pflags} CYGWIN" 48354 fi 48355 case $host_os in 48356 msdos*) curl_pflags="${curl_pflags} DOS";; 48357 amiga*) curl_pflags="${curl_pflags} AMIGA";; 48358 esac 48359 if test "x$compiler_id" = 'xGNU_C'; then 48360 curl_pflags="${curl_pflags} GCC" 48361 fi 48362 case $host_os in 48363 mingw*) curl_pflags="${curl_pflags} MINGW";; 48364 esac 48365 if test "x$cross_compiling" = 'xyes'; then 48366 curl_pflags="${curl_pflags} CROSS" 48367 fi 48368 squeeze curl_pflags 48369 curl_buildinfo=" 48370 buildinfo.configure.tool: configure 48371 buildinfo.configure.args: $ac_configure_args 48372 buildinfo.host: $build 48373 buildinfo.host.cpu: $build_cpu 48374 buildinfo.host.os: $build_os 48375 buildinfo.target: $host 48376 buildinfo.target.cpu: $host_cpu 48377 buildinfo.target.os: $host_os 48378 buildinfo.target.flags: $curl_pflags 48379 buildinfo.compiler: $compiler_id 48380 buildinfo.compiler.version: $compiler_ver 48381 buildinfo.sysroot: $lt_sysroot" 48382 48383 echo "# This is a generated file. Do not edit.${curl_buildinfo}" > ./buildinfo.txt 48384 if test -n "$CURL_BUILDINFO$CURL_CI$CI"; then 48385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${curl_buildinfo}" >&5 48386 printf "%s\n" "$as_me: ${curl_buildinfo}" >&6;} 48387 fi 48388