1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for curl -. 4# 5# Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15# 16# Copyright (c) 1998 - 2011 Daniel Stenberg, <daniel@haxx.se> 17# This configure script may be copied, distributed and modified under the 18# terms of the curl license; see COPYING for more details 19## -------------------- ## 20## M4sh Initialization. ## 21## -------------------- ## 22 23# Be more Bourne compatible 24DUALCASE=1; export DUALCASE # for MKS sh 25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38esac 39fi 40 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49# Prefer a ksh shell builtin over an external printf program on Solaris, 50# but without wasting forks for bash or zsh. 51if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78fi 79 80 81 if test -z "$curl_cv_PATH_SEPARATOR"; then 82 if test -z "$PATH"; then 83 as_fn_error $? "PATH not set. Cannot continue without PATH being set." 84 fi 85 tst_dirs_col=0 86 tst_save_IFS=$IFS; IFS=':' 87 for tst_dir in $PATH; do 88 IFS=$tst_save_IFS 89 test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1` 90 done 91 IFS=$tst_save_IFS 92 tst_dirs_sem=0 93 tst_save_IFS=$IFS; IFS=';' 94 for tst_dir in $PATH; do 95 IFS=$tst_save_IFS 96 test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1` 97 done 98 IFS=$tst_save_IFS 99 if test $tst_dirs_sem -eq $tst_dirs_col; then 100 if test -z "$PATH_SEPARATOR"; then 101 as_fn_error $? "PATH_SEPARATOR not set. Cannot continue without it." 102 fi 103 else 104 if test $tst_dirs_sem -gt $tst_dirs_col; then 105 tst_auto_separator=';' 106 else 107 tst_auto_separator=':' 108 fi 109 if test -z "$PATH_SEPARATOR"; then 110 PATH_SEPARATOR="$tst_auto_separator" 111 fi 112 fi 113 curl_cv_PATH_SEPARATOR="$PATH_SEPARATOR" 114 fi 115 116 117 118 119 120# IFS 121# We need space, tab and new line, in precisely that order. Quoting is 122# there to prevent editors from complaining about space-tab. 123# (If _AS_PATH_WALK were called with IFS unset, it would disable word 124# splitting by setting IFS to empty value.) 125IFS=" "" $as_nl" 126 127# Find who we are. Look in the path if we contain no directory separator. 128as_myself= 129case $0 in #(( 130 *[\\/]* ) as_myself=$0 ;; 131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in $PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 137 done 138IFS=$as_save_IFS 139 140 ;; 141esac 142# We did not find ourselves, most probably we were run as `sh COMMAND' 143# in which case we are not to be found in the path. 144if test "x$as_myself" = x; then 145 as_myself=$0 146fi 147if test ! -f "$as_myself"; then 148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 149 exit 1 150fi 151 152# Unset variables that we do not need and which cause bugs (e.g. in 153# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 154# suppresses any "Segmentation fault" message there. '((' could 155# trigger a bug in pdksh 5.2.14. 156for as_var in BASH_ENV ENV MAIL MAILPATH 157do eval test x\${$as_var+set} = xset \ 158 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 159done 160PS1='$ ' 161PS2='> ' 162PS4='+ ' 163 164# NLS nuisances. 165LC_ALL=C 166export LC_ALL 167LANGUAGE=C 168export LANGUAGE 169 170# CDPATH. 171(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 172 173if test "x$CONFIG_SHELL" = x; then 174 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 175 emulate sh 176 NULLCMD=: 177 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 178 # is contrary to our usage. Disable this feature. 179 alias -g '\${1+\"\$@\"}'='\"\$@\"' 180 setopt NO_GLOB_SUBST 181else 182 case \`(set -o) 2>/dev/null\` in #( 183 *posix*) : 184 set -o posix ;; #( 185 *) : 186 ;; 187esac 188fi 189" 190 as_required="as_fn_return () { (exit \$1); } 191as_fn_success () { as_fn_return 0; } 192as_fn_failure () { as_fn_return 1; } 193as_fn_ret_success () { return 0; } 194as_fn_ret_failure () { return 1; } 195 196exitcode=0 197as_fn_success || { exitcode=1; echo as_fn_success failed.; } 198as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 199as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 200as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 201if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 202 203else 204 exitcode=1; echo positional parameters were not saved. 205fi 206test x\$exitcode = x0 || exit 1" 207 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 208 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 209 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 210 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 211test \$(( 1 + 1 )) = 2 || exit 1 212 213 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 214 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 215 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 216 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 217 PATH=/empty FPATH=/empty; export PATH FPATH 218 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 219 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 220 if (eval "$as_required") 2>/dev/null; then : 221 as_have_required=yes 222else 223 as_have_required=no 224fi 225 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 226 227else 228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 229as_found=false 230for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 231do 232 IFS=$as_save_IFS 233 test -z "$as_dir" && as_dir=. 234 as_found=: 235 case $as_dir in #( 236 /*) 237 for as_base in sh bash ksh sh5; do 238 # Try only shells that exist, to save several forks. 239 as_shell=$as_dir/$as_base 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 242 CONFIG_SHELL=$as_shell as_have_required=yes 243 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 244 break 2 245fi 246fi 247 done;; 248 esac 249 as_found=false 250done 251$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 252 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 253 CONFIG_SHELL=$SHELL as_have_required=yes 254fi; } 255IFS=$as_save_IFS 256 257 258 if test "x$CONFIG_SHELL" != x; then : 259 # We cannot yet assume a decent shell, so we have to provide a 260 # neutralization value for shells without unset; and this also 261 # works around shells that cannot unset nonexistent variables. 262 # Preserve -v and -x to the replacement shell. 263 BASH_ENV=/dev/null 264 ENV=/dev/null 265 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 266 export CONFIG_SHELL 267 case $- in # (((( 268 *v*x* | *x*v* ) as_opts=-vx ;; 269 *v* ) as_opts=-v ;; 270 *x* ) as_opts=-x ;; 271 * ) as_opts= ;; 272 esac 273 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 274fi 275 276 if test x$as_have_required = xno; then : 277 $as_echo "$0: This script requires a shell more modern than all" 278 $as_echo "$0: the shells that I found on your system." 279 if test x${ZSH_VERSION+set} = xset ; then 280 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 281 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 282 else 283 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl 284$0: mailing list: http://curl.haxx.se/mail/ about your 285$0: system, including any error possibly output before this 286$0: message. Then install a modern shell, or manually run 287$0: the script under such a shell if you do have one." 288 fi 289 exit 1 290fi 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311# as_fn_set_status STATUS 312# ----------------------- 313# Set $? to STATUS, without forking. 314as_fn_set_status () 315{ 316 return $1 317} # as_fn_set_status 318 319# as_fn_exit STATUS 320# ----------------- 321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 322as_fn_exit () 323{ 324 set +e 325 as_fn_set_status $1 326 exit $1 327} # as_fn_exit 328 329# as_fn_mkdir_p 330# ------------- 331# Create "$as_dir" as a directory, including parents if necessary. 332as_fn_mkdir_p () 333{ 334 335 case $as_dir in #( 336 -*) as_dir=./$as_dir;; 337 esac 338 test -d "$as_dir" || eval $as_mkdir_p || { 339 as_dirs= 340 while :; do 341 case $as_dir in #( 342 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 343 *) as_qdir=$as_dir;; 344 esac 345 as_dirs="'$as_qdir' $as_dirs" 346 as_dir=`$as_dirname -- "$as_dir" || 347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 348 X"$as_dir" : 'X\(//\)[^/]' \| \ 349 X"$as_dir" : 'X\(//\)$' \| \ 350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 351$as_echo X"$as_dir" | 352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)[^/].*/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)$/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\).*/{ 365 s//\1/ 366 q 367 } 368 s/.*/./; q'` 369 test -d "$as_dir" && break 370 done 371 test -z "$as_dirs" || eval "mkdir $as_dirs" 372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 373 374 375} # as_fn_mkdir_p 376# as_fn_append VAR VALUE 377# ---------------------- 378# Append the text in VALUE to the end of the definition contained in VAR. Take 379# advantage of any shell optimizations that allow amortized linear growth over 380# repeated appends, instead of the typical quadratic growth present in naive 381# implementations. 382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392fi # as_fn_append 393 394# as_fn_arith ARG... 395# ------------------ 396# Perform arithmetic evaluation on the ARGs, and store the result in the 397# global $as_val. Take advantage of shells that can avoid forks. The arguments 398# must be portable across $(()) and expr. 399if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409fi # as_fn_arith 410 411 412# as_fn_error STATUS ERROR [LINENO LOG_FD] 413# ---------------------------------------- 414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416# script with STATUS, using 1 if that was 0. 417as_fn_error () 418{ 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426} # as_fn_error 427 428if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431else 432 as_expr=false 433fi 434 435if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437else 438 as_basename=false 439fi 440 441if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443else 444 as_dirname=false 445fi 446 447as_me=`$as_basename -- "$0" || 448$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451$as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466# Avoid depending upon Character Ranges. 467as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470as_cr_digits='0123456789' 471as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # Don't try to exec as it changes $[0], causing all sort of problems 498 # (the dirname of $[0] is not the place where we might find the 499 # original and so on. Autoconf is especially sensitive to this). 500 . "./$as_me.lineno" 501 # Exit status is that of the last command. 502 exit 503} 504 505ECHO_C= ECHO_N= ECHO_T= 506case `echo -n x` in #((((( 507-n*) 508 case `echo 'xy\c'` in 509 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 510 xy) ECHO_C='\c';; 511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 512 ECHO_T=' ';; 513 esac;; 514*) 515 ECHO_N='-n';; 516esac 517 518rm -f conf$$ conf$$.exe conf$$.file 519if test -d conf$$.dir; then 520 rm -f conf$$.dir/conf$$.file 521else 522 rm -f conf$$.dir 523 mkdir conf$$.dir 2>/dev/null 524fi 525if (echo >conf$$.file) 2>/dev/null; then 526 if ln -s conf$$.file conf$$ 2>/dev/null; then 527 as_ln_s='ln -s' 528 # ... but there are two gotchas: 529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 531 # In both cases, we have to default to `cp -p'. 532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 533 as_ln_s='cp -p' 534 elif ln conf$$.file conf$$ 2>/dev/null; then 535 as_ln_s=ln 536 else 537 as_ln_s='cp -p' 538 fi 539else 540 as_ln_s='cp -p' 541fi 542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 543rmdir conf$$.dir 2>/dev/null 544 545if mkdir -p . 2>/dev/null; then 546 as_mkdir_p='mkdir -p "$as_dir"' 547else 548 test -d ./-p && rmdir ./-p 549 as_mkdir_p=false 550fi 551 552if test -x / >/dev/null 2>&1; then 553 as_test_x='test -x' 554else 555 if ls -dL / >/dev/null 2>&1; then 556 as_ls_L_option=L 557 else 558 as_ls_L_option= 559 fi 560 as_test_x=' 561 eval sh -c '\'' 562 if test -d "$1"; then 563 test -d "$1/."; 564 else 565 case $1 in #( 566 -*)set "./$1";; 567 esac; 568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 569 ???[sx]*):;;*)false;;esac;fi 570 '\'' sh 571 ' 572fi 573as_executable_p=$as_test_x 574 575# Sed expression to map a string onto a valid CPP name. 576as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 577 578# Sed expression to map a string onto a valid variable name. 579as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 580 581SHELL=${CONFIG_SHELL-/bin/sh} 582 583 584test -n "$DJDIR" || exec 7<&0 </dev/null 585exec 6>&1 586 587# Name of the host. 588# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 589# so uname gets run too. 590ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 591 592# 593# Initializations. 594# 595ac_default_prefix=/usr/local 596ac_clean_files= 597ac_config_libobj_dir=. 598LIBOBJS= 599cross_compiling=no 600subdirs= 601MFLAGS= 602MAKEFLAGS= 603 604# Identity of this package. 605PACKAGE_NAME='curl' 606PACKAGE_TARNAME='curl' 607PACKAGE_VERSION='-' 608PACKAGE_STRING='curl -' 609PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/' 610PACKAGE_URL='' 611 612ac_unique_file="lib/urldata.h" 613# Factoring default headers for most tests. 614ac_includes_default="\ 615#include <stdio.h> 616#ifdef HAVE_SYS_TYPES_H 617# include <sys/types.h> 618#endif 619#ifdef HAVE_SYS_STAT_H 620# include <sys/stat.h> 621#endif 622#ifdef STDC_HEADERS 623# include <stdlib.h> 624# include <stddef.h> 625#else 626# ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628# endif 629#endif 630#ifdef HAVE_STRING_H 631# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 632# include <memory.h> 633# endif 634# include <string.h> 635#endif 636#ifdef HAVE_STRINGS_H 637# include <strings.h> 638#endif 639#ifdef HAVE_INTTYPES_H 640# include <inttypes.h> 641#endif 642#ifdef HAVE_STDINT_H 643# include <stdint.h> 644#endif 645#ifdef HAVE_UNISTD_H 646# include <unistd.h> 647#endif" 648 649enable_option_checking=no 650ac_subst_vars='LTLIBOBJS 651LIBOBJS 652SUPPORT_PROTOCOLS 653SUPPORT_FEATURES 654ENABLE_SHARED 655CROSSCOMPILING_FALSE 656CROSSCOMPILING_TRUE 657CURL_NETWORK_LIBS 658TEST_SERVER_LIBS 659CURL_LIBS 660LIBCURL_LIBS 661SONAME_BUMP_FALSE 662SONAME_BUMP_TRUE 663USE_WINDOWS_SSPI 664BUILD_LIBHOSTNAME_FALSE 665BUILD_LIBHOSTNAME_TRUE 666USE_EMBEDDED_ARES_FALSE 667USE_EMBEDDED_ARES_TRUE 668USE_ARES 669subdirs 670USE_MANUAL_FALSE 671USE_MANUAL_TRUE 672MANOPT 673NROFF 674PERL 675IPV6_ENABLED 676IDN_ENABLED 677USE_LIBRTMP 678USE_LIBSSH2 679CURL_CA_BUNDLE 680SSL_ENABLED 681USE_AXTLS 682USE_NSS 683HAVE_PK11_CREATEGENERICOBJECT 684USE_CYASSL 685USE_POLARSSL 686HAVE_GNUTLS_SRP 687USE_GNUTLS 688HAVE_SSLEAY_SRP 689RANDOM_FILE 690HAVE_LIBZ_FALSE 691HAVE_LIBZ_TRUE 692HAVE_LIBZ 693USE_SSLEAY 694PKGCONFIG 695KRB4_ENABLED 696USE_OPENLDAP 697CURL_DISABLE_GOPHER 698CURL_DISABLE_SMTP 699CURL_DISABLE_IMAP 700CURL_DISABLE_POP3 701CURL_DISABLE_TFTP 702CURL_DISABLE_TELNET 703CURL_DISABLE_DICT 704CURL_DISABLE_PROXY 705HAVE_LDAP_SSL 706CURL_DISABLE_LDAPS 707CURL_DISABLE_LDAP 708CURL_DISABLE_FILE 709CURL_DISABLE_FTP 710CURL_DISABLE_RTSP 711CURL_DISABLE_HTTP 712BUILD_UNITTESTS_FALSE 713BUILD_UNITTESTS_TRUE 714CURLDEBUG_FALSE 715CURLDEBUG_TRUE 716NO_UNDEFINED_FALSE 717NO_UNDEFINED_TRUE 718REQUIRE_LIB_DEPS 719STATICLIB_FALSE 720STATICLIB_TRUE 721MIMPURE_FALSE 722MIMPURE_TRUE 723OTOOL64 724OTOOL 725LIPO 726NMEDIT 727DSYMUTIL 728MANIFEST_TOOL 729RANLIB 730ac_ct_AR 731LN_S 732NM 733ac_ct_DUMPBIN 734DUMPBIN 735LD 736FGREP 737LIBTOOL 738OBJDUMP 739DLLTOOL 740AS 741CPP 742am__fastdepCC_FALSE 743am__fastdepCC_TRUE 744CCDEPMODE 745AMDEPBACKSLASH 746AMDEP_FALSE 747AMDEP_TRUE 748am__quote 749am__include 750DEPDIR 751OBJEXT 752EXEEXT 753ac_ct_CC 754CPPFLAGS 755LDFLAGS 756CFLAGS 757CC 758host_os 759host_vendor 760host_cpu 761host 762build_os 763build_vendor 764build_cpu 765build 766PKGADD_VENDOR 767PKGADD_NAME 768PKGADD_PKG 769VERSIONNUM 770CURLVERSION 771am__untar 772am__tar 773AMTAR 774am__leading_dot 775SET_MAKE 776AWK 777mkdir_p 778INSTALL_STRIP_PROGRAM 779STRIP 780install_sh 781MAKEINFO 782AUTOHEADER 783AUTOMAKE 784AUTOCONF 785ACLOCAL 786VERSION 787PACKAGE 788CYGPATH_W 789INSTALL_DATA 790INSTALL_SCRIPT 791INSTALL_PROGRAM 792libext 793AR 794EGREP 795GREP 796SED 797CURL_CFLAG_EXTRAS 798CONFIGURE_OPTIONS 799MAINT 800MAINTAINER_MODE_FALSE 801MAINTAINER_MODE_TRUE 802target_alias 803host_alias 804build_alias 805LIBS 806ECHO_T 807ECHO_N 808ECHO_C 809DEFS 810mandir 811localedir 812libdir 813psdir 814pdfdir 815dvidir 816htmldir 817infodir 818docdir 819oldincludedir 820includedir 821localstatedir 822sharedstatedir 823sysconfdir 824datadir 825datarootdir 826libexecdir 827sbindir 828bindir 829program_transform_name 830prefix 831exec_prefix 832PACKAGE_URL 833PACKAGE_BUGREPORT 834PACKAGE_STRING 835PACKAGE_VERSION 836PACKAGE_TARNAME 837PACKAGE_NAME 838SHELL 839PATH 840PATH_SEPARATOR' 841ac_subst_files='' 842ac_user_opts=' 843enable_option_checking 844enable_maintainer_mode 845enable_debug 846enable_optimize 847enable_warnings 848enable_werror 849enable_curldebug 850enable_ares 851enable_dependency_tracking 852enable_largefile 853enable_shared 854enable_static 855with_pic 856enable_fast_install 857with_gnu_ld 858with_sysroot 859enable_libtool_lock 860enable_http 861enable_ftp 862enable_file 863enable_ldap 864enable_ldaps 865enable_rtsp 866enable_proxy 867enable_dict 868enable_telnet 869enable_tftp 870enable_pop3 871enable_imap 872enable_smtp 873enable_gopher 874enable_manual 875enable_libgcc 876with_ldap_lib 877with_lber_lib 878enable_ipv6 879with_krb4_includes 880with_krb4_libs 881with_krb4 882with_spnego 883with_gssapi_includes 884with_gssapi_libs 885with_gssapi 886with_ssl 887with_zlib 888with_egd_socket 889with_random 890with_gnutls 891with_polarssl 892with_cyassl 893with_nss 894with_axtls 895with_ca_bundle 896with_ca_path 897with_libssh2 898with_librtmp 899with_libidn 900enable_nonblocking 901enable_threaded_resolver 902enable_verbose 903enable_sspi 904enable_crypto_auth 905enable_tls_srp 906enable_cookies 907enable_hidden_symbols 908enable_soname_bump 909' 910 ac_precious_vars='build_alias 911host_alias 912target_alias 913CC 914CFLAGS 915LDFLAGS 916LIBS 917CPPFLAGS 918CPP' 919ac_subdirs_all='ares' 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924ac_unrecognized_opts= 925ac_unrecognized_sep= 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *=) ac_optarg= ;; 983 *) ac_optarg=yes ;; 984 esac 985 986 # Accept the important Cygnus configure options, so we can diagnose typos. 987 988 case $ac_dashdash$ac_option in 989 --) 990 ac_dashdash=yes ;; 991 992 -bindir | --bindir | --bindi | --bind | --bin | --bi) 993 ac_prev=bindir ;; 994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 995 bindir=$ac_optarg ;; 996 997 -build | --build | --buil | --bui | --bu) 998 ac_prev=build_alias ;; 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1000 build_alias=$ac_optarg ;; 1001 1002 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1004 ac_prev=cache_file ;; 1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1007 cache_file=$ac_optarg ;; 1008 1009 --config-cache | -C) 1010 cache_file=config.cache ;; 1011 1012 -datadir | --datadir | --datadi | --datad) 1013 ac_prev=datadir ;; 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1015 datadir=$ac_optarg ;; 1016 1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1018 | --dataroo | --dataro | --datar) 1019 ac_prev=datarootdir ;; 1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1022 datarootdir=$ac_optarg ;; 1023 1024 -disable-* | --disable-*) 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1026 # Reject names that are not valid shell variable names. 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1028 as_fn_error $? "invalid feature name: $ac_useropt" 1029 ac_useropt_orig=$ac_useropt 1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1031 case $ac_user_opts in 1032 *" 1033"enable_$ac_useropt" 1034"*) ;; 1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1036 ac_unrecognized_sep=', ';; 1037 esac 1038 eval enable_$ac_useropt=no ;; 1039 1040 -docdir | --docdir | --docdi | --doc | --do) 1041 ac_prev=docdir ;; 1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1043 docdir=$ac_optarg ;; 1044 1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1046 ac_prev=dvidir ;; 1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1048 dvidir=$ac_optarg ;; 1049 1050 -enable-* | --enable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 as_fn_error $? "invalid feature name: $ac_useropt" 1055 ac_useropt_orig=$ac_useropt 1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 case $ac_user_opts in 1058 *" 1059"enable_$ac_useropt" 1060"*) ;; 1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1062 ac_unrecognized_sep=', ';; 1063 esac 1064 eval enable_$ac_useropt=\$ac_optarg ;; 1065 1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1068 | --exec | --exe | --ex) 1069 ac_prev=exec_prefix ;; 1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1072 | --exec=* | --exe=* | --ex=*) 1073 exec_prefix=$ac_optarg ;; 1074 1075 -gas | --gas | --ga | --g) 1076 # Obsolete; use --with-gas. 1077 with_gas=yes ;; 1078 1079 -help | --help | --hel | --he | -h) 1080 ac_init_help=long ;; 1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1082 ac_init_help=recursive ;; 1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1084 ac_init_help=short ;; 1085 1086 -host | --host | --hos | --ho) 1087 ac_prev=host_alias ;; 1088 -host=* | --host=* | --hos=* | --ho=*) 1089 host_alias=$ac_optarg ;; 1090 1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1092 ac_prev=htmldir ;; 1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1094 | --ht=*) 1095 htmldir=$ac_optarg ;; 1096 1097 -includedir | --includedir | --includedi | --included | --include \ 1098 | --includ | --inclu | --incl | --inc) 1099 ac_prev=includedir ;; 1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1101 | --includ=* | --inclu=* | --incl=* | --inc=*) 1102 includedir=$ac_optarg ;; 1103 1104 -infodir | --infodir | --infodi | --infod | --info | --inf) 1105 ac_prev=infodir ;; 1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1107 infodir=$ac_optarg ;; 1108 1109 -libdir | --libdir | --libdi | --libd) 1110 ac_prev=libdir ;; 1111 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1112 libdir=$ac_optarg ;; 1113 1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1115 | --libexe | --libex | --libe) 1116 ac_prev=libexecdir ;; 1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1118 | --libexe=* | --libex=* | --libe=*) 1119 libexecdir=$ac_optarg ;; 1120 1121 -localedir | --localedir | --localedi | --localed | --locale) 1122 ac_prev=localedir ;; 1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1124 localedir=$ac_optarg ;; 1125 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1127 | --localstate | --localstat | --localsta | --localst | --locals) 1128 ac_prev=localstatedir ;; 1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1131 localstatedir=$ac_optarg ;; 1132 1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1134 ac_prev=mandir ;; 1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1136 mandir=$ac_optarg ;; 1137 1138 -nfp | --nfp | --nf) 1139 # Obsolete; use --without-fp. 1140 with_fp=no ;; 1141 1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1143 | --no-cr | --no-c | -n) 1144 no_create=yes ;; 1145 1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1148 no_recursion=yes ;; 1149 1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1152 | --oldin | --oldi | --old | --ol | --o) 1153 ac_prev=oldincludedir ;; 1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1157 oldincludedir=$ac_optarg ;; 1158 1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1160 ac_prev=prefix ;; 1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1162 prefix=$ac_optarg ;; 1163 1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1165 | --program-pre | --program-pr | --program-p) 1166 ac_prev=program_prefix ;; 1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1169 program_prefix=$ac_optarg ;; 1170 1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1172 | --program-suf | --program-su | --program-s) 1173 ac_prev=program_suffix ;; 1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1176 program_suffix=$ac_optarg ;; 1177 1178 -program-transform-name | --program-transform-name \ 1179 | --program-transform-nam | --program-transform-na \ 1180 | --program-transform-n | --program-transform- \ 1181 | --program-transform | --program-transfor \ 1182 | --program-transfo | --program-transf \ 1183 | --program-trans | --program-tran \ 1184 | --progr-tra | --program-tr | --program-t) 1185 ac_prev=program_transform_name ;; 1186 -program-transform-name=* | --program-transform-name=* \ 1187 | --program-transform-nam=* | --program-transform-na=* \ 1188 | --program-transform-n=* | --program-transform-=* \ 1189 | --program-transform=* | --program-transfor=* \ 1190 | --program-transfo=* | --program-transf=* \ 1191 | --program-trans=* | --program-tran=* \ 1192 | --progr-tra=* | --program-tr=* | --program-t=*) 1193 program_transform_name=$ac_optarg ;; 1194 1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1196 ac_prev=pdfdir ;; 1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1198 pdfdir=$ac_optarg ;; 1199 1200 -psdir | --psdir | --psdi | --psd | --ps) 1201 ac_prev=psdir ;; 1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1203 psdir=$ac_optarg ;; 1204 1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1206 | -silent | --silent | --silen | --sile | --sil) 1207 silent=yes ;; 1208 1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1210 ac_prev=sbindir ;; 1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1212 | --sbi=* | --sb=*) 1213 sbindir=$ac_optarg ;; 1214 1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1217 | --sharedst | --shareds | --shared | --share | --shar \ 1218 | --sha | --sh) 1219 ac_prev=sharedstatedir ;; 1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1223 | --sha=* | --sh=*) 1224 sharedstatedir=$ac_optarg ;; 1225 1226 -site | --site | --sit) 1227 ac_prev=site ;; 1228 -site=* | --site=* | --sit=*) 1229 site=$ac_optarg ;; 1230 1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1232 ac_prev=srcdir ;; 1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1234 srcdir=$ac_optarg ;; 1235 1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1237 | --syscon | --sysco | --sysc | --sys | --sy) 1238 ac_prev=sysconfdir ;; 1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1241 sysconfdir=$ac_optarg ;; 1242 1243 -target | --target | --targe | --targ | --tar | --ta | --t) 1244 ac_prev=target_alias ;; 1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1246 target_alias=$ac_optarg ;; 1247 1248 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1249 verbose=yes ;; 1250 1251 -version | --version | --versio | --versi | --vers | -V) 1252 ac_init_version=: ;; 1253 1254 -with-* | --with-*) 1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1258 as_fn_error $? "invalid package name: $ac_useropt" 1259 ac_useropt_orig=$ac_useropt 1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1261 case $ac_user_opts in 1262 *" 1263"with_$ac_useropt" 1264"*) ;; 1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1266 ac_unrecognized_sep=', ';; 1267 esac 1268 eval with_$ac_useropt=\$ac_optarg ;; 1269 1270 -without-* | --without-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 as_fn_error $? "invalid package name: $ac_useropt" 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=no ;; 1285 1286 --x) 1287 # Obsolete; use --with-x. 1288 with_x=yes ;; 1289 1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1291 | --x-incl | --x-inc | --x-in | --x-i) 1292 ac_prev=x_includes ;; 1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1295 x_includes=$ac_optarg ;; 1296 1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1299 ac_prev=x_libraries ;; 1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1302 x_libraries=$ac_optarg ;; 1303 1304 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1305Try \`$0 --help' for more information" 1306 ;; 1307 1308 *=*) 1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1310 # Reject names that are not valid shell variable names. 1311 case $ac_envvar in #( 1312 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1314 esac 1315 eval $ac_envvar=\$ac_optarg 1316 export $ac_envvar ;; 1317 1318 *) 1319 # FIXME: should be removed in autoconf 3.0. 1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1324 ;; 1325 1326 esac 1327done 1328 1329if test -n "$ac_prev"; then 1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1331 as_fn_error $? "missing argument to $ac_option" 1332fi 1333 1334if test -n "$ac_unrecognized_opts"; then 1335 case $enable_option_checking in 1336 no) ;; 1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1339 esac 1340fi 1341 1342# Check all directory arguments for consistency. 1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1344 datadir sysconfdir sharedstatedir localstatedir includedir \ 1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1346 libdir localedir mandir 1347do 1348 eval ac_val=\$$ac_var 1349 # Remove trailing slashes. 1350 case $ac_val in 1351 */ ) 1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1353 eval $ac_var=\$ac_val;; 1354 esac 1355 # Be sure to have absolute directory names. 1356 case $ac_val in 1357 [\\/$]* | ?:[\\/]* ) continue;; 1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1359 esac 1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1361done 1362 1363# There might be people who depend on the old broken behavior: `$host' 1364# used to hold the argument of --host etc. 1365# FIXME: To remove some day. 1366build=$build_alias 1367host=$host_alias 1368target=$target_alias 1369 1370# FIXME: To remove some day. 1371if test "x$host_alias" != x; then 1372 if test "x$build_alias" = x; then 1373 cross_compiling=maybe 1374 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1375 If a cross compiler is detected then cross compile mode will be used" >&2 1376 elif test "x$build_alias" != "x$host_alias"; then 1377 cross_compiling=yes 1378 fi 1379fi 1380 1381ac_tool_prefix= 1382test -n "$host_alias" && ac_tool_prefix=$host_alias- 1383 1384test "$silent" = yes && exec 6>/dev/null 1385 1386 1387ac_pwd=`pwd` && test -n "$ac_pwd" && 1388ac_ls_di=`ls -di .` && 1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1390 as_fn_error $? "working directory cannot be determined" 1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1392 as_fn_error $? "pwd does not report name of working directory" 1393 1394 1395# Find the source files, if location was not specified. 1396if test -z "$srcdir"; then 1397 ac_srcdir_defaulted=yes 1398 # Try the directory containing this script, then the parent directory. 1399 ac_confdir=`$as_dirname -- "$as_myself" || 1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1401 X"$as_myself" : 'X\(//\)[^/]' \| \ 1402 X"$as_myself" : 'X\(//\)$' \| \ 1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1404$as_echo X"$as_myself" | 1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\/\)[^/].*/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\/\)$/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\).*/{ 1418 s//\1/ 1419 q 1420 } 1421 s/.*/./; q'` 1422 srcdir=$ac_confdir 1423 if test ! -r "$srcdir/$ac_unique_file"; then 1424 srcdir=.. 1425 fi 1426else 1427 ac_srcdir_defaulted=no 1428fi 1429if test ! -r "$srcdir/$ac_unique_file"; then 1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1431 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1432fi 1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1434ac_abs_confdir=`( 1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1436 pwd)` 1437# When building in place, set srcdir=. 1438if test "$ac_abs_confdir" = "$ac_pwd"; then 1439 srcdir=. 1440fi 1441# Remove unnecessary trailing slashes from srcdir. 1442# Double slashes in file names in object file debugging info 1443# mess up M-x gdb in Emacs. 1444case $srcdir in 1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1446esac 1447for ac_var in $ac_precious_vars; do 1448 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1449 eval ac_env_${ac_var}_value=\$${ac_var} 1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1451 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1452done 1453 1454# 1455# Report the --help message. 1456# 1457if test "$ac_init_help" = "long"; then 1458 # Omit some internal or obsolete options to make the list less imposing. 1459 # This message is too long to be a string in the A/UX 3.1 sh. 1460 cat <<_ACEOF 1461\`configure' configures curl - to adapt to many kinds of systems. 1462 1463Usage: $0 [OPTION]... [VAR=VALUE]... 1464 1465To assign environment variables (e.g., CC, CFLAGS...), specify them as 1466VAR=VALUE. See below for descriptions of some of the useful variables. 1467 1468Defaults for the options are specified in brackets. 1469 1470Configuration: 1471 -h, --help display this help and exit 1472 --help=short display options specific to this package 1473 --help=recursive display the short help of all the included packages 1474 -V, --version display version information and exit 1475 -q, --quiet, --silent do not print \`checking ...' messages 1476 --cache-file=FILE cache test results in FILE [disabled] 1477 -C, --config-cache alias for \`--cache-file=config.cache' 1478 -n, --no-create do not create output files 1479 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1480 1481Installation directories: 1482 --prefix=PREFIX install architecture-independent files in PREFIX 1483 [$ac_default_prefix] 1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1485 [PREFIX] 1486 1487By default, \`make install' will install all the files in 1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1489an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1490for instance \`--prefix=\$HOME'. 1491 1492For better control, use the options below. 1493 1494Fine tuning of the installation directories: 1495 --bindir=DIR user executables [EPREFIX/bin] 1496 --sbindir=DIR system admin executables [EPREFIX/sbin] 1497 --libexecdir=DIR program executables [EPREFIX/libexec] 1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1501 --libdir=DIR object code libraries [EPREFIX/lib] 1502 --includedir=DIR C header files [PREFIX/include] 1503 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1506 --infodir=DIR info documentation [DATAROOTDIR/info] 1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1508 --mandir=DIR man documentation [DATAROOTDIR/man] 1509 --docdir=DIR documentation root [DATAROOTDIR/doc/curl] 1510 --htmldir=DIR html documentation [DOCDIR] 1511 --dvidir=DIR dvi documentation [DOCDIR] 1512 --pdfdir=DIR pdf documentation [DOCDIR] 1513 --psdir=DIR ps documentation [DOCDIR] 1514_ACEOF 1515 1516 cat <<\_ACEOF 1517 1518Program names: 1519 --program-prefix=PREFIX prepend PREFIX to installed program names 1520 --program-suffix=SUFFIX append SUFFIX to installed program names 1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1522 1523System types: 1524 --build=BUILD configure for building on BUILD [guessed] 1525 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1526_ACEOF 1527fi 1528 1529if test -n "$ac_init_help"; then 1530 case $ac_init_help in 1531 short | recursive ) echo "Configuration of curl -:";; 1532 esac 1533 cat <<\_ACEOF 1534 1535Optional Features: 1536 --disable-option-checking ignore unrecognized --enable/--with options 1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1539 --enable-maintainer-mode enable make rules and dependencies not useful 1540 (and sometimes confusing) to the casual installer 1541 --enable-debug Enable debug build options 1542 --disable-debug Disable debug build options 1543 --enable-optimize Enable compiler optimizations 1544 --disable-optimize Disable compiler optimizations 1545 --enable-warnings Enable strict compiler warnings 1546 --disable-warnings Disable strict compiler warnings 1547 --enable-werror Enable compiler warnings as errors 1548 --disable-werror Disable compiler warnings as errors 1549 --enable-curldebug Enable curl debug memory tracking 1550 --disable-curldebug Disable curl debug memory tracking 1551 --enable-ares[=PATH] Enable c-ares for DNS lookups 1552 --disable-ares Disable c-ares for DNS lookups 1553 --disable-dependency-tracking speeds up one-time build 1554 --enable-dependency-tracking do not reject slow dependency extractors 1555 --disable-largefile omit support for large files 1556 --enable-shared[=PKGS] build shared libraries [default=yes] 1557 --enable-static[=PKGS] build static libraries [default=yes] 1558 --enable-fast-install[=PKGS] 1559 optimize for fast installation [default=yes] 1560 --disable-libtool-lock avoid locking (might break parallel builds) 1561 --enable-http Enable HTTP support 1562 --disable-http Disable HTTP support 1563 --enable-ftp Enable FTP support 1564 --disable-ftp Disable FTP support 1565 --enable-file Enable FILE support 1566 --disable-file Disable FILE support 1567 --enable-ldap Enable LDAP support 1568 --disable-ldap Disable LDAP support 1569 --enable-ldaps Enable LDAPS support 1570 --disable-ldaps Disable LDAPS support 1571 --enable-rtsp Enable RTSP support 1572 --disable-rtsp Disable RTSP support 1573 --enable-proxy Enable proxy support 1574 --disable-proxy Disable proxy support 1575 --enable-dict Enable DICT support 1576 --disable-dict Disable DICT support 1577 --enable-telnet Enable TELNET support 1578 --disable-telnet Disable TELNET support 1579 --enable-tftp Enable TFTP support 1580 --disable-tftp Disable TFTP support 1581 --enable-pop3 Enable POP3 support 1582 --disable-pop3 Disable POP3 support 1583 --enable-imap Enable IMAP support 1584 --disable-imap Disable IMAP support 1585 --enable-smtp Enable SMTP support 1586 --disable-smtp Disable SMTP support 1587 --enable-gopher Enable Gopher support 1588 --disable-gopher Disable Gopher support 1589 --enable-manual Enable built-in manual 1590 --disable-manual Disable built-in manual 1591 --enable-libgcc use libgcc when linking 1592 --enable-ipv6 Enable ipv6 (with ipv4) support 1593 --disable-ipv6 Disable ipv6 support 1594 --enable-nonblocking Enable non-blocking communications 1595 --disable-nonblocking Disable non-blocking communications 1596 --enable-threaded-resolver 1597 Enable threaded resolver 1598 --disable-threaded-resolver 1599 Disable threaded resolver 1600 --enable-verbose Enable verbose strings 1601 --disable-verbose Disable verbose strings 1602 --enable-sspi Enable SSPI 1603 --disable-sspi Disable SSPI 1604 --enable-crypto-auth Enable cryptographic authentication 1605 --disable-crypto-auth Disable cryptographic authentication 1606 --enable-tls-srp Enable TLS-SRP authentication 1607 --disable-tls-srp Disable TLS-SRP authentication 1608 --enable-cookies Enable cookies support 1609 --disable-cookies Disable cookies support 1610 --enable-hidden-symbols Hide internal symbols in library 1611 --disable-hidden-symbols 1612 Leave all symbols with default visibility in library 1613 --enable-soname-bump Enable enforced SONAME bump 1614 --disable-soname-bump Disable enforced SONAME bump 1615 1616Optional Packages: 1617 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1618 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1619 --with-pic try to use only PIC/non-PIC objects [default=use 1620 both] 1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1622 --with-sysroot=DIR Search for dependent libraries within DIR 1623 (or the compiler's sysroot if not specified). 1624 --with-ldap-lib=libname Specify name of ldap lib file 1625 --with-lber-lib=libname Specify name of lber lib file 1626 --with-krb4-includes=DIR 1627 Specify location of kerberos4 headers 1628 --with-krb4-libs=DIR Specify location of kerberos4 libs 1629 --with-krb4=DIR where to look for Kerberos4 1630 --with-spnego=DIR Specify location of SPNEGO library fbopenssl 1631 --with-gssapi-includes=DIR 1632 Specify location of GSSAPI header 1633 --with-gssapi-libs=DIR Specify location of GSSAPI libs 1634 --with-gssapi=DIR Where to look for GSSAPI 1635 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL 1636 installation (default: /usr/local/ssl); when 1637 possible, set the PKG_CONFIG_PATH environment 1638 variable instead of using this option 1639 --without-ssl disable OpenSSL 1640 --with-zlib=PATH search for zlib in PATH 1641 --without-zlib disable use of zlib 1642 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname 1643 --with-random=FILE read randomness from FILE (default=/dev/urandom) 1644 --with-gnutls=PATH where to look for GnuTLS, PATH points to the 1645 installation root 1646 --without-gnutls disable GnuTLS detection 1647 --with-polarssl=PATH where to look for PolarSSL, PATH points to the 1648 installation root 1649 --without-polarssl disable PolarSSL detection 1650 --with-cyassl=PATH where to look for CyaSSL, PATH points to the 1651 installation root (default: /usr/local/cyassl) 1652 --without-cyassl disable CyaSSL detection 1653 --with-nss=PATH where to look for NSS, PATH points to the 1654 installation root 1655 --without-nss disable NSS detection 1656 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS 1657 installation prefix (default: /usr/local). Ignored 1658 if another SSL engine is selected. 1659 --without-axtls disable axTLS 1660 --with-ca-bundle=FILE File name to use as CA bundle 1661 --without-ca-bundle Don't use a default CA bundle 1662 --with-ca-path=DIRECTORY 1663 Directory to use as CA path 1664 --without-ca-path Don't use a default CA path 1665 --with-libssh2=PATH Where to look for libssh2, PATH points to the 1666 LIBSSH2 installation; when possible, set the 1667 PKG_CONFIG_PATH environment variable instead of 1668 using this option 1669 --without-libssh2 disable LIBSSH2 1670 --with-librtmp=PATH Where to look for librtmp, PATH points to the 1671 LIBRTMP installation; when possible, set the 1672 PKG_CONFIG_PATH environment variable instead of 1673 using this option 1674 --without-librtmp disable LIBRTMP 1675 --with-libidn=PATH Enable libidn usage 1676 --without-libidn Disable libidn usage 1677 1678Some influential environment variables: 1679 CC C compiler command 1680 CFLAGS C compiler flags 1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1682 nonstandard directory <lib dir> 1683 LIBS libraries to pass to the linker, e.g. -l<library> 1684 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1685 you have headers in a nonstandard directory <include dir> 1686 CPP C preprocessor 1687 1688Use these variables to override the choices made by `configure' or to help 1689it to find libraries and programs with nonstandard names/locations. 1690 1691Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>. 1692_ACEOF 1693ac_status=$? 1694fi 1695 1696if test "$ac_init_help" = "recursive"; then 1697 # If there are subdirs, report their specific --help. 1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1699 test -d "$ac_dir" || 1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1701 continue 1702 ac_builddir=. 1703 1704case "$ac_dir" in 1705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1706*) 1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1708 # A ".." for each directory in $ac_dir_suffix. 1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1710 case $ac_top_builddir_sub in 1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1713 esac ;; 1714esac 1715ac_abs_top_builddir=$ac_pwd 1716ac_abs_builddir=$ac_pwd$ac_dir_suffix 1717# for backward compatibility: 1718ac_top_builddir=$ac_top_build_prefix 1719 1720case $srcdir in 1721 .) # We are building in place. 1722 ac_srcdir=. 1723 ac_top_srcdir=$ac_top_builddir_sub 1724 ac_abs_top_srcdir=$ac_pwd ;; 1725 [\\/]* | ?:[\\/]* ) # Absolute name. 1726 ac_srcdir=$srcdir$ac_dir_suffix; 1727 ac_top_srcdir=$srcdir 1728 ac_abs_top_srcdir=$srcdir ;; 1729 *) # Relative name. 1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1731 ac_top_srcdir=$ac_top_build_prefix$srcdir 1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1733esac 1734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1735 1736 cd "$ac_dir" || { ac_status=$?; continue; } 1737 # Check for guested configure. 1738 if test -f "$ac_srcdir/configure.gnu"; then 1739 echo && 1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1741 elif test -f "$ac_srcdir/configure"; then 1742 echo && 1743 $SHELL "$ac_srcdir/configure" --help=recursive 1744 else 1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1746 fi || ac_status=$? 1747 cd "$ac_pwd" || { ac_status=$?; break; } 1748 done 1749fi 1750 1751test -n "$ac_init_help" && exit $ac_status 1752if $ac_init_version; then 1753 cat <<\_ACEOF 1754curl configure - 1755generated by GNU Autoconf 2.68 1756 1757Copyright (C) 2010 Free Software Foundation, Inc. 1758This configure script is free software; the Free Software Foundation 1759gives unlimited permission to copy, distribute and modify it. 1760 1761Copyright (c) 1998 - 2011 Daniel Stenberg, <daniel@haxx.se> 1762This configure script may be copied, distributed and modified under the 1763terms of the curl license; see COPYING for more details 1764_ACEOF 1765 exit 1766fi 1767 1768## ------------------------ ## 1769## Autoconf initialization. ## 1770## ------------------------ ## 1771 1772# ac_fn_c_try_compile LINENO 1773# -------------------------- 1774# Try to compile conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_compile () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 rm -f conftest.$ac_objext 1779 if { { ac_try="$ac_compile" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_compile") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { 1795 test -z "$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 } && test -s conftest.$ac_objext; then : 1798 ac_retval=0 1799else 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=1 1804fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_try_compile 1809 1810# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1811# ------------------------------------------------------- 1812# Tests whether HEADER exists and can be compiled using the include files in 1813# INCLUDES, setting the cache variable VAR accordingly. 1814ac_fn_c_check_header_compile () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818$as_echo_n "checking for $2... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824$4 1825#include <$2> 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO"; then : 1828 eval "$3=yes" 1829else 1830 eval "$3=no" 1831fi 1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1833fi 1834eval ac_res=\$$3 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836$as_echo "$ac_res" >&6; } 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839} # ac_fn_c_check_header_compile 1840 1841# ac_fn_c_try_run LINENO 1842# ---------------------- 1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1844# that executables *can* be run. 1845ac_fn_c_try_run () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 if { { ac_try="$ac_link" 1849case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_link") 2>&5 1856 ac_status=$? 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1859 { { case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_try") 2>&5 1866 ac_status=$? 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; }; }; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: program exited with status $ac_status" >&5 1872 $as_echo "$as_me: failed program was:" >&5 1873sed 's/^/| /' conftest.$ac_ext >&5 1874 1875 ac_retval=$ac_status 1876fi 1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 as_fn_set_status $ac_retval 1880 1881} # ac_fn_c_try_run 1882 1883# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1884# -------------------------------------------- 1885# Tries to find the compile-time value of EXPR in a program that includes 1886# INCLUDES, setting VAR accordingly. Returns whether the value could be 1887# computed 1888ac_fn_c_compute_int () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 if test "$cross_compiling" = yes; then 1892 # Depending upon the size, compute the lo and hi bounds. 1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894/* end confdefs.h. */ 1895$4 1896int main (void) 1897{ 1898static int test_array [1 - 2 * !(($2) >= 0)]; 1899test_array [0] = 0 1900 1901 ; 1902 return 0; 1903} 1904_ACEOF 1905if ac_fn_c_try_compile "$LINENO"; then : 1906 ac_lo=0 ac_mid=0 1907 while :; do 1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1909/* end confdefs.h. */ 1910$4 1911int main (void) 1912{ 1913static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1914test_array [0] = 0 1915 1916 ; 1917 return 0; 1918} 1919_ACEOF 1920if ac_fn_c_try_compile "$LINENO"; then : 1921 ac_hi=$ac_mid; break 1922else 1923 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1924 if test $ac_lo -le $ac_mid; then 1925 ac_lo= ac_hi= 1926 break 1927 fi 1928 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931 done 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935$4 1936int main (void) 1937{ 1938static int test_array [1 - 2 * !(($2) < 0)]; 1939test_array [0] = 0 1940 1941 ; 1942 return 0; 1943} 1944_ACEOF 1945if ac_fn_c_try_compile "$LINENO"; then : 1946 ac_hi=-1 ac_mid=-1 1947 while :; do 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949/* end confdefs.h. */ 1950$4 1951int main (void) 1952{ 1953static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1954test_array [0] = 0 1955 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 ac_lo=$ac_mid; break 1962else 1963 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1964 if test $ac_mid -le $ac_hi; then 1965 ac_lo= ac_hi= 1966 break 1967 fi 1968 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971 done 1972else 1973 ac_lo= ac_hi= 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978# Binary search between lo and hi bounds. 1979while test "x$ac_lo" != "x$ac_hi"; do 1980 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983$4 1984int main (void) 1985{ 1986static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1987test_array [0] = 0 1988 1989 ; 1990 return 0; 1991} 1992_ACEOF 1993if ac_fn_c_try_compile "$LINENO"; then : 1994 ac_hi=$ac_mid 1995else 1996 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1997fi 1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1999done 2000case $ac_lo in #(( 2001?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2002'') ac_retval=1 ;; 2003esac 2004 else 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006/* end confdefs.h. */ 2007$4 2008static long int longval () { return $2; } 2009static unsigned long int ulongval () { return $2; } 2010#include <stdio.h> 2011#include <stdlib.h> 2012int main (void) 2013{ 2014 2015 FILE *f = fopen ("conftest.val", "w"); 2016 if (! f) 2017 return 1; 2018 if (($2) < 0) 2019 { 2020 long int i = longval (); 2021 if (i != ($2)) 2022 return 1; 2023 fprintf (f, "%ld", i); 2024 } 2025 else 2026 { 2027 unsigned long int i = ulongval (); 2028 if (i != ($2)) 2029 return 1; 2030 fprintf (f, "%lu", i); 2031 } 2032 /* Do not output a trailing newline, as this causes \r\n confusion 2033 on some platforms. */ 2034 return ferror (f) || fclose (f) != 0; 2035 2036 ; 2037 return 0; 2038} 2039_ACEOF 2040if ac_fn_c_try_run "$LINENO"; then : 2041 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2042else 2043 ac_retval=1 2044fi 2045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2046 conftest.$ac_objext conftest.beam conftest.$ac_ext 2047rm -f conftest.val 2048 2049 fi 2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2051 as_fn_set_status $ac_retval 2052 2053} # ac_fn_c_compute_int 2054 2055# ac_fn_c_try_cpp LINENO 2056# ---------------------- 2057# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2058ac_fn_c_try_cpp () 2059{ 2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2061 if { { ac_try="$ac_cpp conftest.$ac_ext" 2062case "(($ac_try" in 2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2064 *) ac_try_echo=$ac_try;; 2065esac 2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2067$as_echo "$ac_try_echo"; } >&5 2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2069 ac_status=$? 2070 if test -s conftest.err; then 2071 grep -v '^ *+' conftest.err >conftest.er1 2072 cat conftest.er1 >&5 2073 mv -f conftest.er1 conftest.err 2074 fi 2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2076 test $ac_status = 0; } > conftest.i && { 2077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2078 test ! -s conftest.err 2079 }; then : 2080 ac_retval=0 2081else 2082 $as_echo "$as_me: failed program was:" >&5 2083sed 's/^/| /' conftest.$ac_ext >&5 2084 2085 ac_retval=1 2086fi 2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2088 as_fn_set_status $ac_retval 2089 2090} # ac_fn_c_try_cpp 2091 2092# ac_fn_c_try_link LINENO 2093# ----------------------- 2094# Try to link conftest.$ac_ext, and return whether this succeeded. 2095ac_fn_c_try_link () 2096{ 2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2098 rm -f conftest.$ac_objext conftest$ac_exeext 2099 if { { ac_try="$ac_link" 2100case "(($ac_try" in 2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2102 *) ac_try_echo=$ac_try;; 2103esac 2104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2105$as_echo "$ac_try_echo"; } >&5 2106 (eval "$ac_link") 2>conftest.err 2107 ac_status=$? 2108 if test -s conftest.err; then 2109 grep -v '^ *+' conftest.err >conftest.er1 2110 cat conftest.er1 >&5 2111 mv -f conftest.er1 conftest.err 2112 fi 2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2114 test $ac_status = 0; } && { 2115 test -z "$ac_c_werror_flag" || 2116 test ! -s conftest.err 2117 } && test -s conftest$ac_exeext && { 2118 test "$cross_compiling" = yes || 2119 $as_test_x conftest$ac_exeext 2120 }; then : 2121 ac_retval=0 2122else 2123 $as_echo "$as_me: failed program was:" >&5 2124sed 's/^/| /' conftest.$ac_ext >&5 2125 2126 ac_retval=1 2127fi 2128 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2129 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2130 # interfere with the next link command; also delete a directory that is 2131 # left behind by Apple's compiler. We do this before executing the actions. 2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2134 as_fn_set_status $ac_retval 2135 2136} # ac_fn_c_try_link 2137 2138# ac_fn_c_check_func LINENO FUNC VAR 2139# ---------------------------------- 2140# Tests whether FUNC exists, setting the cache variable VAR accordingly 2141ac_fn_c_check_func () 2142{ 2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2145$as_echo_n "checking for $2... " >&6; } 2146if eval \${$3+:} false; then : 2147 $as_echo_n "(cached) " >&6 2148else 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151 2152#define $2 innocuous_$2 2153#ifdef __STDC__ 2154# include <limits.h> 2155#else 2156# include <assert.h> 2157#endif 2158#undef $2 2159#ifdef __cplusplus 2160extern "C" 2161#endif 2162char $2 (); 2163#if defined __stub_$2 || defined __stub___$2 2164choke me 2165#endif 2166 2167int main (void) 2168{ 2169return $2 (); 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_link "$LINENO"; then : 2175 eval "$3=yes" 2176else 2177 eval "$3=no" 2178fi 2179rm -f core conftest.err conftest.$ac_objext \ 2180 conftest$ac_exeext conftest.$ac_ext 2181fi 2182eval ac_res=\$$3 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2184$as_echo "$ac_res" >&6; } 2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2186 2187} # ac_fn_c_check_func 2188 2189# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2190# ------------------------------------------------------- 2191# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2192# the include files in INCLUDES and setting the cache variable VAR 2193# accordingly. 2194ac_fn_c_check_header_mongrel () 2195{ 2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2197 if eval \${$3+:} false; then : 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2199$as_echo_n "checking for $2... " >&6; } 2200if eval \${$3+:} false; then : 2201 $as_echo_n "(cached) " >&6 2202fi 2203eval ac_res=\$$3 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2205$as_echo "$ac_res" >&6; } 2206else 2207 # Is the header compilable? 2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2209$as_echo_n "checking $2 usability... " >&6; } 2210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211/* end confdefs.h. */ 2212$4 2213#include <$2> 2214_ACEOF 2215if ac_fn_c_try_compile "$LINENO"; then : 2216 ac_header_compiler=yes 2217else 2218 ac_header_compiler=no 2219fi 2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2222$as_echo "$ac_header_compiler" >&6; } 2223 2224# Is the header present? 2225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2226$as_echo_n "checking $2 presence... " >&6; } 2227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228/* end confdefs.h. */ 2229#include <$2> 2230_ACEOF 2231if ac_fn_c_try_cpp "$LINENO"; then : 2232 ac_header_preproc=yes 2233else 2234 ac_header_preproc=no 2235fi 2236rm -f conftest.err conftest.i conftest.$ac_ext 2237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2238$as_echo "$ac_header_preproc" >&6; } 2239 2240# So? What about this header? 2241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2242 yes:no: ) 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2244$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2246$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2247 ;; 2248 no:yes:* ) 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2250$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2252$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2254$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2256$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2258$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2259( $as_echo "## ---------------------------------------------------------------------- ## 2260## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ## 2261## ---------------------------------------------------------------------- ##" 2262 ) | sed "s/^/$as_me: WARNING: /" >&2 2263 ;; 2264esac 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2266$as_echo_n "checking for $2... " >&6; } 2267if eval \${$3+:} false; then : 2268 $as_echo_n "(cached) " >&6 2269else 2270 eval "$3=\$ac_header_compiler" 2271fi 2272eval ac_res=\$$3 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2274$as_echo "$ac_res" >&6; } 2275fi 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 2278} # ac_fn_c_check_header_mongrel 2279 2280# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2281# ------------------------------------------- 2282# Tests whether TYPE exists after having included INCLUDES, setting cache 2283# variable VAR accordingly. 2284ac_fn_c_check_type () 2285{ 2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2288$as_echo_n "checking for $2... " >&6; } 2289if eval \${$3+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291else 2292 eval "$3=no" 2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2294/* end confdefs.h. */ 2295$4 2296int main (void) 2297{ 2298if (sizeof ($2)) 2299 return 0; 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_c_try_compile "$LINENO"; then : 2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2306/* end confdefs.h. */ 2307$4 2308int main (void) 2309{ 2310if (sizeof (($2))) 2311 return 0; 2312 ; 2313 return 0; 2314} 2315_ACEOF 2316if ac_fn_c_try_compile "$LINENO"; then : 2317 2318else 2319 eval "$3=yes" 2320fi 2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2322fi 2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2324fi 2325eval ac_res=\$$3 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2327$as_echo "$ac_res" >&6; } 2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2329 2330} # ac_fn_c_check_type 2331cat >config.log <<_ACEOF 2332This file contains any messages produced by compilers while 2333running configure, to aid debugging if configure makes a mistake. 2334 2335It was created by curl $as_me -, which was 2336generated by GNU Autoconf 2.68. Invocation command line was 2337 2338 $ $0 $@ 2339 2340_ACEOF 2341exec 5>>config.log 2342{ 2343cat <<_ASUNAME 2344## --------- ## 2345## Platform. ## 2346## --------- ## 2347 2348hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2349uname -m = `(uname -m) 2>/dev/null || echo unknown` 2350uname -r = `(uname -r) 2>/dev/null || echo unknown` 2351uname -s = `(uname -s) 2>/dev/null || echo unknown` 2352uname -v = `(uname -v) 2>/dev/null || echo unknown` 2353 2354/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2355/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2356 2357/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2358/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2359/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2360/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2361/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2362/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2363/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2364 2365_ASUNAME 2366 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 $as_echo "PATH: $as_dir" 2373 done 2374IFS=$as_save_IFS 2375 2376} >&5 2377 2378cat >&5 <<_ACEOF 2379 2380 2381## ----------- ## 2382## Core tests. ## 2383## ----------- ## 2384 2385_ACEOF 2386 2387 2388# Keep a trace of the command line. 2389# Strip out --no-create and --no-recursion so they do not pile up. 2390# Strip out --silent because we don't want to record it for future runs. 2391# Also quote any args containing shell meta-characters. 2392# Make two passes to allow for proper duplicate-argument suppression. 2393ac_configure_args= 2394ac_configure_args0= 2395ac_configure_args1= 2396ac_must_keep_next=false 2397for ac_pass in 1 2 2398do 2399 for ac_arg 2400 do 2401 case $ac_arg in 2402 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2404 | -silent | --silent | --silen | --sile | --sil) 2405 continue ;; 2406 *\'*) 2407 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2408 esac 2409 case $ac_pass in 2410 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2411 2) 2412 as_fn_append ac_configure_args1 " '$ac_arg'" 2413 if test $ac_must_keep_next = true; then 2414 ac_must_keep_next=false # Got value, back to normal. 2415 else 2416 case $ac_arg in 2417 *=* | --config-cache | -C | -disable-* | --disable-* \ 2418 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2419 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2420 | -with-* | --with-* | -without-* | --without-* | --x) 2421 case "$ac_configure_args0 " in 2422 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2423 esac 2424 ;; 2425 -* ) ac_must_keep_next=true ;; 2426 esac 2427 fi 2428 as_fn_append ac_configure_args " '$ac_arg'" 2429 ;; 2430 esac 2431 done 2432done 2433{ ac_configure_args0=; unset ac_configure_args0;} 2434{ ac_configure_args1=; unset ac_configure_args1;} 2435 2436# When interrupted or exit'd, cleanup temporary files, and complete 2437# config.log. We remove comments because anyway the quotes in there 2438# would cause problems or look ugly. 2439# WARNING: Use '\'' to represent an apostrophe within the trap. 2440# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2441trap 'exit_status=$? 2442 # Save into config.log some information that might help in debugging. 2443 { 2444 echo 2445 2446 $as_echo "## ---------------- ## 2447## Cache variables. ## 2448## ---------------- ##" 2449 echo 2450 # The following way of writing the cache mishandles newlines in values, 2451( 2452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2453 eval ac_val=\$$ac_var 2454 case $ac_val in #( 2455 *${as_nl}*) 2456 case $ac_var in #( 2457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2458$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2459 esac 2460 case $ac_var in #( 2461 _ | IFS | as_nl) ;; #( 2462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2463 *) { eval $ac_var=; unset $ac_var;} ;; 2464 esac ;; 2465 esac 2466 done 2467 (set) 2>&1 | 2468 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2469 *${as_nl}ac_space=\ *) 2470 sed -n \ 2471 "s/'\''/'\''\\\\'\'''\''/g; 2472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2473 ;; #( 2474 *) 2475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2476 ;; 2477 esac | 2478 sort 2479) 2480 echo 2481 2482 $as_echo "## ----------------- ## 2483## Output variables. ## 2484## ----------------- ##" 2485 echo 2486 for ac_var in $ac_subst_vars 2487 do 2488 eval ac_val=\$$ac_var 2489 case $ac_val in 2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2491 esac 2492 $as_echo "$ac_var='\''$ac_val'\''" 2493 done | sort 2494 echo 2495 2496 if test -n "$ac_subst_files"; then 2497 $as_echo "## ------------------- ## 2498## File substitutions. ## 2499## ------------------- ##" 2500 echo 2501 for ac_var in $ac_subst_files 2502 do 2503 eval ac_val=\$$ac_var 2504 case $ac_val in 2505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2506 esac 2507 $as_echo "$ac_var='\''$ac_val'\''" 2508 done | sort 2509 echo 2510 fi 2511 2512 if test -s confdefs.h; then 2513 $as_echo "## ----------- ## 2514## confdefs.h. ## 2515## ----------- ##" 2516 echo 2517 cat confdefs.h 2518 echo 2519 fi 2520 test "$ac_signal" != 0 && 2521 $as_echo "$as_me: caught signal $ac_signal" 2522 $as_echo "$as_me: exit $exit_status" 2523 } >&5 2524 rm -f core *.core core.conftest.* && 2525 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2526 exit $exit_status 2527' 0 2528for ac_signal in 1 2 13 15; do 2529 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2530done 2531ac_signal=0 2532 2533# confdefs.h avoids OS command line length limits that DEFS can exceed. 2534rm -f -r conftest* confdefs.h 2535 2536$as_echo "/* confdefs.h */" > confdefs.h 2537 2538# Predefined preprocessor variables. 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_NAME "$PACKAGE_NAME" 2542_ACEOF 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2546_ACEOF 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_VERSION "$PACKAGE_VERSION" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_STRING "$PACKAGE_STRING" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_URL "$PACKAGE_URL" 2562_ACEOF 2563 2564 2565# Let the site file select an alternate cache file if it wants to. 2566# Prefer an explicitly selected file to automatically selected ones. 2567ac_site_file1=NONE 2568ac_site_file2=NONE 2569if test -n "$CONFIG_SITE"; then 2570 # We do not want a PATH search for config.site. 2571 case $CONFIG_SITE in #(( 2572 -*) ac_site_file1=./$CONFIG_SITE;; 2573 */*) ac_site_file1=$CONFIG_SITE;; 2574 *) ac_site_file1=./$CONFIG_SITE;; 2575 esac 2576elif test "x$prefix" != xNONE; then 2577 ac_site_file1=$prefix/share/config.site 2578 ac_site_file2=$prefix/etc/config.site 2579else 2580 ac_site_file1=$ac_default_prefix/share/config.site 2581 ac_site_file2=$ac_default_prefix/etc/config.site 2582fi 2583for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2584do 2585 test "x$ac_site_file" = xNONE && continue 2586 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2588$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2589 sed 's/^/| /' "$ac_site_file" >&5 2590 . "$ac_site_file" \ 2591 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2593as_fn_error $? "failed to load site script $ac_site_file 2594See \`config.log' for more details" "$LINENO" 5; } 2595 fi 2596done 2597 2598if test -r "$cache_file"; then 2599 # Some versions of bash will fail to source /dev/null (special files 2600 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2601 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2603$as_echo "$as_me: loading cache $cache_file" >&6;} 2604 case $cache_file in 2605 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2606 *) . "./$cache_file";; 2607 esac 2608 fi 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2611$as_echo "$as_me: creating cache $cache_file" >&6;} 2612 >$cache_file 2613fi 2614 2615# Check that the precious variables saved in the cache have kept the same 2616# value. 2617ac_cache_corrupted=false 2618for ac_var in $ac_precious_vars; do 2619 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2620 eval ac_new_set=\$ac_env_${ac_var}_set 2621 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2622 eval ac_new_val=\$ac_env_${ac_var}_value 2623 case $ac_old_set,$ac_new_set in 2624 set,) 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2626$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2627 ac_cache_corrupted=: ;; 2628 ,set) 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2630$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2631 ac_cache_corrupted=: ;; 2632 ,);; 2633 *) 2634 if test "x$ac_old_val" != "x$ac_new_val"; then 2635 # differences in whitespace do not lead to failure. 2636 ac_old_val_w=`echo x $ac_old_val` 2637 ac_new_val_w=`echo x $ac_new_val` 2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2640$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2641 ac_cache_corrupted=: 2642 else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2644$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2645 eval $ac_var=\$ac_old_val 2646 fi 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2648$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2650$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2651 fi;; 2652 esac 2653 # Pass precious variables to config.status. 2654 if test "$ac_new_set" = set; then 2655 case $ac_new_val in 2656 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2657 *) ac_arg=$ac_var=$ac_new_val ;; 2658 esac 2659 case " $ac_configure_args " in 2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2661 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2662 esac 2663 fi 2664done 2665if $ac_cache_corrupted; then 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2669$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2670 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2671fi 2672## -------------------- ## 2673## Main body of script. ## 2674## -------------------- ## 2675 2676ac_ext=c 2677ac_cpp='$CPP $CPPFLAGS' 2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2680ac_compiler_gnu=$ac_cv_c_compiler_gnu 2681 2682 2683 2684 2685 2686# using curl-override.m4 2687 2688 2689 2690 2691 2692ac_config_headers="$ac_config_headers lib/curl_config.h src/curl_config.h include/curl/curlbuild.h" 2693 2694: 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2696$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2697 # Check whether --enable-maintainer-mode was given. 2698if test "${enable_maintainer_mode+set}" = set; then : 2699 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2700else 2701 USE_MAINTAINER_MODE=no 2702fi 2703 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2705$as_echo "$USE_MAINTAINER_MODE" >&6; } 2706 2707 2708if test $USE_MAINTAINER_MODE = yes; then 2709 MAINTAINER_MODE_TRUE= 2710 MAINTAINER_MODE_FALSE='#' 2711else 2712 MAINTAINER_MODE_TRUE='#' 2713 MAINTAINER_MODE_FALSE= 2714fi 2715 2716 MAINT=$MAINTAINER_MODE_TRUE 2717 2718 2719 2720 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 2722$as_echo_n "checking whether to enable debug build options... " >&6; } 2723 OPT_DEBUG_BUILD="default" 2724 # Check whether --enable-debug was given. 2725if test "${enable_debug+set}" = set; then : 2726 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 2727fi 2728 2729 case "$OPT_DEBUG_BUILD" in 2730 no) 2731 want_debug="no" 2732 ;; 2733 default) 2734 want_debug="no" 2735 ;; 2736 *) 2737 want_debug="yes" 2738 ;; 2739 esac 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 2741$as_echo "$want_debug" >&6; } 2742 2743 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 2745$as_echo_n "checking whether to enable compiler optimizer... " >&6; } 2746 OPT_COMPILER_OPTIMIZE="default" 2747 # Check whether --enable-optimize was given. 2748if test "${enable_optimize+set}" = set; then : 2749 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 2750fi 2751 2752 case "$OPT_COMPILER_OPTIMIZE" in 2753 no) 2754 want_optimize="no" 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757 ;; 2758 default) 2759 if test "$want_debug" = "yes"; then 2760 want_optimize="assume_no" 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 2762$as_echo "(assumed) no" >&6; } 2763 else 2764 want_optimize="assume_yes" 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 2766$as_echo "(assumed) yes" >&6; } 2767 fi 2768 ;; 2769 *) 2770 want_optimize="yes" 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2772$as_echo "yes" >&6; } 2773 ;; 2774 esac 2775 2776 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 2778$as_echo_n "checking whether to enable strict compiler warnings... " >&6; } 2779 OPT_COMPILER_WARNINGS="default" 2780 # Check whether --enable-warnings was given. 2781if test "${enable_warnings+set}" = set; then : 2782 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 2783fi 2784 2785 case "$OPT_COMPILER_WARNINGS" in 2786 no) 2787 want_warnings="no" 2788 ;; 2789 default) 2790 want_warnings="$want_debug" 2791 ;; 2792 *) 2793 want_warnings="yes" 2794 ;; 2795 esac 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 2797$as_echo "$want_warnings" >&6; } 2798 2799 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 2801$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; } 2802 OPT_COMPILER_WERROR="default" 2803 # Check whether --enable-werror was given. 2804if test "${enable_werror+set}" = set; then : 2805 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 2806fi 2807 2808 case "$OPT_COMPILER_WERROR" in 2809 no) 2810 want_werror="no" 2811 ;; 2812 default) 2813 want_werror="no" 2814 ;; 2815 *) 2816 want_werror="yes" 2817 ;; 2818 esac 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 2820$as_echo "$want_werror" >&6; } 2821 2822 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 2824$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; } 2825 OPT_CURLDEBUG_BUILD="default" 2826 # Check whether --enable-curldebug was given. 2827if test "${enable_curldebug+set}" = set; then : 2828 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval 2829fi 2830 2831 case "$OPT_CURLDEBUG_BUILD" in 2832 no) 2833 want_curldebug="no" 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835$as_echo "no" >&6; } 2836 ;; 2837 default) 2838 if test "$want_debug" = "yes"; then 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 2840$as_echo "(assumed) yes" >&6; } 2841 else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844 fi 2845 want_curldebug_assumed="yes" 2846 want_curldebug="$want_debug" 2847 ;; 2848 *) 2849 want_curldebug="yes" 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2851$as_echo "yes" >&6; } 2852 ;; 2853 esac 2854 2855 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 2857$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; } 2858 OPT_ARES="default" 2859 # Check whether --enable-ares was given. 2860if test "${enable_ares+set}" = set; then : 2861 enableval=$enable_ares; OPT_ARES=$enableval 2862fi 2863 2864 case "$OPT_ARES" in 2865 no) 2866 want_ares="no" 2867 ;; 2868 default) 2869 want_ares="no" 2870 ;; 2871 *) 2872 want_ares="yes" 2873 if test -n "$enableval" && test "$enableval" != "yes"; then 2874 want_ares_path="$enableval" 2875 fi 2876 ;; 2877 esac 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 2879$as_echo "$want_ares" >&6; } 2880 2881 2882 2883 2884 2885# 2886# save the configure arguments 2887# 2888CONFIGURE_OPTIONS="\"$ac_configure_args\"" 2889 2890 2891CURL_CFLAG_EXTRAS="" 2892if test X"$want_werror" = Xyes; then 2893 CURL_CFLAG_EXTRAS="-Werror" 2894fi 2895 2896 2897if test -z "$SED"; then 2898 # Extract the first word of "sed", so it can be a program name with args. 2899set dummy sed; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if ${ac_cv_path_SED+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 case $SED in 2906 [\\/]* | ?:[\\/]*) 2907 ac_cv_path_SED="$SED" # Let the user override the test with a path. 2908 ;; 2909 *) 2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911as_dummy="$PATH:/usr/bin:/usr/local/bin" 2912for as_dir in $as_dummy 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2918 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 2927 ;; 2928esac 2929fi 2930SED=$ac_cv_path_SED 2931if test -n "$SED"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 2933$as_echo "$SED" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 2940 if test -z "$SED" || test "$SED" = "not_found"; then 2941 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 2942 fi 2943fi 2944 2945 2946if test -z "$GREP"; then 2947 # Extract the first word of "grep", so it can be a program name with args. 2948set dummy grep; ac_word=$2 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950$as_echo_n "checking for $ac_word... " >&6; } 2951if ${ac_cv_path_GREP+:} false; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 case $GREP in 2955 [\\/]* | ?:[\\/]*) 2956 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 2957 ;; 2958 *) 2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960as_dummy="$PATH:/usr/bin:/usr/local/bin" 2961for as_dir in $as_dummy 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 2976 ;; 2977esac 2978fi 2979GREP=$ac_cv_path_GREP 2980if test -n "$GREP"; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 2982$as_echo "$GREP" >&6; } 2983else 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989 if test -z "$GREP" || test "$GREP" = "not_found"; then 2990 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 2991 fi 2992fi 2993 2994 2995if test -z "$EGREP"; then 2996 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 2998$as_echo_n "checking for egrep... " >&6; } 2999 EGREP="$GREP -E" 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3001$as_echo "$EGREP" >&6; } 3002 else 3003 # Extract the first word of "egrep", so it can be a program name with args. 3004set dummy egrep; ac_word=$2 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006$as_echo_n "checking for $ac_word... " >&6; } 3007if ${ac_cv_path_EGREP+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 case $EGREP in 3011 [\\/]* | ?:[\\/]*) 3012 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 3013 ;; 3014 *) 3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016as_dummy="$PATH:/usr/bin:/usr/local/bin" 3017for as_dir in $as_dummy 3018do 3019 IFS=$as_save_IFS 3020 test -z "$as_dir" && as_dir=. 3021 for ac_exec_ext in '' $ac_executable_extensions; do 3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3023 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3025 break 2 3026 fi 3027done 3028 done 3029IFS=$as_save_IFS 3030 3031 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 3032 ;; 3033esac 3034fi 3035EGREP=$ac_cv_path_EGREP 3036if test -n "$EGREP"; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3038$as_echo "$EGREP" >&6; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042fi 3043 3044 3045 fi 3046fi 3047if test -z "$EGREP" || test "$EGREP" = "not_found"; then 3048 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5 3049fi 3050 3051 3052if test -z "$AR"; then 3053 if test -n "$ac_tool_prefix"; then 3054 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3055set dummy ${ac_tool_prefix}ar; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if ${ac_cv_path_AR+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 case $AR in 3062 [\\/]* | ?:[\\/]*) 3063 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3064 ;; 3065 *) 3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067as_dummy="$PATH:/usr/bin:/usr/local/bin" 3068for as_dir in $as_dummy 3069do 3070 IFS=$as_save_IFS 3071 test -z "$as_dir" && as_dir=. 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3074 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082 ;; 3083esac 3084fi 3085AR=$ac_cv_path_AR 3086if test -n "$AR"; then 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3088$as_echo "$AR" >&6; } 3089else 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091$as_echo "no" >&6; } 3092fi 3093 3094 3095fi 3096if test -z "$ac_cv_path_AR"; then 3097 ac_pt_AR=$AR 3098 # Extract the first word of "ar", so it can be a program name with args. 3099set dummy ar; ac_word=$2 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101$as_echo_n "checking for $ac_word... " >&6; } 3102if ${ac_cv_path_ac_pt_AR+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 case $ac_pt_AR in 3106 [\\/]* | ?:[\\/]*) 3107 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 3108 ;; 3109 *) 3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111as_dummy="$PATH:/usr/bin:/usr/local/bin" 3112for as_dir in $as_dummy 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3118 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126 ;; 3127esac 3128fi 3129ac_pt_AR=$ac_cv_path_ac_pt_AR 3130if test -n "$ac_pt_AR"; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 3132$as_echo "$ac_pt_AR" >&6; } 3133else 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135$as_echo "no" >&6; } 3136fi 3137 3138 if test "x$ac_pt_AR" = x; then 3139 AR="not_found" 3140 else 3141 case $cross_compiling:$ac_tool_warned in 3142yes:) 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3145ac_tool_warned=yes ;; 3146esac 3147 AR=$ac_pt_AR 3148 fi 3149else 3150 AR="$ac_cv_path_AR" 3151fi 3152 3153 if test -z "$AR" || test "$AR" = "not_found"; then 3154 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 3155 fi 3156fi 3157 3158 3159 3160 3161if test -f ${srcdir}/include/curl/curlbuild.h; then 3162 rm -f ${srcdir}/include/curl/curlbuild.h 3163fi 3164 3165CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h` 3166am__api_version="1.9" 3167ac_aux_dir= 3168for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3169 if test -f "$ac_dir/install-sh"; then 3170 ac_aux_dir=$ac_dir 3171 ac_install_sh="$ac_aux_dir/install-sh -c" 3172 break 3173 elif test -f "$ac_dir/install.sh"; then 3174 ac_aux_dir=$ac_dir 3175 ac_install_sh="$ac_aux_dir/install.sh -c" 3176 break 3177 elif test -f "$ac_dir/shtool"; then 3178 ac_aux_dir=$ac_dir 3179 ac_install_sh="$ac_aux_dir/shtool install -c" 3180 break 3181 fi 3182done 3183if test -z "$ac_aux_dir"; then 3184 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3185fi 3186 3187# These three variables are undocumented and unsupported, 3188# and are intended to be withdrawn in a future Autoconf release. 3189# They can cause serious problems if a builder's source tree is in a directory 3190# whose full name contains unusual characters. 3191ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3192ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3193ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3194 3195 3196# Find a good install program. We prefer a C program (faster), 3197# so one script is as good as another. But avoid the broken or 3198# incompatible versions: 3199# SysV /etc/install, /usr/sbin/install 3200# SunOS /usr/etc/install 3201# IRIX /sbin/install 3202# AIX /bin/install 3203# AmigaOS /C/install, which installs bootblocks on floppy discs 3204# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3205# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3206# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3207# OS/2's system install, which has a completely different semantic 3208# ./install, which can be erroneously created by make from ./install.sh. 3209# Reject install programs that cannot install multiple files. 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3211$as_echo_n "checking for a BSD-compatible install... " >&6; } 3212if test -z "$INSTALL"; then 3213if ${ac_cv_path_install+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3217for as_dir in $PATH 3218do 3219 IFS=$as_save_IFS 3220 test -z "$as_dir" && as_dir=. 3221 # Account for people who put trailing slashes in PATH elements. 3222case $as_dir/ in #(( 3223 ./ | .// | /[cC]/* | \ 3224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3225 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3226 /usr/ucb/* ) ;; 3227 *) 3228 # OSF1 and SCO ODT 3.0 have their own names for install. 3229 # Don't use installbsd from OSF since it installs stuff as root 3230 # by default. 3231 for ac_prog in ginstall scoinst install; do 3232 for ac_exec_ext in '' $ac_executable_extensions; do 3233 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3234 if test $ac_prog = install && 3235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3236 # AIX install. It has an incompatible calling convention. 3237 : 3238 elif test $ac_prog = install && 3239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3240 # program-specific install script used by HP pwplus--don't use. 3241 : 3242 else 3243 rm -rf conftest.one conftest.two conftest.dir 3244 echo one > conftest.one 3245 echo two > conftest.two 3246 mkdir conftest.dir 3247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3248 test -s conftest.one && test -s conftest.two && 3249 test -s conftest.dir/conftest.one && 3250 test -s conftest.dir/conftest.two 3251 then 3252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3253 break 3 3254 fi 3255 fi 3256 fi 3257 done 3258 done 3259 ;; 3260esac 3261 3262 done 3263IFS=$as_save_IFS 3264 3265rm -rf conftest.one conftest.two conftest.dir 3266 3267fi 3268 if test "${ac_cv_path_install+set}" = set; then 3269 INSTALL=$ac_cv_path_install 3270 else 3271 # As a last resort, use the slow shell script. Don't cache a 3272 # value for INSTALL within a source directory, because that will 3273 # break other packages using the cache if that directory is 3274 # removed, or if the value is a relative name. 3275 INSTALL=$ac_install_sh 3276 fi 3277fi 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3279$as_echo "$INSTALL" >&6; } 3280 3281# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3282# It thinks the first close brace ends the variable substitution. 3283test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3284 3285test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3286 3287test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3288 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3290$as_echo_n "checking whether build environment is sane... " >&6; } 3291# Just in case 3292sleep 1 3293echo timestamp > conftest.file 3294# Do `set' in a subshell so we don't clobber the current shell's 3295# arguments. Must try -L first in case configure is actually a 3296# symlink; some systems play weird games with the mod time of symlinks 3297# (eg FreeBSD returns the mod time of the symlink's containing 3298# directory). 3299if ( 3300 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3301 if test "$*" = "X"; then 3302 # -L didn't work. 3303 set X `ls -t $srcdir/configure conftest.file` 3304 fi 3305 rm -f conftest.file 3306 if test "$*" != "X $srcdir/configure conftest.file" \ 3307 && test "$*" != "X conftest.file $srcdir/configure"; then 3308 3309 # If neither matched, then we have a broken ls. This can happen 3310 # if, for instance, CONFIG_SHELL is bash and it inherits a 3311 # broken ls alias from the environment. This has actually 3312 # happened. Such a system could not be considered "sane". 3313 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3314alias in your environment" "$LINENO" 5 3315 fi 3316 3317 test "$2" = conftest.file 3318 ) 3319then 3320 # Ok. 3321 : 3322else 3323 as_fn_error $? "newly created file is older than distributed files! 3324Check your system clock" "$LINENO" 5 3325fi 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3327$as_echo "yes" >&6; } 3328test "$program_prefix" != NONE && 3329 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3330# Use a double $ so make ignores it. 3331test "$program_suffix" != NONE && 3332 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3333# Double any \ or $. 3334# By default was `s,x,x', remove it if useless. 3335ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3336program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3337 3338# expand $ac_aux_dir to an absolute path 3339am_aux_dir=`cd $ac_aux_dir && pwd` 3340 3341test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\"" 3342# Use eval to expand $SHELL 3343if eval "$MISSING --run true"; then 3344 am_missing_run="$MISSING --run " 3345else 3346 am_missing_run= 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3348$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3349fi 3350 3351if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 3352 # We used to keeping the `.' as first argument, in order to 3353 # allow $(mkdir_p) to be used without argument. As in 3354 # $(mkdir_p) $(somedir) 3355 # where $(somedir) is conditionally defined. However this is wrong 3356 # for two reasons: 3357 # 1. if the package is installed by a user who cannot write `.' 3358 # make install will fail, 3359 # 2. the above comment should most certainly read 3360 # $(mkdir_p) $(DESTDIR)$(somedir) 3361 # so it does not work when $(somedir) is undefined and 3362 # $(DESTDIR) is not. 3363 # To support the latter case, we have to write 3364 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 3365 # so the `.' trick is pointless. 3366 mkdir_p='mkdir -p --' 3367else 3368 # On NextStep and OpenStep, the `mkdir' command does not 3369 # recognize any option. It will interpret all options as 3370 # directories to create, and then abort because `.' already 3371 # exists. 3372 for d in ./-p ./--version; 3373 do 3374 test -d $d && rmdir $d 3375 done 3376 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 3377 if test -f "$ac_aux_dir/mkinstalldirs"; then 3378 mkdir_p='$(mkinstalldirs)' 3379 else 3380 mkdir_p='$(install_sh) -d' 3381 fi 3382fi 3383 3384for ac_prog in gawk mawk nawk awk 3385do 3386 # Extract the first word of "$ac_prog", so it can be a program name with args. 3387set dummy $ac_prog; ac_word=$2 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389$as_echo_n "checking for $ac_word... " >&6; } 3390if ${ac_cv_prog_AWK+:} false; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 if test -n "$AWK"; then 3394 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3395else 3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3397for as_dir in $PATH 3398do 3399 IFS=$as_save_IFS 3400 test -z "$as_dir" && as_dir=. 3401 for ac_exec_ext in '' $ac_executable_extensions; do 3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3403 ac_cv_prog_AWK="$ac_prog" 3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3405 break 2 3406 fi 3407done 3408 done 3409IFS=$as_save_IFS 3410 3411fi 3412fi 3413AWK=$ac_cv_prog_AWK 3414if test -n "$AWK"; then 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3416$as_echo "$AWK" >&6; } 3417else 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419$as_echo "no" >&6; } 3420fi 3421 3422 3423 test -n "$AWK" && break 3424done 3425 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3427$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3428set x ${MAKE-make} 3429ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3430if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3431 $as_echo_n "(cached) " >&6 3432else 3433 cat >conftest.make <<\_ACEOF 3434SHELL = /bin/sh 3435all: 3436 @echo '@@@%%%=$(MAKE)=@@@%%%' 3437_ACEOF 3438# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3439case `${MAKE-make} -f conftest.make 2>/dev/null` in 3440 *@@@%%%=?*=@@@%%%*) 3441 eval ac_cv_prog_make_${ac_make}_set=yes;; 3442 *) 3443 eval ac_cv_prog_make_${ac_make}_set=no;; 3444esac 3445rm -f conftest.make 3446fi 3447if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3449$as_echo "yes" >&6; } 3450 SET_MAKE= 3451else 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453$as_echo "no" >&6; } 3454 SET_MAKE="MAKE=${MAKE-make}" 3455fi 3456 3457rm -rf .tst 2>/dev/null 3458mkdir .tst 2>/dev/null 3459if test -d .tst; then 3460 am__leading_dot=. 3461else 3462 am__leading_dot=_ 3463fi 3464rmdir .tst 2>/dev/null 3465 3466# test to see if srcdir already configured 3467if test "`cd $srcdir && pwd`" != "`pwd`" && 3468 test -f $srcdir/config.status; then 3469 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3470fi 3471 3472# test whether we have cygpath 3473if test -z "$CYGPATH_W"; then 3474 if (cygpath --version) >/dev/null 2>/dev/null; then 3475 CYGPATH_W='cygpath -w' 3476 else 3477 CYGPATH_W=echo 3478 fi 3479fi 3480 3481 3482# Define the identity of the package. 3483 PACKAGE='curl' 3484 VERSION='-' 3485 3486 3487cat >>confdefs.h <<_ACEOF 3488#define PACKAGE "$PACKAGE" 3489_ACEOF 3490 3491 3492cat >>confdefs.h <<_ACEOF 3493#define VERSION "$VERSION" 3494_ACEOF 3495 3496# Some tools Automake needs. 3497 3498ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3499 3500 3501AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3502 3503 3504AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3505 3506 3507AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3508 3509 3510MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3511 3512install_sh=${install_sh-"$am_aux_dir/install-sh"} 3513 3514# Installed binaries are usually stripped using `strip' when the user 3515# run `make install-strip'. However `strip' might not be the right 3516# tool to use in cross-compilation environments, therefore Automake 3517# will honor the `STRIP' environment variable to overrule this program. 3518if test "$cross_compiling" != no; then 3519 if test -n "$ac_tool_prefix"; then 3520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3521set dummy ${ac_tool_prefix}strip; ac_word=$2 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3523$as_echo_n "checking for $ac_word... " >&6; } 3524if ${ac_cv_prog_STRIP+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 if test -n "$STRIP"; then 3528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3529else 3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531for as_dir in $PATH 3532do 3533 IFS=$as_save_IFS 3534 test -z "$as_dir" && as_dir=. 3535 for ac_exec_ext in '' $ac_executable_extensions; do 3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3537 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3539 break 2 3540 fi 3541done 3542 done 3543IFS=$as_save_IFS 3544 3545fi 3546fi 3547STRIP=$ac_cv_prog_STRIP 3548if test -n "$STRIP"; then 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3550$as_echo "$STRIP" >&6; } 3551else 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553$as_echo "no" >&6; } 3554fi 3555 3556 3557fi 3558if test -z "$ac_cv_prog_STRIP"; then 3559 ac_ct_STRIP=$STRIP 3560 # Extract the first word of "strip", so it can be a program name with args. 3561set dummy strip; ac_word=$2 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3563$as_echo_n "checking for $ac_word... " >&6; } 3564if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3565 $as_echo_n "(cached) " >&6 3566else 3567 if test -n "$ac_ct_STRIP"; then 3568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3569else 3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3571for as_dir in $PATH 3572do 3573 IFS=$as_save_IFS 3574 test -z "$as_dir" && as_dir=. 3575 for ac_exec_ext in '' $ac_executable_extensions; do 3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3577 ac_cv_prog_ac_ct_STRIP="strip" 3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3579 break 2 3580 fi 3581done 3582 done 3583IFS=$as_save_IFS 3584 3585fi 3586fi 3587ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3588if test -n "$ac_ct_STRIP"; then 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3590$as_echo "$ac_ct_STRIP" >&6; } 3591else 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3593$as_echo "no" >&6; } 3594fi 3595 3596 if test "x$ac_ct_STRIP" = x; then 3597 STRIP=":" 3598 else 3599 case $cross_compiling:$ac_tool_warned in 3600yes:) 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3603ac_tool_warned=yes ;; 3604esac 3605 STRIP=$ac_ct_STRIP 3606 fi 3607else 3608 STRIP="$ac_cv_prog_STRIP" 3609fi 3610 3611fi 3612INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3613 3614# We need awk for the "check" target. The system "awk" is bad on 3615# some platforms. 3616# Always define AMTAR for backward compatibility. 3617 3618AMTAR=${AMTAR-"${am_missing_run}tar"} 3619 3620am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3621 3622 3623 3624 3625 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 3627$as_echo_n "checking curl version... " >&6; } 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 3629$as_echo "$CURLVERSION" >&6; } 3630 3631 3632 3633VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h` 3634 3635 3636PKGADD_PKG="HAXXcurl" 3637PKGADD_NAME="cURL - a client that groks URLs" 3638PKGADD_VENDOR="curl.haxx.se" 3639 3640 3641 3642 3643 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls} )" 3644 curl_ssh_msg="no (--with-libssh2)" 3645 curl_zlib_msg="no (--with-zlib)" 3646 curl_krb4_msg="no (--with-krb4*)" 3647 curl_gss_msg="no (--with-gssapi)" 3648 curl_spnego_msg="no (--with-spnego)" 3649curl_tls_srp_msg="no (--enable-tls-srp)" 3650 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)" 3651 curl_ipv6_msg="no (--enable-ipv6)" 3652 curl_idn_msg="no (--with-libidn)" 3653 curl_manual_msg="no (--enable-manual)" 3654curl_verbose_msg="enabled (--disable-verbose)" 3655 curl_sspi_msg="no (--enable-sspi)" 3656 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" 3657 curl_ldaps_msg="no (--enable-ldaps)" 3658 curl_rtsp_msg="no (--enable-rtsp)" 3659 curl_rtmp_msg="no (--with-librtmp)" 3660 init_ssl_msg=${curl_ssl_msg} 3661 3662ALL_LIBS=$LIBS 3663 3664 3665# Make sure we can run config.sub. 3666$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3667 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3668 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3670$as_echo_n "checking build system type... " >&6; } 3671if ${ac_cv_build+:} false; then : 3672 $as_echo_n "(cached) " >&6 3673else 3674 ac_build_alias=$build_alias 3675test "x$ac_build_alias" = x && 3676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3677test "x$ac_build_alias" = x && 3678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3679ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3681 3682fi 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3684$as_echo "$ac_cv_build" >&6; } 3685case $ac_cv_build in 3686*-*-*) ;; 3687*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3688esac 3689build=$ac_cv_build 3690ac_save_IFS=$IFS; IFS='-' 3691set x $ac_cv_build 3692shift 3693build_cpu=$1 3694build_vendor=$2 3695shift; shift 3696# Remember, the first character of IFS is used to create $*, 3697# except with old shells: 3698build_os=$* 3699IFS=$ac_save_IFS 3700case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3701 3702 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3704$as_echo_n "checking host system type... " >&6; } 3705if ${ac_cv_host+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 if test "x$host_alias" = x; then 3709 ac_cv_host=$ac_cv_build 3710else 3711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3713fi 3714 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3717$as_echo "$ac_cv_host" >&6; } 3718case $ac_cv_host in 3719*-*-*) ;; 3720*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3721esac 3722host=$ac_cv_host 3723ac_save_IFS=$IFS; IFS='-' 3724set x $ac_cv_host 3725shift 3726host_cpu=$1 3727host_vendor=$2 3728shift; shift 3729# Remember, the first character of IFS is used to create $*, 3730# except with old shells: 3731host_os=$* 3732IFS=$ac_save_IFS 3733case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3734 3735 3736 3737cat >>confdefs.h <<_ACEOF 3738#define OS "${host}" 3739_ACEOF 3740 3741 3742DEPDIR="${am__leading_dot}deps" 3743 3744ac_config_commands="$ac_config_commands depfiles" 3745 3746 3747am_make=${MAKE-make} 3748cat > confinc << 'END' 3749am__doit: 3750 @echo done 3751.PHONY: am__doit 3752END 3753# If we don't find an include directive, just comment out the code. 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3755$as_echo_n "checking for style of include used by $am_make... " >&6; } 3756am__include="#" 3757am__quote= 3758_am_result=none 3759# First try GNU make style include. 3760echo "include confinc" > confmf 3761# We grep out `Entering directory' and `Leaving directory' 3762# messages which can occur if `w' ends up in MAKEFLAGS. 3763# In particular we don't look at `^make:' because GNU make might 3764# be invoked under some other name (usually "gmake"), in which 3765# case it prints its new name instead of `make'. 3766if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3767 am__include=include 3768 am__quote= 3769 _am_result=GNU 3770fi 3771# Now try BSD make style include. 3772if test "$am__include" = "#"; then 3773 echo '.include "confinc"' > confmf 3774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3775 am__include=.include 3776 am__quote="\"" 3777 _am_result=BSD 3778 fi 3779fi 3780 3781 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3783$as_echo "$_am_result" >&6; } 3784rm -f confinc confmf 3785 3786# Check whether --enable-dependency-tracking was given. 3787if test "${enable_dependency_tracking+set}" = set; then : 3788 enableval=$enable_dependency_tracking; 3789fi 3790 3791if test "x$enable_dependency_tracking" != xno; then 3792 am_depcomp="$ac_aux_dir/depcomp" 3793 AMDEPBACKSLASH='\' 3794fi 3795 3796 3797if test "x$enable_dependency_tracking" != xno; then 3798 AMDEP_TRUE= 3799 AMDEP_FALSE='#' 3800else 3801 AMDEP_TRUE='#' 3802 AMDEP_FALSE= 3803fi 3804 3805 3806 3807 3808 ac_save_CFLAGS="$CFLAGS" 3809 ac_save_CPPFLAGS="$CPPFLAGS" 3810 ac_ext=c 3811ac_cpp='$CPP $CPPFLAGS' 3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3814ac_compiler_gnu=$ac_cv_c_compiler_gnu 3815if test -n "$ac_tool_prefix"; then 3816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3817set dummy ${ac_tool_prefix}gcc; ac_word=$2 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3819$as_echo_n "checking for $ac_word... " >&6; } 3820if ${ac_cv_prog_CC+:} false; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 if test -n "$CC"; then 3824 ac_cv_prog_CC="$CC" # Let the user override the test. 3825else 3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3827for as_dir in $PATH 3828do 3829 IFS=$as_save_IFS 3830 test -z "$as_dir" && as_dir=. 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3833 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3835 break 2 3836 fi 3837done 3838 done 3839IFS=$as_save_IFS 3840 3841fi 3842fi 3843CC=$ac_cv_prog_CC 3844if test -n "$CC"; then 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3846$as_echo "$CC" >&6; } 3847else 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3849$as_echo "no" >&6; } 3850fi 3851 3852 3853fi 3854if test -z "$ac_cv_prog_CC"; then 3855 ac_ct_CC=$CC 3856 # Extract the first word of "gcc", so it can be a program name with args. 3857set dummy gcc; ac_word=$2 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3859$as_echo_n "checking for $ac_word... " >&6; } 3860if ${ac_cv_prog_ac_ct_CC+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 if test -n "$ac_ct_CC"; then 3864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3865else 3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3867for as_dir in $PATH 3868do 3869 IFS=$as_save_IFS 3870 test -z "$as_dir" && as_dir=. 3871 for ac_exec_ext in '' $ac_executable_extensions; do 3872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3873 ac_cv_prog_ac_ct_CC="gcc" 3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3875 break 2 3876 fi 3877done 3878 done 3879IFS=$as_save_IFS 3880 3881fi 3882fi 3883ac_ct_CC=$ac_cv_prog_ac_ct_CC 3884if test -n "$ac_ct_CC"; then 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3886$as_echo "$ac_ct_CC" >&6; } 3887else 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889$as_echo "no" >&6; } 3890fi 3891 3892 if test "x$ac_ct_CC" = x; then 3893 CC="" 3894 else 3895 case $cross_compiling:$ac_tool_warned in 3896yes:) 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3899ac_tool_warned=yes ;; 3900esac 3901 CC=$ac_ct_CC 3902 fi 3903else 3904 CC="$ac_cv_prog_CC" 3905fi 3906 3907if test -z "$CC"; then 3908 if test -n "$ac_tool_prefix"; then 3909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3910set dummy ${ac_tool_prefix}cc; ac_word=$2 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3912$as_echo_n "checking for $ac_word... " >&6; } 3913if ${ac_cv_prog_CC+:} false; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 if test -n "$CC"; then 3917 ac_cv_prog_CC="$CC" # Let the user override the test. 3918else 3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920for as_dir in $PATH 3921do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3926 ac_cv_prog_CC="${ac_tool_prefix}cc" 3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3928 break 2 3929 fi 3930done 3931 done 3932IFS=$as_save_IFS 3933 3934fi 3935fi 3936CC=$ac_cv_prog_CC 3937if test -n "$CC"; then 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3939$as_echo "$CC" >&6; } 3940else 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3942$as_echo "no" >&6; } 3943fi 3944 3945 3946 fi 3947fi 3948if test -z "$CC"; then 3949 # Extract the first word of "cc", so it can be a program name with args. 3950set dummy cc; ac_word=$2 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3952$as_echo_n "checking for $ac_word... " >&6; } 3953if ${ac_cv_prog_CC+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 if test -n "$CC"; then 3957 ac_cv_prog_CC="$CC" # Let the user override the test. 3958else 3959 ac_prog_rejected=no 3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961for as_dir in $PATH 3962do 3963 IFS=$as_save_IFS 3964 test -z "$as_dir" && as_dir=. 3965 for ac_exec_ext in '' $ac_executable_extensions; do 3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3968 ac_prog_rejected=yes 3969 continue 3970 fi 3971 ac_cv_prog_CC="cc" 3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3973 break 2 3974 fi 3975done 3976 done 3977IFS=$as_save_IFS 3978 3979if test $ac_prog_rejected = yes; then 3980 # We found a bogon in the path, so make sure we never use it. 3981 set dummy $ac_cv_prog_CC 3982 shift 3983 if test $# != 0; then 3984 # We chose a different compiler from the bogus one. 3985 # However, it has the same basename, so the bogon will be chosen 3986 # first if we set CC to just the basename; use the full file name. 3987 shift 3988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3989 fi 3990fi 3991fi 3992fi 3993CC=$ac_cv_prog_CC 3994if test -n "$CC"; then 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3996$as_echo "$CC" >&6; } 3997else 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3999$as_echo "no" >&6; } 4000fi 4001 4002 4003fi 4004if test -z "$CC"; then 4005 if test -n "$ac_tool_prefix"; then 4006 for ac_prog in cl.exe 4007 do 4008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4009set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4011$as_echo_n "checking for $ac_word... " >&6; } 4012if ${ac_cv_prog_CC+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 if test -n "$CC"; then 4016 ac_cv_prog_CC="$CC" # Let the user override the test. 4017else 4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4019for as_dir in $PATH 4020do 4021 IFS=$as_save_IFS 4022 test -z "$as_dir" && as_dir=. 4023 for ac_exec_ext in '' $ac_executable_extensions; do 4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4027 break 2 4028 fi 4029done 4030 done 4031IFS=$as_save_IFS 4032 4033fi 4034fi 4035CC=$ac_cv_prog_CC 4036if test -n "$CC"; then 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4038$as_echo "$CC" >&6; } 4039else 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4041$as_echo "no" >&6; } 4042fi 4043 4044 4045 test -n "$CC" && break 4046 done 4047fi 4048if test -z "$CC"; then 4049 ac_ct_CC=$CC 4050 for ac_prog in cl.exe 4051do 4052 # Extract the first word of "$ac_prog", so it can be a program name with args. 4053set dummy $ac_prog; ac_word=$2 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4055$as_echo_n "checking for $ac_word... " >&6; } 4056if ${ac_cv_prog_ac_ct_CC+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 if test -n "$ac_ct_CC"; then 4060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4061else 4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4063for as_dir in $PATH 4064do 4065 IFS=$as_save_IFS 4066 test -z "$as_dir" && as_dir=. 4067 for ac_exec_ext in '' $ac_executable_extensions; do 4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4069 ac_cv_prog_ac_ct_CC="$ac_prog" 4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4071 break 2 4072 fi 4073done 4074 done 4075IFS=$as_save_IFS 4076 4077fi 4078fi 4079ac_ct_CC=$ac_cv_prog_ac_ct_CC 4080if test -n "$ac_ct_CC"; then 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4082$as_echo "$ac_ct_CC" >&6; } 4083else 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4085$as_echo "no" >&6; } 4086fi 4087 4088 4089 test -n "$ac_ct_CC" && break 4090done 4091 4092 if test "x$ac_ct_CC" = x; then 4093 CC="" 4094 else 4095 case $cross_compiling:$ac_tool_warned in 4096yes:) 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4099ac_tool_warned=yes ;; 4100esac 4101 CC=$ac_ct_CC 4102 fi 4103fi 4104 4105fi 4106 4107 4108test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4110as_fn_error $? "no acceptable C compiler found in \$PATH 4111See \`config.log' for more details" "$LINENO" 5; } 4112 4113# Provide some information about the compiler. 4114$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4115set X $ac_compile 4116ac_compiler=$2 4117for ac_option in --version -v -V -qversion; do 4118 { { ac_try="$ac_compiler $ac_option >&5" 4119case "(($ac_try" in 4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4121 *) ac_try_echo=$ac_try;; 4122esac 4123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4124$as_echo "$ac_try_echo"; } >&5 4125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4126 ac_status=$? 4127 if test -s conftest.err; then 4128 sed '10a\ 4129... rest of stderr output deleted ... 4130 10q' conftest.err >conftest.er1 4131 cat conftest.er1 >&5 4132 fi 4133 rm -f conftest.er1 conftest.err 4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4135 test $ac_status = 0; } 4136done 4137 4138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140 4141int main (void) 4142{ 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148ac_clean_files_save=$ac_clean_files 4149ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4150# Try to create an executable without -o first, disregard a.out. 4151# It will help us diagnose broken compilers, and finding out an intuition 4152# of exeext. 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4154$as_echo_n "checking whether the C compiler works... " >&6; } 4155ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4156 4157# The possible output files: 4158ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4159 4160ac_rmfiles= 4161for ac_file in $ac_files 4162do 4163 case $ac_file in 4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4165 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4166 esac 4167done 4168rm -f $ac_rmfiles 4169 4170if { { ac_try="$ac_link_default" 4171case "(($ac_try" in 4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4173 *) ac_try_echo=$ac_try;; 4174esac 4175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4176$as_echo "$ac_try_echo"; } >&5 4177 (eval "$ac_link_default") 2>&5 4178 ac_status=$? 4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4180 test $ac_status = 0; }; then : 4181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4182# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4183# in a Makefile. We should not override ac_cv_exeext if it was cached, 4184# so that the user can short-circuit this test for compilers unknown to 4185# Autoconf. 4186for ac_file in $ac_files '' 4187do 4188 test -f "$ac_file" || continue 4189 case $ac_file in 4190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4191 ;; 4192 [ab].out ) 4193 # We found the default executable, but exeext='' is most 4194 # certainly right. 4195 break;; 4196 *.* ) 4197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4198 then :; else 4199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4200 fi 4201 # We set ac_cv_exeext here because the later test for it is not 4202 # safe: cross compilers may not add the suffix if given an `-o' 4203 # argument, so we may need to know it at that point already. 4204 # Even if this section looks crufty: it has the advantage of 4205 # actually working. 4206 break;; 4207 * ) 4208 break;; 4209 esac 4210done 4211test "$ac_cv_exeext" = no && ac_cv_exeext= 4212 4213else 4214 ac_file='' 4215fi 4216if test -z "$ac_file"; then : 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4218$as_echo "no" >&6; } 4219$as_echo "$as_me: failed program was:" >&5 4220sed 's/^/| /' conftest.$ac_ext >&5 4221 4222{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4224as_fn_error 77 "C compiler cannot create executables 4225See \`config.log' for more details" "$LINENO" 5; } 4226else 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4228$as_echo "yes" >&6; } 4229fi 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4231$as_echo_n "checking for C compiler default output file name... " >&6; } 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4233$as_echo "$ac_file" >&6; } 4234ac_exeext=$ac_cv_exeext 4235 4236rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4237ac_clean_files=$ac_clean_files_save 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4239$as_echo_n "checking for suffix of executables... " >&6; } 4240if { { ac_try="$ac_link" 4241case "(($ac_try" in 4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4243 *) ac_try_echo=$ac_try;; 4244esac 4245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4246$as_echo "$ac_try_echo"; } >&5 4247 (eval "$ac_link") 2>&5 4248 ac_status=$? 4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4250 test $ac_status = 0; }; then : 4251 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4252# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4253# work properly (i.e., refer to `conftest.exe'), while it won't with 4254# `rm'. 4255for ac_file in conftest.exe conftest conftest.*; do 4256 test -f "$ac_file" || continue 4257 case $ac_file in 4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4260 break;; 4261 * ) break;; 4262 esac 4263done 4264else 4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4267as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4268See \`config.log' for more details" "$LINENO" 5; } 4269fi 4270rm -f conftest conftest$ac_cv_exeext 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4272$as_echo "$ac_cv_exeext" >&6; } 4273 4274rm -f conftest.$ac_ext 4275EXEEXT=$ac_cv_exeext 4276ac_exeext=$EXEEXT 4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <stdio.h> 4280int main (void) 4281{ 4282FILE *f = fopen ("conftest.out", "w"); 4283 return ferror (f) || fclose (f) != 0; 4284 4285 ; 4286 return 0; 4287} 4288_ACEOF 4289ac_clean_files="$ac_clean_files conftest.out" 4290# Check that the compiler produces executables we can run. If not, either 4291# the compiler is broken, or we cross compile. 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4293$as_echo_n "checking whether we are cross compiling... " >&6; } 4294if test "$cross_compiling" != yes; then 4295 { { ac_try="$ac_link" 4296case "(($ac_try" in 4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4298 *) ac_try_echo=$ac_try;; 4299esac 4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4301$as_echo "$ac_try_echo"; } >&5 4302 (eval "$ac_link") 2>&5 4303 ac_status=$? 4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4305 test $ac_status = 0; } 4306 if { ac_try='./conftest$ac_cv_exeext' 4307 { { case "(($ac_try" in 4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4309 *) ac_try_echo=$ac_try;; 4310esac 4311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4312$as_echo "$ac_try_echo"; } >&5 4313 (eval "$ac_try") 2>&5 4314 ac_status=$? 4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4316 test $ac_status = 0; }; }; then 4317 cross_compiling=no 4318 else 4319 if test "$cross_compiling" = maybe; then 4320 cross_compiling=yes 4321 else 4322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4324as_fn_error $? "cannot run C compiled programs. 4325If you meant to cross compile, use \`--host'. 4326See \`config.log' for more details" "$LINENO" 5; } 4327 fi 4328 fi 4329fi 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4331$as_echo "$cross_compiling" >&6; } 4332 4333rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4334ac_clean_files=$ac_clean_files_save 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4336$as_echo_n "checking for suffix of object files... " >&6; } 4337if ${ac_cv_objext+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342 4343int main (void) 4344{ 4345 4346 ; 4347 return 0; 4348} 4349_ACEOF 4350rm -f conftest.o conftest.obj 4351if { { ac_try="$ac_compile" 4352case "(($ac_try" in 4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4354 *) ac_try_echo=$ac_try;; 4355esac 4356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4357$as_echo "$ac_try_echo"; } >&5 4358 (eval "$ac_compile") 2>&5 4359 ac_status=$? 4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4361 test $ac_status = 0; }; then : 4362 for ac_file in conftest.o conftest.obj conftest.*; do 4363 test -f "$ac_file" || continue; 4364 case $ac_file in 4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4367 break;; 4368 esac 4369done 4370else 4371 $as_echo "$as_me: failed program was:" >&5 4372sed 's/^/| /' conftest.$ac_ext >&5 4373 4374{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4376as_fn_error $? "cannot compute suffix of object files: cannot compile 4377See \`config.log' for more details" "$LINENO" 5; } 4378fi 4379rm -f conftest.$ac_cv_objext conftest.$ac_ext 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4382$as_echo "$ac_cv_objext" >&6; } 4383OBJEXT=$ac_cv_objext 4384ac_objext=$OBJEXT 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4386$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4387if ${ac_cv_c_compiler_gnu+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392 4393int main (void) 4394{ 4395#ifndef __GNUC__ 4396 choke me 4397#endif 4398 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403if ac_fn_c_try_compile "$LINENO"; then : 4404 ac_compiler_gnu=yes 4405else 4406 ac_compiler_gnu=no 4407fi 4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4409ac_cv_c_compiler_gnu=$ac_compiler_gnu 4410 4411fi 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4413$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4414if test $ac_compiler_gnu = yes; then 4415 GCC=yes 4416else 4417 GCC= 4418fi 4419ac_test_CFLAGS=${CFLAGS+set} 4420ac_save_CFLAGS=$CFLAGS 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4422$as_echo_n "checking whether $CC accepts -g... " >&6; } 4423if ${ac_cv_prog_cc_g+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425else 4426 ac_save_c_werror_flag=$ac_c_werror_flag 4427 ac_c_werror_flag=yes 4428 ac_cv_prog_cc_g=no 4429 CFLAGS="-g" 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431/* end confdefs.h. */ 4432 4433int main (void) 4434{ 4435 4436 ; 4437 return 0; 4438} 4439_ACEOF 4440if ac_fn_c_try_compile "$LINENO"; then : 4441 ac_cv_prog_cc_g=yes 4442else 4443 CFLAGS="" 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446 4447int main (void) 4448{ 4449 4450 ; 4451 return 0; 4452} 4453_ACEOF 4454if ac_fn_c_try_compile "$LINENO"; then : 4455 4456else 4457 ac_c_werror_flag=$ac_save_c_werror_flag 4458 CFLAGS="-g" 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461 4462int main (void) 4463{ 4464 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469if ac_fn_c_try_compile "$LINENO"; then : 4470 ac_cv_prog_cc_g=yes 4471fi 4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4473fi 4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4475fi 4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4477 ac_c_werror_flag=$ac_save_c_werror_flag 4478fi 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4480$as_echo "$ac_cv_prog_cc_g" >&6; } 4481if test "$ac_test_CFLAGS" = set; then 4482 CFLAGS=$ac_save_CFLAGS 4483elif test $ac_cv_prog_cc_g = yes; then 4484 if test "$GCC" = yes; then 4485 CFLAGS="-g -O2" 4486 else 4487 CFLAGS="-g" 4488 fi 4489else 4490 if test "$GCC" = yes; then 4491 CFLAGS="-O2" 4492 else 4493 CFLAGS= 4494 fi 4495fi 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4497$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4498if ${ac_cv_prog_cc_c89+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 ac_cv_prog_cc_c89=no 4502ac_save_CC=$CC 4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505#include <stdarg.h> 4506#include <stdio.h> 4507#include <sys/types.h> 4508#include <sys/stat.h> 4509/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4510struct buf { int x; }; 4511FILE * (*rcsopen) (struct buf *, struct stat *, int); 4512static char *e (p, i) 4513 char **p; 4514 int i; 4515{ 4516 return p[i]; 4517} 4518static char *f (char * (*g) (char **, int), char **p, ...) 4519{ 4520 char *s; 4521 va_list v; 4522 va_start (v,p); 4523 s = g (p, va_arg (v,int)); 4524 va_end (v); 4525 return s; 4526} 4527 4528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4529 function prototypes and stuff, but not '\xHH' hex character constants. 4530 These don't provoke an error unfortunately, instead are silently treated 4531 as 'x'. The following induces an error, until -std is added to get 4532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4533 array size at least. It's necessary to write '\x00'==0 to get something 4534 that's true only with -std. */ 4535int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4536 4537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4538 inside strings and character constants. */ 4539#define FOO(x) 'x' 4540int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4541 4542int test (int i, double x); 4543struct s1 {int (*f) (int a);}; 4544struct s2 {int (*f) (double a);}; 4545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4546int argc; 4547char **argv; 4548int main (void) 4549{ 4550return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4551 ; 4552 return 0; 4553} 4554_ACEOF 4555for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4556 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4557do 4558 CC="$ac_save_CC $ac_arg" 4559 if ac_fn_c_try_compile "$LINENO"; then : 4560 ac_cv_prog_cc_c89=$ac_arg 4561fi 4562rm -f core conftest.err conftest.$ac_objext 4563 test "x$ac_cv_prog_cc_c89" != "xno" && break 4564done 4565rm -f conftest.$ac_ext 4566CC=$ac_save_CC 4567 4568fi 4569# AC_CACHE_VAL 4570case "x$ac_cv_prog_cc_c89" in 4571 x) 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4573$as_echo "none needed" >&6; } ;; 4574 xno) 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4576$as_echo "unsupported" >&6; } ;; 4577 *) 4578 CC="$CC $ac_cv_prog_cc_c89" 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4580$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4581esac 4582if test "x$ac_cv_prog_cc_c89" != xno; then : 4583 4584fi 4585 4586ac_ext=c 4587ac_cpp='$CPP $CPPFLAGS' 4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4590ac_compiler_gnu=$ac_cv_c_compiler_gnu 4591 4592depcc="$CC" am_compiler_list= 4593 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4595$as_echo_n "checking dependency style of $depcc... " >&6; } 4596if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4600 # We make a subdir and do the tests there. Otherwise we can end up 4601 # making bogus files that we don't know about and never remove. For 4602 # instance it was reported that on HP-UX the gcc test will end up 4603 # making a dummy file named `D' -- because `-MD' means `put the output 4604 # in D'. 4605 mkdir conftest.dir 4606 # Copy depcomp to subdir because otherwise we won't find it if we're 4607 # using a relative directory. 4608 cp "$am_depcomp" conftest.dir 4609 cd conftest.dir 4610 # We will build objects and dependencies in a subdirectory because 4611 # it helps to detect inapplicable dependency modes. For instance 4612 # both Tru64's cc and ICC support -MD to output dependencies as a 4613 # side effect of compilation, but ICC will put the dependencies in 4614 # the current directory while Tru64 will put them in the object 4615 # directory. 4616 mkdir sub 4617 4618 am_cv_CC_dependencies_compiler_type=none 4619 if test "$am_compiler_list" = ""; then 4620 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4621 fi 4622 for depmode in $am_compiler_list; do 4623 # Setup a source with many dependencies, because some compilers 4624 # like to wrap large dependency lists on column 80 (with \), and 4625 # we should not choose a depcomp mode which is confused by this. 4626 # 4627 # We need to recreate these files for each test, as the compiler may 4628 # overwrite some of them when testing with obscure command lines. 4629 # This happens at least with the AIX C compiler. 4630 : > sub/conftest.c 4631 for i in 1 2 3 4 5 6; do 4632 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4633 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4634 # Solaris 8's {/usr,}/bin/sh. 4635 touch sub/conftst$i.h 4636 done 4637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4638 4639 case $depmode in 4640 nosideeffect) 4641 # after this tag, mechanisms are not by side-effect, so they'll 4642 # only be used when explicitly requested 4643 if test "x$enable_dependency_tracking" = xyes; then 4644 continue 4645 else 4646 break 4647 fi 4648 ;; 4649 none) break ;; 4650 esac 4651 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4652 # mode. It turns out that the SunPro C++ compiler does not properly 4653 # handle `-M -o', and we need to detect this. 4654 if depmode=$depmode \ 4655 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4657 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4658 >/dev/null 2>conftest.err && 4659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4660 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4662 # icc doesn't choke on unknown options, it will just issue warnings 4663 # or remarks (even with -Werror). So we grep stderr for any message 4664 # that says an option was ignored or not supported. 4665 # When given -MP, icc 7.0 and 7.1 complain thusly: 4666 # icc: Command line warning: ignoring option '-M'; no argument required 4667 # The diagnosis changed in icc 8.0: 4668 # icc: Command line remark: option '-MP' not supported 4669 if (grep 'ignoring option' conftest.err || 4670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4671 am_cv_CC_dependencies_compiler_type=$depmode 4672 break 4673 fi 4674 fi 4675 done 4676 4677 cd .. 4678 rm -rf conftest.dir 4679else 4680 am_cv_CC_dependencies_compiler_type=none 4681fi 4682 4683fi 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4685$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4686CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4687 4688 4689 4690if 4691 test "x$enable_dependency_tracking" != xno \ 4692 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4693 am__fastdepCC_TRUE= 4694 am__fastdepCC_FALSE='#' 4695else 4696 am__fastdepCC_TRUE='#' 4697 am__fastdepCC_FALSE= 4698fi 4699 4700 4701 CFLAGS="$ac_save_CFLAGS" 4702 CPPFLAGS="$ac_save_CPPFLAGS" 4703 4704 4705 4706 4707curl_includes_inttypes="\ 4708/* includes start */ 4709#ifdef HAVE_SYS_TYPES_H 4710# include <sys/types.h> 4711#endif 4712#ifdef HAVE_STDINT_H 4713# include <stdint.h> 4714#endif 4715#ifdef HAVE_INTTYPES_H 4716# include <inttypes.h> 4717#endif 4718/* includes end */" 4719 case $host_os in 4720 irix*) 4721 ac_cv_header_stdint_h="no" 4722 ;; 4723 esac 4724 for ac_header in sys/types.h stdint.h inttypes.h 4725do : 4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes 4728" 4729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4730 cat >>confdefs.h <<_ACEOF 4731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4732_ACEOF 4733 4734fi 4735 4736done 4737 4738 4739ac_ext=c 4740ac_cpp='$CPP $CPPFLAGS' 4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4743ac_compiler_gnu=$ac_cv_c_compiler_gnu 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4745$as_echo_n "checking how to run the C preprocessor... " >&6; } 4746# On Suns, sometimes $CPP names a directory. 4747if test -n "$CPP" && test -d "$CPP"; then 4748 CPP= 4749fi 4750if test -z "$CPP"; then 4751 if ${ac_cv_prog_CPP+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753else 4754 # Double quotes because CPP needs to be expanded 4755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4756 do 4757 ac_preproc_ok=false 4758for ac_c_preproc_warn_flag in '' yes 4759do 4760 # Use a header file that comes with gcc, so configuring glibc 4761 # with a fresh cross-compiler works. 4762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4763 # <limits.h> exists even on freestanding compilers. 4764 # On the NeXT, cc -E runs the code through the compiler's parser, 4765 # not just through cpp. "Syntax error" is here to catch this case. 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4767/* end confdefs.h. */ 4768#ifdef __STDC__ 4769# include <limits.h> 4770#else 4771# include <assert.h> 4772#endif 4773 Syntax error 4774_ACEOF 4775if ac_fn_c_try_cpp "$LINENO"; then : 4776 4777else 4778 # Broken: fails on valid input. 4779continue 4780fi 4781rm -f conftest.err conftest.i conftest.$ac_ext 4782 4783 # OK, works on sane cases. Now check whether nonexistent headers 4784 # can be detected and how. 4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4786/* end confdefs.h. */ 4787#include <ac_nonexistent.h> 4788_ACEOF 4789if ac_fn_c_try_cpp "$LINENO"; then : 4790 # Broken: success on invalid input. 4791continue 4792else 4793 # Passes both tests. 4794ac_preproc_ok=: 4795break 4796fi 4797rm -f conftest.err conftest.i conftest.$ac_ext 4798 4799done 4800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4801rm -f conftest.i conftest.err conftest.$ac_ext 4802if $ac_preproc_ok; then : 4803 break 4804fi 4805 4806 done 4807 ac_cv_prog_CPP=$CPP 4808 4809fi 4810 CPP=$ac_cv_prog_CPP 4811else 4812 ac_cv_prog_CPP=$CPP 4813fi 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4815$as_echo "$CPP" >&6; } 4816ac_preproc_ok=false 4817for ac_c_preproc_warn_flag in '' yes 4818do 4819 # Use a header file that comes with gcc, so configuring glibc 4820 # with a fresh cross-compiler works. 4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4822 # <limits.h> exists even on freestanding compilers. 4823 # On the NeXT, cc -E runs the code through the compiler's parser, 4824 # not just through cpp. "Syntax error" is here to catch this case. 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827#ifdef __STDC__ 4828# include <limits.h> 4829#else 4830# include <assert.h> 4831#endif 4832 Syntax error 4833_ACEOF 4834if ac_fn_c_try_cpp "$LINENO"; then : 4835 4836else 4837 # Broken: fails on valid input. 4838continue 4839fi 4840rm -f conftest.err conftest.i conftest.$ac_ext 4841 4842 # OK, works on sane cases. Now check whether nonexistent headers 4843 # can be detected and how. 4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4845/* end confdefs.h. */ 4846#include <ac_nonexistent.h> 4847_ACEOF 4848if ac_fn_c_try_cpp "$LINENO"; then : 4849 # Broken: success on invalid input. 4850continue 4851else 4852 # Passes both tests. 4853ac_preproc_ok=: 4854break 4855fi 4856rm -f conftest.err conftest.i conftest.$ac_ext 4857 4858done 4859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4860rm -f conftest.i conftest.err conftest.$ac_ext 4861if $ac_preproc_ok; then : 4862 4863else 4864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4866as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4867See \`config.log' for more details" "$LINENO" 5; } 4868fi 4869 4870ac_ext=c 4871ac_cpp='$CPP $CPPFLAGS' 4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4874ac_compiler_gnu=$ac_cv_c_compiler_gnu 4875 4876 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4878$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4879if ${ac_cv_path_GREP+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 if test -z "$GREP"; then 4883 ac_path_GREP_found=false 4884 # Loop through the user's path and test for each of PROGNAME-LIST 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4887do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_prog in grep ggrep; do 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4893 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4894# Check for GNU ac_path_GREP and select it if it is found. 4895 # Check for GNU $ac_path_GREP 4896case `"$ac_path_GREP" --version 2>&1` in 4897*GNU*) 4898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4899*) 4900 ac_count=0 4901 $as_echo_n 0123456789 >"conftest.in" 4902 while : 4903 do 4904 cat "conftest.in" "conftest.in" >"conftest.tmp" 4905 mv "conftest.tmp" "conftest.in" 4906 cp "conftest.in" "conftest.nl" 4907 $as_echo 'GREP' >> "conftest.nl" 4908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4910 as_fn_arith $ac_count + 1 && ac_count=$as_val 4911 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4912 # Best one so far, save it but keep looking for a better one 4913 ac_cv_path_GREP="$ac_path_GREP" 4914 ac_path_GREP_max=$ac_count 4915 fi 4916 # 10*(2^10) chars as input seems more than enough 4917 test $ac_count -gt 10 && break 4918 done 4919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4920esac 4921 4922 $ac_path_GREP_found && break 3 4923 done 4924 done 4925 done 4926IFS=$as_save_IFS 4927 if test -z "$ac_cv_path_GREP"; then 4928 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4929 fi 4930else 4931 ac_cv_path_GREP=$GREP 4932fi 4933 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4936$as_echo "$ac_cv_path_GREP" >&6; } 4937 GREP="$ac_cv_path_GREP" 4938 4939 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4941$as_echo_n "checking for egrep... " >&6; } 4942if ${ac_cv_path_EGREP+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4946 then ac_cv_path_EGREP="$GREP -E" 4947 else 4948 if test -z "$EGREP"; then 4949 ac_path_EGREP_found=false 4950 # Loop through the user's path and test for each of PROGNAME-LIST 4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4953do 4954 IFS=$as_save_IFS 4955 test -z "$as_dir" && as_dir=. 4956 for ac_prog in egrep; do 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4959 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4960# Check for GNU ac_path_EGREP and select it if it is found. 4961 # Check for GNU $ac_path_EGREP 4962case `"$ac_path_EGREP" --version 2>&1` in 4963*GNU*) 4964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4965*) 4966 ac_count=0 4967 $as_echo_n 0123456789 >"conftest.in" 4968 while : 4969 do 4970 cat "conftest.in" "conftest.in" >"conftest.tmp" 4971 mv "conftest.tmp" "conftest.in" 4972 cp "conftest.in" "conftest.nl" 4973 $as_echo 'EGREP' >> "conftest.nl" 4974 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4976 as_fn_arith $ac_count + 1 && ac_count=$as_val 4977 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4978 # Best one so far, save it but keep looking for a better one 4979 ac_cv_path_EGREP="$ac_path_EGREP" 4980 ac_path_EGREP_max=$ac_count 4981 fi 4982 # 10*(2^10) chars as input seems more than enough 4983 test $ac_count -gt 10 && break 4984 done 4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4986esac 4987 4988 $ac_path_EGREP_found && break 3 4989 done 4990 done 4991 done 4992IFS=$as_save_IFS 4993 if test -z "$ac_cv_path_EGREP"; then 4994 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4995 fi 4996else 4997 ac_cv_path_EGREP=$EGREP 4998fi 4999 5000 fi 5001fi 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5003$as_echo "$ac_cv_path_EGREP" >&6; } 5004 EGREP="$ac_cv_path_EGREP" 5005 5006 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5008$as_echo_n "checking for ANSI C header files... " >&6; } 5009if ${ac_cv_header_stdc+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014#include <stdlib.h> 5015#include <stdarg.h> 5016#include <string.h> 5017#include <float.h> 5018 5019int main (void) 5020{ 5021 5022 ; 5023 return 0; 5024} 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO"; then : 5027 ac_cv_header_stdc=yes 5028else 5029 ac_cv_header_stdc=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5032 5033if test $ac_cv_header_stdc = yes; then 5034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5036/* end confdefs.h. */ 5037#include <string.h> 5038 5039_ACEOF 5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5041 $EGREP "memchr" >/dev/null 2>&1; then : 5042 5043else 5044 ac_cv_header_stdc=no 5045fi 5046rm -f conftest* 5047 5048fi 5049 5050if test $ac_cv_header_stdc = yes; then 5051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054#include <stdlib.h> 5055 5056_ACEOF 5057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5058 $EGREP "free" >/dev/null 2>&1; then : 5059 5060else 5061 ac_cv_header_stdc=no 5062fi 5063rm -f conftest* 5064 5065fi 5066 5067if test $ac_cv_header_stdc = yes; then 5068 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5069 if test "$cross_compiling" = yes; then : 5070 : 5071else 5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073/* end confdefs.h. */ 5074#include <ctype.h> 5075#include <stdlib.h> 5076#if ((' ' & 0x0FF) == 0x020) 5077# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5078# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5079#else 5080# define ISLOWER(c) \ 5081 (('a' <= (c) && (c) <= 'i') \ 5082 || ('j' <= (c) && (c) <= 'r') \ 5083 || ('s' <= (c) && (c) <= 'z')) 5084# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5085#endif 5086 5087#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5088int 5089main () 5090{ 5091 int i; 5092 for (i = 0; i < 256; i++) 5093 if (XOR (islower (i), ISLOWER (i)) 5094 || toupper (i) != TOUPPER (i)) 5095 return 2; 5096 return 0; 5097} 5098_ACEOF 5099if ac_fn_c_try_run "$LINENO"; then : 5100 5101else 5102 ac_cv_header_stdc=no 5103fi 5104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5105 conftest.$ac_objext conftest.beam conftest.$ac_ext 5106fi 5107 5108fi 5109fi 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5111$as_echo "$ac_cv_header_stdc" >&6; } 5112if test $ac_cv_header_stdc = yes; then 5113 5114$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5115 5116fi 5117 5118# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5119for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5120 inttypes.h stdint.h unistd.h 5121do : 5122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5123ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5124" 5125if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5126 cat >>confdefs.h <<_ACEOF 5127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5128_ACEOF 5129 5130fi 5131 5132done 5133 5134 5135 5136 # 5137 # 5138 if test -z "$SED"; then 5139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 5140 fi 5141 # 5142 # The cast to long int works around a bug in the HP C Compiler 5143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5145# This bug is HP SR number 8606223364. 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 5147$as_echo_n "checking size of long... " >&6; } 5148if ${ac_cv_sizeof_long+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 5152 5153else 5154 if test "$ac_cv_type_long" = yes; then 5155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5157as_fn_error 77 "cannot compute sizeof (long) 5158See \`config.log' for more details" "$LINENO" 5; } 5159 else 5160 ac_cv_sizeof_long=0 5161 fi 5162fi 5163 5164fi 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 5166$as_echo "$ac_cv_sizeof_long" >&6; } 5167 5168 5169 5170cat >>confdefs.h <<_ACEOF 5171#define SIZEOF_LONG $ac_cv_sizeof_long 5172_ACEOF 5173 5174 5175 # The cast to long int works around a bug in the HP C Compiler 5176# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5177# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5178# This bug is HP SR number 8606223364. 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 5180$as_echo_n "checking size of void*... " >&6; } 5181if ${ac_cv_sizeof_voidp+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 5185 5186else 5187 if test "$ac_cv_type_voidp" = yes; then 5188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5190as_fn_error 77 "cannot compute sizeof (void*) 5191See \`config.log' for more details" "$LINENO" 5; } 5192 else 5193 ac_cv_sizeof_voidp=0 5194 fi 5195fi 5196 5197fi 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 5199$as_echo "$ac_cv_sizeof_voidp" >&6; } 5200 5201 5202 5203cat >>confdefs.h <<_ACEOF 5204#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 5205_ACEOF 5206 5207 5208 # 5209 if test -z "$ac_cv_sizeof_long" || 5210 test "$ac_cv_sizeof_long" -eq "0"; then 5211 as_fn_error $? "cannot find out size of long." "$LINENO" 5 5212 fi 5213 if test -z "$ac_cv_sizeof_voidp" || 5214 test "$ac_cv_sizeof_voidp" -eq "0"; then 5215 as_fn_error $? "cannot find out size of void*." "$LINENO" 5 5216 fi 5217 # 5218 x_LP64_long="" 5219 x_LP32_long="" 5220 x_LP16_long="" 5221 # 5222 if test "$ac_cv_sizeof_long" -eq "8" && 5223 test "$ac_cv_sizeof_voidp" -ge "8"; then 5224 x_LP64_long="long" 5225 elif test "$ac_cv_sizeof_long" -eq "4" && 5226 test "$ac_cv_sizeof_voidp" -ge "4"; then 5227 x_LP32_long="long" 5228 elif test "$ac_cv_sizeof_long" -eq "2" && 5229 test "$ac_cv_sizeof_voidp" -ge "2"; then 5230 x_LP16_long="long" 5231 fi 5232 # 5233 # 5234 curl_typeof_curl_off_t="unknown" 5235 curl_sizeof_curl_off_t="unknown" 5236 curl_format_curl_off_t="unknown" 5237 curl_format_curl_off_tu="unknown" 5238 # 5239 if test "$curl_typeof_curl_off_t" = "unknown"; then 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5 5241$as_echo_n "checking for 64-bit curl_off_t data type... " >&6; } 5242 for t8 in \ 5243 "$x_LP64_long" \ 5244 'int64_t' \ 5245 '__int64' \ 5246 'long long' \ 5247 '__longlong' \ 5248 '__longlong_t' ; do 5249 5250 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then 5251 tmp_includes="" 5252 tmp_source="" 5253 tmp_fmt="" 5254 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5255 int64_t) 5256 tmp_includes="$curl_includes_inttypes" 5257 tmp_source="char f[] = PRId64;" 5258 tmp_fmt="PRId64" 5259 ;; 5260 int32_t) 5261 tmp_includes="$curl_includes_inttypes" 5262 tmp_source="char f[] = PRId32;" 5263 tmp_fmt="PRId32" 5264 ;; 5265 int16_t) 5266 tmp_includes="$curl_includes_inttypes" 5267 tmp_source="char f[] = PRId16;" 5268 tmp_fmt="PRId16" 5269 ;; 5270 esac 5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5272/* end confdefs.h. */ 5273 5274 5275 $tmp_includes 5276 typedef $t8 curl_off_t; 5277 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1]; 5278 5279int main (void) 5280{ 5281 5282 $tmp_source 5283 curl_off_t dummy; 5284 5285 ; 5286 return 0; 5287} 5288 5289_ACEOF 5290if ac_fn_c_try_compile "$LINENO"; then : 5291 5292 if test -z "$tmp_fmt"; then 5293 curl_typeof_curl_off_t="$t8" 5294 curl_sizeof_curl_off_t="8" 5295 else 5296 5297 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5298 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5299 if test -z "$SED"; then 5300 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 5301 fi 5302 if test -z "$GREP"; then 5303 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 5304 fi 5305 5306 tmp_exp="" 5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5308/* end confdefs.h. */ 5309 5310 $curl_includes_inttypes 5311#ifdef $tmp_fmt 5312CURL_DEF_TOKEN $tmp_fmt 5313#endif 5314 5315 5316_ACEOF 5317if ac_fn_c_try_cpp "$LINENO"; then : 5318 5319 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 5320 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 5321 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 5322 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 5323 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then 5324 tmp_exp="" 5325 fi 5326 5327fi 5328rm -f conftest.err conftest.i conftest.$ac_ext 5329 if test -z "$tmp_exp"; then 5330 eval "$as_ac_HaveDef=no" 5331 5332 else 5333 eval "$as_ac_HaveDef=yes" 5334 eval "$as_ac_Def=\$tmp_exp" 5335 5336 fi 5337 5338 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5339 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5340 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then 5341 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` 5342 curl_typeof_curl_off_t="$t8" 5343 curl_sizeof_curl_off_t="8" 5344 fi 5345 fi 5346 5347fi 5348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5349 fi 5350 5351 done 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 5353$as_echo "$curl_typeof_curl_off_t" >&6; } 5354 fi 5355 if test "$curl_typeof_curl_off_t" = "unknown"; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5 5357$as_echo_n "checking for 32-bit curl_off_t data type... " >&6; } 5358 for t4 in \ 5359 "$x_LP32_long" \ 5360 'int32_t' \ 5361 '__int32' \ 5362 'int' ; do 5363 5364 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then 5365 tmp_includes="" 5366 tmp_source="" 5367 tmp_fmt="" 5368 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5369 int64_t) 5370 tmp_includes="$curl_includes_inttypes" 5371 tmp_source="char f[] = PRId64;" 5372 tmp_fmt="PRId64" 5373 ;; 5374 int32_t) 5375 tmp_includes="$curl_includes_inttypes" 5376 tmp_source="char f[] = PRId32;" 5377 tmp_fmt="PRId32" 5378 ;; 5379 int16_t) 5380 tmp_includes="$curl_includes_inttypes" 5381 tmp_source="char f[] = PRId16;" 5382 tmp_fmt="PRId16" 5383 ;; 5384 esac 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387 5388 5389 $tmp_includes 5390 typedef $t4 curl_off_t; 5391 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1]; 5392 5393int main (void) 5394{ 5395 5396 $tmp_source 5397 curl_off_t dummy; 5398 5399 ; 5400 return 0; 5401} 5402 5403_ACEOF 5404if ac_fn_c_try_compile "$LINENO"; then : 5405 5406 if test -z "$tmp_fmt"; then 5407 curl_typeof_curl_off_t="$t4" 5408 curl_sizeof_curl_off_t="4" 5409 else 5410 5411 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5412 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5413 if test -z "$SED"; then 5414 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 5415 fi 5416 if test -z "$GREP"; then 5417 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 5418 fi 5419 5420 tmp_exp="" 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423 5424 $curl_includes_inttypes 5425#ifdef $tmp_fmt 5426CURL_DEF_TOKEN $tmp_fmt 5427#endif 5428 5429 5430_ACEOF 5431if ac_fn_c_try_cpp "$LINENO"; then : 5432 5433 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 5434 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 5435 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 5436 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 5437 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then 5438 tmp_exp="" 5439 fi 5440 5441fi 5442rm -f conftest.err conftest.i conftest.$ac_ext 5443 if test -z "$tmp_exp"; then 5444 eval "$as_ac_HaveDef=no" 5445 5446 else 5447 eval "$as_ac_HaveDef=yes" 5448 eval "$as_ac_Def=\$tmp_exp" 5449 5450 fi 5451 5452 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5453 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5454 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then 5455 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` 5456 curl_typeof_curl_off_t="$t4" 5457 curl_sizeof_curl_off_t="4" 5458 fi 5459 fi 5460 5461fi 5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463 fi 5464 5465 done 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 5467$as_echo "$curl_typeof_curl_off_t" >&6; } 5468 fi 5469 if test "$curl_typeof_curl_off_t" = "unknown"; then 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5 5471$as_echo_n "checking for 16-bit curl_off_t data type... " >&6; } 5472 for t2 in \ 5473 "$x_LP16_long" \ 5474 'int16_t' \ 5475 '__int16' \ 5476 'int' ; do 5477 5478 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then 5479 tmp_includes="" 5480 tmp_source="" 5481 tmp_fmt="" 5482 case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5483 int64_t) 5484 tmp_includes="$curl_includes_inttypes" 5485 tmp_source="char f[] = PRId64;" 5486 tmp_fmt="PRId64" 5487 ;; 5488 int32_t) 5489 tmp_includes="$curl_includes_inttypes" 5490 tmp_source="char f[] = PRId32;" 5491 tmp_fmt="PRId32" 5492 ;; 5493 int16_t) 5494 tmp_includes="$curl_includes_inttypes" 5495 tmp_source="char f[] = PRId16;" 5496 tmp_fmt="PRId16" 5497 ;; 5498 esac 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5500/* end confdefs.h. */ 5501 5502 5503 $tmp_includes 5504 typedef $t2 curl_off_t; 5505 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1]; 5506 5507int main (void) 5508{ 5509 5510 $tmp_source 5511 curl_off_t dummy; 5512 5513 ; 5514 return 0; 5515} 5516 5517_ACEOF 5518if ac_fn_c_try_compile "$LINENO"; then : 5519 5520 if test -z "$tmp_fmt"; then 5521 curl_typeof_curl_off_t="$t2" 5522 curl_sizeof_curl_off_t="2" 5523 else 5524 5525 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5526 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5527 if test -z "$SED"; then 5528 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 5529 fi 5530 if test -z "$GREP"; then 5531 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 5532 fi 5533 5534 tmp_exp="" 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537 5538 $curl_includes_inttypes 5539#ifdef $tmp_fmt 5540CURL_DEF_TOKEN $tmp_fmt 5541#endif 5542 5543 5544_ACEOF 5545if ac_fn_c_try_cpp "$LINENO"; then : 5546 5547 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 5548 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 5549 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 5550 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 5551 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then 5552 tmp_exp="" 5553 fi 5554 5555fi 5556rm -f conftest.err conftest.i conftest.$ac_ext 5557 if test -z "$tmp_exp"; then 5558 eval "$as_ac_HaveDef=no" 5559 5560 else 5561 eval "$as_ac_HaveDef=yes" 5562 eval "$as_ac_Def=\$tmp_exp" 5563 5564 fi 5565 5566 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5567 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5568 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then 5569 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` 5570 curl_typeof_curl_off_t="$t2" 5571 curl_sizeof_curl_off_t="2" 5572 fi 5573 fi 5574 5575fi 5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5577 fi 5578 5579 done 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 5581$as_echo "$curl_typeof_curl_off_t" >&6; } 5582 fi 5583 if test "$curl_typeof_curl_off_t" = "unknown"; then 5584 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5 5585 fi 5586 # 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5 5588$as_echo_n "checking size of curl_off_t... " >&6; } 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5 5590$as_echo "$curl_sizeof_curl_off_t" >&6; } 5591 # 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5 5593$as_echo_n "checking formatting string directive for curl_off_t... " >&6; } 5594 if test "$curl_format_curl_off_t" != "unknown"; then 5595 x_pull_headers="yes" 5596 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'` 5597 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'` 5598 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'` 5599 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'` 5600 else 5601 x_pull_headers="no" 5602 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5603 long_long | __longlong | __longlong_t) 5604 curl_format_curl_off_t="lld" 5605 curl_format_curl_off_tu="llu" 5606 ;; 5607 long) 5608 curl_format_curl_off_t="ld" 5609 curl_format_curl_off_tu="lu" 5610 ;; 5611 int) 5612 curl_format_curl_off_t="d" 5613 curl_format_curl_off_tu="u" 5614 ;; 5615 __int64) 5616 curl_format_curl_off_t="I64d" 5617 curl_format_curl_off_tu="I64u" 5618 ;; 5619 __int32) 5620 curl_format_curl_off_t="I32d" 5621 curl_format_curl_off_tu="I32u" 5622 ;; 5623 __int16) 5624 curl_format_curl_off_t="I16d" 5625 curl_format_curl_off_tu="I16u" 5626 ;; 5627 *) 5628 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5 5629 ;; 5630 esac 5631 fi 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5 5633$as_echo "\"$curl_format_curl_off_t\"" >&6; } 5634 # 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5 5636$as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; } 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5 5638$as_echo "\"$curl_format_curl_off_tu\"" >&6; } 5639 # 5640 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5 5642$as_echo_n "checking constant suffix string for curl_off_t... " >&6; } 5643 # 5644 curl_suffix_curl_off_t="unknown" 5645 curl_suffix_curl_off_tu="unknown" 5646 # 5647 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5648 long_long | __longlong | __longlong_t) 5649 tst_suffixes="LL::" 5650 ;; 5651 long) 5652 tst_suffixes="L::" 5653 ;; 5654 int) 5655 tst_suffixes="::" 5656 ;; 5657 __int64 | int64_t) 5658 tst_suffixes="LL:i64::" 5659 ;; 5660 __int32 | int32_t) 5661 tst_suffixes="L:i32::" 5662 ;; 5663 __int16 | int16_t) 5664 tst_suffixes="L:i16::" 5665 ;; 5666 *) 5667 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5 5668 ;; 5669 esac 5670 # 5671 old_IFS=$IFS; IFS=':' 5672 for tmp_ssuf in $tst_suffixes ; do 5673 IFS=$old_IFS 5674 if test "x$curl_suffix_curl_off_t" = "xunknown"; then 5675 case $tmp_ssuf in 5676 i64 | i32 | i16) 5677 tmp_usuf="u$tmp_ssuf" 5678 ;; 5679 LL | L) 5680 tmp_usuf="U$tmp_ssuf" 5681 ;; 5682 *) 5683 tmp_usuf="" 5684 ;; 5685 esac 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688 5689 5690 $curl_includes_inttypes 5691 typedef $curl_typeof_curl_off_t new_t; 5692 5693int main (void) 5694{ 5695 5696 new_t s1; 5697 new_t s2; 5698 s1 = -10$tmp_ssuf ; 5699 s2 = 20$tmp_ssuf ; 5700 if(s1 > s2) 5701 return 1; 5702 5703 ; 5704 return 0; 5705} 5706 5707_ACEOF 5708if ac_fn_c_try_compile "$LINENO"; then : 5709 5710 curl_suffix_curl_off_t="$tmp_ssuf" 5711 curl_suffix_curl_off_tu="$tmp_usuf" 5712 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715 fi 5716 done 5717 IFS=$old_IFS 5718 # 5719 if test "x$curl_suffix_curl_off_t" = "xunknown"; then 5720 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5 5721 else 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5 5723$as_echo "$curl_suffix_curl_off_t" >&6; } 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5 5725$as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; } 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5 5727$as_echo "$curl_suffix_curl_off_tu" >&6; } 5728 fi 5729 # 5730 5731 # 5732 if test "$x_pull_headers" = "yes"; then 5733 if test "x$ac_cv_header_sys_types_h" = "xyes"; then 5734 5735cat >>confdefs.h <<_EOF 5736#define CURL_PULL_SYS_TYPES_H 1 5737_EOF 5738 5739 fi 5740 if test "x$ac_cv_header_stdint_h" = "xyes"; then 5741 5742cat >>confdefs.h <<_EOF 5743#define CURL_PULL_STDINT_H 1 5744_EOF 5745 5746 fi 5747 if test "x$ac_cv_header_inttypes_h" = "xyes"; then 5748 5749cat >>confdefs.h <<_EOF 5750#define CURL_PULL_INTTYPES_H 1 5751_EOF 5752 5753 fi 5754 fi 5755 # 5756 5757cat >>confdefs.h <<_EOF 5758#define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t 5759_EOF 5760 5761 5762cat >>confdefs.h <<_EOF 5763#define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t" 5764_EOF 5765 5766 5767cat >>confdefs.h <<_EOF 5768#define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu" 5769_EOF 5770 5771 5772cat >>confdefs.h <<_EOF 5773#define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t" 5774_EOF 5775 5776 5777cat >>confdefs.h <<_EOF 5778#define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t 5779_EOF 5780 5781 5782cat >>confdefs.h <<_EOF 5783#define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t 5784_EOF 5785 5786 5787cat >>confdefs.h <<_EOF 5788#define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu 5789_EOF 5790 5791 # 5792 5793 5794 5795 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 5797$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799/* end confdefs.h. */ 5800 5801#ifdef _AIX 5802 yes_this_is_aix 5803#endif 5804 5805_ACEOF 5806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5807 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then : 5808 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5810$as_echo "yes" >&6; } 5811 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5812 5813 5814else 5815 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817$as_echo "no" >&6; } 5818 5819fi 5820rm -f conftest* 5821 5822 5823 5824 5825 # 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 5827$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; } 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830 5831 5832 5833int main (void) 5834{ 5835 5836#ifdef _THREAD_SAFE 5837 int dummy=1; 5838#else 5839 force compilation error 5840#endif 5841 5842 ; 5843 return 0; 5844} 5845 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO"; then : 5848 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5850$as_echo "yes" >&6; } 5851 tmp_thread_safe_initially_defined="yes" 5852 5853else 5854 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5856$as_echo "no" >&6; } 5857 tmp_thread_safe_initially_defined="no" 5858 5859fi 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861 # 5862 if test "$tmp_thread_safe_initially_defined" = "no"; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 5864$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; } 5865 5866 case $host_os in 5867 aix[123].* | aix4.[012].*) 5868 tmp_need_thread_safe="no" 5869 ;; 5870 aix*) 5871 tmp_need_thread_safe="yes" 5872 ;; 5873 *) 5874 tmp_need_thread_safe="no" 5875 ;; 5876 esac 5877 5878 if test "$tmp_need_thread_safe" = "yes"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5880$as_echo "yes" >&6; } 5881 else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884 fi 5885 fi 5886 # 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 5888$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; } 5889 if test "$tmp_thread_safe_initially_defined" = "yes" || 5890 test "$tmp_need_thread_safe" = "yes"; then 5891 5892 5893$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h 5894 5895cat >>confdefs.h <<_EOF 5896#ifndef _THREAD_SAFE 5897# define _THREAD_SAFE 5898#endif 5899_EOF 5900 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5902$as_echo "yes" >&6; } 5903 else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905$as_echo "no" >&6; } 5906 fi 5907 # 5908 5909 5910 # 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 5912$as_echo_n "checking if _REENTRANT is already defined... " >&6; } 5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5914/* end confdefs.h. */ 5915 5916 5917 5918int main (void) 5919{ 5920 5921#ifdef _REENTRANT 5922 int dummy=1; 5923#else 5924 force compilation error 5925#endif 5926 5927 ; 5928 return 0; 5929} 5930 5931_ACEOF 5932if ac_fn_c_try_compile "$LINENO"; then : 5933 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5935$as_echo "yes" >&6; } 5936 tmp_reentrant_initially_defined="yes" 5937 5938else 5939 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5941$as_echo "no" >&6; } 5942 tmp_reentrant_initially_defined="no" 5943 5944fi 5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5946 # 5947 if test "$tmp_reentrant_initially_defined" = "no"; then 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 5949$as_echo_n "checking if _REENTRANT is actually needed... " >&6; } 5950 5951 case $host_os in 5952 solaris*) 5953 tmp_need_reentrant="yes" 5954 ;; 5955 *) 5956 tmp_need_reentrant="no" 5957 ;; 5958 esac 5959 5960 if test "$tmp_need_reentrant" = "no"; then 5961 5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963/* end confdefs.h. */ 5964 5965 5966#include <errno.h> 5967 5968int main (void) 5969{ 5970 5971 if(0 != errno) 5972 return 1; 5973 5974 ; 5975 return 0; 5976} 5977 5978_ACEOF 5979if ac_fn_c_try_compile "$LINENO"; then : 5980 5981 tmp_errno="yes" 5982 5983else 5984 5985 tmp_errno="no" 5986 5987fi 5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5989 if test "$tmp_errno" = "yes"; then 5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991/* end confdefs.h. */ 5992 5993 5994#include <errno.h> 5995 5996int main (void) 5997{ 5998 5999#ifdef errno 6000 int dummy=1; 6001#else 6002 force compilation error 6003#endif 6004 6005 ; 6006 return 0; 6007} 6008 6009_ACEOF 6010if ac_fn_c_try_compile "$LINENO"; then : 6011 6012 tmp_errno="errno_macro_defined" 6013 6014else 6015 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018 6019 6020#define _REENTRANT 6021#include <errno.h> 6022 6023int main (void) 6024{ 6025 6026#ifdef errno 6027 int dummy=1; 6028#else 6029 force compilation error 6030#endif 6031 6032 ; 6033 return 0; 6034} 6035 6036_ACEOF 6037if ac_fn_c_try_compile "$LINENO"; then : 6038 6039 tmp_errno="errno_macro_needs_reentrant" 6040 tmp_need_reentrant="yes" 6041 6042fi 6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6044 6045fi 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047 fi 6048 6049 fi 6050 if test "$tmp_need_reentrant" = "no"; then 6051 6052 if test "$tmp_need_reentrant" = "no"; then 6053 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056 6057 6058#define gmtime_r innocuous_gmtime_r 6059#ifdef __STDC__ 6060# include <limits.h> 6061#else 6062# include <assert.h> 6063#endif 6064#undef gmtime_r 6065#ifdef __cplusplus 6066extern "C" 6067#endif 6068char gmtime_r (); 6069#if defined __stub_gmtime_r || defined __stub___gmtime_r 6070choke me 6071#endif 6072 6073int main (void) 6074{ 6075return gmtime_r (); 6076 ; 6077 return 0; 6078} 6079 6080_ACEOF 6081if ac_fn_c_try_link "$LINENO"; then : 6082 6083 tmp_gmtime_r="yes" 6084 6085else 6086 6087 tmp_gmtime_r="no" 6088 6089fi 6090rm -f core conftest.err conftest.$ac_objext \ 6091 conftest$ac_exeext conftest.$ac_ext 6092 if test "$tmp_gmtime_r" = "yes"; then 6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6094/* end confdefs.h. */ 6095 6096#include <sys/types.h> 6097#include <time.h> 6098 6099_ACEOF 6100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6101 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6102 6103 tmp_gmtime_r="proto_declared" 6104 6105else 6106 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109 6110#define _REENTRANT 6111#include <sys/types.h> 6112#include <time.h> 6113 6114_ACEOF 6115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6116 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6117 6118 tmp_gmtime_r="proto_needs_reentrant" 6119 tmp_need_reentrant="yes" 6120 6121fi 6122rm -f conftest* 6123 6124 6125fi 6126rm -f conftest* 6127 6128 fi 6129 6130 fi 6131 if test "$tmp_need_reentrant" = "no"; then 6132 6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6134/* end confdefs.h. */ 6135 6136 6137#define localtime_r innocuous_localtime_r 6138#ifdef __STDC__ 6139# include <limits.h> 6140#else 6141# include <assert.h> 6142#endif 6143#undef localtime_r 6144#ifdef __cplusplus 6145extern "C" 6146#endif 6147char localtime_r (); 6148#if defined __stub_localtime_r || defined __stub___localtime_r 6149choke me 6150#endif 6151 6152int main (void) 6153{ 6154return localtime_r (); 6155 ; 6156 return 0; 6157} 6158 6159_ACEOF 6160if ac_fn_c_try_link "$LINENO"; then : 6161 6162 tmp_localtime_r="yes" 6163 6164else 6165 6166 tmp_localtime_r="no" 6167 6168fi 6169rm -f core conftest.err conftest.$ac_objext \ 6170 conftest$ac_exeext conftest.$ac_ext 6171 if test "$tmp_localtime_r" = "yes"; then 6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6173/* end confdefs.h. */ 6174 6175#include <sys/types.h> 6176#include <time.h> 6177 6178_ACEOF 6179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6180 $EGREP "localtime_r" >/dev/null 2>&1; then : 6181 6182 tmp_localtime_r="proto_declared" 6183 6184else 6185 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188 6189#define _REENTRANT 6190#include <sys/types.h> 6191#include <time.h> 6192 6193_ACEOF 6194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6195 $EGREP "localtime_r" >/dev/null 2>&1; then : 6196 6197 tmp_localtime_r="proto_needs_reentrant" 6198 tmp_need_reentrant="yes" 6199 6200fi 6201rm -f conftest* 6202 6203 6204fi 6205rm -f conftest* 6206 6207 fi 6208 6209 fi 6210 if test "$tmp_need_reentrant" = "no"; then 6211 6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213/* end confdefs.h. */ 6214 6215 6216#define strerror_r innocuous_strerror_r 6217#ifdef __STDC__ 6218# include <limits.h> 6219#else 6220# include <assert.h> 6221#endif 6222#undef strerror_r 6223#ifdef __cplusplus 6224extern "C" 6225#endif 6226char strerror_r (); 6227#if defined __stub_strerror_r || defined __stub___strerror_r 6228choke me 6229#endif 6230 6231int main (void) 6232{ 6233return strerror_r (); 6234 ; 6235 return 0; 6236} 6237 6238_ACEOF 6239if ac_fn_c_try_link "$LINENO"; then : 6240 6241 tmp_strerror_r="yes" 6242 6243else 6244 6245 tmp_strerror_r="no" 6246 6247fi 6248rm -f core conftest.err conftest.$ac_objext \ 6249 conftest$ac_exeext conftest.$ac_ext 6250 if test "$tmp_strerror_r" = "yes"; then 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253 6254#include <sys/types.h> 6255#include <string.h> 6256 6257_ACEOF 6258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6259 $EGREP "strerror_r" >/dev/null 2>&1; then : 6260 6261 tmp_strerror_r="proto_declared" 6262 6263else 6264 6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6266/* end confdefs.h. */ 6267 6268#define _REENTRANT 6269#include <sys/types.h> 6270#include <string.h> 6271 6272_ACEOF 6273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6274 $EGREP "strerror_r" >/dev/null 2>&1; then : 6275 6276 tmp_strerror_r="proto_needs_reentrant" 6277 tmp_need_reentrant="yes" 6278 6279fi 6280rm -f conftest* 6281 6282 6283fi 6284rm -f conftest* 6285 6286 fi 6287 6288 fi 6289 if test "$tmp_need_reentrant" = "no"; then 6290 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293 6294 6295#define strtok_r innocuous_strtok_r 6296#ifdef __STDC__ 6297# include <limits.h> 6298#else 6299# include <assert.h> 6300#endif 6301#undef strtok_r 6302#ifdef __cplusplus 6303extern "C" 6304#endif 6305char strtok_r (); 6306#if defined __stub_strtok_r || defined __stub___strtok_r 6307choke me 6308#endif 6309 6310int main (void) 6311{ 6312return strtok_r (); 6313 ; 6314 return 0; 6315} 6316 6317_ACEOF 6318if ac_fn_c_try_link "$LINENO"; then : 6319 6320 tmp_strtok_r="yes" 6321 6322else 6323 6324 tmp_strtok_r="no" 6325 6326fi 6327rm -f core conftest.err conftest.$ac_objext \ 6328 conftest$ac_exeext conftest.$ac_ext 6329 if test "$tmp_strtok_r" = "yes"; then 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332 6333#include <sys/types.h> 6334#include <string.h> 6335 6336_ACEOF 6337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6338 $EGREP "strtok_r" >/dev/null 2>&1; then : 6339 6340 tmp_strtok_r="proto_declared" 6341 6342else 6343 6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6345/* end confdefs.h. */ 6346 6347#define _REENTRANT 6348#include <sys/types.h> 6349#include <string.h> 6350 6351_ACEOF 6352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6353 $EGREP "strtok_r" >/dev/null 2>&1; then : 6354 6355 tmp_strtok_r="proto_needs_reentrant" 6356 tmp_need_reentrant="yes" 6357 6358fi 6359rm -f conftest* 6360 6361 6362fi 6363rm -f conftest* 6364 6365 fi 6366 6367 fi 6368 if test "$tmp_need_reentrant" = "no"; then 6369 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372 6373 6374#define inet_ntoa_r innocuous_inet_ntoa_r 6375#ifdef __STDC__ 6376# include <limits.h> 6377#else 6378# include <assert.h> 6379#endif 6380#undef inet_ntoa_r 6381#ifdef __cplusplus 6382extern "C" 6383#endif 6384char inet_ntoa_r (); 6385#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 6386choke me 6387#endif 6388 6389int main (void) 6390{ 6391return inet_ntoa_r (); 6392 ; 6393 return 0; 6394} 6395 6396_ACEOF 6397if ac_fn_c_try_link "$LINENO"; then : 6398 6399 tmp_inet_ntoa_r="yes" 6400 6401else 6402 6403 tmp_inet_ntoa_r="no" 6404 6405fi 6406rm -f core conftest.err conftest.$ac_objext \ 6407 conftest$ac_exeext conftest.$ac_ext 6408 if test "$tmp_inet_ntoa_r" = "yes"; then 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411 6412#include <sys/types.h> 6413#include <sys/socket.h> 6414#include <netinet/in.h> 6415#include <arpa/inet.h> 6416 6417_ACEOF 6418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6419 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6420 6421 tmp_inet_ntoa_r="proto_declared" 6422 6423else 6424 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427 6428#define _REENTRANT 6429#include <sys/types.h> 6430#include <sys/socket.h> 6431#include <netinet/in.h> 6432#include <arpa/inet.h> 6433 6434_ACEOF 6435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6436 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6437 6438 tmp_inet_ntoa_r="proto_needs_reentrant" 6439 tmp_need_reentrant="yes" 6440 6441fi 6442rm -f conftest* 6443 6444 6445fi 6446rm -f conftest* 6447 6448 fi 6449 6450 fi 6451 if test "$tmp_need_reentrant" = "no"; then 6452 6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455 6456 6457#define gethostbyaddr_r innocuous_gethostbyaddr_r 6458#ifdef __STDC__ 6459# include <limits.h> 6460#else 6461# include <assert.h> 6462#endif 6463#undef gethostbyaddr_r 6464#ifdef __cplusplus 6465extern "C" 6466#endif 6467char gethostbyaddr_r (); 6468#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 6469choke me 6470#endif 6471 6472int main (void) 6473{ 6474return gethostbyaddr_r (); 6475 ; 6476 return 0; 6477} 6478 6479_ACEOF 6480if ac_fn_c_try_link "$LINENO"; then : 6481 6482 tmp_gethostbyaddr_r="yes" 6483 6484else 6485 6486 tmp_gethostbyaddr_r="no" 6487 6488fi 6489rm -f core conftest.err conftest.$ac_objext \ 6490 conftest$ac_exeext conftest.$ac_ext 6491 if test "$tmp_gethostbyaddr_r" = "yes"; then 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493/* end confdefs.h. */ 6494 6495#include <sys/types.h> 6496#include <netdb.h> 6497 6498_ACEOF 6499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6500 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6501 6502 tmp_gethostbyaddr_r="proto_declared" 6503 6504else 6505 6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6507/* end confdefs.h. */ 6508 6509#define _REENTRANT 6510#include <sys/types.h> 6511#include <netdb.h> 6512 6513_ACEOF 6514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6515 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6516 6517 tmp_gethostbyaddr_r="proto_needs_reentrant" 6518 tmp_need_reentrant="yes" 6519 6520fi 6521rm -f conftest* 6522 6523 6524fi 6525rm -f conftest* 6526 6527 fi 6528 6529 fi 6530 if test "$tmp_need_reentrant" = "no"; then 6531 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534 6535 6536#define gethostbyname_r innocuous_gethostbyname_r 6537#ifdef __STDC__ 6538# include <limits.h> 6539#else 6540# include <assert.h> 6541#endif 6542#undef gethostbyname_r 6543#ifdef __cplusplus 6544extern "C" 6545#endif 6546char gethostbyname_r (); 6547#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 6548choke me 6549#endif 6550 6551int main (void) 6552{ 6553return gethostbyname_r (); 6554 ; 6555 return 0; 6556} 6557 6558_ACEOF 6559if ac_fn_c_try_link "$LINENO"; then : 6560 6561 tmp_gethostbyname_r="yes" 6562 6563else 6564 6565 tmp_gethostbyname_r="no" 6566 6567fi 6568rm -f core conftest.err conftest.$ac_objext \ 6569 conftest$ac_exeext conftest.$ac_ext 6570 if test "$tmp_gethostbyname_r" = "yes"; then 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573 6574#include <sys/types.h> 6575#include <netdb.h> 6576 6577_ACEOF 6578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6579 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6580 6581 tmp_gethostbyname_r="proto_declared" 6582 6583else 6584 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587 6588#define _REENTRANT 6589#include <sys/types.h> 6590#include <netdb.h> 6591 6592_ACEOF 6593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6594 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6595 6596 tmp_gethostbyname_r="proto_needs_reentrant" 6597 tmp_need_reentrant="yes" 6598 6599fi 6600rm -f conftest* 6601 6602 6603fi 6604rm -f conftest* 6605 6606 fi 6607 6608 fi 6609 if test "$tmp_need_reentrant" = "no"; then 6610 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613 6614 6615#define getprotobyname_r innocuous_getprotobyname_r 6616#ifdef __STDC__ 6617# include <limits.h> 6618#else 6619# include <assert.h> 6620#endif 6621#undef getprotobyname_r 6622#ifdef __cplusplus 6623extern "C" 6624#endif 6625char getprotobyname_r (); 6626#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 6627choke me 6628#endif 6629 6630int main (void) 6631{ 6632return getprotobyname_r (); 6633 ; 6634 return 0; 6635} 6636 6637_ACEOF 6638if ac_fn_c_try_link "$LINENO"; then : 6639 6640 tmp_getprotobyname_r="yes" 6641 6642else 6643 6644 tmp_getprotobyname_r="no" 6645 6646fi 6647rm -f core conftest.err conftest.$ac_objext \ 6648 conftest$ac_exeext conftest.$ac_ext 6649 if test "$tmp_getprotobyname_r" = "yes"; then 6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6651/* end confdefs.h. */ 6652 6653#include <sys/types.h> 6654#include <netdb.h> 6655 6656_ACEOF 6657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6658 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6659 6660 tmp_getprotobyname_r="proto_declared" 6661 6662else 6663 6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665/* end confdefs.h. */ 6666 6667#define _REENTRANT 6668#include <sys/types.h> 6669#include <netdb.h> 6670 6671_ACEOF 6672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6673 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6674 6675 tmp_getprotobyname_r="proto_needs_reentrant" 6676 tmp_need_reentrant="yes" 6677 6678fi 6679rm -f conftest* 6680 6681 6682fi 6683rm -f conftest* 6684 6685 fi 6686 6687 fi 6688 if test "$tmp_need_reentrant" = "no"; then 6689 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692 6693 6694#define getservbyport_r innocuous_getservbyport_r 6695#ifdef __STDC__ 6696# include <limits.h> 6697#else 6698# include <assert.h> 6699#endif 6700#undef getservbyport_r 6701#ifdef __cplusplus 6702extern "C" 6703#endif 6704char getservbyport_r (); 6705#if defined __stub_getservbyport_r || defined __stub___getservbyport_r 6706choke me 6707#endif 6708 6709int main (void) 6710{ 6711return getservbyport_r (); 6712 ; 6713 return 0; 6714} 6715 6716_ACEOF 6717if ac_fn_c_try_link "$LINENO"; then : 6718 6719 tmp_getservbyport_r="yes" 6720 6721else 6722 6723 tmp_getservbyport_r="no" 6724 6725fi 6726rm -f core conftest.err conftest.$ac_objext \ 6727 conftest$ac_exeext conftest.$ac_ext 6728 if test "$tmp_getservbyport_r" = "yes"; then 6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6730/* end confdefs.h. */ 6731 6732#include <sys/types.h> 6733#include <netdb.h> 6734 6735_ACEOF 6736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6737 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 6738 6739 tmp_getservbyport_r="proto_declared" 6740 6741else 6742 6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745 6746#define _REENTRANT 6747#include <sys/types.h> 6748#include <netdb.h> 6749 6750_ACEOF 6751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6752 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 6753 6754 tmp_getservbyport_r="proto_needs_reentrant" 6755 tmp_need_reentrant="yes" 6756 6757fi 6758rm -f conftest* 6759 6760 6761fi 6762rm -f conftest* 6763 6764 fi 6765 6766 fi 6767 6768 fi 6769 if test "$tmp_need_reentrant" = "yes"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6771$as_echo "yes" >&6; } 6772 else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774$as_echo "no" >&6; } 6775 fi 6776 fi 6777 # 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 6779$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; } 6780 if test "$tmp_reentrant_initially_defined" = "yes" || 6781 test "$tmp_need_reentrant" = "yes"; then 6782 6783 6784$as_echo "#define NEED_REENTRANT 1" >>confdefs.h 6785 6786cat >>confdefs.h <<_EOF 6787#ifndef _REENTRANT 6788# define _REENTRANT 6789#endif 6790_EOF 6791 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6793$as_echo "yes" >&6; } 6794 else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796$as_echo "no" >&6; } 6797 fi 6798 # 6799 6800 6801# Check whether --enable-largefile was given. 6802if test "${enable_largefile+set}" = set; then : 6803 enableval=$enable_largefile; 6804fi 6805 6806if test "$enable_largefile" != no; then 6807 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6809$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6810if ${ac_cv_sys_largefile_CC+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 ac_cv_sys_largefile_CC=no 6814 if test "$GCC" != yes; then 6815 ac_save_CC=$CC 6816 while :; do 6817 # IRIX 6.2 and later do not support large files by default, 6818 # so use the C compiler's -n32 option if that helps. 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820/* end confdefs.h. */ 6821#include <sys/types.h> 6822 /* Check that off_t can represent 2**63 - 1 correctly. 6823 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6824 since some C++ compilers masquerading as C compilers 6825 incorrectly reject 9223372036854775807. */ 6826#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6828 && LARGE_OFF_T % 2147483647 == 1) 6829 ? 1 : -1]; 6830int main (void) 6831{ 6832 6833 ; 6834 return 0; 6835} 6836_ACEOF 6837 if ac_fn_c_try_compile "$LINENO"; then : 6838 break 6839fi 6840rm -f core conftest.err conftest.$ac_objext 6841 CC="$CC -n32" 6842 if ac_fn_c_try_compile "$LINENO"; then : 6843 ac_cv_sys_largefile_CC=' -n32'; break 6844fi 6845rm -f core conftest.err conftest.$ac_objext 6846 break 6847 done 6848 CC=$ac_save_CC 6849 rm -f conftest.$ac_ext 6850 fi 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6853$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6854 if test "$ac_cv_sys_largefile_CC" != no; then 6855 CC=$CC$ac_cv_sys_largefile_CC 6856 fi 6857 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6859$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6860if ${ac_cv_sys_file_offset_bits+:} false; then : 6861 $as_echo_n "(cached) " >&6 6862else 6863 while :; do 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865/* end confdefs.h. */ 6866#include <sys/types.h> 6867 /* Check that off_t can represent 2**63 - 1 correctly. 6868 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6869 since some C++ compilers masquerading as C compilers 6870 incorrectly reject 9223372036854775807. */ 6871#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6873 && LARGE_OFF_T % 2147483647 == 1) 6874 ? 1 : -1]; 6875int main (void) 6876{ 6877 6878 ; 6879 return 0; 6880} 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO"; then : 6883 ac_cv_sys_file_offset_bits=no; break 6884fi 6885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888#define _FILE_OFFSET_BITS 64 6889#include <sys/types.h> 6890 /* Check that off_t can represent 2**63 - 1 correctly. 6891 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6892 since some C++ compilers masquerading as C compilers 6893 incorrectly reject 9223372036854775807. */ 6894#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6896 && LARGE_OFF_T % 2147483647 == 1) 6897 ? 1 : -1]; 6898int main (void) 6899{ 6900 6901 ; 6902 return 0; 6903} 6904_ACEOF 6905if ac_fn_c_try_compile "$LINENO"; then : 6906 ac_cv_sys_file_offset_bits=64; break 6907fi 6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6909 ac_cv_sys_file_offset_bits=unknown 6910 break 6911done 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6914$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6915case $ac_cv_sys_file_offset_bits in #( 6916 no | unknown) ;; 6917 *) 6918cat >>confdefs.h <<_ACEOF 6919#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6920_ACEOF 6921;; 6922esac 6923rm -rf conftest* 6924 if test $ac_cv_sys_file_offset_bits = unknown; then 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6926$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6927if ${ac_cv_sys_large_files+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 while :; do 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933#include <sys/types.h> 6934 /* Check that off_t can represent 2**63 - 1 correctly. 6935 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6936 since some C++ compilers masquerading as C compilers 6937 incorrectly reject 9223372036854775807. */ 6938#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6940 && LARGE_OFF_T % 2147483647 == 1) 6941 ? 1 : -1]; 6942int main (void) 6943{ 6944 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_c_try_compile "$LINENO"; then : 6950 ac_cv_sys_large_files=no; break 6951fi 6952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955#define _LARGE_FILES 1 6956#include <sys/types.h> 6957 /* Check that off_t can represent 2**63 - 1 correctly. 6958 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6959 since some C++ compilers masquerading as C compilers 6960 incorrectly reject 9223372036854775807. */ 6961#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6962 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6963 && LARGE_OFF_T % 2147483647 == 1) 6964 ? 1 : -1]; 6965int main (void) 6966{ 6967 6968 ; 6969 return 0; 6970} 6971_ACEOF 6972if ac_fn_c_try_compile "$LINENO"; then : 6973 ac_cv_sys_large_files=1; break 6974fi 6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6976 ac_cv_sys_large_files=unknown 6977 break 6978done 6979fi 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6981$as_echo "$ac_cv_sys_large_files" >&6; } 6982case $ac_cv_sys_large_files in #( 6983 no | unknown) ;; 6984 *) 6985cat >>confdefs.h <<_ACEOF 6986#define _LARGE_FILES $ac_cv_sys_large_files 6987_ACEOF 6988;; 6989esac 6990rm -rf conftest* 6991 fi 6992fi 6993 6994 6995enable_win32_dll=yes 6996 6997case $host in 6998*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 6999 if test -n "$ac_tool_prefix"; then 7000 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7001set dummy ${ac_tool_prefix}as; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_prog_AS+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if test -n "$AS"; then 7008 ac_cv_prog_AS="$AS" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7017 ac_cv_prog_AS="${ac_tool_prefix}as" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021done 7022 done 7023IFS=$as_save_IFS 7024 7025fi 7026fi 7027AS=$ac_cv_prog_AS 7028if test -n "$AS"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7030$as_echo "$AS" >&6; } 7031else 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7033$as_echo "no" >&6; } 7034fi 7035 7036 7037fi 7038if test -z "$ac_cv_prog_AS"; then 7039 ac_ct_AS=$AS 7040 # Extract the first word of "as", so it can be a program name with args. 7041set dummy as; ac_word=$2 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7043$as_echo_n "checking for $ac_word... " >&6; } 7044if ${ac_cv_prog_ac_ct_AS+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 if test -n "$ac_ct_AS"; then 7048 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7049else 7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7051for as_dir in $PATH 7052do 7053 IFS=$as_save_IFS 7054 test -z "$as_dir" && as_dir=. 7055 for ac_exec_ext in '' $ac_executable_extensions; do 7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7057 ac_cv_prog_ac_ct_AS="as" 7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7059 break 2 7060 fi 7061done 7062 done 7063IFS=$as_save_IFS 7064 7065fi 7066fi 7067ac_ct_AS=$ac_cv_prog_ac_ct_AS 7068if test -n "$ac_ct_AS"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7070$as_echo "$ac_ct_AS" >&6; } 7071else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7073$as_echo "no" >&6; } 7074fi 7075 7076 if test "x$ac_ct_AS" = x; then 7077 AS="false" 7078 else 7079 case $cross_compiling:$ac_tool_warned in 7080yes:) 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7083ac_tool_warned=yes ;; 7084esac 7085 AS=$ac_ct_AS 7086 fi 7087else 7088 AS="$ac_cv_prog_AS" 7089fi 7090 7091 if test -n "$ac_tool_prefix"; then 7092 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7093set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7095$as_echo_n "checking for $ac_word... " >&6; } 7096if ${ac_cv_prog_DLLTOOL+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 if test -n "$DLLTOOL"; then 7100 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7101else 7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103for as_dir in $PATH 7104do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7109 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113done 7114 done 7115IFS=$as_save_IFS 7116 7117fi 7118fi 7119DLLTOOL=$ac_cv_prog_DLLTOOL 7120if test -n "$DLLTOOL"; then 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7122$as_echo "$DLLTOOL" >&6; } 7123else 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7125$as_echo "no" >&6; } 7126fi 7127 7128 7129fi 7130if test -z "$ac_cv_prog_DLLTOOL"; then 7131 ac_ct_DLLTOOL=$DLLTOOL 7132 # Extract the first word of "dlltool", so it can be a program name with args. 7133set dummy dlltool; ac_word=$2 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7135$as_echo_n "checking for $ac_word... " >&6; } 7136if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 if test -n "$ac_ct_DLLTOOL"; then 7140 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7141else 7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7143for as_dir in $PATH 7144do 7145 IFS=$as_save_IFS 7146 test -z "$as_dir" && as_dir=. 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7149 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7151 break 2 7152 fi 7153done 7154 done 7155IFS=$as_save_IFS 7156 7157fi 7158fi 7159ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7160if test -n "$ac_ct_DLLTOOL"; then 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7162$as_echo "$ac_ct_DLLTOOL" >&6; } 7163else 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7165$as_echo "no" >&6; } 7166fi 7167 7168 if test "x$ac_ct_DLLTOOL" = x; then 7169 DLLTOOL="false" 7170 else 7171 case $cross_compiling:$ac_tool_warned in 7172yes:) 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7175ac_tool_warned=yes ;; 7176esac 7177 DLLTOOL=$ac_ct_DLLTOOL 7178 fi 7179else 7180 DLLTOOL="$ac_cv_prog_DLLTOOL" 7181fi 7182 7183 if test -n "$ac_tool_prefix"; then 7184 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7185set dummy ${ac_tool_prefix}objdump; ac_word=$2 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187$as_echo_n "checking for $ac_word... " >&6; } 7188if ${ac_cv_prog_OBJDUMP+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 if test -n "$OBJDUMP"; then 7192 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7193else 7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195for as_dir in $PATH 7196do 7197 IFS=$as_save_IFS 7198 test -z "$as_dir" && as_dir=. 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7201 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7203 break 2 7204 fi 7205done 7206 done 7207IFS=$as_save_IFS 7208 7209fi 7210fi 7211OBJDUMP=$ac_cv_prog_OBJDUMP 7212if test -n "$OBJDUMP"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7214$as_echo "$OBJDUMP" >&6; } 7215else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217$as_echo "no" >&6; } 7218fi 7219 7220 7221fi 7222if test -z "$ac_cv_prog_OBJDUMP"; then 7223 ac_ct_OBJDUMP=$OBJDUMP 7224 # Extract the first word of "objdump", so it can be a program name with args. 7225set dummy objdump; ac_word=$2 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227$as_echo_n "checking for $ac_word... " >&6; } 7228if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 if test -n "$ac_ct_OBJDUMP"; then 7232 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7233else 7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235for as_dir in $PATH 7236do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7241 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245done 7246 done 7247IFS=$as_save_IFS 7248 7249fi 7250fi 7251ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7252if test -n "$ac_ct_OBJDUMP"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7254$as_echo "$ac_ct_OBJDUMP" >&6; } 7255else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257$as_echo "no" >&6; } 7258fi 7259 7260 if test "x$ac_ct_OBJDUMP" = x; then 7261 OBJDUMP="false" 7262 else 7263 case $cross_compiling:$ac_tool_warned in 7264yes:) 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7267ac_tool_warned=yes ;; 7268esac 7269 OBJDUMP=$ac_ct_OBJDUMP 7270 fi 7271else 7272 OBJDUMP="$ac_cv_prog_OBJDUMP" 7273fi 7274 7275 ;; 7276esac 7277 7278test -z "$AS" && AS=as 7279 7280 7281 7282 7283 7284test -z "$DLLTOOL" && DLLTOOL=dlltool 7285 7286 7287 7288 7289 7290test -z "$OBJDUMP" && OBJDUMP=objdump 7291 7292 7293 7294 7295 7296 7297 7298 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5 7300$as_echo_n "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... " >&6; } 7301case $host in 7302 x86_64*linux*|amd64*freebsd*|ia64*freebsd*) 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7304$as_echo "yes" >&6; } 7305 with_pic=yes 7306 ;; 7307 *) 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7309$as_echo "no" >&6; } 7310 ;; 7311esac 7312 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5 7314$as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; } 7315case $CC in 7316 icc | */icc) 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7318$as_echo "yes" >&6; } 7319 with_pic=yes 7320 ;; 7321 *) 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323$as_echo "no" >&6; } 7324 ;; 7325esac 7326 7327case `pwd` in 7328 *\ * | *\ *) 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7330$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7331esac 7332 7333 7334 7335macro_version='2.4' 7336macro_revision='1.3293' 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350ltmain="$ac_aux_dir/ltmain.sh" 7351 7352# Backslashify metacharacters that are still active within 7353# double-quoted strings. 7354sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7355 7356# Same as above, but do not quote variable references. 7357double_quote_subst='s/\(["`\\]\)/\\\1/g' 7358 7359# Sed substitution to delay expansion of an escaped shell variable in a 7360# double_quote_subst'ed string. 7361delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7362 7363# Sed substitution to delay expansion of an escaped single quote. 7364delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7365 7366# Sed substitution to avoid accidental globbing in evaled expressions 7367no_glob_subst='s/\*/\\\*/g' 7368 7369ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7370ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7371ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7372 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7374$as_echo_n "checking how to print strings... " >&6; } 7375# Test print first, because it will be a builtin if present. 7376if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7377 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7378 ECHO='print -r --' 7379elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7380 ECHO='printf %s\n' 7381else 7382 # Use this function as a fallback that always works. 7383 func_fallback_echo () 7384 { 7385 eval 'cat <<_LTECHO_EOF 7386$1 7387_LTECHO_EOF' 7388 } 7389 ECHO='func_fallback_echo' 7390fi 7391 7392# func_echo_all arg... 7393# Invoke $ECHO with all args, space-separated. 7394func_echo_all () 7395{ 7396 $ECHO "" 7397} 7398 7399case "$ECHO" in 7400 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7401$as_echo "printf" >&6; } ;; 7402 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7403$as_echo "print -r" >&6; } ;; 7404 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7405$as_echo "cat" >&6; } ;; 7406esac 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7422$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7423if ${ac_cv_path_SED+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425else 7426 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7427 for ac_i in 1 2 3 4 5 6 7; do 7428 ac_script="$ac_script$as_nl$ac_script" 7429 done 7430 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7431 { ac_script=; unset ac_script;} 7432 if test -z "$SED"; then 7433 ac_path_SED_found=false 7434 # Loop through the user's path and test for each of PROGNAME-LIST 7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436for as_dir in $PATH 7437do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_prog in sed gsed; do 7441 for ac_exec_ext in '' $ac_executable_extensions; do 7442 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7443 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 7444# Check for GNU ac_path_SED and select it if it is found. 7445 # Check for GNU $ac_path_SED 7446case `"$ac_path_SED" --version 2>&1` in 7447*GNU*) 7448 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7449*) 7450 ac_count=0 7451 $as_echo_n 0123456789 >"conftest.in" 7452 while : 7453 do 7454 cat "conftest.in" "conftest.in" >"conftest.tmp" 7455 mv "conftest.tmp" "conftest.in" 7456 cp "conftest.in" "conftest.nl" 7457 $as_echo '' >> "conftest.nl" 7458 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7460 as_fn_arith $ac_count + 1 && ac_count=$as_val 7461 if test $ac_count -gt ${ac_path_SED_max-0}; then 7462 # Best one so far, save it but keep looking for a better one 7463 ac_cv_path_SED="$ac_path_SED" 7464 ac_path_SED_max=$ac_count 7465 fi 7466 # 10*(2^10) chars as input seems more than enough 7467 test $ac_count -gt 10 && break 7468 done 7469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7470esac 7471 7472 $ac_path_SED_found && break 3 7473 done 7474 done 7475 done 7476IFS=$as_save_IFS 7477 if test -z "$ac_cv_path_SED"; then 7478 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7479 fi 7480else 7481 ac_cv_path_SED=$SED 7482fi 7483 7484fi 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7486$as_echo "$ac_cv_path_SED" >&6; } 7487 SED="$ac_cv_path_SED" 7488 rm -f conftest.sed 7489 7490test -z "$SED" && SED=sed 7491Xsed="$SED -e 1s/^X//" 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7504$as_echo_n "checking for fgrep... " >&6; } 7505if ${ac_cv_path_FGREP+:} false; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7509 then ac_cv_path_FGREP="$GREP -F" 7510 else 7511 if test -z "$FGREP"; then 7512 ac_path_FGREP_found=false 7513 # Loop through the user's path and test for each of PROGNAME-LIST 7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7516do 7517 IFS=$as_save_IFS 7518 test -z "$as_dir" && as_dir=. 7519 for ac_prog in fgrep; do 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7522 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 7523# Check for GNU ac_path_FGREP and select it if it is found. 7524 # Check for GNU $ac_path_FGREP 7525case `"$ac_path_FGREP" --version 2>&1` in 7526*GNU*) 7527 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7528*) 7529 ac_count=0 7530 $as_echo_n 0123456789 >"conftest.in" 7531 while : 7532 do 7533 cat "conftest.in" "conftest.in" >"conftest.tmp" 7534 mv "conftest.tmp" "conftest.in" 7535 cp "conftest.in" "conftest.nl" 7536 $as_echo 'FGREP' >> "conftest.nl" 7537 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7539 as_fn_arith $ac_count + 1 && ac_count=$as_val 7540 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7541 # Best one so far, save it but keep looking for a better one 7542 ac_cv_path_FGREP="$ac_path_FGREP" 7543 ac_path_FGREP_max=$ac_count 7544 fi 7545 # 10*(2^10) chars as input seems more than enough 7546 test $ac_count -gt 10 && break 7547 done 7548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7549esac 7550 7551 $ac_path_FGREP_found && break 3 7552 done 7553 done 7554 done 7555IFS=$as_save_IFS 7556 if test -z "$ac_cv_path_FGREP"; then 7557 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7558 fi 7559else 7560 ac_cv_path_FGREP=$FGREP 7561fi 7562 7563 fi 7564fi 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7566$as_echo "$ac_cv_path_FGREP" >&6; } 7567 FGREP="$ac_cv_path_FGREP" 7568 7569 7570test -z "$GREP" && GREP=grep 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590# Check whether --with-gnu-ld was given. 7591if test "${with_gnu_ld+set}" = set; then : 7592 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7593else 7594 with_gnu_ld=no 7595fi 7596 7597ac_prog=ld 7598if test "$GCC" = yes; then 7599 # Check if gcc -print-prog-name=ld gives a path. 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7601$as_echo_n "checking for ld used by $CC... " >&6; } 7602 case $host in 7603 *-*-mingw*) 7604 # gcc leaves a trailing carriage return which upsets mingw 7605 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7606 *) 7607 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7608 esac 7609 case $ac_prog in 7610 # Accept absolute paths. 7611 [\\/]* | ?:[\\/]*) 7612 re_direlt='/[^/][^/]*/\.\./' 7613 # Canonicalize the pathname of ld 7614 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7615 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7616 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7617 done 7618 test -z "$LD" && LD="$ac_prog" 7619 ;; 7620 "") 7621 # If it fails, then pretend we aren't using GCC. 7622 ac_prog=ld 7623 ;; 7624 *) 7625 # If it is relative, then search for the first ld in PATH. 7626 with_gnu_ld=unknown 7627 ;; 7628 esac 7629elif test "$with_gnu_ld" = yes; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7631$as_echo_n "checking for GNU ld... " >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7634$as_echo_n "checking for non-GNU ld... " >&6; } 7635fi 7636if ${lt_cv_path_LD+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 if test -z "$LD"; then 7640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7641 for ac_dir in $PATH; do 7642 IFS="$lt_save_ifs" 7643 test -z "$ac_dir" && ac_dir=. 7644 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7645 lt_cv_path_LD="$ac_dir/$ac_prog" 7646 # Check to see if the program is GNU ld. I'd rather use --version, 7647 # but apparently some variants of GNU ld only accept -v. 7648 # Break only if it was the GNU/non-GNU ld that we prefer. 7649 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7650 *GNU* | *'with BFD'*) 7651 test "$with_gnu_ld" != no && break 7652 ;; 7653 *) 7654 test "$with_gnu_ld" != yes && break 7655 ;; 7656 esac 7657 fi 7658 done 7659 IFS="$lt_save_ifs" 7660else 7661 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7662fi 7663fi 7664 7665LD="$lt_cv_path_LD" 7666if test -n "$LD"; then 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7668$as_echo "$LD" >&6; } 7669else 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7671$as_echo "no" >&6; } 7672fi 7673test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7675$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7676if ${lt_cv_prog_gnu_ld+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7680case `$LD -v 2>&1 </dev/null` in 7681*GNU* | *'with BFD'*) 7682 lt_cv_prog_gnu_ld=yes 7683 ;; 7684*) 7685 lt_cv_prog_gnu_ld=no 7686 ;; 7687esac 7688fi 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7690$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7691with_gnu_ld=$lt_cv_prog_gnu_ld 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7702$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7703if ${lt_cv_path_NM+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 if test -n "$NM"; then 7707 # Let the user override the test. 7708 lt_cv_path_NM="$NM" 7709else 7710 lt_nm_to_check="${ac_tool_prefix}nm" 7711 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7712 lt_nm_to_check="$lt_nm_to_check nm" 7713 fi 7714 for lt_tmp_nm in $lt_nm_to_check; do 7715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7716 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7717 IFS="$lt_save_ifs" 7718 test -z "$ac_dir" && ac_dir=. 7719 tmp_nm="$ac_dir/$lt_tmp_nm" 7720 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7721 # Check to see if the nm accepts a BSD-compat flag. 7722 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7723 # nm: unknown option "B" ignored 7724 # Tru64's nm complains that /dev/null is an invalid object file 7725 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7726 */dev/null* | *'Invalid file or object type'*) 7727 lt_cv_path_NM="$tmp_nm -B" 7728 break 7729 ;; 7730 *) 7731 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7732 */dev/null*) 7733 lt_cv_path_NM="$tmp_nm -p" 7734 break 7735 ;; 7736 *) 7737 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7738 continue # so that we can try to find one that supports BSD flags 7739 ;; 7740 esac 7741 ;; 7742 esac 7743 fi 7744 done 7745 IFS="$lt_save_ifs" 7746 done 7747 : ${lt_cv_path_NM=no} 7748fi 7749fi 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7751$as_echo "$lt_cv_path_NM" >&6; } 7752if test "$lt_cv_path_NM" != "no"; then 7753 NM="$lt_cv_path_NM" 7754else 7755 # Didn't find any BSD compatible name lister, look for dumpbin. 7756 if test -n "$DUMPBIN"; then : 7757 # Let the user override the test. 7758 else 7759 if test -n "$ac_tool_prefix"; then 7760 for ac_prog in dumpbin "link -dump" 7761 do 7762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7763set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7765$as_echo_n "checking for $ac_word... " >&6; } 7766if ${ac_cv_prog_DUMPBIN+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 if test -n "$DUMPBIN"; then 7770 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7771else 7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773for as_dir in $PATH 7774do 7775 IFS=$as_save_IFS 7776 test -z "$as_dir" && as_dir=. 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7779 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi 7788fi 7789DUMPBIN=$ac_cv_prog_DUMPBIN 7790if test -n "$DUMPBIN"; then 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7792$as_echo "$DUMPBIN" >&6; } 7793else 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7795$as_echo "no" >&6; } 7796fi 7797 7798 7799 test -n "$DUMPBIN" && break 7800 done 7801fi 7802if test -z "$DUMPBIN"; then 7803 ac_ct_DUMPBIN=$DUMPBIN 7804 for ac_prog in dumpbin "link -dump" 7805do 7806 # Extract the first word of "$ac_prog", so it can be a program name with args. 7807set dummy $ac_prog; ac_word=$2 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7809$as_echo_n "checking for $ac_word... " >&6; } 7810if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 if test -n "$ac_ct_DUMPBIN"; then 7814 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7815else 7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7817for as_dir in $PATH 7818do 7819 IFS=$as_save_IFS 7820 test -z "$as_dir" && as_dir=. 7821 for ac_exec_ext in '' $ac_executable_extensions; do 7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7825 break 2 7826 fi 7827done 7828 done 7829IFS=$as_save_IFS 7830 7831fi 7832fi 7833ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7834if test -n "$ac_ct_DUMPBIN"; then 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7836$as_echo "$ac_ct_DUMPBIN" >&6; } 7837else 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7839$as_echo "no" >&6; } 7840fi 7841 7842 7843 test -n "$ac_ct_DUMPBIN" && break 7844done 7845 7846 if test "x$ac_ct_DUMPBIN" = x; then 7847 DUMPBIN=":" 7848 else 7849 case $cross_compiling:$ac_tool_warned in 7850yes:) 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7853ac_tool_warned=yes ;; 7854esac 7855 DUMPBIN=$ac_ct_DUMPBIN 7856 fi 7857fi 7858 7859 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7860 *COFF*) 7861 DUMPBIN="$DUMPBIN -symbols" 7862 ;; 7863 *) 7864 DUMPBIN=: 7865 ;; 7866 esac 7867 fi 7868 7869 if test "$DUMPBIN" != ":"; then 7870 NM="$DUMPBIN" 7871 fi 7872fi 7873test -z "$NM" && NM=nm 7874 7875 7876 7877 7878 7879 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7881$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7882if ${lt_cv_nm_interface+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 lt_cv_nm_interface="BSD nm" 7886 echo "int some_variable = 0;" > conftest.$ac_ext 7887 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7888 (eval "$ac_compile" 2>conftest.err) 7889 cat conftest.err >&5 7890 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7891 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7892 cat conftest.err >&5 7893 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7894 cat conftest.out >&5 7895 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7896 lt_cv_nm_interface="MS dumpbin" 7897 fi 7898 rm -f conftest* 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7901$as_echo "$lt_cv_nm_interface" >&6; } 7902 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7904$as_echo_n "checking whether ln -s works... " >&6; } 7905LN_S=$as_ln_s 7906if test "$LN_S" = "ln -s"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7908$as_echo "yes" >&6; } 7909else 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7911$as_echo "no, using $LN_S" >&6; } 7912fi 7913 7914# find the maximum length of command line arguments 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7916$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7917if ${lt_cv_sys_max_cmd_len+:} false; then : 7918 $as_echo_n "(cached) " >&6 7919else 7920 i=0 7921 teststring="ABCD" 7922 7923 case $build_os in 7924 msdosdjgpp*) 7925 # On DJGPP, this test can blow up pretty badly due to problems in libc 7926 # (any single argument exceeding 2000 bytes causes a buffer overrun 7927 # during glob expansion). Even if it were fixed, the result of this 7928 # check would be larger than it should be. 7929 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7930 ;; 7931 7932 gnu*) 7933 # Under GNU Hurd, this test is not required because there is 7934 # no limit to the length of command line arguments. 7935 # Libtool will interpret -1 as no limit whatsoever 7936 lt_cv_sys_max_cmd_len=-1; 7937 ;; 7938 7939 cygwin* | mingw* | cegcc*) 7940 # On Win9x/ME, this test blows up -- it succeeds, but takes 7941 # about 5 minutes as the teststring grows exponentially. 7942 # Worse, since 9x/ME are not pre-emptively multitasking, 7943 # you end up with a "frozen" computer, even though with patience 7944 # the test eventually succeeds (with a max line length of 256k). 7945 # Instead, let's just punt: use the minimum linelength reported by 7946 # all of the supported platforms: 8192 (on NT/2K/XP). 7947 lt_cv_sys_max_cmd_len=8192; 7948 ;; 7949 7950 mint*) 7951 # On MiNT this can take a long time and run out of memory. 7952 lt_cv_sys_max_cmd_len=8192; 7953 ;; 7954 7955 amigaos*) 7956 # On AmigaOS with pdksh, this test takes hours, literally. 7957 # So we just punt and use a minimum line length of 8192. 7958 lt_cv_sys_max_cmd_len=8192; 7959 ;; 7960 7961 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7962 # This has been around since 386BSD, at least. Likely further. 7963 if test -x /sbin/sysctl; then 7964 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7965 elif test -x /usr/sbin/sysctl; then 7966 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7967 else 7968 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7969 fi 7970 # And add a safety zone 7971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7973 ;; 7974 7975 interix*) 7976 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7977 lt_cv_sys_max_cmd_len=196608 7978 ;; 7979 7980 osf*) 7981 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7982 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7983 # nice to cause kernel panics so lets avoid the loop below. 7984 # First set a reasonable default. 7985 lt_cv_sys_max_cmd_len=16384 7986 # 7987 if test -x /sbin/sysconfig; then 7988 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7989 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7990 esac 7991 fi 7992 ;; 7993 sco3.2v5*) 7994 lt_cv_sys_max_cmd_len=102400 7995 ;; 7996 sysv5* | sco5v6* | sysv4.2uw2*) 7997 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7998 if test -n "$kargmax"; then 7999 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8000 else 8001 lt_cv_sys_max_cmd_len=32768 8002 fi 8003 ;; 8004 *) 8005 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8006 if test -n "$lt_cv_sys_max_cmd_len"; then 8007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8009 else 8010 # Make teststring a little bigger before we do anything with it. 8011 # a 1K string should be a reasonable start. 8012 for i in 1 2 3 4 5 6 7 8 ; do 8013 teststring=$teststring$teststring 8014 done 8015 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8016 # If test is not a shell built-in, we'll probably end up computing a 8017 # maximum length that is only half of the actual maximum length, but 8018 # we can't tell. 8019 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8020 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8021 test $i != 17 # 1/2 MB should be enough 8022 do 8023 i=`expr $i + 1` 8024 teststring=$teststring$teststring 8025 done 8026 # Only check the string length outside the loop. 8027 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8028 teststring= 8029 # Add a significant safety factor because C++ compilers can tack on 8030 # massive amounts of additional arguments before passing them to the 8031 # linker. It appears as though 1/2 is a usable value. 8032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8033 fi 8034 ;; 8035 esac 8036 8037fi 8038 8039if test -n $lt_cv_sys_max_cmd_len ; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8041$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8042else 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8044$as_echo "none" >&6; } 8045fi 8046max_cmd_len=$lt_cv_sys_max_cmd_len 8047 8048 8049 8050 8051 8052 8053: ${CP="cp -f"} 8054: ${MV="mv -f"} 8055: ${RM="rm -f"} 8056 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8058$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8059# Try some XSI features 8060xsi_shell=no 8061( _lt_dummy="a/b/c" 8062 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 8063 = c,a/b,b/c, \ 8064 && eval 'test $(( 1 + 1 )) -eq 2 \ 8065 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8066 && xsi_shell=yes 8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8068$as_echo "$xsi_shell" >&6; } 8069 8070 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8072$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8073lt_shell_append=no 8074( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8075 >/dev/null 2>&1 \ 8076 && lt_shell_append=yes 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8078$as_echo "$lt_shell_append" >&6; } 8079 8080 8081if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8082 lt_unset=unset 8083else 8084 lt_unset=false 8085fi 8086 8087 8088 8089 8090 8091# test EBCDIC or ASCII 8092case `echo X|tr X '\101'` in 8093 A) # ASCII based system 8094 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8095 lt_SP2NL='tr \040 \012' 8096 lt_NL2SP='tr \015\012 \040\040' 8097 ;; 8098 *) # EBCDIC based system 8099 lt_SP2NL='tr \100 \n' 8100 lt_NL2SP='tr \r\n \100\100' 8101 ;; 8102esac 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8113$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8114if ${lt_cv_to_host_file_cmd+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 case $host in 8118 *-*-mingw* ) 8119 case $build in 8120 *-*-mingw* ) # actually msys 8121 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8122 ;; 8123 *-*-cygwin* ) 8124 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8125 ;; 8126 * ) # otherwise, assume *nix 8127 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8128 ;; 8129 esac 8130 ;; 8131 *-*-cygwin* ) 8132 case $build in 8133 *-*-mingw* ) # actually msys 8134 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8135 ;; 8136 *-*-cygwin* ) 8137 lt_cv_to_host_file_cmd=func_convert_file_noop 8138 ;; 8139 * ) # otherwise, assume *nix 8140 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8141 ;; 8142 esac 8143 ;; 8144 * ) # unhandled hosts (and "normal" native builds) 8145 lt_cv_to_host_file_cmd=func_convert_file_noop 8146 ;; 8147esac 8148 8149fi 8150 8151to_host_file_cmd=$lt_cv_to_host_file_cmd 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8153$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8154 8155 8156 8157 8158 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8160$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8161if ${lt_cv_to_tool_file_cmd+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 #assume ordinary cross tools, or native build. 8165lt_cv_to_tool_file_cmd=func_convert_file_noop 8166case $host in 8167 *-*-mingw* ) 8168 case $build in 8169 *-*-mingw* ) # actually msys 8170 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8171 ;; 8172 esac 8173 ;; 8174esac 8175 8176fi 8177 8178to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8180$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8181 8182 8183 8184 8185 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8187$as_echo_n "checking for $LD option to reload object files... " >&6; } 8188if ${lt_cv_ld_reload_flag+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190else 8191 lt_cv_ld_reload_flag='-r' 8192fi 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8194$as_echo "$lt_cv_ld_reload_flag" >&6; } 8195reload_flag=$lt_cv_ld_reload_flag 8196case $reload_flag in 8197"" | " "*) ;; 8198*) reload_flag=" $reload_flag" ;; 8199esac 8200reload_cmds='$LD$reload_flag -o $output$reload_objs' 8201case $host_os in 8202 cygwin* | mingw* | pw32* | cegcc*) 8203 if test "$GCC" != yes; then 8204 reload_cmds=false 8205 fi 8206 ;; 8207 darwin*) 8208 if test "$GCC" = yes; then 8209 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8210 else 8211 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8212 fi 8213 ;; 8214esac 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224if test -n "$ac_tool_prefix"; then 8225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8226set dummy ${ac_tool_prefix}objdump; ac_word=$2 8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8228$as_echo_n "checking for $ac_word... " >&6; } 8229if ${ac_cv_prog_OBJDUMP+:} false; then : 8230 $as_echo_n "(cached) " >&6 8231else 8232 if test -n "$OBJDUMP"; then 8233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8234else 8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8236for as_dir in $PATH 8237do 8238 IFS=$as_save_IFS 8239 test -z "$as_dir" && as_dir=. 8240 for ac_exec_ext in '' $ac_executable_extensions; do 8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8244 break 2 8245 fi 8246done 8247 done 8248IFS=$as_save_IFS 8249 8250fi 8251fi 8252OBJDUMP=$ac_cv_prog_OBJDUMP 8253if test -n "$OBJDUMP"; then 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8255$as_echo "$OBJDUMP" >&6; } 8256else 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8258$as_echo "no" >&6; } 8259fi 8260 8261 8262fi 8263if test -z "$ac_cv_prog_OBJDUMP"; then 8264 ac_ct_OBJDUMP=$OBJDUMP 8265 # Extract the first word of "objdump", so it can be a program name with args. 8266set dummy objdump; ac_word=$2 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8268$as_echo_n "checking for $ac_word... " >&6; } 8269if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271else 8272 if test -n "$ac_ct_OBJDUMP"; then 8273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8274else 8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8276for as_dir in $PATH 8277do 8278 IFS=$as_save_IFS 8279 test -z "$as_dir" && as_dir=. 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8282 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8284 break 2 8285 fi 8286done 8287 done 8288IFS=$as_save_IFS 8289 8290fi 8291fi 8292ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8293if test -n "$ac_ct_OBJDUMP"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8295$as_echo "$ac_ct_OBJDUMP" >&6; } 8296else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298$as_echo "no" >&6; } 8299fi 8300 8301 if test "x$ac_ct_OBJDUMP" = x; then 8302 OBJDUMP="false" 8303 else 8304 case $cross_compiling:$ac_tool_warned in 8305yes:) 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8308ac_tool_warned=yes ;; 8309esac 8310 OBJDUMP=$ac_ct_OBJDUMP 8311 fi 8312else 8313 OBJDUMP="$ac_cv_prog_OBJDUMP" 8314fi 8315 8316test -z "$OBJDUMP" && OBJDUMP=objdump 8317 8318 8319 8320 8321 8322 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8324$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8325if ${lt_cv_deplibs_check_method+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327else 8328 lt_cv_file_magic_cmd='$MAGIC_CMD' 8329lt_cv_file_magic_test_file= 8330lt_cv_deplibs_check_method='unknown' 8331# Need to set the preceding variable on all platforms that support 8332# interlibrary dependencies. 8333# 'none' -- dependencies not supported. 8334# `unknown' -- same as none, but documents that we really don't know. 8335# 'pass_all' -- all dependencies passed with no checks. 8336# 'test_compile' -- check by making test program. 8337# 'file_magic [[regex]]' -- check by looking for files in library path 8338# which responds to the $file_magic_cmd with a given extended regex. 8339# If you have `file' or equivalent on your system and you're not sure 8340# whether `pass_all' will *always* work, you probably want this one. 8341 8342case $host_os in 8343aix[4-9]*) 8344 lt_cv_deplibs_check_method=pass_all 8345 ;; 8346 8347beos*) 8348 lt_cv_deplibs_check_method=pass_all 8349 ;; 8350 8351bsdi[45]*) 8352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8353 lt_cv_file_magic_cmd='/usr/bin/file -L' 8354 lt_cv_file_magic_test_file=/shlib/libc.so 8355 ;; 8356 8357cygwin*) 8358 # func_win32_libid is a shell function defined in ltmain.sh 8359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8360 lt_cv_file_magic_cmd='func_win32_libid' 8361 ;; 8362 8363mingw* | pw32*) 8364 # Base MSYS/MinGW do not provide the 'file' command needed by 8365 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8366 # unless we find 'file', for example because we are cross-compiling. 8367 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8368 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8370 lt_cv_file_magic_cmd='func_win32_libid' 8371 else 8372 # Keep this pattern in sync with the one in func_win32_libid. 8373 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8374 lt_cv_file_magic_cmd='$OBJDUMP -f' 8375 fi 8376 ;; 8377 8378cegcc*) 8379 # use the weaker test based on 'objdump'. See mingw*. 8380 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8381 lt_cv_file_magic_cmd='$OBJDUMP -f' 8382 ;; 8383 8384darwin* | rhapsody*) 8385 lt_cv_deplibs_check_method=pass_all 8386 ;; 8387 8388freebsd* | dragonfly*) 8389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8390 case $host_cpu in 8391 i*86 ) 8392 # Not sure whether the presence of OpenBSD here was a mistake. 8393 # Let's accept both of them until this is cleared up. 8394 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8395 lt_cv_file_magic_cmd=/usr/bin/file 8396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8397 ;; 8398 esac 8399 else 8400 lt_cv_deplibs_check_method=pass_all 8401 fi 8402 ;; 8403 8404gnu*) 8405 lt_cv_deplibs_check_method=pass_all 8406 ;; 8407 8408haiku*) 8409 lt_cv_deplibs_check_method=pass_all 8410 ;; 8411 8412hpux10.20* | hpux11*) 8413 lt_cv_file_magic_cmd=/usr/bin/file 8414 case $host_cpu in 8415 ia64*) 8416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8417 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8418 ;; 8419 hppa*64*) 8420 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]' 8421 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8422 ;; 8423 *) 8424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8425 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8426 ;; 8427 esac 8428 ;; 8429 8430interix[3-9]*) 8431 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8433 ;; 8434 8435irix5* | irix6* | nonstopux*) 8436 case $LD in 8437 *-32|*"-32 ") libmagic=32-bit;; 8438 *-n32|*"-n32 ") libmagic=N32;; 8439 *-64|*"-64 ") libmagic=64-bit;; 8440 *) libmagic=never-match;; 8441 esac 8442 lt_cv_deplibs_check_method=pass_all 8443 ;; 8444 8445# This must be Linux ELF. 8446linux* | k*bsd*-gnu | kopensolaris*-gnu) 8447 lt_cv_deplibs_check_method=pass_all 8448 ;; 8449 8450netbsd* | netbsdelf*-gnu) 8451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8453 else 8454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8455 fi 8456 ;; 8457 8458newos6*) 8459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8460 lt_cv_file_magic_cmd=/usr/bin/file 8461 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8462 ;; 8463 8464*nto* | *qnx*) 8465 lt_cv_deplibs_check_method=pass_all 8466 ;; 8467 8468openbsd*) 8469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8471 else 8472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8473 fi 8474 ;; 8475 8476osf3* | osf4* | osf5*) 8477 lt_cv_deplibs_check_method=pass_all 8478 ;; 8479 8480rdos*) 8481 lt_cv_deplibs_check_method=pass_all 8482 ;; 8483 8484solaris*) 8485 lt_cv_deplibs_check_method=pass_all 8486 ;; 8487 8488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8489 lt_cv_deplibs_check_method=pass_all 8490 ;; 8491 8492sysv4 | sysv4.3*) 8493 case $host_vendor in 8494 motorola) 8495 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]' 8496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8497 ;; 8498 ncr) 8499 lt_cv_deplibs_check_method=pass_all 8500 ;; 8501 sequent) 8502 lt_cv_file_magic_cmd='/bin/file' 8503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8504 ;; 8505 sni) 8506 lt_cv_file_magic_cmd='/bin/file' 8507 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8508 lt_cv_file_magic_test_file=/lib/libc.so 8509 ;; 8510 siemens) 8511 lt_cv_deplibs_check_method=pass_all 8512 ;; 8513 pc) 8514 lt_cv_deplibs_check_method=pass_all 8515 ;; 8516 esac 8517 ;; 8518 8519tpf*) 8520 lt_cv_deplibs_check_method=pass_all 8521 ;; 8522esac 8523 8524fi 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8526$as_echo "$lt_cv_deplibs_check_method" >&6; } 8527 8528file_magic_glob= 8529want_nocaseglob=no 8530if test "$build" = "$host"; then 8531 case $host_os in 8532 mingw* | pw32*) 8533 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8534 want_nocaseglob=yes 8535 else 8536 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8537 fi 8538 ;; 8539 esac 8540fi 8541 8542file_magic_cmd=$lt_cv_file_magic_cmd 8543deplibs_check_method=$lt_cv_deplibs_check_method 8544test -z "$deplibs_check_method" && deplibs_check_method=unknown 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567if test -n "$ac_tool_prefix"; then 8568 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8569set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8571$as_echo_n "checking for $ac_word... " >&6; } 8572if ${ac_cv_prog_DLLTOOL+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 if test -n "$DLLTOOL"; then 8576 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8577else 8578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8579for as_dir in $PATH 8580do 8581 IFS=$as_save_IFS 8582 test -z "$as_dir" && as_dir=. 8583 for ac_exec_ext in '' $ac_executable_extensions; do 8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8585 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8587 break 2 8588 fi 8589done 8590 done 8591IFS=$as_save_IFS 8592 8593fi 8594fi 8595DLLTOOL=$ac_cv_prog_DLLTOOL 8596if test -n "$DLLTOOL"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8598$as_echo "$DLLTOOL" >&6; } 8599else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601$as_echo "no" >&6; } 8602fi 8603 8604 8605fi 8606if test -z "$ac_cv_prog_DLLTOOL"; then 8607 ac_ct_DLLTOOL=$DLLTOOL 8608 # Extract the first word of "dlltool", so it can be a program name with args. 8609set dummy dlltool; ac_word=$2 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8611$as_echo_n "checking for $ac_word... " >&6; } 8612if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8613 $as_echo_n "(cached) " >&6 8614else 8615 if test -n "$ac_ct_DLLTOOL"; then 8616 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8617else 8618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8619for as_dir in $PATH 8620do 8621 IFS=$as_save_IFS 8622 test -z "$as_dir" && as_dir=. 8623 for ac_exec_ext in '' $ac_executable_extensions; do 8624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8625 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8627 break 2 8628 fi 8629done 8630 done 8631IFS=$as_save_IFS 8632 8633fi 8634fi 8635ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8636if test -n "$ac_ct_DLLTOOL"; then 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8638$as_echo "$ac_ct_DLLTOOL" >&6; } 8639else 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8641$as_echo "no" >&6; } 8642fi 8643 8644 if test "x$ac_ct_DLLTOOL" = x; then 8645 DLLTOOL="false" 8646 else 8647 case $cross_compiling:$ac_tool_warned in 8648yes:) 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8651ac_tool_warned=yes ;; 8652esac 8653 DLLTOOL=$ac_ct_DLLTOOL 8654 fi 8655else 8656 DLLTOOL="$ac_cv_prog_DLLTOOL" 8657fi 8658 8659test -z "$DLLTOOL" && DLLTOOL=dlltool 8660 8661 8662 8663 8664 8665 8666 8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8668$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8669if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671else 8672 lt_cv_sharedlib_from_linklib_cmd='unknown' 8673 8674case $host_os in 8675cygwin* | mingw* | pw32* | cegcc*) 8676 # two different shell functions defined in ltmain.sh 8677 # decide which to use based on capabilities of $DLLTOOL 8678 case `$DLLTOOL --help 2>&1` in 8679 *--identify-strict*) 8680 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8681 ;; 8682 *) 8683 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8684 ;; 8685 esac 8686 ;; 8687*) 8688 # fallback: assume linklib IS sharedlib 8689 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8690 ;; 8691esac 8692 8693fi 8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8695$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8696sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8697test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8698 8699 8700 8701 8702 8703 8704 8705if test -n "$ac_tool_prefix"; then 8706 for ac_prog in ar 8707 do 8708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8709set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8711$as_echo_n "checking for $ac_word... " >&6; } 8712if ${ac_cv_prog_AR+:} false; then : 8713 $as_echo_n "(cached) " >&6 8714else 8715 if test -n "$AR"; then 8716 ac_cv_prog_AR="$AR" # Let the user override the test. 8717else 8718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8719for as_dir in $PATH 8720do 8721 IFS=$as_save_IFS 8722 test -z "$as_dir" && as_dir=. 8723 for ac_exec_ext in '' $ac_executable_extensions; do 8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8725 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8727 break 2 8728 fi 8729done 8730 done 8731IFS=$as_save_IFS 8732 8733fi 8734fi 8735AR=$ac_cv_prog_AR 8736if test -n "$AR"; then 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8738$as_echo "$AR" >&6; } 8739else 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8741$as_echo "no" >&6; } 8742fi 8743 8744 8745 test -n "$AR" && break 8746 done 8747fi 8748if test -z "$AR"; then 8749 ac_ct_AR=$AR 8750 for ac_prog in ar 8751do 8752 # Extract the first word of "$ac_prog", so it can be a program name with args. 8753set dummy $ac_prog; ac_word=$2 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8755$as_echo_n "checking for $ac_word... " >&6; } 8756if ${ac_cv_prog_ac_ct_AR+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 if test -n "$ac_ct_AR"; then 8760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8761else 8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8763for as_dir in $PATH 8764do 8765 IFS=$as_save_IFS 8766 test -z "$as_dir" && as_dir=. 8767 for ac_exec_ext in '' $ac_executable_extensions; do 8768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8769 ac_cv_prog_ac_ct_AR="$ac_prog" 8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8771 break 2 8772 fi 8773done 8774 done 8775IFS=$as_save_IFS 8776 8777fi 8778fi 8779ac_ct_AR=$ac_cv_prog_ac_ct_AR 8780if test -n "$ac_ct_AR"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8782$as_echo "$ac_ct_AR" >&6; } 8783else 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8785$as_echo "no" >&6; } 8786fi 8787 8788 8789 test -n "$ac_ct_AR" && break 8790done 8791 8792 if test "x$ac_ct_AR" = x; then 8793 AR="false" 8794 else 8795 case $cross_compiling:$ac_tool_warned in 8796yes:) 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8799ac_tool_warned=yes ;; 8800esac 8801 AR=$ac_ct_AR 8802 fi 8803fi 8804 8805: ${AR=ar} 8806: ${AR_FLAGS=cru} 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8819$as_echo_n "checking for archiver @FILE support... " >&6; } 8820if ${lt_cv_ar_at_file+:} false; then : 8821 $as_echo_n "(cached) " >&6 8822else 8823 lt_cv_ar_at_file=no 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826 8827int main (void) 8828{ 8829 8830 ; 8831 return 0; 8832} 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO"; then : 8835 echo conftest.$ac_objext > conftest.lst 8836 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8838 (eval $lt_ar_try) 2>&5 8839 ac_status=$? 8840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8841 test $ac_status = 0; } 8842 if test "$ac_status" -eq 0; then 8843 # Ensure the archiver fails upon bogus file names. 8844 rm -f conftest.$ac_objext libconftest.a 8845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8846 (eval $lt_ar_try) 2>&5 8847 ac_status=$? 8848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8849 test $ac_status = 0; } 8850 if test "$ac_status" -ne 0; then 8851 lt_cv_ar_at_file=@ 8852 fi 8853 fi 8854 rm -f conftest.* libconftest.a 8855 8856fi 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8861$as_echo "$lt_cv_ar_at_file" >&6; } 8862 8863if test "x$lt_cv_ar_at_file" = xno; then 8864 archiver_list_spec= 8865else 8866 archiver_list_spec=$lt_cv_ar_at_file 8867fi 8868 8869 8870 8871 8872 8873 8874 8875if test -n "$ac_tool_prefix"; then 8876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8877set dummy ${ac_tool_prefix}strip; ac_word=$2 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8879$as_echo_n "checking for $ac_word... " >&6; } 8880if ${ac_cv_prog_STRIP+:} false; then : 8881 $as_echo_n "(cached) " >&6 8882else 8883 if test -n "$STRIP"; then 8884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8885else 8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8887for as_dir in $PATH 8888do 8889 IFS=$as_save_IFS 8890 test -z "$as_dir" && as_dir=. 8891 for ac_exec_ext in '' $ac_executable_extensions; do 8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8893 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8895 break 2 8896 fi 8897done 8898 done 8899IFS=$as_save_IFS 8900 8901fi 8902fi 8903STRIP=$ac_cv_prog_STRIP 8904if test -n "$STRIP"; then 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8906$as_echo "$STRIP" >&6; } 8907else 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8909$as_echo "no" >&6; } 8910fi 8911 8912 8913fi 8914if test -z "$ac_cv_prog_STRIP"; then 8915 ac_ct_STRIP=$STRIP 8916 # Extract the first word of "strip", so it can be a program name with args. 8917set dummy strip; ac_word=$2 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8919$as_echo_n "checking for $ac_word... " >&6; } 8920if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 if test -n "$ac_ct_STRIP"; then 8924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8925else 8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8927for as_dir in $PATH 8928do 8929 IFS=$as_save_IFS 8930 test -z "$as_dir" && as_dir=. 8931 for ac_exec_ext in '' $ac_executable_extensions; do 8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8933 ac_cv_prog_ac_ct_STRIP="strip" 8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8935 break 2 8936 fi 8937done 8938 done 8939IFS=$as_save_IFS 8940 8941fi 8942fi 8943ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8944if test -n "$ac_ct_STRIP"; then 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8946$as_echo "$ac_ct_STRIP" >&6; } 8947else 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8949$as_echo "no" >&6; } 8950fi 8951 8952 if test "x$ac_ct_STRIP" = x; then 8953 STRIP=":" 8954 else 8955 case $cross_compiling:$ac_tool_warned in 8956yes:) 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8959ac_tool_warned=yes ;; 8960esac 8961 STRIP=$ac_ct_STRIP 8962 fi 8963else 8964 STRIP="$ac_cv_prog_STRIP" 8965fi 8966 8967test -z "$STRIP" && STRIP=: 8968 8969 8970 8971 8972 8973 8974if test -n "$ac_tool_prefix"; then 8975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8976set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8978$as_echo_n "checking for $ac_word... " >&6; } 8979if ${ac_cv_prog_RANLIB+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 if test -n "$RANLIB"; then 8983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8984else 8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8986for as_dir in $PATH 8987do 8988 IFS=$as_save_IFS 8989 test -z "$as_dir" && as_dir=. 8990 for ac_exec_ext in '' $ac_executable_extensions; do 8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8994 break 2 8995 fi 8996done 8997 done 8998IFS=$as_save_IFS 8999 9000fi 9001fi 9002RANLIB=$ac_cv_prog_RANLIB 9003if test -n "$RANLIB"; then 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9005$as_echo "$RANLIB" >&6; } 9006else 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9008$as_echo "no" >&6; } 9009fi 9010 9011 9012fi 9013if test -z "$ac_cv_prog_RANLIB"; then 9014 ac_ct_RANLIB=$RANLIB 9015 # Extract the first word of "ranlib", so it can be a program name with args. 9016set dummy ranlib; ac_word=$2 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9018$as_echo_n "checking for $ac_word... " >&6; } 9019if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 if test -n "$ac_ct_RANLIB"; then 9023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9024else 9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9026for as_dir in $PATH 9027do 9028 IFS=$as_save_IFS 9029 test -z "$as_dir" && as_dir=. 9030 for ac_exec_ext in '' $ac_executable_extensions; do 9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9032 ac_cv_prog_ac_ct_RANLIB="ranlib" 9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9034 break 2 9035 fi 9036done 9037 done 9038IFS=$as_save_IFS 9039 9040fi 9041fi 9042ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9043if test -n "$ac_ct_RANLIB"; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9045$as_echo "$ac_ct_RANLIB" >&6; } 9046else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9048$as_echo "no" >&6; } 9049fi 9050 9051 if test "x$ac_ct_RANLIB" = x; then 9052 RANLIB=":" 9053 else 9054 case $cross_compiling:$ac_tool_warned in 9055yes:) 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9058ac_tool_warned=yes ;; 9059esac 9060 RANLIB=$ac_ct_RANLIB 9061 fi 9062else 9063 RANLIB="$ac_cv_prog_RANLIB" 9064fi 9065 9066test -z "$RANLIB" && RANLIB=: 9067 9068 9069 9070 9071 9072 9073# Determine commands to create old-style static archives. 9074old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9075old_postinstall_cmds='chmod 644 $oldlib' 9076old_postuninstall_cmds= 9077 9078if test -n "$RANLIB"; then 9079 case $host_os in 9080 openbsd*) 9081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9082 ;; 9083 *) 9084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9085 ;; 9086 esac 9087 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9088fi 9089 9090case $host_os in 9091 darwin*) 9092 lock_old_archive_extraction=yes ;; 9093 *) 9094 lock_old_archive_extraction=no ;; 9095esac 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135# If no C compiler was specified, use CC. 9136LTCC=${LTCC-"$CC"} 9137 9138# If no C compiler flags were specified, use CFLAGS. 9139LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9140 9141# Allow CC to be a program name with arguments. 9142compiler=$CC 9143 9144 9145# Check for command to grab the raw symbol name followed by C symbol from nm. 9146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9147$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9148if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9149 $as_echo_n "(cached) " >&6 9150else 9151 9152# These are sane defaults that work on at least a few old systems. 9153# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9154 9155# Character class describing NM global symbol codes. 9156symcode='[BCDEGRST]' 9157 9158# Regexp to match symbols that can be accessed directly from C. 9159sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9160 9161# Define system-specific variables. 9162case $host_os in 9163aix*) 9164 symcode='[BCDT]' 9165 ;; 9166cygwin* | mingw* | pw32* | cegcc*) 9167 symcode='[ABCDGISTW]' 9168 ;; 9169hpux*) 9170 if test "$host_cpu" = ia64; then 9171 symcode='[ABCDEGRST]' 9172 fi 9173 ;; 9174irix* | nonstopux*) 9175 symcode='[BCDEGRST]' 9176 ;; 9177osf*) 9178 symcode='[BCDEGQRST]' 9179 ;; 9180solaris*) 9181 symcode='[BDRT]' 9182 ;; 9183sco3.2v5*) 9184 symcode='[DT]' 9185 ;; 9186sysv4.2uw2*) 9187 symcode='[DT]' 9188 ;; 9189sysv5* | sco5v6* | unixware* | OpenUNIX*) 9190 symcode='[ABDT]' 9191 ;; 9192sysv4) 9193 symcode='[DFNSTU]' 9194 ;; 9195esac 9196 9197# If we're using GNU nm, then use its standard symbol codes. 9198case `$NM -V 2>&1` in 9199*GNU* | *'with BFD'*) 9200 symcode='[ABCDGIRSTW]' ;; 9201esac 9202 9203# Transform an extracted symbol line into a proper C declaration. 9204# Some systems (esp. on ia64) link data and code symbols differently, 9205# so use this general approach. 9206lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9207 9208# Transform an extracted symbol line into symbol name and symbol address 9209lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9210lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9211 9212# Handle CRLF in mingw tool chain 9213opt_cr= 9214case $build_os in 9215mingw*) 9216 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9217 ;; 9218esac 9219 9220# Try without a prefix underscore, then with it. 9221for ac_symprfx in "" "_"; do 9222 9223 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9224 symxfrm="\\1 $ac_symprfx\\2 \\2" 9225 9226 # Write the raw and C identifiers. 9227 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9228 # Fake it for dumpbin and say T for any non-static function 9229 # and D for any global variable. 9230 # Also find C++ and __fastcall symbols from MSVC++, 9231 # which start with @ or ?. 9232 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9233" {last_section=section; section=\$ 3};"\ 9234" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9235" \$ 0!~/External *\|/{next};"\ 9236" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9237" {if(hide[section]) next};"\ 9238" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9239" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9240" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9241" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9242" ' prfx=^$ac_symprfx" 9243 else 9244 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9245 fi 9246 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9247 9248 # Check to see that the pipe works correctly. 9249 pipe_works=no 9250 9251 rm -f conftest* 9252 cat > conftest.$ac_ext <<_LT_EOF 9253#ifdef __cplusplus 9254extern "C" { 9255#endif 9256char nm_test_var; 9257void nm_test_func(void); 9258void nm_test_func(void){} 9259#ifdef __cplusplus 9260} 9261#endif 9262int main(){nm_test_var='a';nm_test_func();return(0);} 9263_LT_EOF 9264 9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9266 (eval $ac_compile) 2>&5 9267 ac_status=$? 9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9269 test $ac_status = 0; }; then 9270 # Now try to grab the symbols. 9271 nlist=conftest.nm 9272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9273 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9274 ac_status=$? 9275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9276 test $ac_status = 0; } && test -s "$nlist"; then 9277 # Try sorting and uniquifying the output. 9278 if sort "$nlist" | uniq > "$nlist"T; then 9279 mv -f "$nlist"T "$nlist" 9280 else 9281 rm -f "$nlist"T 9282 fi 9283 9284 # Make sure that we snagged all the symbols we need. 9285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9287 cat <<_LT_EOF > conftest.$ac_ext 9288/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9289#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9290/* DATA imports from DLLs on WIN32 con't be const, because runtime 9291 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9292# define LT_DLSYM_CONST 9293#elif defined(__osf__) 9294/* This system does not cope well with relocations in const data. */ 9295# define LT_DLSYM_CONST 9296#else 9297# define LT_DLSYM_CONST const 9298#endif 9299 9300#ifdef __cplusplus 9301extern "C" { 9302#endif 9303 9304_LT_EOF 9305 # Now generate the symbol file. 9306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9307 9308 cat <<_LT_EOF >> conftest.$ac_ext 9309 9310/* The mapping between symbol names and symbols. */ 9311LT_DLSYM_CONST struct { 9312 const char *name; 9313 void *address; 9314} 9315lt__PROGRAM__LTX_preloaded_symbols[] = 9316{ 9317 { "@PROGRAM@", (void *) 0 }, 9318_LT_EOF 9319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9320 cat <<\_LT_EOF >> conftest.$ac_ext 9321 {0, (void *) 0} 9322}; 9323 9324/* This works around a problem in FreeBSD linker */ 9325#ifdef FREEBSD_WORKAROUND 9326static const void *lt_preloaded_setup() { 9327 return lt__PROGRAM__LTX_preloaded_symbols; 9328} 9329#endif 9330 9331#ifdef __cplusplus 9332} 9333#endif 9334_LT_EOF 9335 # Now try linking the two files. 9336 mv conftest.$ac_objext conftstm.$ac_objext 9337 lt_globsym_save_LIBS=$LIBS 9338 lt_globsym_save_CFLAGS=$CFLAGS 9339 LIBS="conftstm.$ac_objext" 9340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9342 (eval $ac_link) 2>&5 9343 ac_status=$? 9344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9345 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9346 pipe_works=yes 9347 fi 9348 LIBS=$lt_globsym_save_LIBS 9349 CFLAGS=$lt_globsym_save_CFLAGS 9350 else 9351 echo "cannot find nm_test_func in $nlist" >&5 9352 fi 9353 else 9354 echo "cannot find nm_test_var in $nlist" >&5 9355 fi 9356 else 9357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9358 fi 9359 else 9360 echo "$progname: failed program was:" >&5 9361 cat conftest.$ac_ext >&5 9362 fi 9363 rm -rf conftest* conftst* 9364 9365 # Do not use the global_symbol_pipe unless it works. 9366 if test "$pipe_works" = yes; then 9367 break 9368 else 9369 lt_cv_sys_global_symbol_pipe= 9370 fi 9371done 9372 9373fi 9374 9375if test -z "$lt_cv_sys_global_symbol_pipe"; then 9376 lt_cv_sys_global_symbol_to_cdecl= 9377fi 9378if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9380$as_echo "failed" >&6; } 9381else 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9383$as_echo "ok" >&6; } 9384fi 9385 9386# Response file support. 9387if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9388 nm_file_list_spec='@' 9389elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9390 nm_file_list_spec='@' 9391fi 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9420$as_echo_n "checking for sysroot... " >&6; } 9421 9422# Check whether --with-sysroot was given. 9423if test "${with_sysroot+set}" = set; then : 9424 withval=$with_sysroot; 9425else 9426 with_sysroot=no 9427fi 9428 9429 9430lt_sysroot= 9431case ${with_sysroot} in #( 9432 yes) 9433 if test "$GCC" = yes; then 9434 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9435 fi 9436 ;; #( 9437 /*) 9438 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9439 ;; #( 9440 no|'') 9441 ;; #( 9442 *) 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9444$as_echo "${with_sysroot}" >&6; } 9445 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9446 ;; 9447esac 9448 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9450$as_echo "${lt_sysroot:-no}" >&6; } 9451 9452 9453 9454 9455 9456# Check whether --enable-libtool-lock was given. 9457if test "${enable_libtool_lock+set}" = set; then : 9458 enableval=$enable_libtool_lock; 9459fi 9460 9461test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9462 9463# Some flags need to be propagated to the compiler or linker for good 9464# libtool support. 9465case $host in 9466ia64-*-hpux*) 9467 # Find out which ABI we are using. 9468 echo 'int i;' > conftest.$ac_ext 9469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9470 (eval $ac_compile) 2>&5 9471 ac_status=$? 9472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9473 test $ac_status = 0; }; then 9474 case `/usr/bin/file conftest.$ac_objext` in 9475 *ELF-32*) 9476 HPUX_IA64_MODE="32" 9477 ;; 9478 *ELF-64*) 9479 HPUX_IA64_MODE="64" 9480 ;; 9481 esac 9482 fi 9483 rm -rf conftest* 9484 ;; 9485*-*-irix6*) 9486 # Find out which ABI we are using. 9487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9489 (eval $ac_compile) 2>&5 9490 ac_status=$? 9491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9492 test $ac_status = 0; }; then 9493 if test "$lt_cv_prog_gnu_ld" = yes; then 9494 case `/usr/bin/file conftest.$ac_objext` in 9495 *32-bit*) 9496 LD="${LD-ld} -melf32bsmip" 9497 ;; 9498 *N32*) 9499 LD="${LD-ld} -melf32bmipn32" 9500 ;; 9501 *64-bit*) 9502 LD="${LD-ld} -melf64bmip" 9503 ;; 9504 esac 9505 else 9506 case `/usr/bin/file conftest.$ac_objext` in 9507 *32-bit*) 9508 LD="${LD-ld} -32" 9509 ;; 9510 *N32*) 9511 LD="${LD-ld} -n32" 9512 ;; 9513 *64-bit*) 9514 LD="${LD-ld} -64" 9515 ;; 9516 esac 9517 fi 9518 fi 9519 rm -rf conftest* 9520 ;; 9521 9522x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9523s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9524 # Find out which ABI we are using. 9525 echo 'int i;' > conftest.$ac_ext 9526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9527 (eval $ac_compile) 2>&5 9528 ac_status=$? 9529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9530 test $ac_status = 0; }; then 9531 case `/usr/bin/file conftest.o` in 9532 *32-bit*) 9533 case $host in 9534 x86_64-*kfreebsd*-gnu) 9535 LD="${LD-ld} -m elf_i386_fbsd" 9536 ;; 9537 x86_64-*linux*) 9538 LD="${LD-ld} -m elf_i386" 9539 ;; 9540 ppc64-*linux*|powerpc64-*linux*) 9541 LD="${LD-ld} -m elf32ppclinux" 9542 ;; 9543 s390x-*linux*) 9544 LD="${LD-ld} -m elf_s390" 9545 ;; 9546 sparc64-*linux*) 9547 LD="${LD-ld} -m elf32_sparc" 9548 ;; 9549 esac 9550 ;; 9551 *64-bit*) 9552 case $host in 9553 x86_64-*kfreebsd*-gnu) 9554 LD="${LD-ld} -m elf_x86_64_fbsd" 9555 ;; 9556 x86_64-*linux*) 9557 LD="${LD-ld} -m elf_x86_64" 9558 ;; 9559 ppc*-*linux*|powerpc*-*linux*) 9560 LD="${LD-ld} -m elf64ppc" 9561 ;; 9562 s390*-*linux*|s390*-*tpf*) 9563 LD="${LD-ld} -m elf64_s390" 9564 ;; 9565 sparc*-*linux*) 9566 LD="${LD-ld} -m elf64_sparc" 9567 ;; 9568 esac 9569 ;; 9570 esac 9571 fi 9572 rm -rf conftest* 9573 ;; 9574 9575*-*-sco3.2v5*) 9576 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9577 SAVE_CFLAGS="$CFLAGS" 9578 CFLAGS="$CFLAGS -belf" 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9580$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9581if ${lt_cv_cc_needs_belf+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 ac_ext=c 9585ac_cpp='$CPP $CPPFLAGS' 9586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9588ac_compiler_gnu=$ac_cv_c_compiler_gnu 9589 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592 9593int main (void) 9594{ 9595 9596 ; 9597 return 0; 9598} 9599_ACEOF 9600if ac_fn_c_try_link "$LINENO"; then : 9601 lt_cv_cc_needs_belf=yes 9602else 9603 lt_cv_cc_needs_belf=no 9604fi 9605rm -f core conftest.err conftest.$ac_objext \ 9606 conftest$ac_exeext conftest.$ac_ext 9607 ac_ext=c 9608ac_cpp='$CPP $CPPFLAGS' 9609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9611ac_compiler_gnu=$ac_cv_c_compiler_gnu 9612 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9615$as_echo "$lt_cv_cc_needs_belf" >&6; } 9616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9618 CFLAGS="$SAVE_CFLAGS" 9619 fi 9620 ;; 9621sparc*-*solaris*) 9622 # Find out which ABI we are using. 9623 echo 'int i;' > conftest.$ac_ext 9624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9625 (eval $ac_compile) 2>&5 9626 ac_status=$? 9627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9628 test $ac_status = 0; }; then 9629 case `/usr/bin/file conftest.o` in 9630 *64-bit*) 9631 case $lt_cv_prog_gnu_ld in 9632 yes*) LD="${LD-ld} -m elf64_sparc" ;; 9633 *) 9634 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9635 LD="${LD-ld} -64" 9636 fi 9637 ;; 9638 esac 9639 ;; 9640 esac 9641 fi 9642 rm -rf conftest* 9643 ;; 9644esac 9645 9646need_locks="$enable_libtool_lock" 9647 9648if test -n "$ac_tool_prefix"; then 9649 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9650set dummy ${ac_tool_prefix}mt; ac_word=$2 9651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9652$as_echo_n "checking for $ac_word... " >&6; } 9653if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 if test -n "$MANIFEST_TOOL"; then 9657 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9658else 9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9660for as_dir in $PATH 9661do 9662 IFS=$as_save_IFS 9663 test -z "$as_dir" && as_dir=. 9664 for ac_exec_ext in '' $ac_executable_extensions; do 9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9666 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9668 break 2 9669 fi 9670done 9671 done 9672IFS=$as_save_IFS 9673 9674fi 9675fi 9676MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9677if test -n "$MANIFEST_TOOL"; then 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9679$as_echo "$MANIFEST_TOOL" >&6; } 9680else 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9682$as_echo "no" >&6; } 9683fi 9684 9685 9686fi 9687if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9688 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9689 # Extract the first word of "mt", so it can be a program name with args. 9690set dummy mt; ac_word=$2 9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9692$as_echo_n "checking for $ac_word... " >&6; } 9693if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 if test -n "$ac_ct_MANIFEST_TOOL"; then 9697 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9698else 9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9700for as_dir in $PATH 9701do 9702 IFS=$as_save_IFS 9703 test -z "$as_dir" && as_dir=. 9704 for ac_exec_ext in '' $ac_executable_extensions; do 9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9706 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9708 break 2 9709 fi 9710done 9711 done 9712IFS=$as_save_IFS 9713 9714fi 9715fi 9716ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9717if test -n "$ac_ct_MANIFEST_TOOL"; then 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9719$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9720else 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9722$as_echo "no" >&6; } 9723fi 9724 9725 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9726 MANIFEST_TOOL=":" 9727 else 9728 case $cross_compiling:$ac_tool_warned in 9729yes:) 9730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9732ac_tool_warned=yes ;; 9733esac 9734 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9735 fi 9736else 9737 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9738fi 9739 9740test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9742$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9743if ${lt_cv_path_mainfest_tool+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 lt_cv_path_mainfest_tool=no 9747 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9748 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9749 cat conftest.err >&5 9750 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9751 lt_cv_path_mainfest_tool=yes 9752 fi 9753 rm -f conftest* 9754fi 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9756$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9757if test "x$lt_cv_path_mainfest_tool" != xyes; then 9758 MANIFEST_TOOL=: 9759fi 9760 9761 9762 9763 9764 9765 9766 case $host_os in 9767 rhapsody* | darwin*) 9768 if test -n "$ac_tool_prefix"; then 9769 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9770set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9772$as_echo_n "checking for $ac_word... " >&6; } 9773if ${ac_cv_prog_DSYMUTIL+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 if test -n "$DSYMUTIL"; then 9777 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9778else 9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9780for as_dir in $PATH 9781do 9782 IFS=$as_save_IFS 9783 test -z "$as_dir" && as_dir=. 9784 for ac_exec_ext in '' $ac_executable_extensions; do 9785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9786 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9788 break 2 9789 fi 9790done 9791 done 9792IFS=$as_save_IFS 9793 9794fi 9795fi 9796DSYMUTIL=$ac_cv_prog_DSYMUTIL 9797if test -n "$DSYMUTIL"; then 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9799$as_echo "$DSYMUTIL" >&6; } 9800else 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9802$as_echo "no" >&6; } 9803fi 9804 9805 9806fi 9807if test -z "$ac_cv_prog_DSYMUTIL"; then 9808 ac_ct_DSYMUTIL=$DSYMUTIL 9809 # Extract the first word of "dsymutil", so it can be a program name with args. 9810set dummy dsymutil; ac_word=$2 9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9812$as_echo_n "checking for $ac_word... " >&6; } 9813if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9814 $as_echo_n "(cached) " >&6 9815else 9816 if test -n "$ac_ct_DSYMUTIL"; then 9817 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9818else 9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9820for as_dir in $PATH 9821do 9822 IFS=$as_save_IFS 9823 test -z "$as_dir" && as_dir=. 9824 for ac_exec_ext in '' $ac_executable_extensions; do 9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9826 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9828 break 2 9829 fi 9830done 9831 done 9832IFS=$as_save_IFS 9833 9834fi 9835fi 9836ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9837if test -n "$ac_ct_DSYMUTIL"; then 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9839$as_echo "$ac_ct_DSYMUTIL" >&6; } 9840else 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9842$as_echo "no" >&6; } 9843fi 9844 9845 if test "x$ac_ct_DSYMUTIL" = x; then 9846 DSYMUTIL=":" 9847 else 9848 case $cross_compiling:$ac_tool_warned in 9849yes:) 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9852ac_tool_warned=yes ;; 9853esac 9854 DSYMUTIL=$ac_ct_DSYMUTIL 9855 fi 9856else 9857 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9858fi 9859 9860 if test -n "$ac_tool_prefix"; then 9861 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9862set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9864$as_echo_n "checking for $ac_word... " >&6; } 9865if ${ac_cv_prog_NMEDIT+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867else 9868 if test -n "$NMEDIT"; then 9869 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9870else 9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9872for as_dir in $PATH 9873do 9874 IFS=$as_save_IFS 9875 test -z "$as_dir" && as_dir=. 9876 for ac_exec_ext in '' $ac_executable_extensions; do 9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9878 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9880 break 2 9881 fi 9882done 9883 done 9884IFS=$as_save_IFS 9885 9886fi 9887fi 9888NMEDIT=$ac_cv_prog_NMEDIT 9889if test -n "$NMEDIT"; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9891$as_echo "$NMEDIT" >&6; } 9892else 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894$as_echo "no" >&6; } 9895fi 9896 9897 9898fi 9899if test -z "$ac_cv_prog_NMEDIT"; then 9900 ac_ct_NMEDIT=$NMEDIT 9901 # Extract the first word of "nmedit", so it can be a program name with args. 9902set dummy nmedit; ac_word=$2 9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9904$as_echo_n "checking for $ac_word... " >&6; } 9905if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 if test -n "$ac_ct_NMEDIT"; then 9909 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9910else 9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9912for as_dir in $PATH 9913do 9914 IFS=$as_save_IFS 9915 test -z "$as_dir" && as_dir=. 9916 for ac_exec_ext in '' $ac_executable_extensions; do 9917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9918 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9920 break 2 9921 fi 9922done 9923 done 9924IFS=$as_save_IFS 9925 9926fi 9927fi 9928ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9929if test -n "$ac_ct_NMEDIT"; then 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9931$as_echo "$ac_ct_NMEDIT" >&6; } 9932else 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9934$as_echo "no" >&6; } 9935fi 9936 9937 if test "x$ac_ct_NMEDIT" = x; then 9938 NMEDIT=":" 9939 else 9940 case $cross_compiling:$ac_tool_warned in 9941yes:) 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9944ac_tool_warned=yes ;; 9945esac 9946 NMEDIT=$ac_ct_NMEDIT 9947 fi 9948else 9949 NMEDIT="$ac_cv_prog_NMEDIT" 9950fi 9951 9952 if test -n "$ac_tool_prefix"; then 9953 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9954set dummy ${ac_tool_prefix}lipo; ac_word=$2 9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9956$as_echo_n "checking for $ac_word... " >&6; } 9957if ${ac_cv_prog_LIPO+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 if test -n "$LIPO"; then 9961 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9962else 9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9964for as_dir in $PATH 9965do 9966 IFS=$as_save_IFS 9967 test -z "$as_dir" && as_dir=. 9968 for ac_exec_ext in '' $ac_executable_extensions; do 9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9970 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9972 break 2 9973 fi 9974done 9975 done 9976IFS=$as_save_IFS 9977 9978fi 9979fi 9980LIPO=$ac_cv_prog_LIPO 9981if test -n "$LIPO"; then 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9983$as_echo "$LIPO" >&6; } 9984else 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9986$as_echo "no" >&6; } 9987fi 9988 9989 9990fi 9991if test -z "$ac_cv_prog_LIPO"; then 9992 ac_ct_LIPO=$LIPO 9993 # Extract the first word of "lipo", so it can be a program name with args. 9994set dummy lipo; ac_word=$2 9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9996$as_echo_n "checking for $ac_word... " >&6; } 9997if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999else 10000 if test -n "$ac_ct_LIPO"; then 10001 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10002else 10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10004for as_dir in $PATH 10005do 10006 IFS=$as_save_IFS 10007 test -z "$as_dir" && as_dir=. 10008 for ac_exec_ext in '' $ac_executable_extensions; do 10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10010 ac_cv_prog_ac_ct_LIPO="lipo" 10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10012 break 2 10013 fi 10014done 10015 done 10016IFS=$as_save_IFS 10017 10018fi 10019fi 10020ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10021if test -n "$ac_ct_LIPO"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10023$as_echo "$ac_ct_LIPO" >&6; } 10024else 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10026$as_echo "no" >&6; } 10027fi 10028 10029 if test "x$ac_ct_LIPO" = x; then 10030 LIPO=":" 10031 else 10032 case $cross_compiling:$ac_tool_warned in 10033yes:) 10034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10036ac_tool_warned=yes ;; 10037esac 10038 LIPO=$ac_ct_LIPO 10039 fi 10040else 10041 LIPO="$ac_cv_prog_LIPO" 10042fi 10043 10044 if test -n "$ac_tool_prefix"; then 10045 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10046set dummy ${ac_tool_prefix}otool; ac_word=$2 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10048$as_echo_n "checking for $ac_word... " >&6; } 10049if ${ac_cv_prog_OTOOL+:} false; then : 10050 $as_echo_n "(cached) " >&6 10051else 10052 if test -n "$OTOOL"; then 10053 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10054else 10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10056for as_dir in $PATH 10057do 10058 IFS=$as_save_IFS 10059 test -z "$as_dir" && as_dir=. 10060 for ac_exec_ext in '' $ac_executable_extensions; do 10061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10062 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10064 break 2 10065 fi 10066done 10067 done 10068IFS=$as_save_IFS 10069 10070fi 10071fi 10072OTOOL=$ac_cv_prog_OTOOL 10073if test -n "$OTOOL"; then 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10075$as_echo "$OTOOL" >&6; } 10076else 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10078$as_echo "no" >&6; } 10079fi 10080 10081 10082fi 10083if test -z "$ac_cv_prog_OTOOL"; then 10084 ac_ct_OTOOL=$OTOOL 10085 # Extract the first word of "otool", so it can be a program name with args. 10086set dummy otool; ac_word=$2 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10088$as_echo_n "checking for $ac_word... " >&6; } 10089if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 if test -n "$ac_ct_OTOOL"; then 10093 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10094else 10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10096for as_dir in $PATH 10097do 10098 IFS=$as_save_IFS 10099 test -z "$as_dir" && as_dir=. 10100 for ac_exec_ext in '' $ac_executable_extensions; do 10101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10102 ac_cv_prog_ac_ct_OTOOL="otool" 10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10104 break 2 10105 fi 10106done 10107 done 10108IFS=$as_save_IFS 10109 10110fi 10111fi 10112ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10113if test -n "$ac_ct_OTOOL"; then 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10115$as_echo "$ac_ct_OTOOL" >&6; } 10116else 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10118$as_echo "no" >&6; } 10119fi 10120 10121 if test "x$ac_ct_OTOOL" = x; then 10122 OTOOL=":" 10123 else 10124 case $cross_compiling:$ac_tool_warned in 10125yes:) 10126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10128ac_tool_warned=yes ;; 10129esac 10130 OTOOL=$ac_ct_OTOOL 10131 fi 10132else 10133 OTOOL="$ac_cv_prog_OTOOL" 10134fi 10135 10136 if test -n "$ac_tool_prefix"; then 10137 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10138set dummy ${ac_tool_prefix}otool64; ac_word=$2 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10140$as_echo_n "checking for $ac_word... " >&6; } 10141if ${ac_cv_prog_OTOOL64+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 if test -n "$OTOOL64"; then 10145 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10146else 10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10148for as_dir in $PATH 10149do 10150 IFS=$as_save_IFS 10151 test -z "$as_dir" && as_dir=. 10152 for ac_exec_ext in '' $ac_executable_extensions; do 10153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10154 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10156 break 2 10157 fi 10158done 10159 done 10160IFS=$as_save_IFS 10161 10162fi 10163fi 10164OTOOL64=$ac_cv_prog_OTOOL64 10165if test -n "$OTOOL64"; then 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10167$as_echo "$OTOOL64" >&6; } 10168else 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10170$as_echo "no" >&6; } 10171fi 10172 10173 10174fi 10175if test -z "$ac_cv_prog_OTOOL64"; then 10176 ac_ct_OTOOL64=$OTOOL64 10177 # Extract the first word of "otool64", so it can be a program name with args. 10178set dummy otool64; ac_word=$2 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10180$as_echo_n "checking for $ac_word... " >&6; } 10181if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 if test -n "$ac_ct_OTOOL64"; then 10185 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10186else 10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10188for as_dir in $PATH 10189do 10190 IFS=$as_save_IFS 10191 test -z "$as_dir" && as_dir=. 10192 for ac_exec_ext in '' $ac_executable_extensions; do 10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10194 ac_cv_prog_ac_ct_OTOOL64="otool64" 10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10196 break 2 10197 fi 10198done 10199 done 10200IFS=$as_save_IFS 10201 10202fi 10203fi 10204ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10205if test -n "$ac_ct_OTOOL64"; then 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10207$as_echo "$ac_ct_OTOOL64" >&6; } 10208else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210$as_echo "no" >&6; } 10211fi 10212 10213 if test "x$ac_ct_OTOOL64" = x; then 10214 OTOOL64=":" 10215 else 10216 case $cross_compiling:$ac_tool_warned in 10217yes:) 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10220ac_tool_warned=yes ;; 10221esac 10222 OTOOL64=$ac_ct_OTOOL64 10223 fi 10224else 10225 OTOOL64="$ac_cv_prog_OTOOL64" 10226fi 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10255$as_echo_n "checking for -single_module linker flag... " >&6; } 10256if ${lt_cv_apple_cc_single_mod+:} false; then : 10257 $as_echo_n "(cached) " >&6 10258else 10259 lt_cv_apple_cc_single_mod=no 10260 if test -z "${LT_MULTI_MODULE}"; then 10261 # By default we will add the -single_module flag. You can override 10262 # by either setting the environment variable LT_MULTI_MODULE 10263 # non-empty at configure time, or by adding -multi_module to the 10264 # link flags. 10265 rm -rf libconftest.dylib* 10266 echo "int foo(void){return 1;}" > conftest.c 10267 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10268-dynamiclib -Wl,-single_module conftest.c" >&5 10269 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10270 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10271 _lt_result=$? 10272 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 10273 lt_cv_apple_cc_single_mod=yes 10274 else 10275 cat conftest.err >&5 10276 fi 10277 rm -rf libconftest.dylib* 10278 rm -f conftest.* 10279 fi 10280fi 10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10282$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10284$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10285if ${lt_cv_ld_exported_symbols_list+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 lt_cv_ld_exported_symbols_list=no 10289 save_LDFLAGS=$LDFLAGS 10290 echo "_main" > conftest.sym 10291 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294 10295int main (void) 10296{ 10297 10298 ; 10299 return 0; 10300} 10301_ACEOF 10302if ac_fn_c_try_link "$LINENO"; then : 10303 lt_cv_ld_exported_symbols_list=yes 10304else 10305 lt_cv_ld_exported_symbols_list=no 10306fi 10307rm -f core conftest.err conftest.$ac_objext \ 10308 conftest$ac_exeext conftest.$ac_ext 10309 LDFLAGS="$save_LDFLAGS" 10310 10311fi 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10313$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10315$as_echo_n "checking for -force_load linker flag... " >&6; } 10316if ${lt_cv_ld_force_load+:} false; then : 10317 $as_echo_n "(cached) " >&6 10318else 10319 lt_cv_ld_force_load=no 10320 cat > conftest.c << _LT_EOF 10321int forced_loaded() { return 2;} 10322_LT_EOF 10323 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10324 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10325 echo "$AR cru libconftest.a conftest.o" >&5 10326 $AR cru libconftest.a conftest.o 2>&5 10327 echo "$RANLIB libconftest.a" >&5 10328 $RANLIB libconftest.a 2>&5 10329 cat > conftest.c << _LT_EOF 10330int main() { return 0;} 10331_LT_EOF 10332 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10333 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10334 _lt_result=$? 10335 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 10336 lt_cv_ld_force_load=yes 10337 else 10338 cat conftest.err >&5 10339 fi 10340 rm -f conftest.err libconftest.a conftest conftest.c 10341 rm -rf conftest.dSYM 10342 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10345$as_echo "$lt_cv_ld_force_load" >&6; } 10346 case $host_os in 10347 rhapsody* | darwin1.[012]) 10348 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10349 darwin1.*) 10350 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10351 darwin*) # darwin 5.x on 10352 # if running on 10.5 or later, the deployment target defaults 10353 # to the OS version, if on x86, and 10.4, the deployment 10354 # target defaults to 10.4. Don't you love it? 10355 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10356 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10357 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10358 10.[012]*) 10359 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10360 10.*) 10361 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10362 esac 10363 ;; 10364 esac 10365 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10366 _lt_dar_single_mod='$single_module' 10367 fi 10368 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10369 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10370 else 10371 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10372 fi 10373 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10374 _lt_dsymutil='~$DSYMUTIL $lib || :' 10375 else 10376 _lt_dsymutil= 10377 fi 10378 ;; 10379 esac 10380 10381for ac_header in dlfcn.h 10382do : 10383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10384" 10385if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10386 cat >>confdefs.h <<_ACEOF 10387#define HAVE_DLFCN_H 1 10388_ACEOF 10389 10390fi 10391 10392done 10393 10394 10395 10396 10397 10398# Set options 10399 10400 10401 10402 enable_dlopen=no 10403 10404 10405 10406 # Check whether --enable-shared was given. 10407if test "${enable_shared+set}" = set; then : 10408 enableval=$enable_shared; p=${PACKAGE-default} 10409 case $enableval in 10410 yes) enable_shared=yes ;; 10411 no) enable_shared=no ;; 10412 *) 10413 enable_shared=no 10414 # Look at the argument we got. We use all the common list separators. 10415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10416 for pkg in $enableval; do 10417 IFS="$lt_save_ifs" 10418 if test "X$pkg" = "X$p"; then 10419 enable_shared=yes 10420 fi 10421 done 10422 IFS="$lt_save_ifs" 10423 ;; 10424 esac 10425else 10426 enable_shared=yes 10427fi 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 # Check whether --enable-static was given. 10438if test "${enable_static+set}" = set; then : 10439 enableval=$enable_static; p=${PACKAGE-default} 10440 case $enableval in 10441 yes) enable_static=yes ;; 10442 no) enable_static=no ;; 10443 *) 10444 enable_static=no 10445 # Look at the argument we got. We use all the common list separators. 10446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10447 for pkg in $enableval; do 10448 IFS="$lt_save_ifs" 10449 if test "X$pkg" = "X$p"; then 10450 enable_static=yes 10451 fi 10452 done 10453 IFS="$lt_save_ifs" 10454 ;; 10455 esac 10456else 10457 enable_static=yes 10458fi 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469# Check whether --with-pic was given. 10470if test "${with_pic+set}" = set; then : 10471 withval=$with_pic; pic_mode="$withval" 10472else 10473 pic_mode=default 10474fi 10475 10476 10477test -z "$pic_mode" && pic_mode=default 10478 10479 10480 10481 10482 10483 10484 10485 # Check whether --enable-fast-install was given. 10486if test "${enable_fast_install+set}" = set; then : 10487 enableval=$enable_fast_install; p=${PACKAGE-default} 10488 case $enableval in 10489 yes) enable_fast_install=yes ;; 10490 no) enable_fast_install=no ;; 10491 *) 10492 enable_fast_install=no 10493 # Look at the argument we got. We use all the common list separators. 10494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10495 for pkg in $enableval; do 10496 IFS="$lt_save_ifs" 10497 if test "X$pkg" = "X$p"; then 10498 enable_fast_install=yes 10499 fi 10500 done 10501 IFS="$lt_save_ifs" 10502 ;; 10503 esac 10504else 10505 enable_fast_install=yes 10506fi 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518# This can be used to rebuild libtool when needed 10519LIBTOOL_DEPS="$ltmain" 10520 10521# Always use our own libtool. 10522LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549test -z "$LN_S" && LN_S="ln -s" 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564if test -n "${ZSH_VERSION+set}" ; then 10565 setopt NO_GLOB_SUBST 10566fi 10567 10568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10569$as_echo_n "checking for objdir... " >&6; } 10570if ${lt_cv_objdir+:} false; then : 10571 $as_echo_n "(cached) " >&6 10572else 10573 rm -f .libs 2>/dev/null 10574mkdir .libs 2>/dev/null 10575if test -d .libs; then 10576 lt_cv_objdir=.libs 10577else 10578 # MS-DOS does not allow filenames that begin with a dot. 10579 lt_cv_objdir=_libs 10580fi 10581rmdir .libs 2>/dev/null 10582fi 10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10584$as_echo "$lt_cv_objdir" >&6; } 10585objdir=$lt_cv_objdir 10586 10587 10588 10589 10590 10591cat >>confdefs.h <<_ACEOF 10592#define LT_OBJDIR "$lt_cv_objdir/" 10593_ACEOF 10594 10595 10596 10597 10598case $host_os in 10599aix3*) 10600 # AIX sometimes has problems with the GCC collect2 program. For some 10601 # reason, if we set the COLLECT_NAMES environment variable, the problems 10602 # vanish in a puff of smoke. 10603 if test "X${COLLECT_NAMES+set}" != Xset; then 10604 COLLECT_NAMES= 10605 export COLLECT_NAMES 10606 fi 10607 ;; 10608esac 10609 10610# Global variables: 10611ofile=libtool 10612can_build_shared=yes 10613 10614# All known linkers require a `.a' archive for static linking (except MSVC, 10615# which needs '.lib'). 10616libext=a 10617 10618with_gnu_ld="$lt_cv_prog_gnu_ld" 10619 10620old_CC="$CC" 10621old_CFLAGS="$CFLAGS" 10622 10623# Set sane defaults for various variables 10624test -z "$CC" && CC=cc 10625test -z "$LTCC" && LTCC=$CC 10626test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10627test -z "$LD" && LD=ld 10628test -z "$ac_objext" && ac_objext=o 10629 10630for cc_temp in $compiler""; do 10631 case $cc_temp in 10632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10634 \-*) ;; 10635 *) break;; 10636 esac 10637done 10638cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10639 10640 10641# Only perform the check for file, if the check method requires it 10642test -z "$MAGIC_CMD" && MAGIC_CMD=file 10643case $deplibs_check_method in 10644file_magic*) 10645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10647$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10648if ${lt_cv_path_MAGIC_CMD+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650else 10651 case $MAGIC_CMD in 10652[\\/*] | ?:[\\/]*) 10653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10654 ;; 10655*) 10656 lt_save_MAGIC_CMD="$MAGIC_CMD" 10657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10659 for ac_dir in $ac_dummy; do 10660 IFS="$lt_save_ifs" 10661 test -z "$ac_dir" && ac_dir=. 10662 if test -f $ac_dir/${ac_tool_prefix}file; then 10663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10664 if test -n "$file_magic_test_file"; then 10665 case $deplibs_check_method in 10666 "file_magic "*) 10667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10670 $EGREP "$file_magic_regex" > /dev/null; then 10671 : 10672 else 10673 cat <<_LT_EOF 1>&2 10674 10675*** Warning: the command libtool uses to detect shared libraries, 10676*** $file_magic_cmd, produces output that libtool cannot recognize. 10677*** The result is that libtool may fail to recognize shared libraries 10678*** as such. This will affect the creation of libtool libraries that 10679*** depend on shared libraries, but programs linked with such libtool 10680*** libraries will work regardless of this problem. Nevertheless, you 10681*** may want to report the problem to your system manager and/or to 10682*** bug-libtool@gnu.org 10683 10684_LT_EOF 10685 fi ;; 10686 esac 10687 fi 10688 break 10689 fi 10690 done 10691 IFS="$lt_save_ifs" 10692 MAGIC_CMD="$lt_save_MAGIC_CMD" 10693 ;; 10694esac 10695fi 10696 10697MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10698if test -n "$MAGIC_CMD"; then 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10700$as_echo "$MAGIC_CMD" >&6; } 10701else 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10703$as_echo "no" >&6; } 10704fi 10705 10706 10707 10708 10709 10710if test -z "$lt_cv_path_MAGIC_CMD"; then 10711 if test -n "$ac_tool_prefix"; then 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10713$as_echo_n "checking for file... " >&6; } 10714if ${lt_cv_path_MAGIC_CMD+:} false; then : 10715 $as_echo_n "(cached) " >&6 10716else 10717 case $MAGIC_CMD in 10718[\\/*] | ?:[\\/]*) 10719 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10720 ;; 10721*) 10722 lt_save_MAGIC_CMD="$MAGIC_CMD" 10723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10724 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10725 for ac_dir in $ac_dummy; do 10726 IFS="$lt_save_ifs" 10727 test -z "$ac_dir" && ac_dir=. 10728 if test -f $ac_dir/file; then 10729 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10730 if test -n "$file_magic_test_file"; then 10731 case $deplibs_check_method in 10732 "file_magic "*) 10733 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10734 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10735 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10736 $EGREP "$file_magic_regex" > /dev/null; then 10737 : 10738 else 10739 cat <<_LT_EOF 1>&2 10740 10741*** Warning: the command libtool uses to detect shared libraries, 10742*** $file_magic_cmd, produces output that libtool cannot recognize. 10743*** The result is that libtool may fail to recognize shared libraries 10744*** as such. This will affect the creation of libtool libraries that 10745*** depend on shared libraries, but programs linked with such libtool 10746*** libraries will work regardless of this problem. Nevertheless, you 10747*** may want to report the problem to your system manager and/or to 10748*** bug-libtool@gnu.org 10749 10750_LT_EOF 10751 fi ;; 10752 esac 10753 fi 10754 break 10755 fi 10756 done 10757 IFS="$lt_save_ifs" 10758 MAGIC_CMD="$lt_save_MAGIC_CMD" 10759 ;; 10760esac 10761fi 10762 10763MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10764if test -n "$MAGIC_CMD"; then 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10766$as_echo "$MAGIC_CMD" >&6; } 10767else 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10769$as_echo "no" >&6; } 10770fi 10771 10772 10773 else 10774 MAGIC_CMD=: 10775 fi 10776fi 10777 10778 fi 10779 ;; 10780esac 10781 10782# Use C for the default configuration in the libtool script 10783 10784lt_save_CC="$CC" 10785ac_ext=c 10786ac_cpp='$CPP $CPPFLAGS' 10787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10789ac_compiler_gnu=$ac_cv_c_compiler_gnu 10790 10791 10792# Source file extension for C test sources. 10793ac_ext=c 10794 10795# Object file extension for compiled C test sources. 10796objext=o 10797objext=$objext 10798 10799# Code to be used in simple compile tests 10800lt_simple_compile_test_code="int some_variable = 0;" 10801 10802# Code to be used in simple link tests 10803lt_simple_link_test_code='int main(){return(0);}' 10804 10805 10806 10807 10808 10809 10810 10811# If no C compiler was specified, use CC. 10812LTCC=${LTCC-"$CC"} 10813 10814# If no C compiler flags were specified, use CFLAGS. 10815LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10816 10817# Allow CC to be a program name with arguments. 10818compiler=$CC 10819 10820# Save the default compiler, since it gets overwritten when the other 10821# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10822compiler_DEFAULT=$CC 10823 10824# save warnings/boilerplate of simple test code 10825ac_outfile=conftest.$ac_objext 10826echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10827eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10828_lt_compiler_boilerplate=`cat conftest.err` 10829$RM conftest* 10830 10831ac_outfile=conftest.$ac_objext 10832echo "$lt_simple_link_test_code" >conftest.$ac_ext 10833eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10834_lt_linker_boilerplate=`cat conftest.err` 10835$RM -r conftest* 10836 10837 10838## CAVEAT EMPTOR: 10839## There is no encapsulation within the following macros, do not change 10840## the running order or otherwise move them around unless you know exactly 10841## what you are doing... 10842if test -n "$compiler"; then 10843 10844lt_prog_compiler_no_builtin_flag= 10845 10846if test "$GCC" = yes; then 10847 case $cc_basename in 10848 nvcc*) 10849 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10850 *) 10851 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10852 esac 10853 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10855$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10856if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10857 $as_echo_n "(cached) " >&6 10858else 10859 lt_cv_prog_compiler_rtti_exceptions=no 10860 ac_outfile=conftest.$ac_objext 10861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10862 lt_compiler_flag="-fno-rtti -fno-exceptions" 10863 # Insert the option either (1) after the last *FLAGS variable, or 10864 # (2) before a word containing "conftest.", or (3) at the end. 10865 # Note that $ac_compile itself does not contain backslashes and begins 10866 # with a dollar sign (not a hyphen), so the echo should work correctly. 10867 # The option is referenced via a variable to avoid confusing sed. 10868 lt_compile=`echo "$ac_compile" | $SED \ 10869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10871 -e 's:$: $lt_compiler_flag:'` 10872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10873 (eval "$lt_compile" 2>conftest.err) 10874 ac_status=$? 10875 cat conftest.err >&5 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10877 if (exit $ac_status) && test -s "$ac_outfile"; then 10878 # The compiler can only warn and ignore the option if not recognized 10879 # So say no if there are warnings other than the usual output. 10880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10883 lt_cv_prog_compiler_rtti_exceptions=yes 10884 fi 10885 fi 10886 $RM conftest* 10887 10888fi 10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10890$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10891 10892if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10893 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10894else 10895 : 10896fi 10897 10898fi 10899 10900 10901 10902 10903 10904 10905 lt_prog_compiler_wl= 10906lt_prog_compiler_pic= 10907lt_prog_compiler_static= 10908 10909 10910 if test "$GCC" = yes; then 10911 lt_prog_compiler_wl='-Wl,' 10912 lt_prog_compiler_static='-static' 10913 10914 case $host_os in 10915 aix*) 10916 # All AIX code is PIC. 10917 if test "$host_cpu" = ia64; then 10918 # AIX 5 now supports IA64 processor 10919 lt_prog_compiler_static='-Bstatic' 10920 fi 10921 ;; 10922 10923 amigaos*) 10924 case $host_cpu in 10925 powerpc) 10926 # see comment about AmigaOS4 .so support 10927 lt_prog_compiler_pic='-fPIC' 10928 ;; 10929 m68k) 10930 # FIXME: we need at least 68020 code to build shared libraries, but 10931 # adding the `-m68020' flag to GCC prevents building anything better, 10932 # like `-m68040'. 10933 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10934 ;; 10935 esac 10936 ;; 10937 10938 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10939 # PIC is the default for these OSes. 10940 ;; 10941 10942 mingw* | cygwin* | pw32* | os2* | cegcc*) 10943 # This hack is so that the source file can tell whether it is being 10944 # built for inclusion in a dll (and should export symbols for example). 10945 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10946 # (--disable-auto-import) libraries 10947 lt_prog_compiler_pic='-DDLL_EXPORT' 10948 ;; 10949 10950 darwin* | rhapsody*) 10951 # PIC is the default on this platform 10952 # Common symbols not allowed in MH_DYLIB files 10953 lt_prog_compiler_pic='-fno-common' 10954 ;; 10955 10956 haiku*) 10957 # PIC is the default for Haiku. 10958 # The "-static" flag exists, but is broken. 10959 lt_prog_compiler_static= 10960 ;; 10961 10962 hpux*) 10963 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10964 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10965 # sets the default TLS model and affects inlining. 10966 case $host_cpu in 10967 hppa*64*) 10968 # +Z the default 10969 ;; 10970 *) 10971 lt_prog_compiler_pic='-fPIC' 10972 ;; 10973 esac 10974 ;; 10975 10976 interix[3-9]*) 10977 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10978 # Instead, we relocate shared libraries at runtime. 10979 ;; 10980 10981 msdosdjgpp*) 10982 # Just because we use GCC doesn't mean we suddenly get shared libraries 10983 # on systems that don't support them. 10984 lt_prog_compiler_can_build_shared=no 10985 enable_shared=no 10986 ;; 10987 10988 *nto* | *qnx*) 10989 # QNX uses GNU C++, but need to define -shared option too, otherwise 10990 # it will coredump. 10991 lt_prog_compiler_pic='-fPIC -shared' 10992 ;; 10993 10994 sysv4*MP*) 10995 if test -d /usr/nec; then 10996 lt_prog_compiler_pic=-Kconform_pic 10997 fi 10998 ;; 10999 11000 *) 11001 lt_prog_compiler_pic='-fPIC' 11002 ;; 11003 esac 11004 11005 case $cc_basename in 11006 nvcc*) # Cuda Compiler Driver 2.2 11007 lt_prog_compiler_wl='-Xlinker ' 11008 lt_prog_compiler_pic='-Xcompiler -fPIC' 11009 ;; 11010 esac 11011 else 11012 # PORTME Check for flag to pass linker flags through the system compiler. 11013 case $host_os in 11014 aix*) 11015 lt_prog_compiler_wl='-Wl,' 11016 if test "$host_cpu" = ia64; then 11017 # AIX 5 now supports IA64 processor 11018 lt_prog_compiler_static='-Bstatic' 11019 else 11020 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11021 fi 11022 ;; 11023 11024 mingw* | cygwin* | pw32* | os2* | cegcc*) 11025 # This hack is so that the source file can tell whether it is being 11026 # built for inclusion in a dll (and should export symbols for example). 11027 lt_prog_compiler_pic='-DDLL_EXPORT' 11028 ;; 11029 11030 hpux9* | hpux10* | hpux11*) 11031 lt_prog_compiler_wl='-Wl,' 11032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11033 # not for PA HP-UX. 11034 case $host_cpu in 11035 hppa*64*|ia64*) 11036 # +Z the default 11037 ;; 11038 *) 11039 lt_prog_compiler_pic='+Z' 11040 ;; 11041 esac 11042 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11043 lt_prog_compiler_static='${wl}-a ${wl}archive' 11044 ;; 11045 11046 irix5* | irix6* | nonstopux*) 11047 lt_prog_compiler_wl='-Wl,' 11048 # PIC (with -KPIC) is the default. 11049 lt_prog_compiler_static='-non_shared' 11050 ;; 11051 11052 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11053 case $cc_basename in 11054 # old Intel for x86_64 which still supported -KPIC. 11055 ecc*) 11056 lt_prog_compiler_wl='-Wl,' 11057 lt_prog_compiler_pic='-KPIC' 11058 lt_prog_compiler_static='-static' 11059 ;; 11060 # icc used to be incompatible with GCC. 11061 # ICC 10 doesn't accept -KPIC any more. 11062 icc* | ifort*) 11063 lt_prog_compiler_wl='-Wl,' 11064 lt_prog_compiler_pic='-fPIC' 11065 lt_prog_compiler_static='-static' 11066 ;; 11067 # Lahey Fortran 8.1. 11068 lf95*) 11069 lt_prog_compiler_wl='-Wl,' 11070 lt_prog_compiler_pic='--shared' 11071 lt_prog_compiler_static='--static' 11072 ;; 11073 nagfor*) 11074 # NAG Fortran compiler 11075 lt_prog_compiler_wl='-Wl,-Wl,,' 11076 lt_prog_compiler_pic='-PIC' 11077 lt_prog_compiler_static='-Bstatic' 11078 ;; 11079 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11080 # Portland Group compilers (*not* the Pentium gcc compiler, 11081 # which looks to be a dead project) 11082 lt_prog_compiler_wl='-Wl,' 11083 lt_prog_compiler_pic='-fpic' 11084 lt_prog_compiler_static='-Bstatic' 11085 ;; 11086 ccc*) 11087 lt_prog_compiler_wl='-Wl,' 11088 # All Alpha code is PIC. 11089 lt_prog_compiler_static='-non_shared' 11090 ;; 11091 xl* | bgxl* | bgf* | mpixl*) 11092 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11093 lt_prog_compiler_wl='-Wl,' 11094 lt_prog_compiler_pic='-qpic' 11095 lt_prog_compiler_static='-qstaticlink' 11096 ;; 11097 *) 11098 case `$CC -V 2>&1 | sed 5q` in 11099 *Sun\ F* | *Sun*Fortran*) 11100 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11101 lt_prog_compiler_pic='-KPIC' 11102 lt_prog_compiler_static='-Bstatic' 11103 lt_prog_compiler_wl='' 11104 ;; 11105 *Sun\ C*) 11106 # Sun C 5.9 11107 lt_prog_compiler_pic='-KPIC' 11108 lt_prog_compiler_static='-Bstatic' 11109 lt_prog_compiler_wl='-Wl,' 11110 ;; 11111 esac 11112 ;; 11113 esac 11114 ;; 11115 11116 newsos6) 11117 lt_prog_compiler_pic='-KPIC' 11118 lt_prog_compiler_static='-Bstatic' 11119 ;; 11120 11121 *nto* | *qnx*) 11122 # QNX uses GNU C++, but need to define -shared option too, otherwise 11123 # it will coredump. 11124 lt_prog_compiler_pic='-fPIC -shared' 11125 ;; 11126 11127 osf3* | osf4* | osf5*) 11128 lt_prog_compiler_wl='-Wl,' 11129 # All OSF/1 code is PIC. 11130 lt_prog_compiler_static='-non_shared' 11131 ;; 11132 11133 rdos*) 11134 lt_prog_compiler_static='-non_shared' 11135 ;; 11136 11137 solaris*) 11138 lt_prog_compiler_pic='-KPIC' 11139 lt_prog_compiler_static='-Bstatic' 11140 case $cc_basename in 11141 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11142 lt_prog_compiler_wl='-Qoption ld ';; 11143 *) 11144 lt_prog_compiler_wl='-Wl,';; 11145 esac 11146 ;; 11147 11148 sunos4*) 11149 lt_prog_compiler_wl='-Qoption ld ' 11150 lt_prog_compiler_pic='-PIC' 11151 lt_prog_compiler_static='-Bstatic' 11152 ;; 11153 11154 sysv4 | sysv4.2uw2* | sysv4.3*) 11155 lt_prog_compiler_wl='-Wl,' 11156 lt_prog_compiler_pic='-KPIC' 11157 lt_prog_compiler_static='-Bstatic' 11158 ;; 11159 11160 sysv4*MP*) 11161 if test -d /usr/nec ;then 11162 lt_prog_compiler_pic='-Kconform_pic' 11163 lt_prog_compiler_static='-Bstatic' 11164 fi 11165 ;; 11166 11167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11168 lt_prog_compiler_wl='-Wl,' 11169 lt_prog_compiler_pic='-KPIC' 11170 lt_prog_compiler_static='-Bstatic' 11171 ;; 11172 11173 unicos*) 11174 lt_prog_compiler_wl='-Wl,' 11175 lt_prog_compiler_can_build_shared=no 11176 ;; 11177 11178 uts4*) 11179 lt_prog_compiler_pic='-pic' 11180 lt_prog_compiler_static='-Bstatic' 11181 ;; 11182 11183 *) 11184 lt_prog_compiler_can_build_shared=no 11185 ;; 11186 esac 11187 fi 11188 11189case $host_os in 11190 # For platforms which do not support PIC, -DPIC is meaningless: 11191 *djgpp*) 11192 lt_prog_compiler_pic= 11193 ;; 11194 *) 11195 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11196 ;; 11197esac 11198 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11200$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11201if ${lt_cv_prog_compiler_pic+:} false; then : 11202 $as_echo_n "(cached) " >&6 11203else 11204 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11205fi 11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11207$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11208lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11209 11210# 11211# Check to make sure the PIC flag actually works. 11212# 11213if test -n "$lt_prog_compiler_pic"; then 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11215$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11216if ${lt_cv_prog_compiler_pic_works+:} false; then : 11217 $as_echo_n "(cached) " >&6 11218else 11219 lt_cv_prog_compiler_pic_works=no 11220 ac_outfile=conftest.$ac_objext 11221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11222 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11223 # Insert the option either (1) after the last *FLAGS variable, or 11224 # (2) before a word containing "conftest.", or (3) at the end. 11225 # Note that $ac_compile itself does not contain backslashes and begins 11226 # with a dollar sign (not a hyphen), so the echo should work correctly. 11227 # The option is referenced via a variable to avoid confusing sed. 11228 lt_compile=`echo "$ac_compile" | $SED \ 11229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11231 -e 's:$: $lt_compiler_flag:'` 11232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11233 (eval "$lt_compile" 2>conftest.err) 11234 ac_status=$? 11235 cat conftest.err >&5 11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237 if (exit $ac_status) && test -s "$ac_outfile"; then 11238 # The compiler can only warn and ignore the option if not recognized 11239 # So say no if there are warnings other than the usual output. 11240 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11243 lt_cv_prog_compiler_pic_works=yes 11244 fi 11245 fi 11246 $RM conftest* 11247 11248fi 11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11250$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11251 11252if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11253 case $lt_prog_compiler_pic in 11254 "" | " "*) ;; 11255 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11256 esac 11257else 11258 lt_prog_compiler_pic= 11259 lt_prog_compiler_can_build_shared=no 11260fi 11261 11262fi 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274# 11275# Check to make sure the static flag actually works. 11276# 11277wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11279$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11280if ${lt_cv_prog_compiler_static_works+:} false; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 lt_cv_prog_compiler_static_works=no 11284 save_LDFLAGS="$LDFLAGS" 11285 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11286 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11288 # The linker can only warn and ignore the option if not recognized 11289 # So say no if there are warnings 11290 if test -s conftest.err; then 11291 # Append any errors to the config.log. 11292 cat conftest.err 1>&5 11293 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11295 if diff conftest.exp conftest.er2 >/dev/null; then 11296 lt_cv_prog_compiler_static_works=yes 11297 fi 11298 else 11299 lt_cv_prog_compiler_static_works=yes 11300 fi 11301 fi 11302 $RM -r conftest* 11303 LDFLAGS="$save_LDFLAGS" 11304 11305fi 11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11307$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11308 11309if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11310 : 11311else 11312 lt_prog_compiler_static= 11313fi 11314 11315 11316 11317 11318 11319 11320 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11322$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11323if ${lt_cv_prog_compiler_c_o+:} false; then : 11324 $as_echo_n "(cached) " >&6 11325else 11326 lt_cv_prog_compiler_c_o=no 11327 $RM -r conftest 2>/dev/null 11328 mkdir conftest 11329 cd conftest 11330 mkdir out 11331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11332 11333 lt_compiler_flag="-o out/conftest2.$ac_objext" 11334 # Insert the option either (1) after the last *FLAGS variable, or 11335 # (2) before a word containing "conftest.", or (3) at the end. 11336 # Note that $ac_compile itself does not contain backslashes and begins 11337 # with a dollar sign (not a hyphen), so the echo should work correctly. 11338 lt_compile=`echo "$ac_compile" | $SED \ 11339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11341 -e 's:$: $lt_compiler_flag:'` 11342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11343 (eval "$lt_compile" 2>out/conftest.err) 11344 ac_status=$? 11345 cat out/conftest.err >&5 11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11347 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11348 then 11349 # The compiler can only warn and ignore the option if not recognized 11350 # So say no if there are warnings 11351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11354 lt_cv_prog_compiler_c_o=yes 11355 fi 11356 fi 11357 chmod u+w . 2>&5 11358 $RM conftest* 11359 # SGI C++ compiler will create directory out/ii_files/ for 11360 # template instantiation 11361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11362 $RM out/* && rmdir out 11363 cd .. 11364 $RM -r conftest 11365 $RM conftest* 11366 11367fi 11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11369$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11370 11371 11372 11373 11374 11375 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11378if ${lt_cv_prog_compiler_c_o+:} false; then : 11379 $as_echo_n "(cached) " >&6 11380else 11381 lt_cv_prog_compiler_c_o=no 11382 $RM -r conftest 2>/dev/null 11383 mkdir conftest 11384 cd conftest 11385 mkdir out 11386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11387 11388 lt_compiler_flag="-o out/conftest2.$ac_objext" 11389 # Insert the option either (1) after the last *FLAGS variable, or 11390 # (2) before a word containing "conftest.", or (3) at the end. 11391 # Note that $ac_compile itself does not contain backslashes and begins 11392 # with a dollar sign (not a hyphen), so the echo should work correctly. 11393 lt_compile=`echo "$ac_compile" | $SED \ 11394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11396 -e 's:$: $lt_compiler_flag:'` 11397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11398 (eval "$lt_compile" 2>out/conftest.err) 11399 ac_status=$? 11400 cat out/conftest.err >&5 11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11402 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11403 then 11404 # The compiler can only warn and ignore the option if not recognized 11405 # So say no if there are warnings 11406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11409 lt_cv_prog_compiler_c_o=yes 11410 fi 11411 fi 11412 chmod u+w . 2>&5 11413 $RM conftest* 11414 # SGI C++ compiler will create directory out/ii_files/ for 11415 # template instantiation 11416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11417 $RM out/* && rmdir out 11418 cd .. 11419 $RM -r conftest 11420 $RM conftest* 11421 11422fi 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11424$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11425 11426 11427 11428 11429hard_links="nottested" 11430if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11431 # do not overwrite the value of need_locks provided by the user 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11433$as_echo_n "checking if we can lock with hard links... " >&6; } 11434 hard_links=yes 11435 $RM conftest* 11436 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11437 touch conftest.a 11438 ln conftest.a conftest.b 2>&5 || hard_links=no 11439 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11441$as_echo "$hard_links" >&6; } 11442 if test "$hard_links" = no; then 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11444$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11445 need_locks=warn 11446 fi 11447else 11448 need_locks=no 11449fi 11450 11451 11452 11453 11454 11455 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11457$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11458 11459 runpath_var= 11460 allow_undefined_flag= 11461 always_export_symbols=no 11462 archive_cmds= 11463 archive_expsym_cmds= 11464 compiler_needs_object=no 11465 enable_shared_with_static_runtimes=no 11466 export_dynamic_flag_spec= 11467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11468 hardcode_automatic=no 11469 hardcode_direct=no 11470 hardcode_direct_absolute=no 11471 hardcode_libdir_flag_spec= 11472 hardcode_libdir_flag_spec_ld= 11473 hardcode_libdir_separator= 11474 hardcode_minus_L=no 11475 hardcode_shlibpath_var=unsupported 11476 inherit_rpath=no 11477 link_all_deplibs=unknown 11478 module_cmds= 11479 module_expsym_cmds= 11480 old_archive_from_new_cmds= 11481 old_archive_from_expsyms_cmds= 11482 thread_safe_flag_spec= 11483 whole_archive_flag_spec= 11484 # include_expsyms should be a list of space-separated symbols to be *always* 11485 # included in the symbol list 11486 include_expsyms= 11487 # exclude_expsyms can be an extended regexp of symbols to exclude 11488 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11489 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11490 # as well as any symbol that contains `d'. 11491 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11492 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11493 # platforms (ab)use it in PIC code, but their linkers get confused if 11494 # the symbol is explicitly referenced. Since portable code cannot 11495 # rely on this symbol name, it's probably fine to never include it in 11496 # preloaded symbol tables. 11497 # Exclude shared library initialization/finalization symbols. 11498 extract_expsyms_cmds= 11499 11500 case $host_os in 11501 cygwin* | mingw* | pw32* | cegcc*) 11502 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11503 # When not using gcc, we currently assume that we are using 11504 # Microsoft Visual C++. 11505 if test "$GCC" != yes; then 11506 with_gnu_ld=no 11507 fi 11508 ;; 11509 interix*) 11510 # we just hope/assume this is gcc and not c89 (= MSVC++) 11511 with_gnu_ld=yes 11512 ;; 11513 openbsd*) 11514 with_gnu_ld=no 11515 ;; 11516 linux* | k*bsd*-gnu | gnu*) 11517 link_all_deplibs=no 11518 ;; 11519 esac 11520 11521 ld_shlibs=yes 11522 11523 # On some targets, GNU ld is compatible enough with the native linker 11524 # that we're better off using the native interface for both. 11525 lt_use_gnu_ld_interface=no 11526 if test "$with_gnu_ld" = yes; then 11527 case $host_os in 11528 aix*) 11529 # The AIX port of GNU ld has always aspired to compatibility 11530 # with the native linker. However, as the warning in the GNU ld 11531 # block says, versions before 2.19.5* couldn't really create working 11532 # shared libraries, regardless of the interface used. 11533 case `$LD -v 2>&1` in 11534 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11535 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11536 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11537 *) 11538 lt_use_gnu_ld_interface=yes 11539 ;; 11540 esac 11541 ;; 11542 *) 11543 lt_use_gnu_ld_interface=yes 11544 ;; 11545 esac 11546 fi 11547 11548 if test "$lt_use_gnu_ld_interface" = yes; then 11549 # If archive_cmds runs LD, not CC, wlarc should be empty 11550 wlarc='${wl}' 11551 11552 # Set some defaults for GNU ld with shared library support. These 11553 # are reset later if shared libraries are not supported. Putting them 11554 # here allows them to be overridden if necessary. 11555 runpath_var=LD_RUN_PATH 11556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11557 export_dynamic_flag_spec='${wl}--export-dynamic' 11558 # ancient GNU ld didn't support --whole-archive et. al. 11559 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11560 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11561 else 11562 whole_archive_flag_spec= 11563 fi 11564 supports_anon_versioning=no 11565 case `$LD -v 2>&1` in 11566 *GNU\ gold*) supports_anon_versioning=yes ;; 11567 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11568 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11569 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11570 *\ 2.11.*) ;; # other 2.11 versions 11571 *) supports_anon_versioning=yes ;; 11572 esac 11573 11574 # See if GNU ld supports shared libraries. 11575 case $host_os in 11576 aix[3-9]*) 11577 # On AIX/PPC, the GNU linker is very broken 11578 if test "$host_cpu" != ia64; then 11579 ld_shlibs=no 11580 cat <<_LT_EOF 1>&2 11581 11582*** Warning: the GNU linker, at least up to release 2.19, is reported 11583*** to be unable to reliably create shared libraries on AIX. 11584*** Therefore, libtool is disabling shared libraries support. If you 11585*** really care for shared libraries, you may want to install binutils 11586*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11587*** You will then need to restart the configuration process. 11588 11589_LT_EOF 11590 fi 11591 ;; 11592 11593 amigaos*) 11594 case $host_cpu in 11595 powerpc) 11596 # see comment about AmigaOS4 .so support 11597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11598 archive_expsym_cmds='' 11599 ;; 11600 m68k) 11601 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)' 11602 hardcode_libdir_flag_spec='-L$libdir' 11603 hardcode_minus_L=yes 11604 ;; 11605 esac 11606 ;; 11607 11608 beos*) 11609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11610 allow_undefined_flag=unsupported 11611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11612 # support --undefined. This deserves some investigation. FIXME 11613 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11614 else 11615 ld_shlibs=no 11616 fi 11617 ;; 11618 11619 cygwin* | mingw* | pw32* | cegcc*) 11620 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11621 # as there is no search path for DLLs. 11622 hardcode_libdir_flag_spec='-L$libdir' 11623 export_dynamic_flag_spec='${wl}--export-all-symbols' 11624 allow_undefined_flag=unsupported 11625 always_export_symbols=no 11626 enable_shared_with_static_runtimes=yes 11627 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' 11628 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11629 11630 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11632 # If the export-symbols file already is a .def file (1st line 11633 # is EXPORTS), use it as is; otherwise, prepend... 11634 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11635 cp $export_symbols $output_objdir/$soname.def; 11636 else 11637 echo EXPORTS > $output_objdir/$soname.def; 11638 cat $export_symbols >> $output_objdir/$soname.def; 11639 fi~ 11640 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11641 else 11642 ld_shlibs=no 11643 fi 11644 ;; 11645 11646 haiku*) 11647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11648 link_all_deplibs=yes 11649 ;; 11650 11651 interix[3-9]*) 11652 hardcode_direct=no 11653 hardcode_shlibpath_var=no 11654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11655 export_dynamic_flag_spec='${wl}-E' 11656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11657 # Instead, shared libraries are loaded at an image base (0x10000000 by 11658 # default) and relocated if they conflict, which is a slow very memory 11659 # consuming and fragmenting process. To avoid this, we pick a random, 11660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11661 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11663 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' 11664 ;; 11665 11666 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11667 tmp_diet=no 11668 if test "$host_os" = linux-dietlibc; then 11669 case $cc_basename in 11670 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11671 esac 11672 fi 11673 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11674 && test "$tmp_diet" = no 11675 then 11676 tmp_addflag=' $pic_flag' 11677 tmp_sharedflag='-shared' 11678 case $cc_basename,$host_cpu in 11679 pgcc*) # Portland Group C compiler 11680 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' 11681 tmp_addflag=' $pic_flag' 11682 ;; 11683 pgf77* | pgf90* | pgf95* | pgfortran*) 11684 # Portland Group f77 and f90 compilers 11685 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' 11686 tmp_addflag=' $pic_flag -Mnomain' ;; 11687 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11688 tmp_addflag=' -i_dynamic' ;; 11689 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11690 tmp_addflag=' -i_dynamic -nofor_main' ;; 11691 ifc* | ifort*) # Intel Fortran compiler 11692 tmp_addflag=' -nofor_main' ;; 11693 lf95*) # Lahey Fortran 8.1 11694 whole_archive_flag_spec= 11695 tmp_sharedflag='--shared' ;; 11696 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11697 tmp_sharedflag='-qmkshrobj' 11698 tmp_addflag= ;; 11699 nvcc*) # Cuda Compiler Driver 2.2 11700 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' 11701 compiler_needs_object=yes 11702 ;; 11703 esac 11704 case `$CC -V 2>&1 | sed 5q` in 11705 *Sun\ C*) # Sun C 5.9 11706 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' 11707 compiler_needs_object=yes 11708 tmp_sharedflag='-G' ;; 11709 *Sun\ F*) # Sun Fortran 8.3 11710 tmp_sharedflag='-G' ;; 11711 esac 11712 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11713 11714 if test "x$supports_anon_versioning" = xyes; then 11715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11717 echo "local: *; };" >> $output_objdir/$libname.ver~ 11718 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11719 fi 11720 11721 case $cc_basename in 11722 xlf* | bgf* | bgxlf* | mpixlf*) 11723 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11724 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11725 hardcode_libdir_flag_spec= 11726 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11727 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11728 if test "x$supports_anon_versioning" = xyes; then 11729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11731 echo "local: *; };" >> $output_objdir/$libname.ver~ 11732 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11733 fi 11734 ;; 11735 esac 11736 else 11737 ld_shlibs=no 11738 fi 11739 ;; 11740 11741 netbsd* | netbsdelf*-gnu) 11742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11743 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11744 wlarc= 11745 else 11746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11747 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11748 fi 11749 ;; 11750 11751 solaris*) 11752 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11753 ld_shlibs=no 11754 cat <<_LT_EOF 1>&2 11755 11756*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11757*** create shared libraries on Solaris systems. Therefore, libtool 11758*** is disabling shared libraries support. We urge you to upgrade GNU 11759*** binutils to release 2.9.1 or newer. Another option is to modify 11760*** your PATH or compiler configuration so that the native linker is 11761*** used, and then restart. 11762 11763_LT_EOF 11764 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11766 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11767 else 11768 ld_shlibs=no 11769 fi 11770 ;; 11771 11772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11773 case `$LD -v 2>&1` in 11774 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11775 ld_shlibs=no 11776 cat <<_LT_EOF 1>&2 11777 11778*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11779*** reliably create shared libraries on SCO systems. Therefore, libtool 11780*** is disabling shared libraries support. We urge you to upgrade GNU 11781*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11782*** your PATH or compiler configuration so that the native linker is 11783*** used, and then restart. 11784 11785_LT_EOF 11786 ;; 11787 *) 11788 # For security reasons, it is highly recommended that you always 11789 # use absolute paths for naming shared libraries, and exclude the 11790 # DT_RUNPATH tag from executables and libraries. But doing so 11791 # requires that you compile everything twice, which is a pain. 11792 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11796 else 11797 ld_shlibs=no 11798 fi 11799 ;; 11800 esac 11801 ;; 11802 11803 sunos4*) 11804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11805 wlarc= 11806 hardcode_direct=yes 11807 hardcode_shlibpath_var=no 11808 ;; 11809 11810 *) 11811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11813 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11814 else 11815 ld_shlibs=no 11816 fi 11817 ;; 11818 esac 11819 11820 if test "$ld_shlibs" = no; then 11821 runpath_var= 11822 hardcode_libdir_flag_spec= 11823 export_dynamic_flag_spec= 11824 whole_archive_flag_spec= 11825 fi 11826 else 11827 # PORTME fill in a description of your system's linker (not GNU ld) 11828 case $host_os in 11829 aix3*) 11830 allow_undefined_flag=unsupported 11831 always_export_symbols=yes 11832 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' 11833 # Note: this linker hardcodes the directories in LIBPATH if there 11834 # are no directories specified by -L. 11835 hardcode_minus_L=yes 11836 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11837 # Neither direct hardcoding nor static linking is supported with a 11838 # broken collect2. 11839 hardcode_direct=unsupported 11840 fi 11841 ;; 11842 11843 aix[4-9]*) 11844 if test "$host_cpu" = ia64; then 11845 # On IA64, the linker does run time linking by default, so we don't 11846 # have to do anything special. 11847 aix_use_runtimelinking=no 11848 exp_sym_flag='-Bexport' 11849 no_entry_flag="" 11850 else 11851 # If we're using GNU nm, then we don't want the "-C" option. 11852 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11853 # Also, AIX nm treats weak defined symbols like other global 11854 # defined symbols, whereas GNU nm marks them as "W". 11855 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11856 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11857 else 11858 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11859 fi 11860 aix_use_runtimelinking=no 11861 11862 # Test if we are trying to use run time linking or normal 11863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11864 # need to do runtime linking. 11865 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11866 for ld_flag in $LDFLAGS; do 11867 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11868 aix_use_runtimelinking=yes 11869 break 11870 fi 11871 done 11872 ;; 11873 esac 11874 11875 exp_sym_flag='-bexport' 11876 no_entry_flag='-bnoentry' 11877 fi 11878 11879 # When large executables or shared objects are built, AIX ld can 11880 # have problems creating the table of contents. If linking a library 11881 # or program results in "error TOC overflow" add -mminimal-toc to 11882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11884 11885 archive_cmds='' 11886 hardcode_direct=yes 11887 hardcode_direct_absolute=yes 11888 hardcode_libdir_separator=':' 11889 link_all_deplibs=yes 11890 file_list_spec='${wl}-f,' 11891 11892 if test "$GCC" = yes; then 11893 case $host_os in aix4.[012]|aix4.[012].*) 11894 # We only want to do this on AIX 4.2 and lower, the check 11895 # below for broken collect2 doesn't work under 4.3+ 11896 collect2name=`${CC} -print-prog-name=collect2` 11897 if test -f "$collect2name" && 11898 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11899 then 11900 # We have reworked collect2 11901 : 11902 else 11903 # We have old collect2 11904 hardcode_direct=unsupported 11905 # It fails to find uninstalled libraries when the uninstalled 11906 # path is not listed in the libpath. Setting hardcode_minus_L 11907 # to unsupported forces relinking 11908 hardcode_minus_L=yes 11909 hardcode_libdir_flag_spec='-L$libdir' 11910 hardcode_libdir_separator= 11911 fi 11912 ;; 11913 esac 11914 shared_flag='-shared' 11915 if test "$aix_use_runtimelinking" = yes; then 11916 shared_flag="$shared_flag "'${wl}-G' 11917 fi 11918 link_all_deplibs=no 11919 else 11920 # not using gcc 11921 if test "$host_cpu" = ia64; then 11922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11923 # chokes on -Wl,-G. The following line is correct: 11924 shared_flag='-G' 11925 else 11926 if test "$aix_use_runtimelinking" = yes; then 11927 shared_flag='${wl}-G' 11928 else 11929 shared_flag='${wl}-bM:SRE' 11930 fi 11931 fi 11932 fi 11933 11934 export_dynamic_flag_spec='${wl}-bexpall' 11935 # It seems that -bexpall does not export symbols beginning with 11936 # underscore (_), so it is better to generate a list of symbols to export. 11937 always_export_symbols=yes 11938 if test "$aix_use_runtimelinking" = yes; then 11939 # Warning - without using the other runtime loading flags (-brtl), 11940 # -berok will link without error, but may produce a broken library. 11941 allow_undefined_flag='-berok' 11942 # Determine the default libpath from the value encoded in an 11943 # empty executable. 11944 if test "${lt_cv_aix_libpath+set}" = set; then 11945 aix_libpath=$lt_cv_aix_libpath 11946else 11947 if ${lt_cv_aix_libpath_+:} false; then : 11948 $as_echo_n "(cached) " >&6 11949else 11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11951/* end confdefs.h. */ 11952 11953int main (void) 11954{ 11955 11956 ; 11957 return 0; 11958} 11959_ACEOF 11960if ac_fn_c_try_link "$LINENO"; then : 11961 11962 lt_aix_libpath_sed=' 11963 /Import File Strings/,/^$/ { 11964 /^0/ { 11965 s/^0 *\([^ ]*\) *$/\1/ 11966 p 11967 } 11968 }' 11969 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11970 # Check for a 64-bit object if we didn't find anything. 11971 if test -z "$lt_cv_aix_libpath_"; then 11972 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11973 fi 11974fi 11975rm -f core conftest.err conftest.$ac_objext \ 11976 conftest$ac_exeext conftest.$ac_ext 11977 if test -z "$lt_cv_aix_libpath_"; then 11978 lt_cv_aix_libpath_="/usr/lib:/lib" 11979 fi 11980 11981fi 11982 11983 aix_libpath=$lt_cv_aix_libpath_ 11984fi 11985 11986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11987 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11988 else 11989 if test "$host_cpu" = ia64; then 11990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11991 allow_undefined_flag="-z nodefs" 11992 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" 11993 else 11994 # Determine the default libpath from the value encoded in an 11995 # empty executable. 11996 if test "${lt_cv_aix_libpath+set}" = set; then 11997 aix_libpath=$lt_cv_aix_libpath 11998else 11999 if ${lt_cv_aix_libpath_+:} false; then : 12000 $as_echo_n "(cached) " >&6 12001else 12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12003/* end confdefs.h. */ 12004 12005int main (void) 12006{ 12007 12008 ; 12009 return 0; 12010} 12011_ACEOF 12012if ac_fn_c_try_link "$LINENO"; then : 12013 12014 lt_aix_libpath_sed=' 12015 /Import File Strings/,/^$/ { 12016 /^0/ { 12017 s/^0 *\([^ ]*\) *$/\1/ 12018 p 12019 } 12020 }' 12021 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12022 # Check for a 64-bit object if we didn't find anything. 12023 if test -z "$lt_cv_aix_libpath_"; then 12024 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12025 fi 12026fi 12027rm -f core conftest.err conftest.$ac_objext \ 12028 conftest$ac_exeext conftest.$ac_ext 12029 if test -z "$lt_cv_aix_libpath_"; then 12030 lt_cv_aix_libpath_="/usr/lib:/lib" 12031 fi 12032 12033fi 12034 12035 aix_libpath=$lt_cv_aix_libpath_ 12036fi 12037 12038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12039 # Warning - without using the other run time loading flags, 12040 # -berok will link without error, but may produce a broken library. 12041 no_undefined_flag=' ${wl}-bernotok' 12042 allow_undefined_flag=' ${wl}-berok' 12043 if test "$with_gnu_ld" = yes; then 12044 # We only use this code for GNU lds that support --whole-archive. 12045 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12046 else 12047 # Exported symbols can be pulled into shared objects from archives 12048 whole_archive_flag_spec='$convenience' 12049 fi 12050 archive_cmds_need_lc=yes 12051 # This is similar to how AIX traditionally builds its shared libraries. 12052 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12053 fi 12054 fi 12055 ;; 12056 12057 amigaos*) 12058 case $host_cpu in 12059 powerpc) 12060 # see comment about AmigaOS4 .so support 12061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12062 archive_expsym_cmds='' 12063 ;; 12064 m68k) 12065 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)' 12066 hardcode_libdir_flag_spec='-L$libdir' 12067 hardcode_minus_L=yes 12068 ;; 12069 esac 12070 ;; 12071 12072 bsdi[45]*) 12073 export_dynamic_flag_spec=-rdynamic 12074 ;; 12075 12076 cygwin* | mingw* | pw32* | cegcc*) 12077 # When not using gcc, we currently assume that we are using 12078 # Microsoft Visual C++. 12079 # hardcode_libdir_flag_spec is actually meaningless, as there is 12080 # no search path for DLLs. 12081 case $cc_basename in 12082 cl*) 12083 # Native MSVC 12084 hardcode_libdir_flag_spec=' ' 12085 allow_undefined_flag=unsupported 12086 always_export_symbols=yes 12087 file_list_spec='@' 12088 # Tell ltmain to make .lib files, not .a files. 12089 libext=lib 12090 # Tell ltmain to make .dll files, not .so files. 12091 shrext_cmds=".dll" 12092 # FIXME: Setting linknames here is a bad hack. 12093 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12095 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12096 else 12097 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12098 fi~ 12099 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12100 linknames=' 12101 # The linker will not automatically build a static lib if we build a DLL. 12102 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12103 enable_shared_with_static_runtimes=yes 12104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12105 # Don't use ranlib 12106 old_postinstall_cmds='chmod 644 $oldlib' 12107 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12108 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12109 case $lt_outputfile in 12110 *.exe|*.EXE) ;; 12111 *) 12112 lt_outputfile="$lt_outputfile.exe" 12113 lt_tool_outputfile="$lt_tool_outputfile.exe" 12114 ;; 12115 esac~ 12116 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12117 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12118 $RM "$lt_outputfile.manifest"; 12119 fi' 12120 ;; 12121 *) 12122 # Assume MSVC wrapper 12123 hardcode_libdir_flag_spec=' ' 12124 allow_undefined_flag=unsupported 12125 # Tell ltmain to make .lib files, not .a files. 12126 libext=lib 12127 # Tell ltmain to make .dll files, not .so files. 12128 shrext_cmds=".dll" 12129 # FIXME: Setting linknames here is a bad hack. 12130 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12131 # The linker will automatically build a .lib file if we build a DLL. 12132 old_archive_from_new_cmds='true' 12133 # FIXME: Should let the user specify the lib program. 12134 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12135 enable_shared_with_static_runtimes=yes 12136 ;; 12137 esac 12138 ;; 12139 12140 darwin* | rhapsody*) 12141 12142 12143 archive_cmds_need_lc=no 12144 hardcode_direct=no 12145 hardcode_automatic=yes 12146 hardcode_shlibpath_var=unsupported 12147 if test "$lt_cv_ld_force_load" = "yes"; then 12148 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\"`' 12149 else 12150 whole_archive_flag_spec='' 12151 fi 12152 link_all_deplibs=yes 12153 allow_undefined_flag="$_lt_dar_allow_undefined" 12154 case $cc_basename in 12155 ifort*) _lt_dar_can_shared=yes ;; 12156 *) _lt_dar_can_shared=$GCC ;; 12157 esac 12158 if test "$_lt_dar_can_shared" = "yes"; then 12159 output_verbose_link_cmd=func_echo_all 12160 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12161 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12162 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}" 12163 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}" 12164 12165 else 12166 ld_shlibs=no 12167 fi 12168 12169 ;; 12170 12171 dgux*) 12172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12173 hardcode_libdir_flag_spec='-L$libdir' 12174 hardcode_shlibpath_var=no 12175 ;; 12176 12177 freebsd1*) 12178 ld_shlibs=no 12179 ;; 12180 12181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12182 # support. Future versions do this automatically, but an explicit c++rt0.o 12183 # does not break anything, and helps significantly (at the cost of a little 12184 # extra space). 12185 freebsd2.2*) 12186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12187 hardcode_libdir_flag_spec='-R$libdir' 12188 hardcode_direct=yes 12189 hardcode_shlibpath_var=no 12190 ;; 12191 12192 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12193 freebsd2*) 12194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12195 hardcode_direct=yes 12196 hardcode_minus_L=yes 12197 hardcode_shlibpath_var=no 12198 ;; 12199 12200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12201 freebsd* | dragonfly*) 12202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12203 hardcode_libdir_flag_spec='-R$libdir' 12204 hardcode_direct=yes 12205 hardcode_shlibpath_var=no 12206 ;; 12207 12208 hpux9*) 12209 if test "$GCC" = yes; then 12210 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12211 else 12212 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12213 fi 12214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12215 hardcode_libdir_separator=: 12216 hardcode_direct=yes 12217 12218 # hardcode_minus_L: Not really in the search PATH, 12219 # but as the default location of the library. 12220 hardcode_minus_L=yes 12221 export_dynamic_flag_spec='${wl}-E' 12222 ;; 12223 12224 hpux10*) 12225 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12226 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12227 else 12228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12229 fi 12230 if test "$with_gnu_ld" = no; then 12231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12232 hardcode_libdir_flag_spec_ld='+b $libdir' 12233 hardcode_libdir_separator=: 12234 hardcode_direct=yes 12235 hardcode_direct_absolute=yes 12236 export_dynamic_flag_spec='${wl}-E' 12237 # hardcode_minus_L: Not really in the search PATH, 12238 # but as the default location of the library. 12239 hardcode_minus_L=yes 12240 fi 12241 ;; 12242 12243 hpux11*) 12244 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12245 case $host_cpu in 12246 hppa*64*) 12247 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12248 ;; 12249 ia64*) 12250 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12251 ;; 12252 *) 12253 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12254 ;; 12255 esac 12256 else 12257 case $host_cpu in 12258 hppa*64*) 12259 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12260 ;; 12261 ia64*) 12262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12263 ;; 12264 *) 12265 12266 # Older versions of the 11.00 compiler do not understand -b yet 12267 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12269$as_echo_n "checking if $CC understands -b... " >&6; } 12270if ${lt_cv_prog_compiler__b+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 lt_cv_prog_compiler__b=no 12274 save_LDFLAGS="$LDFLAGS" 12275 LDFLAGS="$LDFLAGS -b" 12276 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12278 # The linker can only warn and ignore the option if not recognized 12279 # So say no if there are warnings 12280 if test -s conftest.err; then 12281 # Append any errors to the config.log. 12282 cat conftest.err 1>&5 12283 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12285 if diff conftest.exp conftest.er2 >/dev/null; then 12286 lt_cv_prog_compiler__b=yes 12287 fi 12288 else 12289 lt_cv_prog_compiler__b=yes 12290 fi 12291 fi 12292 $RM -r conftest* 12293 LDFLAGS="$save_LDFLAGS" 12294 12295fi 12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12297$as_echo "$lt_cv_prog_compiler__b" >&6; } 12298 12299if test x"$lt_cv_prog_compiler__b" = xyes; then 12300 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12301else 12302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12303fi 12304 12305 ;; 12306 esac 12307 fi 12308 if test "$with_gnu_ld" = no; then 12309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12310 hardcode_libdir_separator=: 12311 12312 case $host_cpu in 12313 hppa*64*|ia64*) 12314 hardcode_direct=no 12315 hardcode_shlibpath_var=no 12316 ;; 12317 *) 12318 hardcode_direct=yes 12319 hardcode_direct_absolute=yes 12320 export_dynamic_flag_spec='${wl}-E' 12321 12322 # hardcode_minus_L: Not really in the search PATH, 12323 # but as the default location of the library. 12324 hardcode_minus_L=yes 12325 ;; 12326 esac 12327 fi 12328 ;; 12329 12330 irix5* | irix6* | nonstopux*) 12331 if test "$GCC" = yes; then 12332 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' 12333 # Try to use the -exported_symbol ld option, if it does not 12334 # work, assume that -exports_file does not work either and 12335 # implicitly export all symbols. 12336 # This should be the same for all languages, so no per-tag cache variable. 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12338$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12339if ${lt_cv_irix_exported_symbol+:} false; then : 12340 $as_echo_n "(cached) " >&6 12341else 12342 save_LDFLAGS="$LDFLAGS" 12343 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12345/* end confdefs.h. */ 12346int foo (void) { return 0; } 12347_ACEOF 12348if ac_fn_c_try_link "$LINENO"; then : 12349 lt_cv_irix_exported_symbol=yes 12350else 12351 lt_cv_irix_exported_symbol=no 12352fi 12353rm -f core conftest.err conftest.$ac_objext \ 12354 conftest$ac_exeext conftest.$ac_ext 12355 LDFLAGS="$save_LDFLAGS" 12356fi 12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12358$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12359 if test "$lt_cv_irix_exported_symbol" = yes; then 12360 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' 12361 fi 12362 else 12363 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' 12364 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' 12365 fi 12366 archive_cmds_need_lc='no' 12367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12368 hardcode_libdir_separator=: 12369 inherit_rpath=yes 12370 link_all_deplibs=yes 12371 ;; 12372 12373 netbsd* | netbsdelf*-gnu) 12374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12376 else 12377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12378 fi 12379 hardcode_libdir_flag_spec='-R$libdir' 12380 hardcode_direct=yes 12381 hardcode_shlibpath_var=no 12382 ;; 12383 12384 newsos6) 12385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12386 hardcode_direct=yes 12387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12388 hardcode_libdir_separator=: 12389 hardcode_shlibpath_var=no 12390 ;; 12391 12392 *nto* | *qnx*) 12393 ;; 12394 12395 openbsd*) 12396 if test -f /usr/libexec/ld.so; then 12397 hardcode_direct=yes 12398 hardcode_shlibpath_var=no 12399 hardcode_direct_absolute=yes 12400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12402 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12404 export_dynamic_flag_spec='${wl}-E' 12405 else 12406 case $host_os in 12407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12409 hardcode_libdir_flag_spec='-R$libdir' 12410 ;; 12411 *) 12412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12414 ;; 12415 esac 12416 fi 12417 else 12418 ld_shlibs=no 12419 fi 12420 ;; 12421 12422 os2*) 12423 hardcode_libdir_flag_spec='-L$libdir' 12424 hardcode_minus_L=yes 12425 allow_undefined_flag=unsupported 12426 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12427 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12428 ;; 12429 12430 osf3*) 12431 if test "$GCC" = yes; then 12432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12433 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' 12434 else 12435 allow_undefined_flag=' -expect_unresolved \*' 12436 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' 12437 fi 12438 archive_cmds_need_lc='no' 12439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12440 hardcode_libdir_separator=: 12441 ;; 12442 12443 osf4* | osf5*) # as osf3* with the addition of -msym flag 12444 if test "$GCC" = yes; then 12445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12446 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' 12447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12448 else 12449 allow_undefined_flag=' -expect_unresolved \*' 12450 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' 12451 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~ 12452 $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' 12453 12454 # Both c and cxx compiler support -rpath directly 12455 hardcode_libdir_flag_spec='-rpath $libdir' 12456 fi 12457 archive_cmds_need_lc='no' 12458 hardcode_libdir_separator=: 12459 ;; 12460 12461 solaris*) 12462 no_undefined_flag=' -z defs' 12463 if test "$GCC" = yes; then 12464 wlarc='${wl}' 12465 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12467 $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' 12468 else 12469 case `$CC -V 2>&1` in 12470 *"Compilers 5.0"*) 12471 wlarc='' 12472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12475 ;; 12476 *) 12477 wlarc='${wl}' 12478 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12480 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12481 ;; 12482 esac 12483 fi 12484 hardcode_libdir_flag_spec='-R$libdir' 12485 hardcode_shlibpath_var=no 12486 case $host_os in 12487 solaris2.[0-5] | solaris2.[0-5].*) ;; 12488 *) 12489 # The compiler driver will combine and reorder linker options, 12490 # but understands `-z linker_flag'. GCC discards it without `$wl', 12491 # but is careful enough not to reorder. 12492 # Supported since Solaris 2.6 (maybe 2.5.1?) 12493 if test "$GCC" = yes; then 12494 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12495 else 12496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12497 fi 12498 ;; 12499 esac 12500 link_all_deplibs=yes 12501 ;; 12502 12503 sunos4*) 12504 if test "x$host_vendor" = xsequent; then 12505 # Use $CC to link under sequent, because it throws in some extra .o 12506 # files that make .init and .fini sections work. 12507 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12508 else 12509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12510 fi 12511 hardcode_libdir_flag_spec='-L$libdir' 12512 hardcode_direct=yes 12513 hardcode_minus_L=yes 12514 hardcode_shlibpath_var=no 12515 ;; 12516 12517 sysv4) 12518 case $host_vendor in 12519 sni) 12520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12521 hardcode_direct=yes # is this really true??? 12522 ;; 12523 siemens) 12524 ## LD is ld it makes a PLAMLIB 12525 ## CC just makes a GrossModule. 12526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12527 reload_cmds='$CC -r -o $output$reload_objs' 12528 hardcode_direct=no 12529 ;; 12530 motorola) 12531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12533 ;; 12534 esac 12535 runpath_var='LD_RUN_PATH' 12536 hardcode_shlibpath_var=no 12537 ;; 12538 12539 sysv4.3*) 12540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12541 hardcode_shlibpath_var=no 12542 export_dynamic_flag_spec='-Bexport' 12543 ;; 12544 12545 sysv4*MP*) 12546 if test -d /usr/nec; then 12547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12548 hardcode_shlibpath_var=no 12549 runpath_var=LD_RUN_PATH 12550 hardcode_runpath_var=yes 12551 ld_shlibs=yes 12552 fi 12553 ;; 12554 12555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12556 no_undefined_flag='${wl}-z,text' 12557 archive_cmds_need_lc=no 12558 hardcode_shlibpath_var=no 12559 runpath_var='LD_RUN_PATH' 12560 12561 if test "$GCC" = yes; then 12562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12564 else 12565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12567 fi 12568 ;; 12569 12570 sysv5* | sco3.2v5* | sco5v6*) 12571 # Note: We can NOT use -z defs as we might desire, because we do not 12572 # link with -lc, and that would cause any symbols used from libc to 12573 # always be unresolved, which means just about no library would 12574 # ever link correctly. If we're not using GNU ld we use -z text 12575 # though, which does catch some bad symbols but isn't as heavy-handed 12576 # as -z defs. 12577 no_undefined_flag='${wl}-z,text' 12578 allow_undefined_flag='${wl}-z,nodefs' 12579 archive_cmds_need_lc=no 12580 hardcode_shlibpath_var=no 12581 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12582 hardcode_libdir_separator=':' 12583 link_all_deplibs=yes 12584 export_dynamic_flag_spec='${wl}-Bexport' 12585 runpath_var='LD_RUN_PATH' 12586 12587 if test "$GCC" = yes; then 12588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12590 else 12591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12593 fi 12594 ;; 12595 12596 uts4*) 12597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12598 hardcode_libdir_flag_spec='-L$libdir' 12599 hardcode_shlibpath_var=no 12600 ;; 12601 12602 *) 12603 ld_shlibs=no 12604 ;; 12605 esac 12606 12607 if test x$host_vendor = xsni; then 12608 case $host in 12609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12610 export_dynamic_flag_spec='${wl}-Blargedynsym' 12611 ;; 12612 esac 12613 fi 12614 fi 12615 12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12617$as_echo "$ld_shlibs" >&6; } 12618test "$ld_shlibs" = no && can_build_shared=no 12619 12620with_gnu_ld=$with_gnu_ld 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636# 12637# Do we need to explicitly link libc? 12638# 12639case "x$archive_cmds_need_lc" in 12640x|xyes) 12641 # Assume -lc should be added 12642 archive_cmds_need_lc=yes 12643 12644 if test "$enable_shared" = yes && test "$GCC" = yes; then 12645 case $archive_cmds in 12646 *'~'*) 12647 # FIXME: we may have to deal with multi-command sequences. 12648 ;; 12649 '$CC '*) 12650 # Test whether the compiler implicitly links with -lc since on some 12651 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12652 # to ld, don't add -lc before -lgcc. 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12654$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12655if ${lt_cv_archive_cmds_need_lc+:} false; then : 12656 $as_echo_n "(cached) " >&6 12657else 12658 $RM conftest* 12659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12660 12661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12662 (eval $ac_compile) 2>&5 12663 ac_status=$? 12664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12665 test $ac_status = 0; } 2>conftest.err; then 12666 soname=conftest 12667 lib=conftest 12668 libobjs=conftest.$ac_objext 12669 deplibs= 12670 wl=$lt_prog_compiler_wl 12671 pic_flag=$lt_prog_compiler_pic 12672 compiler_flags=-v 12673 linker_flags=-v 12674 verstring= 12675 output_objdir=. 12676 libname=conftest 12677 lt_save_allow_undefined_flag=$allow_undefined_flag 12678 allow_undefined_flag= 12679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12681 ac_status=$? 12682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12683 test $ac_status = 0; } 12684 then 12685 lt_cv_archive_cmds_need_lc=no 12686 else 12687 lt_cv_archive_cmds_need_lc=yes 12688 fi 12689 allow_undefined_flag=$lt_save_allow_undefined_flag 12690 else 12691 cat conftest.err 1>&5 12692 fi 12693 $RM conftest* 12694 12695fi 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12697$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12698 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12699 ;; 12700 esac 12701 fi 12702 ;; 12703esac 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12862$as_echo_n "checking dynamic linker characteristics... " >&6; } 12863 12864if test "$GCC" = yes; then 12865 case $host_os in 12866 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12867 *) lt_awk_arg="/^libraries:/" ;; 12868 esac 12869 case $host_os in 12870 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12871 *) lt_sed_strip_eq="s,=/,/,g" ;; 12872 esac 12873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12874 case $lt_search_path_spec in 12875 *\;*) 12876 # if the path contains ";" then we assume it to be the separator 12877 # otherwise default to the standard path separator (i.e. ":") - it is 12878 # assumed that no part of a normal pathname contains ";" but that should 12879 # okay in the real world where ";" in dirpaths is itself problematic. 12880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12881 ;; 12882 *) 12883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12884 ;; 12885 esac 12886 # Ok, now we have the path, separated by spaces, we can step through it 12887 # and add multilib dir if necessary. 12888 lt_tmp_lt_search_path_spec= 12889 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12890 for lt_sys_path in $lt_search_path_spec; do 12891 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12893 else 12894 test -d "$lt_sys_path" && \ 12895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12896 fi 12897 done 12898 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12899BEGIN {RS=" "; FS="/|\n";} { 12900 lt_foo=""; 12901 lt_count=0; 12902 for (lt_i = NF; lt_i > 0; lt_i--) { 12903 if ($lt_i != "" && $lt_i != ".") { 12904 if ($lt_i == "..") { 12905 lt_count++; 12906 } else { 12907 if (lt_count == 0) { 12908 lt_foo="/" $lt_i lt_foo; 12909 } else { 12910 lt_count--; 12911 } 12912 } 12913 } 12914 } 12915 if (lt_foo != "") { lt_freq[lt_foo]++; } 12916 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12917}'` 12918 # AWK program above erroneously prepends '/' to C:/dos/paths 12919 # for these hosts. 12920 case $host_os in 12921 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12922 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12923 esac 12924 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12925else 12926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12927fi 12928library_names_spec= 12929libname_spec='lib$name' 12930soname_spec= 12931shrext_cmds=".so" 12932postinstall_cmds= 12933postuninstall_cmds= 12934finish_cmds= 12935finish_eval= 12936shlibpath_var= 12937shlibpath_overrides_runpath=unknown 12938version_type=none 12939dynamic_linker="$host_os ld.so" 12940sys_lib_dlsearch_path_spec="/lib /usr/lib" 12941need_lib_prefix=unknown 12942hardcode_into_libs=no 12943 12944# when you set need_version to no, make sure it does not cause -set_version 12945# flags to be left without arguments 12946need_version=unknown 12947 12948case $host_os in 12949aix3*) 12950 version_type=linux 12951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12952 shlibpath_var=LIBPATH 12953 12954 # AIX 3 has no versioning support, so we append a major version to the name. 12955 soname_spec='${libname}${release}${shared_ext}$major' 12956 ;; 12957 12958aix[4-9]*) 12959 version_type=linux 12960 need_lib_prefix=no 12961 need_version=no 12962 hardcode_into_libs=yes 12963 if test "$host_cpu" = ia64; then 12964 # AIX 5 supports IA64 12965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12966 shlibpath_var=LD_LIBRARY_PATH 12967 else 12968 # With GCC up to 2.95.x, collect2 would create an import file 12969 # for dependence libraries. The import file would start with 12970 # the line `#! .'. This would cause the generated library to 12971 # depend on `.', always an invalid library. This was fixed in 12972 # development snapshots of GCC prior to 3.0. 12973 case $host_os in 12974 aix4 | aix4.[01] | aix4.[01].*) 12975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12976 echo ' yes ' 12977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12978 : 12979 else 12980 can_build_shared=no 12981 fi 12982 ;; 12983 esac 12984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12985 # soname into executable. Probably we can add versioning support to 12986 # collect2, so additional links can be useful in future. 12987 if test "$aix_use_runtimelinking" = yes; then 12988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12989 # instead of lib<name>.a to let people know that these are not 12990 # typical AIX shared libraries. 12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12992 else 12993 # We preserve .a as extension for shared libraries through AIX4.2 12994 # and later when we are not doing run time linking. 12995 library_names_spec='${libname}${release}.a $libname.a' 12996 soname_spec='${libname}${release}${shared_ext}$major' 12997 fi 12998 shlibpath_var=LIBPATH 12999 fi 13000 ;; 13001 13002amigaos*) 13003 case $host_cpu in 13004 powerpc) 13005 # Since July 2007 AmigaOS4 officially supports .so libraries. 13006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13008 ;; 13009 m68k) 13010 library_names_spec='$libname.ixlibrary $libname.a' 13011 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13012 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13013 ;; 13014 esac 13015 ;; 13016 13017beos*) 13018 library_names_spec='${libname}${shared_ext}' 13019 dynamic_linker="$host_os ld.so" 13020 shlibpath_var=LIBRARY_PATH 13021 ;; 13022 13023bsdi[45]*) 13024 version_type=linux 13025 need_version=no 13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13027 soname_spec='${libname}${release}${shared_ext}$major' 13028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13029 shlibpath_var=LD_LIBRARY_PATH 13030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13032 # the default ld.so.conf also contains /usr/contrib/lib and 13033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13034 # libtool to hard-code these into programs 13035 ;; 13036 13037cygwin* | mingw* | pw32* | cegcc*) 13038 version_type=windows 13039 shrext_cmds=".dll" 13040 need_version=no 13041 need_lib_prefix=no 13042 13043 case $GCC,$cc_basename in 13044 yes,*) 13045 # gcc 13046 library_names_spec='$libname.dll.a' 13047 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13048 postinstall_cmds='base_file=`basename \${file}`~ 13049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13050 dldir=$destdir/`dirname \$dlpath`~ 13051 test -d \$dldir || mkdir -p \$dldir~ 13052 $install_prog $dir/$dlname \$dldir/$dlname~ 13053 chmod a+x \$dldir/$dlname~ 13054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13056 fi' 13057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13058 dlpath=$dir/\$dldll~ 13059 $RM \$dlpath' 13060 shlibpath_overrides_runpath=yes 13061 13062 case $host_os in 13063 cygwin*) 13064 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13066 13067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13068 ;; 13069 mingw* | cegcc*) 13070 # MinGW DLLs use traditional 'lib' prefix 13071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13072 ;; 13073 pw32*) 13074 # pw32 DLLs use 'pw' prefix rather than 'lib' 13075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13076 ;; 13077 esac 13078 dynamic_linker='Win32 ld.exe' 13079 ;; 13080 13081 *,cl*) 13082 # Native MSVC 13083 libname_spec='$name' 13084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13085 library_names_spec='${libname}.dll.lib' 13086 13087 case $build_os in 13088 mingw*) 13089 sys_lib_search_path_spec= 13090 lt_save_ifs=$IFS 13091 IFS=';' 13092 for lt_path in $LIB 13093 do 13094 IFS=$lt_save_ifs 13095 # Let DOS variable expansion print the short 8.3 style file name. 13096 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13097 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13098 done 13099 IFS=$lt_save_ifs 13100 # Convert to MSYS style. 13101 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13102 ;; 13103 cygwin*) 13104 # Convert to unix form, then to dos form, then back to unix form 13105 # but this time dos style (no spaces!) so that the unix form looks 13106 # like /cygdrive/c/PROGRA~1:/cygdr... 13107 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13108 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13109 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13110 ;; 13111 *) 13112 sys_lib_search_path_spec="$LIB" 13113 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13114 # It is most probably a Windows format PATH. 13115 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13116 else 13117 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13118 fi 13119 # FIXME: find the short name or the path components, as spaces are 13120 # common. (e.g. "Program Files" -> "PROGRA~1") 13121 ;; 13122 esac 13123 13124 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13125 postinstall_cmds='base_file=`basename \${file}`~ 13126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13127 dldir=$destdir/`dirname \$dlpath`~ 13128 test -d \$dldir || mkdir -p \$dldir~ 13129 $install_prog $dir/$dlname \$dldir/$dlname' 13130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13131 dlpath=$dir/\$dldll~ 13132 $RM \$dlpath' 13133 shlibpath_overrides_runpath=yes 13134 dynamic_linker='Win32 link.exe' 13135 ;; 13136 13137 *) 13138 # Assume MSVC wrapper 13139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13140 dynamic_linker='Win32 ld.exe' 13141 ;; 13142 esac 13143 # FIXME: first we should search . and the directory the executable is in 13144 shlibpath_var=PATH 13145 ;; 13146 13147darwin* | rhapsody*) 13148 dynamic_linker="$host_os dyld" 13149 version_type=darwin 13150 need_lib_prefix=no 13151 need_version=no 13152 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13153 soname_spec='${libname}${release}${major}$shared_ext' 13154 shlibpath_overrides_runpath=yes 13155 shlibpath_var=DYLD_LIBRARY_PATH 13156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13157 13158 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13160 ;; 13161 13162dgux*) 13163 version_type=linux 13164 need_lib_prefix=no 13165 need_version=no 13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13167 soname_spec='${libname}${release}${shared_ext}$major' 13168 shlibpath_var=LD_LIBRARY_PATH 13169 ;; 13170 13171freebsd1*) 13172 dynamic_linker=no 13173 ;; 13174 13175freebsd* | dragonfly*) 13176 # DragonFly does not have aout. When/if they implement a new 13177 # versioning mechanism, adjust this. 13178 if test -x /usr/bin/objformat; then 13179 objformat=`/usr/bin/objformat` 13180 else 13181 case $host_os in 13182 freebsd[123]*) objformat=aout ;; 13183 *) objformat=elf ;; 13184 esac 13185 fi 13186 version_type=freebsd-$objformat 13187 case $version_type in 13188 freebsd-elf*) 13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13190 need_version=no 13191 need_lib_prefix=no 13192 ;; 13193 freebsd-*) 13194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13195 need_version=yes 13196 ;; 13197 esac 13198 shlibpath_var=LD_LIBRARY_PATH 13199 case $host_os in 13200 freebsd2*) 13201 shlibpath_overrides_runpath=yes 13202 ;; 13203 freebsd3.[01]* | freebsdelf3.[01]*) 13204 shlibpath_overrides_runpath=yes 13205 hardcode_into_libs=yes 13206 ;; 13207 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13208 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13209 shlibpath_overrides_runpath=no 13210 hardcode_into_libs=yes 13211 ;; 13212 *) # from 4.6 on, and DragonFly 13213 shlibpath_overrides_runpath=yes 13214 hardcode_into_libs=yes 13215 ;; 13216 esac 13217 ;; 13218 13219gnu*) 13220 version_type=linux 13221 need_lib_prefix=no 13222 need_version=no 13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13224 soname_spec='${libname}${release}${shared_ext}$major' 13225 shlibpath_var=LD_LIBRARY_PATH 13226 shlibpath_overrides_runpath=no 13227 hardcode_into_libs=yes 13228 ;; 13229 13230haiku*) 13231 version_type=linux 13232 need_lib_prefix=no 13233 need_version=no 13234 dynamic_linker="$host_os runtime_loader" 13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13236 soname_spec='${libname}${release}${shared_ext}$major' 13237 shlibpath_var=LIBRARY_PATH 13238 shlibpath_overrides_runpath=yes 13239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13240 hardcode_into_libs=yes 13241 ;; 13242 13243hpux9* | hpux10* | hpux11*) 13244 # Give a soname corresponding to the major version so that dld.sl refuses to 13245 # link against other versions. 13246 version_type=sunos 13247 need_lib_prefix=no 13248 need_version=no 13249 case $host_cpu in 13250 ia64*) 13251 shrext_cmds='.so' 13252 hardcode_into_libs=yes 13253 dynamic_linker="$host_os dld.so" 13254 shlibpath_var=LD_LIBRARY_PATH 13255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13257 soname_spec='${libname}${release}${shared_ext}$major' 13258 if test "X$HPUX_IA64_MODE" = X32; then 13259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13260 else 13261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13262 fi 13263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13264 ;; 13265 hppa*64*) 13266 shrext_cmds='.sl' 13267 hardcode_into_libs=yes 13268 dynamic_linker="$host_os dld.sl" 13269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13272 soname_spec='${libname}${release}${shared_ext}$major' 13273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13275 ;; 13276 *) 13277 shrext_cmds='.sl' 13278 dynamic_linker="$host_os dld.sl" 13279 shlibpath_var=SHLIB_PATH 13280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13282 soname_spec='${libname}${release}${shared_ext}$major' 13283 ;; 13284 esac 13285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13286 postinstall_cmds='chmod 555 $lib' 13287 # or fails outright, so override atomically: 13288 install_override_mode=555 13289 ;; 13290 13291interix[3-9]*) 13292 version_type=linux 13293 need_lib_prefix=no 13294 need_version=no 13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13296 soname_spec='${libname}${release}${shared_ext}$major' 13297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13298 shlibpath_var=LD_LIBRARY_PATH 13299 shlibpath_overrides_runpath=no 13300 hardcode_into_libs=yes 13301 ;; 13302 13303irix5* | irix6* | nonstopux*) 13304 case $host_os in 13305 nonstopux*) version_type=nonstopux ;; 13306 *) 13307 if test "$lt_cv_prog_gnu_ld" = yes; then 13308 version_type=linux 13309 else 13310 version_type=irix 13311 fi ;; 13312 esac 13313 need_lib_prefix=no 13314 need_version=no 13315 soname_spec='${libname}${release}${shared_ext}$major' 13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13317 case $host_os in 13318 irix5* | nonstopux*) 13319 libsuff= shlibsuff= 13320 ;; 13321 *) 13322 case $LD in # libtool.m4 will add one of these switches to LD 13323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13324 libsuff= shlibsuff= libmagic=32-bit;; 13325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13326 libsuff=32 shlibsuff=N32 libmagic=N32;; 13327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13328 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13329 *) libsuff= shlibsuff= libmagic=never-match;; 13330 esac 13331 ;; 13332 esac 13333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13334 shlibpath_overrides_runpath=no 13335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13337 hardcode_into_libs=yes 13338 ;; 13339 13340# No shared lib support for Linux oldld, aout, or coff. 13341linux*oldld* | linux*aout* | linux*coff*) 13342 dynamic_linker=no 13343 ;; 13344 13345# This must be Linux ELF. 13346linux* | k*bsd*-gnu | kopensolaris*-gnu) 13347 version_type=linux 13348 need_lib_prefix=no 13349 need_version=no 13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13351 soname_spec='${libname}${release}${shared_ext}$major' 13352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13353 shlibpath_var=LD_LIBRARY_PATH 13354 shlibpath_overrides_runpath=no 13355 13356 # Some binutils ld are patched to set DT_RUNPATH 13357 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359else 13360 lt_cv_shlibpath_overrides_runpath=no 13361 save_LDFLAGS=$LDFLAGS 13362 save_libdir=$libdir 13363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13366/* end confdefs.h. */ 13367 13368int main (void) 13369{ 13370 13371 ; 13372 return 0; 13373} 13374_ACEOF 13375if ac_fn_c_try_link "$LINENO"; then : 13376 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13377 lt_cv_shlibpath_overrides_runpath=yes 13378fi 13379fi 13380rm -f core conftest.err conftest.$ac_objext \ 13381 conftest$ac_exeext conftest.$ac_ext 13382 LDFLAGS=$save_LDFLAGS 13383 libdir=$save_libdir 13384 13385fi 13386 13387 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13388 13389 # This implies no fast_install, which is unacceptable. 13390 # Some rework will be needed to allow for fast_install 13391 # before this can be enabled. 13392 hardcode_into_libs=yes 13393 13394 # Append ld.so.conf contents to the search path 13395 if test -f /etc/ld.so.conf; then 13396 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' ' '` 13397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13398 fi 13399 13400 # We used to test for /lib/ld.so.1 and disable shared libraries on 13401 # powerpc, because MkLinux only supported shared libraries with the 13402 # GNU dynamic linker. Since this was broken with cross compilers, 13403 # most powerpc-linux boxes support dynamic linking these days and 13404 # people can always --disable-shared, the test was removed, and we 13405 # assume the GNU/Linux dynamic linker is in use. 13406 dynamic_linker='GNU/Linux ld.so' 13407 ;; 13408 13409netbsdelf*-gnu) 13410 version_type=linux 13411 need_lib_prefix=no 13412 need_version=no 13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13414 soname_spec='${libname}${release}${shared_ext}$major' 13415 shlibpath_var=LD_LIBRARY_PATH 13416 shlibpath_overrides_runpath=no 13417 hardcode_into_libs=yes 13418 dynamic_linker='NetBSD ld.elf_so' 13419 ;; 13420 13421netbsd*) 13422 version_type=sunos 13423 need_lib_prefix=no 13424 need_version=no 13425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13428 dynamic_linker='NetBSD (a.out) ld.so' 13429 else 13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13431 soname_spec='${libname}${release}${shared_ext}$major' 13432 dynamic_linker='NetBSD ld.elf_so' 13433 fi 13434 shlibpath_var=LD_LIBRARY_PATH 13435 shlibpath_overrides_runpath=yes 13436 hardcode_into_libs=yes 13437 ;; 13438 13439newsos6) 13440 version_type=linux 13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13442 shlibpath_var=LD_LIBRARY_PATH 13443 shlibpath_overrides_runpath=yes 13444 ;; 13445 13446*nto* | *qnx*) 13447 version_type=qnx 13448 need_lib_prefix=no 13449 need_version=no 13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13451 soname_spec='${libname}${release}${shared_ext}$major' 13452 shlibpath_var=LD_LIBRARY_PATH 13453 shlibpath_overrides_runpath=no 13454 hardcode_into_libs=yes 13455 dynamic_linker='ldqnx.so' 13456 ;; 13457 13458openbsd*) 13459 version_type=sunos 13460 sys_lib_dlsearch_path_spec="/usr/lib" 13461 need_lib_prefix=no 13462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13463 case $host_os in 13464 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13465 *) need_version=no ;; 13466 esac 13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13469 shlibpath_var=LD_LIBRARY_PATH 13470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13471 case $host_os in 13472 openbsd2.[89] | openbsd2.[89].*) 13473 shlibpath_overrides_runpath=no 13474 ;; 13475 *) 13476 shlibpath_overrides_runpath=yes 13477 ;; 13478 esac 13479 else 13480 shlibpath_overrides_runpath=yes 13481 fi 13482 ;; 13483 13484os2*) 13485 libname_spec='$name' 13486 shrext_cmds=".dll" 13487 need_lib_prefix=no 13488 library_names_spec='$libname${shared_ext} $libname.a' 13489 dynamic_linker='OS/2 ld.exe' 13490 shlibpath_var=LIBPATH 13491 ;; 13492 13493osf3* | osf4* | osf5*) 13494 version_type=osf 13495 need_lib_prefix=no 13496 need_version=no 13497 soname_spec='${libname}${release}${shared_ext}$major' 13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13499 shlibpath_var=LD_LIBRARY_PATH 13500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13502 ;; 13503 13504rdos*) 13505 dynamic_linker=no 13506 ;; 13507 13508solaris*) 13509 version_type=linux 13510 need_lib_prefix=no 13511 need_version=no 13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13513 soname_spec='${libname}${release}${shared_ext}$major' 13514 shlibpath_var=LD_LIBRARY_PATH 13515 shlibpath_overrides_runpath=yes 13516 hardcode_into_libs=yes 13517 # ldd complains unless libraries are executable 13518 postinstall_cmds='chmod +x $lib' 13519 ;; 13520 13521sunos4*) 13522 version_type=sunos 13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13524 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13525 shlibpath_var=LD_LIBRARY_PATH 13526 shlibpath_overrides_runpath=yes 13527 if test "$with_gnu_ld" = yes; then 13528 need_lib_prefix=no 13529 fi 13530 need_version=yes 13531 ;; 13532 13533sysv4 | sysv4.3*) 13534 version_type=linux 13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13536 soname_spec='${libname}${release}${shared_ext}$major' 13537 shlibpath_var=LD_LIBRARY_PATH 13538 case $host_vendor in 13539 sni) 13540 shlibpath_overrides_runpath=no 13541 need_lib_prefix=no 13542 runpath_var=LD_RUN_PATH 13543 ;; 13544 siemens) 13545 need_lib_prefix=no 13546 ;; 13547 motorola) 13548 need_lib_prefix=no 13549 need_version=no 13550 shlibpath_overrides_runpath=no 13551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13552 ;; 13553 esac 13554 ;; 13555 13556sysv4*MP*) 13557 if test -d /usr/nec ;then 13558 version_type=linux 13559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13560 soname_spec='$libname${shared_ext}.$major' 13561 shlibpath_var=LD_LIBRARY_PATH 13562 fi 13563 ;; 13564 13565sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13566 version_type=freebsd-elf 13567 need_lib_prefix=no 13568 need_version=no 13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13570 soname_spec='${libname}${release}${shared_ext}$major' 13571 shlibpath_var=LD_LIBRARY_PATH 13572 shlibpath_overrides_runpath=yes 13573 hardcode_into_libs=yes 13574 if test "$with_gnu_ld" = yes; then 13575 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13576 else 13577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13578 case $host_os in 13579 sco3.2v5*) 13580 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13581 ;; 13582 esac 13583 fi 13584 sys_lib_dlsearch_path_spec='/usr/lib' 13585 ;; 13586 13587tpf*) 13588 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13589 version_type=linux 13590 need_lib_prefix=no 13591 need_version=no 13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13593 shlibpath_var=LD_LIBRARY_PATH 13594 shlibpath_overrides_runpath=no 13595 hardcode_into_libs=yes 13596 ;; 13597 13598uts4*) 13599 version_type=linux 13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13601 soname_spec='${libname}${release}${shared_ext}$major' 13602 shlibpath_var=LD_LIBRARY_PATH 13603 ;; 13604 13605*) 13606 dynamic_linker=no 13607 ;; 13608esac 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13610$as_echo "$dynamic_linker" >&6; } 13611test "$dynamic_linker" = no && can_build_shared=no 13612 13613variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13614if test "$GCC" = yes; then 13615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13616fi 13617 13618if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13619 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13620fi 13621if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13622 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13623fi 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13717$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13718hardcode_action= 13719if test -n "$hardcode_libdir_flag_spec" || 13720 test -n "$runpath_var" || 13721 test "X$hardcode_automatic" = "Xyes" ; then 13722 13723 # We can hardcode non-existent directories. 13724 if test "$hardcode_direct" != no && 13725 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13726 # have to relink, otherwise we might link with an installed library 13727 # when we should be linking with a yet-to-be-installed one 13728 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13729 test "$hardcode_minus_L" != no; then 13730 # Linking always hardcodes the temporary library directory. 13731 hardcode_action=relink 13732 else 13733 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13734 hardcode_action=immediate 13735 fi 13736else 13737 # We cannot hardcode anything, or else we can only hardcode existing 13738 # directories. 13739 hardcode_action=unsupported 13740fi 13741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13742$as_echo "$hardcode_action" >&6; } 13743 13744if test "$hardcode_action" = relink || 13745 test "$inherit_rpath" = yes; then 13746 # Fast installation is not supported 13747 enable_fast_install=no 13748elif test "$shlibpath_overrides_runpath" = yes || 13749 test "$enable_shared" = no; then 13750 # Fast installation is not necessary 13751 enable_fast_install=needless 13752fi 13753 13754 13755 13756 13757 13758 13759 if test "x$enable_dlopen" != xyes; then 13760 enable_dlopen=unknown 13761 enable_dlopen_self=unknown 13762 enable_dlopen_self_static=unknown 13763else 13764 lt_cv_dlopen=no 13765 lt_cv_dlopen_libs= 13766 13767 case $host_os in 13768 beos*) 13769 lt_cv_dlopen="load_add_on" 13770 lt_cv_dlopen_libs= 13771 lt_cv_dlopen_self=yes 13772 ;; 13773 13774 mingw* | pw32* | cegcc*) 13775 lt_cv_dlopen="LoadLibrary" 13776 lt_cv_dlopen_libs= 13777 ;; 13778 13779 cygwin*) 13780 lt_cv_dlopen="dlopen" 13781 lt_cv_dlopen_libs= 13782 ;; 13783 13784 darwin*) 13785 # if libdl is installed we need to link against it 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13787$as_echo_n "checking for dlopen in -ldl... " >&6; } 13788if ${ac_cv_lib_dl_dlopen+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790else 13791 ac_check_lib_save_LIBS=$LIBS 13792LIBS="-ldl $LIBS" 13793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13794/* end confdefs.h. */ 13795 13796 13797#ifdef __cplusplus 13798extern "C" 13799#endif 13800char dlopen (); 13801int main (void) 13802{ 13803return dlopen (); 13804 ; 13805 return 0; 13806} 13807_ACEOF 13808if ac_fn_c_try_link "$LINENO"; then : 13809 ac_cv_lib_dl_dlopen=yes 13810else 13811 ac_cv_lib_dl_dlopen=no 13812fi 13813rm -f core conftest.err conftest.$ac_objext \ 13814 conftest$ac_exeext conftest.$ac_ext 13815LIBS=$ac_check_lib_save_LIBS 13816fi 13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13818$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13819if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13821else 13822 13823 lt_cv_dlopen="dyld" 13824 lt_cv_dlopen_libs= 13825 lt_cv_dlopen_self=yes 13826 13827fi 13828 13829 ;; 13830 13831 *) 13832 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13833if test "x$ac_cv_func_shl_load" = xyes; then : 13834 lt_cv_dlopen="shl_load" 13835else 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13837$as_echo_n "checking for shl_load in -ldld... " >&6; } 13838if ${ac_cv_lib_dld_shl_load+:} false; then : 13839 $as_echo_n "(cached) " >&6 13840else 13841 ac_check_lib_save_LIBS=$LIBS 13842LIBS="-ldld $LIBS" 13843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13844/* end confdefs.h. */ 13845 13846 13847#ifdef __cplusplus 13848extern "C" 13849#endif 13850char shl_load (); 13851int main (void) 13852{ 13853return shl_load (); 13854 ; 13855 return 0; 13856} 13857_ACEOF 13858if ac_fn_c_try_link "$LINENO"; then : 13859 ac_cv_lib_dld_shl_load=yes 13860else 13861 ac_cv_lib_dld_shl_load=no 13862fi 13863rm -f core conftest.err conftest.$ac_objext \ 13864 conftest$ac_exeext conftest.$ac_ext 13865LIBS=$ac_check_lib_save_LIBS 13866fi 13867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13868$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13869if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13871else 13872 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13873if test "x$ac_cv_func_dlopen" = xyes; then : 13874 lt_cv_dlopen="dlopen" 13875else 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13877$as_echo_n "checking for dlopen in -ldl... " >&6; } 13878if ${ac_cv_lib_dl_dlopen+:} false; then : 13879 $as_echo_n "(cached) " >&6 13880else 13881 ac_check_lib_save_LIBS=$LIBS 13882LIBS="-ldl $LIBS" 13883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884/* end confdefs.h. */ 13885 13886 13887#ifdef __cplusplus 13888extern "C" 13889#endif 13890char dlopen (); 13891int main (void) 13892{ 13893return dlopen (); 13894 ; 13895 return 0; 13896} 13897_ACEOF 13898if ac_fn_c_try_link "$LINENO"; then : 13899 ac_cv_lib_dl_dlopen=yes 13900else 13901 ac_cv_lib_dl_dlopen=no 13902fi 13903rm -f core conftest.err conftest.$ac_objext \ 13904 conftest$ac_exeext conftest.$ac_ext 13905LIBS=$ac_check_lib_save_LIBS 13906fi 13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13908$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13909if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13911else 13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13913$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13914if ${ac_cv_lib_svld_dlopen+:} false; then : 13915 $as_echo_n "(cached) " >&6 13916else 13917 ac_check_lib_save_LIBS=$LIBS 13918LIBS="-lsvld $LIBS" 13919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13920/* end confdefs.h. */ 13921 13922 13923#ifdef __cplusplus 13924extern "C" 13925#endif 13926char dlopen (); 13927int main (void) 13928{ 13929return dlopen (); 13930 ; 13931 return 0; 13932} 13933_ACEOF 13934if ac_fn_c_try_link "$LINENO"; then : 13935 ac_cv_lib_svld_dlopen=yes 13936else 13937 ac_cv_lib_svld_dlopen=no 13938fi 13939rm -f core conftest.err conftest.$ac_objext \ 13940 conftest$ac_exeext conftest.$ac_ext 13941LIBS=$ac_check_lib_save_LIBS 13942fi 13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13944$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13945if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13947else 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13949$as_echo_n "checking for dld_link in -ldld... " >&6; } 13950if ${ac_cv_lib_dld_dld_link+:} false; then : 13951 $as_echo_n "(cached) " >&6 13952else 13953 ac_check_lib_save_LIBS=$LIBS 13954LIBS="-ldld $LIBS" 13955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13956/* end confdefs.h. */ 13957 13958 13959#ifdef __cplusplus 13960extern "C" 13961#endif 13962char dld_link (); 13963int main (void) 13964{ 13965return dld_link (); 13966 ; 13967 return 0; 13968} 13969_ACEOF 13970if ac_fn_c_try_link "$LINENO"; then : 13971 ac_cv_lib_dld_dld_link=yes 13972else 13973 ac_cv_lib_dld_dld_link=no 13974fi 13975rm -f core conftest.err conftest.$ac_objext \ 13976 conftest$ac_exeext conftest.$ac_ext 13977LIBS=$ac_check_lib_save_LIBS 13978fi 13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13980$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13981if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13983fi 13984 13985 13986fi 13987 13988 13989fi 13990 13991 13992fi 13993 13994 13995fi 13996 13997 13998fi 13999 14000 ;; 14001 esac 14002 14003 if test "x$lt_cv_dlopen" != xno; then 14004 enable_dlopen=yes 14005 else 14006 enable_dlopen=no 14007 fi 14008 14009 case $lt_cv_dlopen in 14010 dlopen) 14011 save_CPPFLAGS="$CPPFLAGS" 14012 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14013 14014 save_LDFLAGS="$LDFLAGS" 14015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14016 14017 save_LIBS="$LIBS" 14018 LIBS="$lt_cv_dlopen_libs $LIBS" 14019 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14021$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14022if ${lt_cv_dlopen_self+:} false; then : 14023 $as_echo_n "(cached) " >&6 14024else 14025 if test "$cross_compiling" = yes; then : 14026 lt_cv_dlopen_self=cross 14027else 14028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14029 lt_status=$lt_dlunknown 14030 cat > conftest.$ac_ext <<_LT_EOF 14031#line $LINENO "configure" 14032#include "confdefs.h" 14033 14034#if HAVE_DLFCN_H 14035#include <dlfcn.h> 14036#endif 14037 14038#include <stdio.h> 14039 14040#ifdef RTLD_GLOBAL 14041# define LT_DLGLOBAL RTLD_GLOBAL 14042#else 14043# ifdef DL_GLOBAL 14044# define LT_DLGLOBAL DL_GLOBAL 14045# else 14046# define LT_DLGLOBAL 0 14047# endif 14048#endif 14049 14050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14051 find out it does not work in some platform. */ 14052#ifndef LT_DLLAZY_OR_NOW 14053# ifdef RTLD_LAZY 14054# define LT_DLLAZY_OR_NOW RTLD_LAZY 14055# else 14056# ifdef DL_LAZY 14057# define LT_DLLAZY_OR_NOW DL_LAZY 14058# else 14059# ifdef RTLD_NOW 14060# define LT_DLLAZY_OR_NOW RTLD_NOW 14061# else 14062# ifdef DL_NOW 14063# define LT_DLLAZY_OR_NOW DL_NOW 14064# else 14065# define LT_DLLAZY_OR_NOW 0 14066# endif 14067# endif 14068# endif 14069# endif 14070#endif 14071 14072/* When -fvisbility=hidden is used, assume the code has been annotated 14073 correspondingly for the symbols needed. */ 14074#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14075int fnord () __attribute__((visibility("default"))); 14076#endif 14077 14078int fnord () { return 42; } 14079int main () 14080{ 14081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14082 int status = $lt_dlunknown; 14083 14084 if (self) 14085 { 14086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14087 else 14088 { 14089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14090 else puts (dlerror ()); 14091 } 14092 /* dlclose (self); */ 14093 } 14094 else 14095 puts (dlerror ()); 14096 14097 return status; 14098} 14099_LT_EOF 14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14101 (eval $ac_link) 2>&5 14102 ac_status=$? 14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14105 (./conftest; exit; ) >&5 2>/dev/null 14106 lt_status=$? 14107 case x$lt_status in 14108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14110 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14111 esac 14112 else : 14113 # compilation failed 14114 lt_cv_dlopen_self=no 14115 fi 14116fi 14117rm -fr conftest* 14118 14119 14120fi 14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14122$as_echo "$lt_cv_dlopen_self" >&6; } 14123 14124 if test "x$lt_cv_dlopen_self" = xyes; then 14125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14127$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14128if ${lt_cv_dlopen_self_static+:} false; then : 14129 $as_echo_n "(cached) " >&6 14130else 14131 if test "$cross_compiling" = yes; then : 14132 lt_cv_dlopen_self_static=cross 14133else 14134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14135 lt_status=$lt_dlunknown 14136 cat > conftest.$ac_ext <<_LT_EOF 14137#line $LINENO "configure" 14138#include "confdefs.h" 14139 14140#if HAVE_DLFCN_H 14141#include <dlfcn.h> 14142#endif 14143 14144#include <stdio.h> 14145 14146#ifdef RTLD_GLOBAL 14147# define LT_DLGLOBAL RTLD_GLOBAL 14148#else 14149# ifdef DL_GLOBAL 14150# define LT_DLGLOBAL DL_GLOBAL 14151# else 14152# define LT_DLGLOBAL 0 14153# endif 14154#endif 14155 14156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14157 find out it does not work in some platform. */ 14158#ifndef LT_DLLAZY_OR_NOW 14159# ifdef RTLD_LAZY 14160# define LT_DLLAZY_OR_NOW RTLD_LAZY 14161# else 14162# ifdef DL_LAZY 14163# define LT_DLLAZY_OR_NOW DL_LAZY 14164# else 14165# ifdef RTLD_NOW 14166# define LT_DLLAZY_OR_NOW RTLD_NOW 14167# else 14168# ifdef DL_NOW 14169# define LT_DLLAZY_OR_NOW DL_NOW 14170# else 14171# define LT_DLLAZY_OR_NOW 0 14172# endif 14173# endif 14174# endif 14175# endif 14176#endif 14177 14178/* When -fvisbility=hidden is used, assume the code has been annotated 14179 correspondingly for the symbols needed. */ 14180#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14181int fnord () __attribute__((visibility("default"))); 14182#endif 14183 14184int fnord () { return 42; } 14185int main () 14186{ 14187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14188 int status = $lt_dlunknown; 14189 14190 if (self) 14191 { 14192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14193 else 14194 { 14195 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14196 else puts (dlerror ()); 14197 } 14198 /* dlclose (self); */ 14199 } 14200 else 14201 puts (dlerror ()); 14202 14203 return status; 14204} 14205_LT_EOF 14206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14207 (eval $ac_link) 2>&5 14208 ac_status=$? 14209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14210 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14211 (./conftest; exit; ) >&5 2>/dev/null 14212 lt_status=$? 14213 case x$lt_status in 14214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14216 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14217 esac 14218 else : 14219 # compilation failed 14220 lt_cv_dlopen_self_static=no 14221 fi 14222fi 14223rm -fr conftest* 14224 14225 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14228$as_echo "$lt_cv_dlopen_self_static" >&6; } 14229 fi 14230 14231 CPPFLAGS="$save_CPPFLAGS" 14232 LDFLAGS="$save_LDFLAGS" 14233 LIBS="$save_LIBS" 14234 ;; 14235 esac 14236 14237 case $lt_cv_dlopen_self in 14238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14239 *) enable_dlopen_self=unknown ;; 14240 esac 14241 14242 case $lt_cv_dlopen_self_static in 14243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14244 *) enable_dlopen_self_static=unknown ;; 14245 esac 14246fi 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264striplib= 14265old_striplib= 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14267$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14268if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14270 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14272$as_echo "yes" >&6; } 14273else 14274# FIXME - insert some real tests, host_os isn't really good enough 14275 case $host_os in 14276 darwin*) 14277 if test -n "$STRIP" ; then 14278 striplib="$STRIP -x" 14279 old_striplib="$STRIP -S" 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14281$as_echo "yes" >&6; } 14282 else 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14284$as_echo "no" >&6; } 14285 fi 14286 ;; 14287 *) 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14289$as_echo "no" >&6; } 14290 ;; 14291 esac 14292fi 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 # Report which library types will actually be built 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14307$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14309$as_echo "$can_build_shared" >&6; } 14310 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14312$as_echo_n "checking whether to build shared libraries... " >&6; } 14313 test "$can_build_shared" = "no" && enable_shared=no 14314 14315 # On AIX, shared libraries and static libraries use the same namespace, and 14316 # are all built from PIC. 14317 case $host_os in 14318 aix3*) 14319 test "$enable_shared" = yes && enable_static=no 14320 if test -n "$RANLIB"; then 14321 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14322 postinstall_cmds='$RANLIB $lib' 14323 fi 14324 ;; 14325 14326 aix[4-9]*) 14327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14328 test "$enable_shared" = yes && enable_static=no 14329 fi 14330 ;; 14331 esac 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14333$as_echo "$enable_shared" >&6; } 14334 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14336$as_echo_n "checking whether to build static libraries... " >&6; } 14337 # Make sure either enable_shared or enable_static is yes. 14338 test "$enable_shared" = yes || enable_static=yes 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14340$as_echo "$enable_static" >&6; } 14341 14342 14343 14344 14345fi 14346ac_ext=c 14347ac_cpp='$CPP $CPPFLAGS' 14348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14350ac_compiler_gnu=$ac_cv_c_compiler_gnu 14351 14352CC="$lt_save_CC" 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 ac_config_commands="$ac_config_commands libtool" 14367 14368 14369 14370 14371# Only expand once: 14372 14373 14374 14375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -mimpure-text" >&5 14376$as_echo_n "checking if we need -mimpure-text... " >&6; } 14377mimpure=no 14378case $host in 14379 *-*-solaris2*) 14380 if test "$GCC" = "yes"; then 14381 mimpure="yes" 14382 fi 14383 ;; 14384 *) 14385 ;; 14386esac 14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mimpure" >&5 14388$as_echo "$mimpure" >&6; } 14389 14390 14391if test x$mimpure = xyes; then 14392 MIMPURE_TRUE= 14393 MIMPURE_FALSE='#' 14394else 14395 MIMPURE_TRUE='#' 14396 MIMPURE_FALSE= 14397fi 14398 14399 14400 14401 14402if false; then 14403 STATICLIB_TRUE= 14404 STATICLIB_FALSE='#' 14405else 14406 STATICLIB_TRUE='#' 14407 STATICLIB_FALSE= 14408fi 14409 14410 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need BUILDING_LIBCURL" >&5 14412$as_echo_n "checking if we need BUILDING_LIBCURL... " >&6; } 14413case $host in 14414 *-*-mingw*) 14415 14416$as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h 14417 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14419$as_echo "yes" >&6; } 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CURL_STATICLIB" >&5 14421$as_echo_n "checking if we need CURL_STATICLIB... " >&6; } 14422 if test "X$enable_shared" = "Xno" 14423 then 14424 14425$as_echo "#define CURL_STATICLIB 1" >>confdefs.h 14426 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14428$as_echo "yes" >&6; } 14429 14430 14431if true; then 14432 STATICLIB_TRUE= 14433 STATICLIB_FALSE='#' 14434else 14435 STATICLIB_TRUE='#' 14436 STATICLIB_FALSE= 14437fi 14438 14439 else 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14441$as_echo "no" >&6; } 14442 fi 14443 ;; 14444 *) 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14446$as_echo "no" >&6; } 14447 ;; 14448esac 14449 14450# Determine whether all dependent libraries must be specified when linking 14451if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno" 14452then 14453 REQUIRE_LIB_DEPS=no 14454else 14455 REQUIRE_LIB_DEPS=yes 14456fi 14457 14458 14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 14460$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 14461set x ${MAKE-make} 14462ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 14463if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 14464 $as_echo_n "(cached) " >&6 14465else 14466 cat >conftest.make <<\_ACEOF 14467SHELL = /bin/sh 14468all: 14469 @echo '@@@%%%=$(MAKE)=@@@%%%' 14470_ACEOF 14471# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 14472case `${MAKE-make} -f conftest.make 2>/dev/null` in 14473 *@@@%%%=?*=@@@%%%*) 14474 eval ac_cv_prog_make_${ac_make}_set=yes;; 14475 *) 14476 eval ac_cv_prog_make_${ac_make}_set=no;; 14477esac 14478rm -f conftest.make 14479fi 14480if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14482$as_echo "yes" >&6; } 14483 SET_MAKE= 14484else 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486$as_echo "no" >&6; } 14487 SET_MAKE="MAKE=${MAKE-make}" 14488fi 14489 14490 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14492$as_echo_n "checking for inline... " >&6; } 14493if ${ac_cv_c_inline+:} false; then : 14494 $as_echo_n "(cached) " >&6 14495else 14496 ac_cv_c_inline=no 14497for ac_kw in inline __inline__ __inline; do 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500#ifndef __cplusplus 14501typedef int foo_t; 14502static $ac_kw foo_t static_foo () {return 0; } 14503$ac_kw foo_t foo () {return 0; } 14504#endif 14505 14506_ACEOF 14507if ac_fn_c_try_compile "$LINENO"; then : 14508 ac_cv_c_inline=$ac_kw 14509fi 14510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14511 test "$ac_cv_c_inline" != no && break 14512done 14513 14514fi 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14516$as_echo "$ac_cv_c_inline" >&6; } 14517 14518case $ac_cv_c_inline in 14519 inline | yes) ;; 14520 *) 14521 case $ac_cv_c_inline in 14522 no) ac_val=;; 14523 *) ac_val=$ac_cv_c_inline;; 14524 esac 14525 cat >>confdefs.h <<_ACEOF 14526#ifndef __cplusplus 14527#define inline $ac_val 14528#endif 14529_ACEOF 14530 ;; 14531esac 14532 14533 14534 14535 14536 # 14537 compiler_id="unknown" 14538 compiler_num="0" 14539 # 14540 flags_dbg_all="unknown" 14541 flags_dbg_yes="unknown" 14542 flags_dbg_off="unknown" 14543 flags_opt_all="unknown" 14544 flags_opt_yes="unknown" 14545 flags_opt_off="unknown" 14546 # 14547 flags_prefer_cppflags="no" 14548 # 14549 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 14551$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; } 14552 14553 if test -z "$SED"; then 14554 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14555 fi 14556 if test -z "$GREP"; then 14557 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14558 fi 14559 14560 tmp_exp="" 14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562/* end confdefs.h. */ 14563 14564 14565#ifdef __DECC 14566CURL_DEF_TOKEN __DECC 14567#endif 14568 14569 14570_ACEOF 14571if ac_fn_c_try_cpp "$LINENO"; then : 14572 14573 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14574 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14575 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14576 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14577 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 14578 tmp_exp="" 14579 fi 14580 14581fi 14582rm -f conftest.err conftest.i conftest.$ac_ext 14583 if test -z "$tmp_exp"; then 14584 curl_cv_have_def___DECC=no 14585 14586 else 14587 curl_cv_have_def___DECC=yes 14588 curl_cv_def___DECC=$tmp_exp 14589 14590 fi 14591 14592 14593 if test -z "$SED"; then 14594 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14595 fi 14596 if test -z "$GREP"; then 14597 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14598 fi 14599 14600 tmp_exp="" 14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14602/* end confdefs.h. */ 14603 14604 14605#ifdef __DECC_VER 14606CURL_DEF_TOKEN __DECC_VER 14607#endif 14608 14609 14610_ACEOF 14611if ac_fn_c_try_cpp "$LINENO"; then : 14612 14613 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14614 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14615 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14616 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14617 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 14618 tmp_exp="" 14619 fi 14620 14621fi 14622rm -f conftest.err conftest.i conftest.$ac_ext 14623 if test -z "$tmp_exp"; then 14624 curl_cv_have_def___DECC_VER=no 14625 14626 else 14627 curl_cv_have_def___DECC_VER=yes 14628 curl_cv_def___DECC_VER=$tmp_exp 14629 14630 fi 14631 14632 if test "$curl_cv_have_def___DECC" = "yes" && 14633 test "$curl_cv_have_def___DECC_VER" = "yes"; then 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14635$as_echo "yes" >&6; } 14636 compiler_id="DEC_C" 14637 flags_dbg_all="-g -g0 -g1 -g2 -g3" 14638 flags_dbg_yes="-g2" 14639 flags_dbg_off="-g0" 14640 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 14641 flags_opt_yes="-O1" 14642 flags_opt_off="-O0" 14643 else 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14645$as_echo "no" >&6; } 14646 fi 14647 14648 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 14650$as_echo_n "checking if compiler is HP-UX C... " >&6; } 14651 14652 if test -z "$SED"; then 14653 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14654 fi 14655 if test -z "$GREP"; then 14656 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14657 fi 14658 14659 tmp_exp="" 14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14661/* end confdefs.h. */ 14662 14663 14664#ifdef __HP_cc 14665CURL_DEF_TOKEN __HP_cc 14666#endif 14667 14668 14669_ACEOF 14670if ac_fn_c_try_cpp "$LINENO"; then : 14671 14672 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14673 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14674 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14675 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14676 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 14677 tmp_exp="" 14678 fi 14679 14680fi 14681rm -f conftest.err conftest.i conftest.$ac_ext 14682 if test -z "$tmp_exp"; then 14683 curl_cv_have_def___HP_cc=no 14684 14685 else 14686 curl_cv_have_def___HP_cc=yes 14687 curl_cv_def___HP_cc=$tmp_exp 14688 14689 fi 14690 14691 if test "$curl_cv_have_def___HP_cc" = "yes"; then 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14693$as_echo "yes" >&6; } 14694 compiler_id="HP_UX_C" 14695 flags_dbg_all="-g -s" 14696 flags_dbg_yes="-g" 14697 flags_dbg_off="-s" 14698 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 14699 flags_opt_yes="+O2" 14700 flags_opt_off="+O0" 14701 else 14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14703$as_echo "no" >&6; } 14704 fi 14705 14706 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 14708$as_echo_n "checking if compiler is IBM C... " >&6; } 14709 14710 if test -z "$SED"; then 14711 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14712 fi 14713 if test -z "$GREP"; then 14714 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14715 fi 14716 14717 tmp_exp="" 14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14719/* end confdefs.h. */ 14720 14721 14722#ifdef __IBMC__ 14723CURL_DEF_TOKEN __IBMC__ 14724#endif 14725 14726 14727_ACEOF 14728if ac_fn_c_try_cpp "$LINENO"; then : 14729 14730 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14731 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14732 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14733 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14734 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 14735 tmp_exp="" 14736 fi 14737 14738fi 14739rm -f conftest.err conftest.i conftest.$ac_ext 14740 if test -z "$tmp_exp"; then 14741 curl_cv_have_def___IBMC__=no 14742 14743 else 14744 curl_cv_have_def___IBMC__=yes 14745 curl_cv_def___IBMC__=$tmp_exp 14746 14747 fi 14748 14749 if test "$curl_cv_have_def___IBMC__" = "yes"; then 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14751$as_echo "yes" >&6; } 14752 compiler_id="IBM_C" 14753 flags_dbg_all="-g -g0 -g1 -g2 -g3" 14754 flags_dbg_yes="-g" 14755 flags_dbg_off="" 14756 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 14757 flags_opt_all="$flags_opt_all -qnooptimize" 14758 flags_opt_all="$flags_opt_all -qoptimize=0" 14759 flags_opt_all="$flags_opt_all -qoptimize=1" 14760 flags_opt_all="$flags_opt_all -qoptimize=2" 14761 flags_opt_all="$flags_opt_all -qoptimize=3" 14762 flags_opt_all="$flags_opt_all -qoptimize=4" 14763 flags_opt_all="$flags_opt_all -qoptimize=5" 14764 flags_opt_yes="-O2" 14765 flags_opt_off="-qnooptimize" 14766 flags_prefer_cppflags="yes" 14767 else 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14769$as_echo "no" >&6; } 14770 fi 14771 14772 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 14774$as_echo_n "checking if compiler is Intel C... " >&6; } 14775 14776 if test -z "$SED"; then 14777 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14778 fi 14779 if test -z "$GREP"; then 14780 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14781 fi 14782 14783 tmp_exp="" 14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14785/* end confdefs.h. */ 14786 14787 14788#ifdef __INTEL_COMPILER 14789CURL_DEF_TOKEN __INTEL_COMPILER 14790#endif 14791 14792 14793_ACEOF 14794if ac_fn_c_try_cpp "$LINENO"; then : 14795 14796 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14797 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14798 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14799 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14800 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 14801 tmp_exp="" 14802 fi 14803 14804fi 14805rm -f conftest.err conftest.i conftest.$ac_ext 14806 if test -z "$tmp_exp"; then 14807 curl_cv_have_def___INTEL_COMPILER=no 14808 14809 else 14810 curl_cv_have_def___INTEL_COMPILER=yes 14811 curl_cv_def___INTEL_COMPILER=$tmp_exp 14812 14813 fi 14814 14815 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14817$as_echo "yes" >&6; } 14818 compiler_num="$curl_cv_def___INTEL_COMPILER" 14819 14820 if test -z "$SED"; then 14821 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14822 fi 14823 if test -z "$GREP"; then 14824 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14825 fi 14826 14827 tmp_exp="" 14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14829/* end confdefs.h. */ 14830 14831 14832#ifdef __unix__ 14833CURL_DEF_TOKEN __unix__ 14834#endif 14835 14836 14837_ACEOF 14838if ac_fn_c_try_cpp "$LINENO"; then : 14839 14840 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14841 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14842 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14843 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14844 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 14845 tmp_exp="" 14846 fi 14847 14848fi 14849rm -f conftest.err conftest.i conftest.$ac_ext 14850 if test -z "$tmp_exp"; then 14851 curl_cv_have_def___unix__=no 14852 14853 else 14854 curl_cv_have_def___unix__=yes 14855 curl_cv_def___unix__=$tmp_exp 14856 14857 fi 14858 14859 if test "$curl_cv_have_def___unix__" = "yes"; then 14860 compiler_id="INTEL_UNIX_C" 14861 flags_dbg_all="-g -g0" 14862 flags_dbg_yes="-g" 14863 flags_dbg_off="-g0" 14864 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 14865 flags_opt_yes="-O2" 14866 flags_opt_off="-O0" 14867 else 14868 compiler_id="INTEL_WINDOWS_C" 14869 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-" 14870 flags_dbg_all="$flags_dbg_all /debug" 14871 flags_dbg_all="$flags_dbg_all /debug:none" 14872 flags_dbg_all="$flags_dbg_all /debug:minimal" 14873 flags_dbg_all="$flags_dbg_all /debug:partial" 14874 flags_dbg_all="$flags_dbg_all /debug:full" 14875 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping" 14876 flags_dbg_all="$flags_dbg_all /debug:extended" 14877 flags_dbg_yes="/Zi /Oy-" 14878 flags_dbg_off="/debug:none /Oy-" 14879 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 14880 flags_opt_yes="/O2" 14881 flags_opt_off="/Od" 14882 fi 14883 else 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14885$as_echo "no" >&6; } 14886 fi 14887 14888 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 14890$as_echo_n "checking if compiler is clang... " >&6; } 14891 14892 if test -z "$SED"; then 14893 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14894 fi 14895 if test -z "$GREP"; then 14896 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14897 fi 14898 14899 tmp_exp="" 14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14901/* end confdefs.h. */ 14902 14903 14904#ifdef __clang__ 14905CURL_DEF_TOKEN __clang__ 14906#endif 14907 14908 14909_ACEOF 14910if ac_fn_c_try_cpp "$LINENO"; then : 14911 14912 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14913 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14914 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14915 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14916 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 14917 tmp_exp="" 14918 fi 14919 14920fi 14921rm -f conftest.err conftest.i conftest.$ac_ext 14922 if test -z "$tmp_exp"; then 14923 curl_cv_have_def___clang__=no 14924 14925 else 14926 curl_cv_have_def___clang__=yes 14927 curl_cv_def___clang__=$tmp_exp 14928 14929 fi 14930 14931 if test "$curl_cv_have_def___clang__" = "yes"; then 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14933$as_echo "yes" >&6; } 14934 compiler_id="CLANG" 14935 clangver=`$CC -dumpversion` 14936 clangvhi=`echo $clangver | cut -d . -f1` 14937 clangvlo=`echo $clangver | cut -d . -f2` 14938 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 14939 flags_dbg_all="-g -g0 -g1 -g2 -g3" 14940 flags_dbg_all="$flags_dbg_all -ggdb" 14941 flags_dbg_all="$flags_dbg_all -gstabs" 14942 flags_dbg_all="$flags_dbg_all -gstabs+" 14943 flags_dbg_all="$flags_dbg_all -gcoff" 14944 flags_dbg_all="$flags_dbg_all -gxcoff" 14945 flags_dbg_all="$flags_dbg_all -gdwarf-2" 14946 flags_dbg_all="$flags_dbg_all -gvms" 14947 flags_dbg_yes="-g" 14948 flags_dbg_off="-g0" 14949 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 14950 flags_opt_yes="-Os" 14951 flags_opt_off="-O0" 14952 else 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14954$as_echo "no" >&6; } 14955 fi 14956 14957 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 14959$as_echo_n "checking if compiler is GNU C... " >&6; } 14960 14961 if test -z "$SED"; then 14962 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 14963 fi 14964 if test -z "$GREP"; then 14965 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14966 fi 14967 14968 tmp_exp="" 14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14970/* end confdefs.h. */ 14971 14972 14973#ifdef __GNUC__ 14974CURL_DEF_TOKEN __GNUC__ 14975#endif 14976 14977 14978_ACEOF 14979if ac_fn_c_try_cpp "$LINENO"; then : 14980 14981 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14982 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14983 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 14984 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14985 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 14986 tmp_exp="" 14987 fi 14988 14989fi 14990rm -f conftest.err conftest.i conftest.$ac_ext 14991 if test -z "$tmp_exp"; then 14992 curl_cv_have_def___GNUC__=no 14993 14994 else 14995 curl_cv_have_def___GNUC__=yes 14996 curl_cv_def___GNUC__=$tmp_exp 14997 14998 fi 14999 15000 if test "$curl_cv_have_def___GNUC__" = "yes" && 15001 test "$compiler_id" = "unknown"; then 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15003$as_echo "yes" >&6; } 15004 compiler_id="GNU_C" 15005 gccver=`$CC -dumpversion` 15006 gccvhi=`echo $gccver | cut -d . -f1` 15007 gccvlo=`echo $gccver | cut -d . -f2` 15008 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 15009 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15010 flags_dbg_all="$flags_dbg_all -ggdb" 15011 flags_dbg_all="$flags_dbg_all -gstabs" 15012 flags_dbg_all="$flags_dbg_all -gstabs+" 15013 flags_dbg_all="$flags_dbg_all -gcoff" 15014 flags_dbg_all="$flags_dbg_all -gxcoff" 15015 flags_dbg_all="$flags_dbg_all -gdwarf-2" 15016 flags_dbg_all="$flags_dbg_all -gvms" 15017 flags_dbg_yes="-g" 15018 flags_dbg_off="-g0" 15019 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 15020 flags_opt_yes="-O2" 15021 flags_opt_off="-O0" 15022 else 15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15024$as_echo "no" >&6; } 15025 fi 15026 15027 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 15029$as_echo_n "checking if compiler is LCC... " >&6; } 15030 15031 if test -z "$SED"; then 15032 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15033 fi 15034 if test -z "$GREP"; then 15035 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15036 fi 15037 15038 tmp_exp="" 15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041 15042 15043#ifdef __LCC__ 15044CURL_DEF_TOKEN __LCC__ 15045#endif 15046 15047 15048_ACEOF 15049if ac_fn_c_try_cpp "$LINENO"; then : 15050 15051 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15052 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15053 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15054 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15055 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then 15056 tmp_exp="" 15057 fi 15058 15059fi 15060rm -f conftest.err conftest.i conftest.$ac_ext 15061 if test -z "$tmp_exp"; then 15062 curl_cv_have_def___LCC__=no 15063 15064 else 15065 curl_cv_have_def___LCC__=yes 15066 curl_cv_def___LCC__=$tmp_exp 15067 15068 fi 15069 15070 if test "$curl_cv_have_def___LCC__" = "yes"; then 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15072$as_echo "yes" >&6; } 15073 compiler_id="LCC" 15074 flags_dbg_all="-g" 15075 flags_dbg_yes="-g" 15076 flags_dbg_off="" 15077 flags_opt_all="" 15078 flags_opt_yes="" 15079 flags_opt_off="" 15080 else 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15082$as_echo "no" >&6; } 15083 fi 15084 15085 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 15087$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; } 15088 15089 if test -z "$SED"; then 15090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15091 fi 15092 if test -z "$GREP"; then 15093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15094 fi 15095 15096 tmp_exp="" 15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099 15100 15101#ifdef __GNUC__ 15102CURL_DEF_TOKEN __GNUC__ 15103#endif 15104 15105 15106_ACEOF 15107if ac_fn_c_try_cpp "$LINENO"; then : 15108 15109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15111 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15112 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15113 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 15114 tmp_exp="" 15115 fi 15116 15117fi 15118rm -f conftest.err conftest.i conftest.$ac_ext 15119 if test -z "$tmp_exp"; then 15120 curl_cv_have_def___GNUC__=no 15121 15122 else 15123 curl_cv_have_def___GNUC__=yes 15124 curl_cv_def___GNUC__=$tmp_exp 15125 15126 fi 15127 15128 15129 if test -z "$SED"; then 15130 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15131 fi 15132 if test -z "$GREP"; then 15133 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15134 fi 15135 15136 tmp_exp="" 15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15138/* end confdefs.h. */ 15139 15140 15141#ifdef _COMPILER_VERSION 15142CURL_DEF_TOKEN _COMPILER_VERSION 15143#endif 15144 15145 15146_ACEOF 15147if ac_fn_c_try_cpp "$LINENO"; then : 15148 15149 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15150 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15151 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15152 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15153 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 15154 tmp_exp="" 15155 fi 15156 15157fi 15158rm -f conftest.err conftest.i conftest.$ac_ext 15159 if test -z "$tmp_exp"; then 15160 curl_cv_have_def__COMPILER_VERSION=no 15161 15162 else 15163 curl_cv_have_def__COMPILER_VERSION=yes 15164 curl_cv_def__COMPILER_VERSION=$tmp_exp 15165 15166 fi 15167 15168 15169 if test -z "$SED"; then 15170 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15171 fi 15172 if test -z "$GREP"; then 15173 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15174 fi 15175 15176 tmp_exp="" 15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15178/* end confdefs.h. */ 15179 15180 15181#ifdef _SGI_COMPILER_VERSION 15182CURL_DEF_TOKEN _SGI_COMPILER_VERSION 15183#endif 15184 15185 15186_ACEOF 15187if ac_fn_c_try_cpp "$LINENO"; then : 15188 15189 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15190 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15191 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15192 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15193 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 15194 tmp_exp="" 15195 fi 15196 15197fi 15198rm -f conftest.err conftest.i conftest.$ac_ext 15199 if test -z "$tmp_exp"; then 15200 curl_cv_have_def__SGI_COMPILER_VERSION=no 15201 15202 else 15203 curl_cv_have_def__SGI_COMPILER_VERSION=yes 15204 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 15205 15206 fi 15207 15208 if test "$curl_cv_have_def___GNUC__" = "no" && 15209 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 15210 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15212$as_echo "yes" >&6; } 15213 compiler_id="SGI_MIPSPRO_C" 15214 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15215 flags_dbg_yes="-g" 15216 flags_dbg_off="-g0" 15217 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 15218 flags_opt_yes="-O2" 15219 flags_opt_off="-O0" 15220 else 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15222$as_echo "no" >&6; } 15223 fi 15224 15225 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 15227$as_echo_n "checking if compiler is SGI MIPS C... " >&6; } 15228 15229 if test -z "$SED"; then 15230 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15231 fi 15232 if test -z "$GREP"; then 15233 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15234 fi 15235 15236 tmp_exp="" 15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15238/* end confdefs.h. */ 15239 15240 15241#ifdef __GNUC__ 15242CURL_DEF_TOKEN __GNUC__ 15243#endif 15244 15245 15246_ACEOF 15247if ac_fn_c_try_cpp "$LINENO"; then : 15248 15249 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15250 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15251 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15252 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15253 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 15254 tmp_exp="" 15255 fi 15256 15257fi 15258rm -f conftest.err conftest.i conftest.$ac_ext 15259 if test -z "$tmp_exp"; then 15260 curl_cv_have_def___GNUC__=no 15261 15262 else 15263 curl_cv_have_def___GNUC__=yes 15264 curl_cv_def___GNUC__=$tmp_exp 15265 15266 fi 15267 15268 15269 if test -z "$SED"; then 15270 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15271 fi 15272 if test -z "$GREP"; then 15273 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15274 fi 15275 15276 tmp_exp="" 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279 15280 15281#ifdef __sgi 15282CURL_DEF_TOKEN __sgi 15283#endif 15284 15285 15286_ACEOF 15287if ac_fn_c_try_cpp "$LINENO"; then : 15288 15289 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15290 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15291 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15292 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15293 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 15294 tmp_exp="" 15295 fi 15296 15297fi 15298rm -f conftest.err conftest.i conftest.$ac_ext 15299 if test -z "$tmp_exp"; then 15300 curl_cv_have_def___sgi=no 15301 15302 else 15303 curl_cv_have_def___sgi=yes 15304 curl_cv_def___sgi=$tmp_exp 15305 15306 fi 15307 15308 if test "$curl_cv_have_def___GNUC__" = "no" && 15309 test "$curl_cv_have_def___sgi" = "yes" && 15310 test "$compiler_id" = "unknown"; then 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15312$as_echo "yes" >&6; } 15313 compiler_id="SGI_MIPS_C" 15314 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15315 flags_dbg_yes="-g" 15316 flags_dbg_off="-g0" 15317 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 15318 flags_opt_yes="-O2" 15319 flags_opt_off="-O0" 15320 else 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15322$as_echo "no" >&6; } 15323 fi 15324 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 15327$as_echo_n "checking if compiler is SunPro C... " >&6; } 15328 15329 if test -z "$SED"; then 15330 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15331 fi 15332 if test -z "$GREP"; then 15333 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15334 fi 15335 15336 tmp_exp="" 15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15338/* end confdefs.h. */ 15339 15340 15341#ifdef __SUNPRO_C 15342CURL_DEF_TOKEN __SUNPRO_C 15343#endif 15344 15345 15346_ACEOF 15347if ac_fn_c_try_cpp "$LINENO"; then : 15348 15349 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15350 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15351 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15352 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15353 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 15354 tmp_exp="" 15355 fi 15356 15357fi 15358rm -f conftest.err conftest.i conftest.$ac_ext 15359 if test -z "$tmp_exp"; then 15360 curl_cv_have_def___SUNPRO_C=no 15361 15362 else 15363 curl_cv_have_def___SUNPRO_C=yes 15364 curl_cv_def___SUNPRO_C=$tmp_exp 15365 15366 fi 15367 15368 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15370$as_echo "yes" >&6; } 15371 compiler_id="SUNPRO_C" 15372 flags_dbg_all="-g -s" 15373 flags_dbg_yes="-g" 15374 flags_dbg_off="-s" 15375 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 15376 flags_opt_yes="-xO2" 15377 flags_opt_off="" 15378 else 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15380$as_echo "no" >&6; } 15381 fi 15382 15383 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 15385$as_echo_n "checking if compiler is Tiny C... " >&6; } 15386 15387 if test -z "$SED"; then 15388 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15389 fi 15390 if test -z "$GREP"; then 15391 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15392 fi 15393 15394 tmp_exp="" 15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15396/* end confdefs.h. */ 15397 15398 15399#ifdef __TINYC__ 15400CURL_DEF_TOKEN __TINYC__ 15401#endif 15402 15403 15404_ACEOF 15405if ac_fn_c_try_cpp "$LINENO"; then : 15406 15407 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15408 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15409 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15410 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15411 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 15412 tmp_exp="" 15413 fi 15414 15415fi 15416rm -f conftest.err conftest.i conftest.$ac_ext 15417 if test -z "$tmp_exp"; then 15418 curl_cv_have_def___TINYC__=no 15419 15420 else 15421 curl_cv_have_def___TINYC__=yes 15422 curl_cv_def___TINYC__=$tmp_exp 15423 15424 fi 15425 15426 if test "$curl_cv_have_def___TINYC__" = "yes"; then 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15428$as_echo "yes" >&6; } 15429 compiler_id="TINY_C" 15430 flags_dbg_all="-g -b" 15431 flags_dbg_yes="-g" 15432 flags_dbg_off="" 15433 flags_opt_all="" 15434 flags_opt_yes="" 15435 flags_opt_off="" 15436 else 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15438$as_echo "no" >&6; } 15439 fi 15440 15441 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5 15443$as_echo_n "checking if compiler is Watcom C... " >&6; } 15444 15445 if test -z "$SED"; then 15446 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15447 fi 15448 if test -z "$GREP"; then 15449 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15450 fi 15451 15452 tmp_exp="" 15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15454/* end confdefs.h. */ 15455 15456 15457#ifdef __WATCOMC__ 15458CURL_DEF_TOKEN __WATCOMC__ 15459#endif 15460 15461 15462_ACEOF 15463if ac_fn_c_try_cpp "$LINENO"; then : 15464 15465 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15466 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15467 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15468 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15469 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then 15470 tmp_exp="" 15471 fi 15472 15473fi 15474rm -f conftest.err conftest.i conftest.$ac_ext 15475 if test -z "$tmp_exp"; then 15476 curl_cv_have_def___WATCOMC__=no 15477 15478 else 15479 curl_cv_have_def___WATCOMC__=yes 15480 curl_cv_def___WATCOMC__=$tmp_exp 15481 15482 fi 15483 15484 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15486$as_echo "yes" >&6; } 15487 15488 if test -z "$SED"; then 15489 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15490 fi 15491 if test -z "$GREP"; then 15492 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15493 fi 15494 15495 tmp_exp="" 15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15497/* end confdefs.h. */ 15498 15499 15500#ifdef __UNIX__ 15501CURL_DEF_TOKEN __UNIX__ 15502#endif 15503 15504 15505_ACEOF 15506if ac_fn_c_try_cpp "$LINENO"; then : 15507 15508 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15509 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15510 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 15511 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15512 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then 15513 tmp_exp="" 15514 fi 15515 15516fi 15517rm -f conftest.err conftest.i conftest.$ac_ext 15518 if test -z "$tmp_exp"; then 15519 curl_cv_have_def___UNIX__=no 15520 15521 else 15522 curl_cv_have_def___UNIX__=yes 15523 curl_cv_def___UNIX__=$tmp_exp 15524 15525 fi 15526 15527 if test "$curl_cv_have_def___UNIX__" = "yes"; then 15528 compiler_id="WATCOM_UNIX_C" 15529 flags_dbg_all="-g1 -g1+ -g2 -g3" 15530 flags_dbg_yes="-g2" 15531 flags_dbg_off="" 15532 flags_opt_all="-O0 -O1 -O2 -O3" 15533 flags_opt_yes="-O2" 15534 flags_opt_off="-O0" 15535 else 15536 compiler_id="WATCOM_WINDOWS_C" 15537 flags_dbg_all="" 15538 flags_dbg_yes="" 15539 flags_dbg_off="" 15540 flags_opt_all="" 15541 flags_opt_yes="" 15542 flags_opt_off="" 15543 fi 15544 else 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15546$as_echo "no" >&6; } 15547 fi 15548 15549 # 15550 if test "$compiler_id" = "unknown"; then 15551 cat <<_EOF 1>&2 15552*** 15553*** Warning: This configure script does not have information about the 15554*** compiler you are using, relative to the flags required to enable or 15555*** disable generation of debug info, optimization options or warnings. 15556*** 15557*** Whatever settings are present in CFLAGS will be used for this run. 15558*** 15559*** If you wish to help the cURL project to better support your compiler 15560*** you can report this and the required info on the libcurl development 15561*** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ 15562*** 15563_EOF 15564 fi 15565 15566 15567squeeze() { 15568 _sqz_result="" 15569 eval _sqz_input=\$$1 15570 for _sqz_token in $_sqz_input; do 15571 if test -z "$_sqz_result"; then 15572 _sqz_result="$_sqz_token" 15573 else 15574 _sqz_result="$_sqz_result $_sqz_token" 15575 fi 15576 done 15577 eval $1=\$_sqz_result 15578 return 0 15579} 15580 15581 15582 # 15583 if test "$compiler_id" != "unknown"; then 15584 # 15585 if test "$compiler_id" = "GNU_C" || 15586 test "$compiler_id" = "CLANG"; then 15587 15588 tmp_has_include="no" 15589 tmp_chg_FLAGS="$CFLAGS" 15590 for word1 in $tmp_chg_FLAGS; do 15591 case "$word1" in 15592 -I*) 15593 tmp_has_include="yes" 15594 ;; 15595 esac 15596 done 15597 if test "$tmp_has_include" = "yes"; then 15598 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 15599 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 15600 CFLAGS="$tmp_chg_FLAGS" 15601 squeeze CFLAGS 15602 fi 15603 tmp_has_include="no" 15604 tmp_chg_FLAGS="$CPPFLAGS" 15605 for word1 in $tmp_chg_FLAGS; do 15606 case "$word1" in 15607 -I*) 15608 tmp_has_include="yes" 15609 ;; 15610 esac 15611 done 15612 if test "$tmp_has_include" = "yes"; then 15613 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 15614 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 15615 CPPFLAGS="$tmp_chg_FLAGS" 15616 squeeze CPPFLAGS 15617 fi 15618 15619 fi 15620 # 15621 tmp_save_CPPFLAGS="$CPPFLAGS" 15622 tmp_save_CFLAGS="$CFLAGS" 15623 tmp_CPPFLAGS="" 15624 tmp_CFLAGS="" 15625 # 15626 case "$compiler_id" in 15627 # 15628 CLANG) 15629 # 15630 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 15631 ;; 15632 # 15633 DEC_C) 15634 # 15635 tmp_CFLAGS="$tmp_CFLAGS -std1" 15636 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 15637 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 15638 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 15639 ;; 15640 # 15641 GNU_C) 15642 # 15643 tmp_CFLAGS="$tmp_CFLAGS" 15644 ;; 15645 # 15646 HP_UX_C) 15647 # 15648 tmp_CFLAGS="$tmp_CFLAGS -z" 15649 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 15650 ;; 15651 # 15652 IBM_C) 15653 # 15654 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 15655 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 15656 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 15657 ;; 15658 # 15659 INTEL_UNIX_C) 15660 # 15661 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 15662 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266" 15663 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469" 15664 ;; 15665 # 15666 INTEL_WINDOWS_C) 15667 # 15668 tmp_CFLAGS="$tmp_CFLAGS" 15669 ;; 15670 # 15671 LCC) 15672 # 15673 tmp_CFLAGS="$tmp_CFLAGS -n" 15674 ;; 15675 # 15676 SGI_MIPS_C) 15677 # 15678 tmp_CFLAGS="$tmp_CFLAGS" 15679 ;; 15680 # 15681 SGI_MIPSPRO_C) 15682 # 15683 tmp_CFLAGS="$tmp_CFLAGS" 15684 ;; 15685 # 15686 SUNPRO_C) 15687 # 15688 tmp_CFLAGS="$tmp_CFLAGS" 15689 ;; 15690 # 15691 TINY_C) 15692 # 15693 tmp_CFLAGS="$tmp_CFLAGS" 15694 ;; 15695 # 15696 WATCOM_UNIX_C) 15697 # 15698 tmp_CFLAGS="$tmp_CFLAGS" 15699 ;; 15700 # 15701 WATCOM_WINDOWS_C) 15702 # 15703 tmp_CFLAGS="$tmp_CFLAGS" 15704 ;; 15705 # 15706 esac 15707 # 15708 squeeze tmp_CPPFLAGS 15709 squeeze tmp_CFLAGS 15710 # 15711 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 15713$as_echo_n "checking if compiler accepts some basic options... " >&6; } 15714 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 15715 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 15716 squeeze CPPFLAGS 15717 squeeze CFLAGS 15718 15719 tmp_compiler_works="unknown" 15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15721/* end confdefs.h. */ 15722 15723 15724 15725int main (void) 15726{ 15727 15728 int i = 1; 15729 return i; 15730 15731 ; 15732 return 0; 15733} 15734 15735_ACEOF 15736if ac_fn_c_try_compile "$LINENO"; then : 15737 15738 tmp_compiler_works="yes" 15739 15740else 15741 15742 tmp_compiler_works="no" 15743 echo " " >&6 15744 sed 's/^/cc-fail: /' conftest.err >&6 15745 echo " " >&6 15746 15747fi 15748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15749 if test "$tmp_compiler_works" = "yes"; then 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752 15753 15754 15755int main (void) 15756{ 15757 15758 int i = 1; 15759 return i; 15760 15761 ; 15762 return 0; 15763} 15764 15765_ACEOF 15766if ac_fn_c_try_link "$LINENO"; then : 15767 15768 tmp_compiler_works="yes" 15769 15770else 15771 15772 tmp_compiler_works="no" 15773 echo " " >&6 15774 sed 's/^/link-fail: /' conftest.err >&6 15775 echo " " >&6 15776 15777fi 15778rm -f core conftest.err conftest.$ac_objext \ 15779 conftest$ac_exeext conftest.$ac_ext 15780 fi 15781 if test "x$cross_compiling" != "xyes" && 15782 test "$tmp_compiler_works" = "yes"; then 15783 if test "$cross_compiling" = yes; then : 15784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15786as_fn_error $? "cannot run test program while cross compiling 15787See \`config.log' for more details" "$LINENO" 5; } 15788else 15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790/* end confdefs.h. */ 15791 15792 15793# ifdef __STDC__ 15794# include <stdlib.h> 15795# endif 15796 15797int main (void) 15798{ 15799 15800 int i = 0; 15801 exit(i); 15802 15803 ; 15804 return 0; 15805} 15806 15807_ACEOF 15808if ac_fn_c_try_run "$LINENO"; then : 15809 15810 tmp_compiler_works="yes" 15811 15812else 15813 15814 tmp_compiler_works="no" 15815 echo " " >&6 15816 echo "run-fail: test program exited with status $ac_status" >&6 15817 echo " " >&6 15818 15819fi 15820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15821 conftest.$ac_objext conftest.beam conftest.$ac_ext 15822fi 15823 15824 fi 15825 if test "$tmp_compiler_works" = "yes"; then 15826 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15828$as_echo "yes" >&6; } 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 15830$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 15831 15832 else 15833 15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15835$as_echo "no" >&6; } 15836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 15837$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 15838 CPPFLAGS="$tmp_save_CPPFLAGS" 15839 CFLAGS="$tmp_save_CFLAGS" 15840 15841 fi 15842 15843 fi 15844 # 15845 fi 15846 15847 15848 # 15849 if test "$compiler_id" != "unknown"; then 15850 # 15851 tmp_save_CFLAGS="$CFLAGS" 15852 tmp_save_CPPFLAGS="$CPPFLAGS" 15853 # 15854 tmp_options="" 15855 tmp_CFLAGS="$CFLAGS" 15856 tmp_CPPFLAGS="$CPPFLAGS" 15857 15858 ac_var_stripped="" 15859 for word1 in $tmp_CFLAGS; do 15860 ac_var_strip_word="no" 15861 for word2 in $flags_dbg_all; do 15862 if test "$word1" = "$word2"; then 15863 ac_var_strip_word="yes" 15864 fi 15865 done 15866 if test "$ac_var_strip_word" = "no"; then 15867 ac_var_stripped="$ac_var_stripped $word1" 15868 fi 15869 done 15870 tmp_CFLAGS="$ac_var_stripped" 15871 squeeze tmp_CFLAGS 15872 15873 15874 ac_var_stripped="" 15875 for word1 in $tmp_CPPFLAGS; do 15876 ac_var_strip_word="no" 15877 for word2 in $flags_dbg_all; do 15878 if test "$word1" = "$word2"; then 15879 ac_var_strip_word="yes" 15880 fi 15881 done 15882 if test "$ac_var_strip_word" = "no"; then 15883 ac_var_stripped="$ac_var_stripped $word1" 15884 fi 15885 done 15886 tmp_CPPFLAGS="$ac_var_stripped" 15887 squeeze tmp_CPPFLAGS 15888 15889 # 15890 if test "$want_debug" = "yes"; then 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 15892$as_echo_n "checking if compiler accepts debug enabling options... " >&6; } 15893 tmp_options="$flags_dbg_yes" 15894 fi 15895 if test "$want_debug" = "no"; then 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5 15897$as_echo_n "checking if compiler accepts debug disabling options... " >&6; } 15898 tmp_options="$flags_dbg_off" 15899 fi 15900 # 15901 if test "$flags_prefer_cppflags" = "yes"; then 15902 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 15903 CFLAGS="$tmp_CFLAGS" 15904 else 15905 CPPFLAGS="$tmp_CPPFLAGS" 15906 CFLAGS="$tmp_CFLAGS $tmp_options" 15907 fi 15908 squeeze CPPFLAGS 15909 squeeze CFLAGS 15910 15911 tmp_compiler_works="unknown" 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914 15915 15916 15917int main (void) 15918{ 15919 15920 int i = 1; 15921 return i; 15922 15923 ; 15924 return 0; 15925} 15926 15927_ACEOF 15928if ac_fn_c_try_compile "$LINENO"; then : 15929 15930 tmp_compiler_works="yes" 15931 15932else 15933 15934 tmp_compiler_works="no" 15935 echo " " >&6 15936 sed 's/^/cc-fail: /' conftest.err >&6 15937 echo " " >&6 15938 15939fi 15940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15941 if test "$tmp_compiler_works" = "yes"; then 15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15943/* end confdefs.h. */ 15944 15945 15946 15947int main (void) 15948{ 15949 15950 int i = 1; 15951 return i; 15952 15953 ; 15954 return 0; 15955} 15956 15957_ACEOF 15958if ac_fn_c_try_link "$LINENO"; then : 15959 15960 tmp_compiler_works="yes" 15961 15962else 15963 15964 tmp_compiler_works="no" 15965 echo " " >&6 15966 sed 's/^/link-fail: /' conftest.err >&6 15967 echo " " >&6 15968 15969fi 15970rm -f core conftest.err conftest.$ac_objext \ 15971 conftest$ac_exeext conftest.$ac_ext 15972 fi 15973 if test "x$cross_compiling" != "xyes" && 15974 test "$tmp_compiler_works" = "yes"; then 15975 if test "$cross_compiling" = yes; then : 15976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15978as_fn_error $? "cannot run test program while cross compiling 15979See \`config.log' for more details" "$LINENO" 5; } 15980else 15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15982/* end confdefs.h. */ 15983 15984 15985# ifdef __STDC__ 15986# include <stdlib.h> 15987# endif 15988 15989int main (void) 15990{ 15991 15992 int i = 0; 15993 exit(i); 15994 15995 ; 15996 return 0; 15997} 15998 15999_ACEOF 16000if ac_fn_c_try_run "$LINENO"; then : 16001 16002 tmp_compiler_works="yes" 16003 16004else 16005 16006 tmp_compiler_works="no" 16007 echo " " >&6 16008 echo "run-fail: test program exited with status $ac_status" >&6 16009 echo " " >&6 16010 16011fi 16012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16013 conftest.$ac_objext conftest.beam conftest.$ac_ext 16014fi 16015 16016 fi 16017 if test "$tmp_compiler_works" = "yes"; then 16018 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16020$as_echo "yes" >&6; } 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 16022$as_echo "$as_me: compiler options added: $tmp_options" >&6;} 16023 16024 else 16025 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16027$as_echo "no" >&6; } 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 16029$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 16030 CPPFLAGS="$tmp_save_CPPFLAGS" 16031 CFLAGS="$tmp_save_CFLAGS" 16032 16033 fi 16034 16035 # 16036 fi 16037 16038 16039 # 16040 if test "$compiler_id" != "unknown"; then 16041 # 16042 tmp_save_CFLAGS="$CFLAGS" 16043 tmp_save_CPPFLAGS="$CPPFLAGS" 16044 # 16045 tmp_options="" 16046 tmp_CFLAGS="$CFLAGS" 16047 tmp_CPPFLAGS="$CPPFLAGS" 16048 honor_optimize_option="yes" 16049 # 16050 # 16051 if test "$want_optimize" = "assume_no" || 16052 test "$want_optimize" = "assume_yes"; then 16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 16054$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; } 16055 16056 16057 ac_var_match_word="no" 16058 for word1 in $tmp_CFLAGS; do 16059 for word2 in $flags_opt_all; do 16060 if test "$word1" = "$word2"; then 16061 ac_var_match_word="yes" 16062 fi 16063 done 16064 done 16065 16066 if test "$ac_var_match_word" = "yes"; then 16067 16068 honor_optimize_option="no" 16069 16070 16071 fi 16072 16073 16074 16075 ac_var_match_word="no" 16076 for word1 in $tmp_CPPFLAGS; do 16077 for word2 in $flags_opt_all; do 16078 if test "$word1" = "$word2"; then 16079 ac_var_match_word="yes" 16080 fi 16081 done 16082 done 16083 16084 if test "$ac_var_match_word" = "yes"; then 16085 16086 honor_optimize_option="no" 16087 16088 16089 fi 16090 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 16092$as_echo "$honor_optimize_option" >&6; } 16093 if test "$honor_optimize_option" = "yes"; then 16094 if test "$want_optimize" = "assume_yes"; then 16095 want_optimize="yes" 16096 fi 16097 if test "$want_optimize" = "assume_no"; then 16098 want_optimize="no" 16099 fi 16100 fi 16101 fi 16102 # 16103 if test "$honor_optimize_option" = "yes"; then 16104 16105 ac_var_stripped="" 16106 for word1 in $tmp_CFLAGS; do 16107 ac_var_strip_word="no" 16108 for word2 in $flags_opt_all; do 16109 if test "$word1" = "$word2"; then 16110 ac_var_strip_word="yes" 16111 fi 16112 done 16113 if test "$ac_var_strip_word" = "no"; then 16114 ac_var_stripped="$ac_var_stripped $word1" 16115 fi 16116 done 16117 tmp_CFLAGS="$ac_var_stripped" 16118 squeeze tmp_CFLAGS 16119 16120 16121 ac_var_stripped="" 16122 for word1 in $tmp_CPPFLAGS; do 16123 ac_var_strip_word="no" 16124 for word2 in $flags_opt_all; do 16125 if test "$word1" = "$word2"; then 16126 ac_var_strip_word="yes" 16127 fi 16128 done 16129 if test "$ac_var_strip_word" = "no"; then 16130 ac_var_stripped="$ac_var_stripped $word1" 16131 fi 16132 done 16133 tmp_CPPFLAGS="$ac_var_stripped" 16134 squeeze tmp_CPPFLAGS 16135 16136 if test "$want_optimize" = "yes"; then 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 16138$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; } 16139 tmp_options="$flags_opt_yes" 16140 fi 16141 if test "$want_optimize" = "no"; then 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 16143$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; } 16144 tmp_options="$flags_opt_off" 16145 fi 16146 if test "$flags_prefer_cppflags" = "yes"; then 16147 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 16148 CFLAGS="$tmp_CFLAGS" 16149 else 16150 CPPFLAGS="$tmp_CPPFLAGS" 16151 CFLAGS="$tmp_CFLAGS $tmp_options" 16152 fi 16153 squeeze CPPFLAGS 16154 squeeze CFLAGS 16155 16156 tmp_compiler_works="unknown" 16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16158/* end confdefs.h. */ 16159 16160 16161 16162int main (void) 16163{ 16164 16165 int i = 1; 16166 return i; 16167 16168 ; 16169 return 0; 16170} 16171 16172_ACEOF 16173if ac_fn_c_try_compile "$LINENO"; then : 16174 16175 tmp_compiler_works="yes" 16176 16177else 16178 16179 tmp_compiler_works="no" 16180 echo " " >&6 16181 sed 's/^/cc-fail: /' conftest.err >&6 16182 echo " " >&6 16183 16184fi 16185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16186 if test "$tmp_compiler_works" = "yes"; then 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189 16190 16191 16192int main (void) 16193{ 16194 16195 int i = 1; 16196 return i; 16197 16198 ; 16199 return 0; 16200} 16201 16202_ACEOF 16203if ac_fn_c_try_link "$LINENO"; then : 16204 16205 tmp_compiler_works="yes" 16206 16207else 16208 16209 tmp_compiler_works="no" 16210 echo " " >&6 16211 sed 's/^/link-fail: /' conftest.err >&6 16212 echo " " >&6 16213 16214fi 16215rm -f core conftest.err conftest.$ac_objext \ 16216 conftest$ac_exeext conftest.$ac_ext 16217 fi 16218 if test "x$cross_compiling" != "xyes" && 16219 test "$tmp_compiler_works" = "yes"; then 16220 if test "$cross_compiling" = yes; then : 16221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16223as_fn_error $? "cannot run test program while cross compiling 16224See \`config.log' for more details" "$LINENO" 5; } 16225else 16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228 16229 16230# ifdef __STDC__ 16231# include <stdlib.h> 16232# endif 16233 16234int main (void) 16235{ 16236 16237 int i = 0; 16238 exit(i); 16239 16240 ; 16241 return 0; 16242} 16243 16244_ACEOF 16245if ac_fn_c_try_run "$LINENO"; then : 16246 16247 tmp_compiler_works="yes" 16248 16249else 16250 16251 tmp_compiler_works="no" 16252 echo " " >&6 16253 echo "run-fail: test program exited with status $ac_status" >&6 16254 echo " " >&6 16255 16256fi 16257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16258 conftest.$ac_objext conftest.beam conftest.$ac_ext 16259fi 16260 16261 fi 16262 if test "$tmp_compiler_works" = "yes"; then 16263 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16265$as_echo "yes" >&6; } 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 16267$as_echo "$as_me: compiler options added: $tmp_options" >&6;} 16268 16269 else 16270 16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16272$as_echo "no" >&6; } 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 16274$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 16275 CPPFLAGS="$tmp_save_CPPFLAGS" 16276 CFLAGS="$tmp_save_CFLAGS" 16277 16278 fi 16279 16280 fi 16281 # 16282 fi 16283 16284 16285 # 16286 if test "$compiler_id" != "unknown"; then 16287 # 16288 tmp_save_CPPFLAGS="$CPPFLAGS" 16289 tmp_save_CFLAGS="$CFLAGS" 16290 tmp_CPPFLAGS="" 16291 tmp_CFLAGS="" 16292 # 16293 case "$compiler_id" in 16294 # 16295 CLANG) 16296 # 16297 if test "$want_warnings" = "yes"; then 16298 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 16299 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 16300 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 16301 tmp_CFLAGS="$tmp_CFLAGS -Wshadow" 16302 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 16303 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 16304 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 16305 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 16306 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 16307 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 16308 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 16309 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 16310 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 16311 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 16312 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 16313 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 16314 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32" 16315 # 16316 if test "$compiler_num" -ge "101"; then 16317 tmp_CFLAGS="$tmp_CFLAGS -Wunused" 16318 fi 16319 fi 16320 ;; 16321 # 16322 DEC_C) 16323 # 16324 if test "$want_warnings" = "yes"; then 16325 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 16326 fi 16327 ;; 16328 # 16329 GNU_C) 16330 # 16331 if test "$want_warnings" = "yes"; then 16332 # 16333 if test "x$cross_compiling" != "xyes" || 16334 test "$compiler_num" -ge "300"; then 16335 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 16336 fi 16337 # 16338 tmp_CFLAGS="$tmp_CFLAGS -Wall -W" 16339 # 16340 if test "$compiler_num" -ge "104"; then 16341 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 16342 if test "x$cross_compiling" != "xyes" || 16343 test "$compiler_num" -ge "300"; then 16344 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow" 16345 fi 16346 fi 16347 # 16348 if test "$compiler_num" -ge "207"; then 16349 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 16350 if test "x$cross_compiling" != "xyes" || 16351 test "$compiler_num" -ge "300"; then 16352 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 16353 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 16354 fi 16355 fi 16356 # 16357 if test "$compiler_num" -ge "295"; then 16358 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 16359 fi 16360 # 16361 if test "$compiler_num" -ge "296"; then 16362 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 16363 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 16364 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 16365 fi 16366 # 16367 if test "$compiler_num" -ge "297"; then 16368 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 16369 fi 16370 # 16371 if test "$compiler_num" -ge "300"; then 16372 tmp_CFLAGS="$tmp_CFLAGS" 16373 fi 16374 # 16375 if test "$compiler_num" -ge "303"; then 16376 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 16377 fi 16378 # 16379 if test "$compiler_num" -ge "304"; then 16380 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 16381 fi 16382 # 16383 if test "$compiler_num" -ge "402"; then 16384 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 16385 fi 16386 # 16387 if test "$compiler_num" -ge "403"; then 16388 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" 16389 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" 16390 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" 16391 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla" 16392 fi 16393 # 16394 fi 16395 # 16396 if test "$compiler_num" -ge "300"; then 16397 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 16398 else 16399 if test "x$cross_compiling" = "xyes"; then 16400 if test "$compiler_num" -ge "104"; then 16401 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 16402 fi 16403 if test "$compiler_num" -ge "207"; then 16404 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 16405 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 16406 fi 16407 fi 16408 fi 16409 ;; 16410 # 16411 HP_UX_C) 16412 # 16413 if test "$want_warnings" = "yes"; then 16414 tmp_CFLAGS="$tmp_CFLAGS +w1" 16415 fi 16416 ;; 16417 # 16418 IBM_C) 16419 # 16420 tmp_CFLAGS="$tmp_CFLAGS" 16421 ;; 16422 # 16423 INTEL_UNIX_C) 16424 # 16425 if test "$want_warnings" = "yes"; then 16426 if test "$compiler_num" -gt "600"; then 16427 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 16428 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 16429 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 16430 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 16431 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 16432 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 16433 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 16434 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 16435 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 16436 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 16437 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 16438 fi 16439 fi 16440 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 16441 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 16442 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 16443 if test "$compiler_num" -ge "1000"; then 16444 tmp_CFLAGS="$tmp_CFLAGS -vec-report0" 16445 fi 16446 ;; 16447 # 16448 INTEL_WINDOWS_C) 16449 # 16450 tmp_CFLAGS="$tmp_CFLAGS" 16451 ;; 16452 # 16453 LCC) 16454 # 16455 if test "$want_warnings" = "yes"; then 16456 tmp_CFLAGS="$tmp_CFLAGS" 16457 fi 16458 ;; 16459 # 16460 SGI_MIPS_C) 16461 # 16462 if test "$want_warnings" = "yes"; then 16463 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 16464 fi 16465 ;; 16466 # 16467 SGI_MIPSPRO_C) 16468 # 16469 if test "$want_warnings" = "yes"; then 16470 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 16471 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 16472 fi 16473 ;; 16474 # 16475 SUNPRO_C) 16476 # 16477 if test "$want_warnings" = "yes"; then 16478 tmp_CFLAGS="$tmp_CFLAGS -v" 16479 fi 16480 ;; 16481 # 16482 TINY_C) 16483 # 16484 if test "$want_warnings" = "yes"; then 16485 tmp_CFLAGS="$tmp_CFLAGS -Wall" 16486 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings" 16487 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported" 16488 fi 16489 ;; 16490 # 16491 WATCOM_UNIX_C) 16492 # 16493 if test "$want_warnings" = "yes"; then 16494 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 16495 fi 16496 ;; 16497 # 16498 WATCOM_WINDOWS_C) 16499 # 16500 tmp_CFLAGS="$tmp_CFLAGS" 16501 ;; 16502 # 16503 esac 16504 # 16505 squeeze tmp_CPPFLAGS 16506 squeeze tmp_CFLAGS 16507 # 16508 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 16510$as_echo_n "checking if compiler accepts strict warning options... " >&6; } 16511 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 16512 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 16513 squeeze CPPFLAGS 16514 squeeze CFLAGS 16515 16516 tmp_compiler_works="unknown" 16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16518/* end confdefs.h. */ 16519 16520 16521 16522int main (void) 16523{ 16524 16525 int i = 1; 16526 return i; 16527 16528 ; 16529 return 0; 16530} 16531 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO"; then : 16534 16535 tmp_compiler_works="yes" 16536 16537else 16538 16539 tmp_compiler_works="no" 16540 echo " " >&6 16541 sed 's/^/cc-fail: /' conftest.err >&6 16542 echo " " >&6 16543 16544fi 16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16546 if test "$tmp_compiler_works" = "yes"; then 16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16548/* end confdefs.h. */ 16549 16550 16551 16552int main (void) 16553{ 16554 16555 int i = 1; 16556 return i; 16557 16558 ; 16559 return 0; 16560} 16561 16562_ACEOF 16563if ac_fn_c_try_link "$LINENO"; then : 16564 16565 tmp_compiler_works="yes" 16566 16567else 16568 16569 tmp_compiler_works="no" 16570 echo " " >&6 16571 sed 's/^/link-fail: /' conftest.err >&6 16572 echo " " >&6 16573 16574fi 16575rm -f core conftest.err conftest.$ac_objext \ 16576 conftest$ac_exeext conftest.$ac_ext 16577 fi 16578 if test "x$cross_compiling" != "xyes" && 16579 test "$tmp_compiler_works" = "yes"; then 16580 if test "$cross_compiling" = yes; then : 16581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16583as_fn_error $? "cannot run test program while cross compiling 16584See \`config.log' for more details" "$LINENO" 5; } 16585else 16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16587/* end confdefs.h. */ 16588 16589 16590# ifdef __STDC__ 16591# include <stdlib.h> 16592# endif 16593 16594int main (void) 16595{ 16596 16597 int i = 0; 16598 exit(i); 16599 16600 ; 16601 return 0; 16602} 16603 16604_ACEOF 16605if ac_fn_c_try_run "$LINENO"; then : 16606 16607 tmp_compiler_works="yes" 16608 16609else 16610 16611 tmp_compiler_works="no" 16612 echo " " >&6 16613 echo "run-fail: test program exited with status $ac_status" >&6 16614 echo " " >&6 16615 16616fi 16617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16618 conftest.$ac_objext conftest.beam conftest.$ac_ext 16619fi 16620 16621 fi 16622 if test "$tmp_compiler_works" = "yes"; then 16623 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16625$as_echo "yes" >&6; } 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 16627$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 16628 16629 else 16630 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16632$as_echo "no" >&6; } 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 16634$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 16635 CPPFLAGS="$tmp_save_CPPFLAGS" 16636 CFLAGS="$tmp_save_CFLAGS" 16637 16638 fi 16639 16640 fi 16641 # 16642 fi 16643 16644 16645if test "$compiler_id" = "INTEL_UNIX_C"; then 16646 # 16647 if test "$compiler_num" -ge "1000"; then 16648 CFLAGS="$CFLAGS -shared-intel" 16649 elif test "$compiler_num" -ge "900"; then 16650 CFLAGS="$CFLAGS -i-dynamic" 16651 fi 16652 # 16653fi 16654 16655 16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 16657$as_echo_n "checking if compiler halts on compilation errors... " >&6; } 16658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16659/* end confdefs.h. */ 16660 16661 16662 16663int main (void) 16664{ 16665 16666 force compilation error 16667 16668 ; 16669 return 0; 16670} 16671 16672_ACEOF 16673if ac_fn_c_try_compile "$LINENO"; then : 16674 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16676$as_echo "no" >&6; } 16677 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 16678 16679else 16680 16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16682$as_echo "yes" >&6; } 16683 16684fi 16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16686 16687 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 16689$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; } 16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692 16693 16694 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; 16695 16696int main (void) 16697{ 16698 16699 bad_t dummy; 16700 16701 ; 16702 return 0; 16703} 16704 16705_ACEOF 16706if ac_fn_c_try_compile "$LINENO"; then : 16707 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16709$as_echo "no" >&6; } 16710 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 16711 16712else 16713 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16715$as_echo "yes" >&6; } 16716 16717fi 16718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16719 16720 16721 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries need -no-undefined" >&5 16723$as_echo_n "checking if shared libraries need -no-undefined... " >&6; } 16724 need_no_undefined="no" 16725 case $host in 16726 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*) 16727 need_no_undefined="yes" 16728 ;; 16729 esac 16730 if test "x$allow_undefined" = "xno"; then 16731 need_no_undefined="yes" 16732 elif test "x$allow_undefined_flag" = "xunsupported"; then 16733 need_no_undefined="yes" 16734 fi 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_no_undefined" >&5 16736$as_echo "$need_no_undefined" >&6; } 16737 16738 16739 16740if test x$need_no_undefined = xyes; then 16741 NO_UNDEFINED_TRUE= 16742 NO_UNDEFINED_FALSE='#' 16743else 16744 NO_UNDEFINED_TRUE='#' 16745 NO_UNDEFINED_FALSE= 16746fi 16747 16748 16749 16750 supports_curldebug="unknown" 16751 if test "$want_curldebug" = "yes"; then 16752 if test "x$enable_shared" != "xno" && 16753 test "x$enable_shared" != "xyes"; then 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5 16755$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;} 16756 supports_curldebug="no" 16757 fi 16758 if test "x$enable_static" != "xno" && 16759 test "x$enable_static" != "xyes"; then 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5 16761$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;} 16762 supports_curldebug="no" 16763 fi 16764 if test "$supports_curldebug" != "no"; then 16765 if test "$enable_shared" = "yes" && 16766 test "$need_no_undefined" = "yes"; then 16767 supports_curldebug="no" 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5 16769$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;} 16770 fi 16771 fi 16772 fi 16773 # 16774 if test "$want_curldebug" = "yes"; then 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5 16776$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; } 16777 test "$supports_curldebug" = "no" || supports_curldebug="yes" 16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5 16779$as_echo "$supports_curldebug" >&6; } 16780 if test "$supports_curldebug" = "no"; then 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5 16782$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;} 16783 want_curldebug="no" 16784 fi 16785 fi 16786 # 16787 if test "$want_curldebug" = "yes"; then 16788 CPPFLAGS="-DCURLDEBUG $CPPFLAGS" 16789 squeeze CPPFLAGS 16790 fi 16791 if test "$want_debug" = "yes"; then 16792 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS" 16793 squeeze CPPFLAGS 16794 fi 16795 16796 16797 16798if test x$want_curldebug = xyes; then 16799 CURLDEBUG_TRUE= 16800 CURLDEBUG_FALSE='#' 16801else 16802 CURLDEBUG_TRUE='#' 16803 CURLDEBUG_FALSE= 16804fi 16805 16806 16807supports_unittests=yes 16808# cross-compilation of unit tests static library/programs fails when 16809# libcurl shared library is built. This might be due to a libtool or 16810# automake issue. In this case we disable unit tests. 16811if test "x$cross_compiling" != "xno" && 16812 test "x$enable_shared" != "xno"; then 16813 supports_unittests=no 16814fi 16815 16816if test "x$want_debug" = "xyes" && 16817 test "x$supports_unittests" = "xyes"; then 16818 want_unittests=yes 16819else 16820 want_unittests=no 16821fi 16822 16823 16824if test x$want_unittests = xyes; then 16825 BUILD_UNITTESTS_TRUE= 16826 BUILD_UNITTESTS_FALSE='#' 16827else 16828 BUILD_UNITTESTS_TRUE='#' 16829 BUILD_UNITTESTS_FALSE= 16830fi 16831 16832 16833 16834 16835 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 16837$as_echo_n "checking for windows.h... " >&6; } 16838if ${ac_cv_header_windows_h+:} false; then : 16839 $as_echo_n "(cached) " >&6 16840else 16841 16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16843/* end confdefs.h. */ 16844 16845 16846#undef inline 16847#ifndef WIN32_LEAN_AND_MEAN 16848#define WIN32_LEAN_AND_MEAN 16849#endif 16850#include <windows.h> 16851 16852int main (void) 16853{ 16854 16855#if defined(__CYGWIN__) || defined(__CEGCC__) 16856 HAVE_WINDOWS_H shall not be defined. 16857#else 16858 int dummy=2*WINVER; 16859#endif 16860 16861 ; 16862 return 0; 16863} 16864 16865_ACEOF 16866if ac_fn_c_try_compile "$LINENO"; then : 16867 16868 ac_cv_header_windows_h="yes" 16869 16870else 16871 16872 ac_cv_header_windows_h="no" 16873 16874fi 16875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16876 16877fi 16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 16879$as_echo "$ac_cv_header_windows_h" >&6; } 16880 case "$ac_cv_header_windows_h" in 16881 yes) 16882 16883cat >>confdefs.h <<_ACEOF 16884#define HAVE_WINDOWS_H 1 16885_ACEOF 16886 16887 16888cat >>confdefs.h <<_ACEOF 16889#define WIN32_LEAN_AND_MEAN 1 16890_ACEOF 16891 16892 ;; 16893 esac 16894 16895 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 16897$as_echo_n "checking whether build target is a native Windows one... " >&6; } 16898if ${ac_cv_native_windows+:} false; then : 16899 $as_echo_n "(cached) " >&6 16900else 16901 16902 if test "$ac_cv_header_windows_h" = "no"; then 16903 ac_cv_native_windows="no" 16904 else 16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16906/* end confdefs.h. */ 16907 16908 16909 16910int main (void) 16911{ 16912 16913#if defined(__MINGW32__) || defined(__MINGW32CE__) || \ 16914 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))) 16915 int dummy=1; 16916#else 16917 Not a native Windows build target. 16918#endif 16919 16920 ; 16921 return 0; 16922} 16923 16924_ACEOF 16925if ac_fn_c_try_compile "$LINENO"; then : 16926 16927 ac_cv_native_windows="yes" 16928 16929else 16930 16931 ac_cv_native_windows="no" 16932 16933fi 16934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16935 fi 16936 16937fi 16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5 16939$as_echo "$ac_cv_native_windows" >&6; } 16940 case "$ac_cv_native_windows" in 16941 yes) 16942 16943cat >>confdefs.h <<_ACEOF 16944#define NATIVE_WINDOWS 1 16945_ACEOF 16946 16947 ;; 16948 esac 16949 16950case X-"$ac_cv_native_windows" in 16951 X-yes) 16952 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 16954$as_echo_n "checking for winsock.h... " >&6; } 16955if ${ac_cv_header_winsock_h+:} false; then : 16956 $as_echo_n "(cached) " >&6 16957else 16958 16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16960/* end confdefs.h. */ 16961 16962 16963#undef inline 16964#ifndef WIN32_LEAN_AND_MEAN 16965#define WIN32_LEAN_AND_MEAN 16966#endif 16967#include <windows.h> 16968#include <winsock.h> 16969 16970int main (void) 16971{ 16972 16973#if defined(__CYGWIN__) || defined(__CEGCC__) 16974 HAVE_WINSOCK_H shall not be defined. 16975#else 16976 int dummy=WSACleanup(); 16977#endif 16978 16979 ; 16980 return 0; 16981} 16982 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO"; then : 16985 16986 ac_cv_header_winsock_h="yes" 16987 16988else 16989 16990 ac_cv_header_winsock_h="no" 16991 16992fi 16993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16994 16995fi 16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5 16997$as_echo "$ac_cv_header_winsock_h" >&6; } 16998 case "$ac_cv_header_winsock_h" in 16999 yes) 17000 17001cat >>confdefs.h <<_ACEOF 17002#define HAVE_WINSOCK_H 1 17003_ACEOF 17004 17005 ;; 17006 esac 17007 17008 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 17010$as_echo_n "checking for winsock2.h... " >&6; } 17011if ${ac_cv_header_winsock2_h+:} false; then : 17012 $as_echo_n "(cached) " >&6 17013else 17014 17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17016/* end confdefs.h. */ 17017 17018 17019#undef inline 17020#ifndef WIN32_LEAN_AND_MEAN 17021#define WIN32_LEAN_AND_MEAN 17022#endif 17023#include <windows.h> 17024#include <winsock2.h> 17025 17026int main (void) 17027{ 17028 17029#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 17030 HAVE_WINSOCK2_H shall not be defined. 17031#else 17032 int dummy=2*IPPROTO_ESP; 17033#endif 17034 17035 ; 17036 return 0; 17037} 17038 17039_ACEOF 17040if ac_fn_c_try_compile "$LINENO"; then : 17041 17042 ac_cv_header_winsock2_h="yes" 17043 17044else 17045 17046 ac_cv_header_winsock2_h="no" 17047 17048fi 17049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17050 17051fi 17052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 17053$as_echo "$ac_cv_header_winsock2_h" >&6; } 17054 case "$ac_cv_header_winsock2_h" in 17055 yes) 17056 17057cat >>confdefs.h <<_ACEOF 17058#define HAVE_WINSOCK2_H 1 17059_ACEOF 17060 17061 ;; 17062 esac 17063 17064 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 17066$as_echo_n "checking for ws2tcpip.h... " >&6; } 17067if ${ac_cv_header_ws2tcpip_h+:} false; then : 17068 $as_echo_n "(cached) " >&6 17069else 17070 17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072/* end confdefs.h. */ 17073 17074 17075#undef inline 17076#ifndef WIN32_LEAN_AND_MEAN 17077#define WIN32_LEAN_AND_MEAN 17078#endif 17079#include <windows.h> 17080#include <winsock2.h> 17081#include <ws2tcpip.h> 17082 17083int main (void) 17084{ 17085 17086#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 17087 HAVE_WS2TCPIP_H shall not be defined. 17088#else 17089 int dummy=2*IP_PKTINFO; 17090#endif 17091 17092 ; 17093 return 0; 17094} 17095 17096_ACEOF 17097if ac_fn_c_try_compile "$LINENO"; then : 17098 17099 ac_cv_header_ws2tcpip_h="yes" 17100 17101else 17102 17103 ac_cv_header_ws2tcpip_h="no" 17104 17105fi 17106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17107 17108fi 17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5 17110$as_echo "$ac_cv_header_ws2tcpip_h" >&6; } 17111 case "$ac_cv_header_ws2tcpip_h" in 17112 yes) 17113 17114cat >>confdefs.h <<_ACEOF 17115#define HAVE_WS2TCPIP_H 1 17116_ACEOF 17117 17118 ;; 17119 esac 17120 17121 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5 17123$as_echo_n "checking for winldap.h... " >&6; } 17124if ${ac_cv_header_winldap_h+:} false; then : 17125 $as_echo_n "(cached) " >&6 17126else 17127 17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17129/* end confdefs.h. */ 17130 17131 17132#undef inline 17133#ifdef HAVE_WINDOWS_H 17134#ifndef WIN32_LEAN_AND_MEAN 17135#define WIN32_LEAN_AND_MEAN 17136#endif 17137#include <windows.h> 17138#endif 17139#include <winldap.h> 17140 17141int main (void) 17142{ 17143 17144#if defined(__CYGWIN__) || defined(__CEGCC__) 17145 HAVE_WINLDAP_H shall not be defined. 17146#else 17147 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 17148 ULONG res = ldap_unbind(ldp); 17149#endif 17150 17151 ; 17152 return 0; 17153} 17154 17155_ACEOF 17156if ac_fn_c_try_compile "$LINENO"; then : 17157 17158 ac_cv_header_winldap_h="yes" 17159 17160else 17161 17162 ac_cv_header_winldap_h="no" 17163 17164fi 17165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17166 17167fi 17168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5 17169$as_echo "$ac_cv_header_winldap_h" >&6; } 17170 case "$ac_cv_header_winldap_h" in 17171 yes) 17172 17173cat >>confdefs.h <<_ACEOF 17174#define HAVE_WINLDAP_H 1 17175_ACEOF 17176 17177 ;; 17178 esac 17179 17180 17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5 17182$as_echo_n "checking for winber.h... " >&6; } 17183if ${ac_cv_header_winber_h+:} false; then : 17184 $as_echo_n "(cached) " >&6 17185else 17186 17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17188/* end confdefs.h. */ 17189 17190 17191#undef inline 17192#ifdef HAVE_WINDOWS_H 17193#ifndef WIN32_LEAN_AND_MEAN 17194#define WIN32_LEAN_AND_MEAN 17195#endif 17196#include <windows.h> 17197#endif 17198#include <winldap.h> 17199#include <winber.h> 17200 17201int main (void) 17202{ 17203 17204#if defined(__CYGWIN__) || defined(__CEGCC__) 17205 HAVE_WINBER_H shall not be defined. 17206#else 17207 BERVAL *bvp = NULL; 17208 BerElement *bep = ber_init(bvp); 17209 ber_free(bep, 1); 17210#endif 17211 17212 ; 17213 return 0; 17214} 17215 17216_ACEOF 17217if ac_fn_c_try_compile "$LINENO"; then : 17218 17219 ac_cv_header_winber_h="yes" 17220 17221else 17222 17223 ac_cv_header_winber_h="no" 17224 17225fi 17226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17227 17228fi 17229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5 17230$as_echo "$ac_cv_header_winber_h" >&6; } 17231 case "$ac_cv_header_winber_h" in 17232 yes) 17233 17234cat >>confdefs.h <<_ACEOF 17235#define HAVE_WINBER_H 1 17236_ACEOF 17237 17238 ;; 17239 esac 17240 17241 ;; 17242 *) 17243 ac_cv_header_winsock_h="no" 17244 ac_cv_header_winsock2_h="no" 17245 ac_cv_header_ws2tcpip_h="no" 17246 ac_cv_header_winldap_h="no" 17247 ac_cv_header_winber_h="no" 17248 ;; 17249esac 17250 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5 17252$as_echo_n "checking whether build target supports WIN32 file API... " >&6; } 17253 curl_win32_file_api="no" 17254 if test "$ac_cv_header_windows_h" = "yes"; then 17255 if test x"$enable_largefile" != "xno"; then 17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17257/* end confdefs.h. */ 17258 17259 17260 17261int main (void) 17262{ 17263 17264#if !defined(_WIN32_WCE) && \ 17265 (defined(__MINGW32__) || \ 17266 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))) 17267 int dummy=1; 17268#else 17269 WIN32 large file API not supported. 17270#endif 17271 17272 ; 17273 return 0; 17274} 17275 17276_ACEOF 17277if ac_fn_c_try_compile "$LINENO"; then : 17278 17279 curl_win32_file_api="win32_large_files" 17280 17281fi 17282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17283 fi 17284 if test "$curl_win32_file_api" = "no"; then 17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17286/* end confdefs.h. */ 17287 17288 17289 17290int main (void) 17291{ 17292 17293#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER) 17294 int dummy=1; 17295#else 17296 WIN32 small file API not supported. 17297#endif 17298 17299 ; 17300 return 0; 17301} 17302 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO"; then : 17305 17306 curl_win32_file_api="win32_small_files" 17307 17308fi 17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17310 fi 17311 fi 17312 case "$curl_win32_file_api" in 17313 win32_large_files) 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 17315$as_echo "yes (large file enabled)" >&6; } 17316 17317cat >>confdefs.h <<_ACEOF 17318#define USE_WIN32_LARGE_FILES 1 17319_ACEOF 17320 17321 ;; 17322 win32_small_files) 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 17324$as_echo "yes (large file disabled)" >&6; } 17325 17326cat >>confdefs.h <<_ACEOF 17327#define USE_WIN32_SMALL_FILES 1 17328_ACEOF 17329 17330 ;; 17331 *) 17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17333$as_echo "no" >&6; } 17334 ;; 17335 esac 17336 17337 17338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 17339$as_echo_n "checking whether to support http... " >&6; } 17340# Check whether --enable-http was given. 17341if test "${enable_http+set}" = set; then : 17342 enableval=$enable_http; case "$enableval" in 17343 no) 17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17345$as_echo "no" >&6; } 17346 17347$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h 17348 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5 17350$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;} 17351 CURL_DISABLE_HTTP=1 17352 17353 17354$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 17355 17356 CURL_DISABLE_RTSP=1 17357 17358 ;; 17359 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17360$as_echo "yes" >&6; } 17361 ;; 17362 esac 17363else 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17365$as_echo "yes" >&6; } 17366 17367fi 17368 17369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 17370$as_echo_n "checking whether to support ftp... " >&6; } 17371# Check whether --enable-ftp was given. 17372if test "${enable_ftp+set}" = set; then : 17373 enableval=$enable_ftp; case "$enableval" in 17374 no) 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17376$as_echo "no" >&6; } 17377 17378$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h 17379 17380 CURL_DISABLE_FTP=1 17381 17382 ;; 17383 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17384$as_echo "yes" >&6; } 17385 ;; 17386 esac 17387else 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17389$as_echo "yes" >&6; } 17390 17391fi 17392 17393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 17394$as_echo_n "checking whether to support file... " >&6; } 17395# Check whether --enable-file was given. 17396if test "${enable_file+set}" = set; then : 17397 enableval=$enable_file; case "$enableval" in 17398 no) 17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17400$as_echo "no" >&6; } 17401 17402$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h 17403 17404 CURL_DISABLE_FILE=1 17405 17406 ;; 17407 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17408$as_echo "yes" >&6; } 17409 ;; 17410 esac 17411else 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17413$as_echo "yes" >&6; } 17414 17415fi 17416 17417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 17418$as_echo_n "checking whether to support ldap... " >&6; } 17419# Check whether --enable-ldap was given. 17420if test "${enable_ldap+set}" = set; then : 17421 enableval=$enable_ldap; case "$enableval" in 17422 no) 17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17424$as_echo "no" >&6; } 17425 17426$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 17427 17428 CURL_DISABLE_LDAP=1 17429 17430 ;; 17431 *) 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17433$as_echo "yes" >&6; } 17434 ;; 17435 esac 17436else 17437 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17439$as_echo "yes" >&6; } 17440 17441fi 17442 17443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 17444$as_echo_n "checking whether to support ldaps... " >&6; } 17445# Check whether --enable-ldaps was given. 17446if test "${enable_ldaps+set}" = set; then : 17447 enableval=$enable_ldaps; case "$enableval" in 17448 no) 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17450$as_echo "no" >&6; } 17451 17452$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 17453 17454 CURL_DISABLE_LDAPS=1 17455 17456 ;; 17457 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 17459$as_echo "LDAP needs to be enabled to support LDAPS" >&6; } 17460 17461$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 17462 17463 CURL_DISABLE_LDAPS=1 17464 17465 else 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17467$as_echo "yes" >&6; } 17468 17469$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 17470 17471 HAVE_LDAP_SSL=1 17472 17473 fi 17474 ;; 17475 esac 17476else 17477 17478 if test "x$CURL_DISABLE_LDAP" = "x1" ; then 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17480$as_echo "no" >&6; } 17481 17482$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 17483 17484 CURL_DISABLE_LDAPS=1 17485 17486 else 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17488$as_echo "yes" >&6; } 17489 17490$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 17491 17492 HAVE_LDAP_SSL=1 17493 17494 fi 17495 17496fi 17497 17498 17499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 17500$as_echo_n "checking whether to support rtsp... " >&6; } 17501# Check whether --enable-rtsp was given. 17502if test "${enable_rtsp+set}" = set; then : 17503 enableval=$enable_rtsp; case "$enableval" in 17504 no) 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17506$as_echo "no" >&6; } 17507 17508$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 17509 17510 CURL_DISABLE_RTSP=1 17511 17512 ;; 17513 *) if test x$CURL_DISABLE_HTTP = x1 ; then 17514 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 17515 else 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17517$as_echo "yes" >&6; } 17518 curl_rtsp_msg="enabled" 17519 fi 17520 ;; 17521 esac 17522else 17523 if test "x$CURL_DISABLE_HTTP" != "x1"; then 17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17525$as_echo "yes" >&6; } 17526 curl_rtsp_msg="enabled" 17527 else 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17529$as_echo "no" >&6; } 17530 fi 17531 17532fi 17533 17534 17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 17536$as_echo_n "checking whether to support proxies... " >&6; } 17537# Check whether --enable-proxy was given. 17538if test "${enable_proxy+set}" = set; then : 17539 enableval=$enable_proxy; case "$enableval" in 17540 no) 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17542$as_echo "no" >&6; } 17543 17544$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h 17545 17546 CURL_DISABLE_PROXY=1 17547 17548 ;; 17549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17550$as_echo "yes" >&6; } 17551 ;; 17552 esac 17553else 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17555$as_echo "yes" >&6; } 17556 17557fi 17558 17559 17560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 17561$as_echo_n "checking whether to support dict... " >&6; } 17562# Check whether --enable-dict was given. 17563if test "${enable_dict+set}" = set; then : 17564 enableval=$enable_dict; case "$enableval" in 17565 no) 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17567$as_echo "no" >&6; } 17568 17569$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h 17570 17571 CURL_DISABLE_DICT=1 17572 17573 ;; 17574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17575$as_echo "yes" >&6; } 17576 ;; 17577 esac 17578else 17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17580$as_echo "yes" >&6; } 17581 17582fi 17583 17584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 17585$as_echo_n "checking whether to support telnet... " >&6; } 17586# Check whether --enable-telnet was given. 17587if test "${enable_telnet+set}" = set; then : 17588 enableval=$enable_telnet; case "$enableval" in 17589 no) 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17591$as_echo "no" >&6; } 17592 17593$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h 17594 17595 CURL_DISABLE_TELNET=1 17596 17597 ;; 17598 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17599$as_echo "yes" >&6; } 17600 ;; 17601 esac 17602else 17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17604$as_echo "yes" >&6; } 17605 17606fi 17607 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 17609$as_echo_n "checking whether to support tftp... " >&6; } 17610# Check whether --enable-tftp was given. 17611if test "${enable_tftp+set}" = set; then : 17612 enableval=$enable_tftp; case "$enableval" in 17613 no) 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17615$as_echo "no" >&6; } 17616 17617$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h 17618 17619 CURL_DISABLE_TFTP=1 17620 17621 ;; 17622 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17623$as_echo "yes" >&6; } 17624 ;; 17625 esac 17626else 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17628$as_echo "yes" >&6; } 17629 17630fi 17631 17632 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 17634$as_echo_n "checking whether to support pop3... " >&6; } 17635# Check whether --enable-pop3 was given. 17636if test "${enable_pop3+set}" = set; then : 17637 enableval=$enable_pop3; case "$enableval" in 17638 no) 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17640$as_echo "no" >&6; } 17641 17642$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h 17643 17644 CURL_DISABLE_POP3=1 17645 17646 ;; 17647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17648$as_echo "yes" >&6; } 17649 ;; 17650 esac 17651else 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17653$as_echo "yes" >&6; } 17654 17655fi 17656 17657 17658 17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 17660$as_echo_n "checking whether to support imap... " >&6; } 17661# Check whether --enable-imap was given. 17662if test "${enable_imap+set}" = set; then : 17663 enableval=$enable_imap; case "$enableval" in 17664 no) 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17666$as_echo "no" >&6; } 17667 17668$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h 17669 17670 CURL_DISABLE_IMAP=1 17671 17672 ;; 17673 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17674$as_echo "yes" >&6; } 17675 ;; 17676 esac 17677else 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17679$as_echo "yes" >&6; } 17680 17681fi 17682 17683 17684 17685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 17686$as_echo_n "checking whether to support smtp... " >&6; } 17687# Check whether --enable-smtp was given. 17688if test "${enable_smtp+set}" = set; then : 17689 enableval=$enable_smtp; case "$enableval" in 17690 no) 17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17692$as_echo "no" >&6; } 17693 17694$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h 17695 17696 CURL_DISABLE_SMTP=1 17697 17698 ;; 17699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17700$as_echo "yes" >&6; } 17701 ;; 17702 esac 17703else 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17705$as_echo "yes" >&6; } 17706 17707fi 17708 17709 17710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 17711$as_echo_n "checking whether to support gopher... " >&6; } 17712# Check whether --enable-gopher was given. 17713if test "${enable_gopher+set}" = set; then : 17714 enableval=$enable_gopher; case "$enableval" in 17715 no) 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17717$as_echo "no" >&6; } 17718 17719$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h 17720 17721 CURL_DISABLE_GOPHER=1 17722 17723 ;; 17724 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17725$as_echo "yes" >&6; } 17726 ;; 17727 esac 17728else 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17730$as_echo "yes" >&6; } 17731 17732fi 17733 17734 17735 17736 17737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 17738$as_echo_n "checking whether to provide built-in manual... " >&6; } 17739# Check whether --enable-manual was given. 17740if test "${enable_manual+set}" = set; then : 17741 enableval=$enable_manual; case "$enableval" in 17742 no) 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17744$as_echo "no" >&6; } 17745 ;; 17746 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17747$as_echo "yes" >&6; } 17748 USE_MANUAL="1" 17749 ;; 17750 esac 17751else 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17753$as_echo "yes" >&6; } 17754 USE_MANUAL="1" 17755 17756fi 17757 17758 17759 17760 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 17762$as_echo_n "checking if X/Open network library is required... " >&6; } 17763 tst_lib_xnet_required="no" 17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17765/* end confdefs.h. */ 17766 17767 17768int main (void) 17769{ 17770#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 17771 return 0; 17772#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 17773 return 0; 17774#else 17775 force compilation error 17776#endif 17777} 17778 17779 17780_ACEOF 17781if ac_fn_c_try_compile "$LINENO"; then : 17782 17783 tst_lib_xnet_required="yes" 17784 LIBS="$LIBS -lxnet" 17785 17786fi 17787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 17789$as_echo "$tst_lib_xnet_required" >&6; } 17790 17791 17792ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17793if test "x$ac_cv_func_gethostbyname" = xyes; then : 17794 HAVE_GETHOSTBYNAME="1" 17795 17796else 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17798$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17799if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 17800 $as_echo_n "(cached) " >&6 17801else 17802 ac_check_lib_save_LIBS=$LIBS 17803LIBS="-lnsl $LIBS" 17804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17805/* end confdefs.h. */ 17806 17807 17808#ifdef __cplusplus 17809extern "C" 17810#endif 17811char gethostbyname (); 17812int main (void) 17813{ 17814return gethostbyname (); 17815 ; 17816 return 0; 17817} 17818_ACEOF 17819if ac_fn_c_try_link "$LINENO"; then : 17820 ac_cv_lib_nsl_gethostbyname=yes 17821else 17822 ac_cv_lib_nsl_gethostbyname=no 17823fi 17824rm -f core conftest.err conftest.$ac_objext \ 17825 conftest$ac_exeext conftest.$ac_ext 17826LIBS=$ac_check_lib_save_LIBS 17827fi 17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17829$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17830if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 17831 HAVE_GETHOSTBYNAME="1" 17832 LIBS="$LIBS -lnsl" 17833 17834fi 17835 17836 17837fi 17838 17839 17840if test "$HAVE_GETHOSTBYNAME" != "1" 17841then 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 17843$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 17844if ${ac_cv_lib_socket_gethostbyname+:} false; then : 17845 $as_echo_n "(cached) " >&6 17846else 17847 ac_check_lib_save_LIBS=$LIBS 17848LIBS="-lsocket $LIBS" 17849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17850/* end confdefs.h. */ 17851 17852 17853#ifdef __cplusplus 17854extern "C" 17855#endif 17856char gethostbyname (); 17857int main (void) 17858{ 17859return gethostbyname (); 17860 ; 17861 return 0; 17862} 17863_ACEOF 17864if ac_fn_c_try_link "$LINENO"; then : 17865 ac_cv_lib_socket_gethostbyname=yes 17866else 17867 ac_cv_lib_socket_gethostbyname=no 17868fi 17869rm -f core conftest.err conftest.$ac_objext \ 17870 conftest$ac_exeext conftest.$ac_ext 17871LIBS=$ac_check_lib_save_LIBS 17872fi 17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 17874$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 17875if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : 17876 HAVE_GETHOSTBYNAME="1" 17877 LIBS="$LIBS -lsocket" 17878 17879fi 17880 17881fi 17882 17883if test "$HAVE_GETHOSTBYNAME" != "1" 17884then 17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 17886$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; } 17887 my_ac_save_LIBS=$LIBS 17888 LIBS="-lnsl -lsocket $LIBS" 17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17890/* end confdefs.h. */ 17891 17892 17893 17894int main (void) 17895{ 17896 17897 gethostbyname(); 17898 17899 ; 17900 return 0; 17901} 17902 17903_ACEOF 17904if ac_fn_c_try_link "$LINENO"; then : 17905 17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17907$as_echo "yes" >&6; } 17908 HAVE_GETHOSTBYNAME="1" 17909 17910else 17911 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17913$as_echo "no" >&6; } 17914 LIBS=$my_ac_save_LIBS 17915 17916fi 17917rm -f core conftest.err conftest.$ac_objext \ 17918 conftest$ac_exeext conftest.$ac_ext 17919fi 17920 17921if test "$HAVE_GETHOSTBYNAME" != "1" 17922then 17923 if test "$ac_cv_header_windows_h" = "yes"; then 17924 if test "$ac_cv_header_winsock_h" = "yes"; then 17925 case $host in 17926 *-*-mingw32ce*) 17927 winsock_LIB="-lwinsock" 17928 ;; 17929 *) 17930 winsock_LIB="-lwsock32" 17931 ;; 17932 esac 17933 fi 17934 if test "$ac_cv_header_winsock2_h" = "yes"; then 17935 winsock_LIB="-lws2_32" 17936 fi 17937 if test ! -z "$winsock_LIB"; then 17938 my_ac_save_LIBS=$LIBS 17939 LIBS="$winsock_LIB $LIBS" 17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 17941$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; } 17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943/* end confdefs.h. */ 17944 17945 17946#ifdef HAVE_WINDOWS_H 17947#ifndef WIN32_LEAN_AND_MEAN 17948#define WIN32_LEAN_AND_MEAN 17949#endif 17950#include <windows.h> 17951#ifdef HAVE_WINSOCK2_H 17952#include <winsock2.h> 17953#else 17954#ifdef HAVE_WINSOCK_H 17955#include <winsock.h> 17956#endif 17957#endif 17958#endif 17959 17960int main (void) 17961{ 17962 17963 gethostbyname("www.dummysite.com"); 17964 17965 ; 17966 return 0; 17967} 17968 17969_ACEOF 17970if ac_fn_c_try_link "$LINENO"; then : 17971 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17973$as_echo "yes" >&6; } 17974 HAVE_GETHOSTBYNAME="1" 17975 17976else 17977 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17979$as_echo "no" >&6; } 17980 winsock_LIB="" 17981 LIBS=$my_ac_save_LIBS 17982 17983fi 17984rm -f core conftest.err conftest.$ac_objext \ 17985 conftest$ac_exeext conftest.$ac_ext 17986 fi 17987 fi 17988fi 17989 17990if test "$HAVE_GETHOSTBYNAME" != "1" 17991then 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 17993$as_echo_n "checking for gethostbyname for Minix 3... " >&6; } 17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17995/* end confdefs.h. */ 17996 17997 17998/* Older Minix versions may need <net/gen/netdb.h> here instead */ 17999#include <netdb.h> 18000 18001int main (void) 18002{ 18003 18004 gethostbyname("www.dummysite.com"); 18005 18006 ; 18007 return 0; 18008} 18009 18010_ACEOF 18011if ac_fn_c_try_link "$LINENO"; then : 18012 18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18014$as_echo "yes" >&6; } 18015 HAVE_GETHOSTBYNAME="1" 18016 18017else 18018 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18020$as_echo "no" >&6; } 18021 18022fi 18023rm -f core conftest.err conftest.$ac_objext \ 18024 conftest$ac_exeext conftest.$ac_ext 18025fi 18026 18027if test "$HAVE_GETHOSTBYNAME" != "1" 18028then 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 18030$as_echo_n "checking for gethostbyname for eCos... " >&6; } 18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18032/* end confdefs.h. */ 18033 18034 18035#include <stdio.h> 18036#include <netdb.h> 18037 18038int main (void) 18039{ 18040 18041 gethostbyname("www.dummysite.com"); 18042 18043 ; 18044 return 0; 18045} 18046 18047_ACEOF 18048if ac_fn_c_try_link "$LINENO"; then : 18049 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18051$as_echo "yes" >&6; } 18052 HAVE_GETHOSTBYNAME="1" 18053 18054else 18055 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18057$as_echo "no" >&6; } 18058 18059fi 18060rm -f core conftest.err conftest.$ac_objext \ 18061 conftest$ac_exeext conftest.$ac_ext 18062fi 18063 18064if test "$HAVE_GETHOSTBYNAME" != "1" 18065then 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 18067$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; } 18068if ${ac_cv_lib_network_gethostbyname+:} false; then : 18069 $as_echo_n "(cached) " >&6 18070else 18071 ac_check_lib_save_LIBS=$LIBS 18072LIBS="-lnetwork $LIBS" 18073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18074/* end confdefs.h. */ 18075 18076 18077#ifdef __cplusplus 18078extern "C" 18079#endif 18080char gethostbyname (); 18081int main (void) 18082{ 18083return gethostbyname (); 18084 ; 18085 return 0; 18086} 18087_ACEOF 18088if ac_fn_c_try_link "$LINENO"; then : 18089 ac_cv_lib_network_gethostbyname=yes 18090else 18091 ac_cv_lib_network_gethostbyname=no 18092fi 18093rm -f core conftest.err conftest.$ac_objext \ 18094 conftest$ac_exeext conftest.$ac_ext 18095LIBS=$ac_check_lib_save_LIBS 18096fi 18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 18098$as_echo "$ac_cv_lib_network_gethostbyname" >&6; } 18099if test "x$ac_cv_lib_network_gethostbyname" = xyes; then : 18100 HAVE_GETHOSTBYNAME="1" 18101 LIBS="$LIBS -lnetwork" 18102 18103fi 18104 18105fi 18106 18107if test "$HAVE_GETHOSTBYNAME" != "1" 18108then 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5 18110$as_echo_n "checking for gethostbyname in -lnet... " >&6; } 18111if ${ac_cv_lib_net_gethostbyname+:} false; then : 18112 $as_echo_n "(cached) " >&6 18113else 18114 ac_check_lib_save_LIBS=$LIBS 18115LIBS="-lnet $LIBS" 18116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18117/* end confdefs.h. */ 18118 18119 18120#ifdef __cplusplus 18121extern "C" 18122#endif 18123char gethostbyname (); 18124int main (void) 18125{ 18126return gethostbyname (); 18127 ; 18128 return 0; 18129} 18130_ACEOF 18131if ac_fn_c_try_link "$LINENO"; then : 18132 ac_cv_lib_net_gethostbyname=yes 18133else 18134 ac_cv_lib_net_gethostbyname=no 18135fi 18136rm -f core conftest.err conftest.$ac_objext \ 18137 conftest$ac_exeext conftest.$ac_ext 18138LIBS=$ac_check_lib_save_LIBS 18139fi 18140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5 18141$as_echo "$ac_cv_lib_net_gethostbyname" >&6; } 18142if test "x$ac_cv_lib_net_gethostbyname" = xyes; then : 18143 HAVE_GETHOSTBYNAME="1" 18144 LIBS="$LIBS -lnet" 18145 18146fi 18147 18148fi 18149 18150 18151if test "$HAVE_GETHOSTBYNAME" != "1"; then 18152 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5 18153fi 18154 18155ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 18156if test "x$ac_cv_func_strcasecmp" = xyes; then : 18157 18158else 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5 18160$as_echo_n "checking for strcasecmp in -lresolve... " >&6; } 18161if ${ac_cv_lib_resolve_strcasecmp+:} false; then : 18162 $as_echo_n "(cached) " >&6 18163else 18164 ac_check_lib_save_LIBS=$LIBS 18165LIBS="-lresolve $LIBS" 18166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167/* end confdefs.h. */ 18168 18169 18170#ifdef __cplusplus 18171extern "C" 18172#endif 18173char strcasecmp (); 18174int main (void) 18175{ 18176return strcasecmp (); 18177 ; 18178 return 0; 18179} 18180_ACEOF 18181if ac_fn_c_try_link "$LINENO"; then : 18182 ac_cv_lib_resolve_strcasecmp=yes 18183else 18184 ac_cv_lib_resolve_strcasecmp=no 18185fi 18186rm -f core conftest.err conftest.$ac_objext \ 18187 conftest$ac_exeext conftest.$ac_ext 18188LIBS=$ac_check_lib_save_LIBS 18189fi 18190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5 18191$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; } 18192if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then : 18193 cat >>confdefs.h <<_ACEOF 18194#define HAVE_LIBRESOLVE 1 18195_ACEOF 18196 18197 LIBS="-lresolve $LIBS" 18198 18199fi 18200 18201fi 18202 18203 18204if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5 18206$as_echo_n "checking for strcasecmp in -lresolve... " >&6; } 18207if ${ac_cv_lib_resolve_strcasecmp+:} false; then : 18208 $as_echo_n "(cached) " >&6 18209else 18210 ac_check_lib_save_LIBS=$LIBS 18211LIBS="-lresolve -lnsl $LIBS" 18212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18213/* end confdefs.h. */ 18214 18215 18216#ifdef __cplusplus 18217extern "C" 18218#endif 18219char strcasecmp (); 18220int main (void) 18221{ 18222return strcasecmp (); 18223 ; 18224 return 0; 18225} 18226_ACEOF 18227if ac_fn_c_try_link "$LINENO"; then : 18228 ac_cv_lib_resolve_strcasecmp=yes 18229else 18230 ac_cv_lib_resolve_strcasecmp=no 18231fi 18232rm -f core conftest.err conftest.$ac_objext \ 18233 conftest$ac_exeext conftest.$ac_ext 18234LIBS=$ac_check_lib_save_LIBS 18235fi 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5 18237$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; } 18238if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then : 18239 LIBS="-lresolve $LIBS" 18240fi 18241 18242fi 18243ac_cv_func_strcasecmp="no" 18244 18245 18246curl_includes_winsock2="\ 18247/* includes start */ 18248#ifdef HAVE_WINDOWS_H 18249# ifndef WIN32_LEAN_AND_MEAN 18250# define WIN32_LEAN_AND_MEAN 18251# endif 18252# include <windows.h> 18253# ifdef HAVE_WINSOCK2_H 18254# include <winsock2.h> 18255# else 18256# ifdef HAVE_WINSOCK_H 18257# include <winsock.h> 18258# endif 18259# endif 18260#endif 18261/* includes end */" 18262 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 18264$as_echo_n "checking for windows.h... " >&6; } 18265if ${ac_cv_header_windows_h+:} false; then : 18266 $as_echo_n "(cached) " >&6 18267else 18268 18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271 18272 18273#undef inline 18274#ifndef WIN32_LEAN_AND_MEAN 18275#define WIN32_LEAN_AND_MEAN 18276#endif 18277#include <windows.h> 18278 18279int main (void) 18280{ 18281 18282#if defined(__CYGWIN__) || defined(__CEGCC__) 18283 HAVE_WINDOWS_H shall not be defined. 18284#else 18285 int dummy=2*WINVER; 18286#endif 18287 18288 ; 18289 return 0; 18290} 18291 18292_ACEOF 18293if ac_fn_c_try_compile "$LINENO"; then : 18294 18295 ac_cv_header_windows_h="yes" 18296 18297else 18298 18299 ac_cv_header_windows_h="no" 18300 18301fi 18302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18303 18304fi 18305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 18306$as_echo "$ac_cv_header_windows_h" >&6; } 18307 case "$ac_cv_header_windows_h" in 18308 yes) 18309 18310cat >>confdefs.h <<_ACEOF 18311#define HAVE_WINDOWS_H 1 18312_ACEOF 18313 18314 18315cat >>confdefs.h <<_ACEOF 18316#define WIN32_LEAN_AND_MEAN 1 18317_ACEOF 18318 18319 ;; 18320 esac 18321 18322 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 18324$as_echo_n "checking for winsock.h... " >&6; } 18325if ${ac_cv_header_winsock_h+:} false; then : 18326 $as_echo_n "(cached) " >&6 18327else 18328 18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18330/* end confdefs.h. */ 18331 18332 18333#undef inline 18334#ifndef WIN32_LEAN_AND_MEAN 18335#define WIN32_LEAN_AND_MEAN 18336#endif 18337#include <windows.h> 18338#include <winsock.h> 18339 18340int main (void) 18341{ 18342 18343#if defined(__CYGWIN__) || defined(__CEGCC__) 18344 HAVE_WINSOCK_H shall not be defined. 18345#else 18346 int dummy=WSACleanup(); 18347#endif 18348 18349 ; 18350 return 0; 18351} 18352 18353_ACEOF 18354if ac_fn_c_try_compile "$LINENO"; then : 18355 18356 ac_cv_header_winsock_h="yes" 18357 18358else 18359 18360 ac_cv_header_winsock_h="no" 18361 18362fi 18363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18364 18365fi 18366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5 18367$as_echo "$ac_cv_header_winsock_h" >&6; } 18368 case "$ac_cv_header_winsock_h" in 18369 yes) 18370 18371cat >>confdefs.h <<_ACEOF 18372#define HAVE_WINSOCK_H 1 18373_ACEOF 18374 18375 ;; 18376 esac 18377 18378 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 18380$as_echo_n "checking for winsock2.h... " >&6; } 18381if ${ac_cv_header_winsock2_h+:} false; then : 18382 $as_echo_n "(cached) " >&6 18383else 18384 18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18386/* end confdefs.h. */ 18387 18388 18389#undef inline 18390#ifndef WIN32_LEAN_AND_MEAN 18391#define WIN32_LEAN_AND_MEAN 18392#endif 18393#include <windows.h> 18394#include <winsock2.h> 18395 18396int main (void) 18397{ 18398 18399#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 18400 HAVE_WINSOCK2_H shall not be defined. 18401#else 18402 int dummy=2*IPPROTO_ESP; 18403#endif 18404 18405 ; 18406 return 0; 18407} 18408 18409_ACEOF 18410if ac_fn_c_try_compile "$LINENO"; then : 18411 18412 ac_cv_header_winsock2_h="yes" 18413 18414else 18415 18416 ac_cv_header_winsock2_h="no" 18417 18418fi 18419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18420 18421fi 18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 18423$as_echo "$ac_cv_header_winsock2_h" >&6; } 18424 case "$ac_cv_header_winsock2_h" in 18425 yes) 18426 18427cat >>confdefs.h <<_ACEOF 18428#define HAVE_WINSOCK2_H 1 18429_ACEOF 18430 18431 ;; 18432 esac 18433 18434 18435 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 18437$as_echo_n "checking for connect in libraries... " >&6; } 18438 tst_connect_save_LIBS="$LIBS" 18439 tst_connect_need_LIBS="unknown" 18440 for tst_lib in '' '-lsocket' ; do 18441 if test "$tst_connect_need_LIBS" = "unknown"; then 18442 LIBS="$tst_lib $tst_connect_save_LIBS" 18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18444/* end confdefs.h. */ 18445 18446 18447 $curl_includes_winsock2 18448 #ifndef HAVE_WINDOWS_H 18449 int connect(int, void*, int); 18450 #endif 18451 18452int main (void) 18453{ 18454 18455 if(0 != connect(0, 0, 0)) 18456 return 1; 18457 18458 ; 18459 return 0; 18460} 18461 18462_ACEOF 18463if ac_fn_c_try_link "$LINENO"; then : 18464 18465 tst_connect_need_LIBS="$tst_lib" 18466 18467fi 18468rm -f core conftest.err conftest.$ac_objext \ 18469 conftest$ac_exeext conftest.$ac_ext 18470 fi 18471 done 18472 LIBS="$tst_connect_save_LIBS" 18473 # 18474 case X-"$tst_connect_need_LIBS" in 18475 X-unknown) 18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 18477$as_echo "cannot find connect" >&6; } 18478 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 18479 ;; 18480 X-) 18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18482$as_echo "yes" >&6; } 18483 ;; 18484 *) 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 18486$as_echo "$tst_connect_need_LIBS" >&6; } 18487 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 18488 ;; 18489 esac 18490 18491 18492CURL_NETWORK_LIBS=$LIBS 18493 18494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 18495$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 18496if ${ac_cv_header_time+:} false; then : 18497 $as_echo_n "(cached) " >&6 18498else 18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18500/* end confdefs.h. */ 18501#include <sys/types.h> 18502#include <sys/time.h> 18503#include <time.h> 18504 18505int main (void) 18506{ 18507if ((struct tm *) 0) 18508return 0; 18509 ; 18510 return 0; 18511} 18512_ACEOF 18513if ac_fn_c_try_compile "$LINENO"; then : 18514 ac_cv_header_time=yes 18515else 18516 ac_cv_header_time=no 18517fi 18518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18519fi 18520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 18521$as_echo "$ac_cv_header_time" >&6; } 18522if test $ac_cv_header_time = yes; then 18523 18524$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 18525 18526fi 18527 18528 18529 for ac_header in sys/types.h sys/time.h time.h 18530do : 18531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18532ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18533if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18534 cat >>confdefs.h <<_ACEOF 18535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18536_ACEOF 18537 18538fi 18539 18540done 18541 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 18543$as_echo_n "checking for monotonic clock_gettime... " >&6; } 18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18545/* end confdefs.h. */ 18546 18547 18548#ifdef HAVE_SYS_TYPES_H 18549#include <sys/types.h> 18550#endif 18551#ifdef HAVE_SYS_TIME_H 18552#include <sys/time.h> 18553#ifdef TIME_WITH_SYS_TIME 18554#include <time.h> 18555#endif 18556#else 18557#ifdef HAVE_TIME_H 18558#include <time.h> 18559#endif 18560#endif 18561 18562int main (void) 18563{ 18564 18565 struct timespec ts; 18566 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 18567 18568 ; 18569 return 0; 18570} 18571 18572_ACEOF 18573if ac_fn_c_try_compile "$LINENO"; then : 18574 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18576$as_echo "yes" >&6; } 18577 ac_cv_func_clock_gettime="yes" 18578 18579else 18580 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18582$as_echo "no" >&6; } 18583 ac_cv_func_clock_gettime="no" 18584 18585fi 18586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18587 18588 18589 # 18590 if test "$ac_cv_func_clock_gettime" = "yes"; then 18591 # 18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 18593$as_echo_n "checking for clock_gettime in libraries... " >&6; } 18594 # 18595 curl_cv_save_LIBS="$LIBS" 18596 curl_cv_gclk_LIBS="unknown" 18597 # 18598 for x_xlibs in '' '-lrt' '-lposix4' ; do 18599 if test "$curl_cv_gclk_LIBS" = "unknown"; then 18600 if test -z "$x_xlibs"; then 18601 LIBS="$curl_cv_save_LIBS" 18602 else 18603 LIBS="$x_xlibs $curl_cv_save_LIBS" 18604 fi 18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18606/* end confdefs.h. */ 18607 18608 18609#ifdef HAVE_SYS_TYPES_H 18610#include <sys/types.h> 18611#endif 18612#ifdef HAVE_SYS_TIME_H 18613#include <sys/time.h> 18614#ifdef TIME_WITH_SYS_TIME 18615#include <time.h> 18616#endif 18617#else 18618#ifdef HAVE_TIME_H 18619#include <time.h> 18620#endif 18621#endif 18622 18623int main (void) 18624{ 18625 18626 struct timespec ts; 18627 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 18628 18629 ; 18630 return 0; 18631} 18632 18633_ACEOF 18634if ac_fn_c_try_link "$LINENO"; then : 18635 18636 curl_cv_gclk_LIBS="$x_xlibs" 18637 18638fi 18639rm -f core conftest.err conftest.$ac_objext \ 18640 conftest$ac_exeext conftest.$ac_ext 18641 fi 18642 done 18643 # 18644 LIBS="$curl_cv_save_LIBS" 18645 # 18646 case X-"$curl_cv_gclk_LIBS" in 18647 X-unknown) 18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 18649$as_echo "cannot find clock_gettime" >&6; } 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 18651$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 18652 ac_cv_func_clock_gettime="no" 18653 ;; 18654 X-) 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 18656$as_echo "no additional lib required" >&6; } 18657 ac_cv_func_clock_gettime="yes" 18658 ;; 18659 *) 18660 if test -z "$curl_cv_save_LIBS"; then 18661 LIBS="$curl_cv_gclk_LIBS" 18662 else 18663 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 18664 fi 18665 CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS" 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 18667$as_echo "$curl_cv_gclk_LIBS" >&6; } 18668 ac_cv_func_clock_gettime="yes" 18669 ;; 18670 esac 18671 # 18672 if test "x$cross_compiling" != "xyes" && 18673 test "$ac_cv_func_clock_gettime" = "yes"; then 18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 18675$as_echo_n "checking if monotonic clock_gettime works... " >&6; } 18676 if test "$cross_compiling" = yes; then : 18677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18679as_fn_error $? "cannot run test program while cross compiling 18680See \`config.log' for more details" "$LINENO" 5; } 18681else 18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18683/* end confdefs.h. */ 18684 18685 18686#ifdef HAVE_STDLIB_H 18687#include <stdlib.h> 18688#endif 18689#ifdef HAVE_SYS_TYPES_H 18690#include <sys/types.h> 18691#endif 18692#ifdef HAVE_SYS_TIME_H 18693#include <sys/time.h> 18694#ifdef TIME_WITH_SYS_TIME 18695#include <time.h> 18696#endif 18697#else 18698#ifdef HAVE_TIME_H 18699#include <time.h> 18700#endif 18701#endif 18702 18703int main (void) 18704{ 18705 18706 struct timespec ts; 18707 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 18708 exit(0); 18709 else 18710 exit(1); 18711 18712 ; 18713 return 0; 18714} 18715 18716_ACEOF 18717if ac_fn_c_try_run "$LINENO"; then : 18718 18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18720$as_echo "yes" >&6; } 18721 18722else 18723 18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18725$as_echo "no" >&6; } 18726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 18727$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 18728 ac_cv_func_clock_gettime="no" 18729 LIBS="$curl_cv_save_LIBS" 18730 18731fi 18732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18733 conftest.$ac_objext conftest.beam conftest.$ac_ext 18734fi 18735 18736 fi 18737 # 18738 case "$ac_cv_func_clock_gettime" in 18739 yes) 18740 18741cat >>confdefs.h <<_ACEOF 18742#define HAVE_CLOCK_GETTIME_MONOTONIC 1 18743_ACEOF 18744 18745 ;; 18746 esac 18747 # 18748 fi 18749 # 18750 18751 18752TEST_SERVER_LIBS=$LIBS 18753 18754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 18755$as_echo_n "checking whether to use libgcc... " >&6; } 18756# Check whether --enable-libgcc was given. 18757if test "${enable_libgcc+set}" = set; then : 18758 enableval=$enable_libgcc; case "$enableval" in 18759 yes) 18760 ALL_LIBS="$ALL_LIBS -lgcc" 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18762$as_echo "yes" >&6; } 18763 ;; 18764 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18765$as_echo "no" >&6; } 18766 ;; 18767 esac 18768else 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18770$as_echo "no" >&6; } 18771 18772fi 18773 18774 18775 18776LDAPLIBNAME="" 18777 18778# Check whether --with-ldap-lib was given. 18779if test "${with_ldap_lib+set}" = set; then : 18780 withval=$with_ldap_lib; LDAPLIBNAME="$withval" 18781fi 18782 18783 18784LBERLIBNAME="" 18785 18786# Check whether --with-lber-lib was given. 18787if test "${with_lber_lib+set}" = set; then : 18788 withval=$with_lber_lib; LBERLIBNAME="$withval" 18789fi 18790 18791 18792if test x$CURL_DISABLE_LDAP != x1 ; then 18793 18794 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 18796$as_echo_n "checking for lber.h... " >&6; } 18797if ${ac_cv_header_lber_h+:} false; then : 18798 $as_echo_n "(cached) " >&6 18799else 18800 18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18802/* end confdefs.h. */ 18803 18804 18805#undef inline 18806#ifdef HAVE_WINDOWS_H 18807#ifndef WIN32_LEAN_AND_MEAN 18808#define WIN32_LEAN_AND_MEAN 18809#endif 18810#include <windows.h> 18811#else 18812#ifdef HAVE_SYS_TYPES_H 18813#include <sys/types.h> 18814#endif 18815#endif 18816#ifndef NULL 18817#define NULL (void *)0 18818#endif 18819#include <lber.h> 18820 18821int main (void) 18822{ 18823 18824 BerValue *bvp = NULL; 18825 BerElement *bep = ber_init(bvp); 18826 ber_free(bep, 1); 18827 18828 ; 18829 return 0; 18830} 18831 18832_ACEOF 18833if ac_fn_c_try_compile "$LINENO"; then : 18834 18835 ac_cv_header_lber_h="yes" 18836 18837else 18838 18839 ac_cv_header_lber_h="no" 18840 18841fi 18842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18843 18844fi 18845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5 18846$as_echo "$ac_cv_header_lber_h" >&6; } 18847 if test "$ac_cv_header_lber_h" = "yes"; then 18848 18849cat >>confdefs.h <<_ACEOF 18850#define HAVE_LBER_H 1 18851_ACEOF 18852 18853 # 18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18855/* end confdefs.h. */ 18856 18857 18858#undef inline 18859#ifdef HAVE_WINDOWS_H 18860#ifndef WIN32_LEAN_AND_MEAN 18861#define WIN32_LEAN_AND_MEAN 18862#endif 18863#include <windows.h> 18864#else 18865#ifdef HAVE_SYS_TYPES_H 18866#include <sys/types.h> 18867#endif 18868#endif 18869#ifndef NULL 18870#define NULL (void *)0 18871#endif 18872#ifndef LDAP_DEPRECATED 18873#define LDAP_DEPRECATED 1 18874#endif 18875#include <ldap.h> 18876 18877int main (void) 18878{ 18879 18880 BerValue *bvp = NULL; 18881 BerElement *bep = ber_init(bvp); 18882 ber_free(bep, 1); 18883 18884 ; 18885 return 0; 18886} 18887 18888_ACEOF 18889if ac_fn_c_try_compile "$LINENO"; then : 18890 18891 curl_cv_need_header_lber_h="no" 18892 18893else 18894 18895 curl_cv_need_header_lber_h="yes" 18896 18897fi 18898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18899 # 18900 case "$curl_cv_need_header_lber_h" in 18901 yes) 18902 18903cat >>confdefs.h <<_ACEOF 18904#define NEED_LBER_H 1 18905_ACEOF 18906 18907 ;; 18908 esac 18909 fi 18910 18911 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 18913$as_echo_n "checking for ldap.h... " >&6; } 18914if ${ac_cv_header_ldap_h+:} false; then : 18915 $as_echo_n "(cached) " >&6 18916else 18917 18918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18919/* end confdefs.h. */ 18920 18921 18922#undef inline 18923#ifdef HAVE_WINDOWS_H 18924#ifndef WIN32_LEAN_AND_MEAN 18925#define WIN32_LEAN_AND_MEAN 18926#endif 18927#include <windows.h> 18928#else 18929#ifdef HAVE_SYS_TYPES_H 18930#include <sys/types.h> 18931#endif 18932#endif 18933#ifndef LDAP_DEPRECATED 18934#define LDAP_DEPRECATED 1 18935#endif 18936#ifdef NEED_LBER_H 18937#include <lber.h> 18938#endif 18939#include <ldap.h> 18940 18941int main (void) 18942{ 18943 18944 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 18945 int res = ldap_unbind(ldp); 18946 18947 ; 18948 return 0; 18949} 18950 18951_ACEOF 18952if ac_fn_c_try_compile "$LINENO"; then : 18953 18954 ac_cv_header_ldap_h="yes" 18955 18956else 18957 18958 ac_cv_header_ldap_h="no" 18959 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18962 18963fi 18964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5 18965$as_echo "$ac_cv_header_ldap_h" >&6; } 18966 case "$ac_cv_header_ldap_h" in 18967 yes) 18968 18969cat >>confdefs.h <<_ACEOF 18970#define HAVE_LDAP_H 1 18971_ACEOF 18972 18973 ;; 18974 esac 18975 18976 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5 18978$as_echo_n "checking for ldapssl.h... " >&6; } 18979if ${ac_cv_header_ldapssl_h+:} false; then : 18980 $as_echo_n "(cached) " >&6 18981else 18982 18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18984/* end confdefs.h. */ 18985 18986 18987#undef inline 18988#ifdef HAVE_WINDOWS_H 18989#ifndef WIN32_LEAN_AND_MEAN 18990#define WIN32_LEAN_AND_MEAN 18991#endif 18992#include <windows.h> 18993#else 18994#ifdef HAVE_SYS_TYPES_H 18995#include <sys/types.h> 18996#endif 18997#endif 18998#ifndef NULL 18999#define NULL (void *)0 19000#endif 19001#ifndef LDAP_DEPRECATED 19002#define LDAP_DEPRECATED 1 19003#endif 19004#ifdef NEED_LBER_H 19005#include <lber.h> 19006#endif 19007#ifdef HAVE_LDAP_H 19008#include <ldap.h> 19009#endif 19010#include <ldapssl.h> 19011 19012int main (void) 19013{ 19014 19015 char *cert_label = NULL; 19016 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label); 19017 19018 ; 19019 return 0; 19020} 19021 19022_ACEOF 19023if ac_fn_c_try_compile "$LINENO"; then : 19024 19025 ac_cv_header_ldapssl_h="yes" 19026 19027else 19028 19029 ac_cv_header_ldapssl_h="no" 19030 19031fi 19032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19033 19034fi 19035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5 19036$as_echo "$ac_cv_header_ldapssl_h" >&6; } 19037 case "$ac_cv_header_ldapssl_h" in 19038 yes) 19039 19040cat >>confdefs.h <<_ACEOF 19041#define HAVE_LDAPSSL_H 1 19042_ACEOF 19043 19044 ;; 19045 esac 19046 19047 19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 19049$as_echo_n "checking for ldap_ssl.h... " >&6; } 19050if ${ac_cv_header_ldap_ssl_h+:} false; then : 19051 $as_echo_n "(cached) " >&6 19052else 19053 19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19055/* end confdefs.h. */ 19056 19057 19058#undef inline 19059#ifdef HAVE_WINDOWS_H 19060#ifndef WIN32_LEAN_AND_MEAN 19061#define WIN32_LEAN_AND_MEAN 19062#endif 19063#include <windows.h> 19064#else 19065#ifdef HAVE_SYS_TYPES_H 19066#include <sys/types.h> 19067#endif 19068#endif 19069#ifndef LDAP_DEPRECATED 19070#define LDAP_DEPRECATED 1 19071#endif 19072#ifdef NEED_LBER_H 19073#include <lber.h> 19074#endif 19075#ifdef HAVE_LDAP_H 19076#include <ldap.h> 19077#endif 19078#include <ldap_ssl.h> 19079 19080int main (void) 19081{ 19082 19083 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1); 19084 19085 ; 19086 return 0; 19087} 19088 19089_ACEOF 19090if ac_fn_c_try_compile "$LINENO"; then : 19091 19092 ac_cv_header_ldap_ssl_h="yes" 19093 19094else 19095 19096 ac_cv_header_ldap_ssl_h="no" 19097 19098fi 19099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19100 19101fi 19102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5 19103$as_echo "$ac_cv_header_ldap_ssl_h" >&6; } 19104 case "$ac_cv_header_ldap_ssl_h" in 19105 yes) 19106 19107cat >>confdefs.h <<_ACEOF 19108#define HAVE_LDAP_SSL_H 1 19109_ACEOF 19110 19111 ;; 19112 esac 19113 19114 19115 if test -z "$LDAPLIBNAME" ; then 19116 if test "$ac_cv_native_windows" = "yes"; then 19117 LDAPLIBNAME="wldap32" 19118 LBERLIBNAME="no" 19119 fi 19120 fi 19121 19122 if test "$LDAPLIBNAME" ; then 19123 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh` 19124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 19125$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 19126if eval \${$as_ac_Lib+:} false; then : 19127 $as_echo_n "(cached) " >&6 19128else 19129 ac_check_lib_save_LIBS=$LIBS 19130LIBS="-l"$LDAPLIBNAME" $LIBS" 19131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19132/* end confdefs.h. */ 19133 19134 19135#ifdef __cplusplus 19136extern "C" 19137#endif 19138char ldap_init (); 19139int main (void) 19140{ 19141return ldap_init (); 19142 ; 19143 return 0; 19144} 19145_ACEOF 19146if ac_fn_c_try_link "$LINENO"; then : 19147 eval "$as_ac_Lib=yes" 19148else 19149 eval "$as_ac_Lib=no" 19150fi 19151rm -f core conftest.err conftest.$ac_objext \ 19152 conftest$ac_exeext conftest.$ac_ext 19153LIBS=$ac_check_lib_save_LIBS 19154fi 19155eval ac_res=\$$as_ac_Lib 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19157$as_echo "$ac_res" >&6; } 19158if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19159 cat >>confdefs.h <<_ACEOF 19160#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1 19161_ACEOF 19162 19163 LIBS="-l"$LDAPLIBNAME" $LIBS" 19164 19165else 19166 19167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 19168$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} 19169 19170$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19171 19172 CURL_DISABLE_LDAP=1 19173 19174fi 19175 19176 19177$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19178 19179 CURL_DISABLE_LDAPS=1 19180 19181 else 19182 19183 # 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 19185$as_echo_n "checking for LDAP libraries... " >&6; } 19186 # 19187 u_libs="" 19188 # 19189 19190 # 19191 curl_cv_save_LIBS="$LIBS" 19192 curl_cv_ldap_LIBS="unknown" 19193 # 19194 for x_nlibs in '' "$u_libs" \ 19195 '-lldap' \ 19196 '-llber -lldap' \ 19197 '-lldap -llber' \ 19198 '-lldapssl -lldapx -lldapsdk' \ 19199 '-lldapsdk -lldapx -lldapssl' ; do 19200 if test "$curl_cv_ldap_LIBS" = "unknown"; then 19201 if test -z "$x_nlibs"; then 19202 LIBS="$curl_cv_save_LIBS" 19203 else 19204 LIBS="$x_nlibs $curl_cv_save_LIBS" 19205 fi 19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19207/* end confdefs.h. */ 19208 19209 19210#undef inline 19211#ifdef HAVE_WINDOWS_H 19212#ifndef WIN32_LEAN_AND_MEAN 19213#define WIN32_LEAN_AND_MEAN 19214#endif 19215#include <windows.h> 19216#else 19217#ifdef HAVE_SYS_TYPES_H 19218#include <sys/types.h> 19219#endif 19220#endif 19221#ifndef NULL 19222#define NULL (void *)0 19223#endif 19224#ifndef LDAP_DEPRECATED 19225#define LDAP_DEPRECATED 1 19226#endif 19227#ifdef NEED_LBER_H 19228#include <lber.h> 19229#endif 19230#ifdef HAVE_LDAP_H 19231#include <ldap.h> 19232#endif 19233 19234int main (void) 19235{ 19236 19237 BerValue *bvp = NULL; 19238 BerElement *bep = ber_init(bvp); 19239 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 19240 int res = ldap_unbind(ldp); 19241 ber_free(bep, 1); 19242 19243 ; 19244 return 0; 19245} 19246 19247_ACEOF 19248if ac_fn_c_try_link "$LINENO"; then : 19249 19250 curl_cv_ldap_LIBS="$x_nlibs" 19251 19252fi 19253rm -f core conftest.err conftest.$ac_objext \ 19254 conftest$ac_exeext conftest.$ac_ext 19255 fi 19256 done 19257 # 19258 LIBS="$curl_cv_save_LIBS" 19259 # 19260 case X-"$curl_cv_ldap_LIBS" in 19261 X-unknown) 19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 19263$as_echo "cannot find LDAP libraries" >&6; } 19264 ;; 19265 X-) 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 19267$as_echo "no additional lib required" >&6; } 19268 ;; 19269 *) 19270 if test -z "$curl_cv_save_LIBS"; then 19271 LIBS="$curl_cv_ldap_LIBS" 19272 else 19273 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" 19274 fi 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 19276$as_echo "$curl_cv_ldap_LIBS" >&6; } 19277 ;; 19278 esac 19279 # 19280 19281 case X-"$curl_cv_ldap_LIBS" in 19282 X-unknown) 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 19284$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} 19285 19286$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19287 19288 CURL_DISABLE_LDAP=1 19289 19290 19291$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19292 19293 CURL_DISABLE_LDAPS=1 19294 19295 ;; 19296 esac 19297 fi 19298fi 19299 19300if test x$CURL_DISABLE_LDAP != x1 ; then 19301 19302 if test "$LBERLIBNAME" ; then 19303 if test "$LBERLIBNAME" != "no" ; then 19304 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh` 19305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 19306$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } 19307if eval \${$as_ac_Lib+:} false; then : 19308 $as_echo_n "(cached) " >&6 19309else 19310 ac_check_lib_save_LIBS=$LIBS 19311LIBS="-l"$LBERLIBNAME" $LIBS" 19312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19313/* end confdefs.h. */ 19314 19315 19316#ifdef __cplusplus 19317extern "C" 19318#endif 19319char ber_free (); 19320int main (void) 19321{ 19322return ber_free (); 19323 ; 19324 return 0; 19325} 19326_ACEOF 19327if ac_fn_c_try_link "$LINENO"; then : 19328 eval "$as_ac_Lib=yes" 19329else 19330 eval "$as_ac_Lib=no" 19331fi 19332rm -f core conftest.err conftest.$ac_objext \ 19333 conftest$ac_exeext conftest.$ac_ext 19334LIBS=$ac_check_lib_save_LIBS 19335fi 19336eval ac_res=\$$as_ac_Lib 19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19338$as_echo "$ac_res" >&6; } 19339if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19340 cat >>confdefs.h <<_ACEOF 19341#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 19342_ACEOF 19343 19344 LIBS="-l"$LBERLIBNAME" $LIBS" 19345 19346else 19347 19348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 19349$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} 19350 19351$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19352 19353 CURL_DISABLE_LDAP=1 19354 19355fi 19356 19357 19358$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19359 19360 CURL_DISABLE_LDAPS=1 19361 19362 fi 19363 fi 19364fi 19365 19366if test x$CURL_DISABLE_LDAP != x1 ; then 19367 for ac_func in ldap_url_parse ldap_init_fd 19368do : 19369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19371if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19372 cat >>confdefs.h <<_ACEOF 19373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19374_ACEOF 19375 19376fi 19377done 19378 19379 19380 if test "$LDAPLIBNAME" = "wldap32"; then 19381 curl_ldap_msg="enabled (winldap)" 19382 19383$as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h 19384 19385 else 19386 curl_ldap_msg="enabled (OpenLDAP)" 19387 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then 19388 19389$as_echo "#define USE_OPENLDAP 1" >>confdefs.h 19390 19391 USE_OPENLDAP=1 19392 19393 fi 19394 fi 19395fi 19396 19397if test x$CURL_DISABLE_LDAPS != x1 ; then 19398 curl_ldaps_msg="enabled" 19399fi 19400 19401 19402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5 19403$as_echo_n "checking whether to enable ipv6... " >&6; } 19404# Check whether --enable-ipv6 was given. 19405if test "${enable_ipv6+set}" = set; then : 19406 enableval=$enable_ipv6; case "$enableval" in 19407 no) 19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19409$as_echo "no" >&6; } 19410 ipv6=no 19411 ;; 19412 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19413$as_echo "yes" >&6; } 19414 ipv6=yes 19415 ;; 19416 esac 19417else 19418 if test "$cross_compiling" = yes; then : 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19420$as_echo "no" >&6; } 19421 ipv6=no 19422 19423else 19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19425/* end confdefs.h. */ 19426 /* is AF_INET6 available? */ 19427#include <sys/types.h> 19428#include <sys/socket.h> 19429main() 19430{ 19431 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 19432 exit(1); 19433 else 19434 exit(0); 19435} 19436 19437_ACEOF 19438if ac_fn_c_try_run "$LINENO"; then : 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19440$as_echo "yes" >&6; } 19441 ipv6=yes 19442else 19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19444$as_echo "no" >&6; } 19445 ipv6=no 19446fi 19447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19448 conftest.$ac_objext conftest.beam conftest.$ac_ext 19449fi 19450 19451fi 19452 19453 19454if test "$ipv6" = "yes"; then 19455 curl_ipv6_msg="enabled" 19456fi 19457 19458# Check if struct sockaddr_in6 have sin6_scope_id member 19459if test "$ipv6" = yes; then 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 19461$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } 19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19463/* end confdefs.h. */ 19464 19465#include <sys/types.h> 19466#include <netinet/in.h> 19467int main (void) 19468{ 19469struct sockaddr_in6 s; s.sin6_scope_id = 0; 19470 ; 19471 return 0; 19472} 19473_ACEOF 19474if ac_fn_c_try_compile "$LINENO"; then : 19475 have_sin6_scope_id=yes 19476fi 19477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19478 if test "$have_sin6_scope_id" = yes; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19480$as_echo "yes" >&6; } 19481 19482$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 19483 19484 else 19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19486$as_echo "no" >&6; } 19487 fi 19488fi 19489 19490 19491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 19492$as_echo_n "checking if argv can be written to... " >&6; } 19493if test "$cross_compiling" = yes; then : 19494 19495 curl_cv_writable_argv=cross 19496 19497else 19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19499/* end confdefs.h. */ 19500 19501 19502int main(int argc, char ** argv) { 19503 argv[0][0] = ' '; 19504 return (argv[0][0] == ' ')?0:1; 19505} 19506 19507 19508_ACEOF 19509if ac_fn_c_try_run "$LINENO"; then : 19510 19511 curl_cv_writable_argv=yes 19512 19513else 19514 19515 curl_cv_writable_argv=no 19516 19517fi 19518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19519 conftest.$ac_objext conftest.beam conftest.$ac_ext 19520fi 19521 19522case $curl_cv_writable_argv in 19523yes) 19524 19525$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h 19526 19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19528$as_echo "yes" >&6; } 19529 ;; 19530no) 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19532$as_echo "no" >&6; } 19533 ;; 19534*) 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19536$as_echo "no" >&6; } 19537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 19538$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;} 19539 ;; 19540esac 19541 19542 19543 19544# Check whether --with-krb4-includes was given. 19545if test "${with_krb4_includes+set}" = set; then : 19546 withval=$with_krb4_includes; 19547 CPPFLAGS="$CPPFLAGS -I$withval" 19548 KRB4INC="$withval" 19549 want_krb4=yes 19550 19551fi 19552 19553 19554 19555# Check whether --with-krb4-libs was given. 19556if test "${with_krb4_libs+set}" = set; then : 19557 withval=$with_krb4_libs; 19558 LDFLAGS="$LDFLAGS -L$withval" 19559 KRB4LIB="$withval" 19560 want_krb4=yes 19561 19562fi 19563 19564 19565 19566OPT_KRB4=off 19567 19568# Check whether --with-krb4 was given. 19569if test "${with_krb4+set}" = set; then : 19570 withval=$with_krb4; 19571 OPT_KRB4="$withval" 19572 if test X"$OPT_KRB4" != Xno; then 19573 want_krb4="yes" 19574 if test X"$OPT_KRB4" != Xyes; then 19575 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff" 19576 KRB4LIB="$OPT_KRB4/lib$libsuff" 19577 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include" 19578 KRB4INC="$OPT_KRB4/include" 19579 fi 19580 fi 19581 19582fi 19583 19584 19585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5 19586$as_echo_n "checking if Kerberos4 support is requested... " >&6; } 19587 19588if test "$want_krb4" = yes 19589then 19590 if test "$ipv6" = "yes"; then 19591 echo krb4 is not compatible with IPv6 19592 exit 1 19593 fi 19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19595$as_echo "yes" >&6; } 19596 19597 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5 19599$as_echo_n "checking where to look for Kerberos4... " >&6; } 19600 if test X"$OPT_KRB4" = Xyes 19601 then 19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5 19603$as_echo "defaults" >&6; } 19604 else 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5 19606$as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; } 19607 fi 19608 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5 19610$as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; } 19611if ${ac_cv_lib_des_des_pcbc_encrypt+:} false; then : 19612 $as_echo_n "(cached) " >&6 19613else 19614 ac_check_lib_save_LIBS=$LIBS 19615LIBS="-ldes $LIBS" 19616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19617/* end confdefs.h. */ 19618 19619 19620#ifdef __cplusplus 19621extern "C" 19622#endif 19623char des_pcbc_encrypt (); 19624int main (void) 19625{ 19626return des_pcbc_encrypt (); 19627 ; 19628 return 0; 19629} 19630_ACEOF 19631if ac_fn_c_try_link "$LINENO"; then : 19632 ac_cv_lib_des_des_pcbc_encrypt=yes 19633else 19634 ac_cv_lib_des_des_pcbc_encrypt=no 19635fi 19636rm -f core conftest.err conftest.$ac_objext \ 19637 conftest$ac_exeext conftest.$ac_ext 19638LIBS=$ac_check_lib_save_LIBS 19639fi 19640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5 19641$as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; } 19642if test "x$ac_cv_lib_des_des_pcbc_encrypt" = xyes; then : 19643 19644 for ac_header in des.h 19645do : 19646 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 19647if test "x$ac_cv_header_des_h" = xyes; then : 19648 cat >>confdefs.h <<_ACEOF 19649#define HAVE_DES_H 1 19650_ACEOF 19651 19652fi 19653 19654done 19655 19656 19657 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 19658if test "x$ac_cv_func_res_search" = xyes; then : 19659 19660else 19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 19662$as_echo_n "checking for res_search in -lresolv... " >&6; } 19663if ${ac_cv_lib_resolv_res_search+:} false; then : 19664 $as_echo_n "(cached) " >&6 19665else 19666 ac_check_lib_save_LIBS=$LIBS 19667LIBS="-lresolv $LIBS" 19668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19669/* end confdefs.h. */ 19670 19671 19672#ifdef __cplusplus 19673extern "C" 19674#endif 19675char res_search (); 19676int main (void) 19677{ 19678return res_search (); 19679 ; 19680 return 0; 19681} 19682_ACEOF 19683if ac_fn_c_try_link "$LINENO"; then : 19684 ac_cv_lib_resolv_res_search=yes 19685else 19686 ac_cv_lib_resolv_res_search=no 19687fi 19688rm -f core conftest.err conftest.$ac_objext \ 19689 conftest$ac_exeext conftest.$ac_ext 19690LIBS=$ac_check_lib_save_LIBS 19691fi 19692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 19693$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 19694if test "x$ac_cv_lib_resolv_res_search" = xyes; then : 19695 cat >>confdefs.h <<_ACEOF 19696#define HAVE_LIBRESOLV 1 19697_ACEOF 19698 19699 LIBS="-lresolv $LIBS" 19700 19701fi 19702 19703fi 19704 19705 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5 19707$as_echo_n "checking for krb_net_read in -lkrb... " >&6; } 19708if ${ac_cv_lib_krb_krb_net_read+:} false; then : 19709 $as_echo_n "(cached) " >&6 19710else 19711 ac_check_lib_save_LIBS=$LIBS 19712LIBS="-lkrb $LIBS" 19713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19714/* end confdefs.h. */ 19715 19716 19717#ifdef __cplusplus 19718extern "C" 19719#endif 19720char krb_net_read (); 19721int main (void) 19722{ 19723return krb_net_read (); 19724 ; 19725 return 0; 19726} 19727_ACEOF 19728if ac_fn_c_try_link "$LINENO"; then : 19729 ac_cv_lib_krb_krb_net_read=yes 19730else 19731 ac_cv_lib_krb_krb_net_read=no 19732fi 19733rm -f core conftest.err conftest.$ac_objext \ 19734 conftest$ac_exeext conftest.$ac_ext 19735LIBS=$ac_check_lib_save_LIBS 19736fi 19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5 19738$as_echo "$ac_cv_lib_krb_krb_net_read" >&6; } 19739if test "x$ac_cv_lib_krb_krb_net_read" = xyes; then : 19740 19741 for ac_header in krb.h 19742do : 19743 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 19744if test "x$ac_cv_header_krb_h" = xyes; then : 19745 cat >>confdefs.h <<_ACEOF 19746#define HAVE_KRB_H 1 19747_ACEOF 19748 19749fi 19750 19751done 19752 19753 19754 LIBS="-lkrb -lcom_err -ldes $LIBS" 19755 19756 for ac_func in krb_get_our_ip_for_realm 19757do : 19758 ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm" 19759if test "x$ac_cv_func_krb_get_our_ip_for_realm" = xyes; then : 19760 cat >>confdefs.h <<_ACEOF 19761#define HAVE_KRB_GET_OUR_IP_FOR_REALM 1 19762_ACEOF 19763 19764fi 19765done 19766 19767 19768 19769$as_echo "#define HAVE_KRB4 1" >>confdefs.h 19770 19771 19772 KRB4_ENABLED=1 19773 19774 19775 curl_krb4_msg="enabled" 19776 19777 for ac_func in strlcpy 19778do : 19779 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 19780if test "x$ac_cv_func_strlcpy" = xyes; then : 19781 cat >>confdefs.h <<_ACEOF 19782#define HAVE_STRLCPY 1 19783_ACEOF 19784 19785fi 19786done 19787 19788 19789 19790fi 19791 19792 19793fi 19794 19795else 19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19797$as_echo "no" >&6; } 19798fi 19799 19800 19801 19802# Check whether --with-spnego was given. 19803if test "${with_spnego+set}" = set; then : 19804 withval=$with_spnego; 19805 SPNEGO_ROOT="$withval" 19806 if test x"$SPNEGO_ROOT" != xno; then 19807 want_spnego="yes" 19808 fi 19809 19810fi 19811 19812 19813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5 19814$as_echo_n "checking if SPNEGO support is requested... " >&6; } 19815if test x"$want_spnego" = xyes; then 19816 19817 if test X"$SPNEGO_ROOT" = Xyes; then 19818 as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19820$as_echo "no" >&6; } 19821 else 19822 if test -z "$SPNEGO_LIB_DIR"; then 19823 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl" 19824 else 19825 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR" 19826 fi 19827 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19829$as_echo "yes" >&6; } 19830 19831$as_echo "#define HAVE_SPNEGO 1" >>confdefs.h 19832 19833 curl_spnego_msg="enabled" 19834 fi 19835else 19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19837$as_echo "no" >&6; } 19838fi 19839 19840 19841 19842GSSAPI_ROOT="/usr" 19843 19844# Check whether --with-gssapi-includes was given. 19845if test "${with_gssapi_includes+set}" = set; then : 19846 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval" 19847 want_gss="yes" 19848 19849fi 19850 19851 19852 19853# Check whether --with-gssapi-libs was given. 19854if test "${with_gssapi_libs+set}" = set; then : 19855 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval" 19856 want_gss="yes" 19857 19858fi 19859 19860 19861 19862# Check whether --with-gssapi was given. 19863if test "${with_gssapi+set}" = set; then : 19864 withval=$with_gssapi; 19865 GSSAPI_ROOT="$withval" 19866 if test x"$GSSAPI_ROOT" != xno; then 19867 want_gss="yes" 19868 if test x"$GSSAPI_ROOT" = xyes; then 19869 GSSAPI_ROOT="/usr" 19870 fi 19871 fi 19872 19873fi 19874 19875 19876save_CPPFLAGS="$CPPFLAGS" 19877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5 19878$as_echo_n "checking if GSSAPI support is requested... " >&6; } 19879if test x"$want_gss" = xyes; then 19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19881$as_echo "yes" >&6; } 19882 19883 if test -z "$GSSAPI_INCS"; then 19884 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then 19885 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi` 19886 elif test "$GSSAPI_ROOT" != "yes"; then 19887 GSSAPI_INCS="-I$GSSAPI_ROOT/include" 19888 fi 19889 fi 19890 19891 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" 19892 19893 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" 19894if test "x$ac_cv_header_gss_h" = xyes; then : 19895 19896 19897$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h 19898 19899 gnu_gss=yes 19900 19901else 19902 19903 for ac_header in gssapi/gssapi.h 19904do : 19905 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 19906if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : 19907 cat >>confdefs.h <<_ACEOF 19908#define HAVE_GSSAPI_GSSAPI_H 1 19909_ACEOF 19910 19911else 19912 not_mit=1 19913fi 19914 19915done 19916 19917 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h 19918do : 19919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19920ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 19921$ac_includes_default 19922#ifdef HAVE_GSSAPI_GSSAPI_H 19923#include <gssapi/gssapi.h> 19924#endif 19925 19926" 19927if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19928 cat >>confdefs.h <<_ACEOF 19929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19930_ACEOF 19931 19932else 19933 not_mit=1 19934fi 19935 19936done 19937 19938 if test "x$not_mit" = "x1"; then 19939 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 19940if test "x$ac_cv_header_gssapi_h" = xyes; then : 19941 19942 19943$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h 19944 19945 19946else 19947 19948 want_gss=no 19949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5 19950$as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;} 19951 19952 19953fi 19954 19955 19956 else 19957 19958$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h 19959 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 19961$as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19963/* end confdefs.h. */ 19964 19965 19966#include <gssapi/gssapi.h> 19967#include <gssapi/gssapi_generic.h> 19968#include <gssapi/gssapi_krb5.h> 19969 19970int main (void) 19971{ 19972 19973 gss_import_name( 19974 (OM_uint32 *)0, 19975 (gss_buffer_t)0, 19976 GSS_C_NT_HOSTBASED_SERVICE, 19977 (gss_name_t *)0); 19978 19979 ; 19980 return 0; 19981} 19982 19983_ACEOF 19984if ac_fn_c_try_compile "$LINENO"; then : 19985 19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19987$as_echo "yes" >&6; } 19988 19989else 19990 19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19992$as_echo "no" >&6; } 19993 19994$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h 19995 19996 19997fi 19998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19999 fi 20000 20001 20002fi 20003 20004 20005else 20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20007$as_echo "no" >&6; } 20008fi 20009if test x"$want_gss" = xyes; then 20010 20011$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h 20012 20013 20014 curl_gss_msg="enabled (MIT/Heimdal)" 20015 20016 if test -n "$gnu_gss"; then 20017 curl_gss_msg="enabled (GNU GSS)" 20018 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 20019 LIBS="$LIBS -lgss" 20020 elif test -z "$GSSAPI_LIB_DIR"; then 20021 case $host in 20022 *-*-darwin*) 20023 LIBS="$LIBS -lgssapi_krb5 -lresolv" 20024 ;; 20025 *) 20026 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then 20027 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` 20028 LIBS="$LIBS $gss_libs" 20029 elif test "$GSSAPI_ROOT" != "yes"; then 20030 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" 20031 LIBS="$LIBS -lgssapi" 20032 else 20033 LIBS="$LIBS -lgssapi" 20034 fi 20035 ;; 20036 esac 20037 else 20038 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 20039 LIBS="$LIBS -lgssapi" 20040 fi 20041else 20042 CPPFLAGS="$save_CPPFLAGS" 20043fi 20044 20045 20046OPT_SSL=off 20047ca="no" 20048 20049# Check whether --with-ssl was given. 20050if test "${with_ssl+set}" = set; then : 20051 withval=$with_ssl; OPT_SSL=$withval 20052fi 20053 20054 20055if test X"$OPT_SSL" != Xno; then 20056 CLEANLDFLAGS="$LDFLAGS" 20057 CLEANCPPFLAGS="$CPPFLAGS" 20058 CLEANLIBS="$LIBS" 20059 20060 case "$OPT_SSL" in 20061 yes) 20062 if test x$cross_compiling != xyes; then 20063 PKGTEST="yes" 20064 fi 20065 PREFIX_OPENSSL=/usr/local/ssl 20066 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 20067 ;; 20068 off) 20069 if test x$cross_compiling != xyes; then 20070 PKGTEST="yes" 20071 fi 20072 PREFIX_OPENSSL= 20073 ;; 20074 *) 20075 PKGTEST="no" 20076 PREFIX_OPENSSL=$OPT_SSL 20077 20078 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig" 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 20080$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 20081 if test -e "$OPENSSL_PCDIR/openssl.pc"; then 20082 PKGTEST="yes" 20083 fi 20084 20085 #LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 20086 LIB_OPENSSL="$PREFIX_OPENSSL" 20087 if test "$PREFIX_OPENSSL" != "/usr" ; then 20088 SSL_LDFLAGS="-L$LIB_OPENSSL" 20089 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" 20090 fi 20091 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl" 20092 ;; 20093 esac 20094 20095 if test "$PKGTEST" = "yes"; then 20096 20097 20098 20099 PKGCONFIG="no" 20100 20101 if test x$cross_compiling = xyes; then 20102 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 20103set dummy ${host}-pkg-config; ac_word=$2 20104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20105$as_echo_n "checking for $ac_word... " >&6; } 20106if ${ac_cv_path_PKGCONFIG+:} false; then : 20107 $as_echo_n "(cached) " >&6 20108else 20109 case $PKGCONFIG in 20110 [\\/]* | ?:[\\/]*) 20111 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20112 ;; 20113 *) 20114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20115as_dummy="$PATH:/usr/bin:/usr/local/bin" 20116for as_dir in $as_dummy 20117do 20118 IFS=$as_save_IFS 20119 test -z "$as_dir" && as_dir=. 20120 for ac_exec_ext in '' $ac_executable_extensions; do 20121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20122 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20124 break 2 20125 fi 20126done 20127 done 20128IFS=$as_save_IFS 20129 20130 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 20131 ;; 20132esac 20133fi 20134PKGCONFIG=$ac_cv_path_PKGCONFIG 20135if test -n "$PKGCONFIG"; then 20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20137$as_echo "$PKGCONFIG" >&6; } 20138else 20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20140$as_echo "no" >&6; } 20141fi 20142 20143 20144 fi 20145 20146 if test x$PKGCONFIG = xno; then 20147 # Extract the first word of "pkg-config", so it can be a program name with args. 20148set dummy pkg-config; ac_word=$2 20149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20150$as_echo_n "checking for $ac_word... " >&6; } 20151if ${ac_cv_path_PKGCONFIG+:} false; then : 20152 $as_echo_n "(cached) " >&6 20153else 20154 case $PKGCONFIG in 20155 [\\/]* | ?:[\\/]*) 20156 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20157 ;; 20158 *) 20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20160as_dummy="$PATH:/usr/bin:/usr/local/bin" 20161for as_dir in $as_dummy 20162do 20163 IFS=$as_save_IFS 20164 test -z "$as_dir" && as_dir=. 20165 for ac_exec_ext in '' $ac_executable_extensions; do 20166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20167 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20169 break 2 20170 fi 20171done 20172 done 20173IFS=$as_save_IFS 20174 20175 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 20176 ;; 20177esac 20178fi 20179PKGCONFIG=$ac_cv_path_PKGCONFIG 20180if test -n "$PKGCONFIG"; then 20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20182$as_echo "$PKGCONFIG" >&6; } 20183else 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20185$as_echo "no" >&6; } 20186fi 20187 20188 20189 fi 20190 20191 if test x$PKGCONFIG != xno; then 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 20193$as_echo_n "checking for openssl options with pkg-config... " >&6; } 20194 itexists=` 20195 if test -n "$OPENSSL_PCDIR"; then 20196 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20197 export PKG_CONFIG_LIBDIR 20198 fi 20199 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` 20200 20201 if test -z "$itexists"; then 20202 PKGCONFIG="no" 20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20204$as_echo "no" >&6; } 20205 else 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 20207$as_echo "found" >&6; } 20208 fi 20209 fi 20210 20211 20212 if test "$PKGCONFIG" != "no" ; then 20213 SSL_LIBS=` 20214 if test -n "$OPENSSL_PCDIR"; then 20215 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20216 export PKG_CONFIG_LIBDIR 20217 fi 20218 $PKGCONFIG --libs-only-l openssl 2>/dev/null` 20219 20220 SSL_LDFLAGS=` 20221 if test -n "$OPENSSL_PCDIR"; then 20222 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20223 export PKG_CONFIG_LIBDIR 20224 fi 20225 $PKGCONFIG --libs-only-L openssl 2>/dev/null` 20226 20227 SSL_CPPFLAGS=` 20228 if test -n "$OPENSSL_PCDIR"; then 20229 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20230 export PKG_CONFIG_LIBDIR 20231 fi 20232 $PKGCONFIG --cflags-only-I openssl 2>/dev/null` 20233 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 20235$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 20236 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 20237$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 20238 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 20239$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 20240 20241 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'` 20242 20243 LIBS="$LIBS $SSL_LIBS" 20244 fi 20245 fi 20246 20247 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" 20248 LDFLAGS="$LDFLAGS $SSL_LDFLAGS" 20249 20250 case $host in 20251 *-*-msys* | *-*-mingw*) 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 20253$as_echo_n "checking for gdi32... " >&6; } 20254 my_ac_save_LIBS=$LIBS 20255 LIBS="-lgdi32 $LIBS" 20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20257/* end confdefs.h. */ 20258#include <windef.h> 20259 #include <wingdi.h> 20260int main (void) 20261{ 20262GdiFlush(); 20263 ; 20264 return 0; 20265} 20266_ACEOF 20267if ac_fn_c_try_link "$LINENO"; then : 20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20269$as_echo "yes" >&6; } 20270else 20271 LIBS=$my_ac_save_LIBS 20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20273$as_echo "no" >&6; } 20274 20275fi 20276rm -f core conftest.err conftest.$ac_objext \ 20277 conftest$ac_exeext conftest.$ac_ext 20278 ;; 20279 esac 20280 20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5 20282$as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; } 20283if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then : 20284 $as_echo_n "(cached) " >&6 20285else 20286 ac_check_lib_save_LIBS=$LIBS 20287LIBS="-lcrypto $LIBS" 20288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20289/* end confdefs.h. */ 20290 20291 20292#ifdef __cplusplus 20293extern "C" 20294#endif 20295char CRYPTO_lock (); 20296int main (void) 20297{ 20298return CRYPTO_lock (); 20299 ; 20300 return 0; 20301} 20302_ACEOF 20303if ac_fn_c_try_link "$LINENO"; then : 20304 ac_cv_lib_crypto_CRYPTO_lock=yes 20305else 20306 ac_cv_lib_crypto_CRYPTO_lock=no 20307fi 20308rm -f core conftest.err conftest.$ac_objext \ 20309 conftest$ac_exeext conftest.$ac_ext 20310LIBS=$ac_check_lib_save_LIBS 20311fi 20312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5 20313$as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; } 20314if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then : 20315 20316 HAVECRYPTO="yes" 20317 LIBS="-lcrypto $LIBS" 20318 20319else 20320 20321 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" 20322 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include" 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5 20324$as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; } 20325if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then : 20326 $as_echo_n "(cached) " >&6 20327else 20328 ac_check_lib_save_LIBS=$LIBS 20329LIBS="-lcrypto $LIBS" 20330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20331/* end confdefs.h. */ 20332 20333 20334#ifdef __cplusplus 20335extern "C" 20336#endif 20337char CRYPTO_add_lock (); 20338int main (void) 20339{ 20340return CRYPTO_add_lock (); 20341 ; 20342 return 0; 20343} 20344_ACEOF 20345if ac_fn_c_try_link "$LINENO"; then : 20346 ac_cv_lib_crypto_CRYPTO_add_lock=yes 20347else 20348 ac_cv_lib_crypto_CRYPTO_add_lock=no 20349fi 20350rm -f core conftest.err conftest.$ac_objext \ 20351 conftest$ac_exeext conftest.$ac_ext 20352LIBS=$ac_check_lib_save_LIBS 20353fi 20354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5 20355$as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; } 20356if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then : 20357 20358 HAVECRYPTO="yes" 20359 LIBS="-lcrypto $LIBS" 20360else 20361 20362 LDFLAGS="$CLEANLDFLAGS" 20363 CPPFLAGS="$CLEANCPPFLAGS" 20364 LIBS="$CLEANLIBS" 20365 20366fi 20367 20368 20369fi 20370 20371 20372 20373 if test X"$HAVECRYPTO" = X"yes"; then 20374 20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 20376$as_echo_n "checking for SSL_connect in -lssl... " >&6; } 20377if ${ac_cv_lib_ssl_SSL_connect+:} false; then : 20378 $as_echo_n "(cached) " >&6 20379else 20380 ac_check_lib_save_LIBS=$LIBS 20381LIBS="-lssl $LIBS" 20382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20383/* end confdefs.h. */ 20384 20385 20386#ifdef __cplusplus 20387extern "C" 20388#endif 20389char SSL_connect (); 20390int main (void) 20391{ 20392return SSL_connect (); 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397if ac_fn_c_try_link "$LINENO"; then : 20398 ac_cv_lib_ssl_SSL_connect=yes 20399else 20400 ac_cv_lib_ssl_SSL_connect=no 20401fi 20402rm -f core conftest.err conftest.$ac_objext \ 20403 conftest$ac_exeext conftest.$ac_ext 20404LIBS=$ac_check_lib_save_LIBS 20405fi 20406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 20407$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 20408if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : 20409 cat >>confdefs.h <<_ACEOF 20410#define HAVE_LIBSSL 1 20411_ACEOF 20412 20413 LIBS="-lssl $LIBS" 20414 20415fi 20416 20417 20418 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 20420$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; 20421 OLIBS=$LIBS 20422 LIBS="$LIBS -lRSAglue -lrsaref" 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 20424$as_echo_n "checking for SSL_connect in -lssl... " >&6; } 20425if ${ac_cv_lib_ssl_SSL_connect+:} false; then : 20426 $as_echo_n "(cached) " >&6 20427else 20428 ac_check_lib_save_LIBS=$LIBS 20429LIBS="-lssl $LIBS" 20430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20431/* end confdefs.h. */ 20432 20433 20434#ifdef __cplusplus 20435extern "C" 20436#endif 20437char SSL_connect (); 20438int main (void) 20439{ 20440return SSL_connect (); 20441 ; 20442 return 0; 20443} 20444_ACEOF 20445if ac_fn_c_try_link "$LINENO"; then : 20446 ac_cv_lib_ssl_SSL_connect=yes 20447else 20448 ac_cv_lib_ssl_SSL_connect=no 20449fi 20450rm -f core conftest.err conftest.$ac_objext \ 20451 conftest$ac_exeext conftest.$ac_ext 20452LIBS=$ac_check_lib_save_LIBS 20453fi 20454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 20455$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 20456if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : 20457 cat >>confdefs.h <<_ACEOF 20458#define HAVE_LIBSSL 1 20459_ACEOF 20460 20461 LIBS="-lssl $LIBS" 20462 20463fi 20464 20465 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20467$as_echo "no" >&6; } 20468 LIBS=$OLIBS 20469 else 20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20471$as_echo "yes" >&6; } 20472 fi 20473 20474 else 20475 20476 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \ 20477 openssl/pem.h openssl/ssl.h openssl/err.h 20478do : 20479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20480ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20481if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20482 cat >>confdefs.h <<_ACEOF 20483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20484_ACEOF 20485 curl_ssl_msg="enabled (OpenSSL)" 20486 OPENSSL_ENABLED=1 20487 20488$as_echo "#define USE_OPENSSL 1" >>confdefs.h 20489 20490fi 20491 20492done 20493 20494 20495 if test $ac_cv_header_openssl_x509_h = no; then 20496 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h 20497do : 20498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20499ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20500if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20501 cat >>confdefs.h <<_ACEOF 20502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20503_ACEOF 20504 20505fi 20506 20507done 20508 20509 20510 if test $ac_cv_header_x509_h = yes && 20511 test $ac_cv_header_crypto_h = yes && 20512 test $ac_cv_header_ssl_h = yes; then 20513 curl_ssl_msg="enabled (OpenSSL)" 20514 OPENSSL_ENABLED=1 20515 fi 20516 fi 20517 fi 20518 20519 if test X"$OPENSSL_ENABLED" = X"1"; then 20520 20521$as_echo "#define USE_SSLEAY 1" >>confdefs.h 20522 20523 20524 for ac_header in openssl/pkcs12.h 20525do : 20526 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default" 20527if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then : 20528 cat >>confdefs.h <<_ACEOF 20529#define HAVE_OPENSSL_PKCS12_H 1 20530_ACEOF 20531 20532fi 20533 20534done 20535 20536 else 20537 LIBS="$CLEANLIBS" 20538 fi 20539 USE_SSLEAY="$OPENSSL_ENABLED" 20540 20541 20542 if test X"$OPT_SSL" != Xoff && 20543 test "$OPENSSL_ENABLED" != "1"; then 20544 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 20545 fi 20546 fi 20547 20548 if test X"$OPENSSL_ENABLED" = X"1"; then 20549 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init" 20550if test "x$ac_cv_func_ENGINE_init" = xyes; then : 20551 20552 for ac_header in openssl/engine.h 20553do : 20554 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default" 20555if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 20556 cat >>confdefs.h <<_ACEOF 20557#define HAVE_OPENSSL_ENGINE_H 1 20558_ACEOF 20559 20560fi 20561 20562done 20563 20564 for ac_func in ENGINE_load_builtin_engines 20565do : 20566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20568if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20569 cat >>confdefs.h <<_ACEOF 20570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20571_ACEOF 20572 20573fi 20574done 20575 20576 20577fi 20578 20579 20580 20581 for ac_func in RAND_status \ 20582 RAND_screen \ 20583 RAND_egd \ 20584 ENGINE_cleanup \ 20585 CRYPTO_cleanup_all_ex_data \ 20586 SSL_get_shutdown 20587do : 20588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20590if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20591 cat >>confdefs.h <<_ACEOF 20592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20593_ACEOF 20594 20595fi 20596done 20597 20598 20599 20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5 20601$as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; } 20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20603/* end confdefs.h. */ 20604 20605 20606#include <openssl/ssl.h> 20607 20608int main (void) 20609{ 20610 20611#if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER) 20612 int dummy = SSL_ERROR_NONE; 20613#else 20614 Not the yaSSL OpenSSL compatibility header. 20615#endif 20616 20617 ; 20618 return 0; 20619} 20620 20621_ACEOF 20622if ac_fn_c_try_compile "$LINENO"; then : 20623 20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20625$as_echo "yes" >&6; } 20626 20627cat >>confdefs.h <<_ACEOF 20628#define USE_YASSLEMUL 1 20629_ACEOF 20630 20631 curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)" 20632 20633else 20634 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20636$as_echo "no" >&6; } 20637 20638fi 20639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20640 fi 20641 20642 if test "$OPENSSL_ENABLED" = "1"; then 20643 if test -n "$LIB_OPENSSL"; then 20644 20645 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL" 20646 export LD_LIBRARY_PATH 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5 20648$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;} 20649 fi 20650 20651 # 20652 20653 # 20654 tst_api="unknown" 20655 # 20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5 20657$as_echo_n "checking for OpenSSL headers version... " >&6; } 20658 20659 if test -z "$SED"; then 20660 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 20661 fi 20662 if test -z "$GREP"; then 20663 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 20664 fi 20665 20666 tmp_exp="" 20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20668/* end confdefs.h. */ 20669 20670 20671# ifdef USE_OPENSSL 20672# include <openssl/crypto.h> 20673# else 20674# include <crypto.h> 20675# endif 20676 20677#ifdef OPENSSL_VERSION_NUMBER 20678CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER 20679#endif 20680 20681 20682_ACEOF 20683if ac_fn_c_try_cpp "$LINENO"; then : 20684 20685 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 20686 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 20687 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \ 20688 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 20689 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then 20690 tmp_exp="" 20691 fi 20692 20693fi 20694rm -f conftest.err conftest.i conftest.$ac_ext 20695 if test -z "$tmp_exp"; then 20696 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no 20697 20698 else 20699 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes 20700 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp 20701 20702 fi 20703 20704 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then 20705 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'` 20706 case "x$tst_verlen" in 20707 x6) 20708 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 20709 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4` 20710 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 20711 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 20712 ;; 20713 x11) 20714 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 20715 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 20716 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7` 20717 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 20718 ;; 20719 *) 20720 tst_api="unknown" 20721 ;; 20722 esac 20723 case $tst_api in 20724 0x110) tst_show="1.1.0" ;; 20725 0x101) tst_show="1.0.1" ;; 20726 0x100) tst_show="1.0.0" ;; 20727 0x099) tst_show="0.9.9" ;; 20728 0x098) tst_show="0.9.8" ;; 20729 0x097) tst_show="0.9.7" ;; 20730 0x096) tst_show="0.9.6" ;; 20731 0x095) tst_show="0.9.5" ;; 20732 0x094) tst_show="0.9.4" ;; 20733 0x093) tst_show="0.9.3" ;; 20734 0x092) tst_show="0.9.2" ;; 20735 0x091) tst_show="0.9.1" ;; 20736 *) tst_show="unknown" ;; 20737 esac 20738 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER" 20739 else 20740 tst_show="unknown" 20741 fi 20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 20743$as_echo "$tst_show" >&6; } 20744 # 20745 curl_openssl_api_headers=$tst_api 20746 20747 20748 # 20749 tst_api="unknown" 20750 # 20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5 20752$as_echo_n "checking for OpenSSL library version... " >&6; } 20753 if test "$tst_api" = "unknown"; then 20754 case $host in 20755 *-*-vms*) 20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20757/* end confdefs.h. */ 20758 20759 20760#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb 20761#ifdef __STDC__ 20762# include <limits.h> 20763#else 20764# include <assert.h> 20765#endif 20766#undef SSL_CTX_set_not_resumbl_sess_cb 20767#ifdef __cplusplus 20768extern "C" 20769#endif 20770char SSL_CTX_set_not_resumbl_sess_cb (); 20771#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb 20772choke me 20773#endif 20774 20775int main (void) 20776{ 20777return SSL_CTX_set_not_resumbl_sess_cb (); 20778 ; 20779 return 0; 20780} 20781 20782_ACEOF 20783if ac_fn_c_try_link "$LINENO"; then : 20784 20785 tst_api="0x110" 20786 20787fi 20788rm -f core conftest.err conftest.$ac_objext \ 20789 conftest$ac_exeext conftest.$ac_ext 20790 ;; 20791 *) 20792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20793/* end confdefs.h. */ 20794 20795 20796#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback 20797#ifdef __STDC__ 20798# include <limits.h> 20799#else 20800# include <assert.h> 20801#endif 20802#undef SSL_CTX_set_not_resumable_session_callback 20803#ifdef __cplusplus 20804extern "C" 20805#endif 20806char SSL_CTX_set_not_resumable_session_callback (); 20807#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback 20808choke me 20809#endif 20810 20811int main (void) 20812{ 20813return SSL_CTX_set_not_resumable_session_callback (); 20814 ; 20815 return 0; 20816} 20817 20818_ACEOF 20819if ac_fn_c_try_link "$LINENO"; then : 20820 20821 tst_api="0x110" 20822 20823fi 20824rm -f core conftest.err conftest.$ac_objext \ 20825 conftest$ac_exeext conftest.$ac_ext 20826 ;; 20827 esac 20828 fi 20829 if test "$tst_api" = "unknown"; then 20830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20831/* end confdefs.h. */ 20832 20833 20834#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated 20835#ifdef __STDC__ 20836# include <limits.h> 20837#else 20838# include <assert.h> 20839#endif 20840#undef SSL_renegotiate_abbreviated 20841#ifdef __cplusplus 20842extern "C" 20843#endif 20844char SSL_renegotiate_abbreviated (); 20845#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated 20846choke me 20847#endif 20848 20849int main (void) 20850{ 20851return SSL_renegotiate_abbreviated (); 20852 ; 20853 return 0; 20854} 20855 20856_ACEOF 20857if ac_fn_c_try_link "$LINENO"; then : 20858 20859 tst_api="0x101" 20860 20861fi 20862rm -f core conftest.err conftest.$ac_objext \ 20863 conftest$ac_exeext conftest.$ac_ext 20864 fi 20865 if test "$tst_api" = "unknown"; then 20866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20867/* end confdefs.h. */ 20868 20869 20870#define OBJ_add_sigid innocuous_OBJ_add_sigid 20871#ifdef __STDC__ 20872# include <limits.h> 20873#else 20874# include <assert.h> 20875#endif 20876#undef OBJ_add_sigid 20877#ifdef __cplusplus 20878extern "C" 20879#endif 20880char OBJ_add_sigid (); 20881#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid 20882choke me 20883#endif 20884 20885int main (void) 20886{ 20887return OBJ_add_sigid (); 20888 ; 20889 return 0; 20890} 20891 20892_ACEOF 20893if ac_fn_c_try_link "$LINENO"; then : 20894 20895 tst_api="0x100" 20896 20897fi 20898rm -f core conftest.err conftest.$ac_objext \ 20899 conftest$ac_exeext conftest.$ac_ext 20900 fi 20901 if test "$tst_api" = "unknown"; then 20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20903/* end confdefs.h. */ 20904 20905 20906#define ERR_set_mark innocuous_ERR_set_mark 20907#ifdef __STDC__ 20908# include <limits.h> 20909#else 20910# include <assert.h> 20911#endif 20912#undef ERR_set_mark 20913#ifdef __cplusplus 20914extern "C" 20915#endif 20916char ERR_set_mark (); 20917#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark 20918choke me 20919#endif 20920 20921int main (void) 20922{ 20923return ERR_set_mark (); 20924 ; 20925 return 0; 20926} 20927 20928_ACEOF 20929if ac_fn_c_try_link "$LINENO"; then : 20930 20931 tst_api="0x098" 20932 20933fi 20934rm -f core conftest.err conftest.$ac_objext \ 20935 conftest$ac_exeext conftest.$ac_ext 20936 fi 20937 if test "$tst_api" = "unknown"; then 20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20939/* end confdefs.h. */ 20940 20941 20942#define ERR_peek_last_error innocuous_ERR_peek_last_error 20943#ifdef __STDC__ 20944# include <limits.h> 20945#else 20946# include <assert.h> 20947#endif 20948#undef ERR_peek_last_error 20949#ifdef __cplusplus 20950extern "C" 20951#endif 20952char ERR_peek_last_error (); 20953#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error 20954choke me 20955#endif 20956 20957int main (void) 20958{ 20959return ERR_peek_last_error (); 20960 ; 20961 return 0; 20962} 20963 20964_ACEOF 20965if ac_fn_c_try_link "$LINENO"; then : 20966 20967 tst_api="0x097" 20968 20969fi 20970rm -f core conftest.err conftest.$ac_objext \ 20971 conftest$ac_exeext conftest.$ac_ext 20972 fi 20973 if test "$tst_api" = "unknown"; then 20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20975/* end confdefs.h. */ 20976 20977 20978#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT 20979#ifdef __STDC__ 20980# include <limits.h> 20981#else 20982# include <assert.h> 20983#endif 20984#undef c2i_ASN1_OBJECT 20985#ifdef __cplusplus 20986extern "C" 20987#endif 20988char c2i_ASN1_OBJECT (); 20989#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT 20990choke me 20991#endif 20992 20993int main (void) 20994{ 20995return c2i_ASN1_OBJECT (); 20996 ; 20997 return 0; 20998} 20999 21000_ACEOF 21001if ac_fn_c_try_link "$LINENO"; then : 21002 21003 tst_api="0x096" 21004 21005fi 21006rm -f core conftest.err conftest.$ac_objext \ 21007 conftest$ac_exeext conftest.$ac_ext 21008 fi 21009 if test "$tst_api" = "unknown"; then 21010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21011/* end confdefs.h. */ 21012 21013 21014#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose 21015#ifdef __STDC__ 21016# include <limits.h> 21017#else 21018# include <assert.h> 21019#endif 21020#undef SSL_CTX_set_purpose 21021#ifdef __cplusplus 21022extern "C" 21023#endif 21024char SSL_CTX_set_purpose (); 21025#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose 21026choke me 21027#endif 21028 21029int main (void) 21030{ 21031return SSL_CTX_set_purpose (); 21032 ; 21033 return 0; 21034} 21035 21036_ACEOF 21037if ac_fn_c_try_link "$LINENO"; then : 21038 21039 tst_api="0x095" 21040 21041fi 21042rm -f core conftest.err conftest.$ac_objext \ 21043 conftest$ac_exeext conftest.$ac_ext 21044 fi 21045 if test "$tst_api" = "unknown"; then 21046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21047/* end confdefs.h. */ 21048 21049 21050#define OBJ_obj2txt innocuous_OBJ_obj2txt 21051#ifdef __STDC__ 21052# include <limits.h> 21053#else 21054# include <assert.h> 21055#endif 21056#undef OBJ_obj2txt 21057#ifdef __cplusplus 21058extern "C" 21059#endif 21060char OBJ_obj2txt (); 21061#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt 21062choke me 21063#endif 21064 21065int main (void) 21066{ 21067return OBJ_obj2txt (); 21068 ; 21069 return 0; 21070} 21071 21072_ACEOF 21073if ac_fn_c_try_link "$LINENO"; then : 21074 21075 tst_api="0x094" 21076 21077fi 21078rm -f core conftest.err conftest.$ac_objext \ 21079 conftest$ac_exeext conftest.$ac_ext 21080 fi 21081 if test "$tst_api" = "unknown"; then 21082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21083/* end confdefs.h. */ 21084 21085 21086#define SSL_get_verify_depth innocuous_SSL_get_verify_depth 21087#ifdef __STDC__ 21088# include <limits.h> 21089#else 21090# include <assert.h> 21091#endif 21092#undef SSL_get_verify_depth 21093#ifdef __cplusplus 21094extern "C" 21095#endif 21096char SSL_get_verify_depth (); 21097#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth 21098choke me 21099#endif 21100 21101int main (void) 21102{ 21103return SSL_get_verify_depth (); 21104 ; 21105 return 0; 21106} 21107 21108_ACEOF 21109if ac_fn_c_try_link "$LINENO"; then : 21110 21111 tst_api="0x093" 21112 21113fi 21114rm -f core conftest.err conftest.$ac_objext \ 21115 conftest$ac_exeext conftest.$ac_ext 21116 fi 21117 if test "$tst_api" = "unknown"; then 21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21119/* end confdefs.h. */ 21120 21121 21122#define SSL_library_init innocuous_SSL_library_init 21123#ifdef __STDC__ 21124# include <limits.h> 21125#else 21126# include <assert.h> 21127#endif 21128#undef SSL_library_init 21129#ifdef __cplusplus 21130extern "C" 21131#endif 21132char SSL_library_init (); 21133#if defined __stub_SSL_library_init || defined __stub___SSL_library_init 21134choke me 21135#endif 21136 21137int main (void) 21138{ 21139return SSL_library_init (); 21140 ; 21141 return 0; 21142} 21143 21144_ACEOF 21145if ac_fn_c_try_link "$LINENO"; then : 21146 21147 tst_api="0x092" 21148 21149fi 21150rm -f core conftest.err conftest.$ac_objext \ 21151 conftest$ac_exeext conftest.$ac_ext 21152 fi 21153 if test "$tst_api" = "unknown"; then 21154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21155/* end confdefs.h. */ 21156 21157 21158#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list 21159#ifdef __STDC__ 21160# include <limits.h> 21161#else 21162# include <assert.h> 21163#endif 21164#undef SSL_CTX_set_cipher_list 21165#ifdef __cplusplus 21166extern "C" 21167#endif 21168char SSL_CTX_set_cipher_list (); 21169#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list 21170choke me 21171#endif 21172 21173int main (void) 21174{ 21175return SSL_CTX_set_cipher_list (); 21176 ; 21177 return 0; 21178} 21179 21180_ACEOF 21181if ac_fn_c_try_link "$LINENO"; then : 21182 21183 tst_api="0x091" 21184 21185fi 21186rm -f core conftest.err conftest.$ac_objext \ 21187 conftest$ac_exeext conftest.$ac_ext 21188 fi 21189 case $tst_api in 21190 0x110) tst_show="1.1.0" ;; 21191 0x101) tst_show="1.0.1" ;; 21192 0x100) tst_show="1.0.0" ;; 21193 0x099) tst_show="0.9.9" ;; 21194 0x098) tst_show="0.9.8" ;; 21195 0x097) tst_show="0.9.7" ;; 21196 0x096) tst_show="0.9.6" ;; 21197 0x095) tst_show="0.9.5" ;; 21198 0x094) tst_show="0.9.4" ;; 21199 0x093) tst_show="0.9.3" ;; 21200 0x092) tst_show="0.9.2" ;; 21201 0x091) tst_show="0.9.1" ;; 21202 *) tst_show="unknown" ;; 21203 esac 21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 21205$as_echo "$tst_show" >&6; } 21206 # 21207 curl_openssl_api_library=$tst_api 21208 21209 # 21210 tst_match="yes" 21211 # 21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5 21213$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; } 21214 if test "$curl_openssl_api_headers" = "unknown" || 21215 test "$curl_openssl_api_library" = "unknown"; then 21216 tst_match="fail" 21217 tst_warns="Can not compare OpenSSL headers and library versions." 21218 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then 21219 tst_match="no" 21220 tst_warns="OpenSSL headers and library versions do not match." 21221 fi 21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5 21223$as_echo "$tst_match" >&6; } 21224 if test "$tst_match" != "yes"; then 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5 21226$as_echo "$as_me: WARNING: $tst_warns" >&2;} 21227 fi 21228 21229 fi 21230 21231fi 21232 21233 21234 21235_cppflags=$CPPFLAGS 21236_ldflags=$LDFLAGS 21237 21238# Check whether --with-zlib was given. 21239if test "${with_zlib+set}" = set; then : 21240 withval=$with_zlib; OPT_ZLIB="$withval" 21241fi 21242 21243 21244if test "$OPT_ZLIB" = "no" ; then 21245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 21246$as_echo "$as_me: WARNING: zlib disabled" >&2;} 21247else 21248 if test "$OPT_ZLIB" = "yes" ; then 21249 OPT_ZLIB="" 21250 fi 21251 21252 if test -z "$OPT_ZLIB" ; then 21253 21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 21255$as_echo_n "checking for inflateEnd in -lz... " >&6; } 21256if ${ac_cv_lib_z_inflateEnd+:} false; then : 21257 $as_echo_n "(cached) " >&6 21258else 21259 ac_check_lib_save_LIBS=$LIBS 21260LIBS="-lz $LIBS" 21261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21262/* end confdefs.h. */ 21263 21264 21265#ifdef __cplusplus 21266extern "C" 21267#endif 21268char inflateEnd (); 21269int main (void) 21270{ 21271return inflateEnd (); 21272 ; 21273 return 0; 21274} 21275_ACEOF 21276if ac_fn_c_try_link "$LINENO"; then : 21277 ac_cv_lib_z_inflateEnd=yes 21278else 21279 ac_cv_lib_z_inflateEnd=no 21280fi 21281rm -f core conftest.err conftest.$ac_objext \ 21282 conftest$ac_exeext conftest.$ac_ext 21283LIBS=$ac_check_lib_save_LIBS 21284fi 21285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 21286$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 21287if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 21288 HAVE_LIBZ="1" 21289else 21290 OPT_ZLIB="/usr/local" 21291fi 21292 21293 21294 fi 21295 21296 if test -n "$OPT_ZLIB"; then 21297 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" 21298 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" 21299 fi 21300 21301 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 21302if test "x$ac_cv_header_zlib_h" = xyes; then : 21303 21304 HAVE_ZLIB_H="1" 21305 if test "$HAVE_LIBZ" != "1"; then 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 21307$as_echo_n "checking for gzread in -lz... " >&6; } 21308if ${ac_cv_lib_z_gzread+:} false; then : 21309 $as_echo_n "(cached) " >&6 21310else 21311 ac_check_lib_save_LIBS=$LIBS 21312LIBS="-lz $LIBS" 21313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21314/* end confdefs.h. */ 21315 21316 21317#ifdef __cplusplus 21318extern "C" 21319#endif 21320char gzread (); 21321int main (void) 21322{ 21323return gzread (); 21324 ; 21325 return 0; 21326} 21327_ACEOF 21328if ac_fn_c_try_link "$LINENO"; then : 21329 ac_cv_lib_z_gzread=yes 21330else 21331 ac_cv_lib_z_gzread=no 21332fi 21333rm -f core conftest.err conftest.$ac_objext \ 21334 conftest$ac_exeext conftest.$ac_ext 21335LIBS=$ac_check_lib_save_LIBS 21336fi 21337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 21338$as_echo "$ac_cv_lib_z_gzread" >&6; } 21339if test "x$ac_cv_lib_z_gzread" = xyes; then : 21340 21341 HAVE_LIBZ="1" 21342 21343else 21344 CPPFLAGS=$_cppflags 21345 LDFLAGS=$_ldflags 21346fi 21347 21348 fi 21349 21350else 21351 21352 CPPFLAGS=$_cppflags 21353 LDFLAGS=$_ldflags 21354 21355fi 21356 21357 21358 21359 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1" 21360 then 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 21362$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} 21363 HAVE_LIBZ="" 21364 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1" 21365 then 21366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 21367$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} 21368 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1" 21369 then 21370 21371 21372$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 21373 21374 21375$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 21376 21377 21378 CURL_LIBS="$CURL_LIBS -lz" 21379 LIBS="$LIBS -lz" 21380 21381 AMFIXLIB="1" 21382 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 21383$as_echo "$as_me: found both libz and libz.h header" >&6;} 21384 curl_zlib_msg="enabled" 21385 fi 21386fi 21387 21388 21389 21390if test x"$AMFIXLIB" = x1; then 21391 HAVE_LIBZ_TRUE= 21392 HAVE_LIBZ_FALSE='#' 21393else 21394 HAVE_LIBZ_TRUE='#' 21395 HAVE_LIBZ_FALSE= 21396fi 21397 21398 21399 21400if test X"$OPENSSL_ENABLED" = X"1"; then 21401 21402# Check whether --with-egd-socket was given. 21403if test "${with_egd_socket+set}" = set; then : 21404 withval=$with_egd_socket; EGD_SOCKET="$withval" 21405 21406fi 21407 21408 if test -n "$EGD_SOCKET" ; then 21409 21410cat >>confdefs.h <<_ACEOF 21411#define EGD_SOCKET "$EGD_SOCKET" 21412_ACEOF 21413 21414 fi 21415 21416 21417# Check whether --with-random was given. 21418if test "${with_random+set}" = set; then : 21419 withval=$with_random; RANDOM_FILE="$withval" 21420else 21421 21422 if test x$cross_compiling != xyes; then 21423 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh` 21424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5 21425$as_echo_n "checking for \"/dev/urandom\"... " >&6; } 21426if eval \${$as_ac_File+:} false; then : 21427 $as_echo_n "(cached) " >&6 21428else 21429 test "$cross_compiling" = yes && 21430 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 21431if test -r ""/dev/urandom""; then 21432 eval "$as_ac_File=yes" 21433else 21434 eval "$as_ac_File=no" 21435fi 21436fi 21437eval ac_res=\$$as_ac_File 21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21439$as_echo "$ac_res" >&6; } 21440if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 21441 RANDOM_FILE="/dev/urandom" 21442fi 21443 21444 else 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5 21446$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;} 21447 fi 21448 21449 21450fi 21451 21452 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then 21453 21454 21455cat >>confdefs.h <<_ACEOF 21456#define RANDOM_FILE "$RANDOM_FILE" 21457_ACEOF 21458 21459 fi 21460fi 21461 21462if test "$OPENSSL_ENABLED" = "1"; then 21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5 21464$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; } 21465if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then : 21466 $as_echo_n "(cached) " >&6 21467else 21468 ac_check_lib_save_LIBS=$LIBS 21469LIBS="-lcrypto $LIBS" 21470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21471/* end confdefs.h. */ 21472 21473 21474#ifdef __cplusplus 21475extern "C" 21476#endif 21477char SRP_Calc_client_key (); 21478int main (void) 21479{ 21480return SRP_Calc_client_key (); 21481 ; 21482 return 0; 21483} 21484_ACEOF 21485if ac_fn_c_try_link "$LINENO"; then : 21486 ac_cv_lib_crypto_SRP_Calc_client_key=yes 21487else 21488 ac_cv_lib_crypto_SRP_Calc_client_key=no 21489fi 21490rm -f core conftest.err conftest.$ac_objext \ 21491 conftest$ac_exeext conftest.$ac_ext 21492LIBS=$ac_check_lib_save_LIBS 21493fi 21494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5 21495$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; } 21496if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then : 21497 21498 21499$as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h 21500 21501 HAVE_SSLEAY_SRP=1 21502 21503 21504fi 21505 21506fi 21507 21508 21509OPT_GNUTLS=no 21510 21511 21512# Check whether --with-gnutls was given. 21513if test "${with_gnutls+set}" = set; then : 21514 withval=$with_gnutls; OPT_GNUTLS=$withval 21515fi 21516 21517 21518if test "$OPENSSL_ENABLED" != "1"; then 21519 21520 if test X"$OPT_GNUTLS" != Xno; then 21521 21522 addld="" 21523 if test "x$OPT_GNUTLS" = "xyes"; then 21524 21525 21526 PKGCONFIG="no" 21527 21528 if test x$cross_compiling = xyes; then 21529 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 21530set dummy ${host}-pkg-config; ac_word=$2 21531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21532$as_echo_n "checking for $ac_word... " >&6; } 21533if ${ac_cv_path_PKGCONFIG+:} false; then : 21534 $as_echo_n "(cached) " >&6 21535else 21536 case $PKGCONFIG in 21537 [\\/]* | ?:[\\/]*) 21538 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 21539 ;; 21540 *) 21541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21542as_dummy="$PATH:/usr/bin:/usr/local/bin" 21543for as_dir in $as_dummy 21544do 21545 IFS=$as_save_IFS 21546 test -z "$as_dir" && as_dir=. 21547 for ac_exec_ext in '' $ac_executable_extensions; do 21548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21549 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 21550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21551 break 2 21552 fi 21553done 21554 done 21555IFS=$as_save_IFS 21556 21557 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 21558 ;; 21559esac 21560fi 21561PKGCONFIG=$ac_cv_path_PKGCONFIG 21562if test -n "$PKGCONFIG"; then 21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 21564$as_echo "$PKGCONFIG" >&6; } 21565else 21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21567$as_echo "no" >&6; } 21568fi 21569 21570 21571 fi 21572 21573 if test x$PKGCONFIG = xno; then 21574 # Extract the first word of "pkg-config", so it can be a program name with args. 21575set dummy pkg-config; ac_word=$2 21576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21577$as_echo_n "checking for $ac_word... " >&6; } 21578if ${ac_cv_path_PKGCONFIG+:} false; then : 21579 $as_echo_n "(cached) " >&6 21580else 21581 case $PKGCONFIG in 21582 [\\/]* | ?:[\\/]*) 21583 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 21584 ;; 21585 *) 21586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21587as_dummy="$PATH:/usr/bin:/usr/local/bin" 21588for as_dir in $as_dummy 21589do 21590 IFS=$as_save_IFS 21591 test -z "$as_dir" && as_dir=. 21592 for ac_exec_ext in '' $ac_executable_extensions; do 21593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21594 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 21595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21596 break 2 21597 fi 21598done 21599 done 21600IFS=$as_save_IFS 21601 21602 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 21603 ;; 21604esac 21605fi 21606PKGCONFIG=$ac_cv_path_PKGCONFIG 21607if test -n "$PKGCONFIG"; then 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 21609$as_echo "$PKGCONFIG" >&6; } 21610else 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21612$as_echo "no" >&6; } 21613fi 21614 21615 21616 fi 21617 21618 if test x$PKGCONFIG != xno; then 21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 21620$as_echo_n "checking for gnutls options with pkg-config... " >&6; } 21621 itexists=` 21622 if test -n ""; then 21623 PKG_CONFIG_LIBDIR="" 21624 export PKG_CONFIG_LIBDIR 21625 fi 21626 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` 21627 21628 if test -z "$itexists"; then 21629 PKGCONFIG="no" 21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21631$as_echo "no" >&6; } 21632 else 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 21634$as_echo "found" >&6; } 21635 fi 21636 fi 21637 21638 21639 if test "$PKGCONFIG" != "no" ; then 21640 addlib=`$PKGCONFIG --libs-only-l gnutls` 21641 addld=`$PKGCONFIG --libs-only-L gnutls` 21642 addcflags=`$PKGCONFIG --cflags-only-I gnutls` 21643 version=`$PKGCONFIG --modversion gnutls` 21644 gtlslib=`echo $addld | $SED -e 's/-L//'` 21645 else 21646 check=`libgnutls-config --version 2>/dev/null` 21647 if test -n "$check"; then 21648 addlib=`libgnutls-config --libs` 21649 addcflags=`libgnutls-config --cflags` 21650 version=`libgnutls-config --version` 21651 gtlslib=`libgnutls-config --prefix`/lib$libsuff 21652 fi 21653 fi 21654 else 21655 cfg=$OPT_GNUTLS/bin/libgnutls-config 21656 check=`$cfg --version 2>/dev/null` 21657 if test -n "$check"; then 21658 addlib=`$cfg --libs` 21659 addcflags=`$cfg --cflags` 21660 version=`$cfg --version` 21661 gtlslib=`$cfg --prefix`/lib$libsuff 21662 else 21663 addlib=-lgnutls 21664 addld=-L$OPT_GNUTLS/lib$libsuff 21665 addcflags=-I$OPT_GNUTLS/include 21666 version="" # we just don't know 21667 gtlslib=$OPT_GNUTLS/lib$libsuff 21668 fi 21669 fi 21670 21671 if test -z "$version"; then 21672 version="unknown" 21673 fi 21674 21675 if test -n "$addlib"; then 21676 21677 CLEANLIBS="$LIBS" 21678 CLEANCPPFLAGS="$CPPFLAGS" 21679 CLEADLDFLAGS="$LDFLAGS" 21680 21681 LIBS="$LIBS $addlib" 21682 LDFLAGS="$LDFLAGS $addld" 21683 if test "$addcflags" != "-I/usr/include"; then 21684 CPPFLAGS="$CPPFLAGS $addcflags" 21685 fi 21686 21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5 21688$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } 21689if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then : 21690 $as_echo_n "(cached) " >&6 21691else 21692 ac_check_lib_save_LIBS=$LIBS 21693LIBS="-lgnutls $LIBS" 21694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21695/* end confdefs.h. */ 21696 21697 21698#ifdef __cplusplus 21699extern "C" 21700#endif 21701char gnutls_check_version (); 21702int main (void) 21703{ 21704return gnutls_check_version (); 21705 ; 21706 return 0; 21707} 21708_ACEOF 21709if ac_fn_c_try_link "$LINENO"; then : 21710 ac_cv_lib_gnutls_gnutls_check_version=yes 21711else 21712 ac_cv_lib_gnutls_gnutls_check_version=no 21713fi 21714rm -f core conftest.err conftest.$ac_objext \ 21715 conftest$ac_exeext conftest.$ac_ext 21716LIBS=$ac_check_lib_save_LIBS 21717fi 21718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 21719$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } 21720if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then : 21721 21722 21723$as_echo "#define USE_GNUTLS 1" >>confdefs.h 21724 21725 USE_GNUTLS=1 21726 21727 GNUTLS_ENABLED=1 21728 USE_GNUTLS="yes" 21729 curl_ssl_msg="enabled (GnuTLS)" 21730 21731else 21732 21733 LIBS="$CLEANLIBS" 21734 CPPFLAGS="$CLEANCPPFLAGS" 21735 21736fi 21737 21738 21739 if test "x$USE_GNUTLS" = "xyes"; then 21740 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 21741$as_echo "$as_me: detected GnuTLS version $version" >&6;} 21742 21743 if test -n "$gtlslib"; then 21744 21745 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib" 21746 export LD_LIBRARY_PATH 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5 21748$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;} 21749 fi 21750 fi 21751 21752 fi 21753 21754 fi 21755fi 21756 21757if test "$GNUTLS_ENABLED" = "1"; then 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5 21759$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; } 21760if ${ac_cv_lib_gcrypt_gcry_control+:} false; then : 21761 $as_echo_n "(cached) " >&6 21762else 21763 ac_check_lib_save_LIBS=$LIBS 21764LIBS="-lgcrypt $LIBS" 21765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21766/* end confdefs.h. */ 21767 21768 21769#ifdef __cplusplus 21770extern "C" 21771#endif 21772char gcry_control (); 21773int main (void) 21774{ 21775return gcry_control (); 21776 ; 21777 return 0; 21778} 21779_ACEOF 21780if ac_fn_c_try_link "$LINENO"; then : 21781 ac_cv_lib_gcrypt_gcry_control=yes 21782else 21783 ac_cv_lib_gcrypt_gcry_control=no 21784fi 21785rm -f core conftest.err conftest.$ac_objext \ 21786 conftest$ac_exeext conftest.$ac_ext 21787LIBS=$ac_check_lib_save_LIBS 21788fi 21789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5 21790$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; } 21791if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then : 21792 cat >>confdefs.h <<_ACEOF 21793#define HAVE_LIBGCRYPT 1 21794_ACEOF 21795 21796 LIBS="-lgcrypt $LIBS" 21797 21798else 21799 21800 as_fn_error $? "need GnuTLS built with gcrypt to function with GnuTLS" "$LINENO" 5 21801 21802fi 21803 21804fi 21805 21806if test "$GNUTLS_ENABLED" = "1"; then 21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 21808$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; } 21809if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then : 21810 $as_echo_n "(cached) " >&6 21811else 21812 ac_check_lib_save_LIBS=$LIBS 21813LIBS="-lgnutls $LIBS" 21814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21815/* end confdefs.h. */ 21816 21817 21818#ifdef __cplusplus 21819extern "C" 21820#endif 21821char gnutls_srp_verifier (); 21822int main (void) 21823{ 21824return gnutls_srp_verifier (); 21825 ; 21826 return 0; 21827} 21828_ACEOF 21829if ac_fn_c_try_link "$LINENO"; then : 21830 ac_cv_lib_gnutls_gnutls_srp_verifier=yes 21831else 21832 ac_cv_lib_gnutls_gnutls_srp_verifier=no 21833fi 21834rm -f core conftest.err conftest.$ac_objext \ 21835 conftest$ac_exeext conftest.$ac_ext 21836LIBS=$ac_check_lib_save_LIBS 21837fi 21838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 21839$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } 21840if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then : 21841 21842 21843$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h 21844 21845 HAVE_GNUTLS_SRP=1 21846 21847 21848fi 21849 21850fi 21851 21852 21853OPT_POLARSSL=no 21854 21855_cppflags=$CPPFLAGS 21856_ldflags=$LDFLAGS 21857 21858# Check whether --with-polarssl was given. 21859if test "${with_polarssl+set}" = set; then : 21860 withval=$with_polarssl; OPT_POLARSSL=$withval 21861fi 21862 21863 21864if test "$OPENSSL_ENABLED" != "1"; then 21865 21866 if test X"$OPT_POLARSSL" != Xno; then 21867 21868 if test "$OPT_POLARSSL" = "yes"; then 21869 OPT_POLARSSL="" 21870 fi 21871 21872 if test -z "$OPT_POLARSSL" ; then 21873 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5 21875$as_echo_n "checking for havege_init in -lpolarssl... " >&6; } 21876if ${ac_cv_lib_polarssl_havege_init+:} false; then : 21877 $as_echo_n "(cached) " >&6 21878else 21879 ac_check_lib_save_LIBS=$LIBS 21880LIBS="-lpolarssl $LIBS" 21881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21882/* end confdefs.h. */ 21883 21884 21885#ifdef __cplusplus 21886extern "C" 21887#endif 21888char havege_init (); 21889int main (void) 21890{ 21891return havege_init (); 21892 ; 21893 return 0; 21894} 21895_ACEOF 21896if ac_fn_c_try_link "$LINENO"; then : 21897 ac_cv_lib_polarssl_havege_init=yes 21898else 21899 ac_cv_lib_polarssl_havege_init=no 21900fi 21901rm -f core conftest.err conftest.$ac_objext \ 21902 conftest$ac_exeext conftest.$ac_ext 21903LIBS=$ac_check_lib_save_LIBS 21904fi 21905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5 21906$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; } 21907if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then : 21908 21909 21910$as_echo "#define USE_POLARSSL 1" >>confdefs.h 21911 21912 USE_POLARSSL=1 21913 21914 POLARSSL_ENABLED=1 21915 USE_POLARSSL="yes" 21916 curl_ssl_msg="enabled (PolarSSL)" 21917 21918fi 21919 21920 fi 21921 21922 if test "x$USE_POLARSSL" != "xyes"; then 21923 addld=-L$OPT_POLARSSL/lib$libsuff 21924 addcflags=-I$OPT_POLARSSL/include 21925 polarssllib=$OPT_POLARSSL/lib$libsuff 21926 21927 LDFLAGS="$LDFLAGS $addld" 21928 if test "$addcflags" != "-I/usr/include"; then 21929 CPPFLAGS="$CPPFLAGS $addcflags" 21930 fi 21931 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5 21933$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; } 21934if ${ac_cv_lib_polarssl_ssl_init+:} false; then : 21935 $as_echo_n "(cached) " >&6 21936else 21937 ac_check_lib_save_LIBS=$LIBS 21938LIBS="-lpolarssl $LIBS" 21939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21940/* end confdefs.h. */ 21941 21942 21943#ifdef __cplusplus 21944extern "C" 21945#endif 21946char ssl_init (); 21947int main (void) 21948{ 21949return ssl_init (); 21950 ; 21951 return 0; 21952} 21953_ACEOF 21954if ac_fn_c_try_link "$LINENO"; then : 21955 ac_cv_lib_polarssl_ssl_init=yes 21956else 21957 ac_cv_lib_polarssl_ssl_init=no 21958fi 21959rm -f core conftest.err conftest.$ac_objext \ 21960 conftest$ac_exeext conftest.$ac_ext 21961LIBS=$ac_check_lib_save_LIBS 21962fi 21963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5 21964$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; } 21965if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then : 21966 21967 21968$as_echo "#define USE_POLARSSL 1" >>confdefs.h 21969 21970 USE_POLARSSL=1 21971 21972 POLARSSL_ENABLED=1 21973 USE_POLARSSL="yes" 21974 curl_ssl_msg="enabled (PolarSSL)" 21975 21976else 21977 21978 CPPFLAGS=$_cppflags 21979 LDFLAGS=$_ldflags 21980 21981fi 21982 21983 fi 21984 21985 if test "x$USE_POLARSSL" = "xyes"; then 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5 21987$as_echo "$as_me: detected PolarSSL" >&6;} 21988 21989 CURL_LIBS="$CURL_LIBS -lpolarssl" 21990 LIBS="$LIBS -lpolarssl" 21991 21992 if test -n "$polarssllib"; then 21993 21994 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib" 21995 export LD_LIBRARY_PATH 21996 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5 21997$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;} 21998 fi 21999 22000 fi 22001 22002 fi 22003fi 22004 22005OPT_CYASSL=no 22006 22007_cppflags=$CPPFLAGS 22008_ldflags=$LDFLAGS 22009 22010# Check whether --with-cyassl was given. 22011if test "${with_cyassl+set}" = set; then : 22012 withval=$with_cyassl; OPT_CYASSL=$withval 22013fi 22014 22015 22016if test "$OPENSSL_ENABLED" != "1"; then 22017 22018 if test X"$OPT_CYASSL" != Xno; then 22019 22020 if test "$OPT_CYASSL" = "yes"; then 22021 OPT_CYASSL="" 22022 fi 22023 22024 if test -z "$OPT_CYASSL" ; then 22025 22026 trycyassldir="/usr/local/cyassl" 22027 22028 LDFLAGS="$LDFLAGS -L$trycyassldir/lib" 22029 CPPFLAGS="$CPPFLAGS -I$trycyassldir/include" 22030 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InitCyaSSL in -lcyassl" >&5 22032$as_echo_n "checking for InitCyaSSL in -lcyassl... " >&6; } 22033if ${ac_cv_lib_cyassl_InitCyaSSL+:} false; then : 22034 $as_echo_n "(cached) " >&6 22035else 22036 ac_check_lib_save_LIBS=$LIBS 22037LIBS="-lcyassl $LIBS" 22038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22039/* end confdefs.h. */ 22040 22041 22042#ifdef __cplusplus 22043extern "C" 22044#endif 22045char InitCyaSSL (); 22046int main (void) 22047{ 22048return InitCyaSSL (); 22049 ; 22050 return 0; 22051} 22052_ACEOF 22053if ac_fn_c_try_link "$LINENO"; then : 22054 ac_cv_lib_cyassl_InitCyaSSL=yes 22055else 22056 ac_cv_lib_cyassl_InitCyaSSL=no 22057fi 22058rm -f core conftest.err conftest.$ac_objext \ 22059 conftest$ac_exeext conftest.$ac_ext 22060LIBS=$ac_check_lib_save_LIBS 22061fi 22062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_InitCyaSSL" >&5 22063$as_echo "$ac_cv_lib_cyassl_InitCyaSSL" >&6; } 22064if test "x$ac_cv_lib_cyassl_InitCyaSSL" = xyes; then : 22065 22066 22067$as_echo "#define USE_CYASSL 1" >>confdefs.h 22068 22069 USE_CYASSL=1 22070 22071 CYASSL_ENABLED=1 22072 USE_CYASSL="yes" 22073 curl_ssl_msg="enabled (CyaSSL)" 22074 22075fi 22076 22077 fi 22078 22079 if test "x$USE_CYASSL" != "xyes"; then 22080 addld=-L$OPT_CYASSL/lib$libsuff 22081 addcflags=-I$OPT_CYASSL/include 22082 cyassllib=$OPT_CYASSL/lib$libsuff 22083 22084 LDFLAGS="$LDFLAGS $addld" 22085 if test "$addcflags" != "-I/usr/include"; then 22086 CPPFLAGS="$CPPFLAGS $addcflags" 22087 fi 22088 22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InitCyaSSL in -lcyassl" >&5 22090$as_echo_n "checking for InitCyaSSL in -lcyassl... " >&6; } 22091if ${ac_cv_lib_cyassl_InitCyaSSL+:} false; then : 22092 $as_echo_n "(cached) " >&6 22093else 22094 ac_check_lib_save_LIBS=$LIBS 22095LIBS="-lcyassl $LIBS" 22096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22097/* end confdefs.h. */ 22098 22099 22100#ifdef __cplusplus 22101extern "C" 22102#endif 22103char InitCyaSSL (); 22104int main (void) 22105{ 22106return InitCyaSSL (); 22107 ; 22108 return 0; 22109} 22110_ACEOF 22111if ac_fn_c_try_link "$LINENO"; then : 22112 ac_cv_lib_cyassl_InitCyaSSL=yes 22113else 22114 ac_cv_lib_cyassl_InitCyaSSL=no 22115fi 22116rm -f core conftest.err conftest.$ac_objext \ 22117 conftest$ac_exeext conftest.$ac_ext 22118LIBS=$ac_check_lib_save_LIBS 22119fi 22120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_InitCyaSSL" >&5 22121$as_echo "$ac_cv_lib_cyassl_InitCyaSSL" >&6; } 22122if test "x$ac_cv_lib_cyassl_InitCyaSSL" = xyes; then : 22123 22124 22125$as_echo "#define USE_CYASSL 1" >>confdefs.h 22126 22127 USE_CYASSL=1 22128 22129 CYASSL_ENABLED=1 22130 USE_CYASSL="yes" 22131 curl_ssl_msg="enabled (CyaSSL)" 22132 22133else 22134 22135 CPPFLAGS=$_cppflags 22136 LDFLAGS=$_ldflags 22137 22138fi 22139 22140 fi 22141 22142 if test "x$USE_CYASSL" = "xyes"; then 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5 22144$as_echo "$as_me: detected CyaSSL" >&6;} 22145 22146 CURL_LIBS="$CURL_LIBS -lcyassl -lm" 22147 LIBS="$LIBS -lcyassl -lm" 22148 22149 if test -n "$cyassllib"; then 22150 22151 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib" 22152 export LD_LIBRARY_PATH 22153 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5 22154$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;} 22155 fi 22156 22157 fi 22158 22159 fi 22160fi 22161 22162OPT_NSS=no 22163 22164 22165# Check whether --with-nss was given. 22166if test "${with_nss+set}" = set; then : 22167 withval=$with_nss; OPT_NSS=$withval 22168fi 22169 22170 22171if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then 22172 22173 if test X"$OPT_NSS" != Xno; then 22174 if test "x$OPT_NSS" = "xyes"; then 22175 22176 22177 22178 PKGCONFIG="no" 22179 22180 if test x$cross_compiling = xyes; then 22181 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 22182set dummy ${host}-pkg-config; ac_word=$2 22183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22184$as_echo_n "checking for $ac_word... " >&6; } 22185if ${ac_cv_path_PKGCONFIG+:} false; then : 22186 $as_echo_n "(cached) " >&6 22187else 22188 case $PKGCONFIG in 22189 [\\/]* | ?:[\\/]*) 22190 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22191 ;; 22192 *) 22193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22194as_dummy="$PATH:/usr/bin:/usr/local/bin" 22195for as_dir in $as_dummy 22196do 22197 IFS=$as_save_IFS 22198 test -z "$as_dir" && as_dir=. 22199 for ac_exec_ext in '' $ac_executable_extensions; do 22200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22201 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22203 break 2 22204 fi 22205done 22206 done 22207IFS=$as_save_IFS 22208 22209 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22210 ;; 22211esac 22212fi 22213PKGCONFIG=$ac_cv_path_PKGCONFIG 22214if test -n "$PKGCONFIG"; then 22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22216$as_echo "$PKGCONFIG" >&6; } 22217else 22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22219$as_echo "no" >&6; } 22220fi 22221 22222 22223 fi 22224 22225 if test x$PKGCONFIG = xno; then 22226 # Extract the first word of "pkg-config", so it can be a program name with args. 22227set dummy pkg-config; ac_word=$2 22228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22229$as_echo_n "checking for $ac_word... " >&6; } 22230if ${ac_cv_path_PKGCONFIG+:} false; then : 22231 $as_echo_n "(cached) " >&6 22232else 22233 case $PKGCONFIG in 22234 [\\/]* | ?:[\\/]*) 22235 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22236 ;; 22237 *) 22238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22239as_dummy="$PATH:/usr/bin:/usr/local/bin" 22240for as_dir in $as_dummy 22241do 22242 IFS=$as_save_IFS 22243 test -z "$as_dir" && as_dir=. 22244 for ac_exec_ext in '' $ac_executable_extensions; do 22245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22246 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22248 break 2 22249 fi 22250done 22251 done 22252IFS=$as_save_IFS 22253 22254 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22255 ;; 22256esac 22257fi 22258PKGCONFIG=$ac_cv_path_PKGCONFIG 22259if test -n "$PKGCONFIG"; then 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22261$as_echo "$PKGCONFIG" >&6; } 22262else 22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22264$as_echo "no" >&6; } 22265fi 22266 22267 22268 fi 22269 22270 if test x$PKGCONFIG != xno; then 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 22272$as_echo_n "checking for nss options with pkg-config... " >&6; } 22273 itexists=` 22274 if test -n ""; then 22275 PKG_CONFIG_LIBDIR="" 22276 export PKG_CONFIG_LIBDIR 22277 fi 22278 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` 22279 22280 if test -z "$itexists"; then 22281 PKGCONFIG="no" 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22283$as_echo "no" >&6; } 22284 else 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22286$as_echo "found" >&6; } 22287 fi 22288 fi 22289 22290 22291 if test "$PKGCONFIG" != "no" ; then 22292 addlib=`$PKGCONFIG --libs nss` 22293 addcflags=`$PKGCONFIG --cflags nss` 22294 version=`$PKGCONFIG --modversion nss` 22295 nssprefix=`$PKGCONFIG --variable=prefix nss` 22296 else 22297 22298 check=`nss-config --version 2>/dev/null` 22299 if test -n "$check"; then 22300 addlib=`nss-config --libs` 22301 addcflags=`nss-config --cflags` 22302 version=`nss-config --version` 22303 nssprefix=`nss-config --prefix` 22304 else 22305 addlib="-lnss3" 22306 addcflags="" 22307 version="unknown" 22308 fi 22309 fi 22310 else 22311 # Without pkg-config, we'll kludge in some defaults 22312 addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl" 22313 addcflags="-I$OPT_NSS/include" 22314 version="unknown" 22315 nssprefix=$OPT_NSS 22316 fi 22317 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5 22319$as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; } 22320if ${ac_cv_lib_nss3_PK11_CreateGenericObject+:} false; then : 22321 $as_echo_n "(cached) " >&6 22322else 22323 ac_check_lib_save_LIBS=$LIBS 22324LIBS="-lnss3 $LIBS" 22325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22326/* end confdefs.h. */ 22327 22328 22329#ifdef __cplusplus 22330extern "C" 22331#endif 22332char PK11_CreateGenericObject (); 22333int main (void) 22334{ 22335return PK11_CreateGenericObject (); 22336 ; 22337 return 0; 22338} 22339_ACEOF 22340if ac_fn_c_try_link "$LINENO"; then : 22341 ac_cv_lib_nss3_PK11_CreateGenericObject=yes 22342else 22343 ac_cv_lib_nss3_PK11_CreateGenericObject=no 22344fi 22345rm -f core conftest.err conftest.$ac_objext \ 22346 conftest$ac_exeext conftest.$ac_ext 22347LIBS=$ac_check_lib_save_LIBS 22348fi 22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5 22350$as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; } 22351if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = xyes; then : 22352 22353 22354$as_echo "#define HAVE_PK11_CREATEGENERICOBJECT 1" >>confdefs.h 22355 22356 HAVE_PK11_CREATEGENERICOBJECT=1 22357 22358 22359fi 22360 22361 if test -n "$addlib"; then 22362 22363 CLEANLIBS="$LIBS" 22364 CLEANCPPFLAGS="$CPPFLAGS" 22365 22366 LIBS="$LIBS $addlib" 22367 if test "$addcflags" != "-I/usr/include"; then 22368 CPPFLAGS="$CPPFLAGS $addcflags" 22369 fi 22370 22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5 22372$as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; } 22373if ${ac_cv_lib_nss3_NSS_Initialize+:} false; then : 22374 $as_echo_n "(cached) " >&6 22375else 22376 ac_check_lib_save_LIBS=$LIBS 22377LIBS="-lnss3 $LIBS" 22378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22379/* end confdefs.h. */ 22380 22381 22382#ifdef __cplusplus 22383extern "C" 22384#endif 22385char NSS_Initialize (); 22386int main (void) 22387{ 22388return NSS_Initialize (); 22389 ; 22390 return 0; 22391} 22392_ACEOF 22393if ac_fn_c_try_link "$LINENO"; then : 22394 ac_cv_lib_nss3_NSS_Initialize=yes 22395else 22396 ac_cv_lib_nss3_NSS_Initialize=no 22397fi 22398rm -f core conftest.err conftest.$ac_objext \ 22399 conftest$ac_exeext conftest.$ac_ext 22400LIBS=$ac_check_lib_save_LIBS 22401fi 22402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5 22403$as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; } 22404if test "x$ac_cv_lib_nss3_NSS_Initialize" = xyes; then : 22405 22406 22407$as_echo "#define USE_NSS 1" >>confdefs.h 22408 22409 USE_NSS=1 22410 22411 USE_NSS="yes" 22412 NSS_ENABLED=1 22413 curl_ssl_msg="enabled (NSS)" 22414 22415else 22416 22417 LIBS="$CLEANLIBS" 22418 CPPFLAGS="$CLEANCPPFLAGS" 22419 22420fi 22421 22422 22423 if test "x$USE_NSS" = "xyes"; then 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5 22425$as_echo "$as_me: detected NSS version $version" >&6;} 22426 22427 22428 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff" 22429 export LD_LIBRARY_PATH 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5 22431$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;} 22432 fi 22433 22434 fi 22435 22436 fi 22437fi 22438OPT_AXTLS=off 22439 22440 22441# Check whether --with-axtls was given. 22442if test "${with_axtls+set}" = set; then : 22443 withval=$with_axtls; OPT_AXTLS=$withval 22444fi 22445 22446 22447if test "$curl_ssl_msg" = "$init_ssl_msg"; then 22448 if test X"$OPT_AXTLS" != Xno; then 22449 CLEANLDFLAGS="$LDFLAGS" 22450 CLEANCPPFLAGS="$CPPFLAGS" 22451 CLEANLIBS="$LIBS" 22452 22453 case "$OPT_AXTLS" in 22454 yes) 22455 PREFIX_AXTLS=/usr/local 22456 LIB_AXTLS="$PREFIX_AXTLS/lib" 22457 LDFLAGS="$LDFLAGS -L$LIB_AXTLS" 22458 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include" 22459 ;; 22460 off) 22461 PREFIX_AXTLS= 22462 ;; 22463 *) 22464 PREFIX_AXTLS=$OPT_AXTLS 22465 LIB_AXTLS="$PREFIX_AXTLS/lib" 22466 LDFLAGS="$LDFLAGS -L$LIB_AXTLS" 22467 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include" 22468 ;; 22469 esac 22470 22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5 22472$as_echo_n "checking for ssl_version in -laxtls... " >&6; } 22473if ${ac_cv_lib_axtls_ssl_version+:} false; then : 22474 $as_echo_n "(cached) " >&6 22475else 22476 ac_check_lib_save_LIBS=$LIBS 22477LIBS="-laxtls $LIBS" 22478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22479/* end confdefs.h. */ 22480 22481 22482#ifdef __cplusplus 22483extern "C" 22484#endif 22485char ssl_version (); 22486int main (void) 22487{ 22488return ssl_version (); 22489 ; 22490 return 0; 22491} 22492_ACEOF 22493if ac_fn_c_try_link "$LINENO"; then : 22494 ac_cv_lib_axtls_ssl_version=yes 22495else 22496 ac_cv_lib_axtls_ssl_version=no 22497fi 22498rm -f core conftest.err conftest.$ac_objext \ 22499 conftest$ac_exeext conftest.$ac_ext 22500LIBS=$ac_check_lib_save_LIBS 22501fi 22502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5 22503$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; } 22504if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then : 22505 22506 LIBS="-laxtls $LIBS" 22507 22508$as_echo "#define USE_AXTLS 1" >>confdefs.h 22509 22510 USE_AXTLS=1 22511 22512 AXTLS_ENABLED=1 22513 USE_AXTLS="yes" 22514 curl_ssl_msg="enabled (axTLS)" 22515 22516 22517 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS" 22518 export LD_LIBRARY_PATH 22519 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5 22520$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;} 22521 22522else 22523 22524 LDFLAGS="$CLEANLDFLAGS" 22525 CPPFLAGS="$CLEANCPPFLAGS" 22526 LIBS="$CLEANLIBS" 22527 22528fi 22529 22530 fi 22531fi 22532 22533if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED" = "x"; then 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5 22535$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;} 22536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss or --with-axtls to address this." >&5 22537$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss or --with-axtls to address this." >&2;} 22538else 22539 # SSL is enabled, genericly 22540 22541 SSL_ENABLED="1" 22542fi 22543 22544 22545 22546 22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5 22548$as_echo_n "checking default CA cert bundle/path... " >&6; } 22549 22550 22551# Check whether --with-ca-bundle was given. 22552if test "${with_ca_bundle+set}" = set; then : 22553 withval=$with_ca_bundle; 22554 want_ca="$withval" 22555 if test "x$want_ca" = "xyes"; then 22556 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5 22557 fi 22558 22559else 22560 want_ca="unset" 22561fi 22562 22563 22564# Check whether --with-ca-path was given. 22565if test "${with_ca_path+set}" = set; then : 22566 withval=$with_ca_path; 22567 want_capath="$withval" 22568 if test "x$want_capath" = "xyes"; then 22569 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5 22570 fi 22571 22572else 22573 want_capath="unset" 22574fi 22575 22576 22577 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ 22578 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 22579 as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5 22580 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then 22581 ca="$want_ca" 22582 capath="no" 22583 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 22584 if test "x$OPENSSL_ENABLED" != "x1"; then 22585 as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5 22586 fi 22587 capath="$want_capath" 22588 ca="no" 22589 else 22590 ca="no" 22591 capath="no" 22592 if test "x$want_ca" = "xunset"; then 22593 if test "x$prefix" != xNONE; then 22594 cac="${prefix}/share/curl/curl-ca-bundle.crt" 22595 else 22596 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt" 22597 fi 22598 22599 for a in /etc/ssl/certs/ca-certificates.crt \ 22600 /etc/pki/tls/certs/ca-bundle.crt \ 22601 /usr/share/ssl/certs/ca-bundle.crt \ 22602 /usr/local/share/certs/ca-root.crt \ 22603 /etc/ssl/cert.pem \ 22604 "$cac"; do 22605 if test -f "$a"; then 22606 ca="$a" 22607 break 22608 fi 22609 done 22610 fi 22611 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \ 22612 "x$OPENSSL_ENABLED" = "x1"; then 22613 for a in /etc/ssl/certs/; do 22614 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 22615 capath="$a" 22616 break 22617 fi 22618 done 22619 fi 22620 fi 22621 22622 22623 22624 if test "x$ca" != "xno"; then 22625 CURL_CA_BUNDLE='"'$ca'"' 22626 22627cat >>confdefs.h <<_ACEOF 22628#define CURL_CA_BUNDLE "$ca" 22629_ACEOF 22630 22631 22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5 22633$as_echo "$ca" >&6; } 22634 elif test "x$capath" != "xno"; then 22635 CURL_CA_PATH="\"$capath\"" 22636 22637cat >>confdefs.h <<_ACEOF 22638#define CURL_CA_PATH "$capath" 22639_ACEOF 22640 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5 22642$as_echo "$capath (capath)" >&6; } 22643 else 22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22645$as_echo "no" >&6; } 22646 fi 22647 22648 22649 22650OPT_LIBSSH2=off 22651 22652# Check whether --with-libssh2 was given. 22653if test "${with_libssh2+set}" = set; then : 22654 withval=$with_libssh2; OPT_LIBSSH2=$withval 22655fi 22656 22657 22658if test X"$OPT_LIBSSH2" != Xno; then 22659 CLEANLDFLAGS="$LDFLAGS" 22660 CLEANCPPFLAGS="$CPPFLAGS" 22661 CLEANLIBS="$LIBS" 22662 22663 case "$OPT_LIBSSH2" in 22664 yes) 22665 22666 22667 PKGCONFIG="no" 22668 22669 if test x$cross_compiling = xyes; then 22670 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 22671set dummy ${host}-pkg-config; ac_word=$2 22672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22673$as_echo_n "checking for $ac_word... " >&6; } 22674if ${ac_cv_path_PKGCONFIG+:} false; then : 22675 $as_echo_n "(cached) " >&6 22676else 22677 case $PKGCONFIG in 22678 [\\/]* | ?:[\\/]*) 22679 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22680 ;; 22681 *) 22682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22683as_dummy="$PATH:/usr/bin:/usr/local/bin" 22684for as_dir in $as_dummy 22685do 22686 IFS=$as_save_IFS 22687 test -z "$as_dir" && as_dir=. 22688 for ac_exec_ext in '' $ac_executable_extensions; do 22689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22690 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22692 break 2 22693 fi 22694done 22695 done 22696IFS=$as_save_IFS 22697 22698 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22699 ;; 22700esac 22701fi 22702PKGCONFIG=$ac_cv_path_PKGCONFIG 22703if test -n "$PKGCONFIG"; then 22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22705$as_echo "$PKGCONFIG" >&6; } 22706else 22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22708$as_echo "no" >&6; } 22709fi 22710 22711 22712 fi 22713 22714 if test x$PKGCONFIG = xno; then 22715 # Extract the first word of "pkg-config", so it can be a program name with args. 22716set dummy pkg-config; ac_word=$2 22717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22718$as_echo_n "checking for $ac_word... " >&6; } 22719if ${ac_cv_path_PKGCONFIG+:} false; then : 22720 $as_echo_n "(cached) " >&6 22721else 22722 case $PKGCONFIG in 22723 [\\/]* | ?:[\\/]*) 22724 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22725 ;; 22726 *) 22727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22728as_dummy="$PATH:/usr/bin:/usr/local/bin" 22729for as_dir in $as_dummy 22730do 22731 IFS=$as_save_IFS 22732 test -z "$as_dir" && as_dir=. 22733 for ac_exec_ext in '' $ac_executable_extensions; do 22734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22735 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22737 break 2 22738 fi 22739done 22740 done 22741IFS=$as_save_IFS 22742 22743 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22744 ;; 22745esac 22746fi 22747PKGCONFIG=$ac_cv_path_PKGCONFIG 22748if test -n "$PKGCONFIG"; then 22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22750$as_echo "$PKGCONFIG" >&6; } 22751else 22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22753$as_echo "no" >&6; } 22754fi 22755 22756 22757 fi 22758 22759 if test x$PKGCONFIG != xno; then 22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5 22761$as_echo_n "checking for libssh2 options with pkg-config... " >&6; } 22762 itexists=` 22763 if test -n ""; then 22764 PKG_CONFIG_LIBDIR="" 22765 export PKG_CONFIG_LIBDIR 22766 fi 22767 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1` 22768 22769 if test -z "$itexists"; then 22770 PKGCONFIG="no" 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22772$as_echo "no" >&6; } 22773 else 22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22775$as_echo "found" >&6; } 22776 fi 22777 fi 22778 22779 22780 if test "$PKGCONFIG" != "no" ; then 22781 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2` 22782 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` 22783 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` 22784 version=`$PKGCONFIG --modversion libssh2` 22785 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'` 22786 fi 22787 22788 ;; 22789 off) 22790 ;; 22791 *) 22792 PREFIX_SSH2=$OPT_LIBSSH2 22793 ;; 22794 esac 22795 22796 if test -n "$PREFIX_SSH2"; then 22797 LIB_SSH2="-lssh2" 22798 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff 22799 CPP_SSH2=-I${PREFIX_SSH2}/include 22800 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff 22801 fi 22802 22803 LDFLAGS="$LDFLAGS $LD_SSH2" 22804 CPPFLAGS="$CPPFLAGS $CPP_SSH2" 22805 LIBS="$LIBS $LIB_SSH2" 22806 22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5 22808$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; } 22809if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then : 22810 $as_echo_n "(cached) " >&6 22811else 22812 ac_check_lib_save_LIBS=$LIBS 22813LIBS="-lssh2 $LIBS" 22814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22815/* end confdefs.h. */ 22816 22817 22818#ifdef __cplusplus 22819extern "C" 22820#endif 22821char libssh2_channel_open_ex (); 22822int main (void) 22823{ 22824return libssh2_channel_open_ex (); 22825 ; 22826 return 0; 22827} 22828_ACEOF 22829if ac_fn_c_try_link "$LINENO"; then : 22830 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes 22831else 22832 ac_cv_lib_ssh2_libssh2_channel_open_ex=no 22833fi 22834rm -f core conftest.err conftest.$ac_objext \ 22835 conftest$ac_exeext conftest.$ac_ext 22836LIBS=$ac_check_lib_save_LIBS 22837fi 22838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5 22839$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; } 22840if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then : 22841 cat >>confdefs.h <<_ACEOF 22842#define HAVE_LIBSSH2 1 22843_ACEOF 22844 22845 LIBS="-lssh2 $LIBS" 22846 22847fi 22848 22849 22850 for ac_header in libssh2.h 22851do : 22852 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" 22853if test "x$ac_cv_header_libssh2_h" = xyes; then : 22854 cat >>confdefs.h <<_ACEOF 22855#define HAVE_LIBSSH2_H 1 22856_ACEOF 22857 curl_ssh_msg="enabled (libSSH2)" 22858 LIBSSH2_ENABLED=1 22859 22860$as_echo "#define USE_LIBSSH2 1" >>confdefs.h 22861 22862 USE_LIBSSH2=1 22863 22864 22865fi 22866 22867done 22868 22869 22870 if test X"$OPT_LIBSSH2" != Xoff && 22871 test "$LIBSSH2_ENABLED" != "1"; then 22872 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5 22873 fi 22874 22875 if test "$LIBSSH2_ENABLED" = "1"; then 22876 if test -n "$DIR_SSH2"; then 22877 22878 for ac_func in libssh2_version libssh2_init libssh2_exit \ 22879 libssh2_scp_send64 libssh2_session_handshake 22880do : 22881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22882ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22883if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22884 cat >>confdefs.h <<_ACEOF 22885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22886_ACEOF 22887 22888fi 22889done 22890 22891 22892 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2" 22893 export LD_LIBRARY_PATH 22894 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5 22895$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;} 22896 fi 22897 else 22898 LDFLAGS=$CLEANLDFLAGS 22899 CPPFLAGS=$CLEANCPPFLAGS 22900 LIBS=$CLEANLIBS 22901 fi 22902fi 22903 22904 22905OPT_LIBRTMP=off 22906 22907# Check whether --with-librtmp was given. 22908if test "${with_librtmp+set}" = set; then : 22909 withval=$with_librtmp; OPT_LIBRTMP=$withval 22910fi 22911 22912 22913if test X"$OPT_LIBRTMP" != Xno; then 22914 CLEANLDFLAGS="$LDFLAGS" 22915 CLEANCPPFLAGS="$CPPFLAGS" 22916 CLEANLIBS="$LIBS" 22917 22918 case "$OPT_LIBRTMP" in 22919 yes) 22920 22921 22922 PKGCONFIG="no" 22923 22924 if test x$cross_compiling = xyes; then 22925 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 22926set dummy ${host}-pkg-config; ac_word=$2 22927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22928$as_echo_n "checking for $ac_word... " >&6; } 22929if ${ac_cv_path_PKGCONFIG+:} false; then : 22930 $as_echo_n "(cached) " >&6 22931else 22932 case $PKGCONFIG in 22933 [\\/]* | ?:[\\/]*) 22934 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22935 ;; 22936 *) 22937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22938as_dummy="$PATH:/usr/bin:/usr/local/bin" 22939for as_dir in $as_dummy 22940do 22941 IFS=$as_save_IFS 22942 test -z "$as_dir" && as_dir=. 22943 for ac_exec_ext in '' $ac_executable_extensions; do 22944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22945 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22947 break 2 22948 fi 22949done 22950 done 22951IFS=$as_save_IFS 22952 22953 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22954 ;; 22955esac 22956fi 22957PKGCONFIG=$ac_cv_path_PKGCONFIG 22958if test -n "$PKGCONFIG"; then 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22960$as_echo "$PKGCONFIG" >&6; } 22961else 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22963$as_echo "no" >&6; } 22964fi 22965 22966 22967 fi 22968 22969 if test x$PKGCONFIG = xno; then 22970 # Extract the first word of "pkg-config", so it can be a program name with args. 22971set dummy pkg-config; ac_word=$2 22972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22973$as_echo_n "checking for $ac_word... " >&6; } 22974if ${ac_cv_path_PKGCONFIG+:} false; then : 22975 $as_echo_n "(cached) " >&6 22976else 22977 case $PKGCONFIG in 22978 [\\/]* | ?:[\\/]*) 22979 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22980 ;; 22981 *) 22982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22983as_dummy="$PATH:/usr/bin:/usr/local/bin" 22984for as_dir in $as_dummy 22985do 22986 IFS=$as_save_IFS 22987 test -z "$as_dir" && as_dir=. 22988 for ac_exec_ext in '' $ac_executable_extensions; do 22989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22990 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22992 break 2 22993 fi 22994done 22995 done 22996IFS=$as_save_IFS 22997 22998 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22999 ;; 23000esac 23001fi 23002PKGCONFIG=$ac_cv_path_PKGCONFIG 23003if test -n "$PKGCONFIG"; then 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23005$as_echo "$PKGCONFIG" >&6; } 23006else 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23008$as_echo "no" >&6; } 23009fi 23010 23011 23012 fi 23013 23014 if test x$PKGCONFIG != xno; then 23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5 23016$as_echo_n "checking for librtmp options with pkg-config... " >&6; } 23017 itexists=` 23018 if test -n ""; then 23019 PKG_CONFIG_LIBDIR="" 23020 export PKG_CONFIG_LIBDIR 23021 fi 23022 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1` 23023 23024 if test -z "$itexists"; then 23025 PKGCONFIG="no" 23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23027$as_echo "no" >&6; } 23028 else 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 23030$as_echo "found" >&6; } 23031 fi 23032 fi 23033 23034 23035 if test "$PKGCONFIG" != "no" ; then 23036 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp` 23037 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp` 23038 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` 23039 version=`$PKGCONFIG --modversion librtmp` 23040 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'` 23041 else 23042 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5 23043 fi 23044 23045 ;; 23046 off) 23047 LIB_RTMP="-lrtmp" 23048 ;; 23049 *) 23050 PREFIX_RTMP=$OPT_LIBRTMP 23051 ;; 23052 esac 23053 23054 if test -n "$PREFIX_RTMP"; then 23055 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff 23056 CPP_RTMP=-I${PREFIX_RTMP}/include 23057 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff 23058 fi 23059 23060 LDFLAGS="$LDFLAGS $LD_RTMP" 23061 CPPFLAGS="$CPPFLAGS $CPP_RTMP" 23062 LIBS="$LIBS $LIB_RTMP" 23063 23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5 23065$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; } 23066if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then : 23067 $as_echo_n "(cached) " >&6 23068else 23069 ac_check_lib_save_LIBS=$LIBS 23070LIBS="-lrtmp $LIBS" 23071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23072/* end confdefs.h. */ 23073 23074 23075#ifdef __cplusplus 23076extern "C" 23077#endif 23078char RTMP_Init (); 23079int main (void) 23080{ 23081return RTMP_Init (); 23082 ; 23083 return 0; 23084} 23085_ACEOF 23086if ac_fn_c_try_link "$LINENO"; then : 23087 ac_cv_lib_rtmp_RTMP_Init=yes 23088else 23089 ac_cv_lib_rtmp_RTMP_Init=no 23090fi 23091rm -f core conftest.err conftest.$ac_objext \ 23092 conftest$ac_exeext conftest.$ac_ext 23093LIBS=$ac_check_lib_save_LIBS 23094fi 23095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5 23096$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; } 23097if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then : 23098 23099 for ac_header in librtmp/rtmp.h 23100do : 23101 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default" 23102if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then : 23103 cat >>confdefs.h <<_ACEOF 23104#define HAVE_LIBRTMP_RTMP_H 1 23105_ACEOF 23106 curl_rtmp_msg="enabled (librtmp)" 23107 LIBRTMP_ENABLED=1 23108 23109$as_echo "#define USE_LIBRTMP 1" >>confdefs.h 23110 23111 USE_LIBRTMP=1 23112 23113 23114fi 23115 23116done 23117 23118 23119else 23120 LDFLAGS=$CLEANLDFLAGS 23121 CPPFLAGS=$CLEANCPPFLAGS 23122 LIBS=$CLEANLIBS 23123 23124fi 23125 23126 23127 if test X"$OPT_LIBRTMP" != Xoff && 23128 test "$LIBRTMP_ENABLED" != "1"; then 23129 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5 23130 fi 23131 23132fi 23133 23134 23135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5 23136$as_echo_n "checking whether to build with libidn... " >&6; } 23137 23138# Check whether --with-libidn was given. 23139if test "${with_libidn+set}" = set; then : 23140 withval=$with_libidn; LIBIDN="$withval" 23141fi 23142 23143 23144case "$LIBIDN" in 23145 no) 23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23147$as_echo "no" >&6; } 23148 ;; 23149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23150$as_echo "yes" >&6; } 23151 23152 idn="" 23153 if test -n "$LIBIDN"; then 23154 if test "x$LIBIDN" != "xyes"; then 23155 oldLDFLAGS=$LDFLAGS 23156 oldCPPFLAGS=$CPPFLAGS 23157 LDFLAGS="$LDFLAGS -L$LIBIDN/lib" 23158 CPPFLAGS="$CPPFLAGS -I$LIBIDN/include" 23159 idn="yes" 23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_4i in -lidn" >&5 23161$as_echo_n "checking for idna_to_ascii_4i in -lidn... " >&6; } 23162if ${ac_cv_lib_idn_idna_to_ascii_4i+:} false; then : 23163 $as_echo_n "(cached) " >&6 23164else 23165 ac_check_lib_save_LIBS=$LIBS 23166LIBS="-lidn $LIBS" 23167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23168/* end confdefs.h. */ 23169 23170 23171#ifdef __cplusplus 23172extern "C" 23173#endif 23174char idna_to_ascii_4i (); 23175int main (void) 23176{ 23177return idna_to_ascii_4i (); 23178 ; 23179 return 0; 23180} 23181_ACEOF 23182if ac_fn_c_try_link "$LINENO"; then : 23183 ac_cv_lib_idn_idna_to_ascii_4i=yes 23184else 23185 ac_cv_lib_idn_idna_to_ascii_4i=no 23186fi 23187rm -f core conftest.err conftest.$ac_objext \ 23188 conftest$ac_exeext conftest.$ac_ext 23189LIBS=$ac_check_lib_save_LIBS 23190fi 23191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5 23192$as_echo "$ac_cv_lib_idn_idna_to_ascii_4i" >&6; } 23193if test "x$ac_cv_lib_idn_idna_to_ascii_4i" = xyes; then : 23194 cat >>confdefs.h <<_ACEOF 23195#define HAVE_LIBIDN 1 23196_ACEOF 23197 23198 LIBS="-lidn $LIBS" 23199 23200else 23201 idn="" 23202 LDFLAGS=$oldLDFLAGS 23203 CPPFLAGS=$oldCPPFLAGS 23204fi 23205 23206 fi 23207 fi 23208 23209 if test "x$idn" != "xyes"; then 23210 idn="yes" 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_lz in -lidn" >&5 23212$as_echo_n "checking for idna_to_ascii_lz in -lidn... " >&6; } 23213if ${ac_cv_lib_idn_idna_to_ascii_lz+:} false; then : 23214 $as_echo_n "(cached) " >&6 23215else 23216 ac_check_lib_save_LIBS=$LIBS 23217LIBS="-lidn $LIBS" 23218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23219/* end confdefs.h. */ 23220 23221 23222#ifdef __cplusplus 23223extern "C" 23224#endif 23225char idna_to_ascii_lz (); 23226int main (void) 23227{ 23228return idna_to_ascii_lz (); 23229 ; 23230 return 0; 23231} 23232_ACEOF 23233if ac_fn_c_try_link "$LINENO"; then : 23234 ac_cv_lib_idn_idna_to_ascii_lz=yes 23235else 23236 ac_cv_lib_idn_idna_to_ascii_lz=no 23237fi 23238rm -f core conftest.err conftest.$ac_objext \ 23239 conftest$ac_exeext conftest.$ac_ext 23240LIBS=$ac_check_lib_save_LIBS 23241fi 23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5 23243$as_echo "$ac_cv_lib_idn_idna_to_ascii_lz" >&6; } 23244if test "x$ac_cv_lib_idn_idna_to_ascii_lz" = xyes; then : 23245 cat >>confdefs.h <<_ACEOF 23246#define HAVE_LIBIDN 1 23247_ACEOF 23248 23249 LIBS="-lidn $LIBS" 23250 23251else 23252 idn="" 23253fi 23254 23255 fi 23256 23257 if test "x$idn" = "xyes"; then 23258 curl_idn_msg="enabled" 23259 IDN_ENABLED=1 23260 23261 for ac_func in idn_free idna_strerror tld_strerror 23262do : 23263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23264ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23265if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23266 cat >>confdefs.h <<_ACEOF 23267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23268_ACEOF 23269 23270fi 23271done 23272 23273 for ac_header in idn-free.h tld.h 23274do : 23275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23276ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23278 cat >>confdefs.h <<_ACEOF 23279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23280_ACEOF 23281 23282fi 23283 23284done 23285 23286 fi 23287 23288 ;; 23289esac 23290 23291 23292 23293 23294 23295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 23296$as_echo_n "checking for ANSI C header files... " >&6; } 23297if ${ac_cv_header_stdc+:} false; then : 23298 $as_echo_n "(cached) " >&6 23299else 23300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23301/* end confdefs.h. */ 23302#include <stdlib.h> 23303#include <stdarg.h> 23304#include <string.h> 23305#include <float.h> 23306 23307int main (void) 23308{ 23309 23310 ; 23311 return 0; 23312} 23313_ACEOF 23314if ac_fn_c_try_compile "$LINENO"; then : 23315 ac_cv_header_stdc=yes 23316else 23317 ac_cv_header_stdc=no 23318fi 23319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23320 23321if test $ac_cv_header_stdc = yes; then 23322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23324/* end confdefs.h. */ 23325#include <string.h> 23326 23327_ACEOF 23328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23329 $EGREP "memchr" >/dev/null 2>&1; then : 23330 23331else 23332 ac_cv_header_stdc=no 23333fi 23334rm -f conftest* 23335 23336fi 23337 23338if test $ac_cv_header_stdc = yes; then 23339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 23340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23341/* end confdefs.h. */ 23342#include <stdlib.h> 23343 23344_ACEOF 23345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23346 $EGREP "free" >/dev/null 2>&1; then : 23347 23348else 23349 ac_cv_header_stdc=no 23350fi 23351rm -f conftest* 23352 23353fi 23354 23355if test $ac_cv_header_stdc = yes; then 23356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 23357 if test "$cross_compiling" = yes; then : 23358 : 23359else 23360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23361/* end confdefs.h. */ 23362#include <ctype.h> 23363#include <stdlib.h> 23364#if ((' ' & 0x0FF) == 0x020) 23365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 23366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 23367#else 23368# define ISLOWER(c) \ 23369 (('a' <= (c) && (c) <= 'i') \ 23370 || ('j' <= (c) && (c) <= 'r') \ 23371 || ('s' <= (c) && (c) <= 'z')) 23372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 23373#endif 23374 23375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 23376int 23377main () 23378{ 23379 int i; 23380 for (i = 0; i < 256; i++) 23381 if (XOR (islower (i), ISLOWER (i)) 23382 || toupper (i) != TOUPPER (i)) 23383 return 2; 23384 return 0; 23385} 23386_ACEOF 23387if ac_fn_c_try_run "$LINENO"; then : 23388 23389else 23390 ac_cv_header_stdc=no 23391fi 23392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23393 conftest.$ac_objext conftest.beam conftest.$ac_ext 23394fi 23395 23396fi 23397fi 23398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 23399$as_echo "$ac_cv_header_stdc" >&6; } 23400if test $ac_cv_header_stdc = yes; then 23401 23402$as_echo "#define STDC_HEADERS 1" >>confdefs.h 23403 23404fi 23405 23406 23407 23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5 23409$as_echo_n "checking for malloc.h... " >&6; } 23410if ${ac_cv_header_malloc_h+:} false; then : 23411 $as_echo_n "(cached) " >&6 23412else 23413 23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23415/* end confdefs.h. */ 23416 23417 23418#include <malloc.h> 23419 23420int main (void) 23421{ 23422 23423 void *p = malloc(10); 23424 void *q = calloc(10,10); 23425 free(p); 23426 free(q); 23427 23428 ; 23429 return 0; 23430} 23431 23432_ACEOF 23433if ac_fn_c_try_compile "$LINENO"; then : 23434 23435 ac_cv_header_malloc_h="yes" 23436 23437else 23438 23439 ac_cv_header_malloc_h="no" 23440 23441fi 23442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23443 23444fi 23445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5 23446$as_echo "$ac_cv_header_malloc_h" >&6; } 23447 if test "$ac_cv_header_malloc_h" = "yes"; then 23448 23449cat >>confdefs.h <<_ACEOF 23450#define HAVE_MALLOC_H 1 23451_ACEOF 23452 23453 # 23454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23455/* end confdefs.h. */ 23456 23457 23458#include <stdlib.h> 23459 23460int main (void) 23461{ 23462 23463 void *p = malloc(10); 23464 void *q = calloc(10,10); 23465 free(p); 23466 free(q); 23467 23468 ; 23469 return 0; 23470} 23471 23472_ACEOF 23473if ac_fn_c_try_compile "$LINENO"; then : 23474 23475 curl_cv_need_header_malloc_h="no" 23476 23477else 23478 23479 curl_cv_need_header_malloc_h="yes" 23480 23481fi 23482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23483 # 23484 case "$curl_cv_need_header_malloc_h" in 23485 yes) 23486 23487cat >>confdefs.h <<_ACEOF 23488#define NEED_MALLOC_H 1 23489_ACEOF 23490 23491 ;; 23492 esac 23493 fi 23494 23495 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5 23497$as_echo_n "checking for memory.h... " >&6; } 23498if ${ac_cv_header_memory_h+:} false; then : 23499 $as_echo_n "(cached) " >&6 23500else 23501 23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23503/* end confdefs.h. */ 23504 23505 23506#include <memory.h> 23507 23508int main (void) 23509{ 23510 23511 void *p = malloc(10); 23512 void *q = calloc(10,10); 23513 free(p); 23514 free(q); 23515 23516 ; 23517 return 0; 23518} 23519 23520_ACEOF 23521if ac_fn_c_try_compile "$LINENO"; then : 23522 23523 ac_cv_header_memory_h="yes" 23524 23525else 23526 23527 ac_cv_header_memory_h="no" 23528 23529fi 23530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23531 23532fi 23533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5 23534$as_echo "$ac_cv_header_memory_h" >&6; } 23535 if test "$ac_cv_header_memory_h" = "yes"; then 23536 23537cat >>confdefs.h <<_ACEOF 23538#define HAVE_MEMORY_H 1 23539_ACEOF 23540 23541 # 23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23543/* end confdefs.h. */ 23544 23545 23546#include <stdlib.h> 23547 23548int main (void) 23549{ 23550 23551 void *p = malloc(10); 23552 void *q = calloc(10,10); 23553 free(p); 23554 free(q); 23555 23556 ; 23557 return 0; 23558} 23559 23560_ACEOF 23561if ac_fn_c_try_compile "$LINENO"; then : 23562 23563 curl_cv_need_header_memory_h="no" 23564 23565else 23566 23567 curl_cv_need_header_memory_h="yes" 23568 23569fi 23570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23571 # 23572 case "$curl_cv_need_header_memory_h" in 23573 yes) 23574 23575cat >>confdefs.h <<_ACEOF 23576#define NEED_MEMORY_H 1 23577_ACEOF 23578 23579 ;; 23580 esac 23581 fi 23582 23583 23584for ac_header in sys/types.h \ 23585 sys/time.h \ 23586 sys/select.h \ 23587 sys/socket.h \ 23588 sys/ioctl.h \ 23589 sys/uio.h \ 23590 assert.h \ 23591 unistd.h \ 23592 stdlib.h \ 23593 limits.h \ 23594 arpa/inet.h \ 23595 net/if.h \ 23596 netinet/in.h \ 23597 sys/un.h \ 23598 netinet/tcp.h \ 23599 netdb.h \ 23600 sys/sockio.h \ 23601 sys/stat.h \ 23602 sys/param.h \ 23603 termios.h \ 23604 termio.h \ 23605 sgtty.h \ 23606 fcntl.h \ 23607 alloca.h \ 23608 time.h \ 23609 io.h \ 23610 pwd.h \ 23611 utime.h \ 23612 sys/utime.h \ 23613 sys/poll.h \ 23614 poll.h \ 23615 socket.h \ 23616 sys/resource.h \ 23617 libgen.h \ 23618 locale.h \ 23619 errno.h \ 23620 stdbool.h \ 23621 arpa/tftp.h \ 23622 sys/filio.h \ 23623 setjmp.h 23624do : 23625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23626ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 23627#ifdef HAVE_SYS_TYPES_H 23628#include <sys/types.h> 23629#endif 23630#ifdef HAVE_SYS_TIME_H 23631#include <sys/time.h> 23632#endif 23633#ifdef HAVE_SYS_SELECT_H 23634#include <sys/select.h> 23635#endif 23636#ifdef HAVE_SYS_SOCKET_H 23637#include <sys/socket.h> 23638#endif 23639#ifdef HAVE_NETINET_IN_H 23640#include <netinet/in.h> 23641#endif 23642#ifdef HAVE_SYS_UN_H 23643#include <sys/un.h> 23644#endif 23645 23646 23647" 23648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23649 cat >>confdefs.h <<_ACEOF 23650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23651_ACEOF 23652 23653fi 23654 23655done 23656 23657 23658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23659$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 23660if ${ac_cv_c_const+:} false; then : 23661 $as_echo_n "(cached) " >&6 23662else 23663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23664/* end confdefs.h. */ 23665 23666int main (void) 23667{ 23668/* FIXME: Include the comments suggested by Paul. */ 23669#ifndef __cplusplus 23670 /* Ultrix mips cc rejects this. */ 23671 typedef int charset[2]; 23672 const charset cs; 23673 /* SunOS 4.1.1 cc rejects this. */ 23674 char const *const *pcpcc; 23675 char **ppc; 23676 /* NEC SVR4.0.2 mips cc rejects this. */ 23677 struct point {int x, y;}; 23678 static struct point const zero = {0,0}; 23679 /* AIX XL C 1.02.0.0 rejects this. 23680 It does not let you subtract one const X* pointer from another in 23681 an arm of an if-expression whose if-part is not a constant 23682 expression */ 23683 const char *g = "string"; 23684 pcpcc = &g + (g ? g-g : 0); 23685 /* HPUX 7.0 cc rejects these. */ 23686 ++pcpcc; 23687 ppc = (char**) pcpcc; 23688 pcpcc = (char const *const *) ppc; 23689 { /* SCO 3.2v4 cc rejects this. */ 23690 char *t; 23691 char const *s = 0 ? (char *) 0 : (char const *) 0; 23692 23693 *t++ = 0; 23694 if (s) return 0; 23695 } 23696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23697 int x[] = {25, 17}; 23698 const int *foo = &x[0]; 23699 ++foo; 23700 } 23701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23702 typedef const int *iptr; 23703 iptr p = 0; 23704 ++p; 23705 } 23706 { /* AIX XL C 1.02.0.0 rejects this saying 23707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23708 struct s { int j; const int *ap[3]; }; 23709 struct s *b; b->j = 5; 23710 } 23711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23712 const int foo = 10; 23713 if (!foo) return 0; 23714 } 23715 return !cs[0] && !zero.x; 23716#endif 23717 23718 ; 23719 return 0; 23720} 23721_ACEOF 23722if ac_fn_c_try_compile "$LINENO"; then : 23723 ac_cv_c_const=yes 23724else 23725 ac_cv_c_const=no 23726fi 23727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23728fi 23729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23730$as_echo "$ac_cv_c_const" >&6; } 23731if test $ac_cv_c_const = no; then 23732 23733$as_echo "#define const /**/" >>confdefs.h 23734 23735fi 23736 23737 23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5 23739$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; } 23740if ${curl_cv_variadic_macros_c99+:} false; then : 23741 $as_echo_n "(cached) " >&6 23742else 23743 23744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23745/* end confdefs.h. */ 23746 23747 23748#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__) 23749#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__) 23750 int fun3(int arg1, int arg2, int arg3); 23751 int fun2(int arg1, int arg2); 23752 int fun3(int arg1, int arg2, int arg3) 23753 { return arg1 + arg2 + arg3; } 23754 int fun2(int arg1, int arg2) 23755 { return arg1 + arg2; } 23756 23757int main (void) 23758{ 23759 23760 int res3 = c99_vmacro3(1, 2, 3); 23761 int res2 = c99_vmacro2(1, 2); 23762 23763 ; 23764 return 0; 23765} 23766 23767_ACEOF 23768if ac_fn_c_try_compile "$LINENO"; then : 23769 23770 curl_cv_variadic_macros_c99="yes" 23771 23772else 23773 23774 curl_cv_variadic_macros_c99="no" 23775 23776fi 23777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23778 23779fi 23780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5 23781$as_echo "$curl_cv_variadic_macros_c99" >&6; } 23782 case "$curl_cv_variadic_macros_c99" in 23783 yes) 23784 23785cat >>confdefs.h <<_ACEOF 23786#define HAVE_VARIADIC_MACROS_C99 1 23787_ACEOF 23788 23789 ;; 23790 esac 23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5 23792$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; } 23793if ${curl_cv_variadic_macros_gcc+:} false; then : 23794 $as_echo_n "(cached) " >&6 23795else 23796 23797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23798/* end confdefs.h. */ 23799 23800 23801#define gcc_vmacro3(first, args...) fun3(first, args) 23802#define gcc_vmacro2(first, args...) fun2(first, args) 23803 int fun3(int arg1, int arg2, int arg3); 23804 int fun2(int arg1, int arg2); 23805 int fun3(int arg1, int arg2, int arg3) 23806 { return arg1 + arg2 + arg3; } 23807 int fun2(int arg1, int arg2) 23808 { return arg1 + arg2; } 23809 23810int main (void) 23811{ 23812 23813 int res3 = gcc_vmacro3(1, 2, 3); 23814 int res2 = gcc_vmacro2(1, 2); 23815 23816 ; 23817 return 0; 23818} 23819 23820_ACEOF 23821if ac_fn_c_try_compile "$LINENO"; then : 23822 23823 curl_cv_variadic_macros_gcc="yes" 23824 23825else 23826 23827 curl_cv_variadic_macros_gcc="no" 23828 23829fi 23830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23831 23832fi 23833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5 23834$as_echo "$curl_cv_variadic_macros_gcc" >&6; } 23835 case "$curl_cv_variadic_macros_gcc" in 23836 yes) 23837 23838cat >>confdefs.h <<_ACEOF 23839#define HAVE_VARIADIC_MACROS_GCC 1 23840_ACEOF 23841 23842 ;; 23843 esac 23844 23845ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23846if test "x$ac_cv_type_size_t" = xyes; then : 23847 23848else 23849 23850cat >>confdefs.h <<_ACEOF 23851#define size_t unsigned int 23852_ACEOF 23853 23854fi 23855 23856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 23857$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 23858if ${ac_cv_header_time+:} false; then : 23859 $as_echo_n "(cached) " >&6 23860else 23861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23862/* end confdefs.h. */ 23863#include <sys/types.h> 23864#include <sys/time.h> 23865#include <time.h> 23866 23867int main (void) 23868{ 23869if ((struct tm *) 0) 23870return 0; 23871 ; 23872 return 0; 23873} 23874_ACEOF 23875if ac_fn_c_try_compile "$LINENO"; then : 23876 ac_cv_header_time=yes 23877else 23878 ac_cv_header_time=no 23879fi 23880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23881fi 23882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 23883$as_echo "$ac_cv_header_time" >&6; } 23884if test $ac_cv_header_time = yes; then 23885 23886$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 23887 23888fi 23889 23890 23891 for ac_header in sys/types.h sys/time.h time.h sys/socket.h 23892do : 23893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23894ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23895if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23896 cat >>confdefs.h <<_ACEOF 23897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23898_ACEOF 23899 23900fi 23901 23902done 23903 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 23905$as_echo_n "checking for struct timeval... " >&6; } 23906if ${ac_cv_struct_timeval+:} false; then : 23907 $as_echo_n "(cached) " >&6 23908else 23909 23910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23911/* end confdefs.h. */ 23912 23913 23914#undef inline 23915#ifdef HAVE_WINDOWS_H 23916#ifndef WIN32_LEAN_AND_MEAN 23917#define WIN32_LEAN_AND_MEAN 23918#endif 23919#include <windows.h> 23920#ifdef HAVE_WINSOCK2_H 23921#include <winsock2.h> 23922#else 23923#ifdef HAVE_WINSOCK_H 23924#include <winsock.h> 23925#endif 23926#endif 23927#endif 23928#ifdef HAVE_SYS_TYPES_H 23929#include <sys/types.h> 23930#endif 23931#ifdef HAVE_SYS_TIME_H 23932#include <sys/time.h> 23933#ifdef TIME_WITH_SYS_TIME 23934#include <time.h> 23935#endif 23936#else 23937#ifdef HAVE_TIME_H 23938#include <time.h> 23939#endif 23940#endif 23941#ifdef HAVE_SYS_SOCKET_H 23942#include <sys/socket.h> 23943#endif 23944 23945int main (void) 23946{ 23947 23948 struct timeval ts; 23949 ts.tv_sec = 0; 23950 ts.tv_usec = 0; 23951 23952 ; 23953 return 0; 23954} 23955 23956_ACEOF 23957if ac_fn_c_try_compile "$LINENO"; then : 23958 23959 ac_cv_struct_timeval="yes" 23960 23961else 23962 23963 ac_cv_struct_timeval="no" 23964 23965fi 23966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23967 23968fi 23969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5 23970$as_echo "$ac_cv_struct_timeval" >&6; } 23971 case "$ac_cv_struct_timeval" in 23972 yes) 23973 23974cat >>confdefs.h <<_ACEOF 23975#define HAVE_STRUCT_TIMEVAL 1 23976_ACEOF 23977 23978 ;; 23979 esac 23980 23981 23982 23983 if test "x$cross_compiling" != xyes; then 23984 23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5 23986$as_echo_n "checking run-time libs availability... " >&6; } 23987 if test "$cross_compiling" = yes; then : 23988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23990as_fn_error $? "cannot run test program while cross compiling 23991See \`config.log' for more details" "$LINENO" 5; } 23992else 23993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23994/* end confdefs.h. */ 23995 23996main() 23997{ 23998 return 0; 23999} 24000 24001_ACEOF 24002if ac_fn_c_try_run "$LINENO"; then : 24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5 24004$as_echo "fine" >&6; } 24005else 24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 24007$as_echo "failed" >&6; } 24008 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 24009 24010fi 24011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24012 conftest.$ac_objext conftest.beam conftest.$ac_ext 24013fi 24014 24015 24016 fi 24017 24018 24019# The cast to long int works around a bug in the HP C Compiler 24020# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24021# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24022# This bug is HP SR number 8606223364. 24023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 24024$as_echo_n "checking size of size_t... " >&6; } 24025if ${ac_cv_sizeof_size_t+:} false; then : 24026 $as_echo_n "(cached) " >&6 24027else 24028 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 24029 24030else 24031 if test "$ac_cv_type_size_t" = yes; then 24032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24034as_fn_error 77 "cannot compute sizeof (size_t) 24035See \`config.log' for more details" "$LINENO" 5; } 24036 else 24037 ac_cv_sizeof_size_t=0 24038 fi 24039fi 24040 24041fi 24042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 24043$as_echo "$ac_cv_sizeof_size_t" >&6; } 24044 24045 24046 24047cat >>confdefs.h <<_ACEOF 24048#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 24049_ACEOF 24050 24051 24052# The cast to long int works around a bug in the HP C Compiler 24053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24055# This bug is HP SR number 8606223364. 24056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 24057$as_echo_n "checking size of long... " >&6; } 24058if ${ac_cv_sizeof_long+:} false; then : 24059 $as_echo_n "(cached) " >&6 24060else 24061 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 24062 24063else 24064 if test "$ac_cv_type_long" = yes; then 24065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24067as_fn_error 77 "cannot compute sizeof (long) 24068See \`config.log' for more details" "$LINENO" 5; } 24069 else 24070 ac_cv_sizeof_long=0 24071 fi 24072fi 24073 24074fi 24075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 24076$as_echo "$ac_cv_sizeof_long" >&6; } 24077 24078 24079 24080cat >>confdefs.h <<_ACEOF 24081#define SIZEOF_LONG $ac_cv_sizeof_long 24082_ACEOF 24083 24084 24085# The cast to long int works around a bug in the HP C Compiler 24086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24088# This bug is HP SR number 8606223364. 24089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 24090$as_echo_n "checking size of int... " >&6; } 24091if ${ac_cv_sizeof_int+:} false; then : 24092 $as_echo_n "(cached) " >&6 24093else 24094 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 24095 24096else 24097 if test "$ac_cv_type_int" = yes; then 24098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24100as_fn_error 77 "cannot compute sizeof (int) 24101See \`config.log' for more details" "$LINENO" 5; } 24102 else 24103 ac_cv_sizeof_int=0 24104 fi 24105fi 24106 24107fi 24108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 24109$as_echo "$ac_cv_sizeof_int" >&6; } 24110 24111 24112 24113cat >>confdefs.h <<_ACEOF 24114#define SIZEOF_INT $ac_cv_sizeof_int 24115_ACEOF 24116 24117 24118# The cast to long int works around a bug in the HP C Compiler 24119# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24120# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24121# This bug is HP SR number 8606223364. 24122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 24123$as_echo_n "checking size of short... " >&6; } 24124if ${ac_cv_sizeof_short+:} false; then : 24125 $as_echo_n "(cached) " >&6 24126else 24127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 24128 24129else 24130 if test "$ac_cv_type_short" = yes; then 24131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24133as_fn_error 77 "cannot compute sizeof (short) 24134See \`config.log' for more details" "$LINENO" 5; } 24135 else 24136 ac_cv_sizeof_short=0 24137 fi 24138fi 24139 24140fi 24141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 24142$as_echo "$ac_cv_sizeof_short" >&6; } 24143 24144 24145 24146cat >>confdefs.h <<_ACEOF 24147#define SIZEOF_SHORT $ac_cv_sizeof_short 24148_ACEOF 24149 24150 24151 24152 if test -z "$ac_cv_sizeof_long" || 24153 test "$ac_cv_sizeof_long" -eq "0"; then 24154 as_fn_error $? "cannot find out size of long." "$LINENO" 5 24155 fi 24156 24157cat >>confdefs.h <<_EOF 24158#define CURL_SIZEOF_LONG $ac_cv_sizeof_long 24159_EOF 24160 24161 24162# The cast to long int works around a bug in the HP C Compiler 24163# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24164# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24165# This bug is HP SR number 8606223364. 24166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 24167$as_echo_n "checking size of time_t... " >&6; } 24168if ${ac_cv_sizeof_time_t+:} false; then : 24169 $as_echo_n "(cached) " >&6 24170else 24171 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 24172 24173else 24174 if test "$ac_cv_type_time_t" = yes; then 24175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24177as_fn_error 77 "cannot compute sizeof (time_t) 24178See \`config.log' for more details" "$LINENO" 5; } 24179 else 24180 ac_cv_sizeof_time_t=0 24181 fi 24182fi 24183 24184fi 24185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 24186$as_echo "$ac_cv_sizeof_time_t" >&6; } 24187 24188 24189 24190cat >>confdefs.h <<_ACEOF 24191#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 24192_ACEOF 24193 24194 24195# The cast to long int works around a bug in the HP C Compiler 24196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24198# This bug is HP SR number 8606223364. 24199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 24200$as_echo_n "checking size of off_t... " >&6; } 24201if ${ac_cv_sizeof_off_t+:} false; then : 24202 $as_echo_n "(cached) " >&6 24203else 24204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 24205 24206else 24207 if test "$ac_cv_type_off_t" = yes; then 24208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24210as_fn_error 77 "cannot compute sizeof (off_t) 24211See \`config.log' for more details" "$LINENO" 5; } 24212 else 24213 ac_cv_sizeof_off_t=0 24214 fi 24215fi 24216 24217fi 24218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 24219$as_echo "$ac_cv_sizeof_off_t" >&6; } 24220 24221 24222 24223cat >>confdefs.h <<_ACEOF 24224#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 24225_ACEOF 24226 24227 24228 24229soname_bump=no 24230if test x"$ac_cv_native_windows" != "xyes" && 24231 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5 24233$as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;} 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5 24235$as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;} 24236 soname_bump=yes 24237fi 24238 24239 24240ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 24241if test "x$ac_cv_type_long_long" = xyes; then : 24242 24243$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h 24244 24245 longlong="yes" 24246 24247fi 24248 24249 24250if test "xyes" = "x$longlong"; then 24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5 24252$as_echo_n "checking if numberLL works... " >&6; } 24253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24254/* end confdefs.h. */ 24255 24256 24257 24258int main (void) 24259{ 24260 24261 long long val = 1000LL; 24262 24263 ; 24264 return 0; 24265} 24266 24267_ACEOF 24268if ac_fn_c_try_compile "$LINENO"; then : 24269 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24271$as_echo "yes" >&6; } 24272 24273$as_echo "#define HAVE_LL 1" >>confdefs.h 24274 24275 24276else 24277 24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24279$as_echo "no" >&6; } 24280 24281fi 24282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24283fi 24284 24285 24286# check for ssize_t 24287ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 24288if test "x$ac_cv_type_ssize_t" = xyes; then : 24289 24290else 24291 24292$as_echo "#define ssize_t int" >>confdefs.h 24293 24294fi 24295 24296 24297# check for bool type 24298ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " 24299#ifdef HAVE_SYS_TYPES_H 24300#include <sys/types.h> 24301#endif 24302#ifdef HAVE_STDBOOL_H 24303#include <stdbool.h> 24304#endif 24305 24306" 24307if test "x$ac_cv_type_bool" = xyes; then : 24308 24309 24310$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h 24311 24312 24313fi 24314 24315 24316 24317curl_includes_ws2tcpip="\ 24318/* includes start */ 24319#ifdef HAVE_WINDOWS_H 24320# ifndef WIN32_LEAN_AND_MEAN 24321# define WIN32_LEAN_AND_MEAN 24322# endif 24323# include <windows.h> 24324# ifdef HAVE_WINSOCK2_H 24325# include <winsock2.h> 24326# ifdef HAVE_WS2TCPIP_H 24327# include <ws2tcpip.h> 24328# endif 24329# endif 24330#endif 24331/* includes end */" 24332 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 24334$as_echo_n "checking for windows.h... " >&6; } 24335if ${ac_cv_header_windows_h+:} false; then : 24336 $as_echo_n "(cached) " >&6 24337else 24338 24339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24340/* end confdefs.h. */ 24341 24342 24343#undef inline 24344#ifndef WIN32_LEAN_AND_MEAN 24345#define WIN32_LEAN_AND_MEAN 24346#endif 24347#include <windows.h> 24348 24349int main (void) 24350{ 24351 24352#if defined(__CYGWIN__) || defined(__CEGCC__) 24353 HAVE_WINDOWS_H shall not be defined. 24354#else 24355 int dummy=2*WINVER; 24356#endif 24357 24358 ; 24359 return 0; 24360} 24361 24362_ACEOF 24363if ac_fn_c_try_compile "$LINENO"; then : 24364 24365 ac_cv_header_windows_h="yes" 24366 24367else 24368 24369 ac_cv_header_windows_h="no" 24370 24371fi 24372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24373 24374fi 24375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 24376$as_echo "$ac_cv_header_windows_h" >&6; } 24377 case "$ac_cv_header_windows_h" in 24378 yes) 24379 24380cat >>confdefs.h <<_ACEOF 24381#define HAVE_WINDOWS_H 1 24382_ACEOF 24383 24384 24385cat >>confdefs.h <<_ACEOF 24386#define WIN32_LEAN_AND_MEAN 1 24387_ACEOF 24388 24389 ;; 24390 esac 24391 24392 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 24394$as_echo_n "checking for winsock2.h... " >&6; } 24395if ${ac_cv_header_winsock2_h+:} false; then : 24396 $as_echo_n "(cached) " >&6 24397else 24398 24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24400/* end confdefs.h. */ 24401 24402 24403#undef inline 24404#ifndef WIN32_LEAN_AND_MEAN 24405#define WIN32_LEAN_AND_MEAN 24406#endif 24407#include <windows.h> 24408#include <winsock2.h> 24409 24410int main (void) 24411{ 24412 24413#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 24414 HAVE_WINSOCK2_H shall not be defined. 24415#else 24416 int dummy=2*IPPROTO_ESP; 24417#endif 24418 24419 ; 24420 return 0; 24421} 24422 24423_ACEOF 24424if ac_fn_c_try_compile "$LINENO"; then : 24425 24426 ac_cv_header_winsock2_h="yes" 24427 24428else 24429 24430 ac_cv_header_winsock2_h="no" 24431 24432fi 24433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24434 24435fi 24436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 24437$as_echo "$ac_cv_header_winsock2_h" >&6; } 24438 case "$ac_cv_header_winsock2_h" in 24439 yes) 24440 24441cat >>confdefs.h <<_ACEOF 24442#define HAVE_WINSOCK2_H 1 24443_ACEOF 24444 24445 ;; 24446 esac 24447 24448 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 24450$as_echo_n "checking for ws2tcpip.h... " >&6; } 24451if ${ac_cv_header_ws2tcpip_h+:} false; then : 24452 $as_echo_n "(cached) " >&6 24453else 24454 24455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24456/* end confdefs.h. */ 24457 24458 24459#undef inline 24460#ifndef WIN32_LEAN_AND_MEAN 24461#define WIN32_LEAN_AND_MEAN 24462#endif 24463#include <windows.h> 24464#include <winsock2.h> 24465#include <ws2tcpip.h> 24466 24467int main (void) 24468{ 24469 24470#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 24471 HAVE_WS2TCPIP_H shall not be defined. 24472#else 24473 int dummy=2*IP_PKTINFO; 24474#endif 24475 24476 ; 24477 return 0; 24478} 24479 24480_ACEOF 24481if ac_fn_c_try_compile "$LINENO"; then : 24482 24483 ac_cv_header_ws2tcpip_h="yes" 24484 24485else 24486 24487 ac_cv_header_ws2tcpip_h="no" 24488 24489fi 24490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24491 24492fi 24493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5 24494$as_echo "$ac_cv_header_ws2tcpip_h" >&6; } 24495 case "$ac_cv_header_ws2tcpip_h" in 24496 yes) 24497 24498cat >>confdefs.h <<_ACEOF 24499#define HAVE_WS2TCPIP_H 1 24500_ACEOF 24501 24502 ;; 24503 esac 24504 24505 24506 24507curl_includes_sys_socket="\ 24508/* includes start */ 24509#ifdef HAVE_SYS_TYPES_H 24510# include <sys/types.h> 24511#endif 24512#ifdef HAVE_SYS_SOCKET_H 24513# include <sys/socket.h> 24514#endif 24515/* includes end */" 24516 for ac_header in sys/types.h sys/socket.h 24517do : 24518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket 24520" 24521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24522 cat >>confdefs.h <<_ACEOF 24523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24524_ACEOF 24525 24526fi 24527 24528done 24529 24530 24531 24532curl_preprocess_callconv="\ 24533/* preprocess start */ 24534#ifdef HAVE_WINDOWS_H 24535# define FUNCALLCONV __stdcall 24536#else 24537# define FUNCALLCONV 24538#endif 24539/* preprocess end */" 24540 24541 24542 # 24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5 24544$as_echo_n "checking for curl_socklen_t data type... " >&6; } 24545 curl_typeof_curl_socklen_t="unknown" 24546 for arg1 in int SOCKET; do 24547 for arg2 in 'struct sockaddr' void; do 24548 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do 24549 if test "$curl_typeof_curl_socklen_t" = "unknown"; then 24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24551/* end confdefs.h. */ 24552 24553 24554 $curl_includes_ws2tcpip 24555 $curl_includes_sys_socket 24556 $curl_preprocess_callconv 24557 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *); 24558 24559int main (void) 24560{ 24561 24562 $t *lenptr = 0; 24563 if(0 != getpeername(0, 0, lenptr)) 24564 return 1; 24565 24566 ; 24567 return 0; 24568} 24569 24570_ACEOF 24571if ac_fn_c_try_compile "$LINENO"; then : 24572 24573 curl_typeof_curl_socklen_t="$t" 24574 24575fi 24576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24577 fi 24578 done 24579 done 24580 done 24581 for t in socklen_t int; do 24582 if test "$curl_typeof_curl_socklen_t" = "void"; then 24583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24584/* end confdefs.h. */ 24585 24586 24587 $curl_includes_sys_socket 24588 typedef $t curl_socklen_t; 24589 24590int main (void) 24591{ 24592 24593 curl_socklen_t dummy; 24594 24595 ; 24596 return 0; 24597} 24598 24599_ACEOF 24600if ac_fn_c_try_compile "$LINENO"; then : 24601 24602 curl_typeof_curl_socklen_t="$t" 24603 24604fi 24605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24606 fi 24607 done 24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5 24609$as_echo "$curl_typeof_curl_socklen_t" >&6; } 24610 if test "$curl_typeof_curl_socklen_t" = "void" || 24611 test "$curl_typeof_curl_socklen_t" = "unknown"; then 24612 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5 24613 fi 24614 # 24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5 24616$as_echo_n "checking size of curl_socklen_t... " >&6; } 24617 curl_sizeof_curl_socklen_t="unknown" 24618 curl_pull_headers_socklen_t="unknown" 24619 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then 24620 tst_pull_header_checks='none ws2tcpip' 24621 tst_size_checks='4' 24622 else 24623 tst_pull_header_checks='none systypes syssocket' 24624 tst_size_checks='4 8 2' 24625 fi 24626 for tst_size in $tst_size_checks; do 24627 for tst_pull_headers in $tst_pull_header_checks; do 24628 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then 24629 case $tst_pull_headers in 24630 ws2tcpip) 24631 tmp_includes="$curl_includes_ws2tcpip" 24632 ;; 24633 systypes) 24634 tmp_includes="$curl_includes_sys_types" 24635 ;; 24636 syssocket) 24637 tmp_includes="$curl_includes_sys_socket" 24638 ;; 24639 *) 24640 tmp_includes="" 24641 ;; 24642 esac 24643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24644/* end confdefs.h. */ 24645 24646 24647 $tmp_includes 24648 typedef $curl_typeof_curl_socklen_t curl_socklen_t; 24649 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1]; 24650 24651int main (void) 24652{ 24653 24654 curl_socklen_t dummy; 24655 24656 ; 24657 return 0; 24658} 24659 24660_ACEOF 24661if ac_fn_c_try_compile "$LINENO"; then : 24662 24663 curl_sizeof_curl_socklen_t="$tst_size" 24664 curl_pull_headers_socklen_t="$tst_pull_headers" 24665 24666fi 24667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24668 fi 24669 done 24670 done 24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5 24672$as_echo "$curl_sizeof_curl_socklen_t" >&6; } 24673 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then 24674 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5 24675 fi 24676 # 24677 case $curl_pull_headers_socklen_t in 24678 ws2tcpip) 24679 24680cat >>confdefs.h <<_EOF 24681#define CURL_PULL_WS2TCPIP_H 1 24682_EOF 24683 24684 ;; 24685 systypes) 24686 24687cat >>confdefs.h <<_EOF 24688#define CURL_PULL_SYS_TYPES_H 1 24689_EOF 24690 24691 ;; 24692 syssocket) 24693 24694cat >>confdefs.h <<_EOF 24695#define CURL_PULL_SYS_TYPES_H 1 24696_EOF 24697 24698 24699cat >>confdefs.h <<_EOF 24700#define CURL_PULL_SYS_SOCKET_H 1 24701_EOF 24702 24703 ;; 24704 esac 24705 24706cat >>confdefs.h <<_EOF 24707#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t 24708_EOF 24709 24710 24711cat >>confdefs.h <<_EOF 24712#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t 24713_EOF 24714 24715 24716 24717 24718 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 24719#undef inline 24720#ifdef HAVE_WINDOWS_H 24721#ifndef WIN32_LEAN_AND_MEAN 24722#define WIN32_LEAN_AND_MEAN 24723#endif 24724#include <windows.h> 24725#ifdef HAVE_WINSOCK2_H 24726#include <winsock2.h> 24727#else 24728#ifdef HAVE_WINSOCK_H 24729#include <winsock.h> 24730#endif 24731#endif 24732#else 24733#ifdef HAVE_SYS_TYPES_H 24734#include <sys/types.h> 24735#endif 24736#ifdef HAVE_SYS_SOCKET_H 24737#include <sys/socket.h> 24738#endif 24739#ifdef HAVE_NETINET_IN_H 24740#include <netinet/in.h> 24741#endif 24742#ifdef HAVE_ARPA_INET_H 24743#include <arpa/inet.h> 24744#endif 24745#endif 24746 24747" 24748if test "x$ac_cv_type_in_addr_t" = xyes; then : 24749 24750else 24751 24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5 24753$as_echo_n "checking for in_addr_t equivalent... " >&6; } 24754if ${curl_cv_in_addr_t_equiv+:} false; then : 24755 $as_echo_n "(cached) " >&6 24756else 24757 24758 curl_cv_in_addr_t_equiv="unknown" 24759 for t in "unsigned long" int size_t unsigned long; do 24760 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then 24761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24762/* end confdefs.h. */ 24763 24764 24765#undef inline 24766#ifdef HAVE_WINDOWS_H 24767#ifndef WIN32_LEAN_AND_MEAN 24768#define WIN32_LEAN_AND_MEAN 24769#endif 24770#include <windows.h> 24771#ifdef HAVE_WINSOCK2_H 24772#include <winsock2.h> 24773#else 24774#ifdef HAVE_WINSOCK_H 24775#include <winsock.h> 24776#endif 24777#endif 24778#else 24779#ifdef HAVE_SYS_TYPES_H 24780#include <sys/types.h> 24781#endif 24782#ifdef HAVE_SYS_SOCKET_H 24783#include <sys/socket.h> 24784#endif 24785#ifdef HAVE_NETINET_IN_H 24786#include <netinet/in.h> 24787#endif 24788#ifdef HAVE_ARPA_INET_H 24789#include <arpa/inet.h> 24790#endif 24791#endif 24792 24793int main (void) 24794{ 24795 24796 $t data = inet_addr ("1.2.3.4"); 24797 24798 ; 24799 return 0; 24800} 24801 24802_ACEOF 24803if ac_fn_c_try_link "$LINENO"; then : 24804 24805 curl_cv_in_addr_t_equiv="$t" 24806 24807fi 24808rm -f core conftest.err conftest.$ac_objext \ 24809 conftest$ac_exeext conftest.$ac_ext 24810 fi 24811 done 24812 24813fi 24814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5 24815$as_echo "$curl_cv_in_addr_t_equiv" >&6; } 24816 case "$curl_cv_in_addr_t_equiv" in 24817 unknown) 24818 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5 24819 ;; 24820 *) 24821 24822cat >>confdefs.h <<_ACEOF 24823#define in_addr_t $curl_cv_in_addr_t_equiv 24824_ACEOF 24825 24826 ;; 24827 esac 24828 24829fi 24830 24831 24832 24833 24834 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 24835#undef inline 24836#ifdef HAVE_WINDOWS_H 24837#ifndef WIN32_LEAN_AND_MEAN 24838#define WIN32_LEAN_AND_MEAN 24839#endif 24840#include <windows.h> 24841#ifdef HAVE_WINSOCK2_H 24842#include <winsock2.h> 24843#endif 24844#else 24845#ifdef HAVE_SYS_TYPES_H 24846#include <sys/types.h> 24847#endif 24848#ifdef HAVE_SYS_SOCKET_H 24849#include <sys/socket.h> 24850#endif 24851#ifdef HAVE_NETINET_IN_H 24852#include <netinet/in.h> 24853#endif 24854#ifdef HAVE_ARPA_INET_H 24855#include <arpa/inet.h> 24856#endif 24857#endif 24858 24859" 24860if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 24861 24862$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 24863 24864fi 24865 24866 24867 24868 24869 for ac_header in signal.h 24870do : 24871 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 24872if test "x$ac_cv_header_signal_h" = xyes; then : 24873 cat >>confdefs.h <<_ACEOF 24874#define HAVE_SIGNAL_H 1 24875_ACEOF 24876 24877fi 24878 24879done 24880 24881 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" " 24882#ifdef HAVE_SIGNAL_H 24883#include <signal.h> 24884#endif 24885 24886" 24887if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 24888 24889 24890$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h 24891 24892 24893fi 24894 24895 case "$ac_cv_type_sig_atomic_t" in 24896 yes) 24897 # 24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5 24899$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; } 24900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24901/* end confdefs.h. */ 24902 24903 24904#ifdef HAVE_SIGNAL_H 24905#include <signal.h> 24906#endif 24907 24908int main (void) 24909{ 24910 24911 static volatile sig_atomic_t dummy = 0; 24912 24913 ; 24914 return 0; 24915} 24916 24917_ACEOF 24918if ac_fn_c_try_link "$LINENO"; then : 24919 24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24921$as_echo "no" >&6; } 24922 ac_cv_sig_atomic_t_volatile="no" 24923 24924else 24925 24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24927$as_echo "yes" >&6; } 24928 ac_cv_sig_atomic_t_volatile="yes" 24929 24930fi 24931rm -f core conftest.err conftest.$ac_objext \ 24932 conftest$ac_exeext conftest.$ac_ext 24933 # 24934 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then 24935 24936$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h 24937 24938 fi 24939 ;; 24940 esac 24941 24942 24943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 24944$as_echo_n "checking return type of signal handlers... " >&6; } 24945if ${ac_cv_type_signal+:} false; then : 24946 $as_echo_n "(cached) " >&6 24947else 24948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24949/* end confdefs.h. */ 24950#include <sys/types.h> 24951#include <signal.h> 24952 24953int main (void) 24954{ 24955return *(signal (0, 0)) (0) == 1; 24956 ; 24957 return 0; 24958} 24959_ACEOF 24960if ac_fn_c_try_compile "$LINENO"; then : 24961 ac_cv_type_signal=int 24962else 24963 ac_cv_type_signal=void 24964fi 24965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24966fi 24967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 24968$as_echo "$ac_cv_type_signal" >&6; } 24969 24970cat >>confdefs.h <<_ACEOF 24971#define RETSIGTYPE $ac_cv_type_signal 24972_ACEOF 24973 24974 24975 24976 24977 for ac_header in sys/select.h sys/socket.h 24978do : 24979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24982 cat >>confdefs.h <<_ACEOF 24983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24984_ACEOF 24985 24986fi 24987 24988done 24989 24990 # 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 24992$as_echo_n "checking for select... " >&6; } 24993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24994/* end confdefs.h. */ 24995 24996 24997#undef inline 24998#ifdef HAVE_WINDOWS_H 24999#ifndef WIN32_LEAN_AND_MEAN 25000#define WIN32_LEAN_AND_MEAN 25001#endif 25002#include <windows.h> 25003#ifdef HAVE_WINSOCK2_H 25004#include <winsock2.h> 25005#else 25006#ifdef HAVE_WINSOCK_H 25007#include <winsock.h> 25008#endif 25009#endif 25010#endif 25011#ifdef HAVE_SYS_TYPES_H 25012#include <sys/types.h> 25013#endif 25014#ifdef HAVE_SYS_TIME_H 25015#include <sys/time.h> 25016#ifdef TIME_WITH_SYS_TIME 25017#include <time.h> 25018#endif 25019#else 25020#ifdef HAVE_TIME_H 25021#include <time.h> 25022#endif 25023#endif 25024#ifndef HAVE_WINDOWS_H 25025#ifdef HAVE_SYS_SELECT_H 25026#include <sys/select.h> 25027#endif 25028#ifdef HAVE_SYS_SOCKET_H 25029#include <sys/socket.h> 25030#endif 25031#endif 25032 25033int main (void) 25034{ 25035 25036 select(0, 0, 0, 0, 0); 25037 25038 ; 25039 return 0; 25040} 25041 25042_ACEOF 25043if ac_fn_c_try_link "$LINENO"; then : 25044 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25046$as_echo "yes" >&6; } 25047 curl_cv_select="yes" 25048 25049else 25050 25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25052$as_echo "no" >&6; } 25053 curl_cv_select="no" 25054 25055fi 25056rm -f core conftest.err conftest.$ac_objext \ 25057 conftest$ac_exeext conftest.$ac_ext 25058 # 25059 if test "$curl_cv_select" = "yes"; then 25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5 25061$as_echo_n "checking types of args and return type for select... " >&6; } 25062if ${curl_cv_func_select_args+:} false; then : 25063 $as_echo_n "(cached) " >&6 25064else 25065 25066 curl_cv_func_select_args="unknown" 25067 for sel_retv in 'int' 'ssize_t'; do 25068 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do 25069 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do 25070 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do 25071 if test "$curl_cv_func_select_args" = "unknown"; then 25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25073/* end confdefs.h. */ 25074 25075 25076#undef inline 25077#ifdef HAVE_WINDOWS_H 25078#ifndef WIN32_LEAN_AND_MEAN 25079#define WIN32_LEAN_AND_MEAN 25080#endif 25081#include <windows.h> 25082#ifdef HAVE_WINSOCK2_H 25083#include <winsock2.h> 25084#else 25085#ifdef HAVE_WINSOCK_H 25086#include <winsock.h> 25087#endif 25088#endif 25089#define SELECTCALLCONV PASCAL 25090#endif 25091#ifdef HAVE_SYS_TYPES_H 25092#include <sys/types.h> 25093#endif 25094#ifdef HAVE_SYS_TIME_H 25095#include <sys/time.h> 25096#ifdef TIME_WITH_SYS_TIME 25097#include <time.h> 25098#endif 25099#else 25100#ifdef HAVE_TIME_H 25101#include <time.h> 25102#endif 25103#endif 25104#ifndef HAVE_WINDOWS_H 25105#ifdef HAVE_SYS_SELECT_H 25106#include <sys/select.h> 25107#endif 25108#ifdef HAVE_SYS_SOCKET_H 25109#include <sys/socket.h> 25110#endif 25111#define SELECTCALLCONV 25112#endif 25113#ifndef HAVE_STRUCT_TIMEVAL 25114 struct timeval { 25115 long tv_sec; 25116 long tv_usec; 25117 }; 25118#endif 25119 extern $sel_retv SELECTCALLCONV select($sel_arg1, 25120 $sel_arg234, 25121 $sel_arg234, 25122 $sel_arg234, 25123 $sel_arg5); 25124 25125int main (void) 25126{ 25127 25128 $sel_arg1 nfds=0; 25129 $sel_arg234 rfds=0; 25130 $sel_arg234 wfds=0; 25131 $sel_arg234 efds=0; 25132 $sel_retv res = select(nfds, rfds, wfds, efds, 0); 25133 25134 ; 25135 return 0; 25136} 25137 25138_ACEOF 25139if ac_fn_c_try_compile "$LINENO"; then : 25140 25141 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv" 25142 25143fi 25144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25145 fi 25146 done 25147 done 25148 done 25149 done 25150 25151fi 25152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5 25153$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK 25154 if test "$curl_cv_func_select_args" = "unknown"; then 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5 25156$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;} 25157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5 25158$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;} 25159 else 25160 select_prev_IFS=$IFS; IFS=',' 25161 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'` 25162 IFS=$select_prev_IFS 25163 shift 25164 # 25165 sel_qual_type_arg5=$3 25166 # 25167 25168cat >>confdefs.h <<_ACEOF 25169#define SELECT_TYPE_ARG1 $1 25170_ACEOF 25171 25172 25173cat >>confdefs.h <<_ACEOF 25174#define SELECT_TYPE_ARG234 $2 25175_ACEOF 25176 25177 25178cat >>confdefs.h <<_ACEOF 25179#define SELECT_TYPE_RETV $4 25180_ACEOF 25181 25182 # 25183 prev_sh_opts=$- 25184 # 25185 case $prev_sh_opts in 25186 *f*) 25187 ;; 25188 *) 25189 set -f 25190 ;; 25191 esac 25192 # 25193 case "$sel_qual_type_arg5" in 25194 const*) 25195 sel_qual_arg5=const 25196 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'` 25197 ;; 25198 *) 25199 sel_qual_arg5= 25200 sel_type_arg5=$sel_qual_type_arg5 25201 ;; 25202 esac 25203 # 25204 25205cat >>confdefs.h <<_ACEOF 25206#define SELECT_QUAL_ARG5 $sel_qual_arg5 25207_ACEOF 25208 25209 25210cat >>confdefs.h <<_ACEOF 25211#define SELECT_TYPE_ARG5 $sel_type_arg5 25212_ACEOF 25213 25214 # 25215 case $prev_sh_opts in 25216 *f*) 25217 ;; 25218 *) 25219 set +f 25220 ;; 25221 esac 25222 # 25223 25224cat >>confdefs.h <<_ACEOF 25225#define HAVE_SELECT 1 25226_ACEOF 25227 25228 ac_cv_func_select="yes" 25229 fi 25230 fi 25231 25232 25233 25234 for ac_header in sys/types.h sys/socket.h 25235do : 25236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25239 cat >>confdefs.h <<_ACEOF 25240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25241_ACEOF 25242 25243fi 25244 25245done 25246 25247 # 25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 25249$as_echo_n "checking for recv... " >&6; } 25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25251/* end confdefs.h. */ 25252 25253 25254#undef inline 25255#ifdef HAVE_WINDOWS_H 25256#ifndef WIN32_LEAN_AND_MEAN 25257#define WIN32_LEAN_AND_MEAN 25258#endif 25259#include <windows.h> 25260#ifdef HAVE_WINSOCK2_H 25261#include <winsock2.h> 25262#else 25263#ifdef HAVE_WINSOCK_H 25264#include <winsock.h> 25265#endif 25266#endif 25267#else 25268#ifdef HAVE_SYS_TYPES_H 25269#include <sys/types.h> 25270#endif 25271#ifdef HAVE_SYS_SOCKET_H 25272#include <sys/socket.h> 25273#endif 25274#endif 25275 25276int main (void) 25277{ 25278 25279 recv(0, 0, 0, 0); 25280 25281 ; 25282 return 0; 25283} 25284 25285_ACEOF 25286if ac_fn_c_try_link "$LINENO"; then : 25287 25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25289$as_echo "yes" >&6; } 25290 curl_cv_recv="yes" 25291 25292else 25293 25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25295$as_echo "no" >&6; } 25296 curl_cv_recv="no" 25297 25298fi 25299rm -f core conftest.err conftest.$ac_objext \ 25300 conftest$ac_exeext conftest.$ac_ext 25301 # 25302 if test "$curl_cv_recv" = "yes"; then 25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5 25304$as_echo_n "checking types of args and return type for recv... " >&6; } 25305if ${curl_cv_func_recv_args+:} false; then : 25306 $as_echo_n "(cached) " >&6 25307else 25308 25309 curl_cv_func_recv_args="unknown" 25310 for recv_retv in 'int' 'ssize_t'; do 25311 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do 25312 for recv_arg2 in 'char *' 'void *'; do 25313 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 25314 for recv_arg4 in 'int' 'unsigned int'; do 25315 if test "$curl_cv_func_recv_args" = "unknown"; then 25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25317/* end confdefs.h. */ 25318 25319 25320#undef inline 25321#ifdef HAVE_WINDOWS_H 25322#ifndef WIN32_LEAN_AND_MEAN 25323#define WIN32_LEAN_AND_MEAN 25324#endif 25325#include <windows.h> 25326#ifdef HAVE_WINSOCK2_H 25327#include <winsock2.h> 25328#else 25329#ifdef HAVE_WINSOCK_H 25330#include <winsock.h> 25331#endif 25332#endif 25333#define RECVCALLCONV PASCAL 25334#else 25335#ifdef HAVE_SYS_TYPES_H 25336#include <sys/types.h> 25337#endif 25338#ifdef HAVE_SYS_SOCKET_H 25339#include <sys/socket.h> 25340#endif 25341#define RECVCALLCONV 25342#endif 25343 extern $recv_retv RECVCALLCONV 25344 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4); 25345 25346int main (void) 25347{ 25348 25349 $recv_arg1 s=0; 25350 $recv_arg2 buf=0; 25351 $recv_arg3 len=0; 25352 $recv_arg4 flags=0; 25353 $recv_retv res = recv(s, buf, len, flags); 25354 25355 ; 25356 return 0; 25357} 25358 25359_ACEOF 25360if ac_fn_c_try_compile "$LINENO"; then : 25361 25362 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv" 25363 25364fi 25365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25366 fi 25367 done 25368 done 25369 done 25370 done 25371 done 25372 25373fi 25374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5 25375$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK 25376 if test "$curl_cv_func_recv_args" = "unknown"; then 25377 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5 25378 else 25379 recv_prev_IFS=$IFS; IFS=',' 25380 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'` 25381 IFS=$recv_prev_IFS 25382 shift 25383 # 25384 25385cat >>confdefs.h <<_ACEOF 25386#define RECV_TYPE_ARG1 $1 25387_ACEOF 25388 25389 25390cat >>confdefs.h <<_ACEOF 25391#define RECV_TYPE_ARG2 $2 25392_ACEOF 25393 25394 25395cat >>confdefs.h <<_ACEOF 25396#define RECV_TYPE_ARG3 $3 25397_ACEOF 25398 25399 25400cat >>confdefs.h <<_ACEOF 25401#define RECV_TYPE_ARG4 $4 25402_ACEOF 25403 25404 25405cat >>confdefs.h <<_ACEOF 25406#define RECV_TYPE_RETV $5 25407_ACEOF 25408 25409 # 25410 25411cat >>confdefs.h <<_ACEOF 25412#define HAVE_RECV 1 25413_ACEOF 25414 25415 ac_cv_func_recv="yes" 25416 fi 25417 else 25418 as_fn_error $? "Unable to link function recv" "$LINENO" 5 25419 fi 25420 25421 25422 for ac_header in sys/types.h sys/socket.h 25423do : 25424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25425ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25427 cat >>confdefs.h <<_ACEOF 25428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25429_ACEOF 25430 25431fi 25432 25433done 25434 25435 # 25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5 25437$as_echo_n "checking for recvfrom... " >&6; } 25438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25439/* end confdefs.h. */ 25440 25441 25442#undef inline 25443#ifdef HAVE_WINDOWS_H 25444#ifndef WIN32_LEAN_AND_MEAN 25445#define WIN32_LEAN_AND_MEAN 25446#endif 25447#include <windows.h> 25448#ifdef HAVE_WINSOCK2_H 25449#include <winsock2.h> 25450#else 25451#ifdef HAVE_WINSOCK_H 25452#include <winsock.h> 25453#endif 25454#endif 25455#else 25456#ifdef HAVE_SYS_TYPES_H 25457#include <sys/types.h> 25458#endif 25459#ifdef HAVE_SYS_SOCKET_H 25460#include <sys/socket.h> 25461#endif 25462#endif 25463 25464int main (void) 25465{ 25466 25467 recvfrom(0, 0, 0, 0, 0, 0); 25468 25469 ; 25470 return 0; 25471} 25472 25473_ACEOF 25474if ac_fn_c_try_link "$LINENO"; then : 25475 25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25477$as_echo "yes" >&6; } 25478 curl_cv_recvfrom="yes" 25479 25480else 25481 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25483$as_echo "no" >&6; } 25484 curl_cv_recvfrom="no" 25485 25486fi 25487rm -f core conftest.err conftest.$ac_objext \ 25488 conftest$ac_exeext conftest.$ac_ext 25489 # 25490 if test "$curl_cv_recvfrom" = "yes"; then 25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5 25492$as_echo_n "checking types of args and return type for recvfrom... " >&6; } 25493if ${curl_cv_func_recvfrom_args+:} false; then : 25494 $as_echo_n "(cached) " >&6 25495else 25496 25497 curl_cv_func_recvfrom_args="unknown" 25498 for recvfrom_retv in 'int' 'ssize_t'; do 25499 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do 25500 for recvfrom_arg2 in 'char *' 'void *'; do 25501 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 25502 for recvfrom_arg4 in 'int' 'unsigned int'; do 25503 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do 25504 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do 25505 if test "$curl_cv_func_recvfrom_args" = "unknown"; then 25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25507/* end confdefs.h. */ 25508 25509 25510#undef inline 25511#ifdef HAVE_WINDOWS_H 25512#ifndef WIN32_LEAN_AND_MEAN 25513#define WIN32_LEAN_AND_MEAN 25514#endif 25515#include <windows.h> 25516#ifdef HAVE_WINSOCK2_H 25517#include <winsock2.h> 25518#else 25519#ifdef HAVE_WINSOCK_H 25520#include <winsock.h> 25521#endif 25522#endif 25523#define RECVFROMCALLCONV PASCAL 25524#else 25525#ifdef HAVE_SYS_TYPES_H 25526#include <sys/types.h> 25527#endif 25528#ifdef HAVE_SYS_SOCKET_H 25529#include <sys/socket.h> 25530#endif 25531#define RECVFROMCALLCONV 25532#endif 25533 extern $recvfrom_retv RECVFROMCALLCONV 25534 recvfrom($recvfrom_arg1, $recvfrom_arg2, 25535 $recvfrom_arg3, $recvfrom_arg4, 25536 $recvfrom_arg5, $recvfrom_arg6); 25537 25538int main (void) 25539{ 25540 25541 $recvfrom_arg1 s=0; 25542 $recvfrom_arg2 buf=0; 25543 $recvfrom_arg3 len=0; 25544 $recvfrom_arg4 flags=0; 25545 $recvfrom_arg5 addr=0; 25546 $recvfrom_arg6 addrlen=0; 25547 $recvfrom_retv res=0; 25548 res = recvfrom(s, buf, len, flags, addr, addrlen); 25549 25550 ; 25551 return 0; 25552} 25553 25554_ACEOF 25555if ac_fn_c_try_compile "$LINENO"; then : 25556 25557 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv" 25558 25559fi 25560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25561 fi 25562 done 25563 done 25564 done 25565 done 25566 done 25567 done 25568 done 25569 25570fi 25571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5 25572$as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK 25573 # Nearly last minute change for this release starts here 25574 25575cat >>confdefs.h <<_ACEOF 25576#define HAVE_RECVFROM 1 25577_ACEOF 25578 25579 ac_cv_func_recvfrom="yes" 25580 # Nearly last minute change for this release ends here 25581 if test "$curl_cv_func_recvfrom_args" = "unknown"; then 25582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5 25583$as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;} 25584 else 25585 recvfrom_prev_IFS=$IFS; IFS=',' 25586 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'` 25587 IFS=$recvfrom_prev_IFS 25588 shift 25589 # 25590 recvfrom_ptrt_arg2=$2 25591 recvfrom_qual_ptrt_arg5=$5 25592 recvfrom_ptrt_arg6=$6 25593 # 25594 25595cat >>confdefs.h <<_ACEOF 25596#define RECVFROM_TYPE_ARG1 $1 25597_ACEOF 25598 25599 25600cat >>confdefs.h <<_ACEOF 25601#define RECVFROM_TYPE_ARG3 $3 25602_ACEOF 25603 25604 25605cat >>confdefs.h <<_ACEOF 25606#define RECVFROM_TYPE_ARG4 $4 25607_ACEOF 25608 25609 25610cat >>confdefs.h <<_ACEOF 25611#define RECVFROM_TYPE_RETV $7 25612_ACEOF 25613 25614 # 25615 prev_sh_opts=$- 25616 # 25617 case $prev_sh_opts in 25618 *f*) 25619 ;; 25620 *) 25621 set -f 25622 ;; 25623 esac 25624 # 25625 case "$recvfrom_qual_ptrt_arg5" in 25626 const*) 25627 recvfrom_qual_arg5=const 25628 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'` 25629 ;; 25630 *) 25631 recvfrom_qual_arg5= 25632 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5 25633 ;; 25634 esac 25635 # 25636 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'` 25637 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'` 25638 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'` 25639 # 25640 25641cat >>confdefs.h <<_ACEOF 25642#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2 25643_ACEOF 25644 25645 25646cat >>confdefs.h <<_ACEOF 25647#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5 25648_ACEOF 25649 25650 25651cat >>confdefs.h <<_ACEOF 25652#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5 25653_ACEOF 25654 25655 25656cat >>confdefs.h <<_ACEOF 25657#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6 25658_ACEOF 25659 25660 # 25661 if test "$recvfrom_type_arg2" = "void"; then 25662 25663cat >>confdefs.h <<_ACEOF 25664#define RECVFROM_TYPE_ARG2_IS_VOID 1 25665_ACEOF 25666 25667 fi 25668 if test "$recvfrom_type_arg5" = "void"; then 25669 25670cat >>confdefs.h <<_ACEOF 25671#define RECVFROM_TYPE_ARG5_IS_VOID 1 25672_ACEOF 25673 25674 fi 25675 if test "$recvfrom_type_arg6" = "void"; then 25676 25677cat >>confdefs.h <<_ACEOF 25678#define RECVFROM_TYPE_ARG6_IS_VOID 1 25679_ACEOF 25680 25681 fi 25682 # 25683 case $prev_sh_opts in 25684 *f*) 25685 ;; 25686 *) 25687 set +f 25688 ;; 25689 esac 25690 # 25691 25692cat >>confdefs.h <<_ACEOF 25693#define HAVE_RECVFROM 1 25694_ACEOF 25695 25696 ac_cv_func_recvfrom="yes" 25697 fi 25698 else 25699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5 25700$as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;} 25701 fi 25702 25703 25704 for ac_header in sys/types.h sys/socket.h 25705do : 25706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25707ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25708if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25709 cat >>confdefs.h <<_ACEOF 25710#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25711_ACEOF 25712 25713fi 25714 25715done 25716 25717 # 25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5 25719$as_echo_n "checking for send... " >&6; } 25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25721/* end confdefs.h. */ 25722 25723 25724#undef inline 25725#ifdef HAVE_WINDOWS_H 25726#ifndef WIN32_LEAN_AND_MEAN 25727#define WIN32_LEAN_AND_MEAN 25728#endif 25729#include <windows.h> 25730#ifdef HAVE_WINSOCK2_H 25731#include <winsock2.h> 25732#else 25733#ifdef HAVE_WINSOCK_H 25734#include <winsock.h> 25735#endif 25736#endif 25737#else 25738#ifdef HAVE_SYS_TYPES_H 25739#include <sys/types.h> 25740#endif 25741#ifdef HAVE_SYS_SOCKET_H 25742#include <sys/socket.h> 25743#endif 25744#endif 25745 25746int main (void) 25747{ 25748 25749 send(0, 0, 0, 0); 25750 25751 ; 25752 return 0; 25753} 25754 25755_ACEOF 25756if ac_fn_c_try_link "$LINENO"; then : 25757 25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25759$as_echo "yes" >&6; } 25760 curl_cv_send="yes" 25761 25762else 25763 25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25765$as_echo "no" >&6; } 25766 curl_cv_send="no" 25767 25768fi 25769rm -f core conftest.err conftest.$ac_objext \ 25770 conftest$ac_exeext conftest.$ac_ext 25771 # 25772 if test "$curl_cv_send" = "yes"; then 25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5 25774$as_echo_n "checking types of args and return type for send... " >&6; } 25775if ${curl_cv_func_send_args+:} false; then : 25776 $as_echo_n "(cached) " >&6 25777else 25778 25779 curl_cv_func_send_args="unknown" 25780 for send_retv in 'int' 'ssize_t'; do 25781 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do 25782 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do 25783 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 25784 for send_arg4 in 'int' 'unsigned int'; do 25785 if test "$curl_cv_func_send_args" = "unknown"; then 25786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25787/* end confdefs.h. */ 25788 25789 25790#undef inline 25791#ifdef HAVE_WINDOWS_H 25792#ifndef WIN32_LEAN_AND_MEAN 25793#define WIN32_LEAN_AND_MEAN 25794#endif 25795#include <windows.h> 25796#ifdef HAVE_WINSOCK2_H 25797#include <winsock2.h> 25798#else 25799#ifdef HAVE_WINSOCK_H 25800#include <winsock.h> 25801#endif 25802#endif 25803#define SENDCALLCONV PASCAL 25804#else 25805#ifdef HAVE_SYS_TYPES_H 25806#include <sys/types.h> 25807#endif 25808#ifdef HAVE_SYS_SOCKET_H 25809#include <sys/socket.h> 25810#endif 25811#define SENDCALLCONV 25812#endif 25813 extern $send_retv SENDCALLCONV 25814 send($send_arg1, $send_arg2, $send_arg3, $send_arg4); 25815 25816int main (void) 25817{ 25818 25819 $send_arg1 s=0; 25820 $send_arg3 len=0; 25821 $send_arg4 flags=0; 25822 $send_retv res = send(s, 0, len, flags); 25823 25824 ; 25825 return 0; 25826} 25827 25828_ACEOF 25829if ac_fn_c_try_compile "$LINENO"; then : 25830 25831 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv" 25832 25833fi 25834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25835 fi 25836 done 25837 done 25838 done 25839 done 25840 done 25841 25842fi 25843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5 25844$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK 25845 if test "$curl_cv_func_send_args" = "unknown"; then 25846 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5 25847 else 25848 send_prev_IFS=$IFS; IFS=',' 25849 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'` 25850 IFS=$send_prev_IFS 25851 shift 25852 # 25853 send_qual_type_arg2=$2 25854 # 25855 25856cat >>confdefs.h <<_ACEOF 25857#define SEND_TYPE_ARG1 $1 25858_ACEOF 25859 25860 25861cat >>confdefs.h <<_ACEOF 25862#define SEND_TYPE_ARG3 $3 25863_ACEOF 25864 25865 25866cat >>confdefs.h <<_ACEOF 25867#define SEND_TYPE_ARG4 $4 25868_ACEOF 25869 25870 25871cat >>confdefs.h <<_ACEOF 25872#define SEND_TYPE_RETV $5 25873_ACEOF 25874 25875 # 25876 prev_sh_opts=$- 25877 # 25878 case $prev_sh_opts in 25879 *f*) 25880 ;; 25881 *) 25882 set -f 25883 ;; 25884 esac 25885 # 25886 case "$send_qual_type_arg2" in 25887 const*) 25888 send_qual_arg2=const 25889 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'` 25890 ;; 25891 *) 25892 send_qual_arg2= 25893 send_type_arg2=$send_qual_type_arg2 25894 ;; 25895 esac 25896 # 25897 25898cat >>confdefs.h <<_ACEOF 25899#define SEND_QUAL_ARG2 $send_qual_arg2 25900_ACEOF 25901 25902 25903cat >>confdefs.h <<_ACEOF 25904#define SEND_TYPE_ARG2 $send_type_arg2 25905_ACEOF 25906 25907 # 25908 case $prev_sh_opts in 25909 *f*) 25910 ;; 25911 *) 25912 set +f 25913 ;; 25914 esac 25915 # 25916 25917cat >>confdefs.h <<_ACEOF 25918#define HAVE_SEND 1 25919_ACEOF 25920 25921 ac_cv_func_send="yes" 25922 fi 25923 else 25924 as_fn_error $? "Unable to link function send" "$LINENO" 5 25925 fi 25926 25927 25928 for ac_header in sys/types.h sys/socket.h 25929do : 25930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25931ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25933 cat >>confdefs.h <<_ACEOF 25934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25935_ACEOF 25936 25937fi 25938 25939done 25940 25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 25942$as_echo_n "checking for MSG_NOSIGNAL... " >&6; } 25943if ${ac_cv_msg_nosignal+:} false; then : 25944 $as_echo_n "(cached) " >&6 25945else 25946 25947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25948/* end confdefs.h. */ 25949 25950 25951#undef inline 25952#ifdef HAVE_WINDOWS_H 25953#ifndef WIN32_LEAN_AND_MEAN 25954#define WIN32_LEAN_AND_MEAN 25955#endif 25956#include <windows.h> 25957#ifdef HAVE_WINSOCK2_H 25958#include <winsock2.h> 25959#else 25960#ifdef HAVE_WINSOCK_H 25961#include <winsock.h> 25962#endif 25963#endif 25964#else 25965#ifdef HAVE_SYS_TYPES_H 25966#include <sys/types.h> 25967#endif 25968#ifdef HAVE_SYS_SOCKET_H 25969#include <sys/socket.h> 25970#endif 25971#endif 25972 25973int main (void) 25974{ 25975 25976 int flag=MSG_NOSIGNAL; 25977 25978 ; 25979 return 0; 25980} 25981 25982_ACEOF 25983if ac_fn_c_try_compile "$LINENO"; then : 25984 25985 ac_cv_msg_nosignal="yes" 25986 25987else 25988 25989 ac_cv_msg_nosignal="no" 25990 25991fi 25992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25993 25994fi 25995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5 25996$as_echo "$ac_cv_msg_nosignal" >&6; } 25997 case "$ac_cv_msg_nosignal" in 25998 yes) 25999 26000cat >>confdefs.h <<_ACEOF 26001#define HAVE_MSG_NOSIGNAL 1 26002_ACEOF 26003 26004 ;; 26005 esac 26006 26007 26008 26009curl_includes_unistd="\ 26010/* includes start */ 26011#ifdef HAVE_SYS_TYPES_H 26012# include <sys/types.h> 26013#endif 26014#ifdef HAVE_UNISTD_H 26015# include <unistd.h> 26016#endif 26017/* includes end */" 26018 for ac_header in sys/types.h unistd.h 26019do : 26020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26021ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd 26022" 26023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26024 cat >>confdefs.h <<_ACEOF 26025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26026_ACEOF 26027 26028fi 26029 26030done 26031 26032 26033 26034 # 26035 tst_links_alarm="unknown" 26036 tst_proto_alarm="unknown" 26037 tst_compi_alarm="unknown" 26038 tst_allow_alarm="unknown" 26039 # 26040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5 26041$as_echo_n "checking if alarm can be linked... " >&6; } 26042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26043/* end confdefs.h. */ 26044 26045 26046#define alarm innocuous_alarm 26047#ifdef __STDC__ 26048# include <limits.h> 26049#else 26050# include <assert.h> 26051#endif 26052#undef alarm 26053#ifdef __cplusplus 26054extern "C" 26055#endif 26056char alarm (); 26057#if defined __stub_alarm || defined __stub___alarm 26058choke me 26059#endif 26060 26061int main (void) 26062{ 26063return alarm (); 26064 ; 26065 return 0; 26066} 26067 26068_ACEOF 26069if ac_fn_c_try_link "$LINENO"; then : 26070 26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26072$as_echo "yes" >&6; } 26073 tst_links_alarm="yes" 26074 26075else 26076 26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26078$as_echo "no" >&6; } 26079 tst_links_alarm="no" 26080 26081fi 26082rm -f core conftest.err conftest.$ac_objext \ 26083 conftest$ac_exeext conftest.$ac_ext 26084 # 26085 if test "$tst_links_alarm" = "yes"; then 26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5 26087$as_echo_n "checking if alarm is prototyped... " >&6; } 26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26089/* end confdefs.h. */ 26090 26091 $curl_includes_unistd 26092 26093_ACEOF 26094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26095 $EGREP "alarm" >/dev/null 2>&1; then : 26096 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26098$as_echo "yes" >&6; } 26099 tst_proto_alarm="yes" 26100 26101else 26102 26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26104$as_echo "no" >&6; } 26105 tst_proto_alarm="no" 26106 26107fi 26108rm -f conftest* 26109 26110 fi 26111 # 26112 if test "$tst_proto_alarm" = "yes"; then 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5 26114$as_echo_n "checking if alarm is compilable... " >&6; } 26115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26116/* end confdefs.h. */ 26117 26118 26119 $curl_includes_unistd 26120 26121int main (void) 26122{ 26123 26124 if(0 != alarm(0)) 26125 return 1; 26126 26127 ; 26128 return 0; 26129} 26130 26131_ACEOF 26132if ac_fn_c_try_compile "$LINENO"; then : 26133 26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26135$as_echo "yes" >&6; } 26136 tst_compi_alarm="yes" 26137 26138else 26139 26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26141$as_echo "no" >&6; } 26142 tst_compi_alarm="no" 26143 26144fi 26145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26146 fi 26147 # 26148 if test "$tst_compi_alarm" = "yes"; then 26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5 26150$as_echo_n "checking if alarm usage allowed... " >&6; } 26151 if test "x$curl_disallow_alarm" != "xyes"; then 26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26153$as_echo "yes" >&6; } 26154 tst_allow_alarm="yes" 26155 else 26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26157$as_echo "no" >&6; } 26158 tst_allow_alarm="no" 26159 fi 26160 fi 26161 # 26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5 26163$as_echo_n "checking if alarm might be used... " >&6; } 26164 if test "$tst_links_alarm" = "yes" && 26165 test "$tst_proto_alarm" = "yes" && 26166 test "$tst_compi_alarm" = "yes" && 26167 test "$tst_allow_alarm" = "yes"; then 26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26169$as_echo "yes" >&6; } 26170 26171cat >>confdefs.h <<_ACEOF 26172#define HAVE_ALARM 1 26173_ACEOF 26174 26175 ac_cv_func_alarm="yes" 26176 else 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26178$as_echo "no" >&6; } 26179 ac_cv_func_alarm="no" 26180 fi 26181 26182 26183curl_includes_string="\ 26184/* includes start */ 26185#ifdef HAVE_SYS_TYPES_H 26186# include <sys/types.h> 26187#endif 26188#ifdef HAVE_STRING_H 26189# include <string.h> 26190#endif 26191#ifdef HAVE_STRINGS_H 26192# include <strings.h> 26193#endif 26194/* includes end */" 26195 for ac_header in sys/types.h string.h strings.h 26196do : 26197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26198ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string 26199" 26200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26201 cat >>confdefs.h <<_ACEOF 26202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26203_ACEOF 26204 26205fi 26206 26207done 26208 26209 26210 26211curl_includes_libgen="\ 26212/* includes start */ 26213#ifdef HAVE_SYS_TYPES_H 26214# include <sys/types.h> 26215#endif 26216#ifdef HAVE_LIBGEN_H 26217# include <libgen.h> 26218#endif 26219/* includes end */" 26220 for ac_header in sys/types.h libgen.h 26221do : 26222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26223ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen 26224" 26225if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26226 cat >>confdefs.h <<_ACEOF 26227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26228_ACEOF 26229 26230fi 26231 26232done 26233 26234 26235 26236 # 26237 tst_links_basename="unknown" 26238 tst_proto_basename="unknown" 26239 tst_compi_basename="unknown" 26240 tst_allow_basename="unknown" 26241 # 26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5 26243$as_echo_n "checking if basename can be linked... " >&6; } 26244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26245/* end confdefs.h. */ 26246 26247 26248#define basename innocuous_basename 26249#ifdef __STDC__ 26250# include <limits.h> 26251#else 26252# include <assert.h> 26253#endif 26254#undef basename 26255#ifdef __cplusplus 26256extern "C" 26257#endif 26258char basename (); 26259#if defined __stub_basename || defined __stub___basename 26260choke me 26261#endif 26262 26263int main (void) 26264{ 26265return basename (); 26266 ; 26267 return 0; 26268} 26269 26270_ACEOF 26271if ac_fn_c_try_link "$LINENO"; then : 26272 26273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26274$as_echo "yes" >&6; } 26275 tst_links_basename="yes" 26276 26277else 26278 26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26280$as_echo "no" >&6; } 26281 tst_links_basename="no" 26282 26283fi 26284rm -f core conftest.err conftest.$ac_objext \ 26285 conftest$ac_exeext conftest.$ac_ext 26286 # 26287 if test "$tst_links_basename" = "yes"; then 26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5 26289$as_echo_n "checking if basename is prototyped... " >&6; } 26290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26291/* end confdefs.h. */ 26292 26293 $curl_includes_string 26294 $curl_includes_libgen 26295 $curl_includes_unistd 26296 26297_ACEOF 26298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26299 $EGREP "basename" >/dev/null 2>&1; then : 26300 26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26302$as_echo "yes" >&6; } 26303 tst_proto_basename="yes" 26304 26305else 26306 26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26308$as_echo "no" >&6; } 26309 tst_proto_basename="no" 26310 26311fi 26312rm -f conftest* 26313 26314 fi 26315 # 26316 if test "$tst_proto_basename" = "yes"; then 26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5 26318$as_echo_n "checking if basename is compilable... " >&6; } 26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26320/* end confdefs.h. */ 26321 26322 26323 $curl_includes_string 26324 $curl_includes_libgen 26325 $curl_includes_unistd 26326 26327int main (void) 26328{ 26329 26330 if(0 != basename(0)) 26331 return 1; 26332 26333 ; 26334 return 0; 26335} 26336 26337_ACEOF 26338if ac_fn_c_try_compile "$LINENO"; then : 26339 26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26341$as_echo "yes" >&6; } 26342 tst_compi_basename="yes" 26343 26344else 26345 26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26347$as_echo "no" >&6; } 26348 tst_compi_basename="no" 26349 26350fi 26351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26352 fi 26353 # 26354 if test "$tst_compi_basename" = "yes"; then 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5 26356$as_echo_n "checking if basename usage allowed... " >&6; } 26357 if test "x$curl_disallow_basename" != "xyes"; then 26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26359$as_echo "yes" >&6; } 26360 tst_allow_basename="yes" 26361 else 26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26363$as_echo "no" >&6; } 26364 tst_allow_basename="no" 26365 fi 26366 fi 26367 # 26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5 26369$as_echo_n "checking if basename might be used... " >&6; } 26370 if test "$tst_links_basename" = "yes" && 26371 test "$tst_proto_basename" = "yes" && 26372 test "$tst_compi_basename" = "yes" && 26373 test "$tst_allow_basename" = "yes"; then 26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26375$as_echo "yes" >&6; } 26376 26377cat >>confdefs.h <<_ACEOF 26378#define HAVE_BASENAME 1 26379_ACEOF 26380 26381 ac_cv_func_basename="yes" 26382 else 26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26384$as_echo "no" >&6; } 26385 ac_cv_func_basename="no" 26386 fi 26387 26388 26389curl_includes_socket="\ 26390/* includes start */ 26391#ifdef HAVE_SYS_TYPES_H 26392# include <sys/types.h> 26393#endif 26394#ifdef HAVE_SOCKET_H 26395# include <socket.h> 26396#endif 26397/* includes end */" 26398 for ac_header in sys/types.h socket.h 26399do : 26400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26401ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket 26402" 26403if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26404 cat >>confdefs.h <<_ACEOF 26405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26406_ACEOF 26407 26408fi 26409 26410done 26411 26412 26413 26414 # 26415 tst_links_closesocket="unknown" 26416 tst_proto_closesocket="unknown" 26417 tst_compi_closesocket="unknown" 26418 tst_allow_closesocket="unknown" 26419 # 26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 26421$as_echo_n "checking if closesocket can be linked... " >&6; } 26422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26423/* end confdefs.h. */ 26424 26425 26426 $curl_includes_winsock2 26427 $curl_includes_socket 26428 26429int main (void) 26430{ 26431 26432 if(0 != closesocket(0)) 26433 return 1; 26434 26435 ; 26436 return 0; 26437} 26438 26439_ACEOF 26440if ac_fn_c_try_link "$LINENO"; then : 26441 26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26443$as_echo "yes" >&6; } 26444 tst_links_closesocket="yes" 26445 26446else 26447 26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26449$as_echo "no" >&6; } 26450 tst_links_closesocket="no" 26451 26452fi 26453rm -f core conftest.err conftest.$ac_objext \ 26454 conftest$ac_exeext conftest.$ac_ext 26455 # 26456 if test "$tst_links_closesocket" = "yes"; then 26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 26458$as_echo_n "checking if closesocket is prototyped... " >&6; } 26459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26460/* end confdefs.h. */ 26461 26462 $curl_includes_winsock2 26463 $curl_includes_socket 26464 26465_ACEOF 26466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26467 $EGREP "closesocket" >/dev/null 2>&1; then : 26468 26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26470$as_echo "yes" >&6; } 26471 tst_proto_closesocket="yes" 26472 26473else 26474 26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26476$as_echo "no" >&6; } 26477 tst_proto_closesocket="no" 26478 26479fi 26480rm -f conftest* 26481 26482 fi 26483 # 26484 if test "$tst_proto_closesocket" = "yes"; then 26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 26486$as_echo_n "checking if closesocket is compilable... " >&6; } 26487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26488/* end confdefs.h. */ 26489 26490 26491 $curl_includes_winsock2 26492 $curl_includes_socket 26493 26494int main (void) 26495{ 26496 26497 if(0 != closesocket(0)) 26498 return 1; 26499 26500 ; 26501 return 0; 26502} 26503 26504_ACEOF 26505if ac_fn_c_try_compile "$LINENO"; then : 26506 26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26508$as_echo "yes" >&6; } 26509 tst_compi_closesocket="yes" 26510 26511else 26512 26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26514$as_echo "no" >&6; } 26515 tst_compi_closesocket="no" 26516 26517fi 26518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26519 fi 26520 # 26521 if test "$tst_compi_closesocket" = "yes"; then 26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 26523$as_echo_n "checking if closesocket usage allowed... " >&6; } 26524 if test "x$curl_disallow_closesocket" != "xyes"; then 26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26526$as_echo "yes" >&6; } 26527 tst_allow_closesocket="yes" 26528 else 26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26530$as_echo "no" >&6; } 26531 tst_allow_closesocket="no" 26532 fi 26533 fi 26534 # 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 26536$as_echo_n "checking if closesocket might be used... " >&6; } 26537 if test "$tst_links_closesocket" = "yes" && 26538 test "$tst_proto_closesocket" = "yes" && 26539 test "$tst_compi_closesocket" = "yes" && 26540 test "$tst_allow_closesocket" = "yes"; then 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26542$as_echo "yes" >&6; } 26543 26544cat >>confdefs.h <<_ACEOF 26545#define HAVE_CLOSESOCKET 1 26546_ACEOF 26547 26548 ac_cv_func_closesocket="yes" 26549 else 26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26551$as_echo "no" >&6; } 26552 ac_cv_func_closesocket="no" 26553 fi 26554 26555 26556 # 26557 tst_links_closesocket_camel="unknown" 26558 tst_proto_closesocket_camel="unknown" 26559 tst_compi_closesocket_camel="unknown" 26560 tst_allow_closesocket_camel="unknown" 26561 # 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 26563$as_echo_n "checking if CloseSocket can be linked... " >&6; } 26564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26565/* end confdefs.h. */ 26566 26567 26568 $curl_includes_sys_socket 26569 26570int main (void) 26571{ 26572 26573 if(0 != CloseSocket(0)) 26574 return 1; 26575 26576 ; 26577 return 0; 26578} 26579 26580_ACEOF 26581if ac_fn_c_try_link "$LINENO"; then : 26582 26583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26584$as_echo "yes" >&6; } 26585 tst_links_closesocket_camel="yes" 26586 26587else 26588 26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26590$as_echo "no" >&6; } 26591 tst_links_closesocket_camel="no" 26592 26593fi 26594rm -f core conftest.err conftest.$ac_objext \ 26595 conftest$ac_exeext conftest.$ac_ext 26596 # 26597 if test "$tst_links_closesocket_camel" = "yes"; then 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5 26599$as_echo_n "checking if CloseSocket is prototyped... " >&6; } 26600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26601/* end confdefs.h. */ 26602 26603 $curl_includes_sys_socket 26604 26605_ACEOF 26606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26607 $EGREP "CloseSocket" >/dev/null 2>&1; then : 26608 26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26610$as_echo "yes" >&6; } 26611 tst_proto_closesocket_camel="yes" 26612 26613else 26614 26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26616$as_echo "no" >&6; } 26617 tst_proto_closesocket_camel="no" 26618 26619fi 26620rm -f conftest* 26621 26622 fi 26623 # 26624 if test "$tst_proto_closesocket_camel" = "yes"; then 26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 26626$as_echo_n "checking if CloseSocket is compilable... " >&6; } 26627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26628/* end confdefs.h. */ 26629 26630 26631 $curl_includes_sys_socket 26632 26633int main (void) 26634{ 26635 26636 if(0 != CloseSocket(0)) 26637 return 1; 26638 26639 ; 26640 return 0; 26641} 26642 26643_ACEOF 26644if ac_fn_c_try_compile "$LINENO"; then : 26645 26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26647$as_echo "yes" >&6; } 26648 tst_compi_closesocket_camel="yes" 26649 26650else 26651 26652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26653$as_echo "no" >&6; } 26654 tst_compi_closesocket_camel="no" 26655 26656fi 26657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26658 fi 26659 # 26660 if test "$tst_compi_closesocket_camel" = "yes"; then 26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 26662$as_echo_n "checking if CloseSocket usage allowed... " >&6; } 26663 if test "x$curl_disallow_closesocket_camel" != "xyes"; then 26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26665$as_echo "yes" >&6; } 26666 tst_allow_closesocket_camel="yes" 26667 else 26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26669$as_echo "no" >&6; } 26670 tst_allow_closesocket_camel="no" 26671 fi 26672 fi 26673 # 26674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 26675$as_echo_n "checking if CloseSocket might be used... " >&6; } 26676 if test "$tst_links_closesocket_camel" = "yes" && 26677 test "$tst_proto_closesocket_camel" = "yes" && 26678 test "$tst_compi_closesocket_camel" = "yes" && 26679 test "$tst_allow_closesocket_camel" = "yes"; then 26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26681$as_echo "yes" >&6; } 26682 26683cat >>confdefs.h <<_ACEOF 26684#define HAVE_CLOSESOCKET_CAMEL 1 26685_ACEOF 26686 26687 ac_cv_func_closesocket_camel="yes" 26688 else 26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26690$as_echo "no" >&6; } 26691 ac_cv_func_closesocket_camel="no" 26692 fi 26693 26694 26695 # 26696 tst_links_connect="unknown" 26697 tst_proto_connect="unknown" 26698 tst_compi_connect="unknown" 26699 tst_allow_connect="unknown" 26700 # 26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5 26702$as_echo_n "checking if connect can be linked... " >&6; } 26703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26704/* end confdefs.h. */ 26705 26706 26707 $curl_includes_winsock2 26708 $curl_includes_sys_socket 26709 $curl_includes_socket 26710 26711int main (void) 26712{ 26713 26714 if(0 != connect(0, 0, 0)) 26715 return 1; 26716 26717 ; 26718 return 0; 26719} 26720 26721_ACEOF 26722if ac_fn_c_try_link "$LINENO"; then : 26723 26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26725$as_echo "yes" >&6; } 26726 tst_links_connect="yes" 26727 26728else 26729 26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26731$as_echo "no" >&6; } 26732 tst_links_connect="no" 26733 26734fi 26735rm -f core conftest.err conftest.$ac_objext \ 26736 conftest$ac_exeext conftest.$ac_ext 26737 # 26738 if test "$tst_links_connect" = "yes"; then 26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5 26740$as_echo_n "checking if connect is prototyped... " >&6; } 26741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26742/* end confdefs.h. */ 26743 26744 $curl_includes_winsock2 26745 $curl_includes_sys_socket 26746 $curl_includes_socket 26747 26748_ACEOF 26749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26750 $EGREP "connect" >/dev/null 2>&1; then : 26751 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26753$as_echo "yes" >&6; } 26754 tst_proto_connect="yes" 26755 26756else 26757 26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26759$as_echo "no" >&6; } 26760 tst_proto_connect="no" 26761 26762fi 26763rm -f conftest* 26764 26765 fi 26766 # 26767 if test "$tst_proto_connect" = "yes"; then 26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5 26769$as_echo_n "checking if connect is compilable... " >&6; } 26770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26771/* end confdefs.h. */ 26772 26773 26774 $curl_includes_winsock2 26775 $curl_includes_sys_socket 26776 $curl_includes_socket 26777 26778int main (void) 26779{ 26780 26781 if(0 != connect(0, 0, 0)) 26782 return 1; 26783 26784 ; 26785 return 0; 26786} 26787 26788_ACEOF 26789if ac_fn_c_try_compile "$LINENO"; then : 26790 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26792$as_echo "yes" >&6; } 26793 tst_compi_connect="yes" 26794 26795else 26796 26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26798$as_echo "no" >&6; } 26799 tst_compi_connect="no" 26800 26801fi 26802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26803 fi 26804 # 26805 if test "$tst_compi_connect" = "yes"; then 26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5 26807$as_echo_n "checking if connect usage allowed... " >&6; } 26808 if test "x$curl_disallow_connect" != "xyes"; then 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26810$as_echo "yes" >&6; } 26811 tst_allow_connect="yes" 26812 else 26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26814$as_echo "no" >&6; } 26815 tst_allow_connect="no" 26816 fi 26817 fi 26818 # 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5 26820$as_echo_n "checking if connect might be used... " >&6; } 26821 if test "$tst_links_connect" = "yes" && 26822 test "$tst_proto_connect" = "yes" && 26823 test "$tst_compi_connect" = "yes" && 26824 test "$tst_allow_connect" = "yes"; then 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26826$as_echo "yes" >&6; } 26827 26828cat >>confdefs.h <<_ACEOF 26829#define HAVE_CONNECT 1 26830_ACEOF 26831 26832 ac_cv_func_connect="yes" 26833 else 26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26835$as_echo "no" >&6; } 26836 ac_cv_func_connect="no" 26837 fi 26838 26839 26840curl_includes_fcntl="\ 26841/* includes start */ 26842#ifdef HAVE_SYS_TYPES_H 26843# include <sys/types.h> 26844#endif 26845#ifdef HAVE_UNISTD_H 26846# include <unistd.h> 26847#endif 26848#ifdef HAVE_FCNTL_H 26849# include <fcntl.h> 26850#endif 26851/* includes end */" 26852 for ac_header in sys/types.h unistd.h fcntl.h 26853do : 26854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl 26856" 26857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26858 cat >>confdefs.h <<_ACEOF 26859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26860_ACEOF 26861 26862fi 26863 26864done 26865 26866 26867 26868 # 26869 tst_links_fcntl="unknown" 26870 tst_proto_fcntl="unknown" 26871 tst_compi_fcntl="unknown" 26872 tst_allow_fcntl="unknown" 26873 # 26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 26875$as_echo_n "checking if fcntl can be linked... " >&6; } 26876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26877/* end confdefs.h. */ 26878 26879 26880#define fcntl innocuous_fcntl 26881#ifdef __STDC__ 26882# include <limits.h> 26883#else 26884# include <assert.h> 26885#endif 26886#undef fcntl 26887#ifdef __cplusplus 26888extern "C" 26889#endif 26890char fcntl (); 26891#if defined __stub_fcntl || defined __stub___fcntl 26892choke me 26893#endif 26894 26895int main (void) 26896{ 26897return fcntl (); 26898 ; 26899 return 0; 26900} 26901 26902_ACEOF 26903if ac_fn_c_try_link "$LINENO"; then : 26904 26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26906$as_echo "yes" >&6; } 26907 tst_links_fcntl="yes" 26908 26909else 26910 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26912$as_echo "no" >&6; } 26913 tst_links_fcntl="no" 26914 26915fi 26916rm -f core conftest.err conftest.$ac_objext \ 26917 conftest$ac_exeext conftest.$ac_ext 26918 # 26919 if test "$tst_links_fcntl" = "yes"; then 26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 26921$as_echo_n "checking if fcntl is prototyped... " >&6; } 26922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26923/* end confdefs.h. */ 26924 26925 $curl_includes_fcntl 26926 26927_ACEOF 26928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26929 $EGREP "fcntl" >/dev/null 2>&1; then : 26930 26931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26932$as_echo "yes" >&6; } 26933 tst_proto_fcntl="yes" 26934 26935else 26936 26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26938$as_echo "no" >&6; } 26939 tst_proto_fcntl="no" 26940 26941fi 26942rm -f conftest* 26943 26944 fi 26945 # 26946 if test "$tst_proto_fcntl" = "yes"; then 26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 26948$as_echo_n "checking if fcntl is compilable... " >&6; } 26949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26950/* end confdefs.h. */ 26951 26952 26953 $curl_includes_fcntl 26954 26955int main (void) 26956{ 26957 26958 if(0 != fcntl(0, 0, 0)) 26959 return 1; 26960 26961 ; 26962 return 0; 26963} 26964 26965_ACEOF 26966if ac_fn_c_try_compile "$LINENO"; then : 26967 26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26969$as_echo "yes" >&6; } 26970 tst_compi_fcntl="yes" 26971 26972else 26973 26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26975$as_echo "no" >&6; } 26976 tst_compi_fcntl="no" 26977 26978fi 26979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26980 fi 26981 # 26982 if test "$tst_compi_fcntl" = "yes"; then 26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 26984$as_echo_n "checking if fcntl usage allowed... " >&6; } 26985 if test "x$curl_disallow_fcntl" != "xyes"; then 26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26987$as_echo "yes" >&6; } 26988 tst_allow_fcntl="yes" 26989 else 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26991$as_echo "no" >&6; } 26992 tst_allow_fcntl="no" 26993 fi 26994 fi 26995 # 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 26997$as_echo_n "checking if fcntl might be used... " >&6; } 26998 if test "$tst_links_fcntl" = "yes" && 26999 test "$tst_proto_fcntl" = "yes" && 27000 test "$tst_compi_fcntl" = "yes" && 27001 test "$tst_allow_fcntl" = "yes"; then 27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27003$as_echo "yes" >&6; } 27004 27005cat >>confdefs.h <<_ACEOF 27006#define HAVE_FCNTL 1 27007_ACEOF 27008 27009 ac_cv_func_fcntl="yes" 27010 27011 # 27012 tst_compi_fcntl_o_nonblock="unknown" 27013 tst_allow_fcntl_o_nonblock="unknown" 27014 # 27015 case $host_os in 27016 sunos4* | aix3* | beos*) 27017 curl_disallow_fcntl_o_nonblock="yes" 27018 ;; 27019 esac 27020 # 27021 if test "$ac_cv_func_fcntl" = "yes"; then 27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 27023$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; } 27024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27025/* end confdefs.h. */ 27026 27027 27028 $curl_includes_fcntl 27029 27030int main (void) 27031{ 27032 27033 int flags = 0; 27034 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) 27035 return 1; 27036 27037 ; 27038 return 0; 27039} 27040 27041_ACEOF 27042if ac_fn_c_try_compile "$LINENO"; then : 27043 27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27045$as_echo "yes" >&6; } 27046 tst_compi_fcntl_o_nonblock="yes" 27047 27048else 27049 27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27051$as_echo "no" >&6; } 27052 tst_compi_fcntl_o_nonblock="no" 27053 27054fi 27055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27056 fi 27057 # 27058 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 27060$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; } 27061 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27063$as_echo "yes" >&6; } 27064 tst_allow_fcntl_o_nonblock="yes" 27065 else 27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27067$as_echo "no" >&6; } 27068 tst_allow_fcntl_o_nonblock="no" 27069 fi 27070 fi 27071 # 27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 27073$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; } 27074 if test "$tst_compi_fcntl_o_nonblock" = "yes" && 27075 test "$tst_allow_fcntl_o_nonblock" = "yes"; then 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27077$as_echo "yes" >&6; } 27078 27079cat >>confdefs.h <<_ACEOF 27080#define HAVE_FCNTL_O_NONBLOCK 1 27081_ACEOF 27082 27083 ac_cv_func_fcntl_o_nonblock="yes" 27084 else 27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27086$as_echo "no" >&6; } 27087 ac_cv_func_fcntl_o_nonblock="no" 27088 fi 27089 27090 else 27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27092$as_echo "no" >&6; } 27093 ac_cv_func_fcntl="no" 27094 fi 27095 27096 27097curl_includes_stdio="\ 27098/* includes start */ 27099#ifdef HAVE_SYS_TYPES_H 27100# include <sys/types.h> 27101#endif 27102#ifdef HAVE_STDIO_H 27103# include <stdio.h> 27104#endif 27105/* includes end */" 27106 for ac_header in sys/types.h stdio.h 27107do : 27108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27109ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio 27110" 27111if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27112 cat >>confdefs.h <<_ACEOF 27113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27114_ACEOF 27115 27116fi 27117 27118done 27119 27120 27121 27122 # 27123 tst_links_fdopen="unknown" 27124 tst_proto_fdopen="unknown" 27125 tst_compi_fdopen="unknown" 27126 tst_allow_fdopen="unknown" 27127 # 27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5 27129$as_echo_n "checking if fdopen can be linked... " >&6; } 27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27131/* end confdefs.h. */ 27132 27133 27134#define fdopen innocuous_fdopen 27135#ifdef __STDC__ 27136# include <limits.h> 27137#else 27138# include <assert.h> 27139#endif 27140#undef fdopen 27141#ifdef __cplusplus 27142extern "C" 27143#endif 27144char fdopen (); 27145#if defined __stub_fdopen || defined __stub___fdopen 27146choke me 27147#endif 27148 27149int main (void) 27150{ 27151return fdopen (); 27152 ; 27153 return 0; 27154} 27155 27156_ACEOF 27157if ac_fn_c_try_link "$LINENO"; then : 27158 27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27160$as_echo "yes" >&6; } 27161 tst_links_fdopen="yes" 27162 27163else 27164 27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27166$as_echo "no" >&6; } 27167 tst_links_fdopen="no" 27168 27169fi 27170rm -f core conftest.err conftest.$ac_objext \ 27171 conftest$ac_exeext conftest.$ac_ext 27172 # 27173 if test "$tst_links_fdopen" = "yes"; then 27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5 27175$as_echo_n "checking if fdopen is prototyped... " >&6; } 27176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27177/* end confdefs.h. */ 27178 27179 $curl_includes_stdio 27180 27181_ACEOF 27182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27183 $EGREP "fdopen" >/dev/null 2>&1; then : 27184 27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27186$as_echo "yes" >&6; } 27187 tst_proto_fdopen="yes" 27188 27189else 27190 27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27192$as_echo "no" >&6; } 27193 tst_proto_fdopen="no" 27194 27195fi 27196rm -f conftest* 27197 27198 fi 27199 # 27200 if test "$tst_proto_fdopen" = "yes"; then 27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5 27202$as_echo_n "checking if fdopen is compilable... " >&6; } 27203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27204/* end confdefs.h. */ 27205 27206 27207 $curl_includes_stdio 27208 27209int main (void) 27210{ 27211 27212 if(0 != fdopen(0, 0)) 27213 return 1; 27214 27215 ; 27216 return 0; 27217} 27218 27219_ACEOF 27220if ac_fn_c_try_compile "$LINENO"; then : 27221 27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27223$as_echo "yes" >&6; } 27224 tst_compi_fdopen="yes" 27225 27226else 27227 27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27229$as_echo "no" >&6; } 27230 tst_compi_fdopen="no" 27231 27232fi 27233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27234 fi 27235 # 27236 if test "$tst_compi_fdopen" = "yes"; then 27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5 27238$as_echo_n "checking if fdopen usage allowed... " >&6; } 27239 if test "x$curl_disallow_fdopen" != "xyes"; then 27240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27241$as_echo "yes" >&6; } 27242 tst_allow_fdopen="yes" 27243 else 27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27245$as_echo "no" >&6; } 27246 tst_allow_fdopen="no" 27247 fi 27248 fi 27249 # 27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5 27251$as_echo_n "checking if fdopen might be used... " >&6; } 27252 if test "$tst_links_fdopen" = "yes" && 27253 test "$tst_proto_fdopen" = "yes" && 27254 test "$tst_compi_fdopen" = "yes" && 27255 test "$tst_allow_fdopen" = "yes"; then 27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27257$as_echo "yes" >&6; } 27258 27259cat >>confdefs.h <<_ACEOF 27260#define HAVE_FDOPEN 1 27261_ACEOF 27262 27263 ac_cv_func_fdopen="yes" 27264 else 27265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27266$as_echo "no" >&6; } 27267 ac_cv_func_fdopen="no" 27268 fi 27269 27270 27271curl_includes_netdb="\ 27272/* includes start */ 27273#ifdef HAVE_SYS_TYPES_H 27274# include <sys/types.h> 27275#endif 27276#ifdef HAVE_NETDB_H 27277# include <netdb.h> 27278#endif 27279/* includes end */" 27280 for ac_header in sys/types.h netdb.h 27281do : 27282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb 27284" 27285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27286 cat >>confdefs.h <<_ACEOF 27287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27288_ACEOF 27289 27290fi 27291 27292done 27293 27294 27295 27296 # 27297 tst_links_freeaddrinfo="unknown" 27298 tst_proto_freeaddrinfo="unknown" 27299 tst_compi_freeaddrinfo="unknown" 27300 tst_allow_freeaddrinfo="unknown" 27301 # 27302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 27303$as_echo_n "checking if freeaddrinfo can be linked... " >&6; } 27304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27305/* end confdefs.h. */ 27306 27307 27308 $curl_includes_ws2tcpip 27309 $curl_includes_sys_socket 27310 $curl_includes_netdb 27311 27312int main (void) 27313{ 27314 27315 freeaddrinfo(0); 27316 27317 ; 27318 return 0; 27319} 27320 27321_ACEOF 27322if ac_fn_c_try_link "$LINENO"; then : 27323 27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27325$as_echo "yes" >&6; } 27326 tst_links_freeaddrinfo="yes" 27327 27328else 27329 27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27331$as_echo "no" >&6; } 27332 tst_links_freeaddrinfo="no" 27333 27334fi 27335rm -f core conftest.err conftest.$ac_objext \ 27336 conftest$ac_exeext conftest.$ac_ext 27337 # 27338 if test "$tst_links_freeaddrinfo" = "yes"; then 27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 27340$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; } 27341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27342/* end confdefs.h. */ 27343 27344 $curl_includes_ws2tcpip 27345 $curl_includes_sys_socket 27346 $curl_includes_netdb 27347 27348_ACEOF 27349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27350 $EGREP "freeaddrinfo" >/dev/null 2>&1; then : 27351 27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27353$as_echo "yes" >&6; } 27354 tst_proto_freeaddrinfo="yes" 27355 27356else 27357 27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27359$as_echo "no" >&6; } 27360 tst_proto_freeaddrinfo="no" 27361 27362fi 27363rm -f conftest* 27364 27365 fi 27366 # 27367 if test "$tst_proto_freeaddrinfo" = "yes"; then 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 27369$as_echo_n "checking if freeaddrinfo is compilable... " >&6; } 27370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27371/* end confdefs.h. */ 27372 27373 27374 $curl_includes_ws2tcpip 27375 $curl_includes_sys_socket 27376 $curl_includes_netdb 27377 27378int main (void) 27379{ 27380 27381 freeaddrinfo(0); 27382 27383 ; 27384 return 0; 27385} 27386 27387_ACEOF 27388if ac_fn_c_try_compile "$LINENO"; then : 27389 27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27391$as_echo "yes" >&6; } 27392 tst_compi_freeaddrinfo="yes" 27393 27394else 27395 27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27397$as_echo "no" >&6; } 27398 tst_compi_freeaddrinfo="no" 27399 27400fi 27401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27402 fi 27403 # 27404 if test "$tst_compi_freeaddrinfo" = "yes"; then 27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 27406$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; } 27407 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27409$as_echo "yes" >&6; } 27410 tst_allow_freeaddrinfo="yes" 27411 else 27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27413$as_echo "no" >&6; } 27414 tst_allow_freeaddrinfo="no" 27415 fi 27416 fi 27417 # 27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 27419$as_echo_n "checking if freeaddrinfo might be used... " >&6; } 27420 if test "$tst_links_freeaddrinfo" = "yes" && 27421 test "$tst_proto_freeaddrinfo" = "yes" && 27422 test "$tst_compi_freeaddrinfo" = "yes" && 27423 test "$tst_allow_freeaddrinfo" = "yes"; then 27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27425$as_echo "yes" >&6; } 27426 27427cat >>confdefs.h <<_ACEOF 27428#define HAVE_FREEADDRINFO 1 27429_ACEOF 27430 27431 ac_cv_func_freeaddrinfo="yes" 27432 else 27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27434$as_echo "no" >&6; } 27435 ac_cv_func_freeaddrinfo="no" 27436 fi 27437 27438 27439curl_includes_ifaddrs="\ 27440/* includes start */ 27441#ifdef HAVE_SYS_TYPES_H 27442# include <sys/types.h> 27443#endif 27444#ifdef HAVE_SYS_SOCKET_H 27445# include <sys/socket.h> 27446#endif 27447#ifdef HAVE_NETINET_IN_H 27448# include <netinet/in.h> 27449#endif 27450#ifdef HAVE_IFADDRS_H 27451# include <ifaddrs.h> 27452#endif 27453/* includes end */" 27454 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h 27455do : 27456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27457ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs 27458" 27459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27460 cat >>confdefs.h <<_ACEOF 27461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27462_ACEOF 27463 27464fi 27465 27466done 27467 27468 27469 27470 # 27471 tst_links_freeifaddrs="unknown" 27472 tst_proto_freeifaddrs="unknown" 27473 tst_compi_freeifaddrs="unknown" 27474 tst_allow_freeifaddrs="unknown" 27475 # 27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5 27477$as_echo_n "checking if freeifaddrs can be linked... " >&6; } 27478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27479/* end confdefs.h. */ 27480 27481 27482#define freeifaddrs innocuous_freeifaddrs 27483#ifdef __STDC__ 27484# include <limits.h> 27485#else 27486# include <assert.h> 27487#endif 27488#undef freeifaddrs 27489#ifdef __cplusplus 27490extern "C" 27491#endif 27492char freeifaddrs (); 27493#if defined __stub_freeifaddrs || defined __stub___freeifaddrs 27494choke me 27495#endif 27496 27497int main (void) 27498{ 27499return freeifaddrs (); 27500 ; 27501 return 0; 27502} 27503 27504_ACEOF 27505if ac_fn_c_try_link "$LINENO"; then : 27506 27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27508$as_echo "yes" >&6; } 27509 tst_links_freeifaddrs="yes" 27510 27511else 27512 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27514$as_echo "no" >&6; } 27515 tst_links_freeifaddrs="no" 27516 27517fi 27518rm -f core conftest.err conftest.$ac_objext \ 27519 conftest$ac_exeext conftest.$ac_ext 27520 # 27521 if test "$tst_links_freeifaddrs" = "yes"; then 27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5 27523$as_echo_n "checking if freeifaddrs is prototyped... " >&6; } 27524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27525/* end confdefs.h. */ 27526 27527 $curl_includes_ifaddrs 27528 27529_ACEOF 27530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27531 $EGREP "freeifaddrs" >/dev/null 2>&1; then : 27532 27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27534$as_echo "yes" >&6; } 27535 tst_proto_freeifaddrs="yes" 27536 27537else 27538 27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27540$as_echo "no" >&6; } 27541 tst_proto_freeifaddrs="no" 27542 27543fi 27544rm -f conftest* 27545 27546 fi 27547 # 27548 if test "$tst_proto_freeifaddrs" = "yes"; then 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5 27550$as_echo_n "checking if freeifaddrs is compilable... " >&6; } 27551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27552/* end confdefs.h. */ 27553 27554 27555 $curl_includes_ifaddrs 27556 27557int main (void) 27558{ 27559 27560 freeifaddrs(0); 27561 27562 ; 27563 return 0; 27564} 27565 27566_ACEOF 27567if ac_fn_c_try_compile "$LINENO"; then : 27568 27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27570$as_echo "yes" >&6; } 27571 tst_compi_freeifaddrs="yes" 27572 27573else 27574 27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27576$as_echo "no" >&6; } 27577 tst_compi_freeifaddrs="no" 27578 27579fi 27580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27581 fi 27582 # 27583 if test "$tst_compi_freeifaddrs" = "yes"; then 27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5 27585$as_echo_n "checking if freeifaddrs usage allowed... " >&6; } 27586 if test "x$curl_disallow_freeifaddrs" != "xyes"; then 27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27588$as_echo "yes" >&6; } 27589 tst_allow_freeifaddrs="yes" 27590 else 27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27592$as_echo "no" >&6; } 27593 tst_allow_freeifaddrs="no" 27594 fi 27595 fi 27596 # 27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5 27598$as_echo_n "checking if freeifaddrs might be used... " >&6; } 27599 if test "$tst_links_freeifaddrs" = "yes" && 27600 test "$tst_proto_freeifaddrs" = "yes" && 27601 test "$tst_compi_freeifaddrs" = "yes" && 27602 test "$tst_allow_freeifaddrs" = "yes"; then 27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27604$as_echo "yes" >&6; } 27605 27606cat >>confdefs.h <<_ACEOF 27607#define HAVE_FREEIFADDRS 1 27608_ACEOF 27609 27610 ac_cv_func_freeifaddrs="yes" 27611 else 27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27613$as_echo "no" >&6; } 27614 ac_cv_func_freeifaddrs="no" 27615 fi 27616 27617 27618curl_includes_sys_xattr="\ 27619/* includes start */ 27620#ifdef HAVE_SYS_TYPES_H 27621# include <sys/types.h> 27622#endif 27623#ifdef HAVE_SYS_XATTR_H 27624# include <sys/xattr.h> 27625#endif 27626/* includes end */" 27627 for ac_header in sys/types.h sys/xattr.h 27628do : 27629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27630ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr 27631" 27632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27633 cat >>confdefs.h <<_ACEOF 27634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27635_ACEOF 27636 27637fi 27638 27639done 27640 27641 27642 27643 # 27644 tst_links_fsetxattr="unknown" 27645 tst_proto_fsetxattr="unknown" 27646 tst_compi_fsetxattr="unknown" 27647 tst_allow_fsetxattr="unknown" 27648 tst_nargs_fsetxattr="unknown" 27649 # 27650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5 27651$as_echo_n "checking if fsetxattr can be linked... " >&6; } 27652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27653/* end confdefs.h. */ 27654 27655 27656#define fsetxattr innocuous_fsetxattr 27657#ifdef __STDC__ 27658# include <limits.h> 27659#else 27660# include <assert.h> 27661#endif 27662#undef fsetxattr 27663#ifdef __cplusplus 27664extern "C" 27665#endif 27666char fsetxattr (); 27667#if defined __stub_fsetxattr || defined __stub___fsetxattr 27668choke me 27669#endif 27670 27671int main (void) 27672{ 27673return fsetxattr (); 27674 ; 27675 return 0; 27676} 27677 27678_ACEOF 27679if ac_fn_c_try_link "$LINENO"; then : 27680 27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27682$as_echo "yes" >&6; } 27683 tst_links_fsetxattr="yes" 27684 27685else 27686 27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27688$as_echo "no" >&6; } 27689 tst_links_fsetxattr="no" 27690 27691fi 27692rm -f core conftest.err conftest.$ac_objext \ 27693 conftest$ac_exeext conftest.$ac_ext 27694 # 27695 if test "$tst_links_fsetxattr" = "yes"; then 27696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5 27697$as_echo_n "checking if fsetxattr is prototyped... " >&6; } 27698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27699/* end confdefs.h. */ 27700 27701 $curl_includes_sys_xattr 27702 27703_ACEOF 27704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27705 $EGREP "fsetxattr" >/dev/null 2>&1; then : 27706 27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27708$as_echo "yes" >&6; } 27709 tst_proto_fsetxattr="yes" 27710 27711else 27712 27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27714$as_echo "no" >&6; } 27715 tst_proto_fsetxattr="no" 27716 27717fi 27718rm -f conftest* 27719 27720 fi 27721 # 27722 if test "$tst_proto_fsetxattr" = "yes"; then 27723 if test "$tst_nargs_fsetxattr" = "unknown"; then 27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5 27725$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; } 27726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27727/* end confdefs.h. */ 27728 27729 27730 $curl_includes_sys_xattr 27731 27732int main (void) 27733{ 27734 27735 if(0 != fsetxattr(0, 0, 0, 0, 0)) 27736 return 1; 27737 27738 ; 27739 return 0; 27740} 27741 27742_ACEOF 27743if ac_fn_c_try_compile "$LINENO"; then : 27744 27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27746$as_echo "yes" >&6; } 27747 tst_compi_fsetxattr="yes" 27748 tst_nargs_fsetxattr="5" 27749 27750else 27751 27752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27753$as_echo "no" >&6; } 27754 tst_compi_fsetxattr="no" 27755 27756fi 27757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27758 fi 27759 if test "$tst_nargs_fsetxattr" = "unknown"; then 27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5 27761$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; } 27762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27763/* end confdefs.h. */ 27764 27765 27766 $curl_includes_sys_xattr 27767 27768int main (void) 27769{ 27770 27771 if(0 != fsetxattr(0, 0, 0, 0, 0, 0)) 27772 return 1; 27773 27774 ; 27775 return 0; 27776} 27777 27778_ACEOF 27779if ac_fn_c_try_compile "$LINENO"; then : 27780 27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27782$as_echo "yes" >&6; } 27783 tst_compi_fsetxattr="yes" 27784 tst_nargs_fsetxattr="6" 27785 27786else 27787 27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27789$as_echo "no" >&6; } 27790 tst_compi_fsetxattr="no" 27791 27792fi 27793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27794 fi 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5 27796$as_echo_n "checking if fsetxattr is compilable... " >&6; } 27797 if test "$tst_compi_fsetxattr" = "yes"; then 27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27799$as_echo "yes" >&6; } 27800 else 27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27802$as_echo "no" >&6; } 27803 fi 27804 fi 27805 # 27806 if test "$tst_compi_fsetxattr" = "yes"; then 27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5 27808$as_echo_n "checking if fsetxattr usage allowed... " >&6; } 27809 if test "x$curl_disallow_fsetxattr" != "xyes"; then 27810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27811$as_echo "yes" >&6; } 27812 tst_allow_fsetxattr="yes" 27813 else 27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27815$as_echo "no" >&6; } 27816 tst_allow_fsetxattr="no" 27817 fi 27818 fi 27819 # 27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5 27821$as_echo_n "checking if fsetxattr might be used... " >&6; } 27822 if test "$tst_links_fsetxattr" = "yes" && 27823 test "$tst_proto_fsetxattr" = "yes" && 27824 test "$tst_compi_fsetxattr" = "yes" && 27825 test "$tst_allow_fsetxattr" = "yes"; then 27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27827$as_echo "yes" >&6; } 27828 27829cat >>confdefs.h <<_ACEOF 27830#define HAVE_FSETXATTR 1 27831_ACEOF 27832 27833 # 27834 if test "$tst_nargs_fsetxattr" -eq "5"; then 27835 27836$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h 27837 27838 elif test "$tst_nargs_fsetxattr" -eq "6"; then 27839 27840$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h 27841 27842 fi 27843 # 27844 ac_cv_func_fsetxattr="yes" 27845 else 27846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27847$as_echo "no" >&6; } 27848 ac_cv_func_fsetxattr="no" 27849 fi 27850 27851 27852 # 27853 tst_links_ftruncate="unknown" 27854 tst_proto_ftruncate="unknown" 27855 tst_compi_ftruncate="unknown" 27856 tst_allow_ftruncate="unknown" 27857 # 27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5 27859$as_echo_n "checking if ftruncate can be linked... " >&6; } 27860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27861/* end confdefs.h. */ 27862 27863 27864#define ftruncate innocuous_ftruncate 27865#ifdef __STDC__ 27866# include <limits.h> 27867#else 27868# include <assert.h> 27869#endif 27870#undef ftruncate 27871#ifdef __cplusplus 27872extern "C" 27873#endif 27874char ftruncate (); 27875#if defined __stub_ftruncate || defined __stub___ftruncate 27876choke me 27877#endif 27878 27879int main (void) 27880{ 27881return ftruncate (); 27882 ; 27883 return 0; 27884} 27885 27886_ACEOF 27887if ac_fn_c_try_link "$LINENO"; then : 27888 27889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27890$as_echo "yes" >&6; } 27891 tst_links_ftruncate="yes" 27892 27893else 27894 27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27896$as_echo "no" >&6; } 27897 tst_links_ftruncate="no" 27898 27899fi 27900rm -f core conftest.err conftest.$ac_objext \ 27901 conftest$ac_exeext conftest.$ac_ext 27902 # 27903 if test "$tst_links_ftruncate" = "yes"; then 27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5 27905$as_echo_n "checking if ftruncate is prototyped... " >&6; } 27906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27907/* end confdefs.h. */ 27908 27909 $curl_includes_unistd 27910 27911_ACEOF 27912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27913 $EGREP "ftruncate" >/dev/null 2>&1; then : 27914 27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27916$as_echo "yes" >&6; } 27917 tst_proto_ftruncate="yes" 27918 27919else 27920 27921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27922$as_echo "no" >&6; } 27923 tst_proto_ftruncate="no" 27924 27925fi 27926rm -f conftest* 27927 27928 fi 27929 # 27930 if test "$tst_proto_ftruncate" = "yes"; then 27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5 27932$as_echo_n "checking if ftruncate is compilable... " >&6; } 27933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27934/* end confdefs.h. */ 27935 27936 27937 $curl_includes_unistd 27938 27939int main (void) 27940{ 27941 27942 if(0 != ftruncate(0, 0)) 27943 return 1; 27944 27945 ; 27946 return 0; 27947} 27948 27949_ACEOF 27950if ac_fn_c_try_compile "$LINENO"; then : 27951 27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27953$as_echo "yes" >&6; } 27954 tst_compi_ftruncate="yes" 27955 27956else 27957 27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27959$as_echo "no" >&6; } 27960 tst_compi_ftruncate="no" 27961 27962fi 27963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27964 fi 27965 # 27966 if test "$tst_compi_ftruncate" = "yes"; then 27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5 27968$as_echo_n "checking if ftruncate usage allowed... " >&6; } 27969 if test "x$curl_disallow_ftruncate" != "xyes"; then 27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27971$as_echo "yes" >&6; } 27972 tst_allow_ftruncate="yes" 27973 else 27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27975$as_echo "no" >&6; } 27976 tst_allow_ftruncate="no" 27977 fi 27978 fi 27979 # 27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5 27981$as_echo_n "checking if ftruncate might be used... " >&6; } 27982 if test "$tst_links_ftruncate" = "yes" && 27983 test "$tst_proto_ftruncate" = "yes" && 27984 test "$tst_compi_ftruncate" = "yes" && 27985 test "$tst_allow_ftruncate" = "yes"; then 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27987$as_echo "yes" >&6; } 27988 27989cat >>confdefs.h <<_ACEOF 27990#define HAVE_FTRUNCATE 1 27991_ACEOF 27992 27993 ac_cv_func_ftruncate="yes" 27994 else 27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27996$as_echo "no" >&6; } 27997 ac_cv_func_ftruncate="no" 27998 fi 27999 28000 28001curl_includes_stdlib="\ 28002/* includes start */ 28003#ifdef HAVE_SYS_TYPES_H 28004# include <sys/types.h> 28005#endif 28006#ifdef HAVE_STDLIB_H 28007# include <stdlib.h> 28008#endif 28009/* includes end */" 28010 for ac_header in sys/types.h stdlib.h 28011do : 28012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28013ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib 28014" 28015if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28016 cat >>confdefs.h <<_ACEOF 28017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28018_ACEOF 28019 28020fi 28021 28022done 28023 28024 28025 28026 # 28027 tst_links_getaddrinfo="unknown" 28028 tst_proto_getaddrinfo="unknown" 28029 tst_compi_getaddrinfo="unknown" 28030 tst_works_getaddrinfo="unknown" 28031 tst_allow_getaddrinfo="unknown" 28032 tst_tsafe_getaddrinfo="unknown" 28033 # 28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 28035$as_echo_n "checking if getaddrinfo can be linked... " >&6; } 28036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28037/* end confdefs.h. */ 28038 28039 28040 $curl_includes_ws2tcpip 28041 $curl_includes_sys_socket 28042 $curl_includes_netdb 28043 28044int main (void) 28045{ 28046 28047 if(0 != getaddrinfo(0, 0, 0, 0)) 28048 return 1; 28049 28050 ; 28051 return 0; 28052} 28053 28054_ACEOF 28055if ac_fn_c_try_link "$LINENO"; then : 28056 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28058$as_echo "yes" >&6; } 28059 tst_links_getaddrinfo="yes" 28060 28061else 28062 28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28064$as_echo "no" >&6; } 28065 tst_links_getaddrinfo="no" 28066 28067fi 28068rm -f core conftest.err conftest.$ac_objext \ 28069 conftest$ac_exeext conftest.$ac_ext 28070 # 28071 if test "$tst_links_getaddrinfo" = "yes"; then 28072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 28073$as_echo_n "checking if getaddrinfo is prototyped... " >&6; } 28074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28075/* end confdefs.h. */ 28076 28077 $curl_includes_ws2tcpip 28078 $curl_includes_sys_socket 28079 $curl_includes_netdb 28080 28081_ACEOF 28082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28083 $EGREP "getaddrinfo" >/dev/null 2>&1; then : 28084 28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28086$as_echo "yes" >&6; } 28087 tst_proto_getaddrinfo="yes" 28088 28089else 28090 28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28092$as_echo "no" >&6; } 28093 tst_proto_getaddrinfo="no" 28094 28095fi 28096rm -f conftest* 28097 28098 fi 28099 # 28100 if test "$tst_proto_getaddrinfo" = "yes"; then 28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 28102$as_echo_n "checking if getaddrinfo is compilable... " >&6; } 28103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28104/* end confdefs.h. */ 28105 28106 28107 $curl_includes_ws2tcpip 28108 $curl_includes_sys_socket 28109 $curl_includes_netdb 28110 28111int main (void) 28112{ 28113 28114 if(0 != getaddrinfo(0, 0, 0, 0)) 28115 return 1; 28116 28117 ; 28118 return 0; 28119} 28120 28121_ACEOF 28122if ac_fn_c_try_compile "$LINENO"; then : 28123 28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28125$as_echo "yes" >&6; } 28126 tst_compi_getaddrinfo="yes" 28127 28128else 28129 28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28131$as_echo "no" >&6; } 28132 tst_compi_getaddrinfo="no" 28133 28134fi 28135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28136 fi 28137 # 28138 if test "x$cross_compiling" != "xyes" && 28139 test "$tst_compi_getaddrinfo" = "yes"; then 28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 28141$as_echo_n "checking if getaddrinfo seems to work... " >&6; } 28142 if test "$cross_compiling" = yes; then : 28143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28145as_fn_error $? "cannot run test program while cross compiling 28146See \`config.log' for more details" "$LINENO" 5; } 28147else 28148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28149/* end confdefs.h. */ 28150 28151 28152 $curl_includes_ws2tcpip 28153 $curl_includes_stdlib 28154 $curl_includes_string 28155 $curl_includes_sys_socket 28156 $curl_includes_netdb 28157 28158int main (void) 28159{ 28160 28161 struct addrinfo hints; 28162 struct addrinfo *ai = 0; 28163 int error; 28164 28165 memset(&hints, 0, sizeof(hints)); 28166 hints.ai_flags = AI_NUMERICHOST; 28167 hints.ai_family = AF_UNSPEC; 28168 hints.ai_socktype = SOCK_STREAM; 28169 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 28170 if(error || !ai) 28171 exit(1); /* fail */ 28172 else 28173 exit(0); 28174 28175 ; 28176 return 0; 28177} 28178 28179_ACEOF 28180if ac_fn_c_try_run "$LINENO"; then : 28181 28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28183$as_echo "yes" >&6; } 28184 tst_works_getaddrinfo="yes" 28185 28186else 28187 28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28189$as_echo "no" >&6; } 28190 tst_works_getaddrinfo="no" 28191 28192fi 28193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28194 conftest.$ac_objext conftest.beam conftest.$ac_ext 28195fi 28196 28197 fi 28198 # 28199 if test "$tst_compi_getaddrinfo" = "yes" && 28200 test "$tst_works_getaddrinfo" != "no"; then 28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 28202$as_echo_n "checking if getaddrinfo usage allowed... " >&6; } 28203 if test "x$curl_disallow_getaddrinfo" != "xyes"; then 28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28205$as_echo "yes" >&6; } 28206 tst_allow_getaddrinfo="yes" 28207 else 28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28209$as_echo "no" >&6; } 28210 tst_allow_getaddrinfo="no" 28211 fi 28212 fi 28213 # 28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 28215$as_echo_n "checking if getaddrinfo might be used... " >&6; } 28216 if test "$tst_links_getaddrinfo" = "yes" && 28217 test "$tst_proto_getaddrinfo" = "yes" && 28218 test "$tst_compi_getaddrinfo" = "yes" && 28219 test "$tst_allow_getaddrinfo" = "yes" && 28220 test "$tst_works_getaddrinfo" != "no"; then 28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28222$as_echo "yes" >&6; } 28223 28224cat >>confdefs.h <<_ACEOF 28225#define HAVE_GETADDRINFO 1 28226_ACEOF 28227 28228 ac_cv_func_getaddrinfo="yes" 28229 else 28230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28231$as_echo "no" >&6; } 28232 ac_cv_func_getaddrinfo="no" 28233 ac_cv_func_getaddrinfo_threadsafe="no" 28234 fi 28235 # 28236 if test "$ac_cv_func_getaddrinfo" = "yes"; then 28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 28238$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; } 28239 case $host_os in 28240 aix[1234].* | aix5.[01].*) 28241 tst_tsafe_getaddrinfo="no" 28242 ;; 28243 aix*) 28244 tst_tsafe_getaddrinfo="yes" 28245 ;; 28246 darwin[12345].*) 28247 tst_tsafe_getaddrinfo="no" 28248 ;; 28249 darwin*) 28250 tst_tsafe_getaddrinfo="yes" 28251 ;; 28252 freebsd[1234].* | freebsd5.[1234]*) 28253 tst_tsafe_getaddrinfo="no" 28254 ;; 28255 freebsd*) 28256 tst_tsafe_getaddrinfo="yes" 28257 ;; 28258 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) 28259 tst_tsafe_getaddrinfo="no" 28260 ;; 28261 hpux*) 28262 tst_tsafe_getaddrinfo="yes" 28263 ;; 28264 netbsd[123].*) 28265 tst_tsafe_getaddrinfo="no" 28266 ;; 28267 netbsd*) 28268 tst_tsafe_getaddrinfo="yes" 28269 ;; 28270 *bsd*) 28271 tst_tsafe_getaddrinfo="no" 28272 ;; 28273 solaris2*) 28274 tst_tsafe_getaddrinfo="yes" 28275 ;; 28276 esac 28277 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 28278 28279 28280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28281/* end confdefs.h. */ 28282 28283 28284 $curl_includes_ws2tcpip 28285 $curl_includes_sys_socket 28286 $curl_includes_netdb 28287 28288int main (void) 28289{ 28290#ifdef h_errno 28291 return 0; 28292#else 28293 force compilation error 28294#endif 28295} 28296 28297 28298_ACEOF 28299if ac_fn_c_try_compile "$LINENO"; then : 28300 28301 tst_symbol_defined="yes" 28302 28303else 28304 28305 tst_symbol_defined="no" 28306 28307fi 28308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28309 if test "$tst_symbol_defined" = "yes"; then 28310 curl_cv_have_def_h_errno=yes 28311 28312 else 28313 curl_cv_have_def_h_errno=no 28314 28315 fi 28316 28317 if test "$curl_cv_have_def_h_errno" = "no"; then 28318 tst_tsafe_getaddrinfo="no" 28319 fi 28320 fi 28321 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 28322 tst_tsafe_getaddrinfo="yes" 28323 fi 28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 28325$as_echo "$tst_tsafe_getaddrinfo" >&6; } 28326 if test "$tst_tsafe_getaddrinfo" = "yes"; then 28327 28328cat >>confdefs.h <<_ACEOF 28329#define HAVE_GETADDRINFO_THREADSAFE 1 28330_ACEOF 28331 28332 ac_cv_func_getaddrinfo_threadsafe="yes" 28333 else 28334 ac_cv_func_getaddrinfo_threadsafe="no" 28335 fi 28336 fi 28337 28338 28339 # 28340 tst_links_gai_strerror="unknown" 28341 tst_proto_gai_strerror="unknown" 28342 tst_compi_gai_strerror="unknown" 28343 tst_allow_gai_strerror="unknown" 28344 # 28345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5 28346$as_echo_n "checking if gai_strerror can be linked... " >&6; } 28347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28348/* end confdefs.h. */ 28349 28350 28351 $curl_includes_winsock2 28352 $curl_includes_netdb 28353 28354int main (void) 28355{ 28356 28357 if(0 != gai_strerror(0)) 28358 return 1; 28359 28360 ; 28361 return 0; 28362} 28363 28364_ACEOF 28365if ac_fn_c_try_link "$LINENO"; then : 28366 28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28368$as_echo "yes" >&6; } 28369 tst_links_gai_strerror="yes" 28370 28371else 28372 28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28374$as_echo "no" >&6; } 28375 tst_links_gai_strerror="no" 28376 28377fi 28378rm -f core conftest.err conftest.$ac_objext \ 28379 conftest$ac_exeext conftest.$ac_ext 28380 # 28381 if test "$tst_links_gai_strerror" = "yes"; then 28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5 28383$as_echo_n "checking if gai_strerror is prototyped... " >&6; } 28384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28385/* end confdefs.h. */ 28386 28387 $curl_includes_winsock2 28388 $curl_includes_netdb 28389 28390_ACEOF 28391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28392 $EGREP "gai_strerror" >/dev/null 2>&1; then : 28393 28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28395$as_echo "yes" >&6; } 28396 tst_proto_gai_strerror="yes" 28397 28398else 28399 28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28401$as_echo "no" >&6; } 28402 tst_proto_gai_strerror="no" 28403 28404fi 28405rm -f conftest* 28406 28407 fi 28408 # 28409 if test "$tst_proto_gai_strerror" = "yes"; then 28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5 28411$as_echo_n "checking if gai_strerror is compilable... " >&6; } 28412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28413/* end confdefs.h. */ 28414 28415 28416 $curl_includes_winsock2 28417 $curl_includes_netdb 28418 28419int main (void) 28420{ 28421 28422 if(0 != gai_strerror(0)) 28423 return 1; 28424 28425 ; 28426 return 0; 28427} 28428 28429_ACEOF 28430if ac_fn_c_try_compile "$LINENO"; then : 28431 28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28433$as_echo "yes" >&6; } 28434 tst_compi_gai_strerror="yes" 28435 28436else 28437 28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28439$as_echo "no" >&6; } 28440 tst_compi_gai_strerror="no" 28441 28442fi 28443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28444 fi 28445 # 28446 if test "$tst_compi_gai_strerror" = "yes"; then 28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5 28448$as_echo_n "checking if gai_strerror usage allowed... " >&6; } 28449 if test "x$curl_disallow_gai_strerror" != "xyes"; then 28450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28451$as_echo "yes" >&6; } 28452 tst_allow_gai_strerror="yes" 28453 else 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28455$as_echo "no" >&6; } 28456 tst_allow_gai_strerror="no" 28457 fi 28458 fi 28459 # 28460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5 28461$as_echo_n "checking if gai_strerror might be used... " >&6; } 28462 if test "$tst_links_gai_strerror" = "yes" && 28463 test "$tst_proto_gai_strerror" = "yes" && 28464 test "$tst_compi_gai_strerror" = "yes" && 28465 test "$tst_allow_gai_strerror" = "yes"; then 28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28467$as_echo "yes" >&6; } 28468 28469cat >>confdefs.h <<_ACEOF 28470#define HAVE_GAI_STRERROR 1 28471_ACEOF 28472 28473 ac_cv_func_gai_strerror="yes" 28474 else 28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28476$as_echo "no" >&6; } 28477 ac_cv_func_gai_strerror="no" 28478 fi 28479 28480 28481 # 28482 tst_links_gethostbyaddr="unknown" 28483 tst_proto_gethostbyaddr="unknown" 28484 tst_compi_gethostbyaddr="unknown" 28485 tst_allow_gethostbyaddr="unknown" 28486 # 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5 28488$as_echo_n "checking if gethostbyaddr can be linked... " >&6; } 28489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28490/* end confdefs.h. */ 28491 28492 28493 $curl_includes_winsock2 28494 $curl_includes_netdb 28495 28496int main (void) 28497{ 28498 28499 if(0 != gethostbyaddr(0, 0, 0)) 28500 return 1; 28501 28502 ; 28503 return 0; 28504} 28505 28506_ACEOF 28507if ac_fn_c_try_link "$LINENO"; then : 28508 28509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28510$as_echo "yes" >&6; } 28511 tst_links_gethostbyaddr="yes" 28512 28513else 28514 28515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28516$as_echo "no" >&6; } 28517 tst_links_gethostbyaddr="no" 28518 28519fi 28520rm -f core conftest.err conftest.$ac_objext \ 28521 conftest$ac_exeext conftest.$ac_ext 28522 # 28523 if test "$tst_links_gethostbyaddr" = "yes"; then 28524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5 28525$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; } 28526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28527/* end confdefs.h. */ 28528 28529 $curl_includes_winsock2 28530 $curl_includes_netdb 28531 28532_ACEOF 28533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28534 $EGREP "gethostbyaddr" >/dev/null 2>&1; then : 28535 28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28537$as_echo "yes" >&6; } 28538 tst_proto_gethostbyaddr="yes" 28539 28540else 28541 28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28543$as_echo "no" >&6; } 28544 tst_proto_gethostbyaddr="no" 28545 28546fi 28547rm -f conftest* 28548 28549 fi 28550 # 28551 if test "$tst_proto_gethostbyaddr" = "yes"; then 28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5 28553$as_echo_n "checking if gethostbyaddr is compilable... " >&6; } 28554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28555/* end confdefs.h. */ 28556 28557 28558 $curl_includes_winsock2 28559 $curl_includes_netdb 28560 28561int main (void) 28562{ 28563 28564 if(0 != gethostbyaddr(0, 0, 0)) 28565 return 1; 28566 28567 ; 28568 return 0; 28569} 28570 28571_ACEOF 28572if ac_fn_c_try_compile "$LINENO"; then : 28573 28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28575$as_echo "yes" >&6; } 28576 tst_compi_gethostbyaddr="yes" 28577 28578else 28579 28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28581$as_echo "no" >&6; } 28582 tst_compi_gethostbyaddr="no" 28583 28584fi 28585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28586 fi 28587 # 28588 if test "$tst_compi_gethostbyaddr" = "yes"; then 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5 28590$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; } 28591 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then 28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28593$as_echo "yes" >&6; } 28594 tst_allow_gethostbyaddr="yes" 28595 else 28596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28597$as_echo "no" >&6; } 28598 tst_allow_gethostbyaddr="no" 28599 fi 28600 fi 28601 # 28602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5 28603$as_echo_n "checking if gethostbyaddr might be used... " >&6; } 28604 if test "$tst_links_gethostbyaddr" = "yes" && 28605 test "$tst_proto_gethostbyaddr" = "yes" && 28606 test "$tst_compi_gethostbyaddr" = "yes" && 28607 test "$tst_allow_gethostbyaddr" = "yes"; then 28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28609$as_echo "yes" >&6; } 28610 28611cat >>confdefs.h <<_ACEOF 28612#define HAVE_GETHOSTBYADDR 1 28613_ACEOF 28614 28615 ac_cv_func_gethostbyaddr="yes" 28616 else 28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28618$as_echo "no" >&6; } 28619 ac_cv_func_gethostbyaddr="no" 28620 fi 28621 28622 28623 # 28624 tst_links_gethostbyaddr_r="unknown" 28625 tst_proto_gethostbyaddr_r="unknown" 28626 tst_compi_gethostbyaddr_r="unknown" 28627 tst_allow_gethostbyaddr_r="unknown" 28628 tst_nargs_gethostbyaddr_r="unknown" 28629 # 28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5 28631$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; } 28632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28633/* end confdefs.h. */ 28634 28635 28636#define gethostbyaddr_r innocuous_gethostbyaddr_r 28637#ifdef __STDC__ 28638# include <limits.h> 28639#else 28640# include <assert.h> 28641#endif 28642#undef gethostbyaddr_r 28643#ifdef __cplusplus 28644extern "C" 28645#endif 28646char gethostbyaddr_r (); 28647#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 28648choke me 28649#endif 28650 28651int main (void) 28652{ 28653return gethostbyaddr_r (); 28654 ; 28655 return 0; 28656} 28657 28658_ACEOF 28659if ac_fn_c_try_link "$LINENO"; then : 28660 28661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28662$as_echo "yes" >&6; } 28663 tst_links_gethostbyaddr_r="yes" 28664 28665else 28666 28667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28668$as_echo "no" >&6; } 28669 tst_links_gethostbyaddr_r="no" 28670 28671fi 28672rm -f core conftest.err conftest.$ac_objext \ 28673 conftest$ac_exeext conftest.$ac_ext 28674 # 28675 if test "$tst_links_gethostbyaddr_r" = "yes"; then 28676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5 28677$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; } 28678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28679/* end confdefs.h. */ 28680 28681 $curl_includes_netdb 28682 28683_ACEOF 28684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28685 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 28686 28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28688$as_echo "yes" >&6; } 28689 tst_proto_gethostbyaddr_r="yes" 28690 28691else 28692 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28694$as_echo "no" >&6; } 28695 tst_proto_gethostbyaddr_r="no" 28696 28697fi 28698rm -f conftest* 28699 28700 fi 28701 # 28702 if test "$tst_proto_gethostbyaddr_r" = "yes"; then 28703 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5 28705$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; } 28706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28707/* end confdefs.h. */ 28708 28709 28710 $curl_includes_netdb 28711 28712int main (void) 28713{ 28714 28715 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0)) 28716 return 1; 28717 28718 ; 28719 return 0; 28720} 28721 28722_ACEOF 28723if ac_fn_c_try_compile "$LINENO"; then : 28724 28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28726$as_echo "yes" >&6; } 28727 tst_compi_gethostbyaddr_r="yes" 28728 tst_nargs_gethostbyaddr_r="5" 28729 28730else 28731 28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28733$as_echo "no" >&6; } 28734 tst_compi_gethostbyaddr_r="no" 28735 28736fi 28737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28738 fi 28739 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 28740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5 28741$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; } 28742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28743/* end confdefs.h. */ 28744 28745 28746 $curl_includes_netdb 28747 28748int main (void) 28749{ 28750 28751 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0)) 28752 return 1; 28753 28754 ; 28755 return 0; 28756} 28757 28758_ACEOF 28759if ac_fn_c_try_compile "$LINENO"; then : 28760 28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28762$as_echo "yes" >&6; } 28763 tst_compi_gethostbyaddr_r="yes" 28764 tst_nargs_gethostbyaddr_r="7" 28765 28766else 28767 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28769$as_echo "no" >&6; } 28770 tst_compi_gethostbyaddr_r="no" 28771 28772fi 28773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28774 fi 28775 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5 28777$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; } 28778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28779/* end confdefs.h. */ 28780 28781 28782 $curl_includes_netdb 28783 28784int main (void) 28785{ 28786 28787 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0)) 28788 return 1; 28789 28790 ; 28791 return 0; 28792} 28793 28794_ACEOF 28795if ac_fn_c_try_compile "$LINENO"; then : 28796 28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28798$as_echo "yes" >&6; } 28799 tst_compi_gethostbyaddr_r="yes" 28800 tst_nargs_gethostbyaddr_r="8" 28801 28802else 28803 28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28805$as_echo "no" >&6; } 28806 tst_compi_gethostbyaddr_r="no" 28807 28808fi 28809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28810 fi 28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5 28812$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; } 28813 if test "$tst_compi_gethostbyaddr_r" = "yes"; then 28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28815$as_echo "yes" >&6; } 28816 else 28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28818$as_echo "no" >&6; } 28819 fi 28820 fi 28821 # 28822 if test "$tst_compi_gethostbyaddr_r" = "yes"; then 28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5 28824$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; } 28825 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then 28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28827$as_echo "yes" >&6; } 28828 tst_allow_gethostbyaddr_r="yes" 28829 else 28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28831$as_echo "no" >&6; } 28832 tst_allow_gethostbyaddr_r="no" 28833 fi 28834 fi 28835 # 28836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5 28837$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; } 28838 if test "$tst_links_gethostbyaddr_r" = "yes" && 28839 test "$tst_proto_gethostbyaddr_r" = "yes" && 28840 test "$tst_compi_gethostbyaddr_r" = "yes" && 28841 test "$tst_allow_gethostbyaddr_r" = "yes"; then 28842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28843$as_echo "yes" >&6; } 28844 28845cat >>confdefs.h <<_ACEOF 28846#define HAVE_GETHOSTBYADDR_R 1 28847_ACEOF 28848 28849 # 28850 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then 28851 28852$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h 28853 28854 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then 28855 28856$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h 28857 28858 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then 28859 28860$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h 28861 28862 fi 28863 # 28864 ac_cv_func_gethostbyaddr_r="yes" 28865 else 28866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28867$as_echo "no" >&6; } 28868 ac_cv_func_gethostbyaddr_r="no" 28869 fi 28870 28871 28872 # 28873 tst_links_gethostbyname="unknown" 28874 tst_proto_gethostbyname="unknown" 28875 tst_compi_gethostbyname="unknown" 28876 tst_allow_gethostbyname="unknown" 28877 # 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5 28879$as_echo_n "checking if gethostbyname can be linked... " >&6; } 28880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28881/* end confdefs.h. */ 28882 28883 28884 $curl_includes_winsock2 28885 $curl_includes_netdb 28886 28887int main (void) 28888{ 28889 28890 if(0 != gethostbyname(0)) 28891 return 1; 28892 28893 ; 28894 return 0; 28895} 28896 28897_ACEOF 28898if ac_fn_c_try_link "$LINENO"; then : 28899 28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28901$as_echo "yes" >&6; } 28902 tst_links_gethostbyname="yes" 28903 28904else 28905 28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28907$as_echo "no" >&6; } 28908 tst_links_gethostbyname="no" 28909 28910fi 28911rm -f core conftest.err conftest.$ac_objext \ 28912 conftest$ac_exeext conftest.$ac_ext 28913 # 28914 if test "$tst_links_gethostbyname" = "yes"; then 28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5 28916$as_echo_n "checking if gethostbyname is prototyped... " >&6; } 28917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28918/* end confdefs.h. */ 28919 28920 $curl_includes_winsock2 28921 $curl_includes_netdb 28922 28923_ACEOF 28924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28925 $EGREP "gethostbyname" >/dev/null 2>&1; then : 28926 28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28928$as_echo "yes" >&6; } 28929 tst_proto_gethostbyname="yes" 28930 28931else 28932 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28934$as_echo "no" >&6; } 28935 tst_proto_gethostbyname="no" 28936 28937fi 28938rm -f conftest* 28939 28940 fi 28941 # 28942 if test "$tst_proto_gethostbyname" = "yes"; then 28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5 28944$as_echo_n "checking if gethostbyname is compilable... " >&6; } 28945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28946/* end confdefs.h. */ 28947 28948 28949 $curl_includes_winsock2 28950 $curl_includes_netdb 28951 28952int main (void) 28953{ 28954 28955 if(0 != gethostbyname(0)) 28956 return 1; 28957 28958 ; 28959 return 0; 28960} 28961 28962_ACEOF 28963if ac_fn_c_try_compile "$LINENO"; then : 28964 28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28966$as_echo "yes" >&6; } 28967 tst_compi_gethostbyname="yes" 28968 28969else 28970 28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28972$as_echo "no" >&6; } 28973 tst_compi_gethostbyname="no" 28974 28975fi 28976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28977 fi 28978 # 28979 if test "$tst_compi_gethostbyname" = "yes"; then 28980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5 28981$as_echo_n "checking if gethostbyname usage allowed... " >&6; } 28982 if test "x$curl_disallow_gethostbyname" != "xyes"; then 28983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28984$as_echo "yes" >&6; } 28985 tst_allow_gethostbyname="yes" 28986 else 28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28988$as_echo "no" >&6; } 28989 tst_allow_gethostbyname="no" 28990 fi 28991 fi 28992 # 28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5 28994$as_echo_n "checking if gethostbyname might be used... " >&6; } 28995 if test "$tst_links_gethostbyname" = "yes" && 28996 test "$tst_proto_gethostbyname" = "yes" && 28997 test "$tst_compi_gethostbyname" = "yes" && 28998 test "$tst_allow_gethostbyname" = "yes"; then 28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29000$as_echo "yes" >&6; } 29001 29002cat >>confdefs.h <<_ACEOF 29003#define HAVE_GETHOSTBYNAME 1 29004_ACEOF 29005 29006 ac_cv_func_gethostbyname="yes" 29007 else 29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29009$as_echo "no" >&6; } 29010 ac_cv_func_gethostbyname="no" 29011 fi 29012 29013 29014 # 29015 tst_links_gethostbyname_r="unknown" 29016 tst_proto_gethostbyname_r="unknown" 29017 tst_compi_gethostbyname_r="unknown" 29018 tst_allow_gethostbyname_r="unknown" 29019 tst_nargs_gethostbyname_r="unknown" 29020 # 29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5 29022$as_echo_n "checking if gethostbyname_r can be linked... " >&6; } 29023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29024/* end confdefs.h. */ 29025 29026 29027#define gethostbyname_r innocuous_gethostbyname_r 29028#ifdef __STDC__ 29029# include <limits.h> 29030#else 29031# include <assert.h> 29032#endif 29033#undef gethostbyname_r 29034#ifdef __cplusplus 29035extern "C" 29036#endif 29037char gethostbyname_r (); 29038#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 29039choke me 29040#endif 29041 29042int main (void) 29043{ 29044return gethostbyname_r (); 29045 ; 29046 return 0; 29047} 29048 29049_ACEOF 29050if ac_fn_c_try_link "$LINENO"; then : 29051 29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29053$as_echo "yes" >&6; } 29054 tst_links_gethostbyname_r="yes" 29055 29056else 29057 29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29059$as_echo "no" >&6; } 29060 tst_links_gethostbyname_r="no" 29061 29062fi 29063rm -f core conftest.err conftest.$ac_objext \ 29064 conftest$ac_exeext conftest.$ac_ext 29065 # 29066 if test "$tst_links_gethostbyname_r" = "yes"; then 29067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5 29068$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; } 29069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29070/* end confdefs.h. */ 29071 29072 $curl_includes_netdb 29073 29074_ACEOF 29075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29076 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 29077 29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29079$as_echo "yes" >&6; } 29080 tst_proto_gethostbyname_r="yes" 29081 29082else 29083 29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29085$as_echo "no" >&6; } 29086 tst_proto_gethostbyname_r="no" 29087 29088fi 29089rm -f conftest* 29090 29091 fi 29092 # 29093 if test "$tst_proto_gethostbyname_r" = "yes"; then 29094 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5 29096$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; } 29097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29098/* end confdefs.h. */ 29099 29100 29101 $curl_includes_netdb 29102 29103int main (void) 29104{ 29105 29106 if(0 != gethostbyname_r(0, 0, 0)) 29107 return 1; 29108 29109 ; 29110 return 0; 29111} 29112 29113_ACEOF 29114if ac_fn_c_try_compile "$LINENO"; then : 29115 29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29117$as_echo "yes" >&6; } 29118 tst_compi_gethostbyname_r="yes" 29119 tst_nargs_gethostbyname_r="3" 29120 29121else 29122 29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29124$as_echo "no" >&6; } 29125 tst_compi_gethostbyname_r="no" 29126 29127fi 29128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29129 fi 29130 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5 29132$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; } 29133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29134/* end confdefs.h. */ 29135 29136 29137 $curl_includes_netdb 29138 29139int main (void) 29140{ 29141 29142 if(0 != gethostbyname_r(0, 0, 0, 0, 0)) 29143 return 1; 29144 29145 ; 29146 return 0; 29147} 29148 29149_ACEOF 29150if ac_fn_c_try_compile "$LINENO"; then : 29151 29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29153$as_echo "yes" >&6; } 29154 tst_compi_gethostbyname_r="yes" 29155 tst_nargs_gethostbyname_r="5" 29156 29157else 29158 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29160$as_echo "no" >&6; } 29161 tst_compi_gethostbyname_r="no" 29162 29163fi 29164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29165 fi 29166 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5 29168$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; } 29169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29170/* end confdefs.h. */ 29171 29172 29173 $curl_includes_netdb 29174 29175int main (void) 29176{ 29177 29178 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0)) 29179 return 1; 29180 29181 ; 29182 return 0; 29183} 29184 29185_ACEOF 29186if ac_fn_c_try_compile "$LINENO"; then : 29187 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29189$as_echo "yes" >&6; } 29190 tst_compi_gethostbyname_r="yes" 29191 tst_nargs_gethostbyname_r="6" 29192 29193else 29194 29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29196$as_echo "no" >&6; } 29197 tst_compi_gethostbyname_r="no" 29198 29199fi 29200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29201 fi 29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5 29203$as_echo_n "checking if gethostbyname_r is compilable... " >&6; } 29204 if test "$tst_compi_gethostbyname_r" = "yes"; then 29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29206$as_echo "yes" >&6; } 29207 else 29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29209$as_echo "no" >&6; } 29210 fi 29211 fi 29212 # 29213 if test "$tst_compi_gethostbyname_r" = "yes"; then 29214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5 29215$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; } 29216 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then 29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29218$as_echo "yes" >&6; } 29219 tst_allow_gethostbyname_r="yes" 29220 else 29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29222$as_echo "no" >&6; } 29223 tst_allow_gethostbyname_r="no" 29224 fi 29225 fi 29226 # 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5 29228$as_echo_n "checking if gethostbyname_r might be used... " >&6; } 29229 if test "$tst_links_gethostbyname_r" = "yes" && 29230 test "$tst_proto_gethostbyname_r" = "yes" && 29231 test "$tst_compi_gethostbyname_r" = "yes" && 29232 test "$tst_allow_gethostbyname_r" = "yes"; then 29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29234$as_echo "yes" >&6; } 29235 29236cat >>confdefs.h <<_ACEOF 29237#define HAVE_GETHOSTBYNAME_R 1 29238_ACEOF 29239 29240 # 29241 if test "$tst_nargs_gethostbyname_r" -eq "3"; then 29242 29243$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h 29244 29245 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then 29246 29247$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h 29248 29249 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then 29250 29251$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h 29252 29253 fi 29254 # 29255 ac_cv_func_gethostbyname_r="yes" 29256 else 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29258$as_echo "no" >&6; } 29259 ac_cv_func_gethostbyname_r="no" 29260 fi 29261 29262 29263 # 29264 tst_links_gethostname="unknown" 29265 tst_proto_gethostname="unknown" 29266 tst_compi_gethostname="unknown" 29267 tst_allow_gethostname="unknown" 29268 # 29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 29270$as_echo_n "checking if gethostname can be linked... " >&6; } 29271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29272/* end confdefs.h. */ 29273 29274 29275 $curl_includes_winsock2 29276 $curl_includes_unistd 29277 29278int main (void) 29279{ 29280 29281 if(0 != gethostname(0, 0)) 29282 return 1; 29283 29284 ; 29285 return 0; 29286} 29287 29288_ACEOF 29289if ac_fn_c_try_link "$LINENO"; then : 29290 29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29292$as_echo "yes" >&6; } 29293 tst_links_gethostname="yes" 29294 29295else 29296 29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29298$as_echo "no" >&6; } 29299 tst_links_gethostname="no" 29300 29301fi 29302rm -f core conftest.err conftest.$ac_objext \ 29303 conftest$ac_exeext conftest.$ac_ext 29304 # 29305 if test "$tst_links_gethostname" = "yes"; then 29306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 29307$as_echo_n "checking if gethostname is prototyped... " >&6; } 29308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29309/* end confdefs.h. */ 29310 29311 $curl_includes_winsock2 29312 $curl_includes_unistd 29313 29314_ACEOF 29315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29316 $EGREP "gethostname" >/dev/null 2>&1; then : 29317 29318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29319$as_echo "yes" >&6; } 29320 tst_proto_gethostname="yes" 29321 29322else 29323 29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29325$as_echo "no" >&6; } 29326 tst_proto_gethostname="no" 29327 29328fi 29329rm -f conftest* 29330 29331 fi 29332 # 29333 if test "$tst_proto_gethostname" = "yes"; then 29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 29335$as_echo_n "checking if gethostname is compilable... " >&6; } 29336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29337/* end confdefs.h. */ 29338 29339 29340 $curl_includes_winsock2 29341 $curl_includes_unistd 29342 29343int main (void) 29344{ 29345 29346 if(0 != gethostname(0, 0)) 29347 return 1; 29348 29349 ; 29350 return 0; 29351} 29352 29353_ACEOF 29354if ac_fn_c_try_compile "$LINENO"; then : 29355 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29357$as_echo "yes" >&6; } 29358 tst_compi_gethostname="yes" 29359 29360else 29361 29362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29363$as_echo "no" >&6; } 29364 tst_compi_gethostname="no" 29365 29366fi 29367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29368 fi 29369 # 29370 if test "$tst_compi_gethostname" = "yes"; then 29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 29372$as_echo_n "checking if gethostname usage allowed... " >&6; } 29373 if test "x$curl_disallow_gethostname" != "xyes"; then 29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29375$as_echo "yes" >&6; } 29376 tst_allow_gethostname="yes" 29377 else 29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29379$as_echo "no" >&6; } 29380 tst_allow_gethostname="no" 29381 fi 29382 fi 29383 # 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 29385$as_echo_n "checking if gethostname might be used... " >&6; } 29386 if test "$tst_links_gethostname" = "yes" && 29387 test "$tst_proto_gethostname" = "yes" && 29388 test "$tst_compi_gethostname" = "yes" && 29389 test "$tst_allow_gethostname" = "yes"; then 29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29391$as_echo "yes" >&6; } 29392 29393cat >>confdefs.h <<_ACEOF 29394#define HAVE_GETHOSTNAME 1 29395_ACEOF 29396 29397 ac_cv_func_gethostname="yes" 29398 else 29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29400$as_echo "no" >&6; } 29401 ac_cv_func_gethostname="no" 29402 fi 29403 29404 29405 # 29406 tst_links_getifaddrs="unknown" 29407 tst_proto_getifaddrs="unknown" 29408 tst_compi_getifaddrs="unknown" 29409 tst_works_getifaddrs="unknown" 29410 tst_allow_getifaddrs="unknown" 29411 # 29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5 29413$as_echo_n "checking if getifaddrs can be linked... " >&6; } 29414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29415/* end confdefs.h. */ 29416 29417 29418#define getifaddrs innocuous_getifaddrs 29419#ifdef __STDC__ 29420# include <limits.h> 29421#else 29422# include <assert.h> 29423#endif 29424#undef getifaddrs 29425#ifdef __cplusplus 29426extern "C" 29427#endif 29428char getifaddrs (); 29429#if defined __stub_getifaddrs || defined __stub___getifaddrs 29430choke me 29431#endif 29432 29433int main (void) 29434{ 29435return getifaddrs (); 29436 ; 29437 return 0; 29438} 29439 29440_ACEOF 29441if ac_fn_c_try_link "$LINENO"; then : 29442 29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29444$as_echo "yes" >&6; } 29445 tst_links_getifaddrs="yes" 29446 29447else 29448 29449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29450$as_echo "no" >&6; } 29451 tst_links_getifaddrs="no" 29452 29453fi 29454rm -f core conftest.err conftest.$ac_objext \ 29455 conftest$ac_exeext conftest.$ac_ext 29456 # 29457 if test "$tst_links_getifaddrs" = "yes"; then 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5 29459$as_echo_n "checking if getifaddrs is prototyped... " >&6; } 29460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29461/* end confdefs.h. */ 29462 29463 $curl_includes_ifaddrs 29464 29465_ACEOF 29466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29467 $EGREP "getifaddrs" >/dev/null 2>&1; then : 29468 29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29470$as_echo "yes" >&6; } 29471 tst_proto_getifaddrs="yes" 29472 29473else 29474 29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29476$as_echo "no" >&6; } 29477 tst_proto_getifaddrs="no" 29478 29479fi 29480rm -f conftest* 29481 29482 fi 29483 # 29484 if test "$tst_proto_getifaddrs" = "yes"; then 29485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5 29486$as_echo_n "checking if getifaddrs is compilable... " >&6; } 29487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29488/* end confdefs.h. */ 29489 29490 29491 $curl_includes_ifaddrs 29492 29493int main (void) 29494{ 29495 29496 if(0 != getifaddrs(0)) 29497 return 1; 29498 29499 ; 29500 return 0; 29501} 29502 29503_ACEOF 29504if ac_fn_c_try_compile "$LINENO"; then : 29505 29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29507$as_echo "yes" >&6; } 29508 tst_compi_getifaddrs="yes" 29509 29510else 29511 29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29513$as_echo "no" >&6; } 29514 tst_compi_getifaddrs="no" 29515 29516fi 29517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29518 fi 29519 # 29520 if test "x$cross_compiling" != "xyes" && 29521 test "$tst_compi_getifaddrs" = "yes"; then 29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5 29523$as_echo_n "checking if getifaddrs seems to work... " >&6; } 29524 if test "$cross_compiling" = yes; then : 29525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29527as_fn_error $? "cannot run test program while cross compiling 29528See \`config.log' for more details" "$LINENO" 5; } 29529else 29530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29531/* end confdefs.h. */ 29532 29533 29534 $curl_includes_stdlib 29535 $curl_includes_ifaddrs 29536 29537int main (void) 29538{ 29539 29540 struct ifaddrs *ifa = 0; 29541 int error; 29542 29543 error = getifaddrs(&ifa); 29544 if(error || !ifa) 29545 exit(1); /* fail */ 29546 else 29547 exit(0); 29548 29549 ; 29550 return 0; 29551} 29552 29553_ACEOF 29554if ac_fn_c_try_run "$LINENO"; then : 29555 29556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29557$as_echo "yes" >&6; } 29558 tst_works_getifaddrs="yes" 29559 29560else 29561 29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29563$as_echo "no" >&6; } 29564 tst_works_getifaddrs="no" 29565 29566fi 29567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29568 conftest.$ac_objext conftest.beam conftest.$ac_ext 29569fi 29570 29571 fi 29572 # 29573 if test "$tst_compi_getifaddrs" = "yes" && 29574 test "$tst_works_getifaddrs" != "no"; then 29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5 29576$as_echo_n "checking if getifaddrs usage allowed... " >&6; } 29577 if test "x$curl_disallow_getifaddrs" != "xyes"; then 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29579$as_echo "yes" >&6; } 29580 tst_allow_getifaddrs="yes" 29581 else 29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29583$as_echo "no" >&6; } 29584 tst_allow_getifaddrs="no" 29585 fi 29586 fi 29587 # 29588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5 29589$as_echo_n "checking if getifaddrs might be used... " >&6; } 29590 if test "$tst_links_getifaddrs" = "yes" && 29591 test "$tst_proto_getifaddrs" = "yes" && 29592 test "$tst_compi_getifaddrs" = "yes" && 29593 test "$tst_allow_getifaddrs" = "yes" && 29594 test "$tst_works_getifaddrs" != "no"; then 29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29596$as_echo "yes" >&6; } 29597 29598cat >>confdefs.h <<_ACEOF 29599#define HAVE_GETIFADDRS 1 29600_ACEOF 29601 29602 ac_cv_func_getifaddrs="yes" 29603 else 29604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29605$as_echo "no" >&6; } 29606 ac_cv_func_getifaddrs="no" 29607 fi 29608 29609 29610 # 29611 tst_links_getservbyport_r="unknown" 29612 tst_proto_getservbyport_r="unknown" 29613 tst_compi_getservbyport_r="unknown" 29614 tst_allow_getservbyport_r="unknown" 29615 tst_nargs_getservbyport_r="unknown" 29616 # 29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5 29618$as_echo_n "checking if getservbyport_r can be linked... " >&6; } 29619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29620/* end confdefs.h. */ 29621 29622 29623#define getservbyport_r innocuous_getservbyport_r 29624#ifdef __STDC__ 29625# include <limits.h> 29626#else 29627# include <assert.h> 29628#endif 29629#undef getservbyport_r 29630#ifdef __cplusplus 29631extern "C" 29632#endif 29633char getservbyport_r (); 29634#if defined __stub_getservbyport_r || defined __stub___getservbyport_r 29635choke me 29636#endif 29637 29638int main (void) 29639{ 29640return getservbyport_r (); 29641 ; 29642 return 0; 29643} 29644 29645_ACEOF 29646if ac_fn_c_try_link "$LINENO"; then : 29647 29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29649$as_echo "yes" >&6; } 29650 tst_links_getservbyport_r="yes" 29651 29652else 29653 29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29655$as_echo "no" >&6; } 29656 tst_links_getservbyport_r="no" 29657 29658fi 29659rm -f core conftest.err conftest.$ac_objext \ 29660 conftest$ac_exeext conftest.$ac_ext 29661 # 29662 if test "$tst_links_getservbyport_r" = "yes"; then 29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5 29664$as_echo_n "checking if getservbyport_r is prototyped... " >&6; } 29665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29666/* end confdefs.h. */ 29667 29668 $curl_includes_netdb 29669 29670_ACEOF 29671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29672 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 29673 29674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29675$as_echo "yes" >&6; } 29676 tst_proto_getservbyport_r="yes" 29677 29678else 29679 29680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29681$as_echo "no" >&6; } 29682 tst_proto_getservbyport_r="no" 29683 29684fi 29685rm -f conftest* 29686 29687 fi 29688 # 29689 if test "$tst_proto_getservbyport_r" = "yes"; then 29690 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5 29692$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; } 29693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29694/* end confdefs.h. */ 29695 29696 29697 $curl_includes_netdb 29698 29699int main (void) 29700{ 29701 29702 if(0 != getservbyport_r(0, 0, 0, 0)) 29703 return 1; 29704 29705 ; 29706 return 0; 29707} 29708 29709_ACEOF 29710if ac_fn_c_try_compile "$LINENO"; then : 29711 29712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29713$as_echo "yes" >&6; } 29714 tst_compi_getservbyport_r="yes" 29715 tst_nargs_getservbyport_r="4" 29716 29717else 29718 29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29720$as_echo "no" >&6; } 29721 tst_compi_getservbyport_r="no" 29722 29723fi 29724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29725 fi 29726 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5 29728$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; } 29729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29730/* end confdefs.h. */ 29731 29732 29733 $curl_includes_netdb 29734 29735int main (void) 29736{ 29737 29738 if(0 != getservbyport_r(0, 0, 0, 0, 0)) 29739 return 1; 29740 29741 ; 29742 return 0; 29743} 29744 29745_ACEOF 29746if ac_fn_c_try_compile "$LINENO"; then : 29747 29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29749$as_echo "yes" >&6; } 29750 tst_compi_getservbyport_r="yes" 29751 tst_nargs_getservbyport_r="5" 29752 29753else 29754 29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29756$as_echo "no" >&6; } 29757 tst_compi_getservbyport_r="no" 29758 29759fi 29760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29761 fi 29762 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5 29764$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; } 29765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29766/* end confdefs.h. */ 29767 29768 29769 $curl_includes_netdb 29770 29771int main (void) 29772{ 29773 29774 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0)) 29775 return 1; 29776 29777 ; 29778 return 0; 29779} 29780 29781_ACEOF 29782if ac_fn_c_try_compile "$LINENO"; then : 29783 29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29785$as_echo "yes" >&6; } 29786 tst_compi_getservbyport_r="yes" 29787 tst_nargs_getservbyport_r="6" 29788 29789else 29790 29791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29792$as_echo "no" >&6; } 29793 tst_compi_getservbyport_r="no" 29794 29795fi 29796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29797 fi 29798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5 29799$as_echo_n "checking if getservbyport_r is compilable... " >&6; } 29800 if test "$tst_compi_getservbyport_r" = "yes"; then 29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29802$as_echo "yes" >&6; } 29803 else 29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29805$as_echo "no" >&6; } 29806 fi 29807 fi 29808 # 29809 if test "$tst_compi_getservbyport_r" = "yes"; then 29810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5 29811$as_echo_n "checking if getservbyport_r usage allowed... " >&6; } 29812 if test "x$curl_disallow_getservbyport_r" != "xyes"; then 29813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29814$as_echo "yes" >&6; } 29815 tst_allow_getservbyport_r="yes" 29816 else 29817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29818$as_echo "no" >&6; } 29819 tst_allow_getservbyport_r="no" 29820 fi 29821 fi 29822 # 29823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5 29824$as_echo_n "checking if getservbyport_r might be used... " >&6; } 29825 if test "$tst_links_getservbyport_r" = "yes" && 29826 test "$tst_proto_getservbyport_r" = "yes" && 29827 test "$tst_compi_getservbyport_r" = "yes" && 29828 test "$tst_allow_getservbyport_r" = "yes"; then 29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29830$as_echo "yes" >&6; } 29831 29832cat >>confdefs.h <<_ACEOF 29833#define HAVE_GETSERVBYPORT_R 1 29834_ACEOF 29835 29836 29837cat >>confdefs.h <<_ACEOF 29838#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r 29839_ACEOF 29840 29841 if test "$tst_nargs_getservbyport_r" -eq "4"; then 29842 29843$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h 29844 29845 else 29846 29847$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h 29848 29849 fi 29850 ac_cv_func_getservbyport_r="yes" 29851 else 29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29853$as_echo "no" >&6; } 29854 ac_cv_func_getservbyport_r="no" 29855 fi 29856 29857 29858curl_includes_time="\ 29859/* includes start */ 29860#ifdef HAVE_SYS_TYPES_H 29861# include <sys/types.h> 29862#endif 29863#ifdef HAVE_SYS_TIME_H 29864# include <sys/time.h> 29865# ifdef TIME_WITH_SYS_TIME 29866# include <time.h> 29867# endif 29868#else 29869# ifdef HAVE_TIME_H 29870# include <time.h> 29871# endif 29872#endif 29873/* includes end */" 29874 for ac_header in sys/types.h sys/time.h time.h 29875do : 29876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29877ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time 29878" 29879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29880 cat >>confdefs.h <<_ACEOF 29881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29882_ACEOF 29883 29884fi 29885 29886done 29887 29888 29889 29890 # 29891 tst_links_gmtime_r="unknown" 29892 tst_proto_gmtime_r="unknown" 29893 tst_compi_gmtime_r="unknown" 29894 tst_works_gmtime_r="unknown" 29895 tst_allow_gmtime_r="unknown" 29896 # 29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5 29898$as_echo_n "checking if gmtime_r can be linked... " >&6; } 29899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29900/* end confdefs.h. */ 29901 29902 29903#define gmtime_r innocuous_gmtime_r 29904#ifdef __STDC__ 29905# include <limits.h> 29906#else 29907# include <assert.h> 29908#endif 29909#undef gmtime_r 29910#ifdef __cplusplus 29911extern "C" 29912#endif 29913char gmtime_r (); 29914#if defined __stub_gmtime_r || defined __stub___gmtime_r 29915choke me 29916#endif 29917 29918int main (void) 29919{ 29920return gmtime_r (); 29921 ; 29922 return 0; 29923} 29924 29925_ACEOF 29926if ac_fn_c_try_link "$LINENO"; then : 29927 29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29929$as_echo "yes" >&6; } 29930 tst_links_gmtime_r="yes" 29931 29932else 29933 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29935$as_echo "no" >&6; } 29936 tst_links_gmtime_r="no" 29937 29938fi 29939rm -f core conftest.err conftest.$ac_objext \ 29940 conftest$ac_exeext conftest.$ac_ext 29941 # 29942 if test "$tst_links_gmtime_r" = "yes"; then 29943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5 29944$as_echo_n "checking if gmtime_r is prototyped... " >&6; } 29945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29946/* end confdefs.h. */ 29947 29948 $curl_includes_time 29949 29950_ACEOF 29951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29952 $EGREP "gmtime_r" >/dev/null 2>&1; then : 29953 29954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29955$as_echo "yes" >&6; } 29956 tst_proto_gmtime_r="yes" 29957 29958else 29959 29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29961$as_echo "no" >&6; } 29962 tst_proto_gmtime_r="no" 29963 29964fi 29965rm -f conftest* 29966 29967 fi 29968 # 29969 if test "$tst_proto_gmtime_r" = "yes"; then 29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5 29971$as_echo_n "checking if gmtime_r is compilable... " >&6; } 29972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29973/* end confdefs.h. */ 29974 29975 29976 $curl_includes_time 29977 29978int main (void) 29979{ 29980 29981 if(0 != gmtime_r(0, 0)) 29982 return 1; 29983 29984 ; 29985 return 0; 29986} 29987 29988_ACEOF 29989if ac_fn_c_try_compile "$LINENO"; then : 29990 29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29992$as_echo "yes" >&6; } 29993 tst_compi_gmtime_r="yes" 29994 29995else 29996 29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29998$as_echo "no" >&6; } 29999 tst_compi_gmtime_r="no" 30000 30001fi 30002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30003 fi 30004 # 30005 if test "x$cross_compiling" != "xyes" && 30006 test "$tst_compi_gmtime_r" = "yes"; then 30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5 30008$as_echo_n "checking if gmtime_r seems to work... " >&6; } 30009 if test "$cross_compiling" = yes; then : 30010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30012as_fn_error $? "cannot run test program while cross compiling 30013See \`config.log' for more details" "$LINENO" 5; } 30014else 30015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30016/* end confdefs.h. */ 30017 30018 30019 $curl_includes_stdlib 30020 $curl_includes_time 30021 30022int main (void) 30023{ 30024 30025 time_t local = 1170352587; 30026 struct tm *gmt = 0; 30027 struct tm result; 30028 gmt = gmtime_r(&local, &result); 30029 if(gmt) 30030 exit(0); 30031 else 30032 exit(1); 30033 30034 ; 30035 return 0; 30036} 30037 30038_ACEOF 30039if ac_fn_c_try_run "$LINENO"; then : 30040 30041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30042$as_echo "yes" >&6; } 30043 tst_works_gmtime_r="yes" 30044 30045else 30046 30047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30048$as_echo "no" >&6; } 30049 tst_works_gmtime_r="no" 30050 30051fi 30052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30053 conftest.$ac_objext conftest.beam conftest.$ac_ext 30054fi 30055 30056 fi 30057 # 30058 if test "$tst_compi_gmtime_r" = "yes" && 30059 test "$tst_works_gmtime_r" != "no"; then 30060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5 30061$as_echo_n "checking if gmtime_r usage allowed... " >&6; } 30062 if test "x$curl_disallow_gmtime_r" != "xyes"; then 30063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30064$as_echo "yes" >&6; } 30065 tst_allow_gmtime_r="yes" 30066 else 30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30068$as_echo "no" >&6; } 30069 tst_allow_gmtime_r="no" 30070 fi 30071 fi 30072 # 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5 30074$as_echo_n "checking if gmtime_r might be used... " >&6; } 30075 if test "$tst_links_gmtime_r" = "yes" && 30076 test "$tst_proto_gmtime_r" = "yes" && 30077 test "$tst_compi_gmtime_r" = "yes" && 30078 test "$tst_allow_gmtime_r" = "yes" && 30079 test "$tst_works_gmtime_r" != "no"; then 30080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30081$as_echo "yes" >&6; } 30082 30083cat >>confdefs.h <<_ACEOF 30084#define HAVE_GMTIME_R 1 30085_ACEOF 30086 30087 ac_cv_func_gmtime_r="yes" 30088 else 30089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30090$as_echo "no" >&6; } 30091 ac_cv_func_gmtime_r="no" 30092 fi 30093 30094 30095curl_includes_arpa_inet="\ 30096/* includes start */ 30097#ifdef HAVE_SYS_TYPES_H 30098# include <sys/types.h> 30099#endif 30100#ifdef HAVE_SYS_SOCKET_H 30101# include <sys/socket.h> 30102#endif 30103#ifdef HAVE_NETINET_IN_H 30104# include <netinet/in.h> 30105#endif 30106#ifdef HAVE_ARPA_INET_H 30107# include <arpa/inet.h> 30108#endif 30109/* includes end */" 30110 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h 30111do : 30112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30113ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet 30114" 30115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30116 cat >>confdefs.h <<_ACEOF 30117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30118_ACEOF 30119 30120fi 30121 30122done 30123 30124 30125 30126 # 30127 tst_links_inet_ntoa_r="unknown" 30128 tst_proto_inet_ntoa_r="unknown" 30129 tst_compi_inet_ntoa_r="unknown" 30130 tst_allow_inet_ntoa_r="unknown" 30131 tst_nargs_inet_ntoa_r="unknown" 30132 # 30133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5 30134$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; } 30135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30136/* end confdefs.h. */ 30137 30138 30139#define inet_ntoa_r innocuous_inet_ntoa_r 30140#ifdef __STDC__ 30141# include <limits.h> 30142#else 30143# include <assert.h> 30144#endif 30145#undef inet_ntoa_r 30146#ifdef __cplusplus 30147extern "C" 30148#endif 30149char inet_ntoa_r (); 30150#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 30151choke me 30152#endif 30153 30154int main (void) 30155{ 30156return inet_ntoa_r (); 30157 ; 30158 return 0; 30159} 30160 30161_ACEOF 30162if ac_fn_c_try_link "$LINENO"; then : 30163 30164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30165$as_echo "yes" >&6; } 30166 tst_links_inet_ntoa_r="yes" 30167 30168else 30169 30170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30171$as_echo "no" >&6; } 30172 tst_links_inet_ntoa_r="no" 30173 30174fi 30175rm -f core conftest.err conftest.$ac_objext \ 30176 conftest$ac_exeext conftest.$ac_ext 30177 # 30178 if test "$tst_links_inet_ntoa_r" = "yes"; then 30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5 30180$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; } 30181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30182/* end confdefs.h. */ 30183 30184 $curl_includes_arpa_inet 30185 30186_ACEOF 30187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30188 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 30189 30190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30191$as_echo "yes" >&6; } 30192 tst_proto_inet_ntoa_r="yes" 30193 30194else 30195 30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30197$as_echo "no" >&6; } 30198 tst_proto_inet_ntoa_r="no" 30199 30200fi 30201rm -f conftest* 30202 30203 fi 30204 # 30205 if test "$tst_proto_inet_ntoa_r" = "yes"; then 30206 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then 30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5 30208$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; } 30209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30210/* end confdefs.h. */ 30211 30212 30213 $curl_includes_arpa_inet 30214 30215int main (void) 30216{ 30217 30218 struct in_addr addr; 30219 if(0 != inet_ntoa_r(addr, 0)) 30220 return 1; 30221 30222 ; 30223 return 0; 30224} 30225 30226_ACEOF 30227if ac_fn_c_try_compile "$LINENO"; then : 30228 30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30230$as_echo "yes" >&6; } 30231 tst_compi_inet_ntoa_r="yes" 30232 tst_nargs_inet_ntoa_r="2" 30233 30234else 30235 30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30237$as_echo "no" >&6; } 30238 tst_compi_inet_ntoa_r="no" 30239 30240fi 30241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30242 fi 30243 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then 30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5 30245$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; } 30246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30247/* end confdefs.h. */ 30248 30249 30250 $curl_includes_arpa_inet 30251 30252int main (void) 30253{ 30254 30255 struct in_addr addr; 30256 if(0 != inet_ntoa_r(addr, 0, 0)) 30257 return 1; 30258 30259 ; 30260 return 0; 30261} 30262 30263_ACEOF 30264if ac_fn_c_try_compile "$LINENO"; then : 30265 30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30267$as_echo "yes" >&6; } 30268 tst_compi_inet_ntoa_r="yes" 30269 tst_nargs_inet_ntoa_r="3" 30270 30271else 30272 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30274$as_echo "no" >&6; } 30275 tst_compi_inet_ntoa_r="no" 30276 30277fi 30278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30279 fi 30280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5 30281$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; } 30282 if test "$tst_compi_inet_ntoa_r" = "yes"; then 30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30284$as_echo "yes" >&6; } 30285 else 30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30287$as_echo "no" >&6; } 30288 fi 30289 fi 30290 # 30291 if test "$tst_compi_inet_ntoa_r" = "yes"; then 30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5 30293$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; } 30294 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30296$as_echo "yes" >&6; } 30297 tst_allow_inet_ntoa_r="yes" 30298 else 30299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30300$as_echo "no" >&6; } 30301 tst_allow_inet_ntoa_r="no" 30302 fi 30303 fi 30304 # 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5 30306$as_echo_n "checking if inet_ntoa_r might be used... " >&6; } 30307 if test "$tst_links_inet_ntoa_r" = "yes" && 30308 test "$tst_proto_inet_ntoa_r" = "yes" && 30309 test "$tst_compi_inet_ntoa_r" = "yes" && 30310 test "$tst_allow_inet_ntoa_r" = "yes"; then 30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30312$as_echo "yes" >&6; } 30313 30314cat >>confdefs.h <<_ACEOF 30315#define HAVE_INET_NTOA_R 1 30316_ACEOF 30317 30318 # 30319 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then 30320 30321$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h 30322 30323 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then 30324 30325$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h 30326 30327 fi 30328 # 30329 ac_cv_func_inet_ntoa_r="yes" 30330 else 30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30332$as_echo "no" >&6; } 30333 ac_cv_func_inet_ntoa_r="no" 30334 fi 30335 30336 30337 # 30338 tst_links_inet_ntop="unknown" 30339 tst_proto_inet_ntop="unknown" 30340 tst_compi_inet_ntop="unknown" 30341 tst_works_inet_ntop="unknown" 30342 tst_allow_inet_ntop="unknown" 30343 # 30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 30345$as_echo_n "checking if inet_ntop can be linked... " >&6; } 30346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30347/* end confdefs.h. */ 30348 30349 30350#define inet_ntop innocuous_inet_ntop 30351#ifdef __STDC__ 30352# include <limits.h> 30353#else 30354# include <assert.h> 30355#endif 30356#undef inet_ntop 30357#ifdef __cplusplus 30358extern "C" 30359#endif 30360char inet_ntop (); 30361#if defined __stub_inet_ntop || defined __stub___inet_ntop 30362choke me 30363#endif 30364 30365int main (void) 30366{ 30367return inet_ntop (); 30368 ; 30369 return 0; 30370} 30371 30372_ACEOF 30373if ac_fn_c_try_link "$LINENO"; then : 30374 30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30376$as_echo "yes" >&6; } 30377 tst_links_inet_ntop="yes" 30378 30379else 30380 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30382$as_echo "no" >&6; } 30383 tst_links_inet_ntop="no" 30384 30385fi 30386rm -f core conftest.err conftest.$ac_objext \ 30387 conftest$ac_exeext conftest.$ac_ext 30388 # 30389 if test "$tst_links_inet_ntop" = "yes"; then 30390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 30391$as_echo_n "checking if inet_ntop is prototyped... " >&6; } 30392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30393/* end confdefs.h. */ 30394 30395 $curl_includes_arpa_inet 30396 30397_ACEOF 30398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30399 $EGREP "inet_ntop" >/dev/null 2>&1; then : 30400 30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30402$as_echo "yes" >&6; } 30403 tst_proto_inet_ntop="yes" 30404 30405else 30406 30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30408$as_echo "no" >&6; } 30409 tst_proto_inet_ntop="no" 30410 30411fi 30412rm -f conftest* 30413 30414 fi 30415 # 30416 if test "$tst_proto_inet_ntop" = "yes"; then 30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 30418$as_echo_n "checking if inet_ntop is compilable... " >&6; } 30419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30420/* end confdefs.h. */ 30421 30422 30423 $curl_includes_arpa_inet 30424 30425int main (void) 30426{ 30427 30428 if(0 != inet_ntop(0, 0, 0, 0)) 30429 return 1; 30430 30431 ; 30432 return 0; 30433} 30434 30435_ACEOF 30436if ac_fn_c_try_compile "$LINENO"; then : 30437 30438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30439$as_echo "yes" >&6; } 30440 tst_compi_inet_ntop="yes" 30441 30442else 30443 30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30445$as_echo "no" >&6; } 30446 tst_compi_inet_ntop="no" 30447 30448fi 30449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30450 fi 30451 # 30452 if test "x$cross_compiling" != "xyes" && 30453 test "$tst_compi_inet_ntop" = "yes"; then 30454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 30455$as_echo_n "checking if inet_ntop seems to work... " >&6; } 30456 if test "$cross_compiling" = yes; then : 30457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30459as_fn_error $? "cannot run test program while cross compiling 30460See \`config.log' for more details" "$LINENO" 5; } 30461else 30462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30463/* end confdefs.h. */ 30464 30465 30466 $curl_includes_stdlib 30467 $curl_includes_arpa_inet 30468 $curl_includes_string 30469 30470int main (void) 30471{ 30472 30473 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 30474 char ipv4res[sizeof "255.255.255.255"]; 30475 unsigned char ipv6a[26]; 30476 unsigned char ipv4a[5]; 30477 char *ipv6ptr = 0; 30478 char *ipv4ptr = 0; 30479 /* - */ 30480 ipv4res[0] = '\0'; 30481 ipv4a[0] = 0xc0; 30482 ipv4a[1] = 0xa8; 30483 ipv4a[2] = 0x64; 30484 ipv4a[3] = 0x01; 30485 ipv4a[4] = 0x01; 30486 /* - */ 30487 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 30488 if(!ipv4ptr) 30489 exit(1); /* fail */ 30490 if(ipv4ptr != ipv4res) 30491 exit(1); /* fail */ 30492 if(!ipv4ptr[0]) 30493 exit(1); /* fail */ 30494 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 30495 exit(1); /* fail */ 30496 /* - */ 30497 ipv6res[0] = '\0'; 30498 memset(ipv6a, 0, sizeof(ipv6a)); 30499 ipv6a[0] = 0xfe; 30500 ipv6a[1] = 0x80; 30501 ipv6a[8] = 0x02; 30502 ipv6a[9] = 0x14; 30503 ipv6a[10] = 0x4f; 30504 ipv6a[11] = 0xff; 30505 ipv6a[12] = 0xfe; 30506 ipv6a[13] = 0x0b; 30507 ipv6a[14] = 0x76; 30508 ipv6a[15] = 0xc8; 30509 ipv6a[25] = 0x01; 30510 /* - */ 30511 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 30512 if(!ipv6ptr) 30513 exit(1); /* fail */ 30514 if(ipv6ptr != ipv6res) 30515 exit(1); /* fail */ 30516 if(!ipv6ptr[0]) 30517 exit(1); /* fail */ 30518 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 30519 exit(1); /* fail */ 30520 /* - */ 30521 exit(0); 30522 30523 ; 30524 return 0; 30525} 30526 30527_ACEOF 30528if ac_fn_c_try_run "$LINENO"; then : 30529 30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30531$as_echo "yes" >&6; } 30532 tst_works_inet_ntop="yes" 30533 30534else 30535 30536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30537$as_echo "no" >&6; } 30538 tst_works_inet_ntop="no" 30539 30540fi 30541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30542 conftest.$ac_objext conftest.beam conftest.$ac_ext 30543fi 30544 30545 fi 30546 # 30547 if test "$tst_compi_inet_ntop" = "yes" && 30548 test "$tst_works_inet_ntop" != "no"; then 30549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 30550$as_echo_n "checking if inet_ntop usage allowed... " >&6; } 30551 if test "x$curl_disallow_inet_ntop" != "xyes"; then 30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30553$as_echo "yes" >&6; } 30554 tst_allow_inet_ntop="yes" 30555 else 30556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30557$as_echo "no" >&6; } 30558 tst_allow_inet_ntop="no" 30559 fi 30560 fi 30561 # 30562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 30563$as_echo_n "checking if inet_ntop might be used... " >&6; } 30564 if test "$tst_links_inet_ntop" = "yes" && 30565 test "$tst_proto_inet_ntop" = "yes" && 30566 test "$tst_compi_inet_ntop" = "yes" && 30567 test "$tst_allow_inet_ntop" = "yes" && 30568 test "$tst_works_inet_ntop" != "no"; then 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30570$as_echo "yes" >&6; } 30571 30572cat >>confdefs.h <<_ACEOF 30573#define HAVE_INET_NTOP 1 30574_ACEOF 30575 30576 ac_cv_func_inet_ntop="yes" 30577 else 30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30579$as_echo "no" >&6; } 30580 ac_cv_func_inet_ntop="no" 30581 fi 30582 30583 30584 # 30585 tst_links_inet_pton="unknown" 30586 tst_proto_inet_pton="unknown" 30587 tst_compi_inet_pton="unknown" 30588 tst_works_inet_pton="unknown" 30589 tst_allow_inet_pton="unknown" 30590 # 30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 30592$as_echo_n "checking if inet_pton can be linked... " >&6; } 30593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30594/* end confdefs.h. */ 30595 30596 30597#define inet_pton innocuous_inet_pton 30598#ifdef __STDC__ 30599# include <limits.h> 30600#else 30601# include <assert.h> 30602#endif 30603#undef inet_pton 30604#ifdef __cplusplus 30605extern "C" 30606#endif 30607char inet_pton (); 30608#if defined __stub_inet_pton || defined __stub___inet_pton 30609choke me 30610#endif 30611 30612int main (void) 30613{ 30614return inet_pton (); 30615 ; 30616 return 0; 30617} 30618 30619_ACEOF 30620if ac_fn_c_try_link "$LINENO"; then : 30621 30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30623$as_echo "yes" >&6; } 30624 tst_links_inet_pton="yes" 30625 30626else 30627 30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30629$as_echo "no" >&6; } 30630 tst_links_inet_pton="no" 30631 30632fi 30633rm -f core conftest.err conftest.$ac_objext \ 30634 conftest$ac_exeext conftest.$ac_ext 30635 # 30636 if test "$tst_links_inet_pton" = "yes"; then 30637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 30638$as_echo_n "checking if inet_pton is prototyped... " >&6; } 30639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30640/* end confdefs.h. */ 30641 30642 $curl_includes_arpa_inet 30643 30644_ACEOF 30645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30646 $EGREP "inet_pton" >/dev/null 2>&1; then : 30647 30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30649$as_echo "yes" >&6; } 30650 tst_proto_inet_pton="yes" 30651 30652else 30653 30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30655$as_echo "no" >&6; } 30656 tst_proto_inet_pton="no" 30657 30658fi 30659rm -f conftest* 30660 30661 fi 30662 # 30663 if test "$tst_proto_inet_pton" = "yes"; then 30664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 30665$as_echo_n "checking if inet_pton is compilable... " >&6; } 30666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30667/* end confdefs.h. */ 30668 30669 30670 $curl_includes_arpa_inet 30671 30672int main (void) 30673{ 30674 30675 if(0 != inet_pton(0, 0, 0)) 30676 return 1; 30677 30678 ; 30679 return 0; 30680} 30681 30682_ACEOF 30683if ac_fn_c_try_compile "$LINENO"; then : 30684 30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30686$as_echo "yes" >&6; } 30687 tst_compi_inet_pton="yes" 30688 30689else 30690 30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30692$as_echo "no" >&6; } 30693 tst_compi_inet_pton="no" 30694 30695fi 30696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30697 fi 30698 # 30699 if test "x$cross_compiling" != "xyes" && 30700 test "$tst_compi_inet_pton" = "yes"; then 30701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 30702$as_echo_n "checking if inet_pton seems to work... " >&6; } 30703 if test "$cross_compiling" = yes; then : 30704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30706as_fn_error $? "cannot run test program while cross compiling 30707See \`config.log' for more details" "$LINENO" 5; } 30708else 30709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30710/* end confdefs.h. */ 30711 30712 30713 $curl_includes_stdlib 30714 $curl_includes_arpa_inet 30715 $curl_includes_string 30716 30717int main (void) 30718{ 30719 30720 unsigned char ipv6a[16+1]; 30721 unsigned char ipv4a[4+1]; 30722 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 30723 const char *ipv4src = "192.168.100.1"; 30724 /* - */ 30725 memset(ipv4a, 1, sizeof(ipv4a)); 30726 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 30727 exit(1); /* fail */ 30728 /* - */ 30729 if( (ipv4a[0] != 0xc0) || 30730 (ipv4a[1] != 0xa8) || 30731 (ipv4a[2] != 0x64) || 30732 (ipv4a[3] != 0x01) || 30733 (ipv4a[4] != 0x01) ) 30734 exit(1); /* fail */ 30735 /* - */ 30736 memset(ipv6a, 1, sizeof(ipv6a)); 30737 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 30738 exit(1); /* fail */ 30739 /* - */ 30740 if( (ipv6a[0] != 0xfe) || 30741 (ipv6a[1] != 0x80) || 30742 (ipv6a[8] != 0x02) || 30743 (ipv6a[9] != 0x14) || 30744 (ipv6a[10] != 0x4f) || 30745 (ipv6a[11] != 0xff) || 30746 (ipv6a[12] != 0xfe) || 30747 (ipv6a[13] != 0x0b) || 30748 (ipv6a[14] != 0x76) || 30749 (ipv6a[15] != 0xc8) || 30750 (ipv6a[16] != 0x01) ) 30751 exit(1); /* fail */ 30752 /* - */ 30753 if( (ipv6a[2] != 0x0) || 30754 (ipv6a[3] != 0x0) || 30755 (ipv6a[4] != 0x0) || 30756 (ipv6a[5] != 0x0) || 30757 (ipv6a[6] != 0x0) || 30758 (ipv6a[7] != 0x0) ) 30759 exit(1); /* fail */ 30760 /* - */ 30761 exit(0); 30762 30763 ; 30764 return 0; 30765} 30766 30767_ACEOF 30768if ac_fn_c_try_run "$LINENO"; then : 30769 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30771$as_echo "yes" >&6; } 30772 tst_works_inet_pton="yes" 30773 30774else 30775 30776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30777$as_echo "no" >&6; } 30778 tst_works_inet_pton="no" 30779 30780fi 30781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30782 conftest.$ac_objext conftest.beam conftest.$ac_ext 30783fi 30784 30785 fi 30786 # 30787 if test "$tst_compi_inet_pton" = "yes" && 30788 test "$tst_works_inet_pton" != "no"; then 30789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 30790$as_echo_n "checking if inet_pton usage allowed... " >&6; } 30791 if test "x$curl_disallow_inet_pton" != "xyes"; then 30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30793$as_echo "yes" >&6; } 30794 tst_allow_inet_pton="yes" 30795 else 30796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30797$as_echo "no" >&6; } 30798 tst_allow_inet_pton="no" 30799 fi 30800 fi 30801 # 30802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 30803$as_echo_n "checking if inet_pton might be used... " >&6; } 30804 if test "$tst_links_inet_pton" = "yes" && 30805 test "$tst_proto_inet_pton" = "yes" && 30806 test "$tst_compi_inet_pton" = "yes" && 30807 test "$tst_allow_inet_pton" = "yes" && 30808 test "$tst_works_inet_pton" != "no"; then 30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30810$as_echo "yes" >&6; } 30811 30812cat >>confdefs.h <<_ACEOF 30813#define HAVE_INET_PTON 1 30814_ACEOF 30815 30816 ac_cv_func_inet_pton="yes" 30817 else 30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30819$as_echo "no" >&6; } 30820 ac_cv_func_inet_pton="no" 30821 fi 30822 30823 30824curl_includes_stropts="\ 30825/* includes start */ 30826#ifdef HAVE_SYS_TYPES_H 30827# include <sys/types.h> 30828#endif 30829#ifdef HAVE_UNISTD_H 30830# include <unistd.h> 30831#endif 30832#ifdef HAVE_SYS_SOCKET_H 30833# include <sys/socket.h> 30834#endif 30835#ifdef HAVE_SYS_IOCTL_H 30836# include <sys/ioctl.h> 30837#endif 30838#ifdef HAVE_STROPTS_H 30839# include <stropts.h> 30840#endif 30841/* includes end */" 30842 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h 30843do : 30844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30845ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts 30846" 30847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30848 cat >>confdefs.h <<_ACEOF 30849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30850_ACEOF 30851 30852fi 30853 30854done 30855 30856 30857 30858 # 30859 tst_links_ioctl="unknown" 30860 tst_proto_ioctl="unknown" 30861 tst_compi_ioctl="unknown" 30862 tst_allow_ioctl="unknown" 30863 # 30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 30865$as_echo_n "checking if ioctl can be linked... " >&6; } 30866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30867/* end confdefs.h. */ 30868 30869 30870#define ioctl innocuous_ioctl 30871#ifdef __STDC__ 30872# include <limits.h> 30873#else 30874# include <assert.h> 30875#endif 30876#undef ioctl 30877#ifdef __cplusplus 30878extern "C" 30879#endif 30880char ioctl (); 30881#if defined __stub_ioctl || defined __stub___ioctl 30882choke me 30883#endif 30884 30885int main (void) 30886{ 30887return ioctl (); 30888 ; 30889 return 0; 30890} 30891 30892_ACEOF 30893if ac_fn_c_try_link "$LINENO"; then : 30894 30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30896$as_echo "yes" >&6; } 30897 tst_links_ioctl="yes" 30898 30899else 30900 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30902$as_echo "no" >&6; } 30903 tst_links_ioctl="no" 30904 30905fi 30906rm -f core conftest.err conftest.$ac_objext \ 30907 conftest$ac_exeext conftest.$ac_ext 30908 # 30909 if test "$tst_links_ioctl" = "yes"; then 30910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 30911$as_echo_n "checking if ioctl is prototyped... " >&6; } 30912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30913/* end confdefs.h. */ 30914 30915 $curl_includes_stropts 30916 30917_ACEOF 30918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30919 $EGREP "ioctl" >/dev/null 2>&1; then : 30920 30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30922$as_echo "yes" >&6; } 30923 tst_proto_ioctl="yes" 30924 30925else 30926 30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30928$as_echo "no" >&6; } 30929 tst_proto_ioctl="no" 30930 30931fi 30932rm -f conftest* 30933 30934 fi 30935 # 30936 if test "$tst_proto_ioctl" = "yes"; then 30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 30938$as_echo_n "checking if ioctl is compilable... " >&6; } 30939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30940/* end confdefs.h. */ 30941 30942 30943 $curl_includes_stropts 30944 30945int main (void) 30946{ 30947 30948 if(0 != ioctl(0, 0, 0)) 30949 return 1; 30950 30951 ; 30952 return 0; 30953} 30954 30955_ACEOF 30956if ac_fn_c_try_compile "$LINENO"; then : 30957 30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30959$as_echo "yes" >&6; } 30960 tst_compi_ioctl="yes" 30961 30962else 30963 30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30965$as_echo "no" >&6; } 30966 tst_compi_ioctl="no" 30967 30968fi 30969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30970 fi 30971 # 30972 if test "$tst_compi_ioctl" = "yes"; then 30973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 30974$as_echo_n "checking if ioctl usage allowed... " >&6; } 30975 if test "x$curl_disallow_ioctl" != "xyes"; then 30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30977$as_echo "yes" >&6; } 30978 tst_allow_ioctl="yes" 30979 else 30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30981$as_echo "no" >&6; } 30982 tst_allow_ioctl="no" 30983 fi 30984 fi 30985 # 30986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 30987$as_echo_n "checking if ioctl might be used... " >&6; } 30988 if test "$tst_links_ioctl" = "yes" && 30989 test "$tst_proto_ioctl" = "yes" && 30990 test "$tst_compi_ioctl" = "yes" && 30991 test "$tst_allow_ioctl" = "yes"; then 30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30993$as_echo "yes" >&6; } 30994 30995cat >>confdefs.h <<_ACEOF 30996#define HAVE_IOCTL 1 30997_ACEOF 30998 30999 ac_cv_func_ioctl="yes" 31000 31001 # 31002 tst_compi_ioctl_fionbio="unknown" 31003 tst_allow_ioctl_fionbio="unknown" 31004 # 31005 if test "$ac_cv_func_ioctl" = "yes"; then 31006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 31007$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; } 31008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31009/* end confdefs.h. */ 31010 31011 31012 $curl_includes_stropts 31013 31014int main (void) 31015{ 31016 31017 int flags = 0; 31018 if(0 != ioctl(0, FIONBIO, &flags)) 31019 return 1; 31020 31021 ; 31022 return 0; 31023} 31024 31025_ACEOF 31026if ac_fn_c_try_compile "$LINENO"; then : 31027 31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31029$as_echo "yes" >&6; } 31030 tst_compi_ioctl_fionbio="yes" 31031 31032else 31033 31034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31035$as_echo "no" >&6; } 31036 tst_compi_ioctl_fionbio="no" 31037 31038fi 31039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31040 fi 31041 # 31042 if test "$tst_compi_ioctl_fionbio" = "yes"; then 31043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 31044$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; } 31045 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then 31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31047$as_echo "yes" >&6; } 31048 tst_allow_ioctl_fionbio="yes" 31049 else 31050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31051$as_echo "no" >&6; } 31052 tst_allow_ioctl_fionbio="no" 31053 fi 31054 fi 31055 # 31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 31057$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; } 31058 if test "$tst_compi_ioctl_fionbio" = "yes" && 31059 test "$tst_allow_ioctl_fionbio" = "yes"; then 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31061$as_echo "yes" >&6; } 31062 31063cat >>confdefs.h <<_ACEOF 31064#define HAVE_IOCTL_FIONBIO 1 31065_ACEOF 31066 31067 ac_cv_func_ioctl_fionbio="yes" 31068 else 31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31070$as_echo "no" >&6; } 31071 ac_cv_func_ioctl_fionbio="no" 31072 fi 31073 31074 31075 # 31076 tst_compi_ioctl_siocgifaddr="unknown" 31077 tst_allow_ioctl_siocgifaddr="unknown" 31078 # 31079 if test "$ac_cv_func_ioctl" = "yes"; then 31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 31081$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; } 31082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31083/* end confdefs.h. */ 31084 31085 31086 $curl_includes_stropts 31087 #include <net/if.h> 31088 31089int main (void) 31090{ 31091 31092 struct ifreq ifr; 31093 if(0 != ioctl(0, SIOCGIFADDR, &ifr)) 31094 return 1; 31095 31096 ; 31097 return 0; 31098} 31099 31100_ACEOF 31101if ac_fn_c_try_compile "$LINENO"; then : 31102 31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31104$as_echo "yes" >&6; } 31105 tst_compi_ioctl_siocgifaddr="yes" 31106 31107else 31108 31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31110$as_echo "no" >&6; } 31111 tst_compi_ioctl_siocgifaddr="no" 31112 31113fi 31114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31115 fi 31116 # 31117 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 31119$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } 31120 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then 31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31122$as_echo "yes" >&6; } 31123 tst_allow_ioctl_siocgifaddr="yes" 31124 else 31125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31126$as_echo "no" >&6; } 31127 tst_allow_ioctl_siocgifaddr="no" 31128 fi 31129 fi 31130 # 31131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 31132$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; } 31133 if test "$tst_compi_ioctl_siocgifaddr" = "yes" && 31134 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then 31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31136$as_echo "yes" >&6; } 31137 31138cat >>confdefs.h <<_ACEOF 31139#define HAVE_IOCTL_SIOCGIFADDR 1 31140_ACEOF 31141 31142 ac_cv_func_ioctl_siocgifaddr="yes" 31143 else 31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31145$as_echo "no" >&6; } 31146 ac_cv_func_ioctl_siocgifaddr="no" 31147 fi 31148 31149 else 31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31151$as_echo "no" >&6; } 31152 ac_cv_func_ioctl="no" 31153 fi 31154 31155 31156 # 31157 tst_links_ioctlsocket="unknown" 31158 tst_proto_ioctlsocket="unknown" 31159 tst_compi_ioctlsocket="unknown" 31160 tst_allow_ioctlsocket="unknown" 31161 # 31162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 31163$as_echo_n "checking if ioctlsocket can be linked... " >&6; } 31164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31165/* end confdefs.h. */ 31166 31167 31168 $curl_includes_winsock2 31169 31170int main (void) 31171{ 31172 31173 if(0 != ioctlsocket(0, 0, 0)) 31174 return 1; 31175 31176 ; 31177 return 0; 31178} 31179 31180_ACEOF 31181if ac_fn_c_try_link "$LINENO"; then : 31182 31183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31184$as_echo "yes" >&6; } 31185 tst_links_ioctlsocket="yes" 31186 31187else 31188 31189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31190$as_echo "no" >&6; } 31191 tst_links_ioctlsocket="no" 31192 31193fi 31194rm -f core conftest.err conftest.$ac_objext \ 31195 conftest$ac_exeext conftest.$ac_ext 31196 # 31197 if test "$tst_links_ioctlsocket" = "yes"; then 31198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 31199$as_echo_n "checking if ioctlsocket is prototyped... " >&6; } 31200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31201/* end confdefs.h. */ 31202 31203 $curl_includes_winsock2 31204 31205_ACEOF 31206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31207 $EGREP "ioctlsocket" >/dev/null 2>&1; then : 31208 31209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31210$as_echo "yes" >&6; } 31211 tst_proto_ioctlsocket="yes" 31212 31213else 31214 31215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31216$as_echo "no" >&6; } 31217 tst_proto_ioctlsocket="no" 31218 31219fi 31220rm -f conftest* 31221 31222 fi 31223 # 31224 if test "$tst_proto_ioctlsocket" = "yes"; then 31225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 31226$as_echo_n "checking if ioctlsocket is compilable... " >&6; } 31227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31228/* end confdefs.h. */ 31229 31230 31231 $curl_includes_winsock2 31232 31233int main (void) 31234{ 31235 31236 if(0 != ioctlsocket(0, 0, 0)) 31237 return 1; 31238 31239 ; 31240 return 0; 31241} 31242 31243_ACEOF 31244if ac_fn_c_try_compile "$LINENO"; then : 31245 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31247$as_echo "yes" >&6; } 31248 tst_compi_ioctlsocket="yes" 31249 31250else 31251 31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31253$as_echo "no" >&6; } 31254 tst_compi_ioctlsocket="no" 31255 31256fi 31257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31258 fi 31259 # 31260 if test "$tst_compi_ioctlsocket" = "yes"; then 31261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 31262$as_echo_n "checking if ioctlsocket usage allowed... " >&6; } 31263 if test "x$curl_disallow_ioctlsocket" != "xyes"; then 31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31265$as_echo "yes" >&6; } 31266 tst_allow_ioctlsocket="yes" 31267 else 31268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31269$as_echo "no" >&6; } 31270 tst_allow_ioctlsocket="no" 31271 fi 31272 fi 31273 # 31274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 31275$as_echo_n "checking if ioctlsocket might be used... " >&6; } 31276 if test "$tst_links_ioctlsocket" = "yes" && 31277 test "$tst_proto_ioctlsocket" = "yes" && 31278 test "$tst_compi_ioctlsocket" = "yes" && 31279 test "$tst_allow_ioctlsocket" = "yes"; then 31280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31281$as_echo "yes" >&6; } 31282 31283cat >>confdefs.h <<_ACEOF 31284#define HAVE_IOCTLSOCKET 1 31285_ACEOF 31286 31287 ac_cv_func_ioctlsocket="yes" 31288 31289 # 31290 tst_compi_ioctlsocket_fionbio="unknown" 31291 tst_allow_ioctlsocket_fionbio="unknown" 31292 # 31293 if test "$ac_cv_func_ioctlsocket" = "yes"; then 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 31295$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; } 31296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31297/* end confdefs.h. */ 31298 31299 31300 $curl_includes_winsock2 31301 31302int main (void) 31303{ 31304 31305 int flags = 0; 31306 if(0 != ioctlsocket(0, FIONBIO, &flags)) 31307 return 1; 31308 31309 ; 31310 return 0; 31311} 31312 31313_ACEOF 31314if ac_fn_c_try_compile "$LINENO"; then : 31315 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31317$as_echo "yes" >&6; } 31318 tst_compi_ioctlsocket_fionbio="yes" 31319 31320else 31321 31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31323$as_echo "no" >&6; } 31324 tst_compi_ioctlsocket_fionbio="no" 31325 31326fi 31327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31328 fi 31329 # 31330 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then 31331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 31332$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; } 31333 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then 31334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31335$as_echo "yes" >&6; } 31336 tst_allow_ioctlsocket_fionbio="yes" 31337 else 31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31339$as_echo "no" >&6; } 31340 tst_allow_ioctlsocket_fionbio="no" 31341 fi 31342 fi 31343 # 31344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 31345$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; } 31346 if test "$tst_compi_ioctlsocket_fionbio" = "yes" && 31347 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then 31348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31349$as_echo "yes" >&6; } 31350 31351cat >>confdefs.h <<_ACEOF 31352#define HAVE_IOCTLSOCKET_FIONBIO 1 31353_ACEOF 31354 31355 ac_cv_func_ioctlsocket_fionbio="yes" 31356 else 31357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31358$as_echo "no" >&6; } 31359 ac_cv_func_ioctlsocket_fionbio="no" 31360 fi 31361 31362 else 31363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31364$as_echo "no" >&6; } 31365 ac_cv_func_ioctlsocket="no" 31366 fi 31367 31368 31369 # 31370 tst_links_ioctlsocket_camel="unknown" 31371 tst_proto_ioctlsocket_camel="unknown" 31372 tst_compi_ioctlsocket_camel="unknown" 31373 tst_allow_ioctlsocket_camel="unknown" 31374 # 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 31376$as_echo_n "checking if IoctlSocket can be linked... " >&6; } 31377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31378/* end confdefs.h. */ 31379 31380 31381#define IoctlSocket innocuous_IoctlSocket 31382#ifdef __STDC__ 31383# include <limits.h> 31384#else 31385# include <assert.h> 31386#endif 31387#undef IoctlSocket 31388#ifdef __cplusplus 31389extern "C" 31390#endif 31391char IoctlSocket (); 31392#if defined __stub_IoctlSocket || defined __stub___IoctlSocket 31393choke me 31394#endif 31395 31396int main (void) 31397{ 31398return IoctlSocket (); 31399 ; 31400 return 0; 31401} 31402 31403_ACEOF 31404if ac_fn_c_try_link "$LINENO"; then : 31405 31406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31407$as_echo "yes" >&6; } 31408 tst_links_ioctlsocket_camel="yes" 31409 31410else 31411 31412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31413$as_echo "no" >&6; } 31414 tst_links_ioctlsocket_camel="no" 31415 31416fi 31417rm -f core conftest.err conftest.$ac_objext \ 31418 conftest$ac_exeext conftest.$ac_ext 31419 # 31420 if test "$tst_links_ioctlsocket_camel" = "yes"; then 31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5 31422$as_echo_n "checking if IoctlSocket is prototyped... " >&6; } 31423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31424/* end confdefs.h. */ 31425 31426 $curl_includes_stropts 31427 31428_ACEOF 31429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31430 $EGREP "IoctlSocket" >/dev/null 2>&1; then : 31431 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31433$as_echo "yes" >&6; } 31434 tst_proto_ioctlsocket_camel="yes" 31435 31436else 31437 31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31439$as_echo "no" >&6; } 31440 tst_proto_ioctlsocket_camel="no" 31441 31442fi 31443rm -f conftest* 31444 31445 fi 31446 # 31447 if test "$tst_proto_ioctlsocket_camel" = "yes"; then 31448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 31449$as_echo_n "checking if IoctlSocket is compilable... " >&6; } 31450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31451/* end confdefs.h. */ 31452 31453 31454 $curl_includes_stropts 31455 31456int main (void) 31457{ 31458 31459 if(0 != IoctlSocket(0, 0, 0)) 31460 return 1; 31461 31462 ; 31463 return 0; 31464} 31465 31466_ACEOF 31467if ac_fn_c_try_compile "$LINENO"; then : 31468 31469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31470$as_echo "yes" >&6; } 31471 tst_compi_ioctlsocket_camel="yes" 31472 31473else 31474 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31476$as_echo "no" >&6; } 31477 tst_compi_ioctlsocket_camel="no" 31478 31479fi 31480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31481 fi 31482 # 31483 if test "$tst_compi_ioctlsocket_camel" = "yes"; then 31484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 31485$as_echo_n "checking if IoctlSocket usage allowed... " >&6; } 31486 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then 31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31488$as_echo "yes" >&6; } 31489 tst_allow_ioctlsocket_camel="yes" 31490 else 31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31492$as_echo "no" >&6; } 31493 tst_allow_ioctlsocket_camel="no" 31494 fi 31495 fi 31496 # 31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 31498$as_echo_n "checking if IoctlSocket might be used... " >&6; } 31499 if test "$tst_links_ioctlsocket_camel" = "yes" && 31500 test "$tst_proto_ioctlsocket_camel" = "yes" && 31501 test "$tst_compi_ioctlsocket_camel" = "yes" && 31502 test "$tst_allow_ioctlsocket_camel" = "yes"; then 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31504$as_echo "yes" >&6; } 31505 31506cat >>confdefs.h <<_ACEOF 31507#define HAVE_IOCTLSOCKET_CAMEL 1 31508_ACEOF 31509 31510 ac_cv_func_ioctlsocket_camel="yes" 31511 31512 # 31513 tst_compi_ioctlsocket_camel_fionbio="unknown" 31514 tst_allow_ioctlsocket_camel_fionbio="unknown" 31515 # 31516 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then 31517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 31518$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; } 31519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31520/* end confdefs.h. */ 31521 31522 31523 $curl_includes_stropts 31524 31525int main (void) 31526{ 31527 31528 long flags = 0; 31529 if(0 != ioctlsocket(0, FIONBIO, &flags)) 31530 return 1; 31531 31532 ; 31533 return 0; 31534} 31535 31536_ACEOF 31537if ac_fn_c_try_compile "$LINENO"; then : 31538 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31540$as_echo "yes" >&6; } 31541 tst_compi_ioctlsocket_camel_fionbio="yes" 31542 31543else 31544 31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31546$as_echo "no" >&6; } 31547 tst_compi_ioctlsocket_camel_fionbio="no" 31548 31549fi 31550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31551 fi 31552 # 31553 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then 31554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 31555$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; } 31556 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then 31557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31558$as_echo "yes" >&6; } 31559 tst_allow_ioctlsocket_camel_fionbio="yes" 31560 else 31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31562$as_echo "no" >&6; } 31563 tst_allow_ioctlsocket_camel_fionbio="no" 31564 fi 31565 fi 31566 # 31567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 31568$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; } 31569 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && 31570 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then 31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31572$as_echo "yes" >&6; } 31573 31574cat >>confdefs.h <<_ACEOF 31575#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1 31576_ACEOF 31577 31578 ac_cv_func_ioctlsocket_camel_fionbio="yes" 31579 else 31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31581$as_echo "no" >&6; } 31582 ac_cv_func_ioctlsocket_camel_fionbio="no" 31583 fi 31584 31585 else 31586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31587$as_echo "no" >&6; } 31588 ac_cv_func_ioctlsocket_camel="no" 31589 fi 31590 31591 31592 # 31593 tst_links_localtime_r="unknown" 31594 tst_proto_localtime_r="unknown" 31595 tst_compi_localtime_r="unknown" 31596 tst_works_localtime_r="unknown" 31597 tst_allow_localtime_r="unknown" 31598 # 31599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5 31600$as_echo_n "checking if localtime_r can be linked... " >&6; } 31601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31602/* end confdefs.h. */ 31603 31604 31605#define localtime_r innocuous_localtime_r 31606#ifdef __STDC__ 31607# include <limits.h> 31608#else 31609# include <assert.h> 31610#endif 31611#undef localtime_r 31612#ifdef __cplusplus 31613extern "C" 31614#endif 31615char localtime_r (); 31616#if defined __stub_localtime_r || defined __stub___localtime_r 31617choke me 31618#endif 31619 31620int main (void) 31621{ 31622return localtime_r (); 31623 ; 31624 return 0; 31625} 31626 31627_ACEOF 31628if ac_fn_c_try_link "$LINENO"; then : 31629 31630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31631$as_echo "yes" >&6; } 31632 tst_links_localtime_r="yes" 31633 31634else 31635 31636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31637$as_echo "no" >&6; } 31638 tst_links_localtime_r="no" 31639 31640fi 31641rm -f core conftest.err conftest.$ac_objext \ 31642 conftest$ac_exeext conftest.$ac_ext 31643 # 31644 if test "$tst_links_localtime_r" = "yes"; then 31645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5 31646$as_echo_n "checking if localtime_r is prototyped... " >&6; } 31647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31648/* end confdefs.h. */ 31649 31650 $curl_includes_time 31651 31652_ACEOF 31653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31654 $EGREP "localtime_r" >/dev/null 2>&1; then : 31655 31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31657$as_echo "yes" >&6; } 31658 tst_proto_localtime_r="yes" 31659 31660else 31661 31662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31663$as_echo "no" >&6; } 31664 tst_proto_localtime_r="no" 31665 31666fi 31667rm -f conftest* 31668 31669 fi 31670 # 31671 if test "$tst_proto_localtime_r" = "yes"; then 31672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5 31673$as_echo_n "checking if localtime_r is compilable... " >&6; } 31674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31675/* end confdefs.h. */ 31676 31677 31678 $curl_includes_time 31679 31680int main (void) 31681{ 31682 31683 if(0 != localtime_r(0, 0)) 31684 return 1; 31685 31686 ; 31687 return 0; 31688} 31689 31690_ACEOF 31691if ac_fn_c_try_compile "$LINENO"; then : 31692 31693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31694$as_echo "yes" >&6; } 31695 tst_compi_localtime_r="yes" 31696 31697else 31698 31699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31700$as_echo "no" >&6; } 31701 tst_compi_localtime_r="no" 31702 31703fi 31704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31705 fi 31706 # 31707 if test "x$cross_compiling" != "xyes" && 31708 test "$tst_compi_localtime_r" = "yes"; then 31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5 31710$as_echo_n "checking if localtime_r seems to work... " >&6; } 31711 if test "$cross_compiling" = yes; then : 31712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31714as_fn_error $? "cannot run test program while cross compiling 31715See \`config.log' for more details" "$LINENO" 5; } 31716else 31717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31718/* end confdefs.h. */ 31719 31720 31721 $curl_includes_stdlib 31722 $curl_includes_time 31723 31724int main (void) 31725{ 31726 31727 time_t clock = 1170352587; 31728 struct tm *tmp = 0; 31729 struct tm result; 31730 tmp = localtime_r(&clock, &result); 31731 if(tmp) 31732 exit(0); 31733 else 31734 exit(1); 31735 31736 ; 31737 return 0; 31738} 31739 31740_ACEOF 31741if ac_fn_c_try_run "$LINENO"; then : 31742 31743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31744$as_echo "yes" >&6; } 31745 tst_works_localtime_r="yes" 31746 31747else 31748 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31750$as_echo "no" >&6; } 31751 tst_works_localtime_r="no" 31752 31753fi 31754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31755 conftest.$ac_objext conftest.beam conftest.$ac_ext 31756fi 31757 31758 fi 31759 # 31760 if test "$tst_compi_localtime_r" = "yes" && 31761 test "$tst_works_localtime_r" != "no"; then 31762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5 31763$as_echo_n "checking if localtime_r usage allowed... " >&6; } 31764 if test "x$curl_disallow_localtime_r" != "xyes"; then 31765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31766$as_echo "yes" >&6; } 31767 tst_allow_localtime_r="yes" 31768 else 31769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31770$as_echo "no" >&6; } 31771 tst_allow_localtime_r="no" 31772 fi 31773 fi 31774 # 31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5 31776$as_echo_n "checking if localtime_r might be used... " >&6; } 31777 if test "$tst_links_localtime_r" = "yes" && 31778 test "$tst_proto_localtime_r" = "yes" && 31779 test "$tst_compi_localtime_r" = "yes" && 31780 test "$tst_allow_localtime_r" = "yes" && 31781 test "$tst_works_localtime_r" != "no"; then 31782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31783$as_echo "yes" >&6; } 31784 31785cat >>confdefs.h <<_ACEOF 31786#define HAVE_LOCALTIME_R 1 31787_ACEOF 31788 31789 ac_cv_func_localtime_r="yes" 31790 else 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31792$as_echo "no" >&6; } 31793 ac_cv_func_localtime_r="no" 31794 fi 31795 31796 31797 # 31798 tst_links_memrchr="unknown" 31799 tst_macro_memrchr="unknown" 31800 tst_proto_memrchr="unknown" 31801 tst_compi_memrchr="unknown" 31802 tst_allow_memrchr="unknown" 31803 # 31804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5 31805$as_echo_n "checking if memrchr can be linked... " >&6; } 31806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31807/* end confdefs.h. */ 31808 31809 31810#define memrchr innocuous_memrchr 31811#ifdef __STDC__ 31812# include <limits.h> 31813#else 31814# include <assert.h> 31815#endif 31816#undef memrchr 31817#ifdef __cplusplus 31818extern "C" 31819#endif 31820char memrchr (); 31821#if defined __stub_memrchr || defined __stub___memrchr 31822choke me 31823#endif 31824 31825int main (void) 31826{ 31827return memrchr (); 31828 ; 31829 return 0; 31830} 31831 31832_ACEOF 31833if ac_fn_c_try_link "$LINENO"; then : 31834 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31836$as_echo "yes" >&6; } 31837 tst_links_memrchr="yes" 31838 31839else 31840 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31842$as_echo "no" >&6; } 31843 tst_links_memrchr="no" 31844 31845fi 31846rm -f core conftest.err conftest.$ac_objext \ 31847 conftest$ac_exeext conftest.$ac_ext 31848 # 31849 if test "$tst_links_memrchr" = "no"; then 31850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5 31851$as_echo_n "checking if memrchr seems a macro... " >&6; } 31852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31853/* end confdefs.h. */ 31854 31855 31856 $curl_includes_string 31857 31858int main (void) 31859{ 31860 31861 if(0 != memrchr(0, 0, 0)) 31862 return 1; 31863 31864 ; 31865 return 0; 31866} 31867 31868_ACEOF 31869if ac_fn_c_try_link "$LINENO"; then : 31870 31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31872$as_echo "yes" >&6; } 31873 tst_macro_memrchr="yes" 31874 31875else 31876 31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31878$as_echo "no" >&6; } 31879 tst_macro_memrchr="no" 31880 31881fi 31882rm -f core conftest.err conftest.$ac_objext \ 31883 conftest$ac_exeext conftest.$ac_ext 31884 fi 31885 # 31886 if test "$tst_links_memrchr" = "yes"; then 31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5 31888$as_echo_n "checking if memrchr is prototyped... " >&6; } 31889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31890/* end confdefs.h. */ 31891 31892 $curl_includes_string 31893 31894_ACEOF 31895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31896 $EGREP "memrchr" >/dev/null 2>&1; then : 31897 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31899$as_echo "yes" >&6; } 31900 tst_proto_memrchr="yes" 31901 31902else 31903 31904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31905$as_echo "no" >&6; } 31906 tst_proto_memrchr="no" 31907 31908fi 31909rm -f conftest* 31910 31911 fi 31912 # 31913 if test "$tst_proto_memrchr" = "yes" || 31914 test "$tst_macro_memrchr" = "yes"; then 31915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5 31916$as_echo_n "checking if memrchr is compilable... " >&6; } 31917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31918/* end confdefs.h. */ 31919 31920 31921 $curl_includes_string 31922 31923int main (void) 31924{ 31925 31926 if(0 != memrchr(0, 0, 0)) 31927 return 1; 31928 31929 ; 31930 return 0; 31931} 31932 31933_ACEOF 31934if ac_fn_c_try_compile "$LINENO"; then : 31935 31936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31937$as_echo "yes" >&6; } 31938 tst_compi_memrchr="yes" 31939 31940else 31941 31942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31943$as_echo "no" >&6; } 31944 tst_compi_memrchr="no" 31945 31946fi 31947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31948 fi 31949 # 31950 if test "$tst_compi_memrchr" = "yes"; then 31951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5 31952$as_echo_n "checking if memrchr usage allowed... " >&6; } 31953 if test "x$curl_disallow_memrchr" != "xyes"; then 31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31955$as_echo "yes" >&6; } 31956 tst_allow_memrchr="yes" 31957 else 31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31959$as_echo "no" >&6; } 31960 tst_allow_memrchr="no" 31961 fi 31962 fi 31963 # 31964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5 31965$as_echo_n "checking if memrchr might be used... " >&6; } 31966 if (test "$tst_proto_memrchr" = "yes" || 31967 test "$tst_macro_memrchr" = "yes") && 31968 test "$tst_compi_memrchr" = "yes" && 31969 test "$tst_allow_memrchr" = "yes"; then 31970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31971$as_echo "yes" >&6; } 31972 31973cat >>confdefs.h <<_ACEOF 31974#define HAVE_MEMRCHR 1 31975_ACEOF 31976 31977 ac_cv_func_memrchr="yes" 31978 else 31979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31980$as_echo "no" >&6; } 31981 ac_cv_func_memrchr="no" 31982 fi 31983 31984 31985curl_includes_poll="\ 31986/* includes start */ 31987#ifdef HAVE_SYS_TYPES_H 31988# include <sys/types.h> 31989#endif 31990#ifdef HAVE_POLL_H 31991# include <poll.h> 31992#endif 31993#ifdef HAVE_SYS_POLL_H 31994# include <sys/poll.h> 31995#endif 31996/* includes end */" 31997 for ac_header in sys/types.h poll.h sys/poll.h 31998do : 31999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32000ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll 32001" 32002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 32003 cat >>confdefs.h <<_ACEOF 32004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 32005_ACEOF 32006 32007fi 32008 32009done 32010 32011 32012 32013 # 32014 tst_links_poll="unknown" 32015 tst_proto_poll="unknown" 32016 tst_compi_poll="unknown" 32017 tst_works_poll="unknown" 32018 tst_allow_poll="unknown" 32019 # 32020 case $host_os in 32021 darwin*|interix*) 32022 curl_disallow_poll="yes" 32023 ;; 32024 esac 32025 # 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5 32027$as_echo_n "checking if poll can be linked... " >&6; } 32028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32029/* end confdefs.h. */ 32030 32031 32032 $curl_includes_poll 32033 32034int main (void) 32035{ 32036 32037 if(0 != poll(0, 0, 0)) 32038 return 1; 32039 32040 ; 32041 return 0; 32042} 32043 32044_ACEOF 32045if ac_fn_c_try_link "$LINENO"; then : 32046 32047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32048$as_echo "yes" >&6; } 32049 tst_links_poll="yes" 32050 32051else 32052 32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32054$as_echo "no" >&6; } 32055 tst_links_poll="no" 32056 32057fi 32058rm -f core conftest.err conftest.$ac_objext \ 32059 conftest$ac_exeext conftest.$ac_ext 32060 # 32061 if test "$tst_links_poll" = "yes"; then 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5 32063$as_echo_n "checking if poll is prototyped... " >&6; } 32064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32065/* end confdefs.h. */ 32066 32067 $curl_includes_poll 32068 32069_ACEOF 32070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32071 $EGREP "poll" >/dev/null 2>&1; then : 32072 32073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32074$as_echo "yes" >&6; } 32075 tst_proto_poll="yes" 32076 32077else 32078 32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32080$as_echo "no" >&6; } 32081 tst_proto_poll="no" 32082 32083fi 32084rm -f conftest* 32085 32086 fi 32087 # 32088 if test "$tst_proto_poll" = "yes"; then 32089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5 32090$as_echo_n "checking if poll is compilable... " >&6; } 32091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32092/* end confdefs.h. */ 32093 32094 32095 $curl_includes_poll 32096 32097int main (void) 32098{ 32099 32100 if(0 != poll(0, 0, 0)) 32101 return 1; 32102 32103 ; 32104 return 0; 32105} 32106 32107_ACEOF 32108if ac_fn_c_try_compile "$LINENO"; then : 32109 32110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32111$as_echo "yes" >&6; } 32112 tst_compi_poll="yes" 32113 32114else 32115 32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32117$as_echo "no" >&6; } 32118 tst_compi_poll="no" 32119 32120fi 32121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32122 fi 32123 # 32124 if test "x$cross_compiling" != "xyes" && 32125 test "$tst_compi_poll" = "yes"; then 32126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5 32127$as_echo_n "checking if poll seems to work... " >&6; } 32128 if test "$cross_compiling" = yes; then : 32129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32131as_fn_error $? "cannot run test program while cross compiling 32132See \`config.log' for more details" "$LINENO" 5; } 32133else 32134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32135/* end confdefs.h. */ 32136 32137 32138 $curl_includes_stdlib 32139 $curl_includes_poll 32140 32141int main (void) 32142{ 32143 32144 if(0 != poll(0, 0, 10)) 32145 exit(1); /* fail */ 32146 else 32147 exit(0); 32148 32149 ; 32150 return 0; 32151} 32152 32153_ACEOF 32154if ac_fn_c_try_run "$LINENO"; then : 32155 32156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32157$as_echo "yes" >&6; } 32158 tst_works_poll="yes" 32159 32160else 32161 32162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32163$as_echo "no" >&6; } 32164 tst_works_poll="no" 32165 32166fi 32167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32168 conftest.$ac_objext conftest.beam conftest.$ac_ext 32169fi 32170 32171 fi 32172 # 32173 if test "$tst_compi_poll" = "yes" && 32174 test "$tst_works_poll" != "no"; then 32175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5 32176$as_echo_n "checking if poll usage allowed... " >&6; } 32177 if test "x$curl_disallow_poll" != "xyes"; then 32178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32179$as_echo "yes" >&6; } 32180 tst_allow_poll="yes" 32181 else 32182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32183$as_echo "no" >&6; } 32184 tst_allow_poll="no" 32185 fi 32186 fi 32187 # 32188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5 32189$as_echo_n "checking if poll might be used... " >&6; } 32190 if test "$tst_links_poll" = "yes" && 32191 test "$tst_proto_poll" = "yes" && 32192 test "$tst_compi_poll" = "yes" && 32193 test "$tst_allow_poll" = "yes" && 32194 test "$tst_works_poll" != "no"; then 32195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32196$as_echo "yes" >&6; } 32197 32198cat >>confdefs.h <<_ACEOF 32199#define HAVE_POLL 1 32200_ACEOF 32201 32202 32203cat >>confdefs.h <<_ACEOF 32204#define HAVE_POLL_FINE 1 32205_ACEOF 32206 32207 ac_cv_func_poll="yes" 32208 else 32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32210$as_echo "no" >&6; } 32211 ac_cv_func_poll="no" 32212 fi 32213 32214 32215 # 32216 tst_links_setsockopt="unknown" 32217 tst_proto_setsockopt="unknown" 32218 tst_compi_setsockopt="unknown" 32219 tst_allow_setsockopt="unknown" 32220 # 32221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5 32222$as_echo_n "checking if setsockopt can be linked... " >&6; } 32223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32224/* end confdefs.h. */ 32225 32226 32227 $curl_includes_winsock2 32228 $curl_includes_sys_socket 32229 32230int main (void) 32231{ 32232 32233 if(0 != setsockopt(0, 0, 0, 0, 0)) 32234 return 1; 32235 32236 ; 32237 return 0; 32238} 32239 32240_ACEOF 32241if ac_fn_c_try_link "$LINENO"; then : 32242 32243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32244$as_echo "yes" >&6; } 32245 tst_links_setsockopt="yes" 32246 32247else 32248 32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32250$as_echo "no" >&6; } 32251 tst_links_setsockopt="no" 32252 32253fi 32254rm -f core conftest.err conftest.$ac_objext \ 32255 conftest$ac_exeext conftest.$ac_ext 32256 # 32257 if test "$tst_links_setsockopt" = "yes"; then 32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5 32259$as_echo_n "checking if setsockopt is prototyped... " >&6; } 32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32261/* end confdefs.h. */ 32262 32263 $curl_includes_winsock2 32264 $curl_includes_sys_socket 32265 32266_ACEOF 32267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32268 $EGREP "setsockopt" >/dev/null 2>&1; then : 32269 32270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32271$as_echo "yes" >&6; } 32272 tst_proto_setsockopt="yes" 32273 32274else 32275 32276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32277$as_echo "no" >&6; } 32278 tst_proto_setsockopt="no" 32279 32280fi 32281rm -f conftest* 32282 32283 fi 32284 # 32285 if test "$tst_proto_setsockopt" = "yes"; then 32286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5 32287$as_echo_n "checking if setsockopt is compilable... " >&6; } 32288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32289/* end confdefs.h. */ 32290 32291 32292 $curl_includes_winsock2 32293 $curl_includes_sys_socket 32294 32295int main (void) 32296{ 32297 32298 if(0 != setsockopt(0, 0, 0, 0, 0)) 32299 return 1; 32300 32301 ; 32302 return 0; 32303} 32304 32305_ACEOF 32306if ac_fn_c_try_compile "$LINENO"; then : 32307 32308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32309$as_echo "yes" >&6; } 32310 tst_compi_setsockopt="yes" 32311 32312else 32313 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32315$as_echo "no" >&6; } 32316 tst_compi_setsockopt="no" 32317 32318fi 32319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32320 fi 32321 # 32322 if test "$tst_compi_setsockopt" = "yes"; then 32323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5 32324$as_echo_n "checking if setsockopt usage allowed... " >&6; } 32325 if test "x$curl_disallow_setsockopt" != "xyes"; then 32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32327$as_echo "yes" >&6; } 32328 tst_allow_setsockopt="yes" 32329 else 32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32331$as_echo "no" >&6; } 32332 tst_allow_setsockopt="no" 32333 fi 32334 fi 32335 # 32336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5 32337$as_echo_n "checking if setsockopt might be used... " >&6; } 32338 if test "$tst_links_setsockopt" = "yes" && 32339 test "$tst_proto_setsockopt" = "yes" && 32340 test "$tst_compi_setsockopt" = "yes" && 32341 test "$tst_allow_setsockopt" = "yes"; then 32342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32343$as_echo "yes" >&6; } 32344 32345cat >>confdefs.h <<_ACEOF 32346#define HAVE_SETSOCKOPT 1 32347_ACEOF 32348 32349 ac_cv_func_setsockopt="yes" 32350 32351 # 32352 tst_compi_setsockopt_so_nonblock="unknown" 32353 tst_allow_setsockopt_so_nonblock="unknown" 32354 # 32355 if test "$ac_cv_func_setsockopt" = "yes"; then 32356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5 32357$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; } 32358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32359/* end confdefs.h. */ 32360 32361 32362 $curl_includes_winsock2 32363 $curl_includes_sys_socket 32364 32365int main (void) 32366{ 32367 32368 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0)) 32369 return 1; 32370 32371 ; 32372 return 0; 32373} 32374 32375_ACEOF 32376if ac_fn_c_try_compile "$LINENO"; then : 32377 32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32379$as_echo "yes" >&6; } 32380 tst_compi_setsockopt_so_nonblock="yes" 32381 32382else 32383 32384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32385$as_echo "no" >&6; } 32386 tst_compi_setsockopt_so_nonblock="no" 32387 32388fi 32389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32390 fi 32391 # 32392 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5 32394$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; } 32395 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then 32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32397$as_echo "yes" >&6; } 32398 tst_allow_setsockopt_so_nonblock="yes" 32399 else 32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32401$as_echo "no" >&6; } 32402 tst_allow_setsockopt_so_nonblock="no" 32403 fi 32404 fi 32405 # 32406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5 32407$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; } 32408 if test "$tst_compi_setsockopt_so_nonblock" = "yes" && 32409 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then 32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32411$as_echo "yes" >&6; } 32412 32413cat >>confdefs.h <<_ACEOF 32414#define HAVE_SETSOCKOPT_SO_NONBLOCK 1 32415_ACEOF 32416 32417 ac_cv_func_setsockopt_so_nonblock="yes" 32418 else 32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32420$as_echo "no" >&6; } 32421 ac_cv_func_setsockopt_so_nonblock="no" 32422 fi 32423 32424 else 32425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32426$as_echo "no" >&6; } 32427 ac_cv_func_setsockopt="no" 32428 fi 32429 32430 32431curl_includes_signal="\ 32432/* includes start */ 32433#ifdef HAVE_SYS_TYPES_H 32434# include <sys/types.h> 32435#endif 32436#ifdef HAVE_SIGNAL_H 32437# include <signal.h> 32438#endif 32439/* includes end */" 32440 for ac_header in sys/types.h signal.h 32441do : 32442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32443ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal 32444" 32445if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 32446 cat >>confdefs.h <<_ACEOF 32447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 32448_ACEOF 32449 32450fi 32451 32452done 32453 32454 32455 32456 # 32457 tst_links_sigaction="unknown" 32458 tst_proto_sigaction="unknown" 32459 tst_compi_sigaction="unknown" 32460 tst_allow_sigaction="unknown" 32461 # 32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5 32463$as_echo_n "checking if sigaction can be linked... " >&6; } 32464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32465/* end confdefs.h. */ 32466 32467 32468#define sigaction innocuous_sigaction 32469#ifdef __STDC__ 32470# include <limits.h> 32471#else 32472# include <assert.h> 32473#endif 32474#undef sigaction 32475#ifdef __cplusplus 32476extern "C" 32477#endif 32478char sigaction (); 32479#if defined __stub_sigaction || defined __stub___sigaction 32480choke me 32481#endif 32482 32483int main (void) 32484{ 32485return sigaction (); 32486 ; 32487 return 0; 32488} 32489 32490_ACEOF 32491if ac_fn_c_try_link "$LINENO"; then : 32492 32493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32494$as_echo "yes" >&6; } 32495 tst_links_sigaction="yes" 32496 32497else 32498 32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32500$as_echo "no" >&6; } 32501 tst_links_sigaction="no" 32502 32503fi 32504rm -f core conftest.err conftest.$ac_objext \ 32505 conftest$ac_exeext conftest.$ac_ext 32506 # 32507 if test "$tst_links_sigaction" = "yes"; then 32508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5 32509$as_echo_n "checking if sigaction is prototyped... " >&6; } 32510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32511/* end confdefs.h. */ 32512 32513 $curl_includes_signal 32514 32515_ACEOF 32516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32517 $EGREP "sigaction" >/dev/null 2>&1; then : 32518 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32520$as_echo "yes" >&6; } 32521 tst_proto_sigaction="yes" 32522 32523else 32524 32525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32526$as_echo "no" >&6; } 32527 tst_proto_sigaction="no" 32528 32529fi 32530rm -f conftest* 32531 32532 fi 32533 # 32534 if test "$tst_proto_sigaction" = "yes"; then 32535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5 32536$as_echo_n "checking if sigaction is compilable... " >&6; } 32537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32538/* end confdefs.h. */ 32539 32540 32541 $curl_includes_signal 32542 32543int main (void) 32544{ 32545 32546 if(0 != sigaction(0, 0, 0)) 32547 return 1; 32548 32549 ; 32550 return 0; 32551} 32552 32553_ACEOF 32554if ac_fn_c_try_compile "$LINENO"; then : 32555 32556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32557$as_echo "yes" >&6; } 32558 tst_compi_sigaction="yes" 32559 32560else 32561 32562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32563$as_echo "no" >&6; } 32564 tst_compi_sigaction="no" 32565 32566fi 32567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32568 fi 32569 # 32570 if test "$tst_compi_sigaction" = "yes"; then 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5 32572$as_echo_n "checking if sigaction usage allowed... " >&6; } 32573 if test "x$curl_disallow_sigaction" != "xyes"; then 32574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32575$as_echo "yes" >&6; } 32576 tst_allow_sigaction="yes" 32577 else 32578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32579$as_echo "no" >&6; } 32580 tst_allow_sigaction="no" 32581 fi 32582 fi 32583 # 32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5 32585$as_echo_n "checking if sigaction might be used... " >&6; } 32586 if test "$tst_links_sigaction" = "yes" && 32587 test "$tst_proto_sigaction" = "yes" && 32588 test "$tst_compi_sigaction" = "yes" && 32589 test "$tst_allow_sigaction" = "yes"; then 32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32591$as_echo "yes" >&6; } 32592 32593cat >>confdefs.h <<_ACEOF 32594#define HAVE_SIGACTION 1 32595_ACEOF 32596 32597 ac_cv_func_sigaction="yes" 32598 else 32599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32600$as_echo "no" >&6; } 32601 ac_cv_func_sigaction="no" 32602 fi 32603 32604 32605 # 32606 tst_links_siginterrupt="unknown" 32607 tst_proto_siginterrupt="unknown" 32608 tst_compi_siginterrupt="unknown" 32609 tst_allow_siginterrupt="unknown" 32610 # 32611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5 32612$as_echo_n "checking if siginterrupt can be linked... " >&6; } 32613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32614/* end confdefs.h. */ 32615 32616 32617#define siginterrupt innocuous_siginterrupt 32618#ifdef __STDC__ 32619# include <limits.h> 32620#else 32621# include <assert.h> 32622#endif 32623#undef siginterrupt 32624#ifdef __cplusplus 32625extern "C" 32626#endif 32627char siginterrupt (); 32628#if defined __stub_siginterrupt || defined __stub___siginterrupt 32629choke me 32630#endif 32631 32632int main (void) 32633{ 32634return siginterrupt (); 32635 ; 32636 return 0; 32637} 32638 32639_ACEOF 32640if ac_fn_c_try_link "$LINENO"; then : 32641 32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32643$as_echo "yes" >&6; } 32644 tst_links_siginterrupt="yes" 32645 32646else 32647 32648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32649$as_echo "no" >&6; } 32650 tst_links_siginterrupt="no" 32651 32652fi 32653rm -f core conftest.err conftest.$ac_objext \ 32654 conftest$ac_exeext conftest.$ac_ext 32655 # 32656 if test "$tst_links_siginterrupt" = "yes"; then 32657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5 32658$as_echo_n "checking if siginterrupt is prototyped... " >&6; } 32659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32660/* end confdefs.h. */ 32661 32662 $curl_includes_signal 32663 32664_ACEOF 32665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32666 $EGREP "siginterrupt" >/dev/null 2>&1; then : 32667 32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32669$as_echo "yes" >&6; } 32670 tst_proto_siginterrupt="yes" 32671 32672else 32673 32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32675$as_echo "no" >&6; } 32676 tst_proto_siginterrupt="no" 32677 32678fi 32679rm -f conftest* 32680 32681 fi 32682 # 32683 if test "$tst_proto_siginterrupt" = "yes"; then 32684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5 32685$as_echo_n "checking if siginterrupt is compilable... " >&6; } 32686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32687/* end confdefs.h. */ 32688 32689 32690 $curl_includes_signal 32691 32692int main (void) 32693{ 32694 32695 if(0 != siginterrupt(0, 0)) 32696 return 1; 32697 32698 ; 32699 return 0; 32700} 32701 32702_ACEOF 32703if ac_fn_c_try_compile "$LINENO"; then : 32704 32705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32706$as_echo "yes" >&6; } 32707 tst_compi_siginterrupt="yes" 32708 32709else 32710 32711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32712$as_echo "no" >&6; } 32713 tst_compi_siginterrupt="no" 32714 32715fi 32716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32717 fi 32718 # 32719 if test "$tst_compi_siginterrupt" = "yes"; then 32720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5 32721$as_echo_n "checking if siginterrupt usage allowed... " >&6; } 32722 if test "x$curl_disallow_siginterrupt" != "xyes"; then 32723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32724$as_echo "yes" >&6; } 32725 tst_allow_siginterrupt="yes" 32726 else 32727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32728$as_echo "no" >&6; } 32729 tst_allow_siginterrupt="no" 32730 fi 32731 fi 32732 # 32733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5 32734$as_echo_n "checking if siginterrupt might be used... " >&6; } 32735 if test "$tst_links_siginterrupt" = "yes" && 32736 test "$tst_proto_siginterrupt" = "yes" && 32737 test "$tst_compi_siginterrupt" = "yes" && 32738 test "$tst_allow_siginterrupt" = "yes"; then 32739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32740$as_echo "yes" >&6; } 32741 32742cat >>confdefs.h <<_ACEOF 32743#define HAVE_SIGINTERRUPT 1 32744_ACEOF 32745 32746 ac_cv_func_siginterrupt="yes" 32747 else 32748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32749$as_echo "no" >&6; } 32750 ac_cv_func_siginterrupt="no" 32751 fi 32752 32753 32754 # 32755 tst_links_signal="unknown" 32756 tst_proto_signal="unknown" 32757 tst_compi_signal="unknown" 32758 tst_allow_signal="unknown" 32759 # 32760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5 32761$as_echo_n "checking if signal can be linked... " >&6; } 32762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32763/* end confdefs.h. */ 32764 32765 32766#define signal innocuous_signal 32767#ifdef __STDC__ 32768# include <limits.h> 32769#else 32770# include <assert.h> 32771#endif 32772#undef signal 32773#ifdef __cplusplus 32774extern "C" 32775#endif 32776char signal (); 32777#if defined __stub_signal || defined __stub___signal 32778choke me 32779#endif 32780 32781int main (void) 32782{ 32783return signal (); 32784 ; 32785 return 0; 32786} 32787 32788_ACEOF 32789if ac_fn_c_try_link "$LINENO"; then : 32790 32791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32792$as_echo "yes" >&6; } 32793 tst_links_signal="yes" 32794 32795else 32796 32797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32798$as_echo "no" >&6; } 32799 tst_links_signal="no" 32800 32801fi 32802rm -f core conftest.err conftest.$ac_objext \ 32803 conftest$ac_exeext conftest.$ac_ext 32804 # 32805 if test "$tst_links_signal" = "yes"; then 32806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5 32807$as_echo_n "checking if signal is prototyped... " >&6; } 32808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32809/* end confdefs.h. */ 32810 32811 $curl_includes_signal 32812 32813_ACEOF 32814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32815 $EGREP "signal" >/dev/null 2>&1; then : 32816 32817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32818$as_echo "yes" >&6; } 32819 tst_proto_signal="yes" 32820 32821else 32822 32823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32824$as_echo "no" >&6; } 32825 tst_proto_signal="no" 32826 32827fi 32828rm -f conftest* 32829 32830 fi 32831 # 32832 if test "$tst_proto_signal" = "yes"; then 32833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5 32834$as_echo_n "checking if signal is compilable... " >&6; } 32835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32836/* end confdefs.h. */ 32837 32838 32839 $curl_includes_signal 32840 32841int main (void) 32842{ 32843 32844 if(0 != signal(0, 0)) 32845 return 1; 32846 32847 ; 32848 return 0; 32849} 32850 32851_ACEOF 32852if ac_fn_c_try_compile "$LINENO"; then : 32853 32854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32855$as_echo "yes" >&6; } 32856 tst_compi_signal="yes" 32857 32858else 32859 32860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32861$as_echo "no" >&6; } 32862 tst_compi_signal="no" 32863 32864fi 32865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32866 fi 32867 # 32868 if test "$tst_compi_signal" = "yes"; then 32869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5 32870$as_echo_n "checking if signal usage allowed... " >&6; } 32871 if test "x$curl_disallow_signal" != "xyes"; then 32872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32873$as_echo "yes" >&6; } 32874 tst_allow_signal="yes" 32875 else 32876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32877$as_echo "no" >&6; } 32878 tst_allow_signal="no" 32879 fi 32880 fi 32881 # 32882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5 32883$as_echo_n "checking if signal might be used... " >&6; } 32884 if test "$tst_links_signal" = "yes" && 32885 test "$tst_proto_signal" = "yes" && 32886 test "$tst_compi_signal" = "yes" && 32887 test "$tst_allow_signal" = "yes"; then 32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32889$as_echo "yes" >&6; } 32890 32891cat >>confdefs.h <<_ACEOF 32892#define HAVE_SIGNAL 1 32893_ACEOF 32894 32895 ac_cv_func_signal="yes" 32896 else 32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32898$as_echo "no" >&6; } 32899 ac_cv_func_signal="no" 32900 fi 32901 32902 32903curl_includes_setjmp="\ 32904/* includes start */ 32905#ifdef HAVE_SYS_TYPES_H 32906# include <sys/types.h> 32907#endif 32908#ifdef HAVE_SETJMP_H 32909# include <setjmp.h> 32910#endif 32911/* includes end */" 32912 for ac_header in sys/types.h setjmp.h 32913do : 32914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32915ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp 32916" 32917if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 32918 cat >>confdefs.h <<_ACEOF 32919#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 32920_ACEOF 32921 32922fi 32923 32924done 32925 32926 32927 32928 # 32929 tst_links_sigsetjmp="unknown" 32930 tst_macro_sigsetjmp="unknown" 32931 tst_proto_sigsetjmp="unknown" 32932 tst_compi_sigsetjmp="unknown" 32933 tst_allow_sigsetjmp="unknown" 32934 # 32935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5 32936$as_echo_n "checking if sigsetjmp can be linked... " >&6; } 32937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32938/* end confdefs.h. */ 32939 32940 32941#define sigsetjmp innocuous_sigsetjmp 32942#ifdef __STDC__ 32943# include <limits.h> 32944#else 32945# include <assert.h> 32946#endif 32947#undef sigsetjmp 32948#ifdef __cplusplus 32949extern "C" 32950#endif 32951char sigsetjmp (); 32952#if defined __stub_sigsetjmp || defined __stub___sigsetjmp 32953choke me 32954#endif 32955 32956int main (void) 32957{ 32958return sigsetjmp (); 32959 ; 32960 return 0; 32961} 32962 32963_ACEOF 32964if ac_fn_c_try_link "$LINENO"; then : 32965 32966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32967$as_echo "yes" >&6; } 32968 tst_links_sigsetjmp="yes" 32969 32970else 32971 32972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32973$as_echo "no" >&6; } 32974 tst_links_sigsetjmp="no" 32975 32976fi 32977rm -f core conftest.err conftest.$ac_objext \ 32978 conftest$ac_exeext conftest.$ac_ext 32979 # 32980 if test "$tst_links_sigsetjmp" = "no"; then 32981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5 32982$as_echo_n "checking if sigsetjmp seems a macro... " >&6; } 32983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32984/* end confdefs.h. */ 32985 32986 32987 $curl_includes_setjmp 32988 32989int main (void) 32990{ 32991 32992 sigjmp_buf env; 32993 if(0 != sigsetjmp(env, 0)) 32994 return 1; 32995 32996 ; 32997 return 0; 32998} 32999 33000_ACEOF 33001if ac_fn_c_try_link "$LINENO"; then : 33002 33003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33004$as_echo "yes" >&6; } 33005 tst_macro_sigsetjmp="yes" 33006 33007else 33008 33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33010$as_echo "no" >&6; } 33011 tst_macro_sigsetjmp="no" 33012 33013fi 33014rm -f core conftest.err conftest.$ac_objext \ 33015 conftest$ac_exeext conftest.$ac_ext 33016 fi 33017 # 33018 if test "$tst_links_sigsetjmp" = "yes"; then 33019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5 33020$as_echo_n "checking if sigsetjmp is prototyped... " >&6; } 33021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33022/* end confdefs.h. */ 33023 33024 $curl_includes_setjmp 33025 33026_ACEOF 33027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33028 $EGREP "sigsetjmp" >/dev/null 2>&1; then : 33029 33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33031$as_echo "yes" >&6; } 33032 tst_proto_sigsetjmp="yes" 33033 33034else 33035 33036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33037$as_echo "no" >&6; } 33038 tst_proto_sigsetjmp="no" 33039 33040fi 33041rm -f conftest* 33042 33043 fi 33044 # 33045 if test "$tst_proto_sigsetjmp" = "yes" || 33046 test "$tst_macro_sigsetjmp" = "yes"; then 33047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5 33048$as_echo_n "checking if sigsetjmp is compilable... " >&6; } 33049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33050/* end confdefs.h. */ 33051 33052 33053 $curl_includes_setjmp 33054 33055int main (void) 33056{ 33057 33058 sigjmp_buf env; 33059 if(0 != sigsetjmp(env, 0)) 33060 return 1; 33061 33062 ; 33063 return 0; 33064} 33065 33066_ACEOF 33067if ac_fn_c_try_compile "$LINENO"; then : 33068 33069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33070$as_echo "yes" >&6; } 33071 tst_compi_sigsetjmp="yes" 33072 33073else 33074 33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33076$as_echo "no" >&6; } 33077 tst_compi_sigsetjmp="no" 33078 33079fi 33080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33081 fi 33082 # 33083 if test "$tst_compi_sigsetjmp" = "yes"; then 33084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5 33085$as_echo_n "checking if sigsetjmp usage allowed... " >&6; } 33086 if test "x$curl_disallow_sigsetjmp" != "xyes"; then 33087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33088$as_echo "yes" >&6; } 33089 tst_allow_sigsetjmp="yes" 33090 else 33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33092$as_echo "no" >&6; } 33093 tst_allow_sigsetjmp="no" 33094 fi 33095 fi 33096 # 33097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5 33098$as_echo_n "checking if sigsetjmp might be used... " >&6; } 33099 if (test "$tst_proto_sigsetjmp" = "yes" || 33100 test "$tst_macro_sigsetjmp" = "yes") && 33101 test "$tst_compi_sigsetjmp" = "yes" && 33102 test "$tst_allow_sigsetjmp" = "yes"; then 33103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33104$as_echo "yes" >&6; } 33105 33106cat >>confdefs.h <<_ACEOF 33107#define HAVE_SIGSETJMP 1 33108_ACEOF 33109 33110 ac_cv_func_sigsetjmp="yes" 33111 else 33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33113$as_echo "no" >&6; } 33114 ac_cv_func_sigsetjmp="no" 33115 fi 33116 33117 33118 # 33119 tst_links_socket="unknown" 33120 tst_proto_socket="unknown" 33121 tst_compi_socket="unknown" 33122 tst_allow_socket="unknown" 33123 # 33124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 33125$as_echo_n "checking if socket can be linked... " >&6; } 33126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33127/* end confdefs.h. */ 33128 33129 33130 $curl_includes_winsock2 33131 $curl_includes_sys_socket 33132 $curl_includes_socket 33133 33134int main (void) 33135{ 33136 33137 if(0 != socket(0, 0, 0)) 33138 return 1; 33139 33140 ; 33141 return 0; 33142} 33143 33144_ACEOF 33145if ac_fn_c_try_link "$LINENO"; then : 33146 33147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33148$as_echo "yes" >&6; } 33149 tst_links_socket="yes" 33150 33151else 33152 33153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33154$as_echo "no" >&6; } 33155 tst_links_socket="no" 33156 33157fi 33158rm -f core conftest.err conftest.$ac_objext \ 33159 conftest$ac_exeext conftest.$ac_ext 33160 # 33161 if test "$tst_links_socket" = "yes"; then 33162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 33163$as_echo_n "checking if socket is prototyped... " >&6; } 33164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33165/* end confdefs.h. */ 33166 33167 $curl_includes_winsock2 33168 $curl_includes_sys_socket 33169 $curl_includes_socket 33170 33171_ACEOF 33172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33173 $EGREP "socket" >/dev/null 2>&1; then : 33174 33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33176$as_echo "yes" >&6; } 33177 tst_proto_socket="yes" 33178 33179else 33180 33181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33182$as_echo "no" >&6; } 33183 tst_proto_socket="no" 33184 33185fi 33186rm -f conftest* 33187 33188 fi 33189 # 33190 if test "$tst_proto_socket" = "yes"; then 33191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 33192$as_echo_n "checking if socket is compilable... " >&6; } 33193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33194/* end confdefs.h. */ 33195 33196 33197 $curl_includes_winsock2 33198 $curl_includes_sys_socket 33199 $curl_includes_socket 33200 33201int main (void) 33202{ 33203 33204 if(0 != socket(0, 0, 0)) 33205 return 1; 33206 33207 ; 33208 return 0; 33209} 33210 33211_ACEOF 33212if ac_fn_c_try_compile "$LINENO"; then : 33213 33214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33215$as_echo "yes" >&6; } 33216 tst_compi_socket="yes" 33217 33218else 33219 33220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33221$as_echo "no" >&6; } 33222 tst_compi_socket="no" 33223 33224fi 33225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33226 fi 33227 # 33228 if test "$tst_compi_socket" = "yes"; then 33229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 33230$as_echo_n "checking if socket usage allowed... " >&6; } 33231 if test "x$curl_disallow_socket" != "xyes"; then 33232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33233$as_echo "yes" >&6; } 33234 tst_allow_socket="yes" 33235 else 33236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33237$as_echo "no" >&6; } 33238 tst_allow_socket="no" 33239 fi 33240 fi 33241 # 33242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 33243$as_echo_n "checking if socket might be used... " >&6; } 33244 if test "$tst_links_socket" = "yes" && 33245 test "$tst_proto_socket" = "yes" && 33246 test "$tst_compi_socket" = "yes" && 33247 test "$tst_allow_socket" = "yes"; then 33248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33249$as_echo "yes" >&6; } 33250 33251cat >>confdefs.h <<_ACEOF 33252#define HAVE_SOCKET 1 33253_ACEOF 33254 33255 ac_cv_func_socket="yes" 33256 else 33257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33258$as_echo "no" >&6; } 33259 ac_cv_func_socket="no" 33260 fi 33261 33262 33263 # 33264 tst_links_strcasecmp="unknown" 33265 tst_proto_strcasecmp="unknown" 33266 tst_compi_strcasecmp="unknown" 33267 tst_allow_strcasecmp="unknown" 33268 # 33269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 33270$as_echo_n "checking if strcasecmp can be linked... " >&6; } 33271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33272/* end confdefs.h. */ 33273 33274 33275#define strcasecmp innocuous_strcasecmp 33276#ifdef __STDC__ 33277# include <limits.h> 33278#else 33279# include <assert.h> 33280#endif 33281#undef strcasecmp 33282#ifdef __cplusplus 33283extern "C" 33284#endif 33285char strcasecmp (); 33286#if defined __stub_strcasecmp || defined __stub___strcasecmp 33287choke me 33288#endif 33289 33290int main (void) 33291{ 33292return strcasecmp (); 33293 ; 33294 return 0; 33295} 33296 33297_ACEOF 33298if ac_fn_c_try_link "$LINENO"; then : 33299 33300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33301$as_echo "yes" >&6; } 33302 tst_links_strcasecmp="yes" 33303 33304else 33305 33306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33307$as_echo "no" >&6; } 33308 tst_links_strcasecmp="no" 33309 33310fi 33311rm -f core conftest.err conftest.$ac_objext \ 33312 conftest$ac_exeext conftest.$ac_ext 33313 # 33314 if test "$tst_links_strcasecmp" = "yes"; then 33315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 33316$as_echo_n "checking if strcasecmp is prototyped... " >&6; } 33317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33318/* end confdefs.h. */ 33319 33320 $curl_includes_string 33321 33322_ACEOF 33323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33324 $EGREP "strcasecmp" >/dev/null 2>&1; then : 33325 33326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33327$as_echo "yes" >&6; } 33328 tst_proto_strcasecmp="yes" 33329 33330else 33331 33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33333$as_echo "no" >&6; } 33334 tst_proto_strcasecmp="no" 33335 33336fi 33337rm -f conftest* 33338 33339 fi 33340 # 33341 if test "$tst_proto_strcasecmp" = "yes"; then 33342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 33343$as_echo_n "checking if strcasecmp is compilable... " >&6; } 33344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33345/* end confdefs.h. */ 33346 33347 33348 $curl_includes_string 33349 33350int main (void) 33351{ 33352 33353 if(0 != strcasecmp(0, 0)) 33354 return 1; 33355 33356 ; 33357 return 0; 33358} 33359 33360_ACEOF 33361if ac_fn_c_try_compile "$LINENO"; then : 33362 33363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33364$as_echo "yes" >&6; } 33365 tst_compi_strcasecmp="yes" 33366 33367else 33368 33369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33370$as_echo "no" >&6; } 33371 tst_compi_strcasecmp="no" 33372 33373fi 33374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33375 fi 33376 # 33377 if test "$tst_compi_strcasecmp" = "yes"; then 33378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 33379$as_echo_n "checking if strcasecmp usage allowed... " >&6; } 33380 if test "x$curl_disallow_strcasecmp" != "xyes"; then 33381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33382$as_echo "yes" >&6; } 33383 tst_allow_strcasecmp="yes" 33384 else 33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33386$as_echo "no" >&6; } 33387 tst_allow_strcasecmp="no" 33388 fi 33389 fi 33390 # 33391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 33392$as_echo_n "checking if strcasecmp might be used... " >&6; } 33393 if test "$tst_links_strcasecmp" = "yes" && 33394 test "$tst_proto_strcasecmp" = "yes" && 33395 test "$tst_compi_strcasecmp" = "yes" && 33396 test "$tst_allow_strcasecmp" = "yes"; then 33397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33398$as_echo "yes" >&6; } 33399 33400cat >>confdefs.h <<_ACEOF 33401#define HAVE_STRCASECMP 1 33402_ACEOF 33403 33404 ac_cv_func_strcasecmp="yes" 33405 else 33406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33407$as_echo "no" >&6; } 33408 ac_cv_func_strcasecmp="no" 33409 fi 33410 33411 33412 # 33413 tst_links_strcasestr="unknown" 33414 tst_proto_strcasestr="unknown" 33415 tst_compi_strcasestr="unknown" 33416 tst_allow_strcasestr="unknown" 33417 # 33418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr can be linked" >&5 33419$as_echo_n "checking if strcasestr can be linked... " >&6; } 33420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33421/* end confdefs.h. */ 33422 33423 33424#define strcasestr innocuous_strcasestr 33425#ifdef __STDC__ 33426# include <limits.h> 33427#else 33428# include <assert.h> 33429#endif 33430#undef strcasestr 33431#ifdef __cplusplus 33432extern "C" 33433#endif 33434char strcasestr (); 33435#if defined __stub_strcasestr || defined __stub___strcasestr 33436choke me 33437#endif 33438 33439int main (void) 33440{ 33441return strcasestr (); 33442 ; 33443 return 0; 33444} 33445 33446_ACEOF 33447if ac_fn_c_try_link "$LINENO"; then : 33448 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33450$as_echo "yes" >&6; } 33451 tst_links_strcasestr="yes" 33452 33453else 33454 33455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33456$as_echo "no" >&6; } 33457 tst_links_strcasestr="no" 33458 33459fi 33460rm -f core conftest.err conftest.$ac_objext \ 33461 conftest$ac_exeext conftest.$ac_ext 33462 # 33463 if test "$tst_links_strcasestr" = "yes"; then 33464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is prototyped" >&5 33465$as_echo_n "checking if strcasestr is prototyped... " >&6; } 33466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33467/* end confdefs.h. */ 33468 33469 $curl_includes_string 33470 33471_ACEOF 33472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33473 $EGREP "strcasestr" >/dev/null 2>&1; then : 33474 33475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33476$as_echo "yes" >&6; } 33477 tst_proto_strcasestr="yes" 33478 33479else 33480 33481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33482$as_echo "no" >&6; } 33483 tst_proto_strcasestr="no" 33484 33485fi 33486rm -f conftest* 33487 33488 fi 33489 # 33490 if test "$tst_proto_strcasestr" = "yes"; then 33491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is compilable" >&5 33492$as_echo_n "checking if strcasestr is compilable... " >&6; } 33493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33494/* end confdefs.h. */ 33495 33496 33497 $curl_includes_string 33498 33499int main (void) 33500{ 33501 33502 if(0 != strcasestr(0, 0)) 33503 return 1; 33504 33505 ; 33506 return 0; 33507} 33508 33509_ACEOF 33510if ac_fn_c_try_compile "$LINENO"; then : 33511 33512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33513$as_echo "yes" >&6; } 33514 tst_compi_strcasestr="yes" 33515 33516else 33517 33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33519$as_echo "no" >&6; } 33520 tst_compi_strcasestr="no" 33521 33522fi 33523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33524 fi 33525 # 33526 if test "$tst_compi_strcasestr" = "yes"; then 33527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr usage allowed" >&5 33528$as_echo_n "checking if strcasestr usage allowed... " >&6; } 33529 if test "x$curl_disallow_strcasestr" != "xyes"; then 33530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33531$as_echo "yes" >&6; } 33532 tst_allow_strcasestr="yes" 33533 else 33534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33535$as_echo "no" >&6; } 33536 tst_allow_strcasestr="no" 33537 fi 33538 fi 33539 # 33540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr might be used" >&5 33541$as_echo_n "checking if strcasestr might be used... " >&6; } 33542 if test "$tst_links_strcasestr" = "yes" && 33543 test "$tst_proto_strcasestr" = "yes" && 33544 test "$tst_compi_strcasestr" = "yes" && 33545 test "$tst_allow_strcasestr" = "yes"; then 33546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33547$as_echo "yes" >&6; } 33548 33549cat >>confdefs.h <<_ACEOF 33550#define HAVE_STRCASESTR 1 33551_ACEOF 33552 33553 ac_cv_func_strcasestr="yes" 33554 else 33555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33556$as_echo "no" >&6; } 33557 ac_cv_func_strcasestr="no" 33558 fi 33559 33560 33561 # 33562 tst_links_strcmpi="unknown" 33563 tst_proto_strcmpi="unknown" 33564 tst_compi_strcmpi="unknown" 33565 tst_allow_strcmpi="unknown" 33566 # 33567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 33568$as_echo_n "checking if strcmpi can be linked... " >&6; } 33569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33570/* end confdefs.h. */ 33571 33572 33573#define strcmpi innocuous_strcmpi 33574#ifdef __STDC__ 33575# include <limits.h> 33576#else 33577# include <assert.h> 33578#endif 33579#undef strcmpi 33580#ifdef __cplusplus 33581extern "C" 33582#endif 33583char strcmpi (); 33584#if defined __stub_strcmpi || defined __stub___strcmpi 33585choke me 33586#endif 33587 33588int main (void) 33589{ 33590return strcmpi (); 33591 ; 33592 return 0; 33593} 33594 33595_ACEOF 33596if ac_fn_c_try_link "$LINENO"; then : 33597 33598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33599$as_echo "yes" >&6; } 33600 tst_links_strcmpi="yes" 33601 33602else 33603 33604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33605$as_echo "no" >&6; } 33606 tst_links_strcmpi="no" 33607 33608fi 33609rm -f core conftest.err conftest.$ac_objext \ 33610 conftest$ac_exeext conftest.$ac_ext 33611 # 33612 if test "$tst_links_strcmpi" = "yes"; then 33613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 33614$as_echo_n "checking if strcmpi is prototyped... " >&6; } 33615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33616/* end confdefs.h. */ 33617 33618 $curl_includes_string 33619 33620_ACEOF 33621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33622 $EGREP "strcmpi" >/dev/null 2>&1; then : 33623 33624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33625$as_echo "yes" >&6; } 33626 tst_proto_strcmpi="yes" 33627 33628else 33629 33630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33631$as_echo "no" >&6; } 33632 tst_proto_strcmpi="no" 33633 33634fi 33635rm -f conftest* 33636 33637 fi 33638 # 33639 if test "$tst_proto_strcmpi" = "yes"; then 33640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 33641$as_echo_n "checking if strcmpi is compilable... " >&6; } 33642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33643/* end confdefs.h. */ 33644 33645 33646 $curl_includes_string 33647 33648int main (void) 33649{ 33650 33651 if(0 != strcmpi(0, 0)) 33652 return 1; 33653 33654 ; 33655 return 0; 33656} 33657 33658_ACEOF 33659if ac_fn_c_try_compile "$LINENO"; then : 33660 33661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33662$as_echo "yes" >&6; } 33663 tst_compi_strcmpi="yes" 33664 33665else 33666 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33668$as_echo "no" >&6; } 33669 tst_compi_strcmpi="no" 33670 33671fi 33672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33673 fi 33674 # 33675 if test "$tst_compi_strcmpi" = "yes"; then 33676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 33677$as_echo_n "checking if strcmpi usage allowed... " >&6; } 33678 if test "x$curl_disallow_strcmpi" != "xyes"; then 33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33680$as_echo "yes" >&6; } 33681 tst_allow_strcmpi="yes" 33682 else 33683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33684$as_echo "no" >&6; } 33685 tst_allow_strcmpi="no" 33686 fi 33687 fi 33688 # 33689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 33690$as_echo_n "checking if strcmpi might be used... " >&6; } 33691 if test "$tst_links_strcmpi" = "yes" && 33692 test "$tst_proto_strcmpi" = "yes" && 33693 test "$tst_compi_strcmpi" = "yes" && 33694 test "$tst_allow_strcmpi" = "yes"; then 33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33696$as_echo "yes" >&6; } 33697 33698cat >>confdefs.h <<_ACEOF 33699#define HAVE_STRCMPI 1 33700_ACEOF 33701 33702 ac_cv_func_strcmpi="yes" 33703 else 33704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33705$as_echo "no" >&6; } 33706 ac_cv_func_strcmpi="no" 33707 fi 33708 33709 33710 # 33711 tst_links_strdup="unknown" 33712 tst_proto_strdup="unknown" 33713 tst_compi_strdup="unknown" 33714 tst_allow_strdup="unknown" 33715 # 33716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 33717$as_echo_n "checking if strdup can be linked... " >&6; } 33718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33719/* end confdefs.h. */ 33720 33721 33722#define strdup innocuous_strdup 33723#ifdef __STDC__ 33724# include <limits.h> 33725#else 33726# include <assert.h> 33727#endif 33728#undef strdup 33729#ifdef __cplusplus 33730extern "C" 33731#endif 33732char strdup (); 33733#if defined __stub_strdup || defined __stub___strdup 33734choke me 33735#endif 33736 33737int main (void) 33738{ 33739return strdup (); 33740 ; 33741 return 0; 33742} 33743 33744_ACEOF 33745if ac_fn_c_try_link "$LINENO"; then : 33746 33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33748$as_echo "yes" >&6; } 33749 tst_links_strdup="yes" 33750 33751else 33752 33753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33754$as_echo "no" >&6; } 33755 tst_links_strdup="no" 33756 33757fi 33758rm -f core conftest.err conftest.$ac_objext \ 33759 conftest$ac_exeext conftest.$ac_ext 33760 # 33761 if test "$tst_links_strdup" = "yes"; then 33762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 33763$as_echo_n "checking if strdup is prototyped... " >&6; } 33764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33765/* end confdefs.h. */ 33766 33767 $curl_includes_string 33768 33769_ACEOF 33770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33771 $EGREP "strdup" >/dev/null 2>&1; then : 33772 33773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33774$as_echo "yes" >&6; } 33775 tst_proto_strdup="yes" 33776 33777else 33778 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33780$as_echo "no" >&6; } 33781 tst_proto_strdup="no" 33782 33783fi 33784rm -f conftest* 33785 33786 fi 33787 # 33788 if test "$tst_proto_strdup" = "yes"; then 33789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 33790$as_echo_n "checking if strdup is compilable... " >&6; } 33791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33792/* end confdefs.h. */ 33793 33794 33795 $curl_includes_string 33796 33797int main (void) 33798{ 33799 33800 if(0 != strdup(0)) 33801 return 1; 33802 33803 ; 33804 return 0; 33805} 33806 33807_ACEOF 33808if ac_fn_c_try_compile "$LINENO"; then : 33809 33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33811$as_echo "yes" >&6; } 33812 tst_compi_strdup="yes" 33813 33814else 33815 33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33817$as_echo "no" >&6; } 33818 tst_compi_strdup="no" 33819 33820fi 33821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33822 fi 33823 # 33824 if test "$tst_compi_strdup" = "yes"; then 33825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 33826$as_echo_n "checking if strdup usage allowed... " >&6; } 33827 if test "x$curl_disallow_strdup" != "xyes"; then 33828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33829$as_echo "yes" >&6; } 33830 tst_allow_strdup="yes" 33831 else 33832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33833$as_echo "no" >&6; } 33834 tst_allow_strdup="no" 33835 fi 33836 fi 33837 # 33838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 33839$as_echo_n "checking if strdup might be used... " >&6; } 33840 if test "$tst_links_strdup" = "yes" && 33841 test "$tst_proto_strdup" = "yes" && 33842 test "$tst_compi_strdup" = "yes" && 33843 test "$tst_allow_strdup" = "yes"; then 33844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33845$as_echo "yes" >&6; } 33846 33847cat >>confdefs.h <<_ACEOF 33848#define HAVE_STRDUP 1 33849_ACEOF 33850 33851 ac_cv_func_strdup="yes" 33852 else 33853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33854$as_echo "no" >&6; } 33855 ac_cv_func_strdup="no" 33856 fi 33857 33858 33859 # 33860 tst_links_strerror_r="unknown" 33861 tst_proto_strerror_r="unknown" 33862 tst_compi_strerror_r="unknown" 33863 tst_glibc_strerror_r="unknown" 33864 tst_posix_strerror_r="unknown" 33865 tst_allow_strerror_r="unknown" 33866 tst_works_glibc_strerror_r="unknown" 33867 tst_works_posix_strerror_r="unknown" 33868 tst_glibc_strerror_r_type_arg3="unknown" 33869 tst_posix_strerror_r_type_arg3="unknown" 33870 # 33871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5 33872$as_echo_n "checking if strerror_r can be linked... " >&6; } 33873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33874/* end confdefs.h. */ 33875 33876 33877#define strerror_r innocuous_strerror_r 33878#ifdef __STDC__ 33879# include <limits.h> 33880#else 33881# include <assert.h> 33882#endif 33883#undef strerror_r 33884#ifdef __cplusplus 33885extern "C" 33886#endif 33887char strerror_r (); 33888#if defined __stub_strerror_r || defined __stub___strerror_r 33889choke me 33890#endif 33891 33892int main (void) 33893{ 33894return strerror_r (); 33895 ; 33896 return 0; 33897} 33898 33899_ACEOF 33900if ac_fn_c_try_link "$LINENO"; then : 33901 33902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33903$as_echo "yes" >&6; } 33904 tst_links_strerror_r="yes" 33905 33906else 33907 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33909$as_echo "no" >&6; } 33910 tst_links_strerror_r="no" 33911 33912fi 33913rm -f core conftest.err conftest.$ac_objext \ 33914 conftest$ac_exeext conftest.$ac_ext 33915 # 33916 if test "$tst_links_strerror_r" = "yes"; then 33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5 33918$as_echo_n "checking if strerror_r is prototyped... " >&6; } 33919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33920/* end confdefs.h. */ 33921 33922 $curl_includes_string 33923 33924_ACEOF 33925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33926 $EGREP "strerror_r" >/dev/null 2>&1; then : 33927 33928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33929$as_echo "yes" >&6; } 33930 tst_proto_strerror_r="yes" 33931 33932else 33933 33934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33935$as_echo "no" >&6; } 33936 tst_proto_strerror_r="no" 33937 33938fi 33939rm -f conftest* 33940 33941 fi 33942 # 33943 if test "$tst_proto_strerror_r" = "yes"; then 33944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5 33945$as_echo_n "checking if strerror_r is compilable... " >&6; } 33946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33947/* end confdefs.h. */ 33948 33949 33950 $curl_includes_string 33951 33952int main (void) 33953{ 33954 33955 if(0 != strerror_r(0, 0, 0)) 33956 return 1; 33957 33958 ; 33959 return 0; 33960} 33961 33962_ACEOF 33963if ac_fn_c_try_compile "$LINENO"; then : 33964 33965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33966$as_echo "yes" >&6; } 33967 tst_compi_strerror_r="yes" 33968 33969else 33970 33971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33972$as_echo "no" >&6; } 33973 tst_compi_strerror_r="no" 33974 33975fi 33976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33977 fi 33978 # 33979 if test "$tst_compi_strerror_r" = "yes"; then 33980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5 33981$as_echo_n "checking if strerror_r is glibc like... " >&6; } 33982 tst_glibc_strerror_r_type_arg3="unknown" 33983 for arg3 in 'size_t' 'int' 'unsigned int'; do 33984 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then 33985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33986/* end confdefs.h. */ 33987 33988 33989 $curl_includes_string 33990 33991int main (void) 33992{ 33993 33994 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize); 33995 if(0 != strerror_r(0, 0, 0)) 33996 return 1; 33997 33998 ; 33999 return 0; 34000} 34001 34002_ACEOF 34003if ac_fn_c_try_compile "$LINENO"; then : 34004 34005 tst_glibc_strerror_r_type_arg3="$arg3" 34006 34007fi 34008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34009 fi 34010 done 34011 case "$tst_glibc_strerror_r_type_arg3" in 34012 unknown) 34013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34014$as_echo "no" >&6; } 34015 tst_glibc_strerror_r="no" 34016 ;; 34017 *) 34018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34019$as_echo "yes" >&6; } 34020 tst_glibc_strerror_r="yes" 34021 ;; 34022 esac 34023 fi 34024 # 34025 if test "x$cross_compiling" != "xyes" && 34026 test "$tst_glibc_strerror_r" = "yes"; then 34027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 34028$as_echo_n "checking if strerror_r seems to work... " >&6; } 34029 if test "$cross_compiling" = yes; then : 34030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34032as_fn_error $? "cannot run test program while cross compiling 34033See \`config.log' for more details" "$LINENO" 5; } 34034else 34035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34036/* end confdefs.h. */ 34037 34038 34039 $curl_includes_stdlib 34040 $curl_includes_string 34041# include <errno.h> 34042 34043int main (void) 34044{ 34045 34046 char buffer[1024]; 34047 char *string = 0; 34048 buffer[0] = '\0'; 34049 string = strerror_r(EACCES, buffer, sizeof(buffer)); 34050 if(!string) 34051 exit(1); /* fail */ 34052 if(!string[0]) 34053 exit(1); /* fail */ 34054 else 34055 exit(0); 34056 34057 ; 34058 return 0; 34059} 34060 34061_ACEOF 34062if ac_fn_c_try_run "$LINENO"; then : 34063 34064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34065$as_echo "yes" >&6; } 34066 tst_works_glibc_strerror_r="yes" 34067 34068else 34069 34070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34071$as_echo "no" >&6; } 34072 tst_works_glibc_strerror_r="no" 34073 34074fi 34075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34076 conftest.$ac_objext conftest.beam conftest.$ac_ext 34077fi 34078 34079 fi 34080 # 34081 if test "$tst_compi_strerror_r" = "yes" && 34082 test "$tst_works_glibc_strerror_r" != "yes"; then 34083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5 34084$as_echo_n "checking if strerror_r is POSIX like... " >&6; } 34085 tst_posix_strerror_r_type_arg3="unknown" 34086 for arg3 in 'size_t' 'int' 'unsigned int'; do 34087 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then 34088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34089/* end confdefs.h. */ 34090 34091 34092 $curl_includes_string 34093 34094int main (void) 34095{ 34096 34097 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize); 34098 if(0 != strerror_r(0, 0, 0)) 34099 return 1; 34100 34101 ; 34102 return 0; 34103} 34104 34105_ACEOF 34106if ac_fn_c_try_compile "$LINENO"; then : 34107 34108 tst_posix_strerror_r_type_arg3="$arg3" 34109 34110fi 34111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34112 fi 34113 done 34114 case "$tst_posix_strerror_r_type_arg3" in 34115 unknown) 34116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34117$as_echo "no" >&6; } 34118 tst_posix_strerror_r="no" 34119 ;; 34120 *) 34121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34122$as_echo "yes" >&6; } 34123 tst_posix_strerror_r="yes" 34124 ;; 34125 esac 34126 fi 34127 # 34128 if test "x$cross_compiling" != "xyes" && 34129 test "$tst_posix_strerror_r" = "yes"; then 34130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 34131$as_echo_n "checking if strerror_r seems to work... " >&6; } 34132 if test "$cross_compiling" = yes; then : 34133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34135as_fn_error $? "cannot run test program while cross compiling 34136See \`config.log' for more details" "$LINENO" 5; } 34137else 34138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34139/* end confdefs.h. */ 34140 34141 34142 $curl_includes_stdlib 34143 $curl_includes_string 34144# include <errno.h> 34145 34146int main (void) 34147{ 34148 34149 char buffer[1024]; 34150 int error = 1; 34151 buffer[0] = '\0'; 34152 error = strerror_r(EACCES, buffer, sizeof(buffer)); 34153 if(error) 34154 exit(1); /* fail */ 34155 if(buffer[0] == '\0') 34156 exit(1); /* fail */ 34157 else 34158 exit(0); 34159 34160 ; 34161 return 0; 34162} 34163 34164_ACEOF 34165if ac_fn_c_try_run "$LINENO"; then : 34166 34167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34168$as_echo "yes" >&6; } 34169 tst_works_posix_strerror_r="yes" 34170 34171else 34172 34173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34174$as_echo "no" >&6; } 34175 tst_works_posix_strerror_r="no" 34176 34177fi 34178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34179 conftest.$ac_objext conftest.beam conftest.$ac_ext 34180fi 34181 34182 fi 34183 # 34184 if test "$tst_works_glibc_strerror_r" = "yes"; then 34185 tst_posix_strerror_r="no" 34186 fi 34187 if test "$tst_works_posix_strerror_r" = "yes"; then 34188 tst_glibc_strerror_r="no" 34189 fi 34190 if test "$tst_glibc_strerror_r" = "yes" && 34191 test "$tst_works_glibc_strerror_r" != "no" && 34192 test "$tst_posix_strerror_r" != "yes"; then 34193 tst_allow_strerror_r="check" 34194 fi 34195 if test "$tst_posix_strerror_r" = "yes" && 34196 test "$tst_works_posix_strerror_r" != "no" && 34197 test "$tst_glibc_strerror_r" != "yes"; then 34198 tst_allow_strerror_r="check" 34199 fi 34200 if test "$tst_allow_strerror_r" = "check"; then 34201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5 34202$as_echo_n "checking if strerror_r usage allowed... " >&6; } 34203 if test "x$curl_disallow_strerror_r" != "xyes"; then 34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34205$as_echo "yes" >&6; } 34206 tst_allow_strerror_r="yes" 34207 else 34208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34209$as_echo "no" >&6; } 34210 tst_allow_strerror_r="no" 34211 fi 34212 fi 34213 # 34214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5 34215$as_echo_n "checking if strerror_r might be used... " >&6; } 34216 if test "$tst_links_strerror_r" = "yes" && 34217 test "$tst_proto_strerror_r" = "yes" && 34218 test "$tst_compi_strerror_r" = "yes" && 34219 test "$tst_allow_strerror_r" = "yes"; then 34220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34221$as_echo "yes" >&6; } 34222 if test "$tst_glibc_strerror_r" = "yes"; then 34223 34224cat >>confdefs.h <<_ACEOF 34225#define HAVE_STRERROR_R 1 34226_ACEOF 34227 34228 34229cat >>confdefs.h <<_ACEOF 34230#define HAVE_GLIBC_STRERROR_R 1 34231_ACEOF 34232 34233 34234cat >>confdefs.h <<_ACEOF 34235#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3 34236_ACEOF 34237 34238 fi 34239 if test "$tst_posix_strerror_r" = "yes"; then 34240 34241cat >>confdefs.h <<_ACEOF 34242#define HAVE_STRERROR_R 1 34243_ACEOF 34244 34245 34246cat >>confdefs.h <<_ACEOF 34247#define HAVE_POSIX_STRERROR_R 1 34248_ACEOF 34249 34250 34251cat >>confdefs.h <<_ACEOF 34252#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3 34253_ACEOF 34254 34255 fi 34256 ac_cv_func_strerror_r="yes" 34257 else 34258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34259$as_echo "no" >&6; } 34260 ac_cv_func_strerror_r="no" 34261 fi 34262 # 34263 if test "$tst_compi_strerror_r" = "yes" && 34264 test "$tst_allow_strerror_r" = "unknown"; then 34265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5 34266$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;} 34267 fi 34268 # 34269 34270 34271 # 34272 tst_links_stricmp="unknown" 34273 tst_proto_stricmp="unknown" 34274 tst_compi_stricmp="unknown" 34275 tst_allow_stricmp="unknown" 34276 # 34277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 34278$as_echo_n "checking if stricmp can be linked... " >&6; } 34279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34280/* end confdefs.h. */ 34281 34282 34283#define stricmp innocuous_stricmp 34284#ifdef __STDC__ 34285# include <limits.h> 34286#else 34287# include <assert.h> 34288#endif 34289#undef stricmp 34290#ifdef __cplusplus 34291extern "C" 34292#endif 34293char stricmp (); 34294#if defined __stub_stricmp || defined __stub___stricmp 34295choke me 34296#endif 34297 34298int main (void) 34299{ 34300return stricmp (); 34301 ; 34302 return 0; 34303} 34304 34305_ACEOF 34306if ac_fn_c_try_link "$LINENO"; then : 34307 34308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34309$as_echo "yes" >&6; } 34310 tst_links_stricmp="yes" 34311 34312else 34313 34314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34315$as_echo "no" >&6; } 34316 tst_links_stricmp="no" 34317 34318fi 34319rm -f core conftest.err conftest.$ac_objext \ 34320 conftest$ac_exeext conftest.$ac_ext 34321 # 34322 if test "$tst_links_stricmp" = "yes"; then 34323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 34324$as_echo_n "checking if stricmp is prototyped... " >&6; } 34325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34326/* end confdefs.h. */ 34327 34328 $curl_includes_string 34329 34330_ACEOF 34331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34332 $EGREP "stricmp" >/dev/null 2>&1; then : 34333 34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34335$as_echo "yes" >&6; } 34336 tst_proto_stricmp="yes" 34337 34338else 34339 34340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34341$as_echo "no" >&6; } 34342 tst_proto_stricmp="no" 34343 34344fi 34345rm -f conftest* 34346 34347 fi 34348 # 34349 if test "$tst_proto_stricmp" = "yes"; then 34350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 34351$as_echo_n "checking if stricmp is compilable... " >&6; } 34352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34353/* end confdefs.h. */ 34354 34355 34356 $curl_includes_string 34357 34358int main (void) 34359{ 34360 34361 if(0 != stricmp(0, 0)) 34362 return 1; 34363 34364 ; 34365 return 0; 34366} 34367 34368_ACEOF 34369if ac_fn_c_try_compile "$LINENO"; then : 34370 34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34372$as_echo "yes" >&6; } 34373 tst_compi_stricmp="yes" 34374 34375else 34376 34377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34378$as_echo "no" >&6; } 34379 tst_compi_stricmp="no" 34380 34381fi 34382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34383 fi 34384 # 34385 if test "$tst_compi_stricmp" = "yes"; then 34386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 34387$as_echo_n "checking if stricmp usage allowed... " >&6; } 34388 if test "x$curl_disallow_stricmp" != "xyes"; then 34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34390$as_echo "yes" >&6; } 34391 tst_allow_stricmp="yes" 34392 else 34393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34394$as_echo "no" >&6; } 34395 tst_allow_stricmp="no" 34396 fi 34397 fi 34398 # 34399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 34400$as_echo_n "checking if stricmp might be used... " >&6; } 34401 if test "$tst_links_stricmp" = "yes" && 34402 test "$tst_proto_stricmp" = "yes" && 34403 test "$tst_compi_stricmp" = "yes" && 34404 test "$tst_allow_stricmp" = "yes"; then 34405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34406$as_echo "yes" >&6; } 34407 34408cat >>confdefs.h <<_ACEOF 34409#define HAVE_STRICMP 1 34410_ACEOF 34411 34412 ac_cv_func_stricmp="yes" 34413 else 34414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34415$as_echo "no" >&6; } 34416 ac_cv_func_stricmp="no" 34417 fi 34418 34419 34420 # 34421 tst_links_strlcat="unknown" 34422 tst_proto_strlcat="unknown" 34423 tst_compi_strlcat="unknown" 34424 tst_allow_strlcat="unknown" 34425 # 34426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat can be linked" >&5 34427$as_echo_n "checking if strlcat can be linked... " >&6; } 34428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34429/* end confdefs.h. */ 34430 34431 34432#define strlcat innocuous_strlcat 34433#ifdef __STDC__ 34434# include <limits.h> 34435#else 34436# include <assert.h> 34437#endif 34438#undef strlcat 34439#ifdef __cplusplus 34440extern "C" 34441#endif 34442char strlcat (); 34443#if defined __stub_strlcat || defined __stub___strlcat 34444choke me 34445#endif 34446 34447int main (void) 34448{ 34449return strlcat (); 34450 ; 34451 return 0; 34452} 34453 34454_ACEOF 34455if ac_fn_c_try_link "$LINENO"; then : 34456 34457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34458$as_echo "yes" >&6; } 34459 tst_links_strlcat="yes" 34460 34461else 34462 34463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34464$as_echo "no" >&6; } 34465 tst_links_strlcat="no" 34466 34467fi 34468rm -f core conftest.err conftest.$ac_objext \ 34469 conftest$ac_exeext conftest.$ac_ext 34470 # 34471 if test "$tst_links_strlcat" = "yes"; then 34472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is prototyped" >&5 34473$as_echo_n "checking if strlcat is prototyped... " >&6; } 34474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34475/* end confdefs.h. */ 34476 34477 $curl_includes_string 34478 34479_ACEOF 34480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34481 $EGREP "strlcat" >/dev/null 2>&1; then : 34482 34483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34484$as_echo "yes" >&6; } 34485 tst_proto_strlcat="yes" 34486 34487else 34488 34489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34490$as_echo "no" >&6; } 34491 tst_proto_strlcat="no" 34492 34493fi 34494rm -f conftest* 34495 34496 fi 34497 # 34498 if test "$tst_proto_strlcat" = "yes"; then 34499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is compilable" >&5 34500$as_echo_n "checking if strlcat is compilable... " >&6; } 34501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34502/* end confdefs.h. */ 34503 34504 34505 $curl_includes_string 34506 34507int main (void) 34508{ 34509 34510 if(0 != strlcat(0, 0, 0)) 34511 return 1; 34512 34513 ; 34514 return 0; 34515} 34516 34517_ACEOF 34518if ac_fn_c_try_compile "$LINENO"; then : 34519 34520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34521$as_echo "yes" >&6; } 34522 tst_compi_strlcat="yes" 34523 34524else 34525 34526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34527$as_echo "no" >&6; } 34528 tst_compi_strlcat="no" 34529 34530fi 34531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34532 fi 34533 # 34534 if test "$tst_compi_strlcat" = "yes"; then 34535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat usage allowed" >&5 34536$as_echo_n "checking if strlcat usage allowed... " >&6; } 34537 if test "x$curl_disallow_strlcat" != "xyes"; then 34538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34539$as_echo "yes" >&6; } 34540 tst_allow_strlcat="yes" 34541 else 34542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34543$as_echo "no" >&6; } 34544 tst_allow_strlcat="no" 34545 fi 34546 fi 34547 # 34548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat might be used" >&5 34549$as_echo_n "checking if strlcat might be used... " >&6; } 34550 if test "$tst_links_strlcat" = "yes" && 34551 test "$tst_proto_strlcat" = "yes" && 34552 test "$tst_compi_strlcat" = "yes" && 34553 test "$tst_allow_strlcat" = "yes"; then 34554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34555$as_echo "yes" >&6; } 34556 34557cat >>confdefs.h <<_ACEOF 34558#define HAVE_STRLCAT 1 34559_ACEOF 34560 34561 ac_cv_func_strlcat="yes" 34562 else 34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34564$as_echo "no" >&6; } 34565 ac_cv_func_strlcat="no" 34566 fi 34567 34568 34569 # 34570 tst_links_strncasecmp="unknown" 34571 tst_proto_strncasecmp="unknown" 34572 tst_compi_strncasecmp="unknown" 34573 tst_allow_strncasecmp="unknown" 34574 # 34575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5 34576$as_echo_n "checking if strncasecmp can be linked... " >&6; } 34577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34578/* end confdefs.h. */ 34579 34580 34581#define strncasecmp innocuous_strncasecmp 34582#ifdef __STDC__ 34583# include <limits.h> 34584#else 34585# include <assert.h> 34586#endif 34587#undef strncasecmp 34588#ifdef __cplusplus 34589extern "C" 34590#endif 34591char strncasecmp (); 34592#if defined __stub_strncasecmp || defined __stub___strncasecmp 34593choke me 34594#endif 34595 34596int main (void) 34597{ 34598return strncasecmp (); 34599 ; 34600 return 0; 34601} 34602 34603_ACEOF 34604if ac_fn_c_try_link "$LINENO"; then : 34605 34606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34607$as_echo "yes" >&6; } 34608 tst_links_strncasecmp="yes" 34609 34610else 34611 34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34613$as_echo "no" >&6; } 34614 tst_links_strncasecmp="no" 34615 34616fi 34617rm -f core conftest.err conftest.$ac_objext \ 34618 conftest$ac_exeext conftest.$ac_ext 34619 # 34620 if test "$tst_links_strncasecmp" = "yes"; then 34621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5 34622$as_echo_n "checking if strncasecmp is prototyped... " >&6; } 34623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34624/* end confdefs.h. */ 34625 34626 $curl_includes_string 34627 34628_ACEOF 34629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34630 $EGREP "strncasecmp" >/dev/null 2>&1; then : 34631 34632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34633$as_echo "yes" >&6; } 34634 tst_proto_strncasecmp="yes" 34635 34636else 34637 34638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34639$as_echo "no" >&6; } 34640 tst_proto_strncasecmp="no" 34641 34642fi 34643rm -f conftest* 34644 34645 fi 34646 # 34647 if test "$tst_proto_strncasecmp" = "yes"; then 34648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5 34649$as_echo_n "checking if strncasecmp is compilable... " >&6; } 34650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34651/* end confdefs.h. */ 34652 34653 34654 $curl_includes_string 34655 34656int main (void) 34657{ 34658 34659 if(0 != strncasecmp(0, 0, 0)) 34660 return 1; 34661 34662 ; 34663 return 0; 34664} 34665 34666_ACEOF 34667if ac_fn_c_try_compile "$LINENO"; then : 34668 34669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34670$as_echo "yes" >&6; } 34671 tst_compi_strncasecmp="yes" 34672 34673else 34674 34675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34676$as_echo "no" >&6; } 34677 tst_compi_strncasecmp="no" 34678 34679fi 34680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34681 fi 34682 # 34683 if test "$tst_compi_strncasecmp" = "yes"; then 34684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5 34685$as_echo_n "checking if strncasecmp usage allowed... " >&6; } 34686 if test "x$curl_disallow_strncasecmp" != "xyes"; then 34687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34688$as_echo "yes" >&6; } 34689 tst_allow_strncasecmp="yes" 34690 else 34691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34692$as_echo "no" >&6; } 34693 tst_allow_strncasecmp="no" 34694 fi 34695 fi 34696 # 34697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5 34698$as_echo_n "checking if strncasecmp might be used... " >&6; } 34699 if test "$tst_links_strncasecmp" = "yes" && 34700 test "$tst_proto_strncasecmp" = "yes" && 34701 test "$tst_compi_strncasecmp" = "yes" && 34702 test "$tst_allow_strncasecmp" = "yes"; then 34703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34704$as_echo "yes" >&6; } 34705 34706cat >>confdefs.h <<_ACEOF 34707#define HAVE_STRNCASECMP 1 34708_ACEOF 34709 34710 ac_cv_func_strncasecmp="yes" 34711 else 34712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34713$as_echo "no" >&6; } 34714 ac_cv_func_strncasecmp="no" 34715 fi 34716 34717 34718 # 34719 tst_links_strncmpi="unknown" 34720 tst_proto_strncmpi="unknown" 34721 tst_compi_strncmpi="unknown" 34722 tst_allow_strncmpi="unknown" 34723 # 34724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5 34725$as_echo_n "checking if strncmpi can be linked... " >&6; } 34726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34727/* end confdefs.h. */ 34728 34729 34730#define strncmpi innocuous_strncmpi 34731#ifdef __STDC__ 34732# include <limits.h> 34733#else 34734# include <assert.h> 34735#endif 34736#undef strncmpi 34737#ifdef __cplusplus 34738extern "C" 34739#endif 34740char strncmpi (); 34741#if defined __stub_strncmpi || defined __stub___strncmpi 34742choke me 34743#endif 34744 34745int main (void) 34746{ 34747return strncmpi (); 34748 ; 34749 return 0; 34750} 34751 34752_ACEOF 34753if ac_fn_c_try_link "$LINENO"; then : 34754 34755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34756$as_echo "yes" >&6; } 34757 tst_links_strncmpi="yes" 34758 34759else 34760 34761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34762$as_echo "no" >&6; } 34763 tst_links_strncmpi="no" 34764 34765fi 34766rm -f core conftest.err conftest.$ac_objext \ 34767 conftest$ac_exeext conftest.$ac_ext 34768 # 34769 if test "$tst_links_strncmpi" = "yes"; then 34770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5 34771$as_echo_n "checking if strncmpi is prototyped... " >&6; } 34772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34773/* end confdefs.h. */ 34774 34775 $curl_includes_string 34776 34777_ACEOF 34778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34779 $EGREP "strncmpi" >/dev/null 2>&1; then : 34780 34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34782$as_echo "yes" >&6; } 34783 tst_proto_strncmpi="yes" 34784 34785else 34786 34787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34788$as_echo "no" >&6; } 34789 tst_proto_strncmpi="no" 34790 34791fi 34792rm -f conftest* 34793 34794 fi 34795 # 34796 if test "$tst_proto_strncmpi" = "yes"; then 34797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5 34798$as_echo_n "checking if strncmpi is compilable... " >&6; } 34799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34800/* end confdefs.h. */ 34801 34802 34803 $curl_includes_string 34804 34805int main (void) 34806{ 34807 34808 if(0 != strncmpi(0, 0)) 34809 return 1; 34810 34811 ; 34812 return 0; 34813} 34814 34815_ACEOF 34816if ac_fn_c_try_compile "$LINENO"; then : 34817 34818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34819$as_echo "yes" >&6; } 34820 tst_compi_strncmpi="yes" 34821 34822else 34823 34824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34825$as_echo "no" >&6; } 34826 tst_compi_strncmpi="no" 34827 34828fi 34829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34830 fi 34831 # 34832 if test "$tst_compi_strncmpi" = "yes"; then 34833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5 34834$as_echo_n "checking if strncmpi usage allowed... " >&6; } 34835 if test "x$curl_disallow_strncmpi" != "xyes"; then 34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34837$as_echo "yes" >&6; } 34838 tst_allow_strncmpi="yes" 34839 else 34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34841$as_echo "no" >&6; } 34842 tst_allow_strncmpi="no" 34843 fi 34844 fi 34845 # 34846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5 34847$as_echo_n "checking if strncmpi might be used... " >&6; } 34848 if test "$tst_links_strncmpi" = "yes" && 34849 test "$tst_proto_strncmpi" = "yes" && 34850 test "$tst_compi_strncmpi" = "yes" && 34851 test "$tst_allow_strncmpi" = "yes"; then 34852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34853$as_echo "yes" >&6; } 34854 34855cat >>confdefs.h <<_ACEOF 34856#define HAVE_STRNCMPI 1 34857_ACEOF 34858 34859 ac_cv_func_strncmpi="yes" 34860 else 34861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34862$as_echo "no" >&6; } 34863 ac_cv_func_strncmpi="no" 34864 fi 34865 34866 34867 # 34868 tst_links_strnicmp="unknown" 34869 tst_proto_strnicmp="unknown" 34870 tst_compi_strnicmp="unknown" 34871 tst_allow_strnicmp="unknown" 34872 # 34873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5 34874$as_echo_n "checking if strnicmp can be linked... " >&6; } 34875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34876/* end confdefs.h. */ 34877 34878 34879#define strnicmp innocuous_strnicmp 34880#ifdef __STDC__ 34881# include <limits.h> 34882#else 34883# include <assert.h> 34884#endif 34885#undef strnicmp 34886#ifdef __cplusplus 34887extern "C" 34888#endif 34889char strnicmp (); 34890#if defined __stub_strnicmp || defined __stub___strnicmp 34891choke me 34892#endif 34893 34894int main (void) 34895{ 34896return strnicmp (); 34897 ; 34898 return 0; 34899} 34900 34901_ACEOF 34902if ac_fn_c_try_link "$LINENO"; then : 34903 34904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34905$as_echo "yes" >&6; } 34906 tst_links_strnicmp="yes" 34907 34908else 34909 34910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34911$as_echo "no" >&6; } 34912 tst_links_strnicmp="no" 34913 34914fi 34915rm -f core conftest.err conftest.$ac_objext \ 34916 conftest$ac_exeext conftest.$ac_ext 34917 # 34918 if test "$tst_links_strnicmp" = "yes"; then 34919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5 34920$as_echo_n "checking if strnicmp is prototyped... " >&6; } 34921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34922/* end confdefs.h. */ 34923 34924 $curl_includes_string 34925 34926_ACEOF 34927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34928 $EGREP "strnicmp" >/dev/null 2>&1; then : 34929 34930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34931$as_echo "yes" >&6; } 34932 tst_proto_strnicmp="yes" 34933 34934else 34935 34936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34937$as_echo "no" >&6; } 34938 tst_proto_strnicmp="no" 34939 34940fi 34941rm -f conftest* 34942 34943 fi 34944 # 34945 if test "$tst_proto_strnicmp" = "yes"; then 34946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5 34947$as_echo_n "checking if strnicmp is compilable... " >&6; } 34948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34949/* end confdefs.h. */ 34950 34951 34952 $curl_includes_string 34953 34954int main (void) 34955{ 34956 34957 if(0 != strnicmp(0, 0)) 34958 return 1; 34959 34960 ; 34961 return 0; 34962} 34963 34964_ACEOF 34965if ac_fn_c_try_compile "$LINENO"; then : 34966 34967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34968$as_echo "yes" >&6; } 34969 tst_compi_strnicmp="yes" 34970 34971else 34972 34973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34974$as_echo "no" >&6; } 34975 tst_compi_strnicmp="no" 34976 34977fi 34978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34979 fi 34980 # 34981 if test "$tst_compi_strnicmp" = "yes"; then 34982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5 34983$as_echo_n "checking if strnicmp usage allowed... " >&6; } 34984 if test "x$curl_disallow_strnicmp" != "xyes"; then 34985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34986$as_echo "yes" >&6; } 34987 tst_allow_strnicmp="yes" 34988 else 34989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34990$as_echo "no" >&6; } 34991 tst_allow_strnicmp="no" 34992 fi 34993 fi 34994 # 34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5 34996$as_echo_n "checking if strnicmp might be used... " >&6; } 34997 if test "$tst_links_strnicmp" = "yes" && 34998 test "$tst_proto_strnicmp" = "yes" && 34999 test "$tst_compi_strnicmp" = "yes" && 35000 test "$tst_allow_strnicmp" = "yes"; then 35001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35002$as_echo "yes" >&6; } 35003 35004cat >>confdefs.h <<_ACEOF 35005#define HAVE_STRNICMP 1 35006_ACEOF 35007 35008 ac_cv_func_strnicmp="yes" 35009 else 35010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35011$as_echo "no" >&6; } 35012 ac_cv_func_strnicmp="no" 35013 fi 35014 35015 35016 # 35017 tst_links_strstr="unknown" 35018 tst_proto_strstr="unknown" 35019 tst_compi_strstr="unknown" 35020 tst_allow_strstr="unknown" 35021 # 35022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5 35023$as_echo_n "checking if strstr can be linked... " >&6; } 35024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35025/* end confdefs.h. */ 35026 35027 35028#define strstr innocuous_strstr 35029#ifdef __STDC__ 35030# include <limits.h> 35031#else 35032# include <assert.h> 35033#endif 35034#undef strstr 35035#ifdef __cplusplus 35036extern "C" 35037#endif 35038char strstr (); 35039#if defined __stub_strstr || defined __stub___strstr 35040choke me 35041#endif 35042 35043int main (void) 35044{ 35045return strstr (); 35046 ; 35047 return 0; 35048} 35049 35050_ACEOF 35051if ac_fn_c_try_link "$LINENO"; then : 35052 35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35054$as_echo "yes" >&6; } 35055 tst_links_strstr="yes" 35056 35057else 35058 35059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35060$as_echo "no" >&6; } 35061 tst_links_strstr="no" 35062 35063fi 35064rm -f core conftest.err conftest.$ac_objext \ 35065 conftest$ac_exeext conftest.$ac_ext 35066 # 35067 if test "$tst_links_strstr" = "yes"; then 35068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5 35069$as_echo_n "checking if strstr is prototyped... " >&6; } 35070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35071/* end confdefs.h. */ 35072 35073 $curl_includes_string 35074 35075_ACEOF 35076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35077 $EGREP "strstr" >/dev/null 2>&1; then : 35078 35079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35080$as_echo "yes" >&6; } 35081 tst_proto_strstr="yes" 35082 35083else 35084 35085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35086$as_echo "no" >&6; } 35087 tst_proto_strstr="no" 35088 35089fi 35090rm -f conftest* 35091 35092 fi 35093 # 35094 if test "$tst_proto_strstr" = "yes"; then 35095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5 35096$as_echo_n "checking if strstr is compilable... " >&6; } 35097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35098/* end confdefs.h. */ 35099 35100 35101 $curl_includes_string 35102 35103int main (void) 35104{ 35105 35106 if(0 != strstr(0, 0)) 35107 return 1; 35108 35109 ; 35110 return 0; 35111} 35112 35113_ACEOF 35114if ac_fn_c_try_compile "$LINENO"; then : 35115 35116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35117$as_echo "yes" >&6; } 35118 tst_compi_strstr="yes" 35119 35120else 35121 35122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35123$as_echo "no" >&6; } 35124 tst_compi_strstr="no" 35125 35126fi 35127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35128 fi 35129 # 35130 if test "$tst_compi_strstr" = "yes"; then 35131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5 35132$as_echo_n "checking if strstr usage allowed... " >&6; } 35133 if test "x$curl_disallow_strstr" != "xyes"; then 35134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35135$as_echo "yes" >&6; } 35136 tst_allow_strstr="yes" 35137 else 35138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35139$as_echo "no" >&6; } 35140 tst_allow_strstr="no" 35141 fi 35142 fi 35143 # 35144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5 35145$as_echo_n "checking if strstr might be used... " >&6; } 35146 if test "$tst_links_strstr" = "yes" && 35147 test "$tst_proto_strstr" = "yes" && 35148 test "$tst_compi_strstr" = "yes" && 35149 test "$tst_allow_strstr" = "yes"; then 35150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35151$as_echo "yes" >&6; } 35152 35153cat >>confdefs.h <<_ACEOF 35154#define HAVE_STRSTR 1 35155_ACEOF 35156 35157 ac_cv_func_strstr="yes" 35158 else 35159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35160$as_echo "no" >&6; } 35161 ac_cv_func_strstr="no" 35162 fi 35163 35164 35165 # 35166 tst_links_strtok_r="unknown" 35167 tst_proto_strtok_r="unknown" 35168 tst_compi_strtok_r="unknown" 35169 tst_allow_strtok_r="unknown" 35170 # 35171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5 35172$as_echo_n "checking if strtok_r can be linked... " >&6; } 35173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35174/* end confdefs.h. */ 35175 35176 35177#define strtok_r innocuous_strtok_r 35178#ifdef __STDC__ 35179# include <limits.h> 35180#else 35181# include <assert.h> 35182#endif 35183#undef strtok_r 35184#ifdef __cplusplus 35185extern "C" 35186#endif 35187char strtok_r (); 35188#if defined __stub_strtok_r || defined __stub___strtok_r 35189choke me 35190#endif 35191 35192int main (void) 35193{ 35194return strtok_r (); 35195 ; 35196 return 0; 35197} 35198 35199_ACEOF 35200if ac_fn_c_try_link "$LINENO"; then : 35201 35202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35203$as_echo "yes" >&6; } 35204 tst_links_strtok_r="yes" 35205 35206else 35207 35208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35209$as_echo "no" >&6; } 35210 tst_links_strtok_r="no" 35211 35212fi 35213rm -f core conftest.err conftest.$ac_objext \ 35214 conftest$ac_exeext conftest.$ac_ext 35215 # 35216 if test "$tst_links_strtok_r" = "yes"; then 35217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5 35218$as_echo_n "checking if strtok_r is prototyped... " >&6; } 35219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35220/* end confdefs.h. */ 35221 35222 $curl_includes_string 35223 35224_ACEOF 35225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35226 $EGREP "strtok_r" >/dev/null 2>&1; then : 35227 35228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35229$as_echo "yes" >&6; } 35230 tst_proto_strtok_r="yes" 35231 35232else 35233 35234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35235$as_echo "no" >&6; } 35236 tst_proto_strtok_r="no" 35237 35238fi 35239rm -f conftest* 35240 35241 fi 35242 # 35243 if test "$tst_proto_strtok_r" = "yes"; then 35244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5 35245$as_echo_n "checking if strtok_r is compilable... " >&6; } 35246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35247/* end confdefs.h. */ 35248 35249 35250 $curl_includes_string 35251 35252int main (void) 35253{ 35254 35255 if(0 != strtok_r(0, 0, 0)) 35256 return 1; 35257 35258 ; 35259 return 0; 35260} 35261 35262_ACEOF 35263if ac_fn_c_try_compile "$LINENO"; then : 35264 35265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35266$as_echo "yes" >&6; } 35267 tst_compi_strtok_r="yes" 35268 35269else 35270 35271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35272$as_echo "no" >&6; } 35273 tst_compi_strtok_r="no" 35274 35275fi 35276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35277 fi 35278 # 35279 if test "$tst_compi_strtok_r" = "yes"; then 35280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5 35281$as_echo_n "checking if strtok_r usage allowed... " >&6; } 35282 if test "x$curl_disallow_strtok_r" != "xyes"; then 35283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35284$as_echo "yes" >&6; } 35285 tst_allow_strtok_r="yes" 35286 else 35287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35288$as_echo "no" >&6; } 35289 tst_allow_strtok_r="no" 35290 fi 35291 fi 35292 # 35293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5 35294$as_echo_n "checking if strtok_r might be used... " >&6; } 35295 if test "$tst_links_strtok_r" = "yes" && 35296 test "$tst_proto_strtok_r" = "yes" && 35297 test "$tst_compi_strtok_r" = "yes" && 35298 test "$tst_allow_strtok_r" = "yes"; then 35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35300$as_echo "yes" >&6; } 35301 35302cat >>confdefs.h <<_ACEOF 35303#define HAVE_STRTOK_R 1 35304_ACEOF 35305 35306 ac_cv_func_strtok_r="yes" 35307 else 35308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35309$as_echo "no" >&6; } 35310 ac_cv_func_strtok_r="no" 35311 fi 35312 35313 35314 # 35315 tst_links_strtoll="unknown" 35316 tst_proto_strtoll="unknown" 35317 tst_compi_strtoll="unknown" 35318 tst_allow_strtoll="unknown" 35319 # 35320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5 35321$as_echo_n "checking if strtoll can be linked... " >&6; } 35322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35323/* end confdefs.h. */ 35324 35325 35326#define strtoll innocuous_strtoll 35327#ifdef __STDC__ 35328# include <limits.h> 35329#else 35330# include <assert.h> 35331#endif 35332#undef strtoll 35333#ifdef __cplusplus 35334extern "C" 35335#endif 35336char strtoll (); 35337#if defined __stub_strtoll || defined __stub___strtoll 35338choke me 35339#endif 35340 35341int main (void) 35342{ 35343return strtoll (); 35344 ; 35345 return 0; 35346} 35347 35348_ACEOF 35349if ac_fn_c_try_link "$LINENO"; then : 35350 35351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35352$as_echo "yes" >&6; } 35353 tst_links_strtoll="yes" 35354 35355else 35356 35357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35358$as_echo "no" >&6; } 35359 tst_links_strtoll="no" 35360 35361fi 35362rm -f core conftest.err conftest.$ac_objext \ 35363 conftest$ac_exeext conftest.$ac_ext 35364 # 35365 if test "$tst_links_strtoll" = "yes"; then 35366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5 35367$as_echo_n "checking if strtoll is prototyped... " >&6; } 35368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35369/* end confdefs.h. */ 35370 35371 $curl_includes_stdlib 35372 35373_ACEOF 35374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35375 $EGREP "strtoll" >/dev/null 2>&1; then : 35376 35377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35378$as_echo "yes" >&6; } 35379 tst_proto_strtoll="yes" 35380 35381else 35382 35383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35384$as_echo "no" >&6; } 35385 tst_proto_strtoll="no" 35386 35387fi 35388rm -f conftest* 35389 35390 fi 35391 # 35392 if test "$tst_proto_strtoll" = "yes"; then 35393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5 35394$as_echo_n "checking if strtoll is compilable... " >&6; } 35395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35396/* end confdefs.h. */ 35397 35398 35399 $curl_includes_stdlib 35400 35401int main (void) 35402{ 35403 35404 if(0 != strtoll(0, 0, 0)) 35405 return 1; 35406 35407 ; 35408 return 0; 35409} 35410 35411_ACEOF 35412if ac_fn_c_try_compile "$LINENO"; then : 35413 35414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35415$as_echo "yes" >&6; } 35416 tst_compi_strtoll="yes" 35417 35418else 35419 35420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35421$as_echo "no" >&6; } 35422 tst_compi_strtoll="no" 35423 35424fi 35425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35426 fi 35427 # 35428 if test "$tst_compi_strtoll" = "yes"; then 35429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5 35430$as_echo_n "checking if strtoll usage allowed... " >&6; } 35431 if test "x$curl_disallow_strtoll" != "xyes"; then 35432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35433$as_echo "yes" >&6; } 35434 tst_allow_strtoll="yes" 35435 else 35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35437$as_echo "no" >&6; } 35438 tst_allow_strtoll="no" 35439 fi 35440 fi 35441 # 35442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5 35443$as_echo_n "checking if strtoll might be used... " >&6; } 35444 if test "$tst_links_strtoll" = "yes" && 35445 test "$tst_proto_strtoll" = "yes" && 35446 test "$tst_compi_strtoll" = "yes" && 35447 test "$tst_allow_strtoll" = "yes"; then 35448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35449$as_echo "yes" >&6; } 35450 35451cat >>confdefs.h <<_ACEOF 35452#define HAVE_STRTOLL 1 35453_ACEOF 35454 35455 ac_cv_func_strtoll="yes" 35456 else 35457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35458$as_echo "no" >&6; } 35459 ac_cv_func_strtoll="no" 35460 fi 35461 35462 35463curl_includes_sys_uio="\ 35464/* includes start */ 35465#ifdef HAVE_SYS_TYPES_H 35466# include <sys/types.h> 35467#endif 35468#ifdef HAVE_SYS_UIO_H 35469# include <sys/uio.h> 35470#endif 35471/* includes end */" 35472 for ac_header in sys/types.h sys/uio.h 35473do : 35474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 35475ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio 35476" 35477if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 35478 cat >>confdefs.h <<_ACEOF 35479#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 35480_ACEOF 35481 35482fi 35483 35484done 35485 35486 35487 35488 # 35489 tst_links_writev="unknown" 35490 tst_proto_writev="unknown" 35491 tst_compi_writev="unknown" 35492 tst_allow_writev="unknown" 35493 # 35494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5 35495$as_echo_n "checking if writev can be linked... " >&6; } 35496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35497/* end confdefs.h. */ 35498 35499 35500#define writev innocuous_writev 35501#ifdef __STDC__ 35502# include <limits.h> 35503#else 35504# include <assert.h> 35505#endif 35506#undef writev 35507#ifdef __cplusplus 35508extern "C" 35509#endif 35510char writev (); 35511#if defined __stub_writev || defined __stub___writev 35512choke me 35513#endif 35514 35515int main (void) 35516{ 35517return writev (); 35518 ; 35519 return 0; 35520} 35521 35522_ACEOF 35523if ac_fn_c_try_link "$LINENO"; then : 35524 35525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35526$as_echo "yes" >&6; } 35527 tst_links_writev="yes" 35528 35529else 35530 35531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35532$as_echo "no" >&6; } 35533 tst_links_writev="no" 35534 35535fi 35536rm -f core conftest.err conftest.$ac_objext \ 35537 conftest$ac_exeext conftest.$ac_ext 35538 # 35539 if test "$tst_links_writev" = "yes"; then 35540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5 35541$as_echo_n "checking if writev is prototyped... " >&6; } 35542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35543/* end confdefs.h. */ 35544 35545 $curl_includes_sys_uio 35546 35547_ACEOF 35548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35549 $EGREP "writev" >/dev/null 2>&1; then : 35550 35551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35552$as_echo "yes" >&6; } 35553 tst_proto_writev="yes" 35554 35555else 35556 35557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35558$as_echo "no" >&6; } 35559 tst_proto_writev="no" 35560 35561fi 35562rm -f conftest* 35563 35564 fi 35565 # 35566 if test "$tst_proto_writev" = "yes"; then 35567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5 35568$as_echo_n "checking if writev is compilable... " >&6; } 35569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35570/* end confdefs.h. */ 35571 35572 35573 $curl_includes_sys_uio 35574 35575int main (void) 35576{ 35577 35578 if(0 != writev(0, 0, 0)) 35579 return 1; 35580 35581 ; 35582 return 0; 35583} 35584 35585_ACEOF 35586if ac_fn_c_try_compile "$LINENO"; then : 35587 35588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35589$as_echo "yes" >&6; } 35590 tst_compi_writev="yes" 35591 35592else 35593 35594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35595$as_echo "no" >&6; } 35596 tst_compi_writev="no" 35597 35598fi 35599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35600 fi 35601 # 35602 if test "$tst_compi_writev" = "yes"; then 35603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5 35604$as_echo_n "checking if writev usage allowed... " >&6; } 35605 if test "x$curl_disallow_writev" != "xyes"; then 35606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35607$as_echo "yes" >&6; } 35608 tst_allow_writev="yes" 35609 else 35610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35611$as_echo "no" >&6; } 35612 tst_allow_writev="no" 35613 fi 35614 fi 35615 # 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5 35617$as_echo_n "checking if writev might be used... " >&6; } 35618 if test "$tst_links_writev" = "yes" && 35619 test "$tst_proto_writev" = "yes" && 35620 test "$tst_compi_writev" = "yes" && 35621 test "$tst_allow_writev" = "yes"; then 35622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35623$as_echo "yes" >&6; } 35624 35625cat >>confdefs.h <<_ACEOF 35626#define HAVE_WRITEV 1 35627_ACEOF 35628 35629 ac_cv_func_writev="yes" 35630 else 35631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35632$as_echo "no" >&6; } 35633 ac_cv_func_writev="no" 35634 fi 35635 35636 35637case $host in 35638 *msdosdjgpp) 35639 ac_cv_func_pipe=no 35640 skipcheck_pipe=yes 35641 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5 35642$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;} 35643 ;; 35644esac 35645 35646for ac_func in fork \ 35647 geteuid \ 35648 getpass_r \ 35649 getppid \ 35650 getprotobyname \ 35651 getpwuid \ 35652 getrlimit \ 35653 gettimeofday \ 35654 inet_addr \ 35655 perror \ 35656 pipe \ 35657 setlocale \ 35658 setmode \ 35659 setrlimit \ 35660 uname \ 35661 utime 35662 35663do : 35664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 35665ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 35666if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 35667 cat >>confdefs.h <<_ACEOF 35668#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 35669_ACEOF 35670 35671 35672else 35673 35674 func="$ac_func" 35675 eval skipcheck=\$skipcheck_$func 35676 if test "x$skipcheck" != "xyes"; then 35677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5 35678$as_echo_n "checking deeper for $func... " >&6; } 35679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35680/* end confdefs.h. */ 35681 35682 35683 35684int main (void) 35685{ 35686 35687 $func (); 35688 35689 ; 35690 return 0; 35691} 35692 35693_ACEOF 35694if ac_fn_c_try_link "$LINENO"; then : 35695 35696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35697$as_echo "yes" >&6; } 35698 eval "ac_cv_func_$func=yes" 35699 35700cat >>confdefs.h <<_ACEOF 35701#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1 35702_ACEOF 35703 35704 35705else 35706 35707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 35708$as_echo "but still no" >&6; } 35709 35710fi 35711rm -f core conftest.err conftest.$ac_objext \ 35712 conftest$ac_exeext conftest.$ac_ext 35713 fi 35714 35715fi 35716done 35717 35718 35719 35720 for ac_header in sys/types.h sys/socket.h netdb.h 35721do : 35722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 35723ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 35724if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 35725 cat >>confdefs.h <<_ACEOF 35726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 35727_ACEOF 35728 35729fi 35730 35731done 35732 35733 # 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 35735$as_echo_n "checking for getnameinfo... " >&6; } 35736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35737/* end confdefs.h. */ 35738 35739 35740#define getnameinfo innocuous_getnameinfo 35741#ifdef __STDC__ 35742# include <limits.h> 35743#else 35744# include <assert.h> 35745#endif 35746#undef getnameinfo 35747#ifdef __cplusplus 35748extern "C" 35749#endif 35750char getnameinfo (); 35751#if defined __stub_getnameinfo || defined __stub___getnameinfo 35752choke me 35753#endif 35754 35755int main (void) 35756{ 35757return getnameinfo (); 35758 ; 35759 return 0; 35760} 35761 35762_ACEOF 35763if ac_fn_c_try_link "$LINENO"; then : 35764 35765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35766$as_echo "yes" >&6; } 35767 curl_cv_getnameinfo="yes" 35768 35769else 35770 35771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35772$as_echo "no" >&6; } 35773 curl_cv_getnameinfo="no" 35774 35775fi 35776rm -f core conftest.err conftest.$ac_objext \ 35777 conftest$ac_exeext conftest.$ac_ext 35778 # 35779 if test "$curl_cv_getnameinfo" != "yes"; then 35780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5 35781$as_echo_n "checking deeper for getnameinfo... " >&6; } 35782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35783/* end confdefs.h. */ 35784 35785 35786 35787int main (void) 35788{ 35789 35790 getnameinfo(); 35791 35792 ; 35793 return 0; 35794} 35795 35796_ACEOF 35797if ac_fn_c_try_link "$LINENO"; then : 35798 35799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35800$as_echo "yes" >&6; } 35801 curl_cv_getnameinfo="yes" 35802 35803else 35804 35805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 35806$as_echo "but still no" >&6; } 35807 curl_cv_getnameinfo="no" 35808 35809fi 35810rm -f core conftest.err conftest.$ac_objext \ 35811 conftest$ac_exeext conftest.$ac_ext 35812 fi 35813 # 35814 if test "$curl_cv_getnameinfo" != "yes"; then 35815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5 35816$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; } 35817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35818/* end confdefs.h. */ 35819 35820 35821#undef inline 35822#ifdef HAVE_WINDOWS_H 35823#ifndef WIN32_LEAN_AND_MEAN 35824#define WIN32_LEAN_AND_MEAN 35825#endif 35826#include <windows.h> 35827#ifdef HAVE_WINSOCK2_H 35828#include <winsock2.h> 35829#ifdef HAVE_WS2TCPIP_H 35830#include <ws2tcpip.h> 35831#endif 35832#endif 35833#else 35834#ifdef HAVE_SYS_TYPES_H 35835#include <sys/types.h> 35836#endif 35837#ifdef HAVE_SYS_SOCKET_H 35838#include <sys/socket.h> 35839#endif 35840#ifdef HAVE_NETDB_H 35841#include <netdb.h> 35842#endif 35843#endif 35844 35845int main (void) 35846{ 35847 35848 getnameinfo(0, 0, 0, 0, 0, 0, 0); 35849 35850 ; 35851 return 0; 35852} 35853 35854_ACEOF 35855if ac_fn_c_try_link "$LINENO"; then : 35856 35857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35858$as_echo "yes" >&6; } 35859 curl_cv_getnameinfo="yes" 35860 35861else 35862 35863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 35864$as_echo "but still no" >&6; } 35865 curl_cv_getnameinfo="no" 35866 35867fi 35868rm -f core conftest.err conftest.$ac_objext \ 35869 conftest$ac_exeext conftest.$ac_ext 35870 fi 35871 # 35872 if test "$curl_cv_getnameinfo" = "yes"; then 35873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5 35874$as_echo_n "checking types of arguments for getnameinfo... " >&6; } 35875if ${curl_cv_func_getnameinfo_args+:} false; then : 35876 $as_echo_n "(cached) " >&6 35877else 35878 35879 curl_cv_func_getnameinfo_args="unknown" 35880 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do 35881 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do 35882 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do 35883 for gni_arg7 in 'int' 'unsigned int'; do 35884 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then 35885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35886/* end confdefs.h. */ 35887 35888 35889#undef inline 35890#ifdef HAVE_WINDOWS_H 35891#ifndef WIN32_LEAN_AND_MEAN 35892#define WIN32_LEAN_AND_MEAN 35893#endif 35894#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) 35895#undef _WIN32_WINNT 35896#define _WIN32_WINNT 0x0501 35897#endif 35898#include <windows.h> 35899#ifdef HAVE_WINSOCK2_H 35900#include <winsock2.h> 35901#ifdef HAVE_WS2TCPIP_H 35902#include <ws2tcpip.h> 35903#endif 35904#endif 35905#define GNICALLCONV WSAAPI 35906#else 35907#ifdef HAVE_SYS_TYPES_H 35908#include <sys/types.h> 35909#endif 35910#ifdef HAVE_SYS_SOCKET_H 35911#include <sys/socket.h> 35912#endif 35913#ifdef HAVE_NETDB_H 35914#include <netdb.h> 35915#endif 35916#define GNICALLCONV 35917#endif 35918 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2, 35919 char *, $gni_arg46, 35920 char *, $gni_arg46, 35921 $gni_arg7); 35922 35923int main (void) 35924{ 35925 35926 $gni_arg2 salen=0; 35927 $gni_arg46 hostlen=0; 35928 $gni_arg46 servlen=0; 35929 $gni_arg7 flags=0; 35930 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags); 35931 35932 ; 35933 return 0; 35934} 35935 35936_ACEOF 35937if ac_fn_c_try_compile "$LINENO"; then : 35938 35939 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7" 35940 35941fi 35942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35943 fi 35944 done 35945 done 35946 done 35947 done 35948 35949fi 35950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5 35951$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK 35952 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then 35953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5 35954$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;} 35955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5 35956$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;} 35957 else 35958 gni_prev_IFS=$IFS; IFS=',' 35959 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'` 35960 IFS=$gni_prev_IFS 35961 shift 35962 # 35963 gni_qual_type_arg1=$1 35964 # 35965 35966cat >>confdefs.h <<_ACEOF 35967#define GETNAMEINFO_TYPE_ARG2 $2 35968_ACEOF 35969 35970 35971cat >>confdefs.h <<_ACEOF 35972#define GETNAMEINFO_TYPE_ARG46 $3 35973_ACEOF 35974 35975 35976cat >>confdefs.h <<_ACEOF 35977#define GETNAMEINFO_TYPE_ARG7 $4 35978_ACEOF 35979 35980 # 35981 prev_sh_opts=$- 35982 # 35983 case $prev_sh_opts in 35984 *f*) 35985 ;; 35986 *) 35987 set -f 35988 ;; 35989 esac 35990 # 35991 case "$gni_qual_type_arg1" in 35992 const*) 35993 gni_qual_arg1=const 35994 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'` 35995 ;; 35996 *) 35997 gni_qual_arg1= 35998 gni_type_arg1=$gni_qual_type_arg1 35999 ;; 36000 esac 36001 # 36002 36003cat >>confdefs.h <<_ACEOF 36004#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1 36005_ACEOF 36006 36007 36008cat >>confdefs.h <<_ACEOF 36009#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1 36010_ACEOF 36011 36012 # 36013 case $prev_sh_opts in 36014 *f*) 36015 ;; 36016 *) 36017 set +f 36018 ;; 36019 esac 36020 # 36021 36022cat >>confdefs.h <<_ACEOF 36023#define HAVE_GETNAMEINFO 1 36024_ACEOF 36025 36026 ac_cv_func_getnameinfo="yes" 36027 fi 36028 fi 36029 36030 36031if test "$ipv6" = "yes"; then 36032 if test "$ac_cv_func_getaddrinfo" = "yes"; then 36033 36034$as_echo "#define ENABLE_IPV6 1" >>confdefs.h 36035 36036 IPV6_ENABLED=1 36037 36038 fi 36039 36040 for ac_header in stdio.h sys/types.h sys/socket.h \ 36041 netdb.h netinet/in.h arpa/inet.h 36042do : 36043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 36044ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 36045if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 36046 cat >>confdefs.h <<_ACEOF 36047#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 36048_ACEOF 36049 36050fi 36051 36052done 36053 36054 # 36055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5 36056$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; } 36057if ${ac_cv_working_ni_withscopeid+:} false; then : 36058 $as_echo_n "(cached) " >&6 36059else 36060 36061 if test "$cross_compiling" = yes; then : 36062 36063 # Program is not run when cross-compiling. So we assume 36064 # NI_WITHSCOPEID will work if we are able to compile it. 36065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36066/* end confdefs.h. */ 36067 36068 36069#include <sys/types.h> 36070#include <sys/socket.h> 36071#include <netdb.h> 36072 36073int main (void) 36074{ 36075 36076 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID; 36077 36078 ; 36079 return 0; 36080} 36081 36082_ACEOF 36083if ac_fn_c_try_compile "$LINENO"; then : 36084 36085 ac_cv_working_ni_withscopeid="yes" 36086 36087else 36088 36089 ac_cv_working_ni_withscopeid="no" 36090 36091fi 36092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE 36093 36094else 36095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36096/* end confdefs.h. */ 36097 36098 36099#ifdef HAVE_STDLIB_H 36100#include <stdlib.h> 36101#endif 36102#ifdef HAVE_STDIO_H 36103#include <stdio.h> 36104#endif 36105#ifdef HAVE_SYS_TYPES_H 36106#include <sys/types.h> 36107#endif 36108#ifdef HAVE_SYS_SOCKET_H 36109#include <sys/socket.h> 36110#endif 36111#ifdef HAVE_NETDB_H 36112#include <netdb.h> 36113#endif 36114#ifdef HAVE_NETINET_IN_H 36115#include <netinet/in.h> 36116#endif 36117#ifdef HAVE_ARPA_INET_H 36118#include <arpa/inet.h> 36119#endif 36120 36121int main (void) 36122{ 36123 36124#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO) 36125#ifdef HAVE_STRUCT_SOCKADDR_STORAGE 36126 struct sockaddr_storage sa; 36127#else 36128 unsigned char sa[256]; 36129#endif 36130 char hostbuf[NI_MAXHOST]; 36131 int rc; 36132 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa); 36133 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf); 36134 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID; 36135 int fd = socket(AF_INET6, SOCK_STREAM, 0); 36136 if(fd < 0) { 36137 perror("socket()"); 36138 return 1; /* Error creating socket */ 36139 } 36140 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen); 36141 if(rc) { 36142 perror("getsockname()"); 36143 return 2; /* Error retrieving socket name */ 36144 } 36145 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags); 36146 if(rc) { 36147 printf("rc = %s\n", gai_strerror(rc)); 36148 return 3; /* Error translating socket address */ 36149 } 36150 return 0; /* Ok, NI_WITHSCOPEID works */ 36151#else 36152 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */ 36153#endif 36154 36155 ; 36156 return 0; 36157} # AC-LANG-PROGRAM 36158 36159_ACEOF 36160if ac_fn_c_try_run "$LINENO"; then : 36161 36162 # Exit code == 0. Program worked. 36163 ac_cv_working_ni_withscopeid="yes" 36164 36165else 36166 36167 # Exit code != 0. Program failed. 36168 ac_cv_working_ni_withscopeid="no" 36169 36170fi 36171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36172 conftest.$ac_objext conftest.beam conftest.$ac_ext 36173fi 36174 # AC-RUN-IFELSE 36175 36176fi 36177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5 36178$as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK 36179 case "$ac_cv_working_ni_withscopeid" in 36180 yes) 36181 36182$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h 36183 36184 ;; 36185 esac 36186 36187fi 36188 36189 36190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5 36191$as_echo_n "checking whether to enable non-blocking communications... " >&6; } 36192 OPT_NONBLOCKING="default" 36193 # Check whether --enable-nonblocking was given. 36194if test "${enable_nonblocking+set}" = set; then : 36195 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval 36196fi 36197 36198 case "$OPT_NONBLOCKING" in 36199 no) 36200 want_nonblocking="no" 36201 ;; 36202 default) 36203 want_nonblocking="yes" 36204 ;; 36205 *) 36206 want_nonblocking="yes" 36207 ;; 36208 esac 36209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5 36210$as_echo "$want_nonblocking" >&6; } 36211 36212 36213 # 36214 tst_method="unknown" 36215 if test "$want_nonblocking" = "yes"; then 36216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 36217$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; } 36218 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then 36219 tst_method="fcntl O_NONBLOCK" 36220 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then 36221 tst_method="ioctl FIONBIO" 36222 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then 36223 tst_method="ioctlsocket FIONBIO" 36224 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 36225 tst_method="IoctlSocket FIONBIO" 36226 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then 36227 tst_method="setsockopt SO_NONBLOCK" 36228 fi 36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 36230$as_echo "$tst_method" >&6; } 36231 if test "$tst_method" = "unknown"; then 36232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 36233$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} 36234 fi 36235 fi 36236 if test "$tst_method" = "unknown"; then 36237 36238cat >>confdefs.h <<_ACEOF 36239#define USE_BLOCKING_SOCKETS 1 36240_ACEOF 36241 36242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5 36243$as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;} 36244 fi 36245 36246 36247 36248# Extract the first word of "perl", so it can be a program name with args. 36249set dummy perl; ac_word=$2 36250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36251$as_echo_n "checking for $ac_word... " >&6; } 36252if ${ac_cv_path_PERL+:} false; then : 36253 $as_echo_n "(cached) " >&6 36254else 36255 case $PERL in 36256 [\\/]* | ?:[\\/]*) 36257 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 36258 ;; 36259 *) 36260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36261as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin " 36262for as_dir in $as_dummy 36263do 36264 IFS=$as_save_IFS 36265 test -z "$as_dir" && as_dir=. 36266 for ac_exec_ext in '' $ac_executable_extensions; do 36267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 36268 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 36269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36270 break 2 36271 fi 36272done 36273 done 36274IFS=$as_save_IFS 36275 36276 ;; 36277esac 36278fi 36279PERL=$ac_cv_path_PERL 36280if test -n "$PERL"; then 36281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36282$as_echo "$PERL" >&6; } 36283else 36284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36285$as_echo "no" >&6; } 36286fi 36287 36288 36289 36290 36291for ac_prog in gnroff nroff 36292do 36293 # Extract the first word of "$ac_prog", so it can be a program name with args. 36294set dummy $ac_prog; ac_word=$2 36295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36296$as_echo_n "checking for $ac_word... " >&6; } 36297if ${ac_cv_path_NROFF+:} false; then : 36298 $as_echo_n "(cached) " >&6 36299else 36300 case $NROFF in 36301 [\\/]* | ?:[\\/]*) 36302 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 36303 ;; 36304 *) 36305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36306as_dummy="$PATH:/usr/bin/:/usr/local/bin " 36307for as_dir in $as_dummy 36308do 36309 IFS=$as_save_IFS 36310 test -z "$as_dir" && as_dir=. 36311 for ac_exec_ext in '' $ac_executable_extensions; do 36312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 36313 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 36314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36315 break 2 36316 fi 36317done 36318 done 36319IFS=$as_save_IFS 36320 36321 ;; 36322esac 36323fi 36324NROFF=$ac_cv_path_NROFF 36325if test -n "$NROFF"; then 36326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 36327$as_echo "$NROFF" >&6; } 36328else 36329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36330$as_echo "no" >&6; } 36331fi 36332 36333 36334 test -n "$NROFF" && break 36335done 36336 36337 36338 36339if test -n "$NROFF"; then 36340 36341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5 36342$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; } 36343 MANOPT="-man" 36344 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` 36345 if test -z "$mancheck"; then 36346 MANOPT="-mandoc" 36347 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` 36348 if test -z "$mancheck"; then 36349 MANOPT="" 36350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 36351$as_echo "failed" >&6; } 36352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5 36353$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;} 36354 else 36355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 36356$as_echo "$MANOPT" >&6; } 36357 fi 36358 else 36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 36360$as_echo "$MANOPT" >&6; } 36361 fi 36362 36363fi 36364 36365if test -z "$MANOPT" 36366then 36367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5 36368$as_echo "$as_me: WARNING: disabling built-in manual" >&2;} 36369 USE_MANUAL="no"; 36370fi 36371 36372 36373if test "$USE_MANUAL" = "1"; then 36374 36375$as_echo "#define USE_MANUAL 1" >>confdefs.h 36376 36377 curl_manual_msg="enabled" 36378fi 36379 36380 36381 36382if test x"$USE_MANUAL" = x1; then 36383 USE_MANUAL_TRUE= 36384 USE_MANUAL_FALSE='#' 36385else 36386 USE_MANUAL_TRUE='#' 36387 USE_MANUAL_FALSE= 36388fi 36389 36390 36391 36392 36393 36394 # 36395 if test "$want_ares" = "yes"; then 36396 clean_CPPFLAGS="$CPPFLAGS" 36397 clean_LDFLAGS="$LDFLAGS" 36398 clean_LIBS="$LIBS" 36399 embedded_ares="unknown" 36400 configure_runpath=`pwd` 36401 embedded_ares_builddir="$configure_runpath/ares" 36402 if test -n "$want_ares_path"; then 36403 ares_CPPFLAGS="-I$want_ares_path/include" 36404 ares_LDFLAGS="-L$want_ares_path/lib" 36405 ares_LIBS="-lcares" 36406 else 36407 if test -d "$srcdir/ares"; then 36408 embedded_ares="yes" 36409 subdirs="$subdirs ares" 36410 36411 ares_CPPFLAGS="" 36412 ares_LDFLAGS="-L$embedded_ares_builddir" 36413 ares_LIBS="-lcares" 36414 else 36415 ares_CPPFLAGS="" 36416 ares_LDFLAGS="" 36417 ares_LIBS="-lcares" 36418 fi 36419 fi 36420 # 36421 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS" 36422 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS" 36423 LIBS="$ares_LIBS $clean_LIBS" 36424 # 36425 if test "$embedded_ares" != "yes"; then 36426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5 36427$as_echo_n "checking that c-ares is good and recent enough... " >&6; } 36428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36429/* end confdefs.h. */ 36430 36431 36432#include <ares.h> 36433 /* set of dummy functions in case c-ares was built with debug */ 36434 void curl_dofree() { } 36435 void curl_sclose() { } 36436 void curl_domalloc() { } 36437 void curl_docalloc() { } 36438 void curl_socket() { } 36439 36440int main (void) 36441{ 36442 36443 ares_channel channel; 36444 ares_cancel(channel); /* added in 1.2.0 */ 36445 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ 36446 ares_dup(&channel, channel); /* added in 1.6.0 */ 36447 36448 ; 36449 return 0; 36450} 36451 36452_ACEOF 36453if ac_fn_c_try_link "$LINENO"; then : 36454 36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36456$as_echo "yes" >&6; } 36457 36458else 36459 36460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36461$as_echo "no" >&6; } 36462 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5 36463 CPPFLAGS="$clean_CPPFLAGS" 36464 LDFLAGS="$clean_LDFLAGS" 36465 LIBS="$clean_LIBS" 36466 # prevent usage 36467 want_ares="no" 36468 36469fi 36470rm -f core conftest.err conftest.$ac_objext \ 36471 conftest$ac_exeext conftest.$ac_ext 36472 fi 36473 if test "$want_ares" = "yes"; then 36474 36475$as_echo "#define USE_ARES 1" >>confdefs.h 36476 36477 USE_ARES=1 36478 36479 curl_res_msg="c-ares" 36480 fi 36481 fi 36482 36483 36484 36485if test x$embedded_ares = xyes; then 36486 USE_EMBEDDED_ARES_TRUE= 36487 USE_EMBEDDED_ARES_FALSE='#' 36488else 36489 USE_EMBEDDED_ARES_TRUE='#' 36490 USE_EMBEDDED_ARES_FALSE= 36491fi 36492 36493 36494if test "x$ac_cv_native_windows" != "xyes" && 36495 test "x$enable_shared" = "xyes"; then 36496 build_libhostname=yes 36497else 36498 build_libhostname=no 36499fi 36500 36501 36502if test x$build_libhostname = xyes; then 36503 BUILD_LIBHOSTNAME_TRUE= 36504 BUILD_LIBHOSTNAME_FALSE='#' 36505else 36506 BUILD_LIBHOSTNAME_TRUE='#' 36507 BUILD_LIBHOSTNAME_FALSE= 36508fi 36509 36510 36511 36512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5 36513$as_echo_n "checking whether to enable the threaded resolver... " >&6; } 36514 OPT_THRES="default" 36515 # Check whether --enable-threaded_resolver was given. 36516if test "${enable_threaded_resolver+set}" = set; then : 36517 enableval=$enable_threaded_resolver; OPT_THRES=$enableval 36518fi 36519 36520 case "$OPT_THRES" in 36521 yes) 36522 want_thres="yes" 36523 ;; 36524 *) 36525 want_thres="no" 36526 ;; 36527 esac 36528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5 36529$as_echo "$want_thres" >&6; } 36530 36531 36532if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then 36533 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5 36534fi 36535 36536if test "$want_thres" = "yes"; then 36537 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 36538if test "x$ac_cv_header_pthread_h" = xyes; then : 36539 36540$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h 36541 36542 save_CFLAGS="$CFLAGS" 36543 CFLAGS="$CFLAGS -pthread" 36544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 36545$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 36546if ${ac_cv_lib_pthread_pthread_create+:} false; then : 36547 $as_echo_n "(cached) " >&6 36548else 36549 ac_check_lib_save_LIBS=$LIBS 36550LIBS="-lpthread $LIBS" 36551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36552/* end confdefs.h. */ 36553 36554 36555#ifdef __cplusplus 36556extern "C" 36557#endif 36558char pthread_create (); 36559int main (void) 36560{ 36561return pthread_create (); 36562 ; 36563 return 0; 36564} 36565_ACEOF 36566if ac_fn_c_try_link "$LINENO"; then : 36567 ac_cv_lib_pthread_pthread_create=yes 36568else 36569 ac_cv_lib_pthread_pthread_create=no 36570fi 36571rm -f core conftest.err conftest.$ac_objext \ 36572 conftest$ac_exeext conftest.$ac_ext 36573LIBS=$ac_check_lib_save_LIBS 36574fi 36575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 36576$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 36577if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 36578 { $as_echo "$as_me:${as_lineno-$LINENO}: using POSIX threaded DNS lookup" >&5 36579$as_echo "$as_me: using POSIX threaded DNS lookup" >&6;} 36580 36581$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h 36582 36583 USE_THREADS_POSIX=1 36584 curl_res_msg="threaded" 36585 36586else 36587 CFLAGS="$save_CFLAGS" 36588fi 36589 36590 36591fi 36592 36593 36594fi 36595 36596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5 36597$as_echo_n "checking whether to enable verbose strings... " >&6; } 36598# Check whether --enable-verbose was given. 36599if test "${enable_verbose+set}" = set; then : 36600 enableval=$enable_verbose; case "$enableval" in 36601 no) 36602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36603$as_echo "no" >&6; } 36604 36605$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h 36606 36607 curl_verbose_msg="no" 36608 ;; 36609 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36610$as_echo "yes" >&6; } 36611 ;; 36612 esac 36613else 36614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36615$as_echo "yes" >&6; } 36616 36617fi 36618 36619 36620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5 36621$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; } 36622# Check whether --enable-sspi was given. 36623if test "${enable_sspi+set}" = set; then : 36624 enableval=$enable_sspi; case "$enableval" in 36625 yes) 36626 if test "$ac_cv_native_windows" = "yes"; then 36627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36628$as_echo "yes" >&6; } 36629 36630$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h 36631 36632 USE_WINDOWS_SSPI=1 36633 36634 curl_sspi_msg="enabled" 36635 else 36636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36637$as_echo "no" >&6; } 36638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5 36639$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;} 36640 fi 36641 ;; 36642 *) 36643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36644$as_echo "no" >&6; } 36645 ;; 36646 esac 36647else 36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36649$as_echo "no" >&6; } 36650 36651fi 36652 36653 36654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5 36655$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; } 36656# Check whether --enable-crypto-auth was given. 36657if test "${enable_crypto_auth+set}" = set; then : 36658 enableval=$enable_crypto_auth; case "$enableval" in 36659 no) 36660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36661$as_echo "no" >&6; } 36662 36663$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h 36664 36665 ;; 36666 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36667$as_echo "yes" >&6; } 36668 ;; 36669 esac 36670else 36671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36672$as_echo "yes" >&6; } 36673 36674fi 36675 36676 36677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5 36678$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; } 36679# Check whether --enable-tls-srp was given. 36680if test "${enable_tls_srp+set}" = set; then : 36681 enableval=$enable_tls_srp; case "$enableval" in 36682 no) 36683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36684$as_echo "no" >&6; } 36685 36686$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h 36687 36688 want_tls_srp=no 36689 ;; 36690 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36691$as_echo "yes" >&6; } 36692 want_tls_srp=yes 36693 ;; 36694 esac 36695else 36696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36697$as_echo "yes" >&6; } 36698 want_tls_srp=yes 36699 36700fi 36701 36702 36703if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then 36704 36705$as_echo "#define USE_TLS_SRP 1" >>confdefs.h 36706 36707 USE_TLS_SRP=1 36708 curl_tls_srp_msg="enabled" 36709fi 36710 36711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5 36712$as_echo_n "checking whether to enable support for cookies... " >&6; } 36713# Check whether --enable-cookies was given. 36714if test "${enable_cookies+set}" = set; then : 36715 enableval=$enable_cookies; case "$enableval" in 36716 no) 36717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36718$as_echo "no" >&6; } 36719 36720$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h 36721 36722 ;; 36723 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36724$as_echo "yes" >&6; } 36725 ;; 36726 esac 36727else 36728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36729$as_echo "yes" >&6; } 36730 36731fi 36732 36733 36734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hidden symbols in the library" >&5 36735$as_echo_n "checking whether to enable hidden symbols in the library... " >&6; } 36736# Check whether --enable-hidden-symbols was given. 36737if test "${enable_hidden_symbols+set}" = set; then : 36738 enableval=$enable_hidden_symbols; case "$enableval" in 36739 no) 36740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36741$as_echo "no" >&6; } 36742 ;; 36743 *) 36744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5 36745$as_echo_n "checking whether $CC supports it... " >&6; } 36746 if test "$GCC" = yes ; then 36747 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null || 36748 test "$compiler_id" = "CLANG"; then 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36750$as_echo "yes" >&6; } 36751 36752$as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h 36753 36754 36755$as_echo "#define CURL_EXTERN_SYMBOL __attribute__ ((visibility (\"default\")))" >>confdefs.h 36756 36757 CFLAGS="$CFLAGS -fvisibility=hidden" 36758 else 36759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36760$as_echo "no" >&6; } 36761 fi 36762 36763 else 36764 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36766$as_echo "yes" >&6; } 36767 36768$as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h 36769 36770 36771$as_echo "#define CURL_EXTERN_SYMBOL __global" >>confdefs.h 36772 36773 CFLAGS="$CFLAGS -xldscope=hidden" 36774 else 36775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36776$as_echo "no" >&6; } 36777 fi 36778 fi 36779 ;; 36780 esac 36781else 36782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36783$as_echo "no" >&6; } 36784 36785fi 36786 36787 36788 36789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5 36790$as_echo_n "checking whether to enforce SONAME bump... " >&6; } 36791# Check whether --enable-soname-bump was given. 36792if test "${enable_soname_bump+set}" = set; then : 36793 enableval=$enable_soname_bump; case "$enableval" in 36794 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36795$as_echo "yes" >&6; } 36796 soname_bump=yes 36797 ;; 36798 *) 36799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36800$as_echo "no" >&6; } 36801 ;; 36802 esac 36803else 36804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5 36805$as_echo "$soname_bump" >&6; } 36806 36807fi 36808 36809 36810 36811if test x$soname_bump = xyes; then 36812 SONAME_BUMP_TRUE= 36813 SONAME_BUMP_FALSE='#' 36814else 36815 SONAME_BUMP_TRUE='#' 36816 SONAME_BUMP_FALSE= 36817fi 36818 36819 36820 36821if test ! -z "$winsock_LIB"; then 36822 36823 36824 LIBS="$LIBS $winsock_LIB" 36825 TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB" 36826 36827fi 36828 36829LIBCURL_LIBS=$LIBS 36830 36831 36832 36833 36834 36835LIBS=$ALL_LIBS 36836 36837 36838if test x$cross_compiling = xyes; then 36839 CROSSCOMPILING_TRUE= 36840 CROSSCOMPILING_FALSE='#' 36841else 36842 CROSSCOMPILING_TRUE='#' 36843 CROSSCOMPILING_FALSE= 36844fi 36845 36846 36847ENABLE_SHARED="$enable_shared" 36848 36849 36850 36851if test "x$USE_SSLEAY" = "x1"; then 36852 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 36853elif test -n "$SSL_ENABLED"; then 36854 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 36855fi 36856if test "@KRB4_ENABLED@" = "x1"; then 36857 SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4" 36858fi 36859if test "x$IPV6_ENABLED" = "x1"; then 36860 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6" 36861fi 36862if test "x$HAVE_LIBZ" = "x1"; then 36863 SUPPORT_FEATURES="$SUPPORT_FEATURES libz" 36864fi 36865if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then 36866 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" 36867fi 36868if test "x$IDN_ENABLED" = "x1"; then 36869 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN" 36870fi 36871if test "x$USE_WINDOWS_SSPI" = "x1"; then 36872 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI" 36873fi 36874if test "x$CURL_DISABLE_HTTP" != "x1"; then 36875 if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ 36876 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then 36877 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" 36878 fi 36879fi 36880if test "x$USE_TLS_SRP" = "x1"; then 36881 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP" 36882fi 36883 36884 36885 36886if test "x$CURL_DISABLE_HTTP" != "x1"; then 36887 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP" 36888 if test "x$SSL_ENABLED" = "x1"; then 36889 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS" 36890 fi 36891fi 36892if test "x$CURL_DISABLE_FTP" != "x1"; then 36893 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP" 36894 if test "x$SSL_ENABLED" = "x1"; then 36895 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS" 36896 fi 36897fi 36898if test "x$CURL_DISABLE_FILE" != "x1"; then 36899 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE" 36900fi 36901if test "x$CURL_DISABLE_TELNET" != "x1"; then 36902 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" 36903fi 36904if test "x$CURL_DISABLE_LDAP" != "x1"; then 36905 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" 36906 if test "x$CURL_DISABLE_LDAPS" != "x1"; then 36907 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") || 36908 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then 36909 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" 36910 fi 36911 fi 36912fi 36913if test "x$CURL_DISABLE_DICT" != "x1"; then 36914 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" 36915fi 36916if test "x$CURL_DISABLE_TFTP" != "x1"; then 36917 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP" 36918fi 36919if test "x$CURL_DISABLE_GOPHER" != "x1"; then 36920 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER" 36921fi 36922if test "x$CURL_DISABLE_POP3" != "x1"; then 36923 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3" 36924 if test "x$SSL_ENABLED" = "x1"; then 36925 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S" 36926 fi 36927fi 36928if test "x$CURL_DISABLE_IMAP" != "x1"; then 36929 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP" 36930 if test "x$SSL_ENABLED" = "x1"; then 36931 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS" 36932 fi 36933fi 36934if test "x$CURL_DISABLE_SMTP" != "x1"; then 36935 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP" 36936 if test "x$SSL_ENABLED" = "x1"; then 36937 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS" 36938 fi 36939fi 36940if test "x$USE_LIBSSH2" = "x1"; then 36941 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 36942 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 36943fi 36944if test "x$CURL_DISABLE_RTSP" != "x1"; then 36945 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP" 36946fi 36947if test "x$USE_LIBRTMP" = "x1"; then 36948 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP" 36949fi 36950 36951SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '` 36952 36953 36954 36955 36956squeeze CFLAGS 36957squeeze CPPFLAGS 36958squeeze DEFS 36959squeeze LDFLAGS 36960squeeze LIBS 36961 36962squeeze CURL_LIBS 36963squeeze LIBCURL_LIBS 36964squeeze TEST_SERVER_LIBS 36965squeeze CURL_NETWORK_LIBS 36966 36967squeeze SUPPORT_FEATURES 36968squeeze SUPPORT_PROTOCOLS 36969 36970if test "x$want_curldebug_assumed" = "xyes" && 36971 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then 36972 ac_configure_args="$ac_configure_args --enable-curldebug" 36973fi 36974 36975ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc" 36976 36977cat >confcache <<\_ACEOF 36978# This file is a shell script that caches the results of configure 36979# tests run on this system so they can be shared between configure 36980# scripts and configure runs, see configure's option --config-cache. 36981# It is not useful on other systems. If it contains results you don't 36982# want to keep, you may remove or edit it. 36983# 36984# config.status only pays attention to the cache file if you give it 36985# the --recheck option to rerun configure. 36986# 36987# `ac_cv_env_foo' variables (set or unset) will be overridden when 36988# loading this file, other *unset* `ac_cv_foo' will be assigned the 36989# following values. 36990 36991_ACEOF 36992 36993# The following way of writing the cache mishandles newlines in values, 36994# but we know of no workaround that is simple, portable, and efficient. 36995# So, we kill variables containing newlines. 36996# Ultrix sh set writes to stderr and can't be redirected directly, 36997# and sets the high bit in the cache file unless we assign to the vars. 36998( 36999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37000 eval ac_val=\$$ac_var 37001 case $ac_val in #( 37002 *${as_nl}*) 37003 case $ac_var in #( 37004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37006 esac 37007 case $ac_var in #( 37008 _ | IFS | as_nl) ;; #( 37009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37010 *) { eval $ac_var=; unset $ac_var;} ;; 37011 esac ;; 37012 esac 37013 done 37014 37015 (set) 2>&1 | 37016 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37017 *${as_nl}ac_space=\ *) 37018 # `set' does not quote correctly, so add quotes: double-quote 37019 # substitution turns \\\\ into \\, and sed turns \\ into \. 37020 sed -n \ 37021 "s/'/'\\\\''/g; 37022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37023 ;; #( 37024 *) 37025 # `set' quotes correctly as required by POSIX, so do not add quotes. 37026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37027 ;; 37028 esac | 37029 sort 37030) | 37031 sed ' 37032 /^ac_cv_env_/b end 37033 t clear 37034 :clear 37035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37036 t end 37037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37038 :end' >>confcache 37039if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37040 if test -w "$cache_file"; then 37041 if test "x$cache_file" != "x/dev/null"; then 37042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37043$as_echo "$as_me: updating cache $cache_file" >&6;} 37044 if test ! -f "$cache_file" || test -h "$cache_file"; then 37045 cat confcache >"$cache_file" 37046 else 37047 case $cache_file in #( 37048 */* | ?:*) 37049 mv -f confcache "$cache_file"$$ && 37050 mv -f "$cache_file"$$ "$cache_file" ;; #( 37051 *) 37052 mv -f confcache "$cache_file" ;; 37053 esac 37054 fi 37055 fi 37056 else 37057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37058$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37059 fi 37060fi 37061rm -f confcache 37062 37063test "x$prefix" = xNONE && prefix=$ac_default_prefix 37064# Let make expand exec_prefix. 37065test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37066 37067DEFS=-DHAVE_CONFIG_H 37068 37069ac_libobjs= 37070ac_ltlibobjs= 37071U= 37072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37073 # 1. Remove the extension, and $U if already installed. 37074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37077 # will be set to the directory where LIBOBJS objects are built. 37078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37080done 37081LIBOBJS=$ac_libobjs 37082 37083LTLIBOBJS=$ac_ltlibobjs 37084 37085 37086if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 37087 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 37088Usually this means the macro was only invoked conditionally." "$LINENO" 5 37089fi 37090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 37091 as_fn_error $? "conditional \"AMDEP\" was never defined. 37092Usually this means the macro was only invoked conditionally." "$LINENO" 5 37093fi 37094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37095 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37096Usually this means the macro was only invoked conditionally." "$LINENO" 5 37097fi 37098if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then 37099 as_fn_error $? "conditional \"MIMPURE\" was never defined. 37100Usually this means the macro was only invoked conditionally." "$LINENO" 5 37101fi 37102if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then 37103 as_fn_error $? "conditional \"STATICLIB\" was never defined. 37104Usually this means the macro was only invoked conditionally." "$LINENO" 5 37105fi 37106if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then 37107 as_fn_error $? "conditional \"STATICLIB\" was never defined. 37108Usually this means the macro was only invoked conditionally." "$LINENO" 5 37109fi 37110if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 37111 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 37112Usually this means the macro was only invoked conditionally." "$LINENO" 5 37113fi 37114if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then 37115 as_fn_error $? "conditional \"CURLDEBUG\" was never defined. 37116Usually this means the macro was only invoked conditionally." "$LINENO" 5 37117fi 37118if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then 37119 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined. 37120Usually this means the macro was only invoked conditionally." "$LINENO" 5 37121fi 37122if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then 37123 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined. 37124Usually this means the macro was only invoked conditionally." "$LINENO" 5 37125fi 37126if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then 37127 as_fn_error $? "conditional \"USE_MANUAL\" was never defined. 37128Usually this means the macro was only invoked conditionally." "$LINENO" 5 37129fi 37130if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then 37131 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined. 37132Usually this means the macro was only invoked conditionally." "$LINENO" 5 37133fi 37134if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then 37135 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined. 37136Usually this means the macro was only invoked conditionally." "$LINENO" 5 37137fi 37138if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then 37139 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined. 37140Usually this means the macro was only invoked conditionally." "$LINENO" 5 37141fi 37142if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then 37143 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined. 37144Usually this means the macro was only invoked conditionally." "$LINENO" 5 37145fi 37146 37147: "${CONFIG_STATUS=./config.status}" 37148ac_write_fail=0 37149ac_clean_files_save=$ac_clean_files 37150ac_clean_files="$ac_clean_files $CONFIG_STATUS" 37151{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 37152$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 37153as_write_fail=0 37154cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 37155#! $SHELL 37156# Generated by $as_me. 37157# Run this file to recreate the current configuration. 37158# Compiler output produced by configure, useful for debugging 37159# configure, is in config.log if it exists. 37160 37161debug=false 37162ac_cs_recheck=false 37163ac_cs_silent=false 37164 37165SHELL=\${CONFIG_SHELL-$SHELL} 37166export SHELL 37167_ASEOF 37168cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 37169## -------------------- ## 37170## M4sh Initialization. ## 37171## -------------------- ## 37172 37173# Be more Bourne compatible 37174DUALCASE=1; export DUALCASE # for MKS sh 37175if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37176 emulate sh 37177 NULLCMD=: 37178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 37179 # is contrary to our usage. Disable this feature. 37180 alias -g '${1+"$@"}'='"$@"' 37181 setopt NO_GLOB_SUBST 37182else 37183 case `(set -o) 2>/dev/null` in #( 37184 *posix*) : 37185 set -o posix ;; #( 37186 *) : 37187 ;; 37188esac 37189fi 37190 37191 37192as_nl=' 37193' 37194export as_nl 37195# Printing a long string crashes Solaris 7 /usr/bin/printf. 37196as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37197as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 37198as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 37199# Prefer a ksh shell builtin over an external printf program on Solaris, 37200# but without wasting forks for bash or zsh. 37201if test -z "$BASH_VERSION$ZSH_VERSION" \ 37202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 37203 as_echo='print -r --' 37204 as_echo_n='print -rn --' 37205elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 37206 as_echo='printf %s\n' 37207 as_echo_n='printf %s' 37208else 37209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 37210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 37211 as_echo_n='/usr/ucb/echo -n' 37212 else 37213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 37214 as_echo_n_body='eval 37215 arg=$1; 37216 case $arg in #( 37217 *"$as_nl"*) 37218 expr "X$arg" : "X\\(.*\\)$as_nl"; 37219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 37220 esac; 37221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 37222 ' 37223 export as_echo_n_body 37224 as_echo_n='sh -c $as_echo_n_body as_echo' 37225 fi 37226 export as_echo_body 37227 as_echo='sh -c $as_echo_body as_echo' 37228fi 37229 37230 37231 37232# IFS 37233# We need space, tab and new line, in precisely that order. Quoting is 37234# there to prevent editors from complaining about space-tab. 37235# (If _AS_PATH_WALK were called with IFS unset, it would disable word 37236# splitting by setting IFS to empty value.) 37237IFS=" "" $as_nl" 37238 37239# Find who we are. Look in the path if we contain no directory separator. 37240as_myself= 37241case $0 in #(( 37242 *[\\/]* ) as_myself=$0 ;; 37243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37244for as_dir in $PATH 37245do 37246 IFS=$as_save_IFS 37247 test -z "$as_dir" && as_dir=. 37248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 37249 done 37250IFS=$as_save_IFS 37251 37252 ;; 37253esac 37254# We did not find ourselves, most probably we were run as `sh COMMAND' 37255# in which case we are not to be found in the path. 37256if test "x$as_myself" = x; then 37257 as_myself=$0 37258fi 37259if test ! -f "$as_myself"; then 37260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 37261 exit 1 37262fi 37263 37264# Unset variables that we do not need and which cause bugs (e.g. in 37265# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 37266# suppresses any "Segmentation fault" message there. '((' could 37267# trigger a bug in pdksh 5.2.14. 37268for as_var in BASH_ENV ENV MAIL MAILPATH 37269do eval test x\${$as_var+set} = xset \ 37270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 37271done 37272PS1='$ ' 37273PS2='> ' 37274PS4='+ ' 37275 37276# NLS nuisances. 37277LC_ALL=C 37278export LC_ALL 37279LANGUAGE=C 37280export LANGUAGE 37281 37282# CDPATH. 37283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37284 37285 37286# as_fn_error STATUS ERROR [LINENO LOG_FD] 37287# ---------------------------------------- 37288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37290# script with STATUS, using 1 if that was 0. 37291as_fn_error () 37292{ 37293 as_status=$1; test $as_status -eq 0 && as_status=1 37294 if test "$4"; then 37295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 37296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 37297 fi 37298 $as_echo "$as_me: error: $2" >&2 37299 as_fn_exit $as_status 37300} # as_fn_error 37301 37302 37303# as_fn_set_status STATUS 37304# ----------------------- 37305# Set $? to STATUS, without forking. 37306as_fn_set_status () 37307{ 37308 return $1 37309} # as_fn_set_status 37310 37311# as_fn_exit STATUS 37312# ----------------- 37313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 37314as_fn_exit () 37315{ 37316 set +e 37317 as_fn_set_status $1 37318 exit $1 37319} # as_fn_exit 37320 37321# as_fn_unset VAR 37322# --------------- 37323# Portably unset VAR. 37324as_fn_unset () 37325{ 37326 { eval $1=; unset $1;} 37327} 37328as_unset=as_fn_unset 37329# as_fn_append VAR VALUE 37330# ---------------------- 37331# Append the text in VALUE to the end of the definition contained in VAR. Take 37332# advantage of any shell optimizations that allow amortized linear growth over 37333# repeated appends, instead of the typical quadratic growth present in naive 37334# implementations. 37335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37336 eval 'as_fn_append () 37337 { 37338 eval $1+=\$2 37339 }' 37340else 37341 as_fn_append () 37342 { 37343 eval $1=\$$1\$2 37344 } 37345fi # as_fn_append 37346 37347# as_fn_arith ARG... 37348# ------------------ 37349# Perform arithmetic evaluation on the ARGs, and store the result in the 37350# global $as_val. Take advantage of shells that can avoid forks. The arguments 37351# must be portable across $(()) and expr. 37352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 37353 eval 'as_fn_arith () 37354 { 37355 as_val=$(( $* )) 37356 }' 37357else 37358 as_fn_arith () 37359 { 37360 as_val=`expr "$@" || test $? -eq 1` 37361 } 37362fi # as_fn_arith 37363 37364 37365if expr a : '\(a\)' >/dev/null 2>&1 && 37366 test "X`expr 00001 : '.*\(...\)'`" = X001; then 37367 as_expr=expr 37368else 37369 as_expr=false 37370fi 37371 37372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 37373 as_basename=basename 37374else 37375 as_basename=false 37376fi 37377 37378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 37379 as_dirname=dirname 37380else 37381 as_dirname=false 37382fi 37383 37384as_me=`$as_basename -- "$0" || 37385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 37386 X"$0" : 'X\(//\)$' \| \ 37387 X"$0" : 'X\(/\)' \| . 2>/dev/null || 37388$as_echo X/"$0" | 37389 sed '/^.*\/\([^/][^/]*\)\/*$/{ 37390 s//\1/ 37391 q 37392 } 37393 /^X\/\(\/\/\)$/{ 37394 s//\1/ 37395 q 37396 } 37397 /^X\/\(\/\).*/{ 37398 s//\1/ 37399 q 37400 } 37401 s/.*/./; q'` 37402 37403# Avoid depending upon Character Ranges. 37404as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37406as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37407as_cr_digits='0123456789' 37408as_cr_alnum=$as_cr_Letters$as_cr_digits 37409 37410ECHO_C= ECHO_N= ECHO_T= 37411case `echo -n x` in #((((( 37412-n*) 37413 case `echo 'xy\c'` in 37414 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 37415 xy) ECHO_C='\c';; 37416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 37417 ECHO_T=' ';; 37418 esac;; 37419*) 37420 ECHO_N='-n';; 37421esac 37422 37423rm -f conf$$ conf$$.exe conf$$.file 37424if test -d conf$$.dir; then 37425 rm -f conf$$.dir/conf$$.file 37426else 37427 rm -f conf$$.dir 37428 mkdir conf$$.dir 2>/dev/null 37429fi 37430if (echo >conf$$.file) 2>/dev/null; then 37431 if ln -s conf$$.file conf$$ 2>/dev/null; then 37432 as_ln_s='ln -s' 37433 # ... but there are two gotchas: 37434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 37435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 37436 # In both cases, we have to default to `cp -p'. 37437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 37438 as_ln_s='cp -p' 37439 elif ln conf$$.file conf$$ 2>/dev/null; then 37440 as_ln_s=ln 37441 else 37442 as_ln_s='cp -p' 37443 fi 37444else 37445 as_ln_s='cp -p' 37446fi 37447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 37448rmdir conf$$.dir 2>/dev/null 37449 37450 37451# as_fn_mkdir_p 37452# ------------- 37453# Create "$as_dir" as a directory, including parents if necessary. 37454as_fn_mkdir_p () 37455{ 37456 37457 case $as_dir in #( 37458 -*) as_dir=./$as_dir;; 37459 esac 37460 test -d "$as_dir" || eval $as_mkdir_p || { 37461 as_dirs= 37462 while :; do 37463 case $as_dir in #( 37464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 37465 *) as_qdir=$as_dir;; 37466 esac 37467 as_dirs="'$as_qdir' $as_dirs" 37468 as_dir=`$as_dirname -- "$as_dir" || 37469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37470 X"$as_dir" : 'X\(//\)[^/]' \| \ 37471 X"$as_dir" : 'X\(//\)$' \| \ 37472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 37473$as_echo X"$as_dir" | 37474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37475 s//\1/ 37476 q 37477 } 37478 /^X\(\/\/\)[^/].*/{ 37479 s//\1/ 37480 q 37481 } 37482 /^X\(\/\/\)$/{ 37483 s//\1/ 37484 q 37485 } 37486 /^X\(\/\).*/{ 37487 s//\1/ 37488 q 37489 } 37490 s/.*/./; q'` 37491 test -d "$as_dir" && break 37492 done 37493 test -z "$as_dirs" || eval "mkdir $as_dirs" 37494 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37495 37496 37497} # as_fn_mkdir_p 37498if mkdir -p . 2>/dev/null; then 37499 as_mkdir_p='mkdir -p "$as_dir"' 37500else 37501 test -d ./-p && rmdir ./-p 37502 as_mkdir_p=false 37503fi 37504 37505if test -x / >/dev/null 2>&1; then 37506 as_test_x='test -x' 37507else 37508 if ls -dL / >/dev/null 2>&1; then 37509 as_ls_L_option=L 37510 else 37511 as_ls_L_option= 37512 fi 37513 as_test_x=' 37514 eval sh -c '\'' 37515 if test -d "$1"; then 37516 test -d "$1/."; 37517 else 37518 case $1 in #( 37519 -*)set "./$1";; 37520 esac; 37521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 37522 ???[sx]*):;;*)false;;esac;fi 37523 '\'' sh 37524 ' 37525fi 37526as_executable_p=$as_test_x 37527 37528# Sed expression to map a string onto a valid CPP name. 37529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 37530 37531# Sed expression to map a string onto a valid variable name. 37532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 37533 37534 37535exec 6>&1 37536## ----------------------------------- ## 37537## Main body of $CONFIG_STATUS script. ## 37538## ----------------------------------- ## 37539_ASEOF 37540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 37541 37542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37543# Save the log message, to keep $0 and so on meaningful, and to 37544# report actual input values of CONFIG_FILES etc. instead of their 37545# values after options handling. 37546ac_log=" 37547This file was extended by curl $as_me -, which was 37548generated by GNU Autoconf 2.68. Invocation command line was 37549 37550 CONFIG_FILES = $CONFIG_FILES 37551 CONFIG_HEADERS = $CONFIG_HEADERS 37552 CONFIG_LINKS = $CONFIG_LINKS 37553 CONFIG_COMMANDS = $CONFIG_COMMANDS 37554 $ $0 $@ 37555 37556on `(hostname || uname -n) 2>/dev/null | sed 1q` 37557" 37558 37559_ACEOF 37560 37561case $ac_config_files in *" 37562"*) set x $ac_config_files; shift; ac_config_files=$*;; 37563esac 37564 37565case $ac_config_headers in *" 37566"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 37567esac 37568 37569 37570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37571# Files that config.status was made for. 37572config_files="$ac_config_files" 37573config_headers="$ac_config_headers" 37574config_commands="$ac_config_commands" 37575 37576_ACEOF 37577 37578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37579ac_cs_usage="\ 37580\`$as_me' instantiates files and other configuration actions 37581from templates according to the current configuration. Unless the files 37582and actions are specified as TAGs, all are instantiated by default. 37583 37584Usage: $0 [OPTION]... [TAG]... 37585 37586 -h, --help print this help, then exit 37587 -V, --version print version number and configuration settings, then exit 37588 --config print configuration, then exit 37589 -q, --quiet, --silent 37590 do not print progress messages 37591 -d, --debug don't remove temporary files 37592 --recheck update $as_me by reconfiguring in the same conditions 37593 --file=FILE[:TEMPLATE] 37594 instantiate the configuration file FILE 37595 --header=FILE[:TEMPLATE] 37596 instantiate the configuration header FILE 37597 37598Configuration files: 37599$config_files 37600 37601Configuration headers: 37602$config_headers 37603 37604Configuration commands: 37605$config_commands 37606 37607Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>." 37608 37609_ACEOF 37610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37611ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 37612ac_cs_version="\\ 37613curl config.status - 37614configured by $0, generated by GNU Autoconf 2.68, 37615 with options \\"\$ac_cs_config\\" 37616 37617Copyright (C) 2010 Free Software Foundation, Inc. 37618This config.status script is free software; the Free Software Foundation 37619gives unlimited permission to copy, distribute and modify it." 37620 37621ac_pwd='$ac_pwd' 37622srcdir='$srcdir' 37623INSTALL='$INSTALL' 37624AWK='$AWK' 37625test -n "\$AWK" || AWK=awk 37626_ACEOF 37627 37628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37629# The default lists apply if the user does not specify any file. 37630ac_need_defaults=: 37631while test $# != 0 37632do 37633 case $1 in 37634 --*=?*) 37635 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37636 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 37637 ac_shift=: 37638 ;; 37639 --*=) 37640 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37641 ac_optarg= 37642 ac_shift=: 37643 ;; 37644 *) 37645 ac_option=$1 37646 ac_optarg=$2 37647 ac_shift=shift 37648 ;; 37649 esac 37650 37651 case $ac_option in 37652 # Handling of the options. 37653 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 37654 ac_cs_recheck=: ;; 37655 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 37656 $as_echo "$ac_cs_version"; exit ;; 37657 --config | --confi | --conf | --con | --co | --c ) 37658 $as_echo "$ac_cs_config"; exit ;; 37659 --debug | --debu | --deb | --de | --d | -d ) 37660 debug=: ;; 37661 --file | --fil | --fi | --f ) 37662 $ac_shift 37663 case $ac_optarg in 37664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37665 '') as_fn_error $? "missing file argument" ;; 37666 esac 37667 as_fn_append CONFIG_FILES " '$ac_optarg'" 37668 ac_need_defaults=false;; 37669 --header | --heade | --head | --hea ) 37670 $ac_shift 37671 case $ac_optarg in 37672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37673 esac 37674 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 37675 ac_need_defaults=false;; 37676 --he | --h) 37677 # Conflict between --help and --header 37678 as_fn_error $? "ambiguous option: \`$1' 37679Try \`$0 --help' for more information.";; 37680 --help | --hel | -h ) 37681 $as_echo "$ac_cs_usage"; exit ;; 37682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 37683 | -silent | --silent | --silen | --sile | --sil | --si | --s) 37684 ac_cs_silent=: ;; 37685 37686 # This is an error. 37687 -*) as_fn_error $? "unrecognized option: \`$1' 37688Try \`$0 --help' for more information." ;; 37689 37690 *) as_fn_append ac_config_targets " $1" 37691 ac_need_defaults=false ;; 37692 37693 esac 37694 shift 37695done 37696 37697ac_configure_extra_args= 37698 37699if $ac_cs_silent; then 37700 exec 6>/dev/null 37701 ac_configure_extra_args="$ac_configure_extra_args --silent" 37702fi 37703 37704_ACEOF 37705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37706if \$ac_cs_recheck; then 37707 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 37708 shift 37709 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 37710 CONFIG_SHELL='$SHELL' 37711 export CONFIG_SHELL 37712 exec "\$@" 37713fi 37714 37715_ACEOF 37716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37717exec 5>>config.log 37718{ 37719 echo 37720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 37721## Running $as_me. ## 37722_ASBOX 37723 $as_echo "$ac_log" 37724} >&5 37725 37726_ACEOF 37727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37728# 37729# INIT-COMMANDS 37730# 37731AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 37732 37733 37734# The HP-UX ksh and POSIX shell print the target directory to stdout 37735# if CDPATH is set. 37736(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37737 37738sed_quote_subst='$sed_quote_subst' 37739double_quote_subst='$double_quote_subst' 37740delay_variable_subst='$delay_variable_subst' 37741AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 37742DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 37743OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 37744macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 37745macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 37746enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 37747enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 37748pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 37749enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 37750SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 37751ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 37752host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 37753host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 37754host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 37755build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 37756build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 37757build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 37758SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 37759Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 37760GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 37761EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 37762FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 37763LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 37764NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 37765LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 37766max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 37767ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 37768exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 37769lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 37770lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 37771lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 37772lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 37773lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 37774reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 37775reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 37776deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 37777file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 37778file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 37779want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 37780sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 37781AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 37782AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 37783archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 37784STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 37785RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 37786old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 37787old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 37788old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 37789lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 37790CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 37791CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 37792compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 37793GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 37794lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 37795lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 37796lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 37797lt_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"`' 37798nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 37799lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 37800objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 37801MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 37802lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 37803lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 37804lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 37805lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 37806lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 37807need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 37808MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 37809DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 37810NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 37811LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 37812OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 37813OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 37814libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 37815shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 37816extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 37817archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 37818enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 37819export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 37820whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 37821compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 37822old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 37823old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 37824archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 37825archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 37826module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 37827module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 37828with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 37829allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 37830no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 37831hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 37832hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 37833hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 37834hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 37835hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 37836hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 37837hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 37838hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 37839inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 37840link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 37841always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 37842export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 37843exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 37844include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 37845prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 37846postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 37847file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 37848variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 37849need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 37850need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 37851version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 37852runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 37853shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 37854shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 37855libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 37856library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 37857soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 37858install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 37859postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 37860postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 37861finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 37862finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 37863hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 37864sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 37865sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 37866hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 37867enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 37868enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 37869enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 37870old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 37871striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 37872 37873LTCC='$LTCC' 37874LTCFLAGS='$LTCFLAGS' 37875compiler='$compiler_DEFAULT' 37876 37877# A function that is used when there is no print builtin or printf. 37878func_fallback_echo () 37879{ 37880 eval 'cat <<_LTECHO_EOF 37881\$1 37882_LTECHO_EOF' 37883} 37884 37885# Quote evaled strings. 37886for var in AS \ 37887DLLTOOL \ 37888OBJDUMP \ 37889SHELL \ 37890ECHO \ 37891SED \ 37892GREP \ 37893EGREP \ 37894FGREP \ 37895LD \ 37896NM \ 37897LN_S \ 37898lt_SP2NL \ 37899lt_NL2SP \ 37900reload_flag \ 37901deplibs_check_method \ 37902file_magic_cmd \ 37903file_magic_glob \ 37904want_nocaseglob \ 37905sharedlib_from_linklib_cmd \ 37906AR \ 37907AR_FLAGS \ 37908archiver_list_spec \ 37909STRIP \ 37910RANLIB \ 37911CC \ 37912CFLAGS \ 37913compiler \ 37914lt_cv_sys_global_symbol_pipe \ 37915lt_cv_sys_global_symbol_to_cdecl \ 37916lt_cv_sys_global_symbol_to_c_name_address \ 37917lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 37918nm_file_list_spec \ 37919lt_prog_compiler_no_builtin_flag \ 37920lt_prog_compiler_pic \ 37921lt_prog_compiler_wl \ 37922lt_prog_compiler_static \ 37923lt_cv_prog_compiler_c_o \ 37924need_locks \ 37925MANIFEST_TOOL \ 37926DSYMUTIL \ 37927NMEDIT \ 37928LIPO \ 37929OTOOL \ 37930OTOOL64 \ 37931shrext_cmds \ 37932export_dynamic_flag_spec \ 37933whole_archive_flag_spec \ 37934compiler_needs_object \ 37935with_gnu_ld \ 37936allow_undefined_flag \ 37937no_undefined_flag \ 37938hardcode_libdir_flag_spec \ 37939hardcode_libdir_flag_spec_ld \ 37940hardcode_libdir_separator \ 37941exclude_expsyms \ 37942include_expsyms \ 37943file_list_spec \ 37944variables_saved_for_relink \ 37945libname_spec \ 37946library_names_spec \ 37947soname_spec \ 37948install_override_mode \ 37949finish_eval \ 37950old_striplib \ 37951striplib; do 37952 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 37953 *[\\\\\\\`\\"\\\$]*) 37954 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 37955 ;; 37956 *) 37957 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 37958 ;; 37959 esac 37960done 37961 37962# Double-quote double-evaled strings. 37963for var in reload_cmds \ 37964old_postinstall_cmds \ 37965old_postuninstall_cmds \ 37966old_archive_cmds \ 37967extract_expsyms_cmds \ 37968old_archive_from_new_cmds \ 37969old_archive_from_expsyms_cmds \ 37970archive_cmds \ 37971archive_expsym_cmds \ 37972module_cmds \ 37973module_expsym_cmds \ 37974export_symbols_cmds \ 37975prelink_cmds \ 37976postlink_cmds \ 37977postinstall_cmds \ 37978postuninstall_cmds \ 37979finish_cmds \ 37980sys_lib_search_path_spec \ 37981sys_lib_dlsearch_path_spec; do 37982 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 37983 *[\\\\\\\`\\"\\\$]*) 37984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 37985 ;; 37986 *) 37987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 37988 ;; 37989 esac 37990done 37991 37992ac_aux_dir='$ac_aux_dir' 37993xsi_shell='$xsi_shell' 37994lt_shell_append='$lt_shell_append' 37995 37996# See if we are running on zsh, and set the options which allow our 37997# commands through without removal of \ escapes INIT. 37998if test -n "\${ZSH_VERSION+set}" ; then 37999 setopt NO_GLOB_SUBST 38000fi 38001 38002 38003 PACKAGE='$PACKAGE' 38004 VERSION='$VERSION' 38005 TIMESTAMP='$TIMESTAMP' 38006 RM='$RM' 38007 ofile='$ofile' 38008 38009 38010 38011 38012_ACEOF 38013 38014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38015 38016# Handling of arguments. 38017for ac_config_target in $ac_config_targets 38018do 38019 case $ac_config_target in 38020 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;; 38021 "src/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/curl_config.h" ;; 38022 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;; 38023 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 38024 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 38025 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38026 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 38027 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;; 38028 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;; 38029 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 38030 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;; 38031 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 38032 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 38033 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 38034 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;; 38035 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;; 38036 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 38037 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 38038 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 38039 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;; 38040 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;; 38041 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;; 38042 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;; 38043 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;; 38044 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;; 38045 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;; 38046 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;; 38047 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;; 38048 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;; 38049 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;; 38050 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;; 38051 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;; 38052 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;; 38053 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;; 38054 38055 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 38056 esac 38057done 38058 38059 38060# If the user did not use the arguments to specify the items to instantiate, 38061# then the envvar interface is used. Set only those that are not. 38062# We use the long form for the default assignment because of an extremely 38063# bizarre bug on SunOS 4.1.3. 38064if $ac_need_defaults; then 38065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 38066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 38067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 38068fi 38069 38070# Have a temporary directory for convenience. Make it in the build tree 38071# simply because there is no reason against having it here, and in addition, 38072# creating and moving files from /tmp can sometimes cause problems. 38073# Hook for its removal unless debugging. 38074# Note that there is a small window in which the directory will not be cleaned: 38075# after its creation but before its name has been assigned to `$tmp'. 38076$debug || 38077{ 38078 tmp= ac_tmp= 38079 trap 'exit_status=$? 38080 : "${ac_tmp:=$tmp}" 38081 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 38082' 0 38083 trap 'as_fn_exit 1' 1 2 13 15 38084} 38085# Create a (secure) tmp directory for tmp files. 38086 38087{ 38088 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 38089 test -d "$tmp" 38090} || 38091{ 38092 tmp=./conf$$-$RANDOM 38093 (umask 077 && mkdir "$tmp") 38094} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 38095ac_tmp=$tmp 38096 38097# Set up the scripts for CONFIG_FILES section. 38098# No need to generate them if there are no CONFIG_FILES. 38099# This happens for instance with `./config.status config.h'. 38100if test -n "$CONFIG_FILES"; then 38101 38102 38103ac_cr=`echo X | tr X '\015'` 38104# On cygwin, bash can eat \r inside `` if the user requested igncr. 38105# But we know of no other shell where ac_cr would be empty at this 38106# point, so we can use a bashism as a fallback. 38107if test "x$ac_cr" = x; then 38108 eval ac_cr=\$\'\\r\' 38109fi 38110ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 38111if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 38112 ac_cs_awk_cr='\\r' 38113else 38114 ac_cs_awk_cr=$ac_cr 38115fi 38116 38117echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 38118_ACEOF 38119 38120 38121{ 38122 echo "cat >conf$$subs.awk <<_ACEOF" && 38123 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 38124 echo "_ACEOF" 38125} >conf$$subs.sh || 38126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38127ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 38128ac_delim='%!_!# ' 38129for ac_last_try in false false false false false :; do 38130 . ./conf$$subs.sh || 38131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38132 38133 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 38134 if test $ac_delim_n = $ac_delim_num; then 38135 break 38136 elif $ac_last_try; then 38137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38138 else 38139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38140 fi 38141done 38142rm -f conf$$subs.sh 38143 38144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38145cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 38146_ACEOF 38147sed -n ' 38148h 38149s/^/S["/; s/!.*/"]=/ 38150p 38151g 38152s/^[^!]*!// 38153:repl 38154t repl 38155s/'"$ac_delim"'$// 38156t delim 38157:nl 38158h 38159s/\(.\{148\}\)..*/\1/ 38160t more1 38161s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 38162p 38163n 38164b repl 38165:more1 38166s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38167p 38168g 38169s/.\{148\}// 38170t nl 38171:delim 38172h 38173s/\(.\{148\}\)..*/\1/ 38174t more2 38175s/["\\]/\\&/g; s/^/"/; s/$/"/ 38176p 38177b 38178:more2 38179s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38180p 38181g 38182s/.\{148\}// 38183t delim 38184' <conf$$subs.awk | sed ' 38185/^[^""]/{ 38186 N 38187 s/\n// 38188} 38189' >>$CONFIG_STATUS || ac_write_fail=1 38190rm -f conf$$subs.awk 38191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38192_ACAWK 38193cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 38194 for (key in S) S_is_set[key] = 1 38195 FS = "" 38196 38197} 38198{ 38199 line = $ 0 38200 nfields = split(line, field, "@") 38201 substed = 0 38202 len = length(field[1]) 38203 for (i = 2; i < nfields; i++) { 38204 key = field[i] 38205 keylen = length(key) 38206 if (S_is_set[key]) { 38207 value = S[key] 38208 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 38209 len += length(value) + length(field[++i]) 38210 substed = 1 38211 } else 38212 len += 1 + keylen 38213 } 38214 38215 print line 38216} 38217 38218_ACAWK 38219_ACEOF 38220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38221if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 38222 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 38223else 38224 cat 38225fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 38226 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 38227_ACEOF 38228 38229# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 38230# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 38231# trailing colons and then remove the whole line if VPATH becomes empty 38232# (actually we leave an empty line to preserve line numbers). 38233if test "x$srcdir" = x.; then 38234 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 38235h 38236s/// 38237s/^/:/ 38238s/[ ]*$/:/ 38239s/:\$(srcdir):/:/g 38240s/:\${srcdir}:/:/g 38241s/:@srcdir@:/:/g 38242s/^:*// 38243s/:*$// 38244x 38245s/\(=[ ]*\).*/\1/ 38246G 38247s/\n// 38248s/^[^=]*=[ ]*$// 38249}' 38250fi 38251 38252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38253fi # test -n "$CONFIG_FILES" 38254 38255# Set up the scripts for CONFIG_HEADERS section. 38256# No need to generate them if there are no CONFIG_HEADERS. 38257# This happens for instance with `./config.status Makefile'. 38258if test -n "$CONFIG_HEADERS"; then 38259cat >"$ac_tmp/defines.awk" <<\_ACAWK || 38260BEGIN { 38261_ACEOF 38262 38263# Transform confdefs.h into an awk script `defines.awk', embedded as 38264# here-document in config.status, that substitutes the proper values into 38265# config.h.in to produce config.h. 38266 38267# Create a delimiter string that does not exist in confdefs.h, to ease 38268# handling of long lines. 38269ac_delim='%!_!# ' 38270for ac_last_try in false false :; do 38271 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 38272 if test -z "$ac_tt"; then 38273 break 38274 elif $ac_last_try; then 38275 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 38276 else 38277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38278 fi 38279done 38280 38281# For the awk script, D is an array of macro values keyed by name, 38282# likewise P contains macro parameters if any. Preserve backslash 38283# newline sequences. 38284 38285ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 38286sed -n ' 38287s/.\{148\}/&'"$ac_delim"'/g 38288t rset 38289:rset 38290s/^[ ]*#[ ]*define[ ][ ]*/ / 38291t def 38292d 38293:def 38294s/\\$// 38295t bsnl 38296s/["\\]/\\&/g 38297s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38298D["\1"]=" \3"/p 38299s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 38300d 38301:bsnl 38302s/["\\]/\\&/g 38303s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38304D["\1"]=" \3\\\\\\n"\\/p 38305t cont 38306s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 38307t cont 38308d 38309:cont 38310n 38311s/.\{148\}/&'"$ac_delim"'/g 38312t clear 38313:clear 38314s/\\$// 38315t bsnlc 38316s/["\\]/\\&/g; s/^/"/; s/$/"/p 38317d 38318:bsnlc 38319s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 38320b cont 38321' <confdefs.h | sed ' 38322s/'"$ac_delim"'/"\\\ 38323"/g' >>$CONFIG_STATUS || ac_write_fail=1 38324 38325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38326 for (key in D) D_is_set[key] = 1 38327 FS = "" 38328} 38329/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 38330 line = \$ 0 38331 split(line, arg, " ") 38332 if (arg[1] == "#") { 38333 defundef = arg[2] 38334 mac1 = arg[3] 38335 } else { 38336 defundef = substr(arg[1], 2) 38337 mac1 = arg[2] 38338 } 38339 split(mac1, mac2, "(") #) 38340 macro = mac2[1] 38341 prefix = substr(line, 1, index(line, defundef) - 1) 38342 if (D_is_set[macro]) { 38343 # Preserve the white space surrounding the "#". 38344 print prefix "define", macro P[macro] D[macro] 38345 next 38346 } else { 38347 # Replace #undef with comments. This is necessary, for example, 38348 # in the case of _POSIX_SOURCE, which is predefined and required 38349 # on some systems where configure will not decide to define it. 38350 if (defundef == "undef") { 38351 print "/*", prefix defundef, macro, "*/" 38352 next 38353 } 38354 } 38355} 38356{ print } 38357_ACAWK 38358_ACEOF 38359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38360 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 38361fi # test -n "$CONFIG_HEADERS" 38362 38363 38364eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 38365shift 38366for ac_tag 38367do 38368 case $ac_tag in 38369 :[FHLC]) ac_mode=$ac_tag; continue;; 38370 esac 38371 case $ac_mode$ac_tag in 38372 :[FHL]*:*);; 38373 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 38374 :[FH]-) ac_tag=-:-;; 38375 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 38376 esac 38377 ac_save_IFS=$IFS 38378 IFS=: 38379 set x $ac_tag 38380 IFS=$ac_save_IFS 38381 shift 38382 ac_file=$1 38383 shift 38384 38385 case $ac_mode in 38386 :L) ac_source=$1;; 38387 :[FH]) 38388 ac_file_inputs= 38389 for ac_f 38390 do 38391 case $ac_f in 38392 -) ac_f="$ac_tmp/stdin";; 38393 *) # Look for the file first in the build tree, then in the source tree 38394 # (if the path is not absolute). The absolute path cannot be DOS-style, 38395 # because $ac_f cannot contain `:'. 38396 test -f "$ac_f" || 38397 case $ac_f in 38398 [\\/$]*) false;; 38399 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 38400 esac || 38401 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 38402 esac 38403 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 38404 as_fn_append ac_file_inputs " '$ac_f'" 38405 done 38406 38407 # Let's still pretend it is `configure' which instantiates (i.e., don't 38408 # use $as_me), people would be surprised to read: 38409 # /* config.h. Generated by config.status. */ 38410 configure_input='Generated from '` 38411 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 38412 `' by configure.' 38413 if test x"$ac_file" != x-; then 38414 configure_input="$ac_file. $configure_input" 38415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 38416$as_echo "$as_me: creating $ac_file" >&6;} 38417 fi 38418 # Neutralize special characters interpreted by sed in replacement strings. 38419 case $configure_input in #( 38420 *\&* | *\|* | *\\* ) 38421 ac_sed_conf_input=`$as_echo "$configure_input" | 38422 sed 's/[\\\\&|]/\\\\&/g'`;; #( 38423 *) ac_sed_conf_input=$configure_input;; 38424 esac 38425 38426 case $ac_tag in 38427 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 38428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 38429 esac 38430 ;; 38431 esac 38432 38433 ac_dir=`$as_dirname -- "$ac_file" || 38434$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38435 X"$ac_file" : 'X\(//\)[^/]' \| \ 38436 X"$ac_file" : 'X\(//\)$' \| \ 38437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38438$as_echo X"$ac_file" | 38439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38440 s//\1/ 38441 q 38442 } 38443 /^X\(\/\/\)[^/].*/{ 38444 s//\1/ 38445 q 38446 } 38447 /^X\(\/\/\)$/{ 38448 s//\1/ 38449 q 38450 } 38451 /^X\(\/\).*/{ 38452 s//\1/ 38453 q 38454 } 38455 s/.*/./; q'` 38456 as_dir="$ac_dir"; as_fn_mkdir_p 38457 ac_builddir=. 38458 38459case "$ac_dir" in 38460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 38461*) 38462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 38463 # A ".." for each directory in $ac_dir_suffix. 38464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 38465 case $ac_top_builddir_sub in 38466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 38467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 38468 esac ;; 38469esac 38470ac_abs_top_builddir=$ac_pwd 38471ac_abs_builddir=$ac_pwd$ac_dir_suffix 38472# for backward compatibility: 38473ac_top_builddir=$ac_top_build_prefix 38474 38475case $srcdir in 38476 .) # We are building in place. 38477 ac_srcdir=. 38478 ac_top_srcdir=$ac_top_builddir_sub 38479 ac_abs_top_srcdir=$ac_pwd ;; 38480 [\\/]* | ?:[\\/]* ) # Absolute name. 38481 ac_srcdir=$srcdir$ac_dir_suffix; 38482 ac_top_srcdir=$srcdir 38483 ac_abs_top_srcdir=$srcdir ;; 38484 *) # Relative name. 38485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 38486 ac_top_srcdir=$ac_top_build_prefix$srcdir 38487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 38488esac 38489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 38490 38491 38492 case $ac_mode in 38493 :F) 38494 # 38495 # CONFIG_FILE 38496 # 38497 38498 case $INSTALL in 38499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 38500 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 38501 esac 38502_ACEOF 38503 38504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38505# If the template does not know about datarootdir, expand it. 38506# FIXME: This hack should be removed a few years after 2.60. 38507ac_datarootdir_hack=; ac_datarootdir_seen= 38508ac_sed_dataroot=' 38509/datarootdir/ { 38510 p 38511 q 38512} 38513/@datadir@/p 38514/@docdir@/p 38515/@infodir@/p 38516/@localedir@/p 38517/@mandir@/p' 38518case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 38519*datarootdir*) ac_datarootdir_seen=yes;; 38520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 38521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 38522$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 38523_ACEOF 38524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38525 ac_datarootdir_hack=' 38526 s&@datadir@&$datadir&g 38527 s&@docdir@&$docdir&g 38528 s&@infodir@&$infodir&g 38529 s&@localedir@&$localedir&g 38530 s&@mandir@&$mandir&g 38531 s&\\\${datarootdir}&$datarootdir&g' ;; 38532esac 38533_ACEOF 38534 38535# Neutralize VPATH when `$srcdir' = `.'. 38536# Shell code in configure.ac might set extrasub. 38537# FIXME: do we really want to maintain this feature? 38538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38539ac_sed_extra="$ac_vpsub 38540$extrasub 38541_ACEOF 38542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38543:t 38544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 38545s|@configure_input@|$ac_sed_conf_input|;t t 38546s&@top_builddir@&$ac_top_builddir_sub&;t t 38547s&@top_build_prefix@&$ac_top_build_prefix&;t t 38548s&@srcdir@&$ac_srcdir&;t t 38549s&@abs_srcdir@&$ac_abs_srcdir&;t t 38550s&@top_srcdir@&$ac_top_srcdir&;t t 38551s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 38552s&@builddir@&$ac_builddir&;t t 38553s&@abs_builddir@&$ac_abs_builddir&;t t 38554s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 38555s&@INSTALL@&$ac_INSTALL&;t t 38556$ac_datarootdir_hack 38557" 38558eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 38559 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38560 38561test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 38562 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 38563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 38564 "$ac_tmp/out"`; test -z "$ac_out"; } && 38565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38566which seems to be undefined. Please make sure it is defined" >&5 38567$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38568which seems to be undefined. Please make sure it is defined" >&2;} 38569 38570 rm -f "$ac_tmp/stdin" 38571 case $ac_file in 38572 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 38573 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 38574 esac \ 38575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38576 ;; 38577 :H) 38578 # 38579 # CONFIG_HEADER 38580 # 38581 if test x"$ac_file" != x-; then 38582 { 38583 $as_echo "/* $configure_input */" \ 38584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 38585 } >"$ac_tmp/config.h" \ 38586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38587 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 38588 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 38589$as_echo "$as_me: $ac_file is unchanged" >&6;} 38590 else 38591 rm -f "$ac_file" 38592 mv "$ac_tmp/config.h" "$ac_file" \ 38593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38594 fi 38595 else 38596 $as_echo "/* $configure_input */" \ 38597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 38598 || as_fn_error $? "could not create -" "$LINENO" 5 38599 fi 38600# Compute "$ac_file"'s index in $config_headers. 38601_am_stamp_count=1 38602for _am_header in $config_headers :; do 38603 case $_am_header in 38604 "$ac_file" | "$ac_file":* ) 38605 break ;; 38606 * ) 38607 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 38608 esac 38609done 38610echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 38611$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38612 X"$ac_file" : 'X\(//\)[^/]' \| \ 38613 X"$ac_file" : 'X\(//\)$' \| \ 38614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38615$as_echo X"$ac_file" | 38616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38617 s//\1/ 38618 q 38619 } 38620 /^X\(\/\/\)[^/].*/{ 38621 s//\1/ 38622 q 38623 } 38624 /^X\(\/\/\)$/{ 38625 s//\1/ 38626 q 38627 } 38628 /^X\(\/\).*/{ 38629 s//\1/ 38630 q 38631 } 38632 s/.*/./; q'`/stamp-h$_am_stamp_count 38633 ;; 38634 38635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 38636$as_echo "$as_me: executing $ac_file commands" >&6;} 38637 ;; 38638 esac 38639 38640 38641 case $ac_file$ac_mode in 38642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 38643 # Strip MF so we end up with the name of the file. 38644 mf=`echo "$mf" | sed -e 's/:.*$//'` 38645 # Check whether this is an Automake generated Makefile or not. 38646 # We used to match only the files named `Makefile.in', but 38647 # some people rename them; so instead we look at the file content. 38648 # Grep'ing the first line is not enough: some people post-process 38649 # each Makefile.in and add a new line on top of each file to say so. 38650 # So let's grep whole file. 38651 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 38652 dirpart=`$as_dirname -- "$mf" || 38653$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38654 X"$mf" : 'X\(//\)[^/]' \| \ 38655 X"$mf" : 'X\(//\)$' \| \ 38656 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 38657$as_echo X"$mf" | 38658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38659 s//\1/ 38660 q 38661 } 38662 /^X\(\/\/\)[^/].*/{ 38663 s//\1/ 38664 q 38665 } 38666 /^X\(\/\/\)$/{ 38667 s//\1/ 38668 q 38669 } 38670 /^X\(\/\).*/{ 38671 s//\1/ 38672 q 38673 } 38674 s/.*/./; q'` 38675 else 38676 continue 38677 fi 38678 # Extract the definition of DEPDIR, am__include, and am__quote 38679 # from the Makefile without running `make'. 38680 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 38681 test -z "$DEPDIR" && continue 38682 am__include=`sed -n 's/^am__include = //p' < "$mf"` 38683 test -z "am__include" && continue 38684 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 38685 # When using ansi2knr, U may be empty or an underscore; expand it 38686 U=`sed -n 's/^U = //p' < "$mf"` 38687 # Find all dependency output files, they are included files with 38688 # $(DEPDIR) in their names. We invoke sed twice because it is the 38689 # simplest approach to changing $(DEPDIR) to its actual value in the 38690 # expansion. 38691 for file in `sed -n " 38692 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 38693 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 38694 # Make sure the directory exists. 38695 test -f "$dirpart/$file" && continue 38696 fdir=`$as_dirname -- "$file" || 38697$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38698 X"$file" : 'X\(//\)[^/]' \| \ 38699 X"$file" : 'X\(//\)$' \| \ 38700 X"$file" : 'X\(/\)' \| . 2>/dev/null || 38701$as_echo X"$file" | 38702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38703 s//\1/ 38704 q 38705 } 38706 /^X\(\/\/\)[^/].*/{ 38707 s//\1/ 38708 q 38709 } 38710 /^X\(\/\/\)$/{ 38711 s//\1/ 38712 q 38713 } 38714 /^X\(\/\).*/{ 38715 s//\1/ 38716 q 38717 } 38718 s/.*/./; q'` 38719 as_dir=$dirpart/$fdir; as_fn_mkdir_p 38720 # echo "creating $dirpart/$file" 38721 echo '# dummy' > "$dirpart/$file" 38722 done 38723done 38724 ;; 38725 "libtool":C) 38726 38727 # See if we are running on zsh, and set the options which allow our 38728 # commands through without removal of \ escapes. 38729 if test -n "${ZSH_VERSION+set}" ; then 38730 setopt NO_GLOB_SUBST 38731 fi 38732 38733 cfgfile="${ofile}T" 38734 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 38735 $RM "$cfgfile" 38736 38737 cat <<_LT_EOF >> "$cfgfile" 38738#! $SHELL 38739 38740# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 38741# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 38742# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 38743# NOTE: Changes made to this file will be lost: look at ltmain.sh. 38744# 38745# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 38746# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 38747# Inc. 38748# Written by Gordon Matzigkeit, 1996 38749# 38750# This file is part of GNU Libtool. 38751# 38752# GNU Libtool is free software; you can redistribute it and/or 38753# modify it under the terms of the GNU General Public License as 38754# published by the Free Software Foundation; either version 2 of 38755# the License, or (at your option) any later version. 38756# 38757# As a special exception to the GNU General Public License, 38758# if you distribute this file as part of a program or library that 38759# is built using GNU Libtool, you may include this file under the 38760# same distribution terms that you use for the rest of that program. 38761# 38762# GNU Libtool is distributed in the hope that it will be useful, 38763# but WITHOUT ANY WARRANTY; without even the implied warranty of 38764# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38765# GNU General Public License for more details. 38766# 38767# You should have received a copy of the GNU General Public License 38768# along with GNU Libtool; see the file COPYING. If not, a copy 38769# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 38770# obtained by writing to the Free Software Foundation, Inc., 38771# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 38772 38773 38774# The names of the tagged configurations supported by this script. 38775available_tags="" 38776 38777# ### BEGIN LIBTOOL CONFIG 38778 38779# Assembler program. 38780AS=$lt_AS 38781 38782# DLL creation program. 38783DLLTOOL=$lt_DLLTOOL 38784 38785# Object dumper program. 38786OBJDUMP=$lt_OBJDUMP 38787 38788# Which release of libtool.m4 was used? 38789macro_version=$macro_version 38790macro_revision=$macro_revision 38791 38792# Whether or not to build shared libraries. 38793build_libtool_libs=$enable_shared 38794 38795# Whether or not to build static libraries. 38796build_old_libs=$enable_static 38797 38798# What type of objects to build. 38799pic_mode=$pic_mode 38800 38801# Whether or not to optimize for fast installation. 38802fast_install=$enable_fast_install 38803 38804# Shell to use when invoking shell scripts. 38805SHELL=$lt_SHELL 38806 38807# An echo program that protects backslashes. 38808ECHO=$lt_ECHO 38809 38810# The host system. 38811host_alias=$host_alias 38812host=$host 38813host_os=$host_os 38814 38815# The build system. 38816build_alias=$build_alias 38817build=$build 38818build_os=$build_os 38819 38820# A sed program that does not truncate output. 38821SED=$lt_SED 38822 38823# Sed that helps us avoid accidentally triggering echo(1) options like -n. 38824Xsed="\$SED -e 1s/^X//" 38825 38826# A grep program that handles long lines. 38827GREP=$lt_GREP 38828 38829# An ERE matcher. 38830EGREP=$lt_EGREP 38831 38832# A literal string matcher. 38833FGREP=$lt_FGREP 38834 38835# A BSD- or MS-compatible name lister. 38836NM=$lt_NM 38837 38838# Whether we need soft or hard links. 38839LN_S=$lt_LN_S 38840 38841# What is the maximum length of a command? 38842max_cmd_len=$max_cmd_len 38843 38844# Object file suffix (normally "o"). 38845objext=$ac_objext 38846 38847# Executable file suffix (normally ""). 38848exeext=$exeext 38849 38850# whether the shell understands "unset". 38851lt_unset=$lt_unset 38852 38853# turn spaces into newlines. 38854SP2NL=$lt_lt_SP2NL 38855 38856# turn newlines into spaces. 38857NL2SP=$lt_lt_NL2SP 38858 38859# convert \$build file names to \$host format. 38860to_host_file_cmd=$lt_cv_to_host_file_cmd 38861 38862# convert \$build files to toolchain format. 38863to_tool_file_cmd=$lt_cv_to_tool_file_cmd 38864 38865# Method to check whether dependent libraries are shared objects. 38866deplibs_check_method=$lt_deplibs_check_method 38867 38868# Command to use when deplibs_check_method = "file_magic". 38869file_magic_cmd=$lt_file_magic_cmd 38870 38871# How to find potential files when deplibs_check_method = "file_magic". 38872file_magic_glob=$lt_file_magic_glob 38873 38874# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 38875want_nocaseglob=$lt_want_nocaseglob 38876 38877# Command to associate shared and link libraries. 38878sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 38879 38880# The archiver. 38881AR=$lt_AR 38882 38883# Flags to create an archive. 38884AR_FLAGS=$lt_AR_FLAGS 38885 38886# How to feed a file listing to the archiver. 38887archiver_list_spec=$lt_archiver_list_spec 38888 38889# A symbol stripping program. 38890STRIP=$lt_STRIP 38891 38892# Commands used to install an old-style archive. 38893RANLIB=$lt_RANLIB 38894old_postinstall_cmds=$lt_old_postinstall_cmds 38895old_postuninstall_cmds=$lt_old_postuninstall_cmds 38896 38897# Whether to use a lock for old archive extraction. 38898lock_old_archive_extraction=$lock_old_archive_extraction 38899 38900# A C compiler. 38901LTCC=$lt_CC 38902 38903# LTCC compiler flags. 38904LTCFLAGS=$lt_CFLAGS 38905 38906# Take the output of nm and produce a listing of raw symbols and C names. 38907global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 38908 38909# Transform the output of nm in a proper C declaration. 38910global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 38911 38912# Transform the output of nm in a C name address pair. 38913global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 38914 38915# Transform the output of nm in a C name address pair when lib prefix is needed. 38916global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 38917 38918# Specify filename containing input files for \$NM. 38919nm_file_list_spec=$lt_nm_file_list_spec 38920 38921# The root where to search for dependent libraries,and in which our libraries should be installed. 38922lt_sysroot=$lt_sysroot 38923 38924# The name of the directory that contains temporary libtool files. 38925objdir=$objdir 38926 38927# Used to examine libraries when file_magic_cmd begins with "file". 38928MAGIC_CMD=$MAGIC_CMD 38929 38930# Must we lock files when doing compilation? 38931need_locks=$lt_need_locks 38932 38933# Manifest tool. 38934MANIFEST_TOOL=$lt_MANIFEST_TOOL 38935 38936# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 38937DSYMUTIL=$lt_DSYMUTIL 38938 38939# Tool to change global to local symbols on Mac OS X. 38940NMEDIT=$lt_NMEDIT 38941 38942# Tool to manipulate fat objects and archives on Mac OS X. 38943LIPO=$lt_LIPO 38944 38945# ldd/readelf like tool for Mach-O binaries on Mac OS X. 38946OTOOL=$lt_OTOOL 38947 38948# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 38949OTOOL64=$lt_OTOOL64 38950 38951# Old archive suffix (normally "a"). 38952libext=$libext 38953 38954# Shared library suffix (normally ".so"). 38955shrext_cmds=$lt_shrext_cmds 38956 38957# The commands to extract the exported symbol list from a shared archive. 38958extract_expsyms_cmds=$lt_extract_expsyms_cmds 38959 38960# Variables whose values should be saved in libtool wrapper scripts and 38961# restored at link time. 38962variables_saved_for_relink=$lt_variables_saved_for_relink 38963 38964# Do we need the "lib" prefix for modules? 38965need_lib_prefix=$need_lib_prefix 38966 38967# Do we need a version for libraries? 38968need_version=$need_version 38969 38970# Library versioning type. 38971version_type=$version_type 38972 38973# Shared library runtime path variable. 38974runpath_var=$runpath_var 38975 38976# Shared library path variable. 38977shlibpath_var=$shlibpath_var 38978 38979# Is shlibpath searched before the hard-coded library search path? 38980shlibpath_overrides_runpath=$shlibpath_overrides_runpath 38981 38982# Format of library name prefix. 38983libname_spec=$lt_libname_spec 38984 38985# List of archive names. First name is the real one, the rest are links. 38986# The last name is the one that the linker finds with -lNAME 38987library_names_spec=$lt_library_names_spec 38988 38989# The coded name of the library, if different from the real name. 38990soname_spec=$lt_soname_spec 38991 38992# Permission mode override for installation of shared libraries. 38993install_override_mode=$lt_install_override_mode 38994 38995# Command to use after installation of a shared archive. 38996postinstall_cmds=$lt_postinstall_cmds 38997 38998# Command to use after uninstallation of a shared archive. 38999postuninstall_cmds=$lt_postuninstall_cmds 39000 39001# Commands used to finish a libtool library installation in a directory. 39002finish_cmds=$lt_finish_cmds 39003 39004# As "finish_cmds", except a single script fragment to be evaled but 39005# not shown. 39006finish_eval=$lt_finish_eval 39007 39008# Whether we should hardcode library paths into libraries. 39009hardcode_into_libs=$hardcode_into_libs 39010 39011# Compile-time system search path for libraries. 39012sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 39013 39014# Run-time system search path for libraries. 39015sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 39016 39017# Whether dlopen is supported. 39018dlopen_support=$enable_dlopen 39019 39020# Whether dlopen of programs is supported. 39021dlopen_self=$enable_dlopen_self 39022 39023# Whether dlopen of statically linked programs is supported. 39024dlopen_self_static=$enable_dlopen_self_static 39025 39026# Commands to strip libraries. 39027old_striplib=$lt_old_striplib 39028striplib=$lt_striplib 39029 39030 39031# The linker used to build libraries. 39032LD=$lt_LD 39033 39034# How to create reloadable object files. 39035reload_flag=$lt_reload_flag 39036reload_cmds=$lt_reload_cmds 39037 39038# Commands used to build an old-style archive. 39039old_archive_cmds=$lt_old_archive_cmds 39040 39041# A language specific compiler. 39042CC=$lt_compiler 39043 39044# Is the compiler the GNU compiler? 39045with_gcc=$GCC 39046 39047# Compiler flag to turn off builtin functions. 39048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 39049 39050# Additional compiler flags for building library objects. 39051pic_flag=$lt_lt_prog_compiler_pic 39052 39053# How to pass a linker flag through the compiler. 39054wl=$lt_lt_prog_compiler_wl 39055 39056# Compiler flag to prevent dynamic linking. 39057link_static_flag=$lt_lt_prog_compiler_static 39058 39059# Does compiler simultaneously support -c and -o options? 39060compiler_c_o=$lt_lt_cv_prog_compiler_c_o 39061 39062# Whether or not to add -lc for building shared libraries. 39063build_libtool_need_lc=$archive_cmds_need_lc 39064 39065# Whether or not to disallow shared libs when runtime libs are static. 39066allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 39067 39068# Compiler flag to allow reflexive dlopens. 39069export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 39070 39071# Compiler flag to generate shared objects directly from archives. 39072whole_archive_flag_spec=$lt_whole_archive_flag_spec 39073 39074# Whether the compiler copes with passing no objects directly. 39075compiler_needs_object=$lt_compiler_needs_object 39076 39077# Create an old-style archive from a shared archive. 39078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 39079 39080# Create a temporary old-style archive to link instead of a shared archive. 39081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 39082 39083# Commands used to build a shared archive. 39084archive_cmds=$lt_archive_cmds 39085archive_expsym_cmds=$lt_archive_expsym_cmds 39086 39087# Commands used to build a loadable module if different from building 39088# a shared archive. 39089module_cmds=$lt_module_cmds 39090module_expsym_cmds=$lt_module_expsym_cmds 39091 39092# Whether we are building with GNU ld or not. 39093with_gnu_ld=$lt_with_gnu_ld 39094 39095# Flag that allows shared libraries with undefined symbols to be built. 39096allow_undefined_flag=$lt_allow_undefined_flag 39097 39098# Flag that enforces no undefined symbols. 39099no_undefined_flag=$lt_no_undefined_flag 39100 39101# Flag to hardcode \$libdir into a binary during linking. 39102# This must work even if \$libdir does not exist 39103hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 39104 39105# If ld is used when linking, flag to hardcode \$libdir into a binary 39106# during linking. This must work even if \$libdir does not exist. 39107hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 39108 39109# Whether we need a single "-rpath" flag with a separated argument. 39110hardcode_libdir_separator=$lt_hardcode_libdir_separator 39111 39112# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39113# DIR into the resulting binary. 39114hardcode_direct=$hardcode_direct 39115 39116# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39117# DIR into the resulting binary and the resulting library dependency is 39118# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 39119# library is relocated. 39120hardcode_direct_absolute=$hardcode_direct_absolute 39121 39122# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39123# into the resulting binary. 39124hardcode_minus_L=$hardcode_minus_L 39125 39126# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39127# into the resulting binary. 39128hardcode_shlibpath_var=$hardcode_shlibpath_var 39129 39130# Set to "yes" if building a shared library automatically hardcodes DIR 39131# into the library and all subsequent libraries and executables linked 39132# against it. 39133hardcode_automatic=$hardcode_automatic 39134 39135# Set to yes if linker adds runtime paths of dependent libraries 39136# to runtime path list. 39137inherit_rpath=$inherit_rpath 39138 39139# Whether libtool must link a program against all its dependency libraries. 39140link_all_deplibs=$link_all_deplibs 39141 39142# Set to "yes" if exported symbols are required. 39143always_export_symbols=$always_export_symbols 39144 39145# The commands to list exported symbols. 39146export_symbols_cmds=$lt_export_symbols_cmds 39147 39148# Symbols that should not be listed in the preloaded symbols. 39149exclude_expsyms=$lt_exclude_expsyms 39150 39151# Symbols that must always be exported. 39152include_expsyms=$lt_include_expsyms 39153 39154# Commands necessary for linking programs (against libraries) with templates. 39155prelink_cmds=$lt_prelink_cmds 39156 39157# Commands necessary for finishing linking programs. 39158postlink_cmds=$lt_postlink_cmds 39159 39160# Specify filename containing input files. 39161file_list_spec=$lt_file_list_spec 39162 39163# How to hardcode a shared library path into an executable. 39164hardcode_action=$hardcode_action 39165 39166# ### END LIBTOOL CONFIG 39167 39168_LT_EOF 39169 39170 case $host_os in 39171 aix3*) 39172 cat <<\_LT_EOF >> "$cfgfile" 39173# AIX sometimes has problems with the GCC collect2 program. For some 39174# reason, if we set the COLLECT_NAMES environment variable, the problems 39175# vanish in a puff of smoke. 39176if test "X${COLLECT_NAMES+set}" != Xset; then 39177 COLLECT_NAMES= 39178 export COLLECT_NAMES 39179fi 39180_LT_EOF 39181 ;; 39182 esac 39183 39184 39185ltmain="$ac_aux_dir/ltmain.sh" 39186 39187 39188 # We use sed instead of cat because bash on DJGPP gets confused if 39189 # if finds mixed CR/LF and LF-only lines. Since sed operates in 39190 # text mode, it properly converts lines to CR/LF. This bash problem 39191 # is reportedly fixed, but why not run on old versions too? 39192 sed '$q' "$ltmain" >> "$cfgfile" \ 39193 || (rm -f "$cfgfile"; exit 1) 39194 39195 if test x"$xsi_shell" = xyes; then 39196 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 39197func_dirname ()\ 39198{\ 39199\ case ${1} in\ 39200\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39201\ * ) func_dirname_result="${3}" ;;\ 39202\ esac\ 39203} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 39204 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39206test 0 -eq $? || _lt_function_replace_fail=: 39207 39208 39209 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 39210func_basename ()\ 39211{\ 39212\ func_basename_result="${1##*/}"\ 39213} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39214 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39216test 0 -eq $? || _lt_function_replace_fail=: 39217 39218 39219 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 39220func_dirname_and_basename ()\ 39221{\ 39222\ case ${1} in\ 39223\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39224\ * ) func_dirname_result="${3}" ;;\ 39225\ esac\ 39226\ func_basename_result="${1##*/}"\ 39227} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39228 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39230test 0 -eq $? || _lt_function_replace_fail=: 39231 39232 39233 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 39234func_stripname ()\ 39235{\ 39236\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 39237\ # positional parameters, so assign one to ordinary parameter first.\ 39238\ func_stripname_result=${3}\ 39239\ func_stripname_result=${func_stripname_result#"${1}"}\ 39240\ func_stripname_result=${func_stripname_result%"${2}"}\ 39241} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 39242 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39244test 0 -eq $? || _lt_function_replace_fail=: 39245 39246 39247 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 39248func_split_long_opt ()\ 39249{\ 39250\ func_split_long_opt_name=${1%%=*}\ 39251\ func_split_long_opt_arg=${1#*=}\ 39252} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39253 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39255test 0 -eq $? || _lt_function_replace_fail=: 39256 39257 39258 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 39259func_split_short_opt ()\ 39260{\ 39261\ func_split_short_opt_arg=${1#??}\ 39262\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 39263} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39264 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39266test 0 -eq $? || _lt_function_replace_fail=: 39267 39268 39269 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 39270func_lo2o ()\ 39271{\ 39272\ case ${1} in\ 39273\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 39274\ *) func_lo2o_result=${1} ;;\ 39275\ esac\ 39276} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 39277 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39279test 0 -eq $? || _lt_function_replace_fail=: 39280 39281 39282 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 39283func_xform ()\ 39284{\ 39285 func_xform_result=${1%.*}.lo\ 39286} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 39287 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39289test 0 -eq $? || _lt_function_replace_fail=: 39290 39291 39292 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 39293func_arith ()\ 39294{\ 39295 func_arith_result=$(( $* ))\ 39296} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 39297 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39299test 0 -eq $? || _lt_function_replace_fail=: 39300 39301 39302 sed -e '/^func_len ()$/,/^} # func_len /c\ 39303func_len ()\ 39304{\ 39305 func_len_result=${#1}\ 39306} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 39307 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39309test 0 -eq $? || _lt_function_replace_fail=: 39310 39311fi 39312 39313if test x"$lt_shell_append" = xyes; then 39314 sed -e '/^func_append ()$/,/^} # func_append /c\ 39315func_append ()\ 39316{\ 39317 eval "${1}+=\\${2}"\ 39318} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 39319 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39321test 0 -eq $? || _lt_function_replace_fail=: 39322 39323 39324 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 39325func_append_quoted ()\ 39326{\ 39327\ func_quote_for_eval "${2}"\ 39328\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 39329} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 39330 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39332test 0 -eq $? || _lt_function_replace_fail=: 39333 39334 39335 # Save a `func_append' function call where possible by direct use of '+=' 39336 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 39337 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39339 test 0 -eq $? || _lt_function_replace_fail=: 39340else 39341 # Save a `func_append' function call even when '+=' is not available 39342 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 39343 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39345 test 0 -eq $? || _lt_function_replace_fail=: 39346fi 39347 39348if test x"$_lt_function_replace_fail" = x":"; then 39349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 39350$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 39351fi 39352 39353 39354 mv -f "$cfgfile" "$ofile" || 39355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 39356 chmod +x "$ofile" 39357 39358 ;; 39359 39360 esac 39361done # for ac_tag 39362 39363 39364as_fn_exit 0 39365_ACEOF 39366ac_clean_files=$ac_clean_files_save 39367 39368test $ac_write_fail = 0 || 39369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 39370 39371 39372# configure is writing to config.log, and then calls config.status. 39373# config.status does its own redirection, appending to config.log. 39374# Unfortunately, on DOS this fails, as config.log is still kept open 39375# by configure, so config.status won't be able to write to it; its 39376# output is simply discarded. So we exec the FD to /dev/null, 39377# effectively closing config.log, so it can be properly (re)opened and 39378# appended to by config.status. When coming back to configure, we 39379# need to make the FD available again. 39380if test "$no_create" != yes; then 39381 ac_cs_success=: 39382 ac_config_status_args= 39383 test "$silent" = yes && 39384 ac_config_status_args="$ac_config_status_args --quiet" 39385 exec 5>/dev/null 39386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 39387 exec 5>>config.log 39388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 39389 # would make configure fail if this is the last instruction. 39390 $ac_cs_success || as_fn_exit 1 39391fi 39392 39393# 39394# CONFIG_SUBDIRS section. 39395# 39396if test "$no_recursion" != yes; then 39397 39398 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 39399 # so they do not pile up. 39400 ac_sub_configure_args= 39401 ac_prev= 39402 eval "set x $ac_configure_args" 39403 shift 39404 for ac_arg 39405 do 39406 if test -n "$ac_prev"; then 39407 ac_prev= 39408 continue 39409 fi 39410 case $ac_arg in 39411 -cache-file | --cache-file | --cache-fil | --cache-fi \ 39412 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 39413 ac_prev=cache_file ;; 39414 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 39415 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 39416 | --c=*) 39417 ;; 39418 --config-cache | -C) 39419 ;; 39420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 39421 ac_prev=srcdir ;; 39422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 39423 ;; 39424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 39425 ac_prev=prefix ;; 39426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 39427 ;; 39428 --disable-option-checking) 39429 ;; 39430 *) 39431 case $ac_arg in 39432 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 39433 esac 39434 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 39435 esac 39436 done 39437 39438 # Always prepend --prefix to ensure using the same prefix 39439 # in subdir configurations. 39440 ac_arg="--prefix=$prefix" 39441 case $ac_arg in 39442 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 39443 esac 39444 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 39445 39446 # Pass --silent 39447 if test "$silent" = yes; then 39448 ac_sub_configure_args="--silent $ac_sub_configure_args" 39449 fi 39450 39451 # Always prepend --disable-option-checking to silence warnings, since 39452 # different subdirs can have different --enable and --with options. 39453 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 39454 39455 ac_popdir=`pwd` 39456 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 39457 39458 # Do not complain, so a configure script can configure whichever 39459 # parts of a large source tree are present. 39460 test -d "$srcdir/$ac_dir" || continue 39461 39462 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 39463 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 39464 $as_echo "$ac_msg" >&6 39465 as_dir="$ac_dir"; as_fn_mkdir_p 39466 ac_builddir=. 39467 39468case "$ac_dir" in 39469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39470*) 39471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39472 # A ".." for each directory in $ac_dir_suffix. 39473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39474 case $ac_top_builddir_sub in 39475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39477 esac ;; 39478esac 39479ac_abs_top_builddir=$ac_pwd 39480ac_abs_builddir=$ac_pwd$ac_dir_suffix 39481# for backward compatibility: 39482ac_top_builddir=$ac_top_build_prefix 39483 39484case $srcdir in 39485 .) # We are building in place. 39486 ac_srcdir=. 39487 ac_top_srcdir=$ac_top_builddir_sub 39488 ac_abs_top_srcdir=$ac_pwd ;; 39489 [\\/]* | ?:[\\/]* ) # Absolute name. 39490 ac_srcdir=$srcdir$ac_dir_suffix; 39491 ac_top_srcdir=$srcdir 39492 ac_abs_top_srcdir=$srcdir ;; 39493 *) # Relative name. 39494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39495 ac_top_srcdir=$ac_top_build_prefix$srcdir 39496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39497esac 39498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39499 39500 39501 cd "$ac_dir" 39502 39503 # Check for guested configure; otherwise get Cygnus style configure. 39504 if test -f "$ac_srcdir/configure.gnu"; then 39505 ac_sub_configure=$ac_srcdir/configure.gnu 39506 elif test -f "$ac_srcdir/configure"; then 39507 ac_sub_configure=$ac_srcdir/configure 39508 elif test -f "$ac_srcdir/configure.in"; then 39509 # This should be Cygnus configure. 39510 ac_sub_configure=$ac_aux_dir/configure 39511 else 39512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 39513$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 39514 ac_sub_configure= 39515 fi 39516 39517 # The recursion is here. 39518 if test -n "$ac_sub_configure"; then 39519 # Make the cache file name correct relative to the subdirectory. 39520 case $cache_file in 39521 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 39522 *) # Relative name. 39523 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 39524 esac 39525 39526 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 39527$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 39528 # The eval makes quoting arguments work. 39529 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 39530 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 39531 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 39532 fi 39533 39534 cd "$ac_popdir" 39535 done 39536fi 39537if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 39538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 39539$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 39540fi 39541 39542 39543 39544 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null` 39545 if test -z "$tmp_cpp"; then 39546 tmp_cpp='cpp' 39547 fi 39548 cat >./tests/configurehelp.pm <<_EOF 39549# This is a generated file. Do not edit. 39550 39551package configurehelp; 39552 39553use strict; 39554use warnings; 39555use Exporter; 39556 39557use vars qw( 39558 @ISA 39559 @EXPORT_OK 39560 \$Cpreprocessor 39561 ); 39562 39563@ISA = qw(Exporter); 39564 39565@EXPORT_OK = qw( 39566 \$Cpreprocessor 39567 ); 39568 39569\$Cpreprocessor = '$tmp_cpp'; 39570 395711; 39572_EOF 39573 39574 39575{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl: 39576 39577 curl version: ${CURLVERSION} 39578 Host setup: ${host} 39579 Install prefix: ${prefix} 39580 Compiler: ${CC} 39581 SSL support: ${curl_ssl_msg} 39582 SSH support: ${curl_ssh_msg} 39583 zlib support: ${curl_zlib_msg} 39584 krb4 support: ${curl_krb4_msg} 39585 GSSAPI support: ${curl_gss_msg} 39586 SPNEGO support: ${curl_spnego_msg} 39587 TLS-SRP support: ${curl_tls_srp_msg} 39588 resolver: ${curl_res_msg} 39589 ipv6 support: ${curl_ipv6_msg} 39590 IDN support: ${curl_idn_msg} 39591 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 39592 Built-in manual: ${curl_manual_msg} 39593 Verbose errors: ${curl_verbose_msg} 39594 SSPI support: ${curl_sspi_msg} 39595 ca cert bundle: ${ca} 39596 ca cert path: ${capath} 39597 LDAP support: ${curl_ldap_msg} 39598 LDAPS support: ${curl_ldaps_msg} 39599 RTSP support: ${curl_rtsp_msg} 39600 RTMP support: ${curl_rtmp_msg} 39601 Protocols: ${SUPPORT_PROTOCOLS} 39602" >&5 39603$as_echo "$as_me: Configured to build curl/libcurl: 39604 39605 curl version: ${CURLVERSION} 39606 Host setup: ${host} 39607 Install prefix: ${prefix} 39608 Compiler: ${CC} 39609 SSL support: ${curl_ssl_msg} 39610 SSH support: ${curl_ssh_msg} 39611 zlib support: ${curl_zlib_msg} 39612 krb4 support: ${curl_krb4_msg} 39613 GSSAPI support: ${curl_gss_msg} 39614 SPNEGO support: ${curl_spnego_msg} 39615 TLS-SRP support: ${curl_tls_srp_msg} 39616 resolver: ${curl_res_msg} 39617 ipv6 support: ${curl_ipv6_msg} 39618 IDN support: ${curl_idn_msg} 39619 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 39620 Built-in manual: ${curl_manual_msg} 39621 Verbose errors: ${curl_verbose_msg} 39622 SSPI support: ${curl_sspi_msg} 39623 ca cert bundle: ${ca} 39624 ca cert path: ${capath} 39625 LDAP support: ${curl_ldap_msg} 39626 LDAPS support: ${curl_ldaps_msg} 39627 RTSP support: ${curl_rtsp_msg} 39628 RTMP support: ${curl_rtmp_msg} 39629 Protocols: ${SUPPORT_PROTOCOLS} 39630" >&6;} 39631 39632if test "x$soname_bump" = "xyes"; then 39633 39634cat <<EOM 39635 SONAME bump: yes - WARNING: this library will be built with the SONAME 39636 number bumped due to (a detected) ABI breakage. 39637 See lib/README.curl_off_t for details on this. 39638EOM 39639 39640fi 39641 39642