1 #! /bin/sh 2 # From configure.ac Revision. 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.71 for Heimdal 7.8.0. 5 # 6 # Report bugs to <https://github.com/heimdal/heimdal/issues>. 7 # 8 # 9 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 10 # 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 ## M4sh Initialization. ## 17 ## -------------------- ## 18 19 # Be more Bourne compatible 20 DUALCASE=1; export DUALCASE # for MKS sh 21 as_nop=: 22 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23 then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30 else $as_nop 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36 esac 37 fi 38 39 40 41 # Reset variables that may have inherited troublesome values from 42 # the environment. 43 44 # IFS needs to be set, to space, tab, and newline, in precisely that order. 45 # (If _AS_PATH_WALK were called with IFS unset, it would have the 46 # side effect of setting IFS to empty, thus disabling word splitting.) 47 # Quoting is to prevent editors from complaining about space-tab. 48 as_nl=' 49 ' 50 export as_nl 51 IFS=" "" $as_nl" 52 53 PS1='$ ' 54 PS2='> ' 55 PS4='+ ' 56 57 # Ensure predictable behavior from utilities with locale-dependent output. 58 LC_ALL=C 59 export LC_ALL 60 LANGUAGE=C 61 export LANGUAGE 62 63 # We cannot yet rely on "unset" to work, but we need these variables 64 # to be unset--not just set to an empty or harmless value--now, to 65 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 66 # also avoids known problems related to "unset" and subshell syntax 67 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 68 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 69 do eval test \${$as_var+y} \ 70 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 71 done 72 73 # Ensure that fds 0, 1, and 2 are open. 74 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 75 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 76 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 77 78 # The user is always right. 79 if ${PATH_SEPARATOR+false} :; then 80 PATH_SEPARATOR=: 81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 83 PATH_SEPARATOR=';' 84 } 85 fi 86 87 88 # Find who we are. Look in the path if we contain no directory separator. 89 as_myself= 90 case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93 for as_dir in $PATH 94 do 95 IFS=$as_save_IFS 96 case $as_dir in #((( 97 '') as_dir=./ ;; 98 */) ;; 99 *) as_dir=$as_dir/ ;; 100 esac 101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 102 done 103 IFS=$as_save_IFS 104 105 ;; 106 esac 107 # We did not find ourselves, most probably we were run as `sh COMMAND' 108 # in which case we are not to be found in the path. 109 if test "x$as_myself" = x; then 110 as_myself=$0 111 fi 112 if test ! -f "$as_myself"; then 113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115 fi 116 117 118 # Use a proper internal environment variable to ensure we don't fall 119 # into an infinite loop, continuously re-executing ourselves. 120 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 121 _as_can_reexec=no; export _as_can_reexec; 122 # We cannot yet assume a decent shell, so we have to provide a 123 # neutralization value for shells without unset; and this also 124 # works around shells that cannot unset nonexistent variables. 125 # Preserve -v and -x to the replacement shell. 126 BASH_ENV=/dev/null 127 ENV=/dev/null 128 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 129 case $- in # (((( 130 *v*x* | *x*v* ) as_opts=-vx ;; 131 *v* ) as_opts=-v ;; 132 *x* ) as_opts=-x ;; 133 * ) as_opts= ;; 134 esac 135 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 136 # Admittedly, this is quite paranoid, since all the known shells bail 137 # out after a failed `exec'. 138 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 139 exit 255 140 fi 141 # We don't want this to propagate to other subprocesses. 142 { _as_can_reexec=; unset _as_can_reexec;} 143 if test "x$CONFIG_SHELL" = x; then 144 as_bourne_compatible="as_nop=: 145 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 146 then : 147 emulate sh 148 NULLCMD=: 149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 150 # is contrary to our usage. Disable this feature. 151 alias -g '\${1+\"\$@\"}'='\"\$@\"' 152 setopt NO_GLOB_SUBST 153 else \$as_nop 154 case \`(set -o) 2>/dev/null\` in #( 155 *posix*) : 156 set -o posix ;; #( 157 *) : 158 ;; 159 esac 160 fi 161 " 162 as_required="as_fn_return () { (exit \$1); } 163 as_fn_success () { as_fn_return 0; } 164 as_fn_failure () { as_fn_return 1; } 165 as_fn_ret_success () { return 0; } 166 as_fn_ret_failure () { return 1; } 167 168 exitcode=0 169 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 173 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 174 then : 175 176 else \$as_nop 177 exitcode=1; echo positional parameters were not saved. 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else $as_nop 200 as_have_required=no 201 fi 202 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 203 then : 204 205 else $as_nop 206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 207 as_found=false 208 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 209 do 210 IFS=$as_save_IFS 211 case $as_dir in #((( 212 '') as_dir=./ ;; 213 */) ;; 214 *) as_dir=$as_dir/ ;; 215 esac 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 224 then : 225 CONFIG_SHELL=$as_shell as_have_required=yes 226 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 227 then : 228 break 2 229 fi 230 fi 231 done;; 232 esac 233 as_found=false 234 done 235 IFS=$as_save_IFS 236 if $as_found 237 then : 238 239 else $as_nop 240 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 241 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 242 then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi 245 fi 246 247 248 if test "x$CONFIG_SHELL" != x 249 then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252 # neutralization value for shells without unset; and this also 253 # works around shells that cannot unset nonexistent variables. 254 # Preserve -v and -x to the replacement shell. 255 BASH_ENV=/dev/null 256 ENV=/dev/null 257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258 case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263 esac 264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265 # Admittedly, this is quite paranoid, since all the known shells bail 266 # out after a failed `exec'. 267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 268 exit 255 269 fi 270 271 if test x$as_have_required = xno 272 then : 273 printf "%s\n" "$0: This script requires a shell more modern than all" 274 printf "%s\n" "$0: the shells that I found on your system." 275 if test ${ZSH_VERSION+y} ; then 276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 278 else 279 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 280 $0: https://github.com/heimdal/heimdal/issues about your 281 $0: system, including any error possibly output before this 282 $0: message. Then install a modern shell, or manually run 283 $0: the script under such a shell if you do have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='Heimdal' 624 PACKAGE_TARNAME='heimdal' 625 PACKAGE_VERSION='7.8.0' 626 PACKAGE_STRING='Heimdal 7.8.0' 627 PACKAGE_BUGREPORT='https://github.com/heimdal/heimdal/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="kuser/kinit.c" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_default_prefix=/usr/heimdal 664 ac_func_c_list= 665 enable_option_checking=no 666 ac_subst_vars='am__EXEEXT_FALSE 667 am__EXEEXT_TRUE 668 LTLIBOBJS 669 HEIMDAL_DOCUMENTATION_FALSE 670 HEIMDAL_DOCUMENTATION_TRUE 671 LIB_AUTH_SUBDIRS 672 LIB_com_err_so 673 LIB_com_err_a 674 LIB_com_err 675 DIR_com_err 676 COM_ERR_FALSE 677 COM_ERR_TRUE 678 COMPILE_ET 679 LIBEDIT_FALSE 680 LIBEDIT_TRUE 681 FRAMEWORK_SECURITY_FALSE 682 FRAMEWORK_SECURITY_TRUE 683 KCM_FALSE 684 KCM_TRUE 685 LIB_door_create 686 LIB_getpwnam_r 687 HAVE_DLADDR_FALSE 688 HAVE_DLADDR_TRUE 689 LIB_dladdr 690 LIB_tgetent 691 LIB_openpty 692 LIB_logout 693 LIB_logwtmp 694 subdirs 695 LIB_libedit 696 INCLUDE_libedit 697 LIB_readline 698 INCLUDE_readline 699 CATMANEXT 700 CATMAN_FALSE 701 CATMAN_TRUE 702 CATMAN 703 GROFF 704 NROFF 705 ENABLE_AFS_STRING_TO_KEY 706 LIB_security 707 have_gcd_FALSE 708 have_gcd_TRUE 709 LIB_dispatch_async_f 710 GCD_MIG 711 OTP_FALSE 712 OTP_TRUE 713 LIB_otp 714 LIBADD_roken 715 INCLUDES_roken 716 LIB_roken 717 DIR_roken 718 have_socket_wrapper_FALSE 719 have_socket_wrapper_TRUE 720 LIB_crypt 721 have_fnmatch_h_FALSE 722 have_fnmatch_h_TRUE 723 LIB_gai_strerror 724 LIB_freeaddrinfo 725 LIB_getnameinfo 726 LIB_getaddrinfo 727 LIB_pidfile 728 LIB_bswap64 729 LIB_bswap32 730 LIB_bswap16 731 LIB_hstrerror 732 LIB_setsockopt 733 LIB_getsockopt 734 have_cgetent_FALSE 735 have_cgetent_TRUE 736 have_glob_h_FALSE 737 have_glob_h_TRUE 738 LIBOBJS 739 LIB_dn_expand 740 LIB_dns_search 741 LIB_res_ndestroy 742 LIB_res_nsearch 743 LIB_res_search 744 LIB_gethostbyname2 745 LIB_syslog 746 LIB_gethostbyname 747 LIB_socket 748 have_vis_h_FALSE 749 have_vis_h_TRUE 750 have_search_h_FALSE 751 have_search_h_TRUE 752 have_ifaddrs_h_FALSE 753 have_ifaddrs_h_TRUE 754 have_err_h_FALSE 755 have_err_h_TRUE 756 WFLAGS_LITE 757 WFLAGS 758 DEVELOPER_MODE_FALSE 759 DEVELOPER_MODE_TRUE 760 db_type_preference 761 db_type 762 NDBMLIB 763 LMDBLIB 764 DB1LIB 765 DB3LIB 766 HAVE_DBHEADER_FALSE 767 HAVE_DBHEADER_TRUE 768 HAVE_NDBM_FALSE 769 HAVE_NDBM_TRUE 770 HAVE_LMDB_FALSE 771 HAVE_LMDB_TRUE 772 HAVE_DB3_FALSE 773 HAVE_DB3_TRUE 774 HAVE_DB1_FALSE 775 HAVE_DB1_TRUE 776 LIB_dbm_firstkey 777 LIB_dbopen 778 LIB_db_create 779 DBHEADER 780 NO_AFS_FALSE 781 NO_AFS_TRUE 782 NO_AFS 783 dpagaix_ldflags 784 dpagaix_ldadd 785 dpagaix_cflags 786 DCE_FALSE 787 DCE_TRUE 788 PTHREAD_LIBADD 789 PTHREAD_LDADD 790 PTHREAD_CFLAGS 791 ENABLE_PTHREAD_SUPPORT_FALSE 792 ENABLE_PTHREAD_SUPPORT_TRUE 793 LIB_hcrypto_appl 794 LIB_hcrypto_so 795 LIB_hcrypto_a 796 LIB_hcrypto 797 LIB_openssl_crypto 798 INCLUDE_openssl_crypto 799 HAVE_HCRYPTO_W_OPENSSL_FALSE 800 HAVE_HCRYPTO_W_OPENSSL_TRUE 801 LIB_kdb 802 do_roken_rename_FALSE 803 do_roken_rename_TRUE 804 KRB5_FALSE 805 KRB5_TRUE 806 DIR_hdbdir 807 LIB_libintl 808 INCLUDE_libintl 809 have_scc_FALSE 810 have_scc_TRUE 811 SQLITE3_FALSE 812 SQLITE3_TRUE 813 LIB_sqlite3 814 INCLUDE_sqlite3 815 HAVE_CAPNG_FALSE 816 HAVE_CAPNG_TRUE 817 CAPNG_LIBS 818 CAPNG_CFLAGS 819 PKG_CONFIG 820 PKINIT_FALSE 821 PKINIT_TRUE 822 OPENLDAP_MODULE_FALSE 823 OPENLDAP_MODULE_TRUE 824 LIB_openldap 825 INCLUDE_openldap 826 SLC_DEP 827 SLC 828 ASN1_COMPILE_DEP 829 ASN1_COMPILE 830 CROSS_COMPILE_FALSE 831 CROSS_COMPILE_TRUE 832 LDFLAGS_VERSION_SCRIPT 833 versionscript_FALSE 834 versionscript_TRUE 835 VERSIONING 836 ENABLE_SHARED_FALSE 837 ENABLE_SHARED_TRUE 838 LEXLIB 839 LEX_OUTPUT_ROOT 840 LEX 841 YFLAGS 842 YACC 843 PERL 844 IRIX_FALSE 845 IRIX_TRUE 846 AIX_EXTRA_KAFS 847 AIX_DYNAMIC_AFS_FALSE 848 AIX_DYNAMIC_AFS_TRUE 849 LIB_loadquery 850 HAVE_DLOPEN_FALSE 851 HAVE_DLOPEN_TRUE 852 LIB_dlopen 853 AIX4_FALSE 854 AIX4_TRUE 855 AIX_FALSE 856 AIX_TRUE 857 CANONICAL_HOST 858 CLANG_FORMAT 859 pkgpyexecdir 860 pyexecdir 861 pkgpythondir 862 pythondir 863 PYTHON_EXEC_PREFIX 864 PYTHON_PREFIX 865 PYTHON_PLATFORM 866 PYTHON_VERSION 867 PYTHON 868 CPP 869 LT_SYS_LIBRARY_PATH 870 OTOOL64 871 OTOOL 872 LIPO 873 NMEDIT 874 DSYMUTIL 875 MANIFEST_TOOL 876 RANLIB 877 ac_ct_AR 878 AR 879 FILECMD 880 LN_S 881 NM 882 ac_ct_DUMPBIN 883 DUMPBIN 884 LD 885 FGREP 886 EGREP 887 GREP 888 SED 889 am__fastdepCC_FALSE 890 am__fastdepCC_TRUE 891 CCDEPMODE 892 am__nodep 893 AMDEPBACKSLASH 894 AMDEP_FALSE 895 AMDEP_TRUE 896 am__include 897 DEPDIR 898 OBJEXT 899 EXEEXT 900 ac_ct_CC 901 CPPFLAGS 902 LDFLAGS 903 CFLAGS 904 CC 905 host_os 906 host_vendor 907 host_cpu 908 host 909 build_os 910 build_vendor 911 build_cpu 912 build 913 LIBTOOL 914 OBJDUMP 915 DLLTOOL 916 AS 917 MAINT 918 MAINTAINER_MODE_FALSE 919 MAINTAINER_MODE_TRUE 920 AM_BACKSLASH 921 AM_DEFAULT_VERBOSITY 922 AM_DEFAULT_V 923 AM_V 924 CSCOPE 925 ETAGS 926 CTAGS 927 am__untar 928 am__tar 929 AMTAR 930 am__leading_dot 931 SET_MAKE 932 AWK 933 mkdir_p 934 MKDIR_P 935 INSTALL_STRIP_PROGRAM 936 STRIP 937 install_sh 938 MAKEINFO 939 AUTOHEADER 940 AUTOMAKE 941 AUTOCONF 942 ACLOCAL 943 VERSION 944 PACKAGE 945 CYGPATH_W 946 am__isrc 947 INSTALL_DATA 948 INSTALL_SCRIPT 949 INSTALL_PROGRAM 950 target_alias 951 host_alias 952 build_alias 953 LIBS 954 ECHO_T 955 ECHO_N 956 ECHO_C 957 DEFS 958 mandir 959 localedir 960 libdir 961 psdir 962 pdfdir 963 dvidir 964 htmldir 965 infodir 966 docdir 967 oldincludedir 968 includedir 969 runstatedir 970 localstatedir 971 sharedstatedir 972 sysconfdir 973 datadir 974 datarootdir 975 libexecdir 976 sbindir 977 bindir 978 program_transform_name 979 prefix 980 exec_prefix 981 PACKAGE_URL 982 PACKAGE_BUGREPORT 983 PACKAGE_STRING 984 PACKAGE_VERSION 985 PACKAGE_TARNAME 986 PACKAGE_NAME 987 PATH_SEPARATOR 988 SHELL 989 am__quote' 990 ac_subst_files='' 991 ac_user_opts=' 992 enable_option_checking 993 enable_silent_rules 994 enable_maintainer_mode 995 enable_shared 996 enable_static 997 with_pic 998 enable_fast_install 999 with_aix_soname 1000 enable_dependency_tracking 1001 with_gnu_ld 1002 with_sysroot 1003 enable_libtool_lock 1004 with_python_sys_prefix 1005 with_python_prefix 1006 with_python_exec_prefix 1007 enable_largefile 1008 enable_dynamic_afs 1009 with_mips_abi 1010 with_cross_tools 1011 with_openldap 1012 with_openldap_lib 1013 with_openldap_include 1014 with_openldap_config 1015 enable_hdb_openldap_module 1016 enable_pk_init 1017 enable_digest 1018 enable_kx509 1019 with_capng 1020 with_sqlite3 1021 with_sqlite3_lib 1022 with_sqlite3_include 1023 with_sqlite3_config 1024 enable_sqlite_cache 1025 with_libintl 1026 with_libintl_lib 1027 with_libintl_include 1028 with_libintl_config 1029 with_hdbdir 1030 with_hcrypto_default_backend 1031 with_hcrypto_fallback 1032 with_openssl 1033 with_openssl_lib 1034 with_openssl_include 1035 with_pkcs11_module 1036 enable_pthread_support 1037 enable_dce 1038 enable_afs_support 1039 with_db_type_preference 1040 with_berkeley_db 1041 with_berkeley_db_include 1042 enable_ndbm_db 1043 enable_mdb_db 1044 enable_developer 1045 with_ipv6 1046 enable_socket_wrapper 1047 enable_otp 1048 enable_osfc2 1049 enable_mmap 1050 enable_afs_string_to_key 1051 with_readline 1052 with_readline_lib 1053 with_readline_include 1054 with_readline_config 1055 with_libedit 1056 with_libedit_lib 1057 with_libedit_include 1058 with_libedit_config 1059 enable_bigendian 1060 enable_littleendian 1061 enable_kcm 1062 enable_heimdal_documentation 1063 ' 1064 ac_precious_vars='build_alias 1065 host_alias 1066 target_alias 1067 CC 1068 CFLAGS 1069 LDFLAGS 1070 LIBS 1071 CPPFLAGS 1072 LT_SYS_LIBRARY_PATH 1073 CPP 1074 PYTHON 1075 YACC 1076 YFLAGS 1077 PKG_CONFIG 1078 CAPNG_CFLAGS 1079 CAPNG_LIBS' 1080 ac_subdirs_all='lib/libedit' 1081 1082 # Initialize some variables set by options. 1083 ac_init_help= 1084 ac_init_version=false 1085 ac_unrecognized_opts= 1086 ac_unrecognized_sep= 1087 # The variables have the same names as the options, with 1088 # dashes changed to underlines. 1089 cache_file=/dev/null 1090 exec_prefix=NONE 1091 no_create= 1092 no_recursion= 1093 prefix=NONE 1094 program_prefix=NONE 1095 program_suffix=NONE 1096 program_transform_name=s,x,x, 1097 silent= 1098 site= 1099 srcdir= 1100 verbose= 1101 x_includes=NONE 1102 x_libraries=NONE 1103 1104 # Installation directory options. 1105 # These are left unexpanded so users can "make install exec_prefix=/foo" 1106 # and all the variables that are supposed to be based on exec_prefix 1107 # by default will actually change. 1108 # Use braces instead of parens because sh, perl, etc. also accept them. 1109 # (The list follows the same order as the GNU Coding Standards.) 1110 bindir='${exec_prefix}/bin' 1111 sbindir='${exec_prefix}/sbin' 1112 libexecdir='${exec_prefix}/libexec' 1113 datarootdir='${prefix}/share' 1114 datadir='${datarootdir}' 1115 sysconfdir='${prefix}/etc' 1116 sharedstatedir='${prefix}/com' 1117 localstatedir='${prefix}/var' 1118 runstatedir='${localstatedir}/run' 1119 includedir='${prefix}/include' 1120 oldincludedir='/usr/include' 1121 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1122 infodir='${datarootdir}/info' 1123 htmldir='${docdir}' 1124 dvidir='${docdir}' 1125 pdfdir='${docdir}' 1126 psdir='${docdir}' 1127 libdir='${exec_prefix}/lib' 1128 localedir='${datarootdir}/locale' 1129 mandir='${datarootdir}/man' 1130 1131 ac_prev= 1132 ac_dashdash= 1133 for ac_option 1134 do 1135 # If the previous option needs an argument, assign it. 1136 if test -n "$ac_prev"; then 1137 eval $ac_prev=\$ac_option 1138 ac_prev= 1139 continue 1140 fi 1141 1142 case $ac_option in 1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1144 *=) ac_optarg= ;; 1145 *) ac_optarg=yes ;; 1146 esac 1147 1148 case $ac_dashdash$ac_option in 1149 --) 1150 ac_dashdash=yes ;; 1151 1152 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1153 ac_prev=bindir ;; 1154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1155 bindir=$ac_optarg ;; 1156 1157 -build | --build | --buil | --bui | --bu) 1158 ac_prev=build_alias ;; 1159 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1160 build_alias=$ac_optarg ;; 1161 1162 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1164 ac_prev=cache_file ;; 1165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1167 cache_file=$ac_optarg ;; 1168 1169 --config-cache | -C) 1170 cache_file=config.cache ;; 1171 1172 -datadir | --datadir | --datadi | --datad) 1173 ac_prev=datadir ;; 1174 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1175 datadir=$ac_optarg ;; 1176 1177 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1178 | --dataroo | --dataro | --datar) 1179 ac_prev=datarootdir ;; 1180 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1181 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1182 datarootdir=$ac_optarg ;; 1183 1184 -disable-* | --disable-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193 "enable_$ac_useropt" 1194 "*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval enable_$ac_useropt=no ;; 1199 1200 -docdir | --docdir | --docdi | --doc | --do) 1201 ac_prev=docdir ;; 1202 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1203 docdir=$ac_optarg ;; 1204 1205 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1206 ac_prev=dvidir ;; 1207 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1208 dvidir=$ac_optarg ;; 1209 1210 -enable-* | --enable-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219 "enable_$ac_useropt" 1220 "*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval enable_$ac_useropt=\$ac_optarg ;; 1225 1226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1228 | --exec | --exe | --ex) 1229 ac_prev=exec_prefix ;; 1230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1232 | --exec=* | --exe=* | --ex=*) 1233 exec_prefix=$ac_optarg ;; 1234 1235 -gas | --gas | --ga | --g) 1236 # Obsolete; use --with-gas. 1237 with_gas=yes ;; 1238 1239 -help | --help | --hel | --he | -h) 1240 ac_init_help=long ;; 1241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1242 ac_init_help=recursive ;; 1243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1244 ac_init_help=short ;; 1245 1246 -host | --host | --hos | --ho) 1247 ac_prev=host_alias ;; 1248 -host=* | --host=* | --hos=* | --ho=*) 1249 host_alias=$ac_optarg ;; 1250 1251 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1252 ac_prev=htmldir ;; 1253 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1254 | --ht=*) 1255 htmldir=$ac_optarg ;; 1256 1257 -includedir | --includedir | --includedi | --included | --include \ 1258 | --includ | --inclu | --incl | --inc) 1259 ac_prev=includedir ;; 1260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1261 | --includ=* | --inclu=* | --incl=* | --inc=*) 1262 includedir=$ac_optarg ;; 1263 1264 -infodir | --infodir | --infodi | --infod | --info | --inf) 1265 ac_prev=infodir ;; 1266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1267 infodir=$ac_optarg ;; 1268 1269 -libdir | --libdir | --libdi | --libd) 1270 ac_prev=libdir ;; 1271 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1272 libdir=$ac_optarg ;; 1273 1274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1275 | --libexe | --libex | --libe) 1276 ac_prev=libexecdir ;; 1277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1278 | --libexe=* | --libex=* | --libe=*) 1279 libexecdir=$ac_optarg ;; 1280 1281 -localedir | --localedir | --localedi | --localed | --locale) 1282 ac_prev=localedir ;; 1283 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1284 localedir=$ac_optarg ;; 1285 1286 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1287 | --localstate | --localstat | --localsta | --localst | --locals) 1288 ac_prev=localstatedir ;; 1289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1290 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1291 localstatedir=$ac_optarg ;; 1292 1293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1294 ac_prev=mandir ;; 1295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1296 mandir=$ac_optarg ;; 1297 1298 -nfp | --nfp | --nf) 1299 # Obsolete; use --without-fp. 1300 with_fp=no ;; 1301 1302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1303 | --no-cr | --no-c | -n) 1304 no_create=yes ;; 1305 1306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1308 no_recursion=yes ;; 1309 1310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1312 | --oldin | --oldi | --old | --ol | --o) 1313 ac_prev=oldincludedir ;; 1314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1317 oldincludedir=$ac_optarg ;; 1318 1319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1320 ac_prev=prefix ;; 1321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1322 prefix=$ac_optarg ;; 1323 1324 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1325 | --program-pre | --program-pr | --program-p) 1326 ac_prev=program_prefix ;; 1327 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1329 program_prefix=$ac_optarg ;; 1330 1331 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1332 | --program-suf | --program-su | --program-s) 1333 ac_prev=program_suffix ;; 1334 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1336 program_suffix=$ac_optarg ;; 1337 1338 -program-transform-name | --program-transform-name \ 1339 | --program-transform-nam | --program-transform-na \ 1340 | --program-transform-n | --program-transform- \ 1341 | --program-transform | --program-transfor \ 1342 | --program-transfo | --program-transf \ 1343 | --program-trans | --program-tran \ 1344 | --progr-tra | --program-tr | --program-t) 1345 ac_prev=program_transform_name ;; 1346 -program-transform-name=* | --program-transform-name=* \ 1347 | --program-transform-nam=* | --program-transform-na=* \ 1348 | --program-transform-n=* | --program-transform-=* \ 1349 | --program-transform=* | --program-transfor=* \ 1350 | --program-transfo=* | --program-transf=* \ 1351 | --program-trans=* | --program-tran=* \ 1352 | --progr-tra=* | --program-tr=* | --program-t=*) 1353 program_transform_name=$ac_optarg ;; 1354 1355 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1356 ac_prev=pdfdir ;; 1357 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1358 pdfdir=$ac_optarg ;; 1359 1360 -psdir | --psdir | --psdi | --psd | --ps) 1361 ac_prev=psdir ;; 1362 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1363 psdir=$ac_optarg ;; 1364 1365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1366 | -silent | --silent | --silen | --sile | --sil) 1367 silent=yes ;; 1368 1369 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1370 | --runstate | --runstat | --runsta | --runst | --runs \ 1371 | --run | --ru | --r) 1372 ac_prev=runstatedir ;; 1373 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1374 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1375 | --run=* | --ru=* | --r=*) 1376 runstatedir=$ac_optarg ;; 1377 1378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1379 ac_prev=sbindir ;; 1380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1381 | --sbi=* | --sb=*) 1382 sbindir=$ac_optarg ;; 1383 1384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1386 | --sharedst | --shareds | --shared | --share | --shar \ 1387 | --sha | --sh) 1388 ac_prev=sharedstatedir ;; 1389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1392 | --sha=* | --sh=*) 1393 sharedstatedir=$ac_optarg ;; 1394 1395 -site | --site | --sit) 1396 ac_prev=site ;; 1397 -site=* | --site=* | --sit=*) 1398 site=$ac_optarg ;; 1399 1400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1401 ac_prev=srcdir ;; 1402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1403 srcdir=$ac_optarg ;; 1404 1405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1406 | --syscon | --sysco | --sysc | --sys | --sy) 1407 ac_prev=sysconfdir ;; 1408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1410 sysconfdir=$ac_optarg ;; 1411 1412 -target | --target | --targe | --targ | --tar | --ta | --t) 1413 ac_prev=target_alias ;; 1414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1415 target_alias=$ac_optarg ;; 1416 1417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1418 verbose=yes ;; 1419 1420 -version | --version | --versio | --versi | --vers | -V) 1421 ac_init_version=: ;; 1422 1423 -with-* | --with-*) 1424 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1425 # Reject names that are not valid shell variable names. 1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1427 as_fn_error $? "invalid package name: \`$ac_useropt'" 1428 ac_useropt_orig=$ac_useropt 1429 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1430 case $ac_user_opts in 1431 *" 1432 "with_$ac_useropt" 1433 "*) ;; 1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1435 ac_unrecognized_sep=', ';; 1436 esac 1437 eval with_$ac_useropt=\$ac_optarg ;; 1438 1439 -without-* | --without-*) 1440 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1441 # Reject names that are not valid shell variable names. 1442 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1443 as_fn_error $? "invalid package name: \`$ac_useropt'" 1444 ac_useropt_orig=$ac_useropt 1445 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1446 case $ac_user_opts in 1447 *" 1448 "with_$ac_useropt" 1449 "*) ;; 1450 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1451 ac_unrecognized_sep=', ';; 1452 esac 1453 eval with_$ac_useropt=no ;; 1454 1455 --x) 1456 # Obsolete; use --with-x. 1457 with_x=yes ;; 1458 1459 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1460 | --x-incl | --x-inc | --x-in | --x-i) 1461 ac_prev=x_includes ;; 1462 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1463 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1464 x_includes=$ac_optarg ;; 1465 1466 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1467 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1468 ac_prev=x_libraries ;; 1469 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1470 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1471 x_libraries=$ac_optarg ;; 1472 1473 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1474 Try \`$0 --help' for more information" 1475 ;; 1476 1477 *=*) 1478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1479 # Reject names that are not valid shell variable names. 1480 case $ac_envvar in #( 1481 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1482 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1483 esac 1484 eval $ac_envvar=\$ac_optarg 1485 export $ac_envvar ;; 1486 1487 *) 1488 # FIXME: should be removed in autoconf 3.0. 1489 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1491 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1492 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1493 ;; 1494 1495 esac 1496 done 1497 1498 if test -n "$ac_prev"; then 1499 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1500 as_fn_error $? "missing argument to $ac_option" 1501 fi 1502 1503 if test -n "$ac_unrecognized_opts"; then 1504 case $enable_option_checking in 1505 no) ;; 1506 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1507 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1508 esac 1509 fi 1510 1511 # Check all directory arguments for consistency. 1512 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1513 datadir sysconfdir sharedstatedir localstatedir includedir \ 1514 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1515 libdir localedir mandir runstatedir 1516 do 1517 eval ac_val=\$$ac_var 1518 # Remove trailing slashes. 1519 case $ac_val in 1520 */ ) 1521 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1522 eval $ac_var=\$ac_val;; 1523 esac 1524 # Be sure to have absolute directory names. 1525 case $ac_val in 1526 [\\/$]* | ?:[\\/]* ) continue;; 1527 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1528 esac 1529 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1530 done 1531 1532 # There might be people who depend on the old broken behavior: `$host' 1533 # used to hold the argument of --host etc. 1534 # FIXME: To remove some day. 1535 build=$build_alias 1536 host=$host_alias 1537 target=$target_alias 1538 1539 # FIXME: To remove some day. 1540 if test "x$host_alias" != x; then 1541 if test "x$build_alias" = x; then 1542 cross_compiling=maybe 1543 elif test "x$build_alias" != "x$host_alias"; then 1544 cross_compiling=yes 1545 fi 1546 fi 1547 1548 ac_tool_prefix= 1549 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1550 1551 test "$silent" = yes && exec 6>/dev/null 1552 1553 1554 ac_pwd=`pwd` && test -n "$ac_pwd" && 1555 ac_ls_di=`ls -di .` && 1556 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1557 as_fn_error $? "working directory cannot be determined" 1558 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1559 as_fn_error $? "pwd does not report name of working directory" 1560 1561 1562 # Find the source files, if location was not specified. 1563 if test -z "$srcdir"; then 1564 ac_srcdir_defaulted=yes 1565 # Try the directory containing this script, then the parent directory. 1566 ac_confdir=`$as_dirname -- "$as_myself" || 1567 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1568 X"$as_myself" : 'X\(//\)[^/]' \| \ 1569 X"$as_myself" : 'X\(//\)$' \| \ 1570 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1571 printf "%s\n" X"$as_myself" | 1572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1573 s//\1/ 1574 q 1575 } 1576 /^X\(\/\/\)[^/].*/{ 1577 s//\1/ 1578 q 1579 } 1580 /^X\(\/\/\)$/{ 1581 s//\1/ 1582 q 1583 } 1584 /^X\(\/\).*/{ 1585 s//\1/ 1586 q 1587 } 1588 s/.*/./; q'` 1589 srcdir=$ac_confdir 1590 if test ! -r "$srcdir/$ac_unique_file"; then 1591 srcdir=.. 1592 fi 1593 else 1594 ac_srcdir_defaulted=no 1595 fi 1596 if test ! -r "$srcdir/$ac_unique_file"; then 1597 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1598 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1599 fi 1600 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1601 ac_abs_confdir=`( 1602 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1603 pwd)` 1604 # When building in place, set srcdir=. 1605 if test "$ac_abs_confdir" = "$ac_pwd"; then 1606 srcdir=. 1607 fi 1608 # Remove unnecessary trailing slashes from srcdir. 1609 # Double slashes in file names in object file debugging info 1610 # mess up M-x gdb in Emacs. 1611 case $srcdir in 1612 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1613 esac 1614 for ac_var in $ac_precious_vars; do 1615 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1616 eval ac_env_${ac_var}_value=\$${ac_var} 1617 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1618 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1619 done 1620 1621 # 1622 # Report the --help message. 1623 # 1624 if test "$ac_init_help" = "long"; then 1625 # Omit some internal or obsolete options to make the list less imposing. 1626 # This message is too long to be a string in the A/UX 3.1 sh. 1627 cat <<_ACEOF 1628 \`configure' configures Heimdal 7.8.0 to adapt to many kinds of systems. 1629 1630 Usage: $0 [OPTION]... [VAR=VALUE]... 1631 1632 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1633 VAR=VALUE. See below for descriptions of some of the useful variables. 1634 1635 Defaults for the options are specified in brackets. 1636 1637 Configuration: 1638 -h, --help display this help and exit 1639 --help=short display options specific to this package 1640 --help=recursive display the short help of all the included packages 1641 -V, --version display version information and exit 1642 -q, --quiet, --silent do not print \`checking ...' messages 1643 --cache-file=FILE cache test results in FILE [disabled] 1644 -C, --config-cache alias for \`--cache-file=config.cache' 1645 -n, --no-create do not create output files 1646 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1647 1648 Installation directories: 1649 --prefix=PREFIX install architecture-independent files in PREFIX 1650 [$ac_default_prefix] 1651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1652 [PREFIX] 1653 1654 By default, \`make install' will install all the files in 1655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1656 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1657 for instance \`--prefix=\$HOME'. 1658 1659 For better control, use the options below. 1660 1661 Fine tuning of the installation directories: 1662 --bindir=DIR user executables [EPREFIX/bin] 1663 --sbindir=DIR system admin executables [EPREFIX/sbin] 1664 --libexecdir=DIR program executables [EPREFIX/libexec] 1665 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1666 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1667 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1668 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1669 --libdir=DIR object code libraries [EPREFIX/lib] 1670 --includedir=DIR C header files [PREFIX/include] 1671 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1672 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1673 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1674 --infodir=DIR info documentation [DATAROOTDIR/info] 1675 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1676 --mandir=DIR man documentation [DATAROOTDIR/man] 1677 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal] 1678 --htmldir=DIR html documentation [DOCDIR] 1679 --dvidir=DIR dvi documentation [DOCDIR] 1680 --pdfdir=DIR pdf documentation [DOCDIR] 1681 --psdir=DIR ps documentation [DOCDIR] 1682 _ACEOF 1683 1684 cat <<\_ACEOF 1685 1686 Program names: 1687 --program-prefix=PREFIX prepend PREFIX to installed program names 1688 --program-suffix=SUFFIX append SUFFIX to installed program names 1689 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1690 1691 System types: 1692 --build=BUILD configure for building on BUILD [guessed] 1693 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1694 _ACEOF 1695 fi 1696 1697 if test -n "$ac_init_help"; then 1698 case $ac_init_help in 1699 short | recursive ) echo "Configuration of Heimdal 7.8.0:";; 1700 esac 1701 cat <<\_ACEOF 1702 1703 Optional Features: 1704 --disable-option-checking ignore unrecognized --enable/--with options 1705 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1706 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1707 --enable-silent-rules less verbose build output (undo: "make V=1") 1708 --disable-silent-rules verbose build output (undo: "make V=0") 1709 --enable-maintainer-mode 1710 enable make rules and dependencies not useful (and 1711 sometimes confusing) to the casual installer 1712 --enable-shared[=PKGS] build shared libraries [default=yes] 1713 --enable-static[=PKGS] build static libraries [default=yes] 1714 --enable-fast-install[=PKGS] 1715 optimize for fast installation [default=yes] 1716 --enable-dependency-tracking 1717 do not reject slow dependency extractors 1718 --disable-dependency-tracking 1719 speeds up one-time build 1720 --disable-libtool-lock avoid locking (might break parallel builds) 1721 --disable-largefile omit support for large files 1722 --disable-dynamic-afs do not use loaded AFS library with AIX 1723 --enable-hdb-openldap-module 1724 if you want support to build openldap hdb as shared 1725 object 1726 --disable-pk-init if you want disable to PK-INIT support 1727 --disable-digest if you want disable to DIGEST support 1728 --disable-kx509 if you want disable to kx509 support 1729 --disable-sqlite-cache if you want support for cache in sqlite 1730 --enable-pthread-support 1731 if you want thread safe libraries 1732 --enable-dce if you want support for DCE/DFS PAG's 1733 --disable-afs-support if you don't want support for AFS 1734 --disable-ndbm-db if you don't want ndbm db 1735 --disable-mdb-db if you don't want LMDB 1736 --enable-developer enable developer warnings 1737 --enable-socket-wrapper use sambas socket-wrapper for testing 1738 --disable-otp if you don't want OTP support 1739 --enable-osfc2 enable some OSF C2 support 1740 --disable-mmap disable use of mmap 1741 --disable-afs-string-to-key 1742 disable use of weak AFS string-to-key functions 1743 --enable-bigendian the target is big endian 1744 --enable-littleendian the target is little endian 1745 --enable-kcm enable Kerberos Credentials Manager 1746 --disable-heimdal-documentation 1747 if you want disable to heimdal documentation 1748 1749 Optional Packages: 1750 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1751 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1752 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1753 both] 1754 --with-aix-soname=aix|svr4|both 1755 shared library versioning (aka "SONAME") variant to 1756 provide on AIX, [default=aix]. 1757 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1758 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1759 compiler's sysroot if not specified). 1760 --with-python-sys-prefix 1761 use Python's sys.prefix and sys.exec_prefix values 1762 --with-python_prefix override the default PYTHON_PREFIX 1763 --with-python_exec_prefix 1764 override the default PYTHON_EXEC_PREFIX 1765 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1766 --with-cross-tools=dir use cross tools in dir 1767 --with-openldap=dir use openldap in dir 1768 --with-openldap-lib=dir use openldap libraries in dir 1769 --with-openldap-include=dir 1770 use openldap headers in dir 1771 --with-openldap-config=path 1772 config program for openldap 1773 --with-capng use libcap-ng to drop KDC privileges [default=check] 1774 --with-sqlite3=dir use sqlite3 in dir 1775 --with-sqlite3-lib=dir use sqlite3 libraries in dir 1776 --with-sqlite3-include=dir 1777 use sqlite3 headers in dir 1778 --with-sqlite3-config=path 1779 config program for sqlite3 1780 --with-libintl=dir use libintl in dir 1781 --with-libintl-lib=dir use libintl libraries in dir 1782 --with-libintl-include=dir 1783 use libintl headers in dir 1784 --with-libintl-config=path 1785 config program for libintl 1786 --with-hdbdir Default location for KDC database 1787 [default=/var/heimdal] 1788 --with-hcrypto-default-backend=cc|pkcs11_hcrypto|ossl|w32crypto|hcrypto 1789 specify the default hcrypto backend 1790 --without-hcrypto-fallback 1791 disable fallback on hcrypto for unavailable 1792 algorithms 1793 --with-openssl=dir use openssl in dir 1794 --with-openssl-lib=dir use openssl libraries in dir 1795 --with-openssl-include=dir 1796 use openssl headers in dir 1797 --with-pkcs11-module=path 1798 use PKCS11 module in path 1799 --with-db-type-preference=list 1800 specify HDB backend DB type preference as 1801 whitespace-separated list of db1, db3, lmdb, and/or 1802 sqlite 1803 --with-berkeley-db enable support for berkeley db [default=check] 1804 --with-berkeley-db-include=dir 1805 use berkeley-db headers in dir 1806 --without-ipv6 do not enable IPv6 support 1807 --with-readline=dir use readline in dir 1808 --with-readline-lib=dir use readline libraries in dir 1809 --with-readline-include=dir 1810 use readline headers in dir 1811 --with-readline-config=path 1812 config program for readline 1813 --with-libedit=dir use libedit in dir 1814 --with-libedit-lib=dir use libedit libraries in dir 1815 --with-libedit-include=dir 1816 use libedit headers in dir 1817 --with-libedit-config=path 1818 config program for libedit 1819 1820 Some influential environment variables: 1821 CC C compiler command 1822 CFLAGS C compiler flags 1823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1824 nonstandard directory <lib dir> 1825 LIBS libraries to pass to the linker, e.g. -l<library> 1826 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1827 you have headers in a nonstandard directory <include dir> 1828 LT_SYS_LIBRARY_PATH 1829 User-defined run-time library search path. 1830 CPP C preprocessor 1831 PYTHON the Python interpreter 1832 YACC The `Yet Another Compiler Compiler' implementation to use. 1833 Defaults to the first program found out of: `bison -y', `byacc', 1834 `yacc'. 1835 YFLAGS The list of arguments that will be passed by default to $YACC. 1836 This script will default YFLAGS to the empty string to avoid a 1837 default value of `-d' given by some make applications. 1838 PKG_CONFIG path to pkg-config utility 1839 CAPNG_CFLAGS 1840 C compiler flags for CAPNG, overriding pkg-config 1841 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config 1842 1843 Use these variables to override the choices made by `configure' or to help 1844 it to find libraries and programs with nonstandard names/locations. 1845 1846 Report bugs to <https://github.com/heimdal/heimdal/issues>. 1847 _ACEOF 1848 ac_status=$? 1849 fi 1850 1851 if test "$ac_init_help" = "recursive"; then 1852 # If there are subdirs, report their specific --help. 1853 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1854 test -d "$ac_dir" || 1855 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1856 continue 1857 ac_builddir=. 1858 1859 case "$ac_dir" in 1860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1861 *) 1862 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1863 # A ".." for each directory in $ac_dir_suffix. 1864 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1865 case $ac_top_builddir_sub in 1866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1868 esac ;; 1869 esac 1870 ac_abs_top_builddir=$ac_pwd 1871 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1872 # for backward compatibility: 1873 ac_top_builddir=$ac_top_build_prefix 1874 1875 case $srcdir in 1876 .) # We are building in place. 1877 ac_srcdir=. 1878 ac_top_srcdir=$ac_top_builddir_sub 1879 ac_abs_top_srcdir=$ac_pwd ;; 1880 [\\/]* | ?:[\\/]* ) # Absolute name. 1881 ac_srcdir=$srcdir$ac_dir_suffix; 1882 ac_top_srcdir=$srcdir 1883 ac_abs_top_srcdir=$srcdir ;; 1884 *) # Relative name. 1885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1886 ac_top_srcdir=$ac_top_build_prefix$srcdir 1887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1888 esac 1889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1890 1891 cd "$ac_dir" || { ac_status=$?; continue; } 1892 # Check for configure.gnu first; this name is used for a wrapper for 1893 # Metaconfig's "Configure" on case-insensitive file systems. 1894 if test -f "$ac_srcdir/configure.gnu"; then 1895 echo && 1896 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1897 elif test -f "$ac_srcdir/configure"; then 1898 echo && 1899 $SHELL "$ac_srcdir/configure" --help=recursive 1900 else 1901 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1902 fi || ac_status=$? 1903 cd "$ac_pwd" || { ac_status=$?; break; } 1904 done 1905 fi 1906 1907 test -n "$ac_init_help" && exit $ac_status 1908 if $ac_init_version; then 1909 cat <<\_ACEOF 1910 Heimdal configure 7.8.0 1911 generated by GNU Autoconf 2.71 1912 1913 Copyright (C) 2021 Free Software Foundation, Inc. 1914 This configure script is free software; the Free Software Foundation 1915 gives unlimited permission to copy, distribute and modify it. 1916 _ACEOF 1917 exit 1918 fi 1919 1920 ## ------------------------ ## 1921 ## Autoconf initialization. ## 1922 ## ------------------------ ## 1923 1924 # ac_fn_c_try_compile LINENO 1925 # -------------------------- 1926 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1927 ac_fn_c_try_compile () 1928 { 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 rm -f conftest.$ac_objext conftest.beam 1931 if { { ac_try="$ac_compile" 1932 case "(($ac_try" in 1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1934 *) ac_try_echo=$ac_try;; 1935 esac 1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1937 printf "%s\n" "$ac_try_echo"; } >&5 1938 (eval "$ac_compile") 2>conftest.err 1939 ac_status=$? 1940 if test -s conftest.err; then 1941 grep -v '^ *+' conftest.err >conftest.er1 1942 cat conftest.er1 >&5 1943 mv -f conftest.er1 conftest.err 1944 fi 1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1946 test $ac_status = 0; } && { 1947 test -z "$ac_c_werror_flag" || 1948 test ! -s conftest.err 1949 } && test -s conftest.$ac_objext 1950 then : 1951 ac_retval=0 1952 else $as_nop 1953 printf "%s\n" "$as_me: failed program was:" >&5 1954 sed 's/^/| /' conftest.$ac_ext >&5 1955 1956 ac_retval=1 1957 fi 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 as_fn_set_status $ac_retval 1960 1961 } # ac_fn_c_try_compile 1962 1963 # ac_fn_c_try_link LINENO 1964 # ----------------------- 1965 # Try to link conftest.$ac_ext, and return whether this succeeded. 1966 ac_fn_c_try_link () 1967 { 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1970 if { { ac_try="$ac_link" 1971 case "(($ac_try" in 1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1973 *) ac_try_echo=$ac_try;; 1974 esac 1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1976 printf "%s\n" "$ac_try_echo"; } >&5 1977 (eval "$ac_link") 2>conftest.err 1978 ac_status=$? 1979 if test -s conftest.err; then 1980 grep -v '^ *+' conftest.err >conftest.er1 1981 cat conftest.er1 >&5 1982 mv -f conftest.er1 conftest.err 1983 fi 1984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1985 test $ac_status = 0; } && { 1986 test -z "$ac_c_werror_flag" || 1987 test ! -s conftest.err 1988 } && test -s conftest$ac_exeext && { 1989 test "$cross_compiling" = yes || 1990 test -x conftest$ac_exeext 1991 } 1992 then : 1993 ac_retval=0 1994 else $as_nop 1995 printf "%s\n" "$as_me: failed program was:" >&5 1996 sed 's/^/| /' conftest.$ac_ext >&5 1997 1998 ac_retval=1 1999 fi 2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2002 # interfere with the next link command; also delete a directory that is 2003 # left behind by Apple's compiler. We do this before executing the actions. 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008 } # ac_fn_c_try_link 2009 2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2011 # ------------------------------------------------------- 2012 # Tests whether HEADER exists and can be compiled using the include files in 2013 # INCLUDES, setting the cache variable VAR accordingly. 2014 ac_fn_c_check_header_compile () 2015 { 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018 printf %s "checking for $2... " >&6; } 2019 if eval test \${$3+y} 2020 then : 2021 printf %s "(cached) " >&6 2022 else $as_nop 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024 /* end confdefs.h. */ 2025 $4 2026 #include <$2> 2027 _ACEOF 2028 if ac_fn_c_try_compile "$LINENO" 2029 then : 2030 eval "$3=yes" 2031 else $as_nop 2032 eval "$3=no" 2033 fi 2034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2035 fi 2036 eval ac_res=\$$3 2037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038 printf "%s\n" "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041 } # ac_fn_c_check_header_compile 2042 2043 # ac_fn_c_check_func LINENO FUNC VAR 2044 # ---------------------------------- 2045 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2046 ac_fn_c_check_func () 2047 { 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2050 printf %s "checking for $2... " >&6; } 2051 if eval test \${$3+y} 2052 then : 2053 printf %s "(cached) " >&6 2054 else $as_nop 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056 /* end confdefs.h. */ 2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2059 #define $2 innocuous_$2 2060 2061 /* System header to define __stub macros and hopefully few prototypes, 2062 which can conflict with char $2 (); below. */ 2063 2064 #include <limits.h> 2065 #undef $2 2066 2067 /* Override any GCC internal prototype to avoid an error. 2068 Use char because int might match the return type of a GCC 2069 builtin and then its argument prototype would still apply. */ 2070 #ifdef __cplusplus 2071 extern "C" 2072 #endif 2073 char $2 (); 2074 /* The GNU C library defines this for functions which it implements 2075 to always fail with ENOSYS. Some functions are actually named 2076 something starting with __ and the normal name is an alias. */ 2077 #if defined __stub_$2 || defined __stub___$2 2078 choke me 2079 #endif 2080 2081 int 2082 main (void) 2083 { 2084 return $2 (); 2085 ; 2086 return 0; 2087 } 2088 _ACEOF 2089 if ac_fn_c_try_link "$LINENO" 2090 then : 2091 eval "$3=yes" 2092 else $as_nop 2093 eval "$3=no" 2094 fi 2095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2096 conftest$ac_exeext conftest.$ac_ext 2097 fi 2098 eval ac_res=\$$3 2099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2100 printf "%s\n" "$ac_res" >&6; } 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2102 2103 } # ac_fn_c_check_func 2104 2105 # ac_fn_c_try_cpp LINENO 2106 # ---------------------- 2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2108 ac_fn_c_try_cpp () 2109 { 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 if { { ac_try="$ac_cpp conftest.$ac_ext" 2112 case "(($ac_try" in 2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2114 *) ac_try_echo=$ac_try;; 2115 esac 2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2117 printf "%s\n" "$ac_try_echo"; } >&5 2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2119 ac_status=$? 2120 if test -s conftest.err; then 2121 grep -v '^ *+' conftest.err >conftest.er1 2122 cat conftest.er1 >&5 2123 mv -f conftest.er1 conftest.err 2124 fi 2125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2126 test $ac_status = 0; } > conftest.i && { 2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2128 test ! -s conftest.err 2129 } 2130 then : 2131 ac_retval=0 2132 else $as_nop 2133 printf "%s\n" "$as_me: failed program was:" >&5 2134 sed 's/^/| /' conftest.$ac_ext >&5 2135 2136 ac_retval=1 2137 fi 2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2139 as_fn_set_status $ac_retval 2140 2141 } # ac_fn_c_try_cpp 2142 2143 # ac_fn_c_try_run LINENO 2144 # ---------------------- 2145 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2146 # executables *can* be run. 2147 ac_fn_c_try_run () 2148 { 2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2150 if { { ac_try="$ac_link" 2151 case "(($ac_try" in 2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2153 *) ac_try_echo=$ac_try;; 2154 esac 2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2156 printf "%s\n" "$ac_try_echo"; } >&5 2157 (eval "$ac_link") 2>&5 2158 ac_status=$? 2159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2161 { { case "(($ac_try" in 2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2163 *) ac_try_echo=$ac_try;; 2164 esac 2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2166 printf "%s\n" "$ac_try_echo"; } >&5 2167 (eval "$ac_try") 2>&5 2168 ac_status=$? 2169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2170 test $ac_status = 0; }; } 2171 then : 2172 ac_retval=0 2173 else $as_nop 2174 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2175 printf "%s\n" "$as_me: failed program was:" >&5 2176 sed 's/^/| /' conftest.$ac_ext >&5 2177 2178 ac_retval=$ac_status 2179 fi 2180 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 as_fn_set_status $ac_retval 2183 2184 } # ac_fn_c_try_run 2185 2186 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2187 # ------------------------------------------- 2188 # Tests whether TYPE exists after having included INCLUDES, setting cache 2189 # variable VAR accordingly. 2190 ac_fn_c_check_type () 2191 { 2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2194 printf %s "checking for $2... " >&6; } 2195 if eval test \${$3+y} 2196 then : 2197 printf %s "(cached) " >&6 2198 else $as_nop 2199 eval "$3=no" 2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2201 /* end confdefs.h. */ 2202 $4 2203 int 2204 main (void) 2205 { 2206 if (sizeof ($2)) 2207 return 0; 2208 ; 2209 return 0; 2210 } 2211 _ACEOF 2212 if ac_fn_c_try_compile "$LINENO" 2213 then : 2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2215 /* end confdefs.h. */ 2216 $4 2217 int 2218 main (void) 2219 { 2220 if (sizeof (($2))) 2221 return 0; 2222 ; 2223 return 0; 2224 } 2225 _ACEOF 2226 if ac_fn_c_try_compile "$LINENO" 2227 then : 2228 2229 else $as_nop 2230 eval "$3=yes" 2231 fi 2232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2233 fi 2234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2235 fi 2236 eval ac_res=\$$3 2237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2238 printf "%s\n" "$ac_res" >&6; } 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2240 2241 } # ac_fn_c_check_type 2242 2243 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2244 # ------------------------------------------------------------------ 2245 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2246 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2247 ac_fn_check_decl () 2248 { 2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2250 as_decl_name=`echo $2|sed 's/ *(.*//'` 2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2252 printf %s "checking whether $as_decl_name is declared... " >&6; } 2253 if eval test \${$3+y} 2254 then : 2255 printf %s "(cached) " >&6 2256 else $as_nop 2257 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2258 eval ac_save_FLAGS=\$$6 2259 as_fn_append $6 " $5" 2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2261 /* end confdefs.h. */ 2262 $4 2263 int 2264 main (void) 2265 { 2266 #ifndef $as_decl_name 2267 #ifdef __cplusplus 2268 (void) $as_decl_use; 2269 #else 2270 (void) $as_decl_name; 2271 #endif 2272 #endif 2273 2274 ; 2275 return 0; 2276 } 2277 _ACEOF 2278 if ac_fn_c_try_compile "$LINENO" 2279 then : 2280 eval "$3=yes" 2281 else $as_nop 2282 eval "$3=no" 2283 fi 2284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2285 eval $6=\$ac_save_FLAGS 2286 2287 fi 2288 eval ac_res=\$$3 2289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2290 printf "%s\n" "$ac_res" >&6; } 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 2293 } # ac_fn_check_decl 2294 2295 # ac_fn_c_check_header_preproc LINENO HEADER VAR 2296 # ---------------------------------------------- 2297 # Tests whether HEADER exists and can be preprocessed (in isolation), setting 2298 # the cache variable VAR accordingly. 2299 ac_fn_c_check_header_preproc () 2300 { 2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2303 printf %s "checking for $2... " >&6; } 2304 if eval test \${$3+y} 2305 then : 2306 printf %s "(cached) " >&6 2307 else $as_nop 2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2309 /* end confdefs.h. */ 2310 #include <$2> 2311 _ACEOF 2312 if ac_fn_c_try_cpp "$LINENO" 2313 then : 2314 eval "$3=yes" 2315 else $as_nop 2316 eval "$3=no" 2317 fi 2318 rm -f conftest.err conftest.i conftest.$ac_ext 2319 fi 2320 eval ac_res=\$$3 2321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2322 printf "%s\n" "$ac_res" >&6; } 2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2324 2325 } # ac_fn_c_check_header_preproc 2326 ac_configure_args_raw= 2327 for ac_arg 2328 do 2329 case $ac_arg in 2330 *\'*) 2331 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2332 esac 2333 as_fn_append ac_configure_args_raw " '$ac_arg'" 2334 done 2335 2336 case $ac_configure_args_raw in 2337 *$as_nl*) 2338 ac_safe_unquote= ;; 2339 *) 2340 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2341 ac_unsafe_a="$ac_unsafe_z#~" 2342 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2343 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2344 esac 2345 2346 cat >config.log <<_ACEOF 2347 This file contains any messages produced by compilers while 2348 running configure, to aid debugging if configure makes a mistake. 2349 2350 It was created by Heimdal $as_me 7.8.0, which was 2351 generated by GNU Autoconf 2.71. Invocation command line was 2352 2353 $ $0$ac_configure_args_raw 2354 2355 _ACEOF 2356 exec 5>>config.log 2357 { 2358 cat <<_ASUNAME 2359 ## --------- ## 2360 ## Platform. ## 2361 ## --------- ## 2362 2363 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2364 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2365 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2366 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2367 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2368 2369 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2370 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2371 2372 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2373 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2374 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2375 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2376 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2377 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2378 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2379 2380 _ASUNAME 2381 2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383 for as_dir in $PATH 2384 do 2385 IFS=$as_save_IFS 2386 case $as_dir in #((( 2387 '') as_dir=./ ;; 2388 */) ;; 2389 *) as_dir=$as_dir/ ;; 2390 esac 2391 printf "%s\n" "PATH: $as_dir" 2392 done 2393 IFS=$as_save_IFS 2394 2395 } >&5 2396 2397 cat >&5 <<_ACEOF 2398 2399 2400 ## ----------- ## 2401 ## Core tests. ## 2402 ## ----------- ## 2403 2404 _ACEOF 2405 2406 2407 # Keep a trace of the command line. 2408 # Strip out --no-create and --no-recursion so they do not pile up. 2409 # Strip out --silent because we don't want to record it for future runs. 2410 # Also quote any args containing shell meta-characters. 2411 # Make two passes to allow for proper duplicate-argument suppression. 2412 ac_configure_args= 2413 ac_configure_args0= 2414 ac_configure_args1= 2415 ac_must_keep_next=false 2416 for ac_pass in 1 2 2417 do 2418 for ac_arg 2419 do 2420 case $ac_arg in 2421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2423 | -silent | --silent | --silen | --sile | --sil) 2424 continue ;; 2425 *\'*) 2426 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2427 esac 2428 case $ac_pass in 2429 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2430 2) 2431 as_fn_append ac_configure_args1 " '$ac_arg'" 2432 if test $ac_must_keep_next = true; then 2433 ac_must_keep_next=false # Got value, back to normal. 2434 else 2435 case $ac_arg in 2436 *=* | --config-cache | -C | -disable-* | --disable-* \ 2437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2439 | -with-* | --with-* | -without-* | --without-* | --x) 2440 case "$ac_configure_args0 " in 2441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2442 esac 2443 ;; 2444 -* ) ac_must_keep_next=true ;; 2445 esac 2446 fi 2447 as_fn_append ac_configure_args " '$ac_arg'" 2448 ;; 2449 esac 2450 done 2451 done 2452 { ac_configure_args0=; unset ac_configure_args0;} 2453 { ac_configure_args1=; unset ac_configure_args1;} 2454 2455 # When interrupted or exit'd, cleanup temporary files, and complete 2456 # config.log. We remove comments because anyway the quotes in there 2457 # would cause problems or look ugly. 2458 # WARNING: Use '\'' to represent an apostrophe within the trap. 2459 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2460 trap 'exit_status=$? 2461 # Sanitize IFS. 2462 IFS=" "" $as_nl" 2463 # Save into config.log some information that might help in debugging. 2464 { 2465 echo 2466 2467 printf "%s\n" "## ---------------- ## 2468 ## Cache variables. ## 2469 ## ---------------- ##" 2470 echo 2471 # The following way of writing the cache mishandles newlines in values, 2472 ( 2473 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2474 eval ac_val=\$$ac_var 2475 case $ac_val in #( 2476 *${as_nl}*) 2477 case $ac_var in #( 2478 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2479 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2480 esac 2481 case $ac_var in #( 2482 _ | IFS | as_nl) ;; #( 2483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2484 *) { eval $ac_var=; unset $ac_var;} ;; 2485 esac ;; 2486 esac 2487 done 2488 (set) 2>&1 | 2489 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2490 *${as_nl}ac_space=\ *) 2491 sed -n \ 2492 "s/'\''/'\''\\\\'\'''\''/g; 2493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2494 ;; #( 2495 *) 2496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2497 ;; 2498 esac | 2499 sort 2500 ) 2501 echo 2502 2503 printf "%s\n" "## ----------------- ## 2504 ## Output variables. ## 2505 ## ----------------- ##" 2506 echo 2507 for ac_var in $ac_subst_vars 2508 do 2509 eval ac_val=\$$ac_var 2510 case $ac_val in 2511 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2512 esac 2513 printf "%s\n" "$ac_var='\''$ac_val'\''" 2514 done | sort 2515 echo 2516 2517 if test -n "$ac_subst_files"; then 2518 printf "%s\n" "## ------------------- ## 2519 ## File substitutions. ## 2520 ## ------------------- ##" 2521 echo 2522 for ac_var in $ac_subst_files 2523 do 2524 eval ac_val=\$$ac_var 2525 case $ac_val in 2526 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2527 esac 2528 printf "%s\n" "$ac_var='\''$ac_val'\''" 2529 done | sort 2530 echo 2531 fi 2532 2533 if test -s confdefs.h; then 2534 printf "%s\n" "## ----------- ## 2535 ## confdefs.h. ## 2536 ## ----------- ##" 2537 echo 2538 cat confdefs.h 2539 echo 2540 fi 2541 test "$ac_signal" != 0 && 2542 printf "%s\n" "$as_me: caught signal $ac_signal" 2543 printf "%s\n" "$as_me: exit $exit_status" 2544 } >&5 2545 rm -f core *.core core.conftest.* && 2546 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2547 exit $exit_status 2548 ' 0 2549 for ac_signal in 1 2 13 15; do 2550 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2551 done 2552 ac_signal=0 2553 2554 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2555 rm -f -r conftest* confdefs.h 2556 2557 printf "%s\n" "/* confdefs.h */" > confdefs.h 2558 2559 # Predefined preprocessor variables. 2560 2561 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2562 2563 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2564 2565 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2566 2567 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2568 2569 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2570 2571 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2572 2573 2574 # Let the site file select an alternate cache file if it wants to. 2575 # Prefer an explicitly selected file to automatically selected ones. 2576 if test -n "$CONFIG_SITE"; then 2577 ac_site_files="$CONFIG_SITE" 2578 elif test "x$prefix" != xNONE; then 2579 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2580 else 2581 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2582 fi 2583 2584 for ac_site_file in $ac_site_files 2585 do 2586 case $ac_site_file in #( 2587 */*) : 2588 ;; #( 2589 *) : 2590 ac_site_file=./$ac_site_file ;; 2591 esac 2592 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2594 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2595 sed 's/^/| /' "$ac_site_file" >&5 2596 . "$ac_site_file" \ 2597 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2598 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2599 as_fn_error $? "failed to load site script $ac_site_file 2600 See \`config.log' for more details" "$LINENO" 5; } 2601 fi 2602 done 2603 2604 if test -r "$cache_file"; then 2605 # Some versions of bash will fail to source /dev/null (special files 2606 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2607 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2609 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2610 case $cache_file in 2611 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2612 *) . "./$cache_file";; 2613 esac 2614 fi 2615 else 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2617 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2618 >$cache_file 2619 fi 2620 2621 # Test code for whether the C compiler supports C89 (global declarations) 2622 ac_c_conftest_c89_globals=' 2623 /* Does the compiler advertise C89 conformance? 2624 Do not test the value of __STDC__, because some compilers set it to 0 2625 while being otherwise adequately conformant. */ 2626 #if !defined __STDC__ 2627 # error "Compiler does not advertise C89 conformance" 2628 #endif 2629 2630 #include <stddef.h> 2631 #include <stdarg.h> 2632 struct stat; 2633 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2634 struct buf { int x; }; 2635 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2636 static char *e (p, i) 2637 char **p; 2638 int i; 2639 { 2640 return p[i]; 2641 } 2642 static char *f (char * (*g) (char **, int), char **p, ...) 2643 { 2644 char *s; 2645 va_list v; 2646 va_start (v,p); 2647 s = g (p, va_arg (v,int)); 2648 va_end (v); 2649 return s; 2650 } 2651 2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2653 function prototypes and stuff, but not \xHH hex character constants. 2654 These do not provoke an error unfortunately, instead are silently treated 2655 as an "x". The following induces an error, until -std is added to get 2656 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2657 array size at least. It is necessary to write \x00 == 0 to get something 2658 that is true only with -std. */ 2659 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2660 2661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2662 inside strings and character constants. */ 2663 #define FOO(x) '\''x'\'' 2664 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2665 2666 int test (int i, double x); 2667 struct s1 {int (*f) (int a);}; 2668 struct s2 {int (*f) (double a);}; 2669 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2670 int, int);' 2671 2672 # Test code for whether the C compiler supports C89 (body of main). 2673 ac_c_conftest_c89_main=' 2674 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2675 ' 2676 2677 # Test code for whether the C compiler supports C99 (global declarations) 2678 ac_c_conftest_c99_globals=' 2679 // Does the compiler advertise C99 conformance? 2680 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2681 # error "Compiler does not advertise C99 conformance" 2682 #endif 2683 2684 #include <stdbool.h> 2685 extern int puts (const char *); 2686 extern int printf (const char *, ...); 2687 extern int dprintf (int, const char *, ...); 2688 extern void *malloc (size_t); 2689 2690 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2691 // dprintf is used instead of fprintf to avoid needing to declare 2692 // FILE and stderr. 2693 #define debug(...) dprintf (2, __VA_ARGS__) 2694 #define showlist(...) puts (#__VA_ARGS__) 2695 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2696 static void 2697 test_varargs_macros (void) 2698 { 2699 int x = 1234; 2700 int y = 5678; 2701 debug ("Flag"); 2702 debug ("X = %d\n", x); 2703 showlist (The first, second, and third items.); 2704 report (x>y, "x is %d but y is %d", x, y); 2705 } 2706 2707 // Check long long types. 2708 #define BIG64 18446744073709551615ull 2709 #define BIG32 4294967295ul 2710 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2711 #if !BIG_OK 2712 #error "your preprocessor is broken" 2713 #endif 2714 #if BIG_OK 2715 #else 2716 #error "your preprocessor is broken" 2717 #endif 2718 static long long int bignum = -9223372036854775807LL; 2719 static unsigned long long int ubignum = BIG64; 2720 2721 struct incomplete_array 2722 { 2723 int datasize; 2724 double data[]; 2725 }; 2726 2727 struct named_init { 2728 int number; 2729 const wchar_t *name; 2730 double average; 2731 }; 2732 2733 typedef const char *ccp; 2734 2735 static inline int 2736 test_restrict (ccp restrict text) 2737 { 2738 // See if C++-style comments work. 2739 // Iterate through items via the restricted pointer. 2740 // Also check for declarations in for loops. 2741 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2742 continue; 2743 return 0; 2744 } 2745 2746 // Check varargs and va_copy. 2747 static bool 2748 test_varargs (const char *format, ...) 2749 { 2750 va_list args; 2751 va_start (args, format); 2752 va_list args_copy; 2753 va_copy (args_copy, args); 2754 2755 const char *str = ""; 2756 int number = 0; 2757 float fnumber = 0; 2758 2759 while (*format) 2760 { 2761 switch (*format++) 2762 { 2763 case '\''s'\'': // string 2764 str = va_arg (args_copy, const char *); 2765 break; 2766 case '\''d'\'': // int 2767 number = va_arg (args_copy, int); 2768 break; 2769 case '\''f'\'': // float 2770 fnumber = va_arg (args_copy, double); 2771 break; 2772 default: 2773 break; 2774 } 2775 } 2776 va_end (args_copy); 2777 va_end (args); 2778 2779 return *str && number && fnumber; 2780 } 2781 ' 2782 2783 # Test code for whether the C compiler supports C99 (body of main). 2784 ac_c_conftest_c99_main=' 2785 // Check bool. 2786 _Bool success = false; 2787 success |= (argc != 0); 2788 2789 // Check restrict. 2790 if (test_restrict ("String literal") == 0) 2791 success = true; 2792 char *restrict newvar = "Another string"; 2793 2794 // Check varargs. 2795 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2796 test_varargs_macros (); 2797 2798 // Check flexible array members. 2799 struct incomplete_array *ia = 2800 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2801 ia->datasize = 10; 2802 for (int i = 0; i < ia->datasize; ++i) 2803 ia->data[i] = i * 1.234; 2804 2805 // Check named initializers. 2806 struct named_init ni = { 2807 .number = 34, 2808 .name = L"Test wide string", 2809 .average = 543.34343, 2810 }; 2811 2812 ni.number = 58; 2813 2814 int dynamic_array[ni.number]; 2815 dynamic_array[0] = argv[0][0]; 2816 dynamic_array[ni.number - 1] = 543; 2817 2818 // work around unused variable warnings 2819 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2820 || dynamic_array[ni.number - 1] != 543); 2821 ' 2822 2823 # Test code for whether the C compiler supports C11 (global declarations) 2824 ac_c_conftest_c11_globals=' 2825 // Does the compiler advertise C11 conformance? 2826 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2827 # error "Compiler does not advertise C11 conformance" 2828 #endif 2829 2830 // Check _Alignas. 2831 char _Alignas (double) aligned_as_double; 2832 char _Alignas (0) no_special_alignment; 2833 extern char aligned_as_int; 2834 char _Alignas (0) _Alignas (int) aligned_as_int; 2835 2836 // Check _Alignof. 2837 enum 2838 { 2839 int_alignment = _Alignof (int), 2840 int_array_alignment = _Alignof (int[100]), 2841 char_alignment = _Alignof (char) 2842 }; 2843 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2844 2845 // Check _Noreturn. 2846 int _Noreturn does_not_return (void) { for (;;) continue; } 2847 2848 // Check _Static_assert. 2849 struct test_static_assert 2850 { 2851 int x; 2852 _Static_assert (sizeof (int) <= sizeof (long int), 2853 "_Static_assert does not work in struct"); 2854 long int y; 2855 }; 2856 2857 // Check UTF-8 literals. 2858 #define u8 syntax error! 2859 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2860 2861 // Check duplicate typedefs. 2862 typedef long *long_ptr; 2863 typedef long int *long_ptr; 2864 typedef long_ptr long_ptr; 2865 2866 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2867 struct anonymous 2868 { 2869 union { 2870 struct { int i; int j; }; 2871 struct { int k; long int l; } w; 2872 }; 2873 int m; 2874 } v1; 2875 ' 2876 2877 # Test code for whether the C compiler supports C11 (body of main). 2878 ac_c_conftest_c11_main=' 2879 _Static_assert ((offsetof (struct anonymous, i) 2880 == offsetof (struct anonymous, w.k)), 2881 "Anonymous union alignment botch"); 2882 v1.i = 2; 2883 v1.w.k = 5; 2884 ok |= v1.i != 5; 2885 ' 2886 2887 # Test code for whether the C compiler supports C11 (complete). 2888 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2889 ${ac_c_conftest_c99_globals} 2890 ${ac_c_conftest_c11_globals} 2891 2892 int 2893 main (int argc, char **argv) 2894 { 2895 int ok = 0; 2896 ${ac_c_conftest_c89_main} 2897 ${ac_c_conftest_c99_main} 2898 ${ac_c_conftest_c11_main} 2899 return ok; 2900 } 2901 " 2902 2903 # Test code for whether the C compiler supports C99 (complete). 2904 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2905 ${ac_c_conftest_c99_globals} 2906 2907 int 2908 main (int argc, char **argv) 2909 { 2910 int ok = 0; 2911 ${ac_c_conftest_c89_main} 2912 ${ac_c_conftest_c99_main} 2913 return ok; 2914 } 2915 " 2916 2917 # Test code for whether the C compiler supports C89 (complete). 2918 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2919 2920 int 2921 main (int argc, char **argv) 2922 { 2923 int ok = 0; 2924 ${ac_c_conftest_c89_main} 2925 return ok; 2926 } 2927 " 2928 2929 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2930 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2931 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2932 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2933 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2934 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2935 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2936 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2937 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2938 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 2939 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2940 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2941 2942 # Auxiliary files required by this configure script. 2943 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2944 2945 # Locations in which to look for auxiliary files. 2946 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2947 2948 # Search for a directory containing all of the required auxiliary files, 2949 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2950 # If we don't find one directory that contains all the files we need, 2951 # we report the set of missing files from the *first* directory in 2952 # $ac_aux_dir_candidates and give up. 2953 ac_missing_aux_files="" 2954 ac_first_candidate=: 2955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957 as_found=false 2958 for as_dir in $ac_aux_dir_candidates 2959 do 2960 IFS=$as_save_IFS 2961 case $as_dir in #((( 2962 '') as_dir=./ ;; 2963 */) ;; 2964 *) as_dir=$as_dir/ ;; 2965 esac 2966 as_found=: 2967 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2969 ac_aux_dir_found=yes 2970 ac_install_sh= 2971 for ac_aux in $ac_aux_files 2972 do 2973 # As a special case, if "install-sh" is required, that requirement 2974 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2975 # and $ac_install_sh is set appropriately for whichever one is found. 2976 if test x"$ac_aux" = x"install-sh" 2977 then 2978 if test -f "${as_dir}install-sh"; then 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2980 ac_install_sh="${as_dir}install-sh -c" 2981 elif test -f "${as_dir}install.sh"; then 2982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2983 ac_install_sh="${as_dir}install.sh -c" 2984 elif test -f "${as_dir}shtool"; then 2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2986 ac_install_sh="${as_dir}shtool install -c" 2987 else 2988 ac_aux_dir_found=no 2989 if $ac_first_candidate; then 2990 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2991 else 2992 break 2993 fi 2994 fi 2995 else 2996 if test -f "${as_dir}${ac_aux}"; then 2997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2998 else 2999 ac_aux_dir_found=no 3000 if $ac_first_candidate; then 3001 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3002 else 3003 break 3004 fi 3005 fi 3006 fi 3007 done 3008 if test "$ac_aux_dir_found" = yes; then 3009 ac_aux_dir="$as_dir" 3010 break 3011 fi 3012 ac_first_candidate=false 3013 3014 as_found=false 3015 done 3016 IFS=$as_save_IFS 3017 if $as_found 3018 then : 3019 3020 else $as_nop 3021 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3022 fi 3023 3024 3025 # These three variables are undocumented and unsupported, 3026 # and are intended to be withdrawn in a future Autoconf release. 3027 # They can cause serious problems if a builder's source tree is in a directory 3028 # whose full name contains unusual characters. 3029 if test -f "${ac_aux_dir}config.guess"; then 3030 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3031 fi 3032 if test -f "${ac_aux_dir}config.sub"; then 3033 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3034 fi 3035 if test -f "$ac_aux_dir/configure"; then 3036 ac_configure="$SHELL ${ac_aux_dir}configure" 3037 fi 3038 3039 # Check that the precious variables saved in the cache have kept the same 3040 # value. 3041 ac_cache_corrupted=false 3042 for ac_var in $ac_precious_vars; do 3043 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3044 eval ac_new_set=\$ac_env_${ac_var}_set 3045 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3046 eval ac_new_val=\$ac_env_${ac_var}_value 3047 case $ac_old_set,$ac_new_set in 3048 set,) 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3050 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3051 ac_cache_corrupted=: ;; 3052 ,set) 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3054 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3055 ac_cache_corrupted=: ;; 3056 ,);; 3057 *) 3058 if test "x$ac_old_val" != "x$ac_new_val"; then 3059 # differences in whitespace do not lead to failure. 3060 ac_old_val_w=`echo x $ac_old_val` 3061 ac_new_val_w=`echo x $ac_new_val` 3062 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3064 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3065 ac_cache_corrupted=: 3066 else 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3068 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3069 eval $ac_var=\$ac_old_val 3070 fi 3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3072 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3074 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3075 fi;; 3076 esac 3077 # Pass precious variables to config.status. 3078 if test "$ac_new_set" = set; then 3079 case $ac_new_val in 3080 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3081 *) ac_arg=$ac_var=$ac_new_val ;; 3082 esac 3083 case " $ac_configure_args " in 3084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3085 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3086 esac 3087 fi 3088 done 3089 if $ac_cache_corrupted; then 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3093 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3094 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3095 and start over" "$LINENO" 5 3096 fi 3097 ## -------------------- ## 3098 ## Main body of script. ## 3099 ## -------------------- ## 3100 3101 ac_ext=c 3102 ac_cpp='$CPP $CPPFLAGS' 3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3106 3107 3108 3109 ac_config_headers="$ac_config_headers include/config.h" 3110 3111 3112 3113 am__api_version='1.16' 3114 3115 3116 3117 # Find a good install program. We prefer a C program (faster), 3118 # so one script is as good as another. But avoid the broken or 3119 # incompatible versions: 3120 # SysV /etc/install, /usr/sbin/install 3121 # SunOS /usr/etc/install 3122 # IRIX /sbin/install 3123 # AIX /bin/install 3124 # AmigaOS /C/install, which installs bootblocks on floppy discs 3125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3128 # OS/2's system install, which has a completely different semantic 3129 # ./install, which can be erroneously created by make from ./install.sh. 3130 # Reject install programs that cannot install multiple files. 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3132 printf %s "checking for a BSD-compatible install... " >&6; } 3133 if test -z "$INSTALL"; then 3134 if test ${ac_cv_path_install+y} 3135 then : 3136 printf %s "(cached) " >&6 3137 else $as_nop 3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139 for as_dir in $PATH 3140 do 3141 IFS=$as_save_IFS 3142 case $as_dir in #((( 3143 '') as_dir=./ ;; 3144 */) ;; 3145 *) as_dir=$as_dir/ ;; 3146 esac 3147 # Account for fact that we put trailing slashes in our PATH walk. 3148 case $as_dir in #(( 3149 ./ | /[cC]/* | \ 3150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3151 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3152 /usr/ucb/* ) ;; 3153 *) 3154 # OSF1 and SCO ODT 3.0 have their own names for install. 3155 # Don't use installbsd from OSF since it installs stuff as root 3156 # by default. 3157 for ac_prog in ginstall scoinst install; do 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3160 if test $ac_prog = install && 3161 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3162 # AIX install. It has an incompatible calling convention. 3163 : 3164 elif test $ac_prog = install && 3165 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3166 # program-specific install script used by HP pwplus--don't use. 3167 : 3168 else 3169 rm -rf conftest.one conftest.two conftest.dir 3170 echo one > conftest.one 3171 echo two > conftest.two 3172 mkdir conftest.dir 3173 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3174 test -s conftest.one && test -s conftest.two && 3175 test -s conftest.dir/conftest.one && 3176 test -s conftest.dir/conftest.two 3177 then 3178 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3179 break 3 3180 fi 3181 fi 3182 fi 3183 done 3184 done 3185 ;; 3186 esac 3187 3188 done 3189 IFS=$as_save_IFS 3190 3191 rm -rf conftest.one conftest.two conftest.dir 3192 3193 fi 3194 if test ${ac_cv_path_install+y}; then 3195 INSTALL=$ac_cv_path_install 3196 else 3197 # As a last resort, use the slow shell script. Don't cache a 3198 # value for INSTALL within a source directory, because that will 3199 # break other packages using the cache if that directory is 3200 # removed, or if the value is a relative name. 3201 INSTALL=$ac_install_sh 3202 fi 3203 fi 3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3205 printf "%s\n" "$INSTALL" >&6; } 3206 3207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3208 # It thinks the first close brace ends the variable substitution. 3209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3210 3211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3212 3213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3214 3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3216 printf %s "checking whether build environment is sane... " >&6; } 3217 # Reject unsafe characters in $srcdir or the absolute working directory 3218 # name. Accept space and tab only in the latter. 3219 am_lf=' 3220 ' 3221 case `pwd` in 3222 *[\\\"\#\$\&\'\`$am_lf]*) 3223 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3224 esac 3225 case $srcdir in 3226 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3227 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3228 esac 3229 3230 # Do 'set' in a subshell so we don't clobber the current shell's 3231 # arguments. Must try -L first in case configure is actually a 3232 # symlink; some systems play weird games with the mod time of symlinks 3233 # (eg FreeBSD returns the mod time of the symlink's containing 3234 # directory). 3235 if ( 3236 am_has_slept=no 3237 for am_try in 1 2; do 3238 echo "timestamp, slept: $am_has_slept" > conftest.file 3239 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3240 if test "$*" = "X"; then 3241 # -L didn't work. 3242 set X `ls -t "$srcdir/configure" conftest.file` 3243 fi 3244 if test "$*" != "X $srcdir/configure conftest.file" \ 3245 && test "$*" != "X conftest.file $srcdir/configure"; then 3246 3247 # If neither matched, then we have a broken ls. This can happen 3248 # if, for instance, CONFIG_SHELL is bash and it inherits a 3249 # broken ls alias from the environment. This has actually 3250 # happened. Such a system could not be considered "sane". 3251 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3252 alias in your environment" "$LINENO" 5 3253 fi 3254 if test "$2" = conftest.file || test $am_try -eq 2; then 3255 break 3256 fi 3257 # Just in case. 3258 sleep 1 3259 am_has_slept=yes 3260 done 3261 test "$2" = conftest.file 3262 ) 3263 then 3264 # Ok. 3265 : 3266 else 3267 as_fn_error $? "newly created file is older than distributed files! 3268 Check your system clock" "$LINENO" 5 3269 fi 3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3271 printf "%s\n" "yes" >&6; } 3272 # If we didn't sleep, we still need to ensure time stamps of config.status and 3273 # generated files are strictly newer. 3274 am_sleep_pid= 3275 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3276 ( sleep 1 ) & 3277 am_sleep_pid=$! 3278 fi 3279 3280 rm -f conftest.file 3281 3282 test "$program_prefix" != NONE && 3283 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3284 # Use a double $ so make ignores it. 3285 test "$program_suffix" != NONE && 3286 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3287 # Double any \ or $. 3288 # By default was `s,x,x', remove it if useless. 3289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3290 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3291 3292 3293 # Expand $ac_aux_dir to an absolute path. 3294 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3295 3296 3297 if test x"${MISSING+set}" != xset; then 3298 MISSING="\${SHELL} '$am_aux_dir/missing'" 3299 fi 3300 # Use eval to expand $SHELL 3301 if eval "$MISSING --is-lightweight"; then 3302 am_missing_run="$MISSING " 3303 else 3304 am_missing_run= 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3306 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3307 fi 3308 3309 if test x"${install_sh+set}" != xset; then 3310 case $am_aux_dir in 3311 *\ * | *\ *) 3312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3313 *) 3314 install_sh="\${SHELL} $am_aux_dir/install-sh" 3315 esac 3316 fi 3317 3318 # Installed binaries are usually stripped using 'strip' when the user 3319 # run "make install-strip". However 'strip' might not be the right 3320 # tool to use in cross-compilation environments, therefore Automake 3321 # will honor the 'STRIP' environment variable to overrule this program. 3322 if test "$cross_compiling" != no; then 3323 if test -n "$ac_tool_prefix"; then 3324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3325 set dummy ${ac_tool_prefix}strip; ac_word=$2 3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327 printf %s "checking for $ac_word... " >&6; } 3328 if test ${ac_cv_prog_STRIP+y} 3329 then : 3330 printf %s "(cached) " >&6 3331 else $as_nop 3332 if test -n "$STRIP"; then 3333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3334 else 3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3336 for as_dir in $PATH 3337 do 3338 IFS=$as_save_IFS 3339 case $as_dir in #((( 3340 '') as_dir=./ ;; 3341 */) ;; 3342 *) as_dir=$as_dir/ ;; 3343 esac 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350 done 3351 done 3352 IFS=$as_save_IFS 3353 3354 fi 3355 fi 3356 STRIP=$ac_cv_prog_STRIP 3357 if test -n "$STRIP"; then 3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3359 printf "%s\n" "$STRIP" >&6; } 3360 else 3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362 printf "%s\n" "no" >&6; } 3363 fi 3364 3365 3366 fi 3367 if test -z "$ac_cv_prog_STRIP"; then 3368 ac_ct_STRIP=$STRIP 3369 # Extract the first word of "strip", so it can be a program name with args. 3370 set dummy strip; ac_word=$2 3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3372 printf %s "checking for $ac_word... " >&6; } 3373 if test ${ac_cv_prog_ac_ct_STRIP+y} 3374 then : 3375 printf %s "(cached) " >&6 3376 else $as_nop 3377 if test -n "$ac_ct_STRIP"; then 3378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3379 else 3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3381 for as_dir in $PATH 3382 do 3383 IFS=$as_save_IFS 3384 case $as_dir in #((( 3385 '') as_dir=./ ;; 3386 */) ;; 3387 *) as_dir=$as_dir/ ;; 3388 esac 3389 for ac_exec_ext in '' $ac_executable_extensions; do 3390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3391 ac_cv_prog_ac_ct_STRIP="strip" 3392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3393 break 2 3394 fi 3395 done 3396 done 3397 IFS=$as_save_IFS 3398 3399 fi 3400 fi 3401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3402 if test -n "$ac_ct_STRIP"; then 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3404 printf "%s\n" "$ac_ct_STRIP" >&6; } 3405 else 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407 printf "%s\n" "no" >&6; } 3408 fi 3409 3410 if test "x$ac_ct_STRIP" = x; then 3411 STRIP=":" 3412 else 3413 case $cross_compiling:$ac_tool_warned in 3414 yes:) 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3416 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3417 ac_tool_warned=yes ;; 3418 esac 3419 STRIP=$ac_ct_STRIP 3420 fi 3421 else 3422 STRIP="$ac_cv_prog_STRIP" 3423 fi 3424 3425 fi 3426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3427 3428 3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3430 printf %s "checking for a race-free mkdir -p... " >&6; } 3431 if test -z "$MKDIR_P"; then 3432 if test ${ac_cv_path_mkdir+y} 3433 then : 3434 printf %s "(cached) " >&6 3435 else $as_nop 3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3438 do 3439 IFS=$as_save_IFS 3440 case $as_dir in #((( 3441 '') as_dir=./ ;; 3442 */) ;; 3443 *) as_dir=$as_dir/ ;; 3444 esac 3445 for ac_prog in mkdir gmkdir; do 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3448 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3449 'mkdir ('*'coreutils) '* | \ 3450 'BusyBox '* | \ 3451 'mkdir (fileutils) '4.1*) 3452 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3453 break 3;; 3454 esac 3455 done 3456 done 3457 done 3458 IFS=$as_save_IFS 3459 3460 fi 3461 3462 test -d ./--version && rmdir ./--version 3463 if test ${ac_cv_path_mkdir+y}; then 3464 MKDIR_P="$ac_cv_path_mkdir -p" 3465 else 3466 # As a last resort, use the slow shell script. Don't cache a 3467 # value for MKDIR_P within a source directory, because that will 3468 # break other packages using the cache if that directory is 3469 # removed, or if the value is a relative name. 3470 MKDIR_P="$ac_install_sh -d" 3471 fi 3472 fi 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3474 printf "%s\n" "$MKDIR_P" >&6; } 3475 3476 for ac_prog in gawk mawk nawk awk 3477 do 3478 # Extract the first word of "$ac_prog", so it can be a program name with args. 3479 set dummy $ac_prog; ac_word=$2 3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481 printf %s "checking for $ac_word... " >&6; } 3482 if test ${ac_cv_prog_AWK+y} 3483 then : 3484 printf %s "(cached) " >&6 3485 else $as_nop 3486 if test -n "$AWK"; then 3487 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3488 else 3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490 for as_dir in $PATH 3491 do 3492 IFS=$as_save_IFS 3493 case $as_dir in #((( 3494 '') as_dir=./ ;; 3495 */) ;; 3496 *) as_dir=$as_dir/ ;; 3497 esac 3498 for ac_exec_ext in '' $ac_executable_extensions; do 3499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3500 ac_cv_prog_AWK="$ac_prog" 3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3502 break 2 3503 fi 3504 done 3505 done 3506 IFS=$as_save_IFS 3507 3508 fi 3509 fi 3510 AWK=$ac_cv_prog_AWK 3511 if test -n "$AWK"; then 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3513 printf "%s\n" "$AWK" >&6; } 3514 else 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3516 printf "%s\n" "no" >&6; } 3517 fi 3518 3519 3520 test -n "$AWK" && break 3521 done 3522 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3524 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3525 set x ${MAKE-make} 3526 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3527 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3528 then : 3529 printf %s "(cached) " >&6 3530 else $as_nop 3531 cat >conftest.make <<\_ACEOF 3532 SHELL = /bin/sh 3533 all: 3534 @echo '@@@%%%=$(MAKE)=@@@%%%' 3535 _ACEOF 3536 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3537 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3538 *@@@%%%=?*=@@@%%%*) 3539 eval ac_cv_prog_make_${ac_make}_set=yes;; 3540 *) 3541 eval ac_cv_prog_make_${ac_make}_set=no;; 3542 esac 3543 rm -f conftest.make 3544 fi 3545 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3547 printf "%s\n" "yes" >&6; } 3548 SET_MAKE= 3549 else 3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3551 printf "%s\n" "no" >&6; } 3552 SET_MAKE="MAKE=${MAKE-make}" 3553 fi 3554 3555 rm -rf .tst 2>/dev/null 3556 mkdir .tst 2>/dev/null 3557 if test -d .tst; then 3558 am__leading_dot=. 3559 else 3560 am__leading_dot=_ 3561 fi 3562 rmdir .tst 2>/dev/null 3563 3564 # Check whether --enable-silent-rules was given. 3565 if test ${enable_silent_rules+y} 3566 then : 3567 enableval=$enable_silent_rules; 3568 fi 3569 3570 case $enable_silent_rules in # ((( 3571 yes) AM_DEFAULT_VERBOSITY=0;; 3572 no) AM_DEFAULT_VERBOSITY=1;; 3573 *) AM_DEFAULT_VERBOSITY=1;; 3574 esac 3575 am_make=${MAKE-make} 3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3577 printf %s "checking whether $am_make supports nested variables... " >&6; } 3578 if test ${am_cv_make_support_nested_variables+y} 3579 then : 3580 printf %s "(cached) " >&6 3581 else $as_nop 3582 if printf "%s\n" 'TRUE=$(BAR$(V)) 3583 BAR0=false 3584 BAR1=true 3585 V=1 3586 am__doit: 3587 @$(TRUE) 3588 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3589 am_cv_make_support_nested_variables=yes 3590 else 3591 am_cv_make_support_nested_variables=no 3592 fi 3593 fi 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3595 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3596 if test $am_cv_make_support_nested_variables = yes; then 3597 AM_V='$(V)' 3598 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3599 else 3600 AM_V=$AM_DEFAULT_VERBOSITY 3601 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3602 fi 3603 AM_BACKSLASH='\' 3604 3605 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3606 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3607 # is not polluted with repeated "-I." 3608 am__isrc=' -I$(srcdir)' 3609 # test to see if srcdir already configured 3610 if test -f $srcdir/config.status; then 3611 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3612 fi 3613 fi 3614 3615 # test whether we have cygpath 3616 if test -z "$CYGPATH_W"; then 3617 if (cygpath --version) >/dev/null 2>/dev/null; then 3618 CYGPATH_W='cygpath -w' 3619 else 3620 CYGPATH_W=echo 3621 fi 3622 fi 3623 3624 3625 # Define the identity of the package. 3626 PACKAGE='heimdal' 3627 VERSION='7.8.0' 3628 3629 3630 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3631 3632 3633 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3634 3635 # Some tools Automake needs. 3636 3637 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3638 3639 3640 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3641 3642 3643 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3644 3645 3646 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3647 3648 3649 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3650 3651 # For better backward compatibility. To be removed once Automake 1.9.x 3652 # dies out for good. For more background, see: 3653 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3654 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3655 mkdir_p='$(MKDIR_P)' 3656 3657 # We need awk for the "check" target (and possibly the TAP driver). The 3658 # system "awk" is bad on some platforms. 3659 # Always define AMTAR for backward compatibility. Yes, it's still used 3660 # in the wild :-( We should find a proper way to deprecate it ... 3661 AMTAR='$${TAR-tar}' 3662 3663 3664 # We'll loop over all known methods to create a tar archive until one works. 3665 _am_tools='gnutar pax cpio none' 3666 3667 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3668 3669 3670 3671 3672 3673 # Variables for tags utilities; see am/tags.am 3674 if test -z "$CTAGS"; then 3675 CTAGS=ctags 3676 fi 3677 3678 if test -z "$ETAGS"; then 3679 ETAGS=etags 3680 fi 3681 3682 if test -z "$CSCOPE"; then 3683 CSCOPE=cscope 3684 fi 3685 3686 3687 3688 # POSIX will say in a future version that running "rm -f" with no argument 3689 # is OK; and we want to be able to make that assumption in our Makefile 3690 # recipes. So use an aggressive probe to check that the usage we want is 3691 # actually supported "in the wild" to an acceptable degree. 3692 # See automake bug#10828. 3693 # To make any issue more visible, cause the running configure to be aborted 3694 # by default if the 'rm' program in use doesn't match our expectations; the 3695 # user can still override this though. 3696 if rm -f && rm -fr && rm -rf; then : OK; else 3697 cat >&2 <<'END' 3698 Oops! 3699 3700 Your 'rm' program seems unable to run without file operands specified 3701 on the command line, even when the '-f' option is present. This is contrary 3702 to the behaviour of most rm programs out there, and not conforming with 3703 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3704 3705 Please tell bug-automake@gnu.org about your system, including the value 3706 of your $PATH and any error possibly output before this message. This 3707 can help us improve future automake versions. 3708 3709 END 3710 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3711 echo 'Configuration will proceed anyway, since you have set the' >&2 3712 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3713 echo >&2 3714 else 3715 cat >&2 <<'END' 3716 Aborting the configuration process, to ensure you take notice of the issue. 3717 3718 You can download and install GNU coreutils to get an 'rm' implementation 3719 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3720 3721 If you want to complete the configuration process using your problematic 3722 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3723 to "yes", and re-run configure. 3724 3725 END 3726 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3727 fi 3728 fi 3729 3730 3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3732 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3733 # Check whether --enable-maintainer-mode was given. 3734 if test ${enable_maintainer_mode+y} 3735 then : 3736 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3737 else $as_nop 3738 USE_MAINTAINER_MODE=no 3739 fi 3740 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3742 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3743 if test $USE_MAINTAINER_MODE = yes; then 3744 MAINTAINER_MODE_TRUE= 3745 MAINTAINER_MODE_FALSE='#' 3746 else 3747 MAINTAINER_MODE_TRUE='#' 3748 MAINTAINER_MODE_FALSE= 3749 fi 3750 3751 MAINT=$MAINTAINER_MODE_TRUE 3752 3753 3754 3755 3756 case `pwd` in 3757 *\ * | *\ *) 3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3759 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3760 esac 3761 3762 3763 3764 macro_version='2.4.7' 3765 macro_revision='2.4.7' 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 ltmain=$ac_aux_dir/ltmain.sh 3781 3782 3783 3784 # Make sure we can run config.sub. 3785 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3786 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3787 3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3789 printf %s "checking build system type... " >&6; } 3790 if test ${ac_cv_build+y} 3791 then : 3792 printf %s "(cached) " >&6 3793 else $as_nop 3794 ac_build_alias=$build_alias 3795 test "x$ac_build_alias" = x && 3796 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3797 test "x$ac_build_alias" = x && 3798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3799 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3800 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3801 3802 fi 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3804 printf "%s\n" "$ac_cv_build" >&6; } 3805 case $ac_cv_build in 3806 *-*-*) ;; 3807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3808 esac 3809 build=$ac_cv_build 3810 ac_save_IFS=$IFS; IFS='-' 3811 set x $ac_cv_build 3812 shift 3813 build_cpu=$1 3814 build_vendor=$2 3815 shift; shift 3816 # Remember, the first character of IFS is used to create $*, 3817 # except with old shells: 3818 build_os=$* 3819 IFS=$ac_save_IFS 3820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3821 3822 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3824 printf %s "checking host system type... " >&6; } 3825 if test ${ac_cv_host+y} 3826 then : 3827 printf %s "(cached) " >&6 3828 else $as_nop 3829 if test "x$host_alias" = x; then 3830 ac_cv_host=$ac_cv_build 3831 else 3832 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3834 fi 3835 3836 fi 3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3838 printf "%s\n" "$ac_cv_host" >&6; } 3839 case $ac_cv_host in 3840 *-*-*) ;; 3841 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3842 esac 3843 host=$ac_cv_host 3844 ac_save_IFS=$IFS; IFS='-' 3845 set x $ac_cv_host 3846 shift 3847 host_cpu=$1 3848 host_vendor=$2 3849 shift; shift 3850 # Remember, the first character of IFS is used to create $*, 3851 # except with old shells: 3852 host_os=$* 3853 IFS=$ac_save_IFS 3854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3855 3856 3857 # Backslashify metacharacters that are still active within 3858 # double-quoted strings. 3859 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3860 3861 # Same as above, but do not quote variable references. 3862 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3863 3864 # Sed substitution to delay expansion of an escaped shell variable in a 3865 # double_quote_subst'ed string. 3866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3867 3868 # Sed substitution to delay expansion of an escaped single quote. 3869 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3870 3871 # Sed substitution to avoid accidental globbing in evaled expressions 3872 no_glob_subst='s/\*/\\\*/g' 3873 3874 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3877 3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3879 printf %s "checking how to print strings... " >&6; } 3880 # Test print first, because it will be a builtin if present. 3881 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3882 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3883 ECHO='print -r --' 3884 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3885 ECHO='printf %s\n' 3886 else 3887 # Use this function as a fallback that always works. 3888 func_fallback_echo () 3889 { 3890 eval 'cat <<_LTECHO_EOF 3891 $1 3892 _LTECHO_EOF' 3893 } 3894 ECHO='func_fallback_echo' 3895 fi 3896 3897 # func_echo_all arg... 3898 # Invoke $ECHO with all args, space-separated. 3899 func_echo_all () 3900 { 3901 $ECHO "" 3902 } 3903 3904 case $ECHO in 3905 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3906 printf "%s\n" "printf" >&6; } ;; 3907 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3908 printf "%s\n" "print -r" >&6; } ;; 3909 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3910 printf "%s\n" "cat" >&6; } ;; 3911 esac 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 DEPDIR="${am__leading_dot}deps" 3936 3937 ac_config_commands="$ac_config_commands depfiles" 3938 3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3940 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3941 cat > confinc.mk << 'END' 3942 am__doit: 3943 @echo this is the am__doit target >confinc.out 3944 .PHONY: am__doit 3945 END 3946 am__include="#" 3947 am__quote= 3948 # BSD make does it like this. 3949 echo '.include "confinc.mk" # ignored' > confmf.BSD 3950 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3951 echo 'include confinc.mk # ignored' > confmf.GNU 3952 _am_result=no 3953 for s in GNU BSD; do 3954 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3955 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3956 ac_status=$? 3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3958 (exit $ac_status); } 3959 case $?:`cat confinc.out 2>/dev/null` in #( 3960 '0:this is the am__doit target') : 3961 case $s in #( 3962 BSD) : 3963 am__include='.include' am__quote='"' ;; #( 3964 *) : 3965 am__include='include' am__quote='' ;; 3966 esac ;; #( 3967 *) : 3968 ;; 3969 esac 3970 if test "$am__include" != "#"; then 3971 _am_result="yes ($s style)" 3972 break 3973 fi 3974 done 3975 rm -f confinc.* confmf.* 3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3977 printf "%s\n" "${_am_result}" >&6; } 3978 3979 # Check whether --enable-dependency-tracking was given. 3980 if test ${enable_dependency_tracking+y} 3981 then : 3982 enableval=$enable_dependency_tracking; 3983 fi 3984 3985 if test "x$enable_dependency_tracking" != xno; then 3986 am_depcomp="$ac_aux_dir/depcomp" 3987 AMDEPBACKSLASH='\' 3988 am__nodep='_no' 3989 fi 3990 if test "x$enable_dependency_tracking" != xno; then 3991 AMDEP_TRUE= 3992 AMDEP_FALSE='#' 3993 else 3994 AMDEP_TRUE='#' 3995 AMDEP_FALSE= 3996 fi 3997 3998 3999 ac_ext=c 4000 ac_cpp='$CPP $CPPFLAGS' 4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4004 if test -n "$ac_tool_prefix"; then 4005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4006 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008 printf %s "checking for $ac_word... " >&6; } 4009 if test ${ac_cv_prog_CC+y} 4010 then : 4011 printf %s "(cached) " >&6 4012 else $as_nop 4013 if test -n "$CC"; then 4014 ac_cv_prog_CC="$CC" # Let the user override the test. 4015 else 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017 for as_dir in $PATH 4018 do 4019 IFS=$as_save_IFS 4020 case $as_dir in #((( 4021 '') as_dir=./ ;; 4022 */) ;; 4023 *) as_dir=$as_dir/ ;; 4024 esac 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4027 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4029 break 2 4030 fi 4031 done 4032 done 4033 IFS=$as_save_IFS 4034 4035 fi 4036 fi 4037 CC=$ac_cv_prog_CC 4038 if test -n "$CC"; then 4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4040 printf "%s\n" "$CC" >&6; } 4041 else 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4043 printf "%s\n" "no" >&6; } 4044 fi 4045 4046 4047 fi 4048 if test -z "$ac_cv_prog_CC"; then 4049 ac_ct_CC=$CC 4050 # Extract the first word of "gcc", so it can be a program name with args. 4051 set dummy gcc; ac_word=$2 4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4053 printf %s "checking for $ac_word... " >&6; } 4054 if test ${ac_cv_prog_ac_ct_CC+y} 4055 then : 4056 printf %s "(cached) " >&6 4057 else $as_nop 4058 if test -n "$ac_ct_CC"; then 4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4060 else 4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062 for as_dir in $PATH 4063 do 4064 IFS=$as_save_IFS 4065 case $as_dir in #((( 4066 '') as_dir=./ ;; 4067 */) ;; 4068 *) as_dir=$as_dir/ ;; 4069 esac 4070 for ac_exec_ext in '' $ac_executable_extensions; do 4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4072 ac_cv_prog_ac_ct_CC="gcc" 4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4074 break 2 4075 fi 4076 done 4077 done 4078 IFS=$as_save_IFS 4079 4080 fi 4081 fi 4082 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4083 if test -n "$ac_ct_CC"; then 4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4085 printf "%s\n" "$ac_ct_CC" >&6; } 4086 else 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4088 printf "%s\n" "no" >&6; } 4089 fi 4090 4091 if test "x$ac_ct_CC" = x; then 4092 CC="" 4093 else 4094 case $cross_compiling:$ac_tool_warned in 4095 yes:) 4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4098 ac_tool_warned=yes ;; 4099 esac 4100 CC=$ac_ct_CC 4101 fi 4102 else 4103 CC="$ac_cv_prog_CC" 4104 fi 4105 4106 if test -z "$CC"; then 4107 if test -n "$ac_tool_prefix"; then 4108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4109 set dummy ${ac_tool_prefix}cc; ac_word=$2 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4111 printf %s "checking for $ac_word... " >&6; } 4112 if test ${ac_cv_prog_CC+y} 4113 then : 4114 printf %s "(cached) " >&6 4115 else $as_nop 4116 if test -n "$CC"; then 4117 ac_cv_prog_CC="$CC" # Let the user override the test. 4118 else 4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120 for as_dir in $PATH 4121 do 4122 IFS=$as_save_IFS 4123 case $as_dir in #((( 4124 '') as_dir=./ ;; 4125 */) ;; 4126 *) as_dir=$as_dir/ ;; 4127 esac 4128 for ac_exec_ext in '' $ac_executable_extensions; do 4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4130 ac_cv_prog_CC="${ac_tool_prefix}cc" 4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4132 break 2 4133 fi 4134 done 4135 done 4136 IFS=$as_save_IFS 4137 4138 fi 4139 fi 4140 CC=$ac_cv_prog_CC 4141 if test -n "$CC"; then 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4143 printf "%s\n" "$CC" >&6; } 4144 else 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146 printf "%s\n" "no" >&6; } 4147 fi 4148 4149 4150 fi 4151 fi 4152 if test -z "$CC"; then 4153 # Extract the first word of "cc", so it can be a program name with args. 4154 set dummy cc; ac_word=$2 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4156 printf %s "checking for $ac_word... " >&6; } 4157 if test ${ac_cv_prog_CC+y} 4158 then : 4159 printf %s "(cached) " >&6 4160 else $as_nop 4161 if test -n "$CC"; then 4162 ac_cv_prog_CC="$CC" # Let the user override the test. 4163 else 4164 ac_prog_rejected=no 4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166 for as_dir in $PATH 4167 do 4168 IFS=$as_save_IFS 4169 case $as_dir in #((( 4170 '') as_dir=./ ;; 4171 */) ;; 4172 *) as_dir=$as_dir/ ;; 4173 esac 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4176 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4177 ac_prog_rejected=yes 4178 continue 4179 fi 4180 ac_cv_prog_CC="cc" 4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4182 break 2 4183 fi 4184 done 4185 done 4186 IFS=$as_save_IFS 4187 4188 if test $ac_prog_rejected = yes; then 4189 # We found a bogon in the path, so make sure we never use it. 4190 set dummy $ac_cv_prog_CC 4191 shift 4192 if test $# != 0; then 4193 # We chose a different compiler from the bogus one. 4194 # However, it has the same basename, so the bogon will be chosen 4195 # first if we set CC to just the basename; use the full file name. 4196 shift 4197 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4198 fi 4199 fi 4200 fi 4201 fi 4202 CC=$ac_cv_prog_CC 4203 if test -n "$CC"; then 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4205 printf "%s\n" "$CC" >&6; } 4206 else 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208 printf "%s\n" "no" >&6; } 4209 fi 4210 4211 4212 fi 4213 if test -z "$CC"; then 4214 if test -n "$ac_tool_prefix"; then 4215 for ac_prog in cl.exe 4216 do 4217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4220 printf %s "checking for $ac_word... " >&6; } 4221 if test ${ac_cv_prog_CC+y} 4222 then : 4223 printf %s "(cached) " >&6 4224 else $as_nop 4225 if test -n "$CC"; then 4226 ac_cv_prog_CC="$CC" # Let the user override the test. 4227 else 4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229 for as_dir in $PATH 4230 do 4231 IFS=$as_save_IFS 4232 case $as_dir in #((( 4233 '') as_dir=./ ;; 4234 */) ;; 4235 *) as_dir=$as_dir/ ;; 4236 esac 4237 for ac_exec_ext in '' $ac_executable_extensions; do 4238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4241 break 2 4242 fi 4243 done 4244 done 4245 IFS=$as_save_IFS 4246 4247 fi 4248 fi 4249 CC=$ac_cv_prog_CC 4250 if test -n "$CC"; then 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4252 printf "%s\n" "$CC" >&6; } 4253 else 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4255 printf "%s\n" "no" >&6; } 4256 fi 4257 4258 4259 test -n "$CC" && break 4260 done 4261 fi 4262 if test -z "$CC"; then 4263 ac_ct_CC=$CC 4264 for ac_prog in cl.exe 4265 do 4266 # Extract the first word of "$ac_prog", so it can be a program name with args. 4267 set dummy $ac_prog; ac_word=$2 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4269 printf %s "checking for $ac_word... " >&6; } 4270 if test ${ac_cv_prog_ac_ct_CC+y} 4271 then : 4272 printf %s "(cached) " >&6 4273 else $as_nop 4274 if test -n "$ac_ct_CC"; then 4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4276 else 4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4278 for as_dir in $PATH 4279 do 4280 IFS=$as_save_IFS 4281 case $as_dir in #((( 4282 '') as_dir=./ ;; 4283 */) ;; 4284 *) as_dir=$as_dir/ ;; 4285 esac 4286 for ac_exec_ext in '' $ac_executable_extensions; do 4287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4288 ac_cv_prog_ac_ct_CC="$ac_prog" 4289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4290 break 2 4291 fi 4292 done 4293 done 4294 IFS=$as_save_IFS 4295 4296 fi 4297 fi 4298 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4299 if test -n "$ac_ct_CC"; then 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4301 printf "%s\n" "$ac_ct_CC" >&6; } 4302 else 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304 printf "%s\n" "no" >&6; } 4305 fi 4306 4307 4308 test -n "$ac_ct_CC" && break 4309 done 4310 4311 if test "x$ac_ct_CC" = x; then 4312 CC="" 4313 else 4314 case $cross_compiling:$ac_tool_warned in 4315 yes:) 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4318 ac_tool_warned=yes ;; 4319 esac 4320 CC=$ac_ct_CC 4321 fi 4322 fi 4323 4324 fi 4325 if test -z "$CC"; then 4326 if test -n "$ac_tool_prefix"; then 4327 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4328 set dummy ${ac_tool_prefix}clang; ac_word=$2 4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4330 printf %s "checking for $ac_word... " >&6; } 4331 if test ${ac_cv_prog_CC+y} 4332 then : 4333 printf %s "(cached) " >&6 4334 else $as_nop 4335 if test -n "$CC"; then 4336 ac_cv_prog_CC="$CC" # Let the user override the test. 4337 else 4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4339 for as_dir in $PATH 4340 do 4341 IFS=$as_save_IFS 4342 case $as_dir in #((( 4343 '') as_dir=./ ;; 4344 */) ;; 4345 *) as_dir=$as_dir/ ;; 4346 esac 4347 for ac_exec_ext in '' $ac_executable_extensions; do 4348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4349 ac_cv_prog_CC="${ac_tool_prefix}clang" 4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4351 break 2 4352 fi 4353 done 4354 done 4355 IFS=$as_save_IFS 4356 4357 fi 4358 fi 4359 CC=$ac_cv_prog_CC 4360 if test -n "$CC"; then 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4362 printf "%s\n" "$CC" >&6; } 4363 else 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4365 printf "%s\n" "no" >&6; } 4366 fi 4367 4368 4369 fi 4370 if test -z "$ac_cv_prog_CC"; then 4371 ac_ct_CC=$CC 4372 # Extract the first word of "clang", so it can be a program name with args. 4373 set dummy clang; ac_word=$2 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375 printf %s "checking for $ac_word... " >&6; } 4376 if test ${ac_cv_prog_ac_ct_CC+y} 4377 then : 4378 printf %s "(cached) " >&6 4379 else $as_nop 4380 if test -n "$ac_ct_CC"; then 4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4382 else 4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384 for as_dir in $PATH 4385 do 4386 IFS=$as_save_IFS 4387 case $as_dir in #((( 4388 '') as_dir=./ ;; 4389 */) ;; 4390 *) as_dir=$as_dir/ ;; 4391 esac 4392 for ac_exec_ext in '' $ac_executable_extensions; do 4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4394 ac_cv_prog_ac_ct_CC="clang" 4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4396 break 2 4397 fi 4398 done 4399 done 4400 IFS=$as_save_IFS 4401 4402 fi 4403 fi 4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4405 if test -n "$ac_ct_CC"; then 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4407 printf "%s\n" "$ac_ct_CC" >&6; } 4408 else 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4410 printf "%s\n" "no" >&6; } 4411 fi 4412 4413 if test "x$ac_ct_CC" = x; then 4414 CC="" 4415 else 4416 case $cross_compiling:$ac_tool_warned in 4417 yes:) 4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4420 ac_tool_warned=yes ;; 4421 esac 4422 CC=$ac_ct_CC 4423 fi 4424 else 4425 CC="$ac_cv_prog_CC" 4426 fi 4427 4428 fi 4429 4430 4431 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4433 as_fn_error $? "no acceptable C compiler found in \$PATH 4434 See \`config.log' for more details" "$LINENO" 5; } 4435 4436 # Provide some information about the compiler. 4437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4438 set X $ac_compile 4439 ac_compiler=$2 4440 for ac_option in --version -v -V -qversion -version; do 4441 { { ac_try="$ac_compiler $ac_option >&5" 4442 case "(($ac_try" in 4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4444 *) ac_try_echo=$ac_try;; 4445 esac 4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4447 printf "%s\n" "$ac_try_echo"; } >&5 4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4449 ac_status=$? 4450 if test -s conftest.err; then 4451 sed '10a\ 4452 ... rest of stderr output deleted ... 4453 10q' conftest.err >conftest.er1 4454 cat conftest.er1 >&5 4455 fi 4456 rm -f conftest.er1 conftest.err 4457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4458 test $ac_status = 0; } 4459 done 4460 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462 /* end confdefs.h. */ 4463 4464 int 4465 main (void) 4466 { 4467 4468 ; 4469 return 0; 4470 } 4471 _ACEOF 4472 ac_clean_files_save=$ac_clean_files 4473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4474 # Try to create an executable without -o first, disregard a.out. 4475 # It will help us diagnose broken compilers, and finding out an intuition 4476 # of exeext. 4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4478 printf %s "checking whether the C compiler works... " >&6; } 4479 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4480 4481 # The possible output files: 4482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4483 4484 ac_rmfiles= 4485 for ac_file in $ac_files 4486 do 4487 case $ac_file in 4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4490 esac 4491 done 4492 rm -f $ac_rmfiles 4493 4494 if { { ac_try="$ac_link_default" 4495 case "(($ac_try" in 4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4497 *) ac_try_echo=$ac_try;; 4498 esac 4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4500 printf "%s\n" "$ac_try_echo"; } >&5 4501 (eval "$ac_link_default") 2>&5 4502 ac_status=$? 4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4504 test $ac_status = 0; } 4505 then : 4506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4508 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4509 # so that the user can short-circuit this test for compilers unknown to 4510 # Autoconf. 4511 for ac_file in $ac_files '' 4512 do 4513 test -f "$ac_file" || continue 4514 case $ac_file in 4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4516 ;; 4517 [ab].out ) 4518 # We found the default executable, but exeext='' is most 4519 # certainly right. 4520 break;; 4521 *.* ) 4522 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4523 then :; else 4524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4525 fi 4526 # We set ac_cv_exeext here because the later test for it is not 4527 # safe: cross compilers may not add the suffix if given an `-o' 4528 # argument, so we may need to know it at that point already. 4529 # Even if this section looks crufty: it has the advantage of 4530 # actually working. 4531 break;; 4532 * ) 4533 break;; 4534 esac 4535 done 4536 test "$ac_cv_exeext" = no && ac_cv_exeext= 4537 4538 else $as_nop 4539 ac_file='' 4540 fi 4541 if test -z "$ac_file" 4542 then : 4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544 printf "%s\n" "no" >&6; } 4545 printf "%s\n" "$as_me: failed program was:" >&5 4546 sed 's/^/| /' conftest.$ac_ext >&5 4547 4548 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4549 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4550 as_fn_error 77 "C compiler cannot create executables 4551 See \`config.log' for more details" "$LINENO" 5; } 4552 else $as_nop 4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4554 printf "%s\n" "yes" >&6; } 4555 fi 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4557 printf %s "checking for C compiler default output file name... " >&6; } 4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4559 printf "%s\n" "$ac_file" >&6; } 4560 ac_exeext=$ac_cv_exeext 4561 4562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4563 ac_clean_files=$ac_clean_files_save 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4565 printf %s "checking for suffix of executables... " >&6; } 4566 if { { ac_try="$ac_link" 4567 case "(($ac_try" in 4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4569 *) ac_try_echo=$ac_try;; 4570 esac 4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4572 printf "%s\n" "$ac_try_echo"; } >&5 4573 (eval "$ac_link") 2>&5 4574 ac_status=$? 4575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4576 test $ac_status = 0; } 4577 then : 4578 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4579 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4580 # work properly (i.e., refer to `conftest.exe'), while it won't with 4581 # `rm'. 4582 for ac_file in conftest.exe conftest conftest.*; do 4583 test -f "$ac_file" || continue 4584 case $ac_file in 4585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4587 break;; 4588 * ) break;; 4589 esac 4590 done 4591 else $as_nop 4592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4593 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4594 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4595 See \`config.log' for more details" "$LINENO" 5; } 4596 fi 4597 rm -f conftest conftest$ac_cv_exeext 4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4599 printf "%s\n" "$ac_cv_exeext" >&6; } 4600 4601 rm -f conftest.$ac_ext 4602 EXEEXT=$ac_cv_exeext 4603 ac_exeext=$EXEEXT 4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4605 /* end confdefs.h. */ 4606 #include <stdio.h> 4607 int 4608 main (void) 4609 { 4610 FILE *f = fopen ("conftest.out", "w"); 4611 return ferror (f) || fclose (f) != 0; 4612 4613 ; 4614 return 0; 4615 } 4616 _ACEOF 4617 ac_clean_files="$ac_clean_files conftest.out" 4618 # Check that the compiler produces executables we can run. If not, either 4619 # the compiler is broken, or we cross compile. 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4621 printf %s "checking whether we are cross compiling... " >&6; } 4622 if test "$cross_compiling" != yes; then 4623 { { ac_try="$ac_link" 4624 case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627 esac 4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4629 printf "%s\n" "$ac_try_echo"; } >&5 4630 (eval "$ac_link") 2>&5 4631 ac_status=$? 4632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4633 test $ac_status = 0; } 4634 if { ac_try='./conftest$ac_cv_exeext' 4635 { { case "(($ac_try" in 4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4637 *) ac_try_echo=$ac_try;; 4638 esac 4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4640 printf "%s\n" "$ac_try_echo"; } >&5 4641 (eval "$ac_try") 2>&5 4642 ac_status=$? 4643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4644 test $ac_status = 0; }; }; then 4645 cross_compiling=no 4646 else 4647 if test "$cross_compiling" = maybe; then 4648 cross_compiling=yes 4649 else 4650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4651 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4652 as_fn_error 77 "cannot run C compiled programs. 4653 If you meant to cross compile, use \`--host'. 4654 See \`config.log' for more details" "$LINENO" 5; } 4655 fi 4656 fi 4657 fi 4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4659 printf "%s\n" "$cross_compiling" >&6; } 4660 4661 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4662 ac_clean_files=$ac_clean_files_save 4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4664 printf %s "checking for suffix of object files... " >&6; } 4665 if test ${ac_cv_objext+y} 4666 then : 4667 printf %s "(cached) " >&6 4668 else $as_nop 4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670 /* end confdefs.h. */ 4671 4672 int 4673 main (void) 4674 { 4675 4676 ; 4677 return 0; 4678 } 4679 _ACEOF 4680 rm -f conftest.o conftest.obj 4681 if { { ac_try="$ac_compile" 4682 case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685 esac 4686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4687 printf "%s\n" "$ac_try_echo"; } >&5 4688 (eval "$ac_compile") 2>&5 4689 ac_status=$? 4690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4691 test $ac_status = 0; } 4692 then : 4693 for ac_file in conftest.o conftest.obj conftest.*; do 4694 test -f "$ac_file" || continue; 4695 case $ac_file in 4696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4698 break;; 4699 esac 4700 done 4701 else $as_nop 4702 printf "%s\n" "$as_me: failed program was:" >&5 4703 sed 's/^/| /' conftest.$ac_ext >&5 4704 4705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4706 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4707 as_fn_error $? "cannot compute suffix of object files: cannot compile 4708 See \`config.log' for more details" "$LINENO" 5; } 4709 fi 4710 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4711 fi 4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4713 printf "%s\n" "$ac_cv_objext" >&6; } 4714 OBJEXT=$ac_cv_objext 4715 ac_objext=$OBJEXT 4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4717 printf %s "checking whether the compiler supports GNU C... " >&6; } 4718 if test ${ac_cv_c_compiler_gnu+y} 4719 then : 4720 printf %s "(cached) " >&6 4721 else $as_nop 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723 /* end confdefs.h. */ 4724 4725 int 4726 main (void) 4727 { 4728 #ifndef __GNUC__ 4729 choke me 4730 #endif 4731 4732 ; 4733 return 0; 4734 } 4735 _ACEOF 4736 if ac_fn_c_try_compile "$LINENO" 4737 then : 4738 ac_compiler_gnu=yes 4739 else $as_nop 4740 ac_compiler_gnu=no 4741 fi 4742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4743 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4744 4745 fi 4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4747 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4748 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4749 4750 if test $ac_compiler_gnu = yes; then 4751 GCC=yes 4752 else 4753 GCC= 4754 fi 4755 ac_test_CFLAGS=${CFLAGS+y} 4756 ac_save_CFLAGS=$CFLAGS 4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4758 printf %s "checking whether $CC accepts -g... " >&6; } 4759 if test ${ac_cv_prog_cc_g+y} 4760 then : 4761 printf %s "(cached) " >&6 4762 else $as_nop 4763 ac_save_c_werror_flag=$ac_c_werror_flag 4764 ac_c_werror_flag=yes 4765 ac_cv_prog_cc_g=no 4766 CFLAGS="-g" 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768 /* end confdefs.h. */ 4769 4770 int 4771 main (void) 4772 { 4773 4774 ; 4775 return 0; 4776 } 4777 _ACEOF 4778 if ac_fn_c_try_compile "$LINENO" 4779 then : 4780 ac_cv_prog_cc_g=yes 4781 else $as_nop 4782 CFLAGS="" 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784 /* end confdefs.h. */ 4785 4786 int 4787 main (void) 4788 { 4789 4790 ; 4791 return 0; 4792 } 4793 _ACEOF 4794 if ac_fn_c_try_compile "$LINENO" 4795 then : 4796 4797 else $as_nop 4798 ac_c_werror_flag=$ac_save_c_werror_flag 4799 CFLAGS="-g" 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801 /* end confdefs.h. */ 4802 4803 int 4804 main (void) 4805 { 4806 4807 ; 4808 return 0; 4809 } 4810 _ACEOF 4811 if ac_fn_c_try_compile "$LINENO" 4812 then : 4813 ac_cv_prog_cc_g=yes 4814 fi 4815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4816 fi 4817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4818 fi 4819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4820 ac_c_werror_flag=$ac_save_c_werror_flag 4821 fi 4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4823 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4824 if test $ac_test_CFLAGS; then 4825 CFLAGS=$ac_save_CFLAGS 4826 elif test $ac_cv_prog_cc_g = yes; then 4827 if test "$GCC" = yes; then 4828 CFLAGS="-g -O2" 4829 else 4830 CFLAGS="-g" 4831 fi 4832 else 4833 if test "$GCC" = yes; then 4834 CFLAGS="-O2" 4835 else 4836 CFLAGS= 4837 fi 4838 fi 4839 ac_prog_cc_stdc=no 4840 if test x$ac_prog_cc_stdc = xno 4841 then : 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4843 printf %s "checking for $CC option to enable C11 features... " >&6; } 4844 if test ${ac_cv_prog_cc_c11+y} 4845 then : 4846 printf %s "(cached) " >&6 4847 else $as_nop 4848 ac_cv_prog_cc_c11=no 4849 ac_save_CC=$CC 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851 /* end confdefs.h. */ 4852 $ac_c_conftest_c11_program 4853 _ACEOF 4854 for ac_arg in '' -std=gnu11 4855 do 4856 CC="$ac_save_CC $ac_arg" 4857 if ac_fn_c_try_compile "$LINENO" 4858 then : 4859 ac_cv_prog_cc_c11=$ac_arg 4860 fi 4861 rm -f core conftest.err conftest.$ac_objext conftest.beam 4862 test "x$ac_cv_prog_cc_c11" != "xno" && break 4863 done 4864 rm -f conftest.$ac_ext 4865 CC=$ac_save_CC 4866 fi 4867 4868 if test "x$ac_cv_prog_cc_c11" = xno 4869 then : 4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4871 printf "%s\n" "unsupported" >&6; } 4872 else $as_nop 4873 if test "x$ac_cv_prog_cc_c11" = x 4874 then : 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4876 printf "%s\n" "none needed" >&6; } 4877 else $as_nop 4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4879 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4880 CC="$CC $ac_cv_prog_cc_c11" 4881 fi 4882 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4883 ac_prog_cc_stdc=c11 4884 fi 4885 fi 4886 if test x$ac_prog_cc_stdc = xno 4887 then : 4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4889 printf %s "checking for $CC option to enable C99 features... " >&6; } 4890 if test ${ac_cv_prog_cc_c99+y} 4891 then : 4892 printf %s "(cached) " >&6 4893 else $as_nop 4894 ac_cv_prog_cc_c99=no 4895 ac_save_CC=$CC 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4897 /* end confdefs.h. */ 4898 $ac_c_conftest_c99_program 4899 _ACEOF 4900 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4901 do 4902 CC="$ac_save_CC $ac_arg" 4903 if ac_fn_c_try_compile "$LINENO" 4904 then : 4905 ac_cv_prog_cc_c99=$ac_arg 4906 fi 4907 rm -f core conftest.err conftest.$ac_objext conftest.beam 4908 test "x$ac_cv_prog_cc_c99" != "xno" && break 4909 done 4910 rm -f conftest.$ac_ext 4911 CC=$ac_save_CC 4912 fi 4913 4914 if test "x$ac_cv_prog_cc_c99" = xno 4915 then : 4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4917 printf "%s\n" "unsupported" >&6; } 4918 else $as_nop 4919 if test "x$ac_cv_prog_cc_c99" = x 4920 then : 4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4922 printf "%s\n" "none needed" >&6; } 4923 else $as_nop 4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4925 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4926 CC="$CC $ac_cv_prog_cc_c99" 4927 fi 4928 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4929 ac_prog_cc_stdc=c99 4930 fi 4931 fi 4932 if test x$ac_prog_cc_stdc = xno 4933 then : 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4935 printf %s "checking for $CC option to enable C89 features... " >&6; } 4936 if test ${ac_cv_prog_cc_c89+y} 4937 then : 4938 printf %s "(cached) " >&6 4939 else $as_nop 4940 ac_cv_prog_cc_c89=no 4941 ac_save_CC=$CC 4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943 /* end confdefs.h. */ 4944 $ac_c_conftest_c89_program 4945 _ACEOF 4946 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4947 do 4948 CC="$ac_save_CC $ac_arg" 4949 if ac_fn_c_try_compile "$LINENO" 4950 then : 4951 ac_cv_prog_cc_c89=$ac_arg 4952 fi 4953 rm -f core conftest.err conftest.$ac_objext conftest.beam 4954 test "x$ac_cv_prog_cc_c89" != "xno" && break 4955 done 4956 rm -f conftest.$ac_ext 4957 CC=$ac_save_CC 4958 fi 4959 4960 if test "x$ac_cv_prog_cc_c89" = xno 4961 then : 4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4963 printf "%s\n" "unsupported" >&6; } 4964 else $as_nop 4965 if test "x$ac_cv_prog_cc_c89" = x 4966 then : 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4968 printf "%s\n" "none needed" >&6; } 4969 else $as_nop 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4971 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4972 CC="$CC $ac_cv_prog_cc_c89" 4973 fi 4974 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4975 ac_prog_cc_stdc=c89 4976 fi 4977 fi 4978 4979 ac_ext=c 4980 ac_cpp='$CPP $CPPFLAGS' 4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4984 4985 4986 ac_ext=c 4987 ac_cpp='$CPP $CPPFLAGS' 4988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4990 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4992 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4993 if test ${am_cv_prog_cc_c_o+y} 4994 then : 4995 printf %s "(cached) " >&6 4996 else $as_nop 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998 /* end confdefs.h. */ 4999 5000 int 5001 main (void) 5002 { 5003 5004 ; 5005 return 0; 5006 } 5007 _ACEOF 5008 # Make sure it works both with $CC and with simple cc. 5009 # Following AC_PROG_CC_C_O, we do the test twice because some 5010 # compilers refuse to overwrite an existing .o file with -o, 5011 # though they will create one. 5012 am_cv_prog_cc_c_o=yes 5013 for am_i in 1 2; do 5014 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5015 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5016 ac_status=$? 5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5018 (exit $ac_status); } \ 5019 && test -f conftest2.$ac_objext; then 5020 : OK 5021 else 5022 am_cv_prog_cc_c_o=no 5023 break 5024 fi 5025 done 5026 rm -f core conftest* 5027 unset am_i 5028 fi 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5030 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5031 if test "$am_cv_prog_cc_c_o" != yes; then 5032 # Losing compiler, so override with the script. 5033 # FIXME: It is wrong to rewrite CC. 5034 # But if we don't then we get into trouble of one sort or another. 5035 # A longer-term fix would be to have automake use am__CC in this case, 5036 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5037 CC="$am_aux_dir/compile $CC" 5038 fi 5039 ac_ext=c 5040 ac_cpp='$CPP $CPPFLAGS' 5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5044 5045 5046 depcc="$CC" am_compiler_list= 5047 5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5049 printf %s "checking dependency style of $depcc... " >&6; } 5050 if test ${am_cv_CC_dependencies_compiler_type+y} 5051 then : 5052 printf %s "(cached) " >&6 5053 else $as_nop 5054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5055 # We make a subdir and do the tests there. Otherwise we can end up 5056 # making bogus files that we don't know about and never remove. For 5057 # instance it was reported that on HP-UX the gcc test will end up 5058 # making a dummy file named 'D' -- because '-MD' means "put the output 5059 # in D". 5060 rm -rf conftest.dir 5061 mkdir conftest.dir 5062 # Copy depcomp to subdir because otherwise we won't find it if we're 5063 # using a relative directory. 5064 cp "$am_depcomp" conftest.dir 5065 cd conftest.dir 5066 # We will build objects and dependencies in a subdirectory because 5067 # it helps to detect inapplicable dependency modes. For instance 5068 # both Tru64's cc and ICC support -MD to output dependencies as a 5069 # side effect of compilation, but ICC will put the dependencies in 5070 # the current directory while Tru64 will put them in the object 5071 # directory. 5072 mkdir sub 5073 5074 am_cv_CC_dependencies_compiler_type=none 5075 if test "$am_compiler_list" = ""; then 5076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5077 fi 5078 am__universal=false 5079 case " $depcc " in #( 5080 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5081 esac 5082 5083 for depmode in $am_compiler_list; do 5084 # Setup a source with many dependencies, because some compilers 5085 # like to wrap large dependency lists on column 80 (with \), and 5086 # we should not choose a depcomp mode which is confused by this. 5087 # 5088 # We need to recreate these files for each test, as the compiler may 5089 # overwrite some of them when testing with obscure command lines. 5090 # This happens at least with the AIX C compiler. 5091 : > sub/conftest.c 5092 for i in 1 2 3 4 5 6; do 5093 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5094 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5095 # Solaris 10 /bin/sh. 5096 echo '/* dummy */' > sub/conftst$i.h 5097 done 5098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5099 5100 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5101 # mode. It turns out that the SunPro C++ compiler does not properly 5102 # handle '-M -o', and we need to detect this. Also, some Intel 5103 # versions had trouble with output in subdirs. 5104 am__obj=sub/conftest.${OBJEXT-o} 5105 am__minus_obj="-o $am__obj" 5106 case $depmode in 5107 gcc) 5108 # This depmode causes a compiler race in universal mode. 5109 test "$am__universal" = false || continue 5110 ;; 5111 nosideeffect) 5112 # After this tag, mechanisms are not by side-effect, so they'll 5113 # only be used when explicitly requested. 5114 if test "x$enable_dependency_tracking" = xyes; then 5115 continue 5116 else 5117 break 5118 fi 5119 ;; 5120 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5121 # This compiler won't grok '-c -o', but also, the minuso test has 5122 # not run yet. These depmodes are late enough in the game, and 5123 # so weak that their functioning should not be impacted. 5124 am__obj=conftest.${OBJEXT-o} 5125 am__minus_obj= 5126 ;; 5127 none) break ;; 5128 esac 5129 if depmode=$depmode \ 5130 source=sub/conftest.c object=$am__obj \ 5131 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5132 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5133 >/dev/null 2>conftest.err && 5134 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5135 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5136 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5137 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5138 # icc doesn't choke on unknown options, it will just issue warnings 5139 # or remarks (even with -Werror). So we grep stderr for any message 5140 # that says an option was ignored or not supported. 5141 # When given -MP, icc 7.0 and 7.1 complain thusly: 5142 # icc: Command line warning: ignoring option '-M'; no argument required 5143 # The diagnosis changed in icc 8.0: 5144 # icc: Command line remark: option '-MP' not supported 5145 if (grep 'ignoring option' conftest.err || 5146 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5147 am_cv_CC_dependencies_compiler_type=$depmode 5148 break 5149 fi 5150 fi 5151 done 5152 5153 cd .. 5154 rm -rf conftest.dir 5155 else 5156 am_cv_CC_dependencies_compiler_type=none 5157 fi 5158 5159 fi 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5161 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5163 5164 if 5165 test "x$enable_dependency_tracking" != xno \ 5166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5167 am__fastdepCC_TRUE= 5168 am__fastdepCC_FALSE='#' 5169 else 5170 am__fastdepCC_TRUE='#' 5171 am__fastdepCC_FALSE= 5172 fi 5173 5174 5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5176 printf %s "checking for a sed that does not truncate output... " >&6; } 5177 if test ${ac_cv_path_SED+y} 5178 then : 5179 printf %s "(cached) " >&6 5180 else $as_nop 5181 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5182 for ac_i in 1 2 3 4 5 6 7; do 5183 ac_script="$ac_script$as_nl$ac_script" 5184 done 5185 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5186 { ac_script=; unset ac_script;} 5187 if test -z "$SED"; then 5188 ac_path_SED_found=false 5189 # Loop through the user's path and test for each of PROGNAME-LIST 5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5191 for as_dir in $PATH 5192 do 5193 IFS=$as_save_IFS 5194 case $as_dir in #((( 5195 '') as_dir=./ ;; 5196 */) ;; 5197 *) as_dir=$as_dir/ ;; 5198 esac 5199 for ac_prog in sed gsed 5200 do 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5203 as_fn_executable_p "$ac_path_SED" || continue 5204 # Check for GNU ac_path_SED and select it if it is found. 5205 # Check for GNU $ac_path_SED 5206 case `"$ac_path_SED" --version 2>&1` in 5207 *GNU*) 5208 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5209 *) 5210 ac_count=0 5211 printf %s 0123456789 >"conftest.in" 5212 while : 5213 do 5214 cat "conftest.in" "conftest.in" >"conftest.tmp" 5215 mv "conftest.tmp" "conftest.in" 5216 cp "conftest.in" "conftest.nl" 5217 printf "%s\n" '' >> "conftest.nl" 5218 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5220 as_fn_arith $ac_count + 1 && ac_count=$as_val 5221 if test $ac_count -gt ${ac_path_SED_max-0}; then 5222 # Best one so far, save it but keep looking for a better one 5223 ac_cv_path_SED="$ac_path_SED" 5224 ac_path_SED_max=$ac_count 5225 fi 5226 # 10*(2^10) chars as input seems more than enough 5227 test $ac_count -gt 10 && break 5228 done 5229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5230 esac 5231 5232 $ac_path_SED_found && break 3 5233 done 5234 done 5235 done 5236 IFS=$as_save_IFS 5237 if test -z "$ac_cv_path_SED"; then 5238 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5239 fi 5240 else 5241 ac_cv_path_SED=$SED 5242 fi 5243 5244 fi 5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5246 printf "%s\n" "$ac_cv_path_SED" >&6; } 5247 SED="$ac_cv_path_SED" 5248 rm -f conftest.sed 5249 5250 test -z "$SED" && SED=sed 5251 Xsed="$SED -e 1s/^X//" 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5264 printf %s "checking for grep that handles long lines and -e... " >&6; } 5265 if test ${ac_cv_path_GREP+y} 5266 then : 5267 printf %s "(cached) " >&6 5268 else $as_nop 5269 if test -z "$GREP"; then 5270 ac_path_GREP_found=false 5271 # Loop through the user's path and test for each of PROGNAME-LIST 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5274 do 5275 IFS=$as_save_IFS 5276 case $as_dir in #((( 5277 '') as_dir=./ ;; 5278 */) ;; 5279 *) as_dir=$as_dir/ ;; 5280 esac 5281 for ac_prog in grep ggrep 5282 do 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5285 as_fn_executable_p "$ac_path_GREP" || continue 5286 # Check for GNU ac_path_GREP and select it if it is found. 5287 # Check for GNU $ac_path_GREP 5288 case `"$ac_path_GREP" --version 2>&1` in 5289 *GNU*) 5290 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5291 *) 5292 ac_count=0 5293 printf %s 0123456789 >"conftest.in" 5294 while : 5295 do 5296 cat "conftest.in" "conftest.in" >"conftest.tmp" 5297 mv "conftest.tmp" "conftest.in" 5298 cp "conftest.in" "conftest.nl" 5299 printf "%s\n" 'GREP' >> "conftest.nl" 5300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5302 as_fn_arith $ac_count + 1 && ac_count=$as_val 5303 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5304 # Best one so far, save it but keep looking for a better one 5305 ac_cv_path_GREP="$ac_path_GREP" 5306 ac_path_GREP_max=$ac_count 5307 fi 5308 # 10*(2^10) chars as input seems more than enough 5309 test $ac_count -gt 10 && break 5310 done 5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5312 esac 5313 5314 $ac_path_GREP_found && break 3 5315 done 5316 done 5317 done 5318 IFS=$as_save_IFS 5319 if test -z "$ac_cv_path_GREP"; then 5320 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5321 fi 5322 else 5323 ac_cv_path_GREP=$GREP 5324 fi 5325 5326 fi 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5328 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5329 GREP="$ac_cv_path_GREP" 5330 5331 5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5333 printf %s "checking for egrep... " >&6; } 5334 if test ${ac_cv_path_EGREP+y} 5335 then : 5336 printf %s "(cached) " >&6 5337 else $as_nop 5338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5339 then ac_cv_path_EGREP="$GREP -E" 5340 else 5341 if test -z "$EGREP"; then 5342 ac_path_EGREP_found=false 5343 # Loop through the user's path and test for each of PROGNAME-LIST 5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5346 do 5347 IFS=$as_save_IFS 5348 case $as_dir in #((( 5349 '') as_dir=./ ;; 5350 */) ;; 5351 *) as_dir=$as_dir/ ;; 5352 esac 5353 for ac_prog in egrep 5354 do 5355 for ac_exec_ext in '' $ac_executable_extensions; do 5356 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5357 as_fn_executable_p "$ac_path_EGREP" || continue 5358 # Check for GNU ac_path_EGREP and select it if it is found. 5359 # Check for GNU $ac_path_EGREP 5360 case `"$ac_path_EGREP" --version 2>&1` in 5361 *GNU*) 5362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5363 *) 5364 ac_count=0 5365 printf %s 0123456789 >"conftest.in" 5366 while : 5367 do 5368 cat "conftest.in" "conftest.in" >"conftest.tmp" 5369 mv "conftest.tmp" "conftest.in" 5370 cp "conftest.in" "conftest.nl" 5371 printf "%s\n" 'EGREP' >> "conftest.nl" 5372 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5374 as_fn_arith $ac_count + 1 && ac_count=$as_val 5375 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5376 # Best one so far, save it but keep looking for a better one 5377 ac_cv_path_EGREP="$ac_path_EGREP" 5378 ac_path_EGREP_max=$ac_count 5379 fi 5380 # 10*(2^10) chars as input seems more than enough 5381 test $ac_count -gt 10 && break 5382 done 5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5384 esac 5385 5386 $ac_path_EGREP_found && break 3 5387 done 5388 done 5389 done 5390 IFS=$as_save_IFS 5391 if test -z "$ac_cv_path_EGREP"; then 5392 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5393 fi 5394 else 5395 ac_cv_path_EGREP=$EGREP 5396 fi 5397 5398 fi 5399 fi 5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5401 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5402 EGREP="$ac_cv_path_EGREP" 5403 5404 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5406 printf %s "checking for fgrep... " >&6; } 5407 if test ${ac_cv_path_FGREP+y} 5408 then : 5409 printf %s "(cached) " >&6 5410 else $as_nop 5411 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5412 then ac_cv_path_FGREP="$GREP -F" 5413 else 5414 if test -z "$FGREP"; then 5415 ac_path_FGREP_found=false 5416 # Loop through the user's path and test for each of PROGNAME-LIST 5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5419 do 5420 IFS=$as_save_IFS 5421 case $as_dir in #((( 5422 '') as_dir=./ ;; 5423 */) ;; 5424 *) as_dir=$as_dir/ ;; 5425 esac 5426 for ac_prog in fgrep 5427 do 5428 for ac_exec_ext in '' $ac_executable_extensions; do 5429 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5430 as_fn_executable_p "$ac_path_FGREP" || continue 5431 # Check for GNU ac_path_FGREP and select it if it is found. 5432 # Check for GNU $ac_path_FGREP 5433 case `"$ac_path_FGREP" --version 2>&1` in 5434 *GNU*) 5435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5436 *) 5437 ac_count=0 5438 printf %s 0123456789 >"conftest.in" 5439 while : 5440 do 5441 cat "conftest.in" "conftest.in" >"conftest.tmp" 5442 mv "conftest.tmp" "conftest.in" 5443 cp "conftest.in" "conftest.nl" 5444 printf "%s\n" 'FGREP' >> "conftest.nl" 5445 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5447 as_fn_arith $ac_count + 1 && ac_count=$as_val 5448 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5449 # Best one so far, save it but keep looking for a better one 5450 ac_cv_path_FGREP="$ac_path_FGREP" 5451 ac_path_FGREP_max=$ac_count 5452 fi 5453 # 10*(2^10) chars as input seems more than enough 5454 test $ac_count -gt 10 && break 5455 done 5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5457 esac 5458 5459 $ac_path_FGREP_found && break 3 5460 done 5461 done 5462 done 5463 IFS=$as_save_IFS 5464 if test -z "$ac_cv_path_FGREP"; then 5465 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5466 fi 5467 else 5468 ac_cv_path_FGREP=$FGREP 5469 fi 5470 5471 fi 5472 fi 5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5474 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5475 FGREP="$ac_cv_path_FGREP" 5476 5477 5478 test -z "$GREP" && GREP=grep 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 # Check whether --with-gnu-ld was given. 5499 if test ${with_gnu_ld+y} 5500 then : 5501 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5502 else $as_nop 5503 with_gnu_ld=no 5504 fi 5505 5506 ac_prog=ld 5507 if test yes = "$GCC"; then 5508 # Check if gcc -print-prog-name=ld gives a path. 5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5510 printf %s "checking for ld used by $CC... " >&6; } 5511 case $host in 5512 *-*-mingw*) 5513 # gcc leaves a trailing carriage return, which upsets mingw 5514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5515 *) 5516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5517 esac 5518 case $ac_prog in 5519 # Accept absolute paths. 5520 [\\/]* | ?:[\\/]*) 5521 re_direlt='/[^/][^/]*/\.\./' 5522 # Canonicalize the pathname of ld 5523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5526 done 5527 test -z "$LD" && LD=$ac_prog 5528 ;; 5529 "") 5530 # If it fails, then pretend we aren't using GCC. 5531 ac_prog=ld 5532 ;; 5533 *) 5534 # If it is relative, then search for the first ld in PATH. 5535 with_gnu_ld=unknown 5536 ;; 5537 esac 5538 elif test yes = "$with_gnu_ld"; then 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5540 printf %s "checking for GNU ld... " >&6; } 5541 else 5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5543 printf %s "checking for non-GNU ld... " >&6; } 5544 fi 5545 if test ${lt_cv_path_LD+y} 5546 then : 5547 printf %s "(cached) " >&6 5548 else $as_nop 5549 if test -z "$LD"; then 5550 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5551 for ac_dir in $PATH; do 5552 IFS=$lt_save_ifs 5553 test -z "$ac_dir" && ac_dir=. 5554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5555 lt_cv_path_LD=$ac_dir/$ac_prog 5556 # Check to see if the program is GNU ld. I'd rather use --version, 5557 # but apparently some variants of GNU ld only accept -v. 5558 # Break only if it was the GNU/non-GNU ld that we prefer. 5559 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5560 *GNU* | *'with BFD'*) 5561 test no != "$with_gnu_ld" && break 5562 ;; 5563 *) 5564 test yes != "$with_gnu_ld" && break 5565 ;; 5566 esac 5567 fi 5568 done 5569 IFS=$lt_save_ifs 5570 else 5571 lt_cv_path_LD=$LD # Let the user override the test with a path. 5572 fi 5573 fi 5574 5575 LD=$lt_cv_path_LD 5576 if test -n "$LD"; then 5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5578 printf "%s\n" "$LD" >&6; } 5579 else 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5581 printf "%s\n" "no" >&6; } 5582 fi 5583 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5585 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5586 if test ${lt_cv_prog_gnu_ld+y} 5587 then : 5588 printf %s "(cached) " >&6 5589 else $as_nop 5590 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5591 case `$LD -v 2>&1 </dev/null` in 5592 *GNU* | *'with BFD'*) 5593 lt_cv_prog_gnu_ld=yes 5594 ;; 5595 *) 5596 lt_cv_prog_gnu_ld=no 5597 ;; 5598 esac 5599 fi 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5601 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5602 with_gnu_ld=$lt_cv_prog_gnu_ld 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5613 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5614 if test ${lt_cv_path_NM+y} 5615 then : 5616 printf %s "(cached) " >&6 5617 else $as_nop 5618 if test -n "$NM"; then 5619 # Let the user override the test. 5620 lt_cv_path_NM=$NM 5621 else 5622 lt_nm_to_check=${ac_tool_prefix}nm 5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5624 lt_nm_to_check="$lt_nm_to_check nm" 5625 fi 5626 for lt_tmp_nm in $lt_nm_to_check; do 5627 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5628 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5629 IFS=$lt_save_ifs 5630 test -z "$ac_dir" && ac_dir=. 5631 tmp_nm=$ac_dir/$lt_tmp_nm 5632 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5633 # Check to see if the nm accepts a BSD-compat flag. 5634 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5635 # nm: unknown option "B" ignored 5636 # Tru64's nm complains that /dev/null is an invalid object file 5637 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5638 case $build_os in 5639 mingw*) lt_bad_file=conftest.nm/nofile ;; 5640 *) lt_bad_file=/dev/null ;; 5641 esac 5642 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5643 *$lt_bad_file* | *'Invalid file or object type'*) 5644 lt_cv_path_NM="$tmp_nm -B" 5645 break 2 5646 ;; 5647 *) 5648 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5649 */dev/null*) 5650 lt_cv_path_NM="$tmp_nm -p" 5651 break 2 5652 ;; 5653 *) 5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5655 continue # so that we can try to find one that supports BSD flags 5656 ;; 5657 esac 5658 ;; 5659 esac 5660 fi 5661 done 5662 IFS=$lt_save_ifs 5663 done 5664 : ${lt_cv_path_NM=no} 5665 fi 5666 fi 5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5668 printf "%s\n" "$lt_cv_path_NM" >&6; } 5669 if test no != "$lt_cv_path_NM"; then 5670 NM=$lt_cv_path_NM 5671 else 5672 # Didn't find any BSD compatible name lister, look for dumpbin. 5673 if test -n "$DUMPBIN"; then : 5674 # Let the user override the test. 5675 else 5676 if test -n "$ac_tool_prefix"; then 5677 for ac_prog in dumpbin "link -dump" 5678 do 5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682 printf %s "checking for $ac_word... " >&6; } 5683 if test ${ac_cv_prog_DUMPBIN+y} 5684 then : 5685 printf %s "(cached) " >&6 5686 else $as_nop 5687 if test -n "$DUMPBIN"; then 5688 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5689 else 5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691 for as_dir in $PATH 5692 do 5693 IFS=$as_save_IFS 5694 case $as_dir in #((( 5695 '') as_dir=./ ;; 5696 */) ;; 5697 *) as_dir=$as_dir/ ;; 5698 esac 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705 done 5706 done 5707 IFS=$as_save_IFS 5708 5709 fi 5710 fi 5711 DUMPBIN=$ac_cv_prog_DUMPBIN 5712 if test -n "$DUMPBIN"; then 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5714 printf "%s\n" "$DUMPBIN" >&6; } 5715 else 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717 printf "%s\n" "no" >&6; } 5718 fi 5719 5720 5721 test -n "$DUMPBIN" && break 5722 done 5723 fi 5724 if test -z "$DUMPBIN"; then 5725 ac_ct_DUMPBIN=$DUMPBIN 5726 for ac_prog in dumpbin "link -dump" 5727 do 5728 # Extract the first word of "$ac_prog", so it can be a program name with args. 5729 set dummy $ac_prog; ac_word=$2 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731 printf %s "checking for $ac_word... " >&6; } 5732 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5733 then : 5734 printf %s "(cached) " >&6 5735 else $as_nop 5736 if test -n "$ac_ct_DUMPBIN"; then 5737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5738 else 5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740 for as_dir in $PATH 5741 do 5742 IFS=$as_save_IFS 5743 case $as_dir in #((( 5744 '') as_dir=./ ;; 5745 */) ;; 5746 *) as_dir=$as_dir/ ;; 5747 esac 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5750 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754 done 5755 done 5756 IFS=$as_save_IFS 5757 5758 fi 5759 fi 5760 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5761 if test -n "$ac_ct_DUMPBIN"; then 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5763 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5764 else 5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766 printf "%s\n" "no" >&6; } 5767 fi 5768 5769 5770 test -n "$ac_ct_DUMPBIN" && break 5771 done 5772 5773 if test "x$ac_ct_DUMPBIN" = x; then 5774 DUMPBIN=":" 5775 else 5776 case $cross_compiling:$ac_tool_warned in 5777 yes:) 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5779 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5780 ac_tool_warned=yes ;; 5781 esac 5782 DUMPBIN=$ac_ct_DUMPBIN 5783 fi 5784 fi 5785 5786 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5787 *COFF*) 5788 DUMPBIN="$DUMPBIN -symbols -headers" 5789 ;; 5790 *) 5791 DUMPBIN=: 5792 ;; 5793 esac 5794 fi 5795 5796 if test : != "$DUMPBIN"; then 5797 NM=$DUMPBIN 5798 fi 5799 fi 5800 test -z "$NM" && NM=nm 5801 5802 5803 5804 5805 5806 5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5808 printf %s "checking the name lister ($NM) interface... " >&6; } 5809 if test ${lt_cv_nm_interface+y} 5810 then : 5811 printf %s "(cached) " >&6 5812 else $as_nop 5813 lt_cv_nm_interface="BSD nm" 5814 echo "int some_variable = 0;" > conftest.$ac_ext 5815 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5816 (eval "$ac_compile" 2>conftest.err) 5817 cat conftest.err >&5 5818 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5819 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5820 cat conftest.err >&5 5821 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5822 cat conftest.out >&5 5823 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5824 lt_cv_nm_interface="MS dumpbin" 5825 fi 5826 rm -f conftest* 5827 fi 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5829 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5830 5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5832 printf %s "checking whether ln -s works... " >&6; } 5833 LN_S=$as_ln_s 5834 if test "$LN_S" = "ln -s"; then 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5836 printf "%s\n" "yes" >&6; } 5837 else 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5839 printf "%s\n" "no, using $LN_S" >&6; } 5840 fi 5841 5842 # find the maximum length of command line arguments 5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5844 printf %s "checking the maximum length of command line arguments... " >&6; } 5845 if test ${lt_cv_sys_max_cmd_len+y} 5846 then : 5847 printf %s "(cached) " >&6 5848 else $as_nop 5849 i=0 5850 teststring=ABCD 5851 5852 case $build_os in 5853 msdosdjgpp*) 5854 # On DJGPP, this test can blow up pretty badly due to problems in libc 5855 # (any single argument exceeding 2000 bytes causes a buffer overrun 5856 # during glob expansion). Even if it were fixed, the result of this 5857 # check would be larger than it should be. 5858 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5859 ;; 5860 5861 gnu*) 5862 # Under GNU Hurd, this test is not required because there is 5863 # no limit to the length of command line arguments. 5864 # Libtool will interpret -1 as no limit whatsoever 5865 lt_cv_sys_max_cmd_len=-1; 5866 ;; 5867 5868 cygwin* | mingw* | cegcc*) 5869 # On Win9x/ME, this test blows up -- it succeeds, but takes 5870 # about 5 minutes as the teststring grows exponentially. 5871 # Worse, since 9x/ME are not pre-emptively multitasking, 5872 # you end up with a "frozen" computer, even though with patience 5873 # the test eventually succeeds (with a max line length of 256k). 5874 # Instead, let's just punt: use the minimum linelength reported by 5875 # all of the supported platforms: 8192 (on NT/2K/XP). 5876 lt_cv_sys_max_cmd_len=8192; 5877 ;; 5878 5879 mint*) 5880 # On MiNT this can take a long time and run out of memory. 5881 lt_cv_sys_max_cmd_len=8192; 5882 ;; 5883 5884 amigaos*) 5885 # On AmigaOS with pdksh, this test takes hours, literally. 5886 # So we just punt and use a minimum line length of 8192. 5887 lt_cv_sys_max_cmd_len=8192; 5888 ;; 5889 5890 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5891 # This has been around since 386BSD, at least. Likely further. 5892 if test -x /sbin/sysctl; then 5893 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5894 elif test -x /usr/sbin/sysctl; then 5895 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5896 else 5897 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5898 fi 5899 # And add a safety zone 5900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5902 ;; 5903 5904 interix*) 5905 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5906 lt_cv_sys_max_cmd_len=196608 5907 ;; 5908 5909 os2*) 5910 # The test takes a long time on OS/2. 5911 lt_cv_sys_max_cmd_len=8192 5912 ;; 5913 5914 osf*) 5915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5917 # nice to cause kernel panics so lets avoid the loop below. 5918 # First set a reasonable default. 5919 lt_cv_sys_max_cmd_len=16384 5920 # 5921 if test -x /sbin/sysconfig; then 5922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5923 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5924 esac 5925 fi 5926 ;; 5927 sco3.2v5*) 5928 lt_cv_sys_max_cmd_len=102400 5929 ;; 5930 sysv5* | sco5v6* | sysv4.2uw2*) 5931 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5932 if test -n "$kargmax"; then 5933 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5934 else 5935 lt_cv_sys_max_cmd_len=32768 5936 fi 5937 ;; 5938 *) 5939 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5940 if test -n "$lt_cv_sys_max_cmd_len" && \ 5941 test undefined != "$lt_cv_sys_max_cmd_len"; then 5942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5944 else 5945 # Make teststring a little bigger before we do anything with it. 5946 # a 1K string should be a reasonable start. 5947 for i in 1 2 3 4 5 6 7 8; do 5948 teststring=$teststring$teststring 5949 done 5950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5951 # If test is not a shell built-in, we'll probably end up computing a 5952 # maximum length that is only half of the actual maximum length, but 5953 # we can't tell. 5954 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5955 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5956 test 17 != "$i" # 1/2 MB should be enough 5957 do 5958 i=`expr $i + 1` 5959 teststring=$teststring$teststring 5960 done 5961 # Only check the string length outside the loop. 5962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5963 teststring= 5964 # Add a significant safety factor because C++ compilers can tack on 5965 # massive amounts of additional arguments before passing them to the 5966 # linker. It appears as though 1/2 is a usable value. 5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5968 fi 5969 ;; 5970 esac 5971 5972 fi 5973 5974 if test -n "$lt_cv_sys_max_cmd_len"; then 5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5976 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5977 else 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5979 printf "%s\n" "none" >&6; } 5980 fi 5981 max_cmd_len=$lt_cv_sys_max_cmd_len 5982 5983 5984 5985 5986 5987 5988 : ${CP="cp -f"} 5989 : ${MV="mv -f"} 5990 : ${RM="rm -f"} 5991 5992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5993 lt_unset=unset 5994 else 5995 lt_unset=false 5996 fi 5997 5998 5999 6000 6001 6002 # test EBCDIC or ASCII 6003 case `echo X|tr X '\101'` in 6004 A) # ASCII based system 6005 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6006 lt_SP2NL='tr \040 \012' 6007 lt_NL2SP='tr \015\012 \040\040' 6008 ;; 6009 *) # EBCDIC based system 6010 lt_SP2NL='tr \100 \n' 6011 lt_NL2SP='tr \r\n \100\100' 6012 ;; 6013 esac 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6024 printf %s "checking how to convert $build file names to $host format... " >&6; } 6025 if test ${lt_cv_to_host_file_cmd+y} 6026 then : 6027 printf %s "(cached) " >&6 6028 else $as_nop 6029 case $host in 6030 *-*-mingw* ) 6031 case $build in 6032 *-*-mingw* ) # actually msys 6033 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6034 ;; 6035 *-*-cygwin* ) 6036 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6037 ;; 6038 * ) # otherwise, assume *nix 6039 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6040 ;; 6041 esac 6042 ;; 6043 *-*-cygwin* ) 6044 case $build in 6045 *-*-mingw* ) # actually msys 6046 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6047 ;; 6048 *-*-cygwin* ) 6049 lt_cv_to_host_file_cmd=func_convert_file_noop 6050 ;; 6051 * ) # otherwise, assume *nix 6052 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6053 ;; 6054 esac 6055 ;; 6056 * ) # unhandled hosts (and "normal" native builds) 6057 lt_cv_to_host_file_cmd=func_convert_file_noop 6058 ;; 6059 esac 6060 6061 fi 6062 6063 to_host_file_cmd=$lt_cv_to_host_file_cmd 6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6065 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6066 6067 6068 6069 6070 6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6072 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6073 if test ${lt_cv_to_tool_file_cmd+y} 6074 then : 6075 printf %s "(cached) " >&6 6076 else $as_nop 6077 #assume ordinary cross tools, or native build. 6078 lt_cv_to_tool_file_cmd=func_convert_file_noop 6079 case $host in 6080 *-*-mingw* ) 6081 case $build in 6082 *-*-mingw* ) # actually msys 6083 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6084 ;; 6085 esac 6086 ;; 6087 esac 6088 6089 fi 6090 6091 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6093 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6094 6095 6096 6097 6098 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6100 printf %s "checking for $LD option to reload object files... " >&6; } 6101 if test ${lt_cv_ld_reload_flag+y} 6102 then : 6103 printf %s "(cached) " >&6 6104 else $as_nop 6105 lt_cv_ld_reload_flag='-r' 6106 fi 6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6108 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6109 reload_flag=$lt_cv_ld_reload_flag 6110 case $reload_flag in 6111 "" | " "*) ;; 6112 *) reload_flag=" $reload_flag" ;; 6113 esac 6114 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6115 case $host_os in 6116 cygwin* | mingw* | pw32* | cegcc*) 6117 if test yes != "$GCC"; then 6118 reload_cmds=false 6119 fi 6120 ;; 6121 darwin*) 6122 if test yes = "$GCC"; then 6123 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6124 else 6125 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6126 fi 6127 ;; 6128 esac 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 if test -n "$ac_tool_prefix"; then 6139 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6140 set dummy ${ac_tool_prefix}file; ac_word=$2 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6142 printf %s "checking for $ac_word... " >&6; } 6143 if test ${ac_cv_prog_FILECMD+y} 6144 then : 6145 printf %s "(cached) " >&6 6146 else $as_nop 6147 if test -n "$FILECMD"; then 6148 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6149 else 6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151 for as_dir in $PATH 6152 do 6153 IFS=$as_save_IFS 6154 case $as_dir in #((( 6155 '') as_dir=./ ;; 6156 */) ;; 6157 *) as_dir=$as_dir/ ;; 6158 esac 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6161 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6163 break 2 6164 fi 6165 done 6166 done 6167 IFS=$as_save_IFS 6168 6169 fi 6170 fi 6171 FILECMD=$ac_cv_prog_FILECMD 6172 if test -n "$FILECMD"; then 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6174 printf "%s\n" "$FILECMD" >&6; } 6175 else 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6177 printf "%s\n" "no" >&6; } 6178 fi 6179 6180 6181 fi 6182 if test -z "$ac_cv_prog_FILECMD"; then 6183 ac_ct_FILECMD=$FILECMD 6184 # Extract the first word of "file", so it can be a program name with args. 6185 set dummy file; ac_word=$2 6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187 printf %s "checking for $ac_word... " >&6; } 6188 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6189 then : 6190 printf %s "(cached) " >&6 6191 else $as_nop 6192 if test -n "$ac_ct_FILECMD"; then 6193 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6194 else 6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196 for as_dir in $PATH 6197 do 6198 IFS=$as_save_IFS 6199 case $as_dir in #((( 6200 '') as_dir=./ ;; 6201 */) ;; 6202 *) as_dir=$as_dir/ ;; 6203 esac 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6206 ac_cv_prog_ac_ct_FILECMD="file" 6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210 done 6211 done 6212 IFS=$as_save_IFS 6213 6214 fi 6215 fi 6216 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6217 if test -n "$ac_ct_FILECMD"; then 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6219 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6220 else 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222 printf "%s\n" "no" >&6; } 6223 fi 6224 6225 if test "x$ac_ct_FILECMD" = x; then 6226 FILECMD=":" 6227 else 6228 case $cross_compiling:$ac_tool_warned in 6229 yes:) 6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6232 ac_tool_warned=yes ;; 6233 esac 6234 FILECMD=$ac_ct_FILECMD 6235 fi 6236 else 6237 FILECMD="$ac_cv_prog_FILECMD" 6238 fi 6239 6240 6241 6242 6243 6244 6245 6246 if test -n "$ac_tool_prefix"; then 6247 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6248 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250 printf %s "checking for $ac_word... " >&6; } 6251 if test ${ac_cv_prog_OBJDUMP+y} 6252 then : 6253 printf %s "(cached) " >&6 6254 else $as_nop 6255 if test -n "$OBJDUMP"; then 6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6257 else 6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259 for as_dir in $PATH 6260 do 6261 IFS=$as_save_IFS 6262 case $as_dir in #((( 6263 '') as_dir=./ ;; 6264 */) ;; 6265 *) as_dir=$as_dir/ ;; 6266 esac 6267 for ac_exec_ext in '' $ac_executable_extensions; do 6268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6269 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6271 break 2 6272 fi 6273 done 6274 done 6275 IFS=$as_save_IFS 6276 6277 fi 6278 fi 6279 OBJDUMP=$ac_cv_prog_OBJDUMP 6280 if test -n "$OBJDUMP"; then 6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6282 printf "%s\n" "$OBJDUMP" >&6; } 6283 else 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6285 printf "%s\n" "no" >&6; } 6286 fi 6287 6288 6289 fi 6290 if test -z "$ac_cv_prog_OBJDUMP"; then 6291 ac_ct_OBJDUMP=$OBJDUMP 6292 # Extract the first word of "objdump", so it can be a program name with args. 6293 set dummy objdump; ac_word=$2 6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6295 printf %s "checking for $ac_word... " >&6; } 6296 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6297 then : 6298 printf %s "(cached) " >&6 6299 else $as_nop 6300 if test -n "$ac_ct_OBJDUMP"; then 6301 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6302 else 6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304 for as_dir in $PATH 6305 do 6306 IFS=$as_save_IFS 6307 case $as_dir in #((( 6308 '') as_dir=./ ;; 6309 */) ;; 6310 *) as_dir=$as_dir/ ;; 6311 esac 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6314 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318 done 6319 done 6320 IFS=$as_save_IFS 6321 6322 fi 6323 fi 6324 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6325 if test -n "$ac_ct_OBJDUMP"; then 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6327 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6328 else 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6330 printf "%s\n" "no" >&6; } 6331 fi 6332 6333 if test "x$ac_ct_OBJDUMP" = x; then 6334 OBJDUMP="false" 6335 else 6336 case $cross_compiling:$ac_tool_warned in 6337 yes:) 6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6340 ac_tool_warned=yes ;; 6341 esac 6342 OBJDUMP=$ac_ct_OBJDUMP 6343 fi 6344 else 6345 OBJDUMP="$ac_cv_prog_OBJDUMP" 6346 fi 6347 6348 test -z "$OBJDUMP" && OBJDUMP=objdump 6349 6350 6351 6352 6353 6354 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6356 printf %s "checking how to recognize dependent libraries... " >&6; } 6357 if test ${lt_cv_deplibs_check_method+y} 6358 then : 6359 printf %s "(cached) " >&6 6360 else $as_nop 6361 lt_cv_file_magic_cmd='$MAGIC_CMD' 6362 lt_cv_file_magic_test_file= 6363 lt_cv_deplibs_check_method='unknown' 6364 # Need to set the preceding variable on all platforms that support 6365 # interlibrary dependencies. 6366 # 'none' -- dependencies not supported. 6367 # 'unknown' -- same as none, but documents that we really don't know. 6368 # 'pass_all' -- all dependencies passed with no checks. 6369 # 'test_compile' -- check by making test program. 6370 # 'file_magic [[regex]]' -- check by looking for files in library path 6371 # that responds to the $file_magic_cmd with a given extended regex. 6372 # If you have 'file' or equivalent on your system and you're not sure 6373 # whether 'pass_all' will *always* work, you probably want this one. 6374 6375 case $host_os in 6376 aix[4-9]*) 6377 lt_cv_deplibs_check_method=pass_all 6378 ;; 6379 6380 beos*) 6381 lt_cv_deplibs_check_method=pass_all 6382 ;; 6383 6384 bsdi[45]*) 6385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6386 lt_cv_file_magic_cmd='$FILECMD -L' 6387 lt_cv_file_magic_test_file=/shlib/libc.so 6388 ;; 6389 6390 cygwin*) 6391 # func_win32_libid is a shell function defined in ltmain.sh 6392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6393 lt_cv_file_magic_cmd='func_win32_libid' 6394 ;; 6395 6396 mingw* | pw32*) 6397 # Base MSYS/MinGW do not provide the 'file' command needed by 6398 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6399 # unless we find 'file', for example because we are cross-compiling. 6400 if ( file / ) >/dev/null 2>&1; then 6401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6402 lt_cv_file_magic_cmd='func_win32_libid' 6403 else 6404 # Keep this pattern in sync with the one in func_win32_libid. 6405 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6406 lt_cv_file_magic_cmd='$OBJDUMP -f' 6407 fi 6408 ;; 6409 6410 cegcc*) 6411 # use the weaker test based on 'objdump'. See mingw*. 6412 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6413 lt_cv_file_magic_cmd='$OBJDUMP -f' 6414 ;; 6415 6416 darwin* | rhapsody*) 6417 lt_cv_deplibs_check_method=pass_all 6418 ;; 6419 6420 freebsd* | dragonfly* | midnightbsd*) 6421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6422 case $host_cpu in 6423 i*86 ) 6424 # Not sure whether the presence of OpenBSD here was a mistake. 6425 # Let's accept both of them until this is cleared up. 6426 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6427 lt_cv_file_magic_cmd=$FILECMD 6428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6429 ;; 6430 esac 6431 else 6432 lt_cv_deplibs_check_method=pass_all 6433 fi 6434 ;; 6435 6436 haiku*) 6437 lt_cv_deplibs_check_method=pass_all 6438 ;; 6439 6440 hpux10.20* | hpux11*) 6441 lt_cv_file_magic_cmd=$FILECMD 6442 case $host_cpu in 6443 ia64*) 6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6445 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6446 ;; 6447 hppa*64*) 6448 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]' 6449 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6450 ;; 6451 *) 6452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6453 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6454 ;; 6455 esac 6456 ;; 6457 6458 interix[3-9]*) 6459 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6461 ;; 6462 6463 irix5* | irix6* | nonstopux*) 6464 case $LD in 6465 *-32|*"-32 ") libmagic=32-bit;; 6466 *-n32|*"-n32 ") libmagic=N32;; 6467 *-64|*"-64 ") libmagic=64-bit;; 6468 *) libmagic=never-match;; 6469 esac 6470 lt_cv_deplibs_check_method=pass_all 6471 ;; 6472 6473 # This must be glibc/ELF. 6474 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6475 lt_cv_deplibs_check_method=pass_all 6476 ;; 6477 6478 netbsd*) 6479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6481 else 6482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6483 fi 6484 ;; 6485 6486 newos6*) 6487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6488 lt_cv_file_magic_cmd=$FILECMD 6489 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6490 ;; 6491 6492 *nto* | *qnx*) 6493 lt_cv_deplibs_check_method=pass_all 6494 ;; 6495 6496 openbsd* | bitrig*) 6497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6499 else 6500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6501 fi 6502 ;; 6503 6504 osf3* | osf4* | osf5*) 6505 lt_cv_deplibs_check_method=pass_all 6506 ;; 6507 6508 rdos*) 6509 lt_cv_deplibs_check_method=pass_all 6510 ;; 6511 6512 solaris*) 6513 lt_cv_deplibs_check_method=pass_all 6514 ;; 6515 6516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6517 lt_cv_deplibs_check_method=pass_all 6518 ;; 6519 6520 sysv4 | sysv4.3*) 6521 case $host_vendor in 6522 motorola) 6523 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]' 6524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6525 ;; 6526 ncr) 6527 lt_cv_deplibs_check_method=pass_all 6528 ;; 6529 sequent) 6530 lt_cv_file_magic_cmd='/bin/file' 6531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6532 ;; 6533 sni) 6534 lt_cv_file_magic_cmd='/bin/file' 6535 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6536 lt_cv_file_magic_test_file=/lib/libc.so 6537 ;; 6538 siemens) 6539 lt_cv_deplibs_check_method=pass_all 6540 ;; 6541 pc) 6542 lt_cv_deplibs_check_method=pass_all 6543 ;; 6544 esac 6545 ;; 6546 6547 tpf*) 6548 lt_cv_deplibs_check_method=pass_all 6549 ;; 6550 os2*) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553 esac 6554 6555 fi 6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6557 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6558 6559 file_magic_glob= 6560 want_nocaseglob=no 6561 if test "$build" = "$host"; then 6562 case $host_os in 6563 mingw* | pw32*) 6564 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6565 want_nocaseglob=yes 6566 else 6567 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6568 fi 6569 ;; 6570 esac 6571 fi 6572 6573 file_magic_cmd=$lt_cv_file_magic_cmd 6574 deplibs_check_method=$lt_cv_deplibs_check_method 6575 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 if test -n "$ac_tool_prefix"; then 6599 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6600 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6602 printf %s "checking for $ac_word... " >&6; } 6603 if test ${ac_cv_prog_DLLTOOL+y} 6604 then : 6605 printf %s "(cached) " >&6 6606 else $as_nop 6607 if test -n "$DLLTOOL"; then 6608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6609 else 6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611 for as_dir in $PATH 6612 do 6613 IFS=$as_save_IFS 6614 case $as_dir in #((( 6615 '') as_dir=./ ;; 6616 */) ;; 6617 *) as_dir=$as_dir/ ;; 6618 esac 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6621 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625 done 6626 done 6627 IFS=$as_save_IFS 6628 6629 fi 6630 fi 6631 DLLTOOL=$ac_cv_prog_DLLTOOL 6632 if test -n "$DLLTOOL"; then 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6634 printf "%s\n" "$DLLTOOL" >&6; } 6635 else 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637 printf "%s\n" "no" >&6; } 6638 fi 6639 6640 6641 fi 6642 if test -z "$ac_cv_prog_DLLTOOL"; then 6643 ac_ct_DLLTOOL=$DLLTOOL 6644 # Extract the first word of "dlltool", so it can be a program name with args. 6645 set dummy dlltool; ac_word=$2 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647 printf %s "checking for $ac_word... " >&6; } 6648 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6649 then : 6650 printf %s "(cached) " >&6 6651 else $as_nop 6652 if test -n "$ac_ct_DLLTOOL"; then 6653 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6654 else 6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656 for as_dir in $PATH 6657 do 6658 IFS=$as_save_IFS 6659 case $as_dir in #((( 6660 '') as_dir=./ ;; 6661 */) ;; 6662 *) as_dir=$as_dir/ ;; 6663 esac 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6666 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6668 break 2 6669 fi 6670 done 6671 done 6672 IFS=$as_save_IFS 6673 6674 fi 6675 fi 6676 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6677 if test -n "$ac_ct_DLLTOOL"; then 6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6679 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6680 else 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6682 printf "%s\n" "no" >&6; } 6683 fi 6684 6685 if test "x$ac_ct_DLLTOOL" = x; then 6686 DLLTOOL="false" 6687 else 6688 case $cross_compiling:$ac_tool_warned in 6689 yes:) 6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6691 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6692 ac_tool_warned=yes ;; 6693 esac 6694 DLLTOOL=$ac_ct_DLLTOOL 6695 fi 6696 else 6697 DLLTOOL="$ac_cv_prog_DLLTOOL" 6698 fi 6699 6700 test -z "$DLLTOOL" && DLLTOOL=dlltool 6701 6702 6703 6704 6705 6706 6707 6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6709 printf %s "checking how to associate runtime and link libraries... " >&6; } 6710 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6711 then : 6712 printf %s "(cached) " >&6 6713 else $as_nop 6714 lt_cv_sharedlib_from_linklib_cmd='unknown' 6715 6716 case $host_os in 6717 cygwin* | mingw* | pw32* | cegcc*) 6718 # two different shell functions defined in ltmain.sh; 6719 # decide which one to use based on capabilities of $DLLTOOL 6720 case `$DLLTOOL --help 2>&1` in 6721 *--identify-strict*) 6722 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6723 ;; 6724 *) 6725 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6726 ;; 6727 esac 6728 ;; 6729 *) 6730 # fallback: assume linklib IS sharedlib 6731 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6732 ;; 6733 esac 6734 6735 fi 6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6737 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6738 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6739 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6740 6741 6742 6743 6744 6745 6746 6747 6748 if test -n "$ac_tool_prefix"; then 6749 for ac_prog in ar 6750 do 6751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6754 printf %s "checking for $ac_word... " >&6; } 6755 if test ${ac_cv_prog_AR+y} 6756 then : 6757 printf %s "(cached) " >&6 6758 else $as_nop 6759 if test -n "$AR"; then 6760 ac_cv_prog_AR="$AR" # Let the user override the test. 6761 else 6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763 for as_dir in $PATH 6764 do 6765 IFS=$as_save_IFS 6766 case $as_dir in #((( 6767 '') as_dir=./ ;; 6768 */) ;; 6769 *) as_dir=$as_dir/ ;; 6770 esac 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777 done 6778 done 6779 IFS=$as_save_IFS 6780 6781 fi 6782 fi 6783 AR=$ac_cv_prog_AR 6784 if test -n "$AR"; then 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6786 printf "%s\n" "$AR" >&6; } 6787 else 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789 printf "%s\n" "no" >&6; } 6790 fi 6791 6792 6793 test -n "$AR" && break 6794 done 6795 fi 6796 if test -z "$AR"; then 6797 ac_ct_AR=$AR 6798 for ac_prog in ar 6799 do 6800 # Extract the first word of "$ac_prog", so it can be a program name with args. 6801 set dummy $ac_prog; ac_word=$2 6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6803 printf %s "checking for $ac_word... " >&6; } 6804 if test ${ac_cv_prog_ac_ct_AR+y} 6805 then : 6806 printf %s "(cached) " >&6 6807 else $as_nop 6808 if test -n "$ac_ct_AR"; then 6809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6810 else 6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812 for as_dir in $PATH 6813 do 6814 IFS=$as_save_IFS 6815 case $as_dir in #((( 6816 '') as_dir=./ ;; 6817 */) ;; 6818 *) as_dir=$as_dir/ ;; 6819 esac 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6822 ac_cv_prog_ac_ct_AR="$ac_prog" 6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826 done 6827 done 6828 IFS=$as_save_IFS 6829 6830 fi 6831 fi 6832 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6833 if test -n "$ac_ct_AR"; then 6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6835 printf "%s\n" "$ac_ct_AR" >&6; } 6836 else 6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838 printf "%s\n" "no" >&6; } 6839 fi 6840 6841 6842 test -n "$ac_ct_AR" && break 6843 done 6844 6845 if test "x$ac_ct_AR" = x; then 6846 AR="false" 6847 else 6848 case $cross_compiling:$ac_tool_warned in 6849 yes:) 6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6852 ac_tool_warned=yes ;; 6853 esac 6854 AR=$ac_ct_AR 6855 fi 6856 fi 6857 6858 : ${AR=ar} 6859 6860 6861 6862 6863 6864 6865 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6866 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6867 # higher priority because thats what people were doing historically (setting 6868 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6869 # variable obsoleted/removed. 6870 6871 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6872 lt_ar_flags=$AR_FLAGS 6873 6874 6875 6876 6877 6878 6879 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6880 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6881 6882 6883 6884 6885 6886 6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6888 printf %s "checking for archiver @FILE support... " >&6; } 6889 if test ${lt_cv_ar_at_file+y} 6890 then : 6891 printf %s "(cached) " >&6 6892 else $as_nop 6893 lt_cv_ar_at_file=no 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895 /* end confdefs.h. */ 6896 6897 int 6898 main (void) 6899 { 6900 6901 ; 6902 return 0; 6903 } 6904 _ACEOF 6905 if ac_fn_c_try_compile "$LINENO" 6906 then : 6907 echo conftest.$ac_objext > conftest.lst 6908 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6910 (eval $lt_ar_try) 2>&5 6911 ac_status=$? 6912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6913 test $ac_status = 0; } 6914 if test 0 -eq "$ac_status"; then 6915 # Ensure the archiver fails upon bogus file names. 6916 rm -f conftest.$ac_objext libconftest.a 6917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6918 (eval $lt_ar_try) 2>&5 6919 ac_status=$? 6920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6921 test $ac_status = 0; } 6922 if test 0 -ne "$ac_status"; then 6923 lt_cv_ar_at_file=@ 6924 fi 6925 fi 6926 rm -f conftest.* libconftest.a 6927 6928 fi 6929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6930 6931 fi 6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6933 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6934 6935 if test no = "$lt_cv_ar_at_file"; then 6936 archiver_list_spec= 6937 else 6938 archiver_list_spec=$lt_cv_ar_at_file 6939 fi 6940 6941 6942 6943 6944 6945 6946 6947 if test -n "$ac_tool_prefix"; then 6948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6949 set dummy ${ac_tool_prefix}strip; ac_word=$2 6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6951 printf %s "checking for $ac_word... " >&6; } 6952 if test ${ac_cv_prog_STRIP+y} 6953 then : 6954 printf %s "(cached) " >&6 6955 else $as_nop 6956 if test -n "$STRIP"; then 6957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6958 else 6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960 for as_dir in $PATH 6961 do 6962 IFS=$as_save_IFS 6963 case $as_dir in #((( 6964 '') as_dir=./ ;; 6965 */) ;; 6966 *) as_dir=$as_dir/ ;; 6967 esac 6968 for ac_exec_ext in '' $ac_executable_extensions; do 6969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6970 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6972 break 2 6973 fi 6974 done 6975 done 6976 IFS=$as_save_IFS 6977 6978 fi 6979 fi 6980 STRIP=$ac_cv_prog_STRIP 6981 if test -n "$STRIP"; then 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6983 printf "%s\n" "$STRIP" >&6; } 6984 else 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986 printf "%s\n" "no" >&6; } 6987 fi 6988 6989 6990 fi 6991 if test -z "$ac_cv_prog_STRIP"; then 6992 ac_ct_STRIP=$STRIP 6993 # Extract the first word of "strip", so it can be a program name with args. 6994 set dummy strip; ac_word=$2 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6996 printf %s "checking for $ac_word... " >&6; } 6997 if test ${ac_cv_prog_ac_ct_STRIP+y} 6998 then : 6999 printf %s "(cached) " >&6 7000 else $as_nop 7001 if test -n "$ac_ct_STRIP"; then 7002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7003 else 7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7005 for as_dir in $PATH 7006 do 7007 IFS=$as_save_IFS 7008 case $as_dir in #((( 7009 '') as_dir=./ ;; 7010 */) ;; 7011 *) as_dir=$as_dir/ ;; 7012 esac 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7015 ac_cv_prog_ac_ct_STRIP="strip" 7016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019 done 7020 done 7021 IFS=$as_save_IFS 7022 7023 fi 7024 fi 7025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7026 if test -n "$ac_ct_STRIP"; then 7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7028 printf "%s\n" "$ac_ct_STRIP" >&6; } 7029 else 7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031 printf "%s\n" "no" >&6; } 7032 fi 7033 7034 if test "x$ac_ct_STRIP" = x; then 7035 STRIP=":" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038 yes:) 7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041 ac_tool_warned=yes ;; 7042 esac 7043 STRIP=$ac_ct_STRIP 7044 fi 7045 else 7046 STRIP="$ac_cv_prog_STRIP" 7047 fi 7048 7049 test -z "$STRIP" && STRIP=: 7050 7051 7052 7053 7054 7055 7056 if test -n "$ac_tool_prefix"; then 7057 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7058 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7060 printf %s "checking for $ac_word... " >&6; } 7061 if test ${ac_cv_prog_RANLIB+y} 7062 then : 7063 printf %s "(cached) " >&6 7064 else $as_nop 7065 if test -n "$RANLIB"; then 7066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7067 else 7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069 for as_dir in $PATH 7070 do 7071 IFS=$as_save_IFS 7072 case $as_dir in #((( 7073 '') as_dir=./ ;; 7074 */) ;; 7075 *) as_dir=$as_dir/ ;; 7076 esac 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083 done 7084 done 7085 IFS=$as_save_IFS 7086 7087 fi 7088 fi 7089 RANLIB=$ac_cv_prog_RANLIB 7090 if test -n "$RANLIB"; then 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7092 printf "%s\n" "$RANLIB" >&6; } 7093 else 7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7095 printf "%s\n" "no" >&6; } 7096 fi 7097 7098 7099 fi 7100 if test -z "$ac_cv_prog_RANLIB"; then 7101 ac_ct_RANLIB=$RANLIB 7102 # Extract the first word of "ranlib", so it can be a program name with args. 7103 set dummy ranlib; ac_word=$2 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7105 printf %s "checking for $ac_word... " >&6; } 7106 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7107 then : 7108 printf %s "(cached) " >&6 7109 else $as_nop 7110 if test -n "$ac_ct_RANLIB"; then 7111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7112 else 7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114 for as_dir in $PATH 7115 do 7116 IFS=$as_save_IFS 7117 case $as_dir in #((( 7118 '') as_dir=./ ;; 7119 */) ;; 7120 *) as_dir=$as_dir/ ;; 7121 esac 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7124 ac_cv_prog_ac_ct_RANLIB="ranlib" 7125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128 done 7129 done 7130 IFS=$as_save_IFS 7131 7132 fi 7133 fi 7134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7135 if test -n "$ac_ct_RANLIB"; then 7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7137 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7138 else 7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140 printf "%s\n" "no" >&6; } 7141 fi 7142 7143 if test "x$ac_ct_RANLIB" = x; then 7144 RANLIB=":" 7145 else 7146 case $cross_compiling:$ac_tool_warned in 7147 yes:) 7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7150 ac_tool_warned=yes ;; 7151 esac 7152 RANLIB=$ac_ct_RANLIB 7153 fi 7154 else 7155 RANLIB="$ac_cv_prog_RANLIB" 7156 fi 7157 7158 test -z "$RANLIB" && RANLIB=: 7159 7160 7161 7162 7163 7164 7165 # Determine commands to create old-style static archives. 7166 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7167 old_postinstall_cmds='chmod 644 $oldlib' 7168 old_postuninstall_cmds= 7169 7170 if test -n "$RANLIB"; then 7171 case $host_os in 7172 bitrig* | openbsd*) 7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7174 ;; 7175 *) 7176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7177 ;; 7178 esac 7179 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7180 fi 7181 7182 case $host_os in 7183 darwin*) 7184 lock_old_archive_extraction=yes ;; 7185 *) 7186 lock_old_archive_extraction=no ;; 7187 esac 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 # If no C compiler was specified, use CC. 7228 LTCC=${LTCC-"$CC"} 7229 7230 # If no C compiler flags were specified, use CFLAGS. 7231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7232 7233 # Allow CC to be a program name with arguments. 7234 compiler=$CC 7235 7236 7237 # Check for command to grab the raw symbol name followed by C symbol from nm. 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7239 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7240 if test ${lt_cv_sys_global_symbol_pipe+y} 7241 then : 7242 printf %s "(cached) " >&6 7243 else $as_nop 7244 7245 # These are sane defaults that work on at least a few old systems. 7246 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7247 7248 # Character class describing NM global symbol codes. 7249 symcode='[BCDEGRST]' 7250 7251 # Regexp to match symbols that can be accessed directly from C. 7252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7253 7254 # Define system-specific variables. 7255 case $host_os in 7256 aix*) 7257 symcode='[BCDT]' 7258 ;; 7259 cygwin* | mingw* | pw32* | cegcc*) 7260 symcode='[ABCDGISTW]' 7261 ;; 7262 hpux*) 7263 if test ia64 = "$host_cpu"; then 7264 symcode='[ABCDEGRST]' 7265 fi 7266 ;; 7267 irix* | nonstopux*) 7268 symcode='[BCDEGRST]' 7269 ;; 7270 osf*) 7271 symcode='[BCDEGQRST]' 7272 ;; 7273 solaris*) 7274 symcode='[BDRT]' 7275 ;; 7276 sco3.2v5*) 7277 symcode='[DT]' 7278 ;; 7279 sysv4.2uw2*) 7280 symcode='[DT]' 7281 ;; 7282 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7283 symcode='[ABDT]' 7284 ;; 7285 sysv4) 7286 symcode='[DFNSTU]' 7287 ;; 7288 esac 7289 7290 # If we're using GNU nm, then use its standard symbol codes. 7291 case `$NM -V 2>&1` in 7292 *GNU* | *'with BFD'*) 7293 symcode='[ABCDGIRSTW]' ;; 7294 esac 7295 7296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7297 # Gets list of data symbols to import. 7298 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7299 # Adjust the below global symbol transforms to fixup imported variables. 7300 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7301 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7302 lt_c_name_lib_hook="\ 7303 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7304 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7305 else 7306 # Disable hooks by default. 7307 lt_cv_sys_global_symbol_to_import= 7308 lt_cdecl_hook= 7309 lt_c_name_hook= 7310 lt_c_name_lib_hook= 7311 fi 7312 7313 # Transform an extracted symbol line into a proper C declaration. 7314 # Some systems (esp. on ia64) link data and code symbols differently, 7315 # so use this general approach. 7316 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7317 $lt_cdecl_hook\ 7318 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7319 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7320 7321 # Transform an extracted symbol line into symbol name and symbol address 7322 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7323 $lt_c_name_hook\ 7324 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7325 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7326 7327 # Transform an extracted symbol line into symbol name with lib prefix and 7328 # symbol address. 7329 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7330 $lt_c_name_lib_hook\ 7331 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7332 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7333 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7334 7335 # Handle CRLF in mingw tool chain 7336 opt_cr= 7337 case $build_os in 7338 mingw*) 7339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7340 ;; 7341 esac 7342 7343 # Try without a prefix underscore, then with it. 7344 for ac_symprfx in "" "_"; do 7345 7346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7347 symxfrm="\\1 $ac_symprfx\\2 \\2" 7348 7349 # Write the raw and C identifiers. 7350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7351 # Fake it for dumpbin and say T for any non-static function, 7352 # D for any global variable and I for any imported variable. 7353 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7354 # which start with @ or ?. 7355 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7356 " {last_section=section; section=\$ 3};"\ 7357 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7359 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7360 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7361 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7362 " \$ 0!~/External *\|/{next};"\ 7363 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7364 " {if(hide[section]) next};"\ 7365 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7366 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7367 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7368 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7369 " ' prfx=^$ac_symprfx" 7370 else 7371 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7372 fi 7373 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7374 7375 # Check to see that the pipe works correctly. 7376 pipe_works=no 7377 7378 rm -f conftest* 7379 cat > conftest.$ac_ext <<_LT_EOF 7380 #ifdef __cplusplus 7381 extern "C" { 7382 #endif 7383 char nm_test_var; 7384 void nm_test_func(void); 7385 void nm_test_func(void){} 7386 #ifdef __cplusplus 7387 } 7388 #endif 7389 int main(){nm_test_var='a';nm_test_func();return(0);} 7390 _LT_EOF 7391 7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7393 (eval $ac_compile) 2>&5 7394 ac_status=$? 7395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7396 test $ac_status = 0; }; then 7397 # Now try to grab the symbols. 7398 nlist=conftest.nm 7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7400 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7401 ac_status=$? 7402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7403 test $ac_status = 0; } && test -s "$nlist"; then 7404 # Try sorting and uniquifying the output. 7405 if sort "$nlist" | uniq > "$nlist"T; then 7406 mv -f "$nlist"T "$nlist" 7407 else 7408 rm -f "$nlist"T 7409 fi 7410 7411 # Make sure that we snagged all the symbols we need. 7412 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7413 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7414 cat <<_LT_EOF > conftest.$ac_ext 7415 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7416 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7417 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7418 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7419 # define LT_DLSYM_CONST 7420 #elif defined __osf__ 7421 /* This system does not cope well with relocations in const data. */ 7422 # define LT_DLSYM_CONST 7423 #else 7424 # define LT_DLSYM_CONST const 7425 #endif 7426 7427 #ifdef __cplusplus 7428 extern "C" { 7429 #endif 7430 7431 _LT_EOF 7432 # Now generate the symbol file. 7433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7434 7435 cat <<_LT_EOF >> conftest.$ac_ext 7436 7437 /* The mapping between symbol names and symbols. */ 7438 LT_DLSYM_CONST struct { 7439 const char *name; 7440 void *address; 7441 } 7442 lt__PROGRAM__LTX_preloaded_symbols[] = 7443 { 7444 { "@PROGRAM@", (void *) 0 }, 7445 _LT_EOF 7446 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7447 cat <<\_LT_EOF >> conftest.$ac_ext 7448 {0, (void *) 0} 7449 }; 7450 7451 /* This works around a problem in FreeBSD linker */ 7452 #ifdef FREEBSD_WORKAROUND 7453 static const void *lt_preloaded_setup() { 7454 return lt__PROGRAM__LTX_preloaded_symbols; 7455 } 7456 #endif 7457 7458 #ifdef __cplusplus 7459 } 7460 #endif 7461 _LT_EOF 7462 # Now try linking the two files. 7463 mv conftest.$ac_objext conftstm.$ac_objext 7464 lt_globsym_save_LIBS=$LIBS 7465 lt_globsym_save_CFLAGS=$CFLAGS 7466 LIBS=conftstm.$ac_objext 7467 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7469 (eval $ac_link) 2>&5 7470 ac_status=$? 7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7472 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7473 pipe_works=yes 7474 fi 7475 LIBS=$lt_globsym_save_LIBS 7476 CFLAGS=$lt_globsym_save_CFLAGS 7477 else 7478 echo "cannot find nm_test_func in $nlist" >&5 7479 fi 7480 else 7481 echo "cannot find nm_test_var in $nlist" >&5 7482 fi 7483 else 7484 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7485 fi 7486 else 7487 echo "$progname: failed program was:" >&5 7488 cat conftest.$ac_ext >&5 7489 fi 7490 rm -rf conftest* conftst* 7491 7492 # Do not use the global_symbol_pipe unless it works. 7493 if test yes = "$pipe_works"; then 7494 break 7495 else 7496 lt_cv_sys_global_symbol_pipe= 7497 fi 7498 done 7499 7500 fi 7501 7502 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7503 lt_cv_sys_global_symbol_to_cdecl= 7504 fi 7505 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7507 printf "%s\n" "failed" >&6; } 7508 else 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7510 printf "%s\n" "ok" >&6; } 7511 fi 7512 7513 # Response file support. 7514 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7515 nm_file_list_spec='@' 7516 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7517 nm_file_list_spec='@' 7518 fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7557 printf %s "checking for sysroot... " >&6; } 7558 7559 # Check whether --with-sysroot was given. 7560 if test ${with_sysroot+y} 7561 then : 7562 withval=$with_sysroot; 7563 else $as_nop 7564 with_sysroot=no 7565 fi 7566 7567 7568 lt_sysroot= 7569 case $with_sysroot in #( 7570 yes) 7571 if test yes = "$GCC"; then 7572 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7573 fi 7574 ;; #( 7575 /*) 7576 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7577 ;; #( 7578 no|'') 7579 ;; #( 7580 *) 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7582 printf "%s\n" "$with_sysroot" >&6; } 7583 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7584 ;; 7585 esac 7586 7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7588 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7589 7590 7591 7592 7593 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7595 printf %s "checking for a working dd... " >&6; } 7596 if test ${ac_cv_path_lt_DD+y} 7597 then : 7598 printf %s "(cached) " >&6 7599 else $as_nop 7600 printf 0123456789abcdef0123456789abcdef >conftest.i 7601 cat conftest.i conftest.i >conftest2.i 7602 : ${lt_DD:=$DD} 7603 if test -z "$lt_DD"; then 7604 ac_path_lt_DD_found=false 7605 # Loop through the user's path and test for each of PROGNAME-LIST 7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7607 for as_dir in $PATH 7608 do 7609 IFS=$as_save_IFS 7610 case $as_dir in #((( 7611 '') as_dir=./ ;; 7612 */) ;; 7613 *) as_dir=$as_dir/ ;; 7614 esac 7615 for ac_prog in dd 7616 do 7617 for ac_exec_ext in '' $ac_executable_extensions; do 7618 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7619 as_fn_executable_p "$ac_path_lt_DD" || continue 7620 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7621 cmp -s conftest.i conftest.out \ 7622 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7623 fi 7624 $ac_path_lt_DD_found && break 3 7625 done 7626 done 7627 done 7628 IFS=$as_save_IFS 7629 if test -z "$ac_cv_path_lt_DD"; then 7630 : 7631 fi 7632 else 7633 ac_cv_path_lt_DD=$lt_DD 7634 fi 7635 7636 rm -f conftest.i conftest2.i conftest.out 7637 fi 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7639 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7640 7641 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7643 printf %s "checking how to truncate binary pipes... " >&6; } 7644 if test ${lt_cv_truncate_bin+y} 7645 then : 7646 printf %s "(cached) " >&6 7647 else $as_nop 7648 printf 0123456789abcdef0123456789abcdef >conftest.i 7649 cat conftest.i conftest.i >conftest2.i 7650 lt_cv_truncate_bin= 7651 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7652 cmp -s conftest.i conftest.out \ 7653 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7654 fi 7655 rm -f conftest.i conftest2.i conftest.out 7656 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7657 fi 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7659 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7660 7661 7662 7663 7664 7665 7666 7667 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7668 func_cc_basename () 7669 { 7670 for cc_temp in $*""; do 7671 case $cc_temp in 7672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7674 \-*) ;; 7675 *) break;; 7676 esac 7677 done 7678 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7679 } 7680 7681 # Check whether --enable-libtool-lock was given. 7682 if test ${enable_libtool_lock+y} 7683 then : 7684 enableval=$enable_libtool_lock; 7685 fi 7686 7687 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7688 7689 # Some flags need to be propagated to the compiler or linker for good 7690 # libtool support. 7691 case $host in 7692 ia64-*-hpux*) 7693 # Find out what ABI is being produced by ac_compile, and set mode 7694 # options accordingly. 7695 echo 'int i;' > conftest.$ac_ext 7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7697 (eval $ac_compile) 2>&5 7698 ac_status=$? 7699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7700 test $ac_status = 0; }; then 7701 case `$FILECMD conftest.$ac_objext` in 7702 *ELF-32*) 7703 HPUX_IA64_MODE=32 7704 ;; 7705 *ELF-64*) 7706 HPUX_IA64_MODE=64 7707 ;; 7708 esac 7709 fi 7710 rm -rf conftest* 7711 ;; 7712 *-*-irix6*) 7713 # Find out what ABI is being produced by ac_compile, and set linker 7714 # options accordingly. 7715 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7717 (eval $ac_compile) 2>&5 7718 ac_status=$? 7719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7720 test $ac_status = 0; }; then 7721 if test yes = "$lt_cv_prog_gnu_ld"; then 7722 case `$FILECMD conftest.$ac_objext` in 7723 *32-bit*) 7724 LD="${LD-ld} -melf32bsmip" 7725 ;; 7726 *N32*) 7727 LD="${LD-ld} -melf32bmipn32" 7728 ;; 7729 *64-bit*) 7730 LD="${LD-ld} -melf64bmip" 7731 ;; 7732 esac 7733 else 7734 case `$FILECMD conftest.$ac_objext` in 7735 *32-bit*) 7736 LD="${LD-ld} -32" 7737 ;; 7738 *N32*) 7739 LD="${LD-ld} -n32" 7740 ;; 7741 *64-bit*) 7742 LD="${LD-ld} -64" 7743 ;; 7744 esac 7745 fi 7746 fi 7747 rm -rf conftest* 7748 ;; 7749 7750 mips64*-*linux*) 7751 # Find out what ABI is being produced by ac_compile, and set linker 7752 # options accordingly. 7753 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7755 (eval $ac_compile) 2>&5 7756 ac_status=$? 7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7758 test $ac_status = 0; }; then 7759 emul=elf 7760 case `$FILECMD conftest.$ac_objext` in 7761 *32-bit*) 7762 emul="${emul}32" 7763 ;; 7764 *64-bit*) 7765 emul="${emul}64" 7766 ;; 7767 esac 7768 case `$FILECMD conftest.$ac_objext` in 7769 *MSB*) 7770 emul="${emul}btsmip" 7771 ;; 7772 *LSB*) 7773 emul="${emul}ltsmip" 7774 ;; 7775 esac 7776 case `$FILECMD conftest.$ac_objext` in 7777 *N32*) 7778 emul="${emul}n32" 7779 ;; 7780 esac 7781 LD="${LD-ld} -m $emul" 7782 fi 7783 rm -rf conftest* 7784 ;; 7785 7786 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7787 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7788 # Find out what ABI is being produced by ac_compile, and set linker 7789 # options accordingly. Note that the listed cases only cover the 7790 # situations where additional linker options are needed (such as when 7791 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7792 # vice versa); the common cases where no linker options are needed do 7793 # not appear in the list. 7794 echo 'int i;' > conftest.$ac_ext 7795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7796 (eval $ac_compile) 2>&5 7797 ac_status=$? 7798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7799 test $ac_status = 0; }; then 7800 case `$FILECMD conftest.o` in 7801 *32-bit*) 7802 case $host in 7803 x86_64-*kfreebsd*-gnu) 7804 LD="${LD-ld} -m elf_i386_fbsd" 7805 ;; 7806 x86_64-*linux*) 7807 case `$FILECMD conftest.o` in 7808 *x86-64*) 7809 LD="${LD-ld} -m elf32_x86_64" 7810 ;; 7811 *) 7812 LD="${LD-ld} -m elf_i386" 7813 ;; 7814 esac 7815 ;; 7816 powerpc64le-*linux*) 7817 LD="${LD-ld} -m elf32lppclinux" 7818 ;; 7819 powerpc64-*linux*) 7820 LD="${LD-ld} -m elf32ppclinux" 7821 ;; 7822 s390x-*linux*) 7823 LD="${LD-ld} -m elf_s390" 7824 ;; 7825 sparc64-*linux*) 7826 LD="${LD-ld} -m elf32_sparc" 7827 ;; 7828 esac 7829 ;; 7830 *64-bit*) 7831 case $host in 7832 x86_64-*kfreebsd*-gnu) 7833 LD="${LD-ld} -m elf_x86_64_fbsd" 7834 ;; 7835 x86_64-*linux*) 7836 LD="${LD-ld} -m elf_x86_64" 7837 ;; 7838 powerpcle-*linux*) 7839 LD="${LD-ld} -m elf64lppc" 7840 ;; 7841 powerpc-*linux*) 7842 LD="${LD-ld} -m elf64ppc" 7843 ;; 7844 s390*-*linux*|s390*-*tpf*) 7845 LD="${LD-ld} -m elf64_s390" 7846 ;; 7847 sparc*-*linux*) 7848 LD="${LD-ld} -m elf64_sparc" 7849 ;; 7850 esac 7851 ;; 7852 esac 7853 fi 7854 rm -rf conftest* 7855 ;; 7856 7857 *-*-sco3.2v5*) 7858 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7859 SAVE_CFLAGS=$CFLAGS 7860 CFLAGS="$CFLAGS -belf" 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7862 printf %s "checking whether the C compiler needs -belf... " >&6; } 7863 if test ${lt_cv_cc_needs_belf+y} 7864 then : 7865 printf %s "(cached) " >&6 7866 else $as_nop 7867 ac_ext=c 7868 ac_cpp='$CPP $CPPFLAGS' 7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7872 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874 /* end confdefs.h. */ 7875 7876 int 7877 main (void) 7878 { 7879 7880 ; 7881 return 0; 7882 } 7883 _ACEOF 7884 if ac_fn_c_try_link "$LINENO" 7885 then : 7886 lt_cv_cc_needs_belf=yes 7887 else $as_nop 7888 lt_cv_cc_needs_belf=no 7889 fi 7890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7891 conftest$ac_exeext conftest.$ac_ext 7892 ac_ext=c 7893 ac_cpp='$CPP $CPPFLAGS' 7894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7896 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7897 7898 fi 7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7900 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7901 if test yes != "$lt_cv_cc_needs_belf"; then 7902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7903 CFLAGS=$SAVE_CFLAGS 7904 fi 7905 ;; 7906 *-*solaris*) 7907 # Find out what ABI is being produced by ac_compile, and set linker 7908 # options accordingly. 7909 echo 'int i;' > conftest.$ac_ext 7910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7911 (eval $ac_compile) 2>&5 7912 ac_status=$? 7913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7914 test $ac_status = 0; }; then 7915 case `$FILECMD conftest.o` in 7916 *64-bit*) 7917 case $lt_cv_prog_gnu_ld in 7918 yes*) 7919 case $host in 7920 i?86-*-solaris*|x86_64-*-solaris*) 7921 LD="${LD-ld} -m elf_x86_64" 7922 ;; 7923 sparc*-*-solaris*) 7924 LD="${LD-ld} -m elf64_sparc" 7925 ;; 7926 esac 7927 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7928 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7929 LD=${LD-ld}_sol2 7930 fi 7931 ;; 7932 *) 7933 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7934 LD="${LD-ld} -64" 7935 fi 7936 ;; 7937 esac 7938 ;; 7939 esac 7940 fi 7941 rm -rf conftest* 7942 ;; 7943 esac 7944 7945 need_locks=$enable_libtool_lock 7946 7947 if test -n "$ac_tool_prefix"; then 7948 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7949 set dummy ${ac_tool_prefix}mt; ac_word=$2 7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7951 printf %s "checking for $ac_word... " >&6; } 7952 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7953 then : 7954 printf %s "(cached) " >&6 7955 else $as_nop 7956 if test -n "$MANIFEST_TOOL"; then 7957 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7958 else 7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960 for as_dir in $PATH 7961 do 7962 IFS=$as_save_IFS 7963 case $as_dir in #((( 7964 '') as_dir=./ ;; 7965 */) ;; 7966 *) as_dir=$as_dir/ ;; 7967 esac 7968 for ac_exec_ext in '' $ac_executable_extensions; do 7969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7970 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7972 break 2 7973 fi 7974 done 7975 done 7976 IFS=$as_save_IFS 7977 7978 fi 7979 fi 7980 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7981 if test -n "$MANIFEST_TOOL"; then 7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7983 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7984 else 7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7986 printf "%s\n" "no" >&6; } 7987 fi 7988 7989 7990 fi 7991 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7992 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7993 # Extract the first word of "mt", so it can be a program name with args. 7994 set dummy mt; ac_word=$2 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7996 printf %s "checking for $ac_word... " >&6; } 7997 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7998 then : 7999 printf %s "(cached) " >&6 8000 else $as_nop 8001 if test -n "$ac_ct_MANIFEST_TOOL"; then 8002 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8003 else 8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8005 for as_dir in $PATH 8006 do 8007 IFS=$as_save_IFS 8008 case $as_dir in #((( 8009 '') as_dir=./ ;; 8010 */) ;; 8011 *) as_dir=$as_dir/ ;; 8012 esac 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8015 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019 done 8020 done 8021 IFS=$as_save_IFS 8022 8023 fi 8024 fi 8025 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8026 if test -n "$ac_ct_MANIFEST_TOOL"; then 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8028 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8029 else 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031 printf "%s\n" "no" >&6; } 8032 fi 8033 8034 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8035 MANIFEST_TOOL=":" 8036 else 8037 case $cross_compiling:$ac_tool_warned in 8038 yes:) 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8041 ac_tool_warned=yes ;; 8042 esac 8043 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8044 fi 8045 else 8046 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8047 fi 8048 8049 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8051 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8052 if test ${lt_cv_path_mainfest_tool+y} 8053 then : 8054 printf %s "(cached) " >&6 8055 else $as_nop 8056 lt_cv_path_mainfest_tool=no 8057 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8058 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8059 cat conftest.err >&5 8060 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8061 lt_cv_path_mainfest_tool=yes 8062 fi 8063 rm -f conftest* 8064 fi 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8066 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8067 if test yes != "$lt_cv_path_mainfest_tool"; then 8068 MANIFEST_TOOL=: 8069 fi 8070 8071 8072 8073 8074 8075 8076 case $host_os in 8077 rhapsody* | darwin*) 8078 if test -n "$ac_tool_prefix"; then 8079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8080 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082 printf %s "checking for $ac_word... " >&6; } 8083 if test ${ac_cv_prog_DSYMUTIL+y} 8084 then : 8085 printf %s "(cached) " >&6 8086 else $as_nop 8087 if test -n "$DSYMUTIL"; then 8088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8089 else 8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8091 for as_dir in $PATH 8092 do 8093 IFS=$as_save_IFS 8094 case $as_dir in #((( 8095 '') as_dir=./ ;; 8096 */) ;; 8097 *) as_dir=$as_dir/ ;; 8098 esac 8099 for ac_exec_ext in '' $ac_executable_extensions; do 8100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8101 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8103 break 2 8104 fi 8105 done 8106 done 8107 IFS=$as_save_IFS 8108 8109 fi 8110 fi 8111 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8112 if test -n "$DSYMUTIL"; then 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8114 printf "%s\n" "$DSYMUTIL" >&6; } 8115 else 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8117 printf "%s\n" "no" >&6; } 8118 fi 8119 8120 8121 fi 8122 if test -z "$ac_cv_prog_DSYMUTIL"; then 8123 ac_ct_DSYMUTIL=$DSYMUTIL 8124 # Extract the first word of "dsymutil", so it can be a program name with args. 8125 set dummy dsymutil; ac_word=$2 8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8127 printf %s "checking for $ac_word... " >&6; } 8128 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8129 then : 8130 printf %s "(cached) " >&6 8131 else $as_nop 8132 if test -n "$ac_ct_DSYMUTIL"; then 8133 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8134 else 8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8136 for as_dir in $PATH 8137 do 8138 IFS=$as_save_IFS 8139 case $as_dir in #((( 8140 '') as_dir=./ ;; 8141 */) ;; 8142 *) as_dir=$as_dir/ ;; 8143 esac 8144 for ac_exec_ext in '' $ac_executable_extensions; do 8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8146 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8148 break 2 8149 fi 8150 done 8151 done 8152 IFS=$as_save_IFS 8153 8154 fi 8155 fi 8156 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8157 if test -n "$ac_ct_DSYMUTIL"; then 8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8159 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8160 else 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8162 printf "%s\n" "no" >&6; } 8163 fi 8164 8165 if test "x$ac_ct_DSYMUTIL" = x; then 8166 DSYMUTIL=":" 8167 else 8168 case $cross_compiling:$ac_tool_warned in 8169 yes:) 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8172 ac_tool_warned=yes ;; 8173 esac 8174 DSYMUTIL=$ac_ct_DSYMUTIL 8175 fi 8176 else 8177 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8178 fi 8179 8180 if test -n "$ac_tool_prefix"; then 8181 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8182 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8184 printf %s "checking for $ac_word... " >&6; } 8185 if test ${ac_cv_prog_NMEDIT+y} 8186 then : 8187 printf %s "(cached) " >&6 8188 else $as_nop 8189 if test -n "$NMEDIT"; then 8190 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8191 else 8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193 for as_dir in $PATH 8194 do 8195 IFS=$as_save_IFS 8196 case $as_dir in #((( 8197 '') as_dir=./ ;; 8198 */) ;; 8199 *) as_dir=$as_dir/ ;; 8200 esac 8201 for ac_exec_ext in '' $ac_executable_extensions; do 8202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8205 break 2 8206 fi 8207 done 8208 done 8209 IFS=$as_save_IFS 8210 8211 fi 8212 fi 8213 NMEDIT=$ac_cv_prog_NMEDIT 8214 if test -n "$NMEDIT"; then 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8216 printf "%s\n" "$NMEDIT" >&6; } 8217 else 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8219 printf "%s\n" "no" >&6; } 8220 fi 8221 8222 8223 fi 8224 if test -z "$ac_cv_prog_NMEDIT"; then 8225 ac_ct_NMEDIT=$NMEDIT 8226 # Extract the first word of "nmedit", so it can be a program name with args. 8227 set dummy nmedit; ac_word=$2 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229 printf %s "checking for $ac_word... " >&6; } 8230 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8231 then : 8232 printf %s "(cached) " >&6 8233 else $as_nop 8234 if test -n "$ac_ct_NMEDIT"; then 8235 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8236 else 8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8238 for as_dir in $PATH 8239 do 8240 IFS=$as_save_IFS 8241 case $as_dir in #((( 8242 '') as_dir=./ ;; 8243 */) ;; 8244 *) as_dir=$as_dir/ ;; 8245 esac 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252 done 8253 done 8254 IFS=$as_save_IFS 8255 8256 fi 8257 fi 8258 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8259 if test -n "$ac_ct_NMEDIT"; then 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8261 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8262 else 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264 printf "%s\n" "no" >&6; } 8265 fi 8266 8267 if test "x$ac_ct_NMEDIT" = x; then 8268 NMEDIT=":" 8269 else 8270 case $cross_compiling:$ac_tool_warned in 8271 yes:) 8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8274 ac_tool_warned=yes ;; 8275 esac 8276 NMEDIT=$ac_ct_NMEDIT 8277 fi 8278 else 8279 NMEDIT="$ac_cv_prog_NMEDIT" 8280 fi 8281 8282 if test -n "$ac_tool_prefix"; then 8283 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8284 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8286 printf %s "checking for $ac_word... " >&6; } 8287 if test ${ac_cv_prog_LIPO+y} 8288 then : 8289 printf %s "(cached) " >&6 8290 else $as_nop 8291 if test -n "$LIPO"; then 8292 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8293 else 8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295 for as_dir in $PATH 8296 do 8297 IFS=$as_save_IFS 8298 case $as_dir in #((( 8299 '') as_dir=./ ;; 8300 */) ;; 8301 *) as_dir=$as_dir/ ;; 8302 esac 8303 for ac_exec_ext in '' $ac_executable_extensions; do 8304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8305 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8307 break 2 8308 fi 8309 done 8310 done 8311 IFS=$as_save_IFS 8312 8313 fi 8314 fi 8315 LIPO=$ac_cv_prog_LIPO 8316 if test -n "$LIPO"; then 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8318 printf "%s\n" "$LIPO" >&6; } 8319 else 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321 printf "%s\n" "no" >&6; } 8322 fi 8323 8324 8325 fi 8326 if test -z "$ac_cv_prog_LIPO"; then 8327 ac_ct_LIPO=$LIPO 8328 # Extract the first word of "lipo", so it can be a program name with args. 8329 set dummy lipo; ac_word=$2 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8331 printf %s "checking for $ac_word... " >&6; } 8332 if test ${ac_cv_prog_ac_ct_LIPO+y} 8333 then : 8334 printf %s "(cached) " >&6 8335 else $as_nop 8336 if test -n "$ac_ct_LIPO"; then 8337 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8338 else 8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340 for as_dir in $PATH 8341 do 8342 IFS=$as_save_IFS 8343 case $as_dir in #((( 8344 '') as_dir=./ ;; 8345 */) ;; 8346 *) as_dir=$as_dir/ ;; 8347 esac 8348 for ac_exec_ext in '' $ac_executable_extensions; do 8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8350 ac_cv_prog_ac_ct_LIPO="lipo" 8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8352 break 2 8353 fi 8354 done 8355 done 8356 IFS=$as_save_IFS 8357 8358 fi 8359 fi 8360 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8361 if test -n "$ac_ct_LIPO"; then 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8363 printf "%s\n" "$ac_ct_LIPO" >&6; } 8364 else 8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8366 printf "%s\n" "no" >&6; } 8367 fi 8368 8369 if test "x$ac_ct_LIPO" = x; then 8370 LIPO=":" 8371 else 8372 case $cross_compiling:$ac_tool_warned in 8373 yes:) 8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8375 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8376 ac_tool_warned=yes ;; 8377 esac 8378 LIPO=$ac_ct_LIPO 8379 fi 8380 else 8381 LIPO="$ac_cv_prog_LIPO" 8382 fi 8383 8384 if test -n "$ac_tool_prefix"; then 8385 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8386 set dummy ${ac_tool_prefix}otool; ac_word=$2 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8388 printf %s "checking for $ac_word... " >&6; } 8389 if test ${ac_cv_prog_OTOOL+y} 8390 then : 8391 printf %s "(cached) " >&6 8392 else $as_nop 8393 if test -n "$OTOOL"; then 8394 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8395 else 8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8397 for as_dir in $PATH 8398 do 8399 IFS=$as_save_IFS 8400 case $as_dir in #((( 8401 '') as_dir=./ ;; 8402 */) ;; 8403 *) as_dir=$as_dir/ ;; 8404 esac 8405 for ac_exec_ext in '' $ac_executable_extensions; do 8406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8407 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8409 break 2 8410 fi 8411 done 8412 done 8413 IFS=$as_save_IFS 8414 8415 fi 8416 fi 8417 OTOOL=$ac_cv_prog_OTOOL 8418 if test -n "$OTOOL"; then 8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8420 printf "%s\n" "$OTOOL" >&6; } 8421 else 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8423 printf "%s\n" "no" >&6; } 8424 fi 8425 8426 8427 fi 8428 if test -z "$ac_cv_prog_OTOOL"; then 8429 ac_ct_OTOOL=$OTOOL 8430 # Extract the first word of "otool", so it can be a program name with args. 8431 set dummy otool; ac_word=$2 8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8433 printf %s "checking for $ac_word... " >&6; } 8434 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8435 then : 8436 printf %s "(cached) " >&6 8437 else $as_nop 8438 if test -n "$ac_ct_OTOOL"; then 8439 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8440 else 8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8442 for as_dir in $PATH 8443 do 8444 IFS=$as_save_IFS 8445 case $as_dir in #((( 8446 '') as_dir=./ ;; 8447 */) ;; 8448 *) as_dir=$as_dir/ ;; 8449 esac 8450 for ac_exec_ext in '' $ac_executable_extensions; do 8451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8452 ac_cv_prog_ac_ct_OTOOL="otool" 8453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8454 break 2 8455 fi 8456 done 8457 done 8458 IFS=$as_save_IFS 8459 8460 fi 8461 fi 8462 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8463 if test -n "$ac_ct_OTOOL"; then 8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8465 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8466 else 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8468 printf "%s\n" "no" >&6; } 8469 fi 8470 8471 if test "x$ac_ct_OTOOL" = x; then 8472 OTOOL=":" 8473 else 8474 case $cross_compiling:$ac_tool_warned in 8475 yes:) 8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8477 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8478 ac_tool_warned=yes ;; 8479 esac 8480 OTOOL=$ac_ct_OTOOL 8481 fi 8482 else 8483 OTOOL="$ac_cv_prog_OTOOL" 8484 fi 8485 8486 if test -n "$ac_tool_prefix"; then 8487 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8488 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8490 printf %s "checking for $ac_word... " >&6; } 8491 if test ${ac_cv_prog_OTOOL64+y} 8492 then : 8493 printf %s "(cached) " >&6 8494 else $as_nop 8495 if test -n "$OTOOL64"; then 8496 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8497 else 8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8499 for as_dir in $PATH 8500 do 8501 IFS=$as_save_IFS 8502 case $as_dir in #((( 8503 '') as_dir=./ ;; 8504 */) ;; 8505 *) as_dir=$as_dir/ ;; 8506 esac 8507 for ac_exec_ext in '' $ac_executable_extensions; do 8508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8509 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8511 break 2 8512 fi 8513 done 8514 done 8515 IFS=$as_save_IFS 8516 8517 fi 8518 fi 8519 OTOOL64=$ac_cv_prog_OTOOL64 8520 if test -n "$OTOOL64"; then 8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8522 printf "%s\n" "$OTOOL64" >&6; } 8523 else 8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8525 printf "%s\n" "no" >&6; } 8526 fi 8527 8528 8529 fi 8530 if test -z "$ac_cv_prog_OTOOL64"; then 8531 ac_ct_OTOOL64=$OTOOL64 8532 # Extract the first word of "otool64", so it can be a program name with args. 8533 set dummy otool64; ac_word=$2 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8535 printf %s "checking for $ac_word... " >&6; } 8536 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8537 then : 8538 printf %s "(cached) " >&6 8539 else $as_nop 8540 if test -n "$ac_ct_OTOOL64"; then 8541 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8542 else 8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8544 for as_dir in $PATH 8545 do 8546 IFS=$as_save_IFS 8547 case $as_dir in #((( 8548 '') as_dir=./ ;; 8549 */) ;; 8550 *) as_dir=$as_dir/ ;; 8551 esac 8552 for ac_exec_ext in '' $ac_executable_extensions; do 8553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8554 ac_cv_prog_ac_ct_OTOOL64="otool64" 8555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8556 break 2 8557 fi 8558 done 8559 done 8560 IFS=$as_save_IFS 8561 8562 fi 8563 fi 8564 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8565 if test -n "$ac_ct_OTOOL64"; then 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8567 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8568 else 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8570 printf "%s\n" "no" >&6; } 8571 fi 8572 8573 if test "x$ac_ct_OTOOL64" = x; then 8574 OTOOL64=":" 8575 else 8576 case $cross_compiling:$ac_tool_warned in 8577 yes:) 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8579 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8580 ac_tool_warned=yes ;; 8581 esac 8582 OTOOL64=$ac_ct_OTOOL64 8583 fi 8584 else 8585 OTOOL64="$ac_cv_prog_OTOOL64" 8586 fi 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8615 printf %s "checking for -single_module linker flag... " >&6; } 8616 if test ${lt_cv_apple_cc_single_mod+y} 8617 then : 8618 printf %s "(cached) " >&6 8619 else $as_nop 8620 lt_cv_apple_cc_single_mod=no 8621 if test -z "$LT_MULTI_MODULE"; then 8622 # By default we will add the -single_module flag. You can override 8623 # by either setting the environment variable LT_MULTI_MODULE 8624 # non-empty at configure time, or by adding -multi_module to the 8625 # link flags. 8626 rm -rf libconftest.dylib* 8627 echo "int foo(void){return 1;}" > conftest.c 8628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8629 -dynamiclib -Wl,-single_module conftest.c" >&5 8630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8632 _lt_result=$? 8633 # If there is a non-empty error log, and "single_module" 8634 # appears in it, assume the flag caused a linker warning 8635 if test -s conftest.err && $GREP single_module conftest.err; then 8636 cat conftest.err >&5 8637 # Otherwise, if the output was created with a 0 exit code from 8638 # the compiler, it worked. 8639 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8640 lt_cv_apple_cc_single_mod=yes 8641 else 8642 cat conftest.err >&5 8643 fi 8644 rm -rf libconftest.dylib* 8645 rm -f conftest.* 8646 fi 8647 fi 8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8649 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8650 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8652 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8653 if test ${lt_cv_ld_exported_symbols_list+y} 8654 then : 8655 printf %s "(cached) " >&6 8656 else $as_nop 8657 lt_cv_ld_exported_symbols_list=no 8658 save_LDFLAGS=$LDFLAGS 8659 echo "_main" > conftest.sym 8660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662 /* end confdefs.h. */ 8663 8664 int 8665 main (void) 8666 { 8667 8668 ; 8669 return 0; 8670 } 8671 _ACEOF 8672 if ac_fn_c_try_link "$LINENO" 8673 then : 8674 lt_cv_ld_exported_symbols_list=yes 8675 else $as_nop 8676 lt_cv_ld_exported_symbols_list=no 8677 fi 8678 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8679 conftest$ac_exeext conftest.$ac_ext 8680 LDFLAGS=$save_LDFLAGS 8681 8682 fi 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8684 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8685 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8687 printf %s "checking for -force_load linker flag... " >&6; } 8688 if test ${lt_cv_ld_force_load+y} 8689 then : 8690 printf %s "(cached) " >&6 8691 else $as_nop 8692 lt_cv_ld_force_load=no 8693 cat > conftest.c << _LT_EOF 8694 int forced_loaded() { return 2;} 8695 _LT_EOF 8696 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8697 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8698 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8699 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8700 echo "$RANLIB libconftest.a" >&5 8701 $RANLIB libconftest.a 2>&5 8702 cat > conftest.c << _LT_EOF 8703 int main() { return 0;} 8704 _LT_EOF 8705 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8706 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8707 _lt_result=$? 8708 if test -s conftest.err && $GREP force_load conftest.err; then 8709 cat conftest.err >&5 8710 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8711 lt_cv_ld_force_load=yes 8712 else 8713 cat conftest.err >&5 8714 fi 8715 rm -f conftest.err libconftest.a conftest conftest.c 8716 rm -rf conftest.dSYM 8717 8718 fi 8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8720 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8721 case $host_os in 8722 rhapsody* | darwin1.[012]) 8723 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8724 darwin1.*) 8725 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8726 darwin*) 8727 case $MACOSX_DEPLOYMENT_TARGET,$host in 8728 10.[012],*|,*powerpc*-darwin[5-8]*) 8729 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8730 *) 8731 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8732 esac 8733 ;; 8734 esac 8735 if test yes = "$lt_cv_apple_cc_single_mod"; then 8736 _lt_dar_single_mod='$single_module' 8737 fi 8738 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8739 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8740 else 8741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8742 fi 8743 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8744 _lt_dsymutil='~$DSYMUTIL $lib || :' 8745 else 8746 _lt_dsymutil= 8747 fi 8748 ;; 8749 esac 8750 8751 # func_munge_path_list VARIABLE PATH 8752 # ----------------------------------- 8753 # VARIABLE is name of variable containing _space_ separated list of 8754 # directories to be munged by the contents of PATH, which is string 8755 # having a format: 8756 # "DIR[:DIR]:" 8757 # string "DIR[ DIR]" will be prepended to VARIABLE 8758 # ":DIR[:DIR]" 8759 # string "DIR[ DIR]" will be appended to VARIABLE 8760 # "DIRP[:DIRP]::[DIRA:]DIRA" 8761 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8762 # "DIRA[ DIRA]" will be appended to VARIABLE 8763 # "DIR[:DIR]" 8764 # VARIABLE will be replaced by "DIR[ DIR]" 8765 func_munge_path_list () 8766 { 8767 case x$2 in 8768 x) 8769 ;; 8770 *:) 8771 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8772 ;; 8773 x:*) 8774 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8775 ;; 8776 *::*) 8777 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8778 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8779 ;; 8780 *) 8781 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8782 ;; 8783 esac 8784 } 8785 8786 ac_header= ac_cache= 8787 for ac_item in $ac_header_c_list 8788 do 8789 if test $ac_cache; then 8790 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8791 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8792 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8793 fi 8794 ac_header= ac_cache= 8795 elif test $ac_header; then 8796 ac_cache=$ac_item 8797 else 8798 ac_header=$ac_item 8799 fi 8800 done 8801 8802 8803 8804 8805 8806 8807 8808 8809 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8810 then : 8811 8812 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8813 8814 fi 8815 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8816 " 8817 if test "x$ac_cv_header_dlfcn_h" = xyes 8818 then : 8819 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8820 8821 fi 8822 8823 8824 8825 8826 8827 # Set options 8828 # Check whether --enable-shared was given. 8829 if test ${enable_shared+y} 8830 then : 8831 enableval=$enable_shared; p=${PACKAGE-default} 8832 case $enableval in 8833 yes) enable_shared=yes ;; 8834 no) enable_shared=no ;; 8835 *) 8836 enable_shared=no 8837 # Look at the argument we got. We use all the common list separators. 8838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8839 for pkg in $enableval; do 8840 IFS=$lt_save_ifs 8841 if test "X$pkg" = "X$p"; then 8842 enable_shared=yes 8843 fi 8844 done 8845 IFS=$lt_save_ifs 8846 ;; 8847 esac 8848 else $as_nop 8849 enable_shared=yes 8850 fi 8851 8852 8853 8854 8855 8856 8857 8858 # Check whether --enable-static was given. 8859 if test ${enable_static+y} 8860 then : 8861 enableval=$enable_static; p=${PACKAGE-default} 8862 case $enableval in 8863 yes) enable_static=yes ;; 8864 no) enable_static=no ;; 8865 *) 8866 enable_static=no 8867 # Look at the argument we got. We use all the common list separators. 8868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8869 for pkg in $enableval; do 8870 IFS=$lt_save_ifs 8871 if test "X$pkg" = "X$p"; then 8872 enable_static=yes 8873 fi 8874 done 8875 IFS=$lt_save_ifs 8876 ;; 8877 esac 8878 else $as_nop 8879 enable_static=yes 8880 fi 8881 8882 8883 8884 8885 8886 8887 8888 enable_win32_dll=yes 8889 8890 case $host in 8891 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8892 if test -n "$ac_tool_prefix"; then 8893 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8894 set dummy ${ac_tool_prefix}as; ac_word=$2 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8896 printf %s "checking for $ac_word... " >&6; } 8897 if test ${ac_cv_prog_AS+y} 8898 then : 8899 printf %s "(cached) " >&6 8900 else $as_nop 8901 if test -n "$AS"; then 8902 ac_cv_prog_AS="$AS" # Let the user override the test. 8903 else 8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8905 for as_dir in $PATH 8906 do 8907 IFS=$as_save_IFS 8908 case $as_dir in #((( 8909 '') as_dir=./ ;; 8910 */) ;; 8911 *) as_dir=$as_dir/ ;; 8912 esac 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8915 ac_cv_prog_AS="${ac_tool_prefix}as" 8916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919 done 8920 done 8921 IFS=$as_save_IFS 8922 8923 fi 8924 fi 8925 AS=$ac_cv_prog_AS 8926 if test -n "$AS"; then 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8928 printf "%s\n" "$AS" >&6; } 8929 else 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8931 printf "%s\n" "no" >&6; } 8932 fi 8933 8934 8935 fi 8936 if test -z "$ac_cv_prog_AS"; then 8937 ac_ct_AS=$AS 8938 # Extract the first word of "as", so it can be a program name with args. 8939 set dummy as; ac_word=$2 8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8941 printf %s "checking for $ac_word... " >&6; } 8942 if test ${ac_cv_prog_ac_ct_AS+y} 8943 then : 8944 printf %s "(cached) " >&6 8945 else $as_nop 8946 if test -n "$ac_ct_AS"; then 8947 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8948 else 8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8950 for as_dir in $PATH 8951 do 8952 IFS=$as_save_IFS 8953 case $as_dir in #((( 8954 '') as_dir=./ ;; 8955 */) ;; 8956 *) as_dir=$as_dir/ ;; 8957 esac 8958 for ac_exec_ext in '' $ac_executable_extensions; do 8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8960 ac_cv_prog_ac_ct_AS="as" 8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8962 break 2 8963 fi 8964 done 8965 done 8966 IFS=$as_save_IFS 8967 8968 fi 8969 fi 8970 ac_ct_AS=$ac_cv_prog_ac_ct_AS 8971 if test -n "$ac_ct_AS"; then 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8973 printf "%s\n" "$ac_ct_AS" >&6; } 8974 else 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976 printf "%s\n" "no" >&6; } 8977 fi 8978 8979 if test "x$ac_ct_AS" = x; then 8980 AS="false" 8981 else 8982 case $cross_compiling:$ac_tool_warned in 8983 yes:) 8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8986 ac_tool_warned=yes ;; 8987 esac 8988 AS=$ac_ct_AS 8989 fi 8990 else 8991 AS="$ac_cv_prog_AS" 8992 fi 8993 8994 if test -n "$ac_tool_prefix"; then 8995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8996 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8998 printf %s "checking for $ac_word... " >&6; } 8999 if test ${ac_cv_prog_DLLTOOL+y} 9000 then : 9001 printf %s "(cached) " >&6 9002 else $as_nop 9003 if test -n "$DLLTOOL"; then 9004 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9005 else 9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007 for as_dir in $PATH 9008 do 9009 IFS=$as_save_IFS 9010 case $as_dir in #((( 9011 '') as_dir=./ ;; 9012 */) ;; 9013 *) as_dir=$as_dir/ ;; 9014 esac 9015 for ac_exec_ext in '' $ac_executable_extensions; do 9016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9017 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9019 break 2 9020 fi 9021 done 9022 done 9023 IFS=$as_save_IFS 9024 9025 fi 9026 fi 9027 DLLTOOL=$ac_cv_prog_DLLTOOL 9028 if test -n "$DLLTOOL"; then 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9030 printf "%s\n" "$DLLTOOL" >&6; } 9031 else 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9033 printf "%s\n" "no" >&6; } 9034 fi 9035 9036 9037 fi 9038 if test -z "$ac_cv_prog_DLLTOOL"; then 9039 ac_ct_DLLTOOL=$DLLTOOL 9040 # Extract the first word of "dlltool", so it can be a program name with args. 9041 set dummy dlltool; ac_word=$2 9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9043 printf %s "checking for $ac_word... " >&6; } 9044 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9045 then : 9046 printf %s "(cached) " >&6 9047 else $as_nop 9048 if test -n "$ac_ct_DLLTOOL"; then 9049 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9050 else 9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9052 for as_dir in $PATH 9053 do 9054 IFS=$as_save_IFS 9055 case $as_dir in #((( 9056 '') as_dir=./ ;; 9057 */) ;; 9058 *) as_dir=$as_dir/ ;; 9059 esac 9060 for ac_exec_ext in '' $ac_executable_extensions; do 9061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9062 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9064 break 2 9065 fi 9066 done 9067 done 9068 IFS=$as_save_IFS 9069 9070 fi 9071 fi 9072 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9073 if test -n "$ac_ct_DLLTOOL"; then 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9075 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9076 else 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078 printf "%s\n" "no" >&6; } 9079 fi 9080 9081 if test "x$ac_ct_DLLTOOL" = x; then 9082 DLLTOOL="false" 9083 else 9084 case $cross_compiling:$ac_tool_warned in 9085 yes:) 9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9088 ac_tool_warned=yes ;; 9089 esac 9090 DLLTOOL=$ac_ct_DLLTOOL 9091 fi 9092 else 9093 DLLTOOL="$ac_cv_prog_DLLTOOL" 9094 fi 9095 9096 if test -n "$ac_tool_prefix"; then 9097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9098 set dummy ${ac_tool_prefix}objdump; ac_word=$2 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9100 printf %s "checking for $ac_word... " >&6; } 9101 if test ${ac_cv_prog_OBJDUMP+y} 9102 then : 9103 printf %s "(cached) " >&6 9104 else $as_nop 9105 if test -n "$OBJDUMP"; then 9106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9107 else 9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9109 for as_dir in $PATH 9110 do 9111 IFS=$as_save_IFS 9112 case $as_dir in #((( 9113 '') as_dir=./ ;; 9114 */) ;; 9115 *) as_dir=$as_dir/ ;; 9116 esac 9117 for ac_exec_ext in '' $ac_executable_extensions; do 9118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9119 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9121 break 2 9122 fi 9123 done 9124 done 9125 IFS=$as_save_IFS 9126 9127 fi 9128 fi 9129 OBJDUMP=$ac_cv_prog_OBJDUMP 9130 if test -n "$OBJDUMP"; then 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9132 printf "%s\n" "$OBJDUMP" >&6; } 9133 else 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9135 printf "%s\n" "no" >&6; } 9136 fi 9137 9138 9139 fi 9140 if test -z "$ac_cv_prog_OBJDUMP"; then 9141 ac_ct_OBJDUMP=$OBJDUMP 9142 # Extract the first word of "objdump", so it can be a program name with args. 9143 set dummy objdump; ac_word=$2 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9145 printf %s "checking for $ac_word... " >&6; } 9146 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9147 then : 9148 printf %s "(cached) " >&6 9149 else $as_nop 9150 if test -n "$ac_ct_OBJDUMP"; then 9151 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9152 else 9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9154 for as_dir in $PATH 9155 do 9156 IFS=$as_save_IFS 9157 case $as_dir in #((( 9158 '') as_dir=./ ;; 9159 */) ;; 9160 *) as_dir=$as_dir/ ;; 9161 esac 9162 for ac_exec_ext in '' $ac_executable_extensions; do 9163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9164 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9166 break 2 9167 fi 9168 done 9169 done 9170 IFS=$as_save_IFS 9171 9172 fi 9173 fi 9174 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9175 if test -n "$ac_ct_OBJDUMP"; then 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9177 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9178 else 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9180 printf "%s\n" "no" >&6; } 9181 fi 9182 9183 if test "x$ac_ct_OBJDUMP" = x; then 9184 OBJDUMP="false" 9185 else 9186 case $cross_compiling:$ac_tool_warned in 9187 yes:) 9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9190 ac_tool_warned=yes ;; 9191 esac 9192 OBJDUMP=$ac_ct_OBJDUMP 9193 fi 9194 else 9195 OBJDUMP="$ac_cv_prog_OBJDUMP" 9196 fi 9197 9198 ;; 9199 esac 9200 9201 test -z "$AS" && AS=as 9202 9203 9204 9205 9206 9207 test -z "$DLLTOOL" && DLLTOOL=dlltool 9208 9209 9210 9211 9212 9213 test -z "$OBJDUMP" && OBJDUMP=objdump 9214 9215 9216 9217 9218 9219 9220 9221 enable_dlopen=no 9222 9223 9224 9225 9226 9227 9228 # Check whether --with-pic was given. 9229 if test ${with_pic+y} 9230 then : 9231 withval=$with_pic; lt_p=${PACKAGE-default} 9232 case $withval in 9233 yes|no) pic_mode=$withval ;; 9234 *) 9235 pic_mode=default 9236 # Look at the argument we got. We use all the common list separators. 9237 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9238 for lt_pkg in $withval; do 9239 IFS=$lt_save_ifs 9240 if test "X$lt_pkg" = "X$lt_p"; then 9241 pic_mode=yes 9242 fi 9243 done 9244 IFS=$lt_save_ifs 9245 ;; 9246 esac 9247 else $as_nop 9248 pic_mode=default 9249 fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 # Check whether --enable-fast-install was given. 9259 if test ${enable_fast_install+y} 9260 then : 9261 enableval=$enable_fast_install; p=${PACKAGE-default} 9262 case $enableval in 9263 yes) enable_fast_install=yes ;; 9264 no) enable_fast_install=no ;; 9265 *) 9266 enable_fast_install=no 9267 # Look at the argument we got. We use all the common list separators. 9268 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9269 for pkg in $enableval; do 9270 IFS=$lt_save_ifs 9271 if test "X$pkg" = "X$p"; then 9272 enable_fast_install=yes 9273 fi 9274 done 9275 IFS=$lt_save_ifs 9276 ;; 9277 esac 9278 else $as_nop 9279 enable_fast_install=yes 9280 fi 9281 9282 9283 9284 9285 9286 9287 9288 9289 shared_archive_member_spec= 9290 case $host,$enable_shared in 9291 power*-*-aix[5-9]*,yes) 9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9293 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9294 9295 # Check whether --with-aix-soname was given. 9296 if test ${with_aix_soname+y} 9297 then : 9298 withval=$with_aix_soname; case $withval in 9299 aix|svr4|both) 9300 ;; 9301 *) 9302 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9303 ;; 9304 esac 9305 lt_cv_with_aix_soname=$with_aix_soname 9306 else $as_nop 9307 if test ${lt_cv_with_aix_soname+y} 9308 then : 9309 printf %s "(cached) " >&6 9310 else $as_nop 9311 lt_cv_with_aix_soname=aix 9312 fi 9313 9314 with_aix_soname=$lt_cv_with_aix_soname 9315 fi 9316 9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9318 printf "%s\n" "$with_aix_soname" >&6; } 9319 if test aix != "$with_aix_soname"; then 9320 # For the AIX way of multilib, we name the shared archive member 9321 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9322 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9323 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9324 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9325 if test 64 = "${OBJECT_MODE-32}"; then 9326 shared_archive_member_spec=shr_64 9327 else 9328 shared_archive_member_spec=shr 9329 fi 9330 fi 9331 ;; 9332 *) 9333 with_aix_soname=aix 9334 ;; 9335 esac 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 # This can be used to rebuild libtool when needed 9347 LIBTOOL_DEPS=$ltmain 9348 9349 # Always use our own libtool. 9350 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 test -z "$LN_S" && LN_S="ln -s" 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 if test -n "${ZSH_VERSION+set}"; then 9397 setopt NO_GLOB_SUBST 9398 fi 9399 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9401 printf %s "checking for objdir... " >&6; } 9402 if test ${lt_cv_objdir+y} 9403 then : 9404 printf %s "(cached) " >&6 9405 else $as_nop 9406 rm -f .libs 2>/dev/null 9407 mkdir .libs 2>/dev/null 9408 if test -d .libs; then 9409 lt_cv_objdir=.libs 9410 else 9411 # MS-DOS does not allow filenames that begin with a dot. 9412 lt_cv_objdir=_libs 9413 fi 9414 rmdir .libs 2>/dev/null 9415 fi 9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9417 printf "%s\n" "$lt_cv_objdir" >&6; } 9418 objdir=$lt_cv_objdir 9419 9420 9421 9422 9423 9424 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9425 9426 9427 9428 9429 case $host_os in 9430 aix3*) 9431 # AIX sometimes has problems with the GCC collect2 program. For some 9432 # reason, if we set the COLLECT_NAMES environment variable, the problems 9433 # vanish in a puff of smoke. 9434 if test set != "${COLLECT_NAMES+set}"; then 9435 COLLECT_NAMES= 9436 export COLLECT_NAMES 9437 fi 9438 ;; 9439 esac 9440 9441 # Global variables: 9442 ofile=libtool 9443 can_build_shared=yes 9444 9445 # All known linkers require a '.a' archive for static linking (except MSVC and 9446 # ICC, which need '.lib'). 9447 libext=a 9448 9449 with_gnu_ld=$lt_cv_prog_gnu_ld 9450 9451 old_CC=$CC 9452 old_CFLAGS=$CFLAGS 9453 9454 # Set sane defaults for various variables 9455 test -z "$CC" && CC=cc 9456 test -z "$LTCC" && LTCC=$CC 9457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9458 test -z "$LD" && LD=ld 9459 test -z "$ac_objext" && ac_objext=o 9460 9461 func_cc_basename $compiler 9462 cc_basename=$func_cc_basename_result 9463 9464 9465 # Only perform the check for file, if the check method requires it 9466 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9467 case $deplibs_check_method in 9468 file_magic*) 9469 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9471 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9472 if test ${lt_cv_path_MAGIC_CMD+y} 9473 then : 9474 printf %s "(cached) " >&6 9475 else $as_nop 9476 case $MAGIC_CMD in 9477 [\\/*] | ?:[\\/]*) 9478 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9479 ;; 9480 *) 9481 lt_save_MAGIC_CMD=$MAGIC_CMD 9482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9484 for ac_dir in $ac_dummy; do 9485 IFS=$lt_save_ifs 9486 test -z "$ac_dir" && ac_dir=. 9487 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9488 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9489 if test -n "$file_magic_test_file"; then 9490 case $deplibs_check_method in 9491 "file_magic "*) 9492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9495 $EGREP "$file_magic_regex" > /dev/null; then 9496 : 9497 else 9498 cat <<_LT_EOF 1>&2 9499 9500 *** Warning: the command libtool uses to detect shared libraries, 9501 *** $file_magic_cmd, produces output that libtool cannot recognize. 9502 *** The result is that libtool may fail to recognize shared libraries 9503 *** as such. This will affect the creation of libtool libraries that 9504 *** depend on shared libraries, but programs linked with such libtool 9505 *** libraries will work regardless of this problem. Nevertheless, you 9506 *** may want to report the problem to your system manager and/or to 9507 *** bug-libtool@gnu.org 9508 9509 _LT_EOF 9510 fi ;; 9511 esac 9512 fi 9513 break 9514 fi 9515 done 9516 IFS=$lt_save_ifs 9517 MAGIC_CMD=$lt_save_MAGIC_CMD 9518 ;; 9519 esac 9520 fi 9521 9522 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9523 if test -n "$MAGIC_CMD"; then 9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9525 printf "%s\n" "$MAGIC_CMD" >&6; } 9526 else 9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9528 printf "%s\n" "no" >&6; } 9529 fi 9530 9531 9532 9533 9534 9535 if test -z "$lt_cv_path_MAGIC_CMD"; then 9536 if test -n "$ac_tool_prefix"; then 9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9538 printf %s "checking for file... " >&6; } 9539 if test ${lt_cv_path_MAGIC_CMD+y} 9540 then : 9541 printf %s "(cached) " >&6 9542 else $as_nop 9543 case $MAGIC_CMD in 9544 [\\/*] | ?:[\\/]*) 9545 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9546 ;; 9547 *) 9548 lt_save_MAGIC_CMD=$MAGIC_CMD 9549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9550 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9551 for ac_dir in $ac_dummy; do 9552 IFS=$lt_save_ifs 9553 test -z "$ac_dir" && ac_dir=. 9554 if test -f "$ac_dir/file"; then 9555 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9556 if test -n "$file_magic_test_file"; then 9557 case $deplibs_check_method in 9558 "file_magic "*) 9559 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9560 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9561 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9562 $EGREP "$file_magic_regex" > /dev/null; then 9563 : 9564 else 9565 cat <<_LT_EOF 1>&2 9566 9567 *** Warning: the command libtool uses to detect shared libraries, 9568 *** $file_magic_cmd, produces output that libtool cannot recognize. 9569 *** The result is that libtool may fail to recognize shared libraries 9570 *** as such. This will affect the creation of libtool libraries that 9571 *** depend on shared libraries, but programs linked with such libtool 9572 *** libraries will work regardless of this problem. Nevertheless, you 9573 *** may want to report the problem to your system manager and/or to 9574 *** bug-libtool@gnu.org 9575 9576 _LT_EOF 9577 fi ;; 9578 esac 9579 fi 9580 break 9581 fi 9582 done 9583 IFS=$lt_save_ifs 9584 MAGIC_CMD=$lt_save_MAGIC_CMD 9585 ;; 9586 esac 9587 fi 9588 9589 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9590 if test -n "$MAGIC_CMD"; then 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9592 printf "%s\n" "$MAGIC_CMD" >&6; } 9593 else 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9595 printf "%s\n" "no" >&6; } 9596 fi 9597 9598 9599 else 9600 MAGIC_CMD=: 9601 fi 9602 fi 9603 9604 fi 9605 ;; 9606 esac 9607 9608 # Use C for the default configuration in the libtool script 9609 9610 lt_save_CC=$CC 9611 ac_ext=c 9612 ac_cpp='$CPP $CPPFLAGS' 9613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9615 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9616 9617 9618 # Source file extension for C test sources. 9619 ac_ext=c 9620 9621 # Object file extension for compiled C test sources. 9622 objext=o 9623 objext=$objext 9624 9625 # Code to be used in simple compile tests 9626 lt_simple_compile_test_code="int some_variable = 0;" 9627 9628 # Code to be used in simple link tests 9629 lt_simple_link_test_code='int main(){return(0);}' 9630 9631 9632 9633 9634 9635 9636 9637 # If no C compiler was specified, use CC. 9638 LTCC=${LTCC-"$CC"} 9639 9640 # If no C compiler flags were specified, use CFLAGS. 9641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9642 9643 # Allow CC to be a program name with arguments. 9644 compiler=$CC 9645 9646 # Save the default compiler, since it gets overwritten when the other 9647 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9648 compiler_DEFAULT=$CC 9649 9650 # save warnings/boilerplate of simple test code 9651 ac_outfile=conftest.$ac_objext 9652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9654 _lt_compiler_boilerplate=`cat conftest.err` 9655 $RM conftest* 9656 9657 ac_outfile=conftest.$ac_objext 9658 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9660 _lt_linker_boilerplate=`cat conftest.err` 9661 $RM -r conftest* 9662 9663 9664 ## CAVEAT EMPTOR: 9665 ## There is no encapsulation within the following macros, do not change 9666 ## the running order or otherwise move them around unless you know exactly 9667 ## what you are doing... 9668 if test -n "$compiler"; then 9669 9670 lt_prog_compiler_no_builtin_flag= 9671 9672 if test yes = "$GCC"; then 9673 case $cc_basename in 9674 nvcc*) 9675 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9676 *) 9677 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9678 esac 9679 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9681 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9682 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9683 then : 9684 printf %s "(cached) " >&6 9685 else $as_nop 9686 lt_cv_prog_compiler_rtti_exceptions=no 9687 ac_outfile=conftest.$ac_objext 9688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9689 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9690 # Insert the option either (1) after the last *FLAGS variable, or 9691 # (2) before a word containing "conftest.", or (3) at the end. 9692 # Note that $ac_compile itself does not contain backslashes and begins 9693 # with a dollar sign (not a hyphen), so the echo should work correctly. 9694 # The option is referenced via a variable to avoid confusing sed. 9695 lt_compile=`echo "$ac_compile" | $SED \ 9696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9698 -e 's:$: $lt_compiler_flag:'` 9699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9700 (eval "$lt_compile" 2>conftest.err) 9701 ac_status=$? 9702 cat conftest.err >&5 9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9704 if (exit $ac_status) && test -s "$ac_outfile"; then 9705 # The compiler can only warn and ignore the option if not recognized 9706 # So say no if there are warnings other than the usual output. 9707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9710 lt_cv_prog_compiler_rtti_exceptions=yes 9711 fi 9712 fi 9713 $RM conftest* 9714 9715 fi 9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9717 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9718 9719 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9721 else 9722 : 9723 fi 9724 9725 fi 9726 9727 9728 9729 9730 9731 9732 lt_prog_compiler_wl= 9733 lt_prog_compiler_pic= 9734 lt_prog_compiler_static= 9735 9736 9737 if test yes = "$GCC"; then 9738 lt_prog_compiler_wl='-Wl,' 9739 lt_prog_compiler_static='-static' 9740 9741 case $host_os in 9742 aix*) 9743 # All AIX code is PIC. 9744 if test ia64 = "$host_cpu"; then 9745 # AIX 5 now supports IA64 processor 9746 lt_prog_compiler_static='-Bstatic' 9747 fi 9748 lt_prog_compiler_pic='-fPIC' 9749 ;; 9750 9751 amigaos*) 9752 case $host_cpu in 9753 powerpc) 9754 # see comment about AmigaOS4 .so support 9755 lt_prog_compiler_pic='-fPIC' 9756 ;; 9757 m68k) 9758 # FIXME: we need at least 68020 code to build shared libraries, but 9759 # adding the '-m68020' flag to GCC prevents building anything better, 9760 # like '-m68040'. 9761 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9762 ;; 9763 esac 9764 ;; 9765 9766 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9767 # PIC is the default for these OSes. 9768 ;; 9769 9770 mingw* | cygwin* | pw32* | os2* | cegcc*) 9771 # This hack is so that the source file can tell whether it is being 9772 # built for inclusion in a dll (and should export symbols for example). 9773 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9774 # (--disable-auto-import) libraries 9775 lt_prog_compiler_pic='-DDLL_EXPORT' 9776 case $host_os in 9777 os2*) 9778 lt_prog_compiler_static='$wl-static' 9779 ;; 9780 esac 9781 ;; 9782 9783 darwin* | rhapsody*) 9784 # PIC is the default on this platform 9785 # Common symbols not allowed in MH_DYLIB files 9786 lt_prog_compiler_pic='-fno-common' 9787 ;; 9788 9789 haiku*) 9790 # PIC is the default for Haiku. 9791 # The "-static" flag exists, but is broken. 9792 lt_prog_compiler_static= 9793 ;; 9794 9795 hpux*) 9796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9798 # sets the default TLS model and affects inlining. 9799 case $host_cpu in 9800 hppa*64*) 9801 # +Z the default 9802 ;; 9803 *) 9804 lt_prog_compiler_pic='-fPIC' 9805 ;; 9806 esac 9807 ;; 9808 9809 interix[3-9]*) 9810 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9811 # Instead, we relocate shared libraries at runtime. 9812 ;; 9813 9814 msdosdjgpp*) 9815 # Just because we use GCC doesn't mean we suddenly get shared libraries 9816 # on systems that don't support them. 9817 lt_prog_compiler_can_build_shared=no 9818 enable_shared=no 9819 ;; 9820 9821 *nto* | *qnx*) 9822 # QNX uses GNU C++, but need to define -shared option too, otherwise 9823 # it will coredump. 9824 lt_prog_compiler_pic='-fPIC -shared' 9825 ;; 9826 9827 sysv4*MP*) 9828 if test -d /usr/nec; then 9829 lt_prog_compiler_pic=-Kconform_pic 9830 fi 9831 ;; 9832 9833 *) 9834 lt_prog_compiler_pic='-fPIC' 9835 ;; 9836 esac 9837 9838 case $cc_basename in 9839 nvcc*) # Cuda Compiler Driver 2.2 9840 lt_prog_compiler_wl='-Xlinker ' 9841 if test -n "$lt_prog_compiler_pic"; then 9842 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9843 fi 9844 ;; 9845 esac 9846 else 9847 # PORTME Check for flag to pass linker flags through the system compiler. 9848 case $host_os in 9849 aix*) 9850 lt_prog_compiler_wl='-Wl,' 9851 if test ia64 = "$host_cpu"; then 9852 # AIX 5 now supports IA64 processor 9853 lt_prog_compiler_static='-Bstatic' 9854 else 9855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9856 fi 9857 ;; 9858 9859 darwin* | rhapsody*) 9860 # PIC is the default on this platform 9861 # Common symbols not allowed in MH_DYLIB files 9862 lt_prog_compiler_pic='-fno-common' 9863 case $cc_basename in 9864 nagfor*) 9865 # NAG Fortran compiler 9866 lt_prog_compiler_wl='-Wl,-Wl,,' 9867 lt_prog_compiler_pic='-PIC' 9868 lt_prog_compiler_static='-Bstatic' 9869 ;; 9870 esac 9871 ;; 9872 9873 mingw* | cygwin* | pw32* | os2* | cegcc*) 9874 # This hack is so that the source file can tell whether it is being 9875 # built for inclusion in a dll (and should export symbols for example). 9876 lt_prog_compiler_pic='-DDLL_EXPORT' 9877 case $host_os in 9878 os2*) 9879 lt_prog_compiler_static='$wl-static' 9880 ;; 9881 esac 9882 ;; 9883 9884 hpux9* | hpux10* | hpux11*) 9885 lt_prog_compiler_wl='-Wl,' 9886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9887 # not for PA HP-UX. 9888 case $host_cpu in 9889 hppa*64*|ia64*) 9890 # +Z the default 9891 ;; 9892 *) 9893 lt_prog_compiler_pic='+Z' 9894 ;; 9895 esac 9896 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9897 lt_prog_compiler_static='$wl-a ${wl}archive' 9898 ;; 9899 9900 irix5* | irix6* | nonstopux*) 9901 lt_prog_compiler_wl='-Wl,' 9902 # PIC (with -KPIC) is the default. 9903 lt_prog_compiler_static='-non_shared' 9904 ;; 9905 9906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9907 case $cc_basename in 9908 # old Intel for x86_64, which still supported -KPIC. 9909 ecc*) 9910 lt_prog_compiler_wl='-Wl,' 9911 lt_prog_compiler_pic='-KPIC' 9912 lt_prog_compiler_static='-static' 9913 ;; 9914 # icc used to be incompatible with GCC. 9915 # ICC 10 doesn't accept -KPIC any more. 9916 icc* | ifort*) 9917 lt_prog_compiler_wl='-Wl,' 9918 lt_prog_compiler_pic='-fPIC' 9919 lt_prog_compiler_static='-static' 9920 ;; 9921 # Lahey Fortran 8.1. 9922 lf95*) 9923 lt_prog_compiler_wl='-Wl,' 9924 lt_prog_compiler_pic='--shared' 9925 lt_prog_compiler_static='--static' 9926 ;; 9927 nagfor*) 9928 # NAG Fortran compiler 9929 lt_prog_compiler_wl='-Wl,-Wl,,' 9930 lt_prog_compiler_pic='-PIC' 9931 lt_prog_compiler_static='-Bstatic' 9932 ;; 9933 tcc*) 9934 # Fabrice Bellard et al's Tiny C Compiler 9935 lt_prog_compiler_wl='-Wl,' 9936 lt_prog_compiler_pic='-fPIC' 9937 lt_prog_compiler_static='-static' 9938 ;; 9939 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9940 # Portland Group compilers (*not* the Pentium gcc compiler, 9941 # which looks to be a dead project) 9942 lt_prog_compiler_wl='-Wl,' 9943 lt_prog_compiler_pic='-fpic' 9944 lt_prog_compiler_static='-Bstatic' 9945 ;; 9946 ccc*) 9947 lt_prog_compiler_wl='-Wl,' 9948 # All Alpha code is PIC. 9949 lt_prog_compiler_static='-non_shared' 9950 ;; 9951 xl* | bgxl* | bgf* | mpixl*) 9952 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9953 lt_prog_compiler_wl='-Wl,' 9954 lt_prog_compiler_pic='-qpic' 9955 lt_prog_compiler_static='-qstaticlink' 9956 ;; 9957 *) 9958 case `$CC -V 2>&1 | $SED 5q` in 9959 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9960 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9961 lt_prog_compiler_pic='-KPIC' 9962 lt_prog_compiler_static='-Bstatic' 9963 lt_prog_compiler_wl='' 9964 ;; 9965 *Sun\ F* | *Sun*Fortran*) 9966 lt_prog_compiler_pic='-KPIC' 9967 lt_prog_compiler_static='-Bstatic' 9968 lt_prog_compiler_wl='-Qoption ld ' 9969 ;; 9970 *Sun\ C*) 9971 # Sun C 5.9 9972 lt_prog_compiler_pic='-KPIC' 9973 lt_prog_compiler_static='-Bstatic' 9974 lt_prog_compiler_wl='-Wl,' 9975 ;; 9976 *Intel*\ [CF]*Compiler*) 9977 lt_prog_compiler_wl='-Wl,' 9978 lt_prog_compiler_pic='-fPIC' 9979 lt_prog_compiler_static='-static' 9980 ;; 9981 *Portland\ Group*) 9982 lt_prog_compiler_wl='-Wl,' 9983 lt_prog_compiler_pic='-fpic' 9984 lt_prog_compiler_static='-Bstatic' 9985 ;; 9986 esac 9987 ;; 9988 esac 9989 ;; 9990 9991 newsos6) 9992 lt_prog_compiler_pic='-KPIC' 9993 lt_prog_compiler_static='-Bstatic' 9994 ;; 9995 9996 *nto* | *qnx*) 9997 # QNX uses GNU C++, but need to define -shared option too, otherwise 9998 # it will coredump. 9999 lt_prog_compiler_pic='-fPIC -shared' 10000 ;; 10001 10002 osf3* | osf4* | osf5*) 10003 lt_prog_compiler_wl='-Wl,' 10004 # All OSF/1 code is PIC. 10005 lt_prog_compiler_static='-non_shared' 10006 ;; 10007 10008 rdos*) 10009 lt_prog_compiler_static='-non_shared' 10010 ;; 10011 10012 solaris*) 10013 lt_prog_compiler_pic='-KPIC' 10014 lt_prog_compiler_static='-Bstatic' 10015 case $cc_basename in 10016 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10017 lt_prog_compiler_wl='-Qoption ld ';; 10018 *) 10019 lt_prog_compiler_wl='-Wl,';; 10020 esac 10021 ;; 10022 10023 sunos4*) 10024 lt_prog_compiler_wl='-Qoption ld ' 10025 lt_prog_compiler_pic='-PIC' 10026 lt_prog_compiler_static='-Bstatic' 10027 ;; 10028 10029 sysv4 | sysv4.2uw2* | sysv4.3*) 10030 lt_prog_compiler_wl='-Wl,' 10031 lt_prog_compiler_pic='-KPIC' 10032 lt_prog_compiler_static='-Bstatic' 10033 ;; 10034 10035 sysv4*MP*) 10036 if test -d /usr/nec; then 10037 lt_prog_compiler_pic='-Kconform_pic' 10038 lt_prog_compiler_static='-Bstatic' 10039 fi 10040 ;; 10041 10042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10043 lt_prog_compiler_wl='-Wl,' 10044 lt_prog_compiler_pic='-KPIC' 10045 lt_prog_compiler_static='-Bstatic' 10046 ;; 10047 10048 unicos*) 10049 lt_prog_compiler_wl='-Wl,' 10050 lt_prog_compiler_can_build_shared=no 10051 ;; 10052 10053 uts4*) 10054 lt_prog_compiler_pic='-pic' 10055 lt_prog_compiler_static='-Bstatic' 10056 ;; 10057 10058 *) 10059 lt_prog_compiler_can_build_shared=no 10060 ;; 10061 esac 10062 fi 10063 10064 case $host_os in 10065 # For platforms that do not support PIC, -DPIC is meaningless: 10066 *djgpp*) 10067 lt_prog_compiler_pic= 10068 ;; 10069 *) 10070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10071 ;; 10072 esac 10073 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10075 printf %s "checking for $compiler option to produce PIC... " >&6; } 10076 if test ${lt_cv_prog_compiler_pic+y} 10077 then : 10078 printf %s "(cached) " >&6 10079 else $as_nop 10080 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10081 fi 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10083 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10084 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10085 10086 # 10087 # Check to make sure the PIC flag actually works. 10088 # 10089 if test -n "$lt_prog_compiler_pic"; then 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10091 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10092 if test ${lt_cv_prog_compiler_pic_works+y} 10093 then : 10094 printf %s "(cached) " >&6 10095 else $as_nop 10096 lt_cv_prog_compiler_pic_works=no 10097 ac_outfile=conftest.$ac_objext 10098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10100 # Insert the option either (1) after the last *FLAGS variable, or 10101 # (2) before a word containing "conftest.", or (3) at the end. 10102 # Note that $ac_compile itself does not contain backslashes and begins 10103 # with a dollar sign (not a hyphen), so the echo should work correctly. 10104 # The option is referenced via a variable to avoid confusing sed. 10105 lt_compile=`echo "$ac_compile" | $SED \ 10106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10108 -e 's:$: $lt_compiler_flag:'` 10109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10110 (eval "$lt_compile" 2>conftest.err) 10111 ac_status=$? 10112 cat conftest.err >&5 10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10114 if (exit $ac_status) && test -s "$ac_outfile"; then 10115 # The compiler can only warn and ignore the option if not recognized 10116 # So say no if there are warnings other than the usual output. 10117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10120 lt_cv_prog_compiler_pic_works=yes 10121 fi 10122 fi 10123 $RM conftest* 10124 10125 fi 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10127 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10128 10129 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10130 case $lt_prog_compiler_pic in 10131 "" | " "*) ;; 10132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10133 esac 10134 else 10135 lt_prog_compiler_pic= 10136 lt_prog_compiler_can_build_shared=no 10137 fi 10138 10139 fi 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 # 10152 # Check to make sure the static flag actually works. 10153 # 10154 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10156 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10157 if test ${lt_cv_prog_compiler_static_works+y} 10158 then : 10159 printf %s "(cached) " >&6 10160 else $as_nop 10161 lt_cv_prog_compiler_static_works=no 10162 save_LDFLAGS=$LDFLAGS 10163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10164 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10166 # The linker can only warn and ignore the option if not recognized 10167 # So say no if there are warnings 10168 if test -s conftest.err; then 10169 # Append any errors to the config.log. 10170 cat conftest.err 1>&5 10171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10173 if diff conftest.exp conftest.er2 >/dev/null; then 10174 lt_cv_prog_compiler_static_works=yes 10175 fi 10176 else 10177 lt_cv_prog_compiler_static_works=yes 10178 fi 10179 fi 10180 $RM -r conftest* 10181 LDFLAGS=$save_LDFLAGS 10182 10183 fi 10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10185 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10186 10187 if test yes = "$lt_cv_prog_compiler_static_works"; then 10188 : 10189 else 10190 lt_prog_compiler_static= 10191 fi 10192 10193 10194 10195 10196 10197 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10200 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10201 if test ${lt_cv_prog_compiler_c_o+y} 10202 then : 10203 printf %s "(cached) " >&6 10204 else $as_nop 10205 lt_cv_prog_compiler_c_o=no 10206 $RM -r conftest 2>/dev/null 10207 mkdir conftest 10208 cd conftest 10209 mkdir out 10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10211 10212 lt_compiler_flag="-o out/conftest2.$ac_objext" 10213 # Insert the option either (1) after the last *FLAGS variable, or 10214 # (2) before a word containing "conftest.", or (3) at the end. 10215 # Note that $ac_compile itself does not contain backslashes and begins 10216 # with a dollar sign (not a hyphen), so the echo should work correctly. 10217 lt_compile=`echo "$ac_compile" | $SED \ 10218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10220 -e 's:$: $lt_compiler_flag:'` 10221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10222 (eval "$lt_compile" 2>out/conftest.err) 10223 ac_status=$? 10224 cat out/conftest.err >&5 10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10226 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10227 then 10228 # The compiler can only warn and ignore the option if not recognized 10229 # So say no if there are warnings 10230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10233 lt_cv_prog_compiler_c_o=yes 10234 fi 10235 fi 10236 chmod u+w . 2>&5 10237 $RM conftest* 10238 # SGI C++ compiler will create directory out/ii_files/ for 10239 # template instantiation 10240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10241 $RM out/* && rmdir out 10242 cd .. 10243 $RM -r conftest 10244 $RM conftest* 10245 10246 fi 10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10248 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10249 10250 10251 10252 10253 10254 10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10256 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10257 if test ${lt_cv_prog_compiler_c_o+y} 10258 then : 10259 printf %s "(cached) " >&6 10260 else $as_nop 10261 lt_cv_prog_compiler_c_o=no 10262 $RM -r conftest 2>/dev/null 10263 mkdir conftest 10264 cd conftest 10265 mkdir out 10266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10267 10268 lt_compiler_flag="-o out/conftest2.$ac_objext" 10269 # Insert the option either (1) after the last *FLAGS variable, or 10270 # (2) before a word containing "conftest.", or (3) at the end. 10271 # Note that $ac_compile itself does not contain backslashes and begins 10272 # with a dollar sign (not a hyphen), so the echo should work correctly. 10273 lt_compile=`echo "$ac_compile" | $SED \ 10274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10276 -e 's:$: $lt_compiler_flag:'` 10277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10278 (eval "$lt_compile" 2>out/conftest.err) 10279 ac_status=$? 10280 cat out/conftest.err >&5 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10283 then 10284 # The compiler can only warn and ignore the option if not recognized 10285 # So say no if there are warnings 10286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10289 lt_cv_prog_compiler_c_o=yes 10290 fi 10291 fi 10292 chmod u+w . 2>&5 10293 $RM conftest* 10294 # SGI C++ compiler will create directory out/ii_files/ for 10295 # template instantiation 10296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10297 $RM out/* && rmdir out 10298 cd .. 10299 $RM -r conftest 10300 $RM conftest* 10301 10302 fi 10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10304 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10305 10306 10307 10308 10309 hard_links=nottested 10310 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10311 # do not overwrite the value of need_locks provided by the user 10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10313 printf %s "checking if we can lock with hard links... " >&6; } 10314 hard_links=yes 10315 $RM conftest* 10316 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10317 touch conftest.a 10318 ln conftest.a conftest.b 2>&5 || hard_links=no 10319 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10321 printf "%s\n" "$hard_links" >&6; } 10322 if test no = "$hard_links"; then 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10324 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10325 need_locks=warn 10326 fi 10327 else 10328 need_locks=no 10329 fi 10330 10331 10332 10333 10334 10335 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10337 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10338 10339 runpath_var= 10340 allow_undefined_flag= 10341 always_export_symbols=no 10342 archive_cmds= 10343 archive_expsym_cmds= 10344 compiler_needs_object=no 10345 enable_shared_with_static_runtimes=no 10346 export_dynamic_flag_spec= 10347 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10348 hardcode_automatic=no 10349 hardcode_direct=no 10350 hardcode_direct_absolute=no 10351 hardcode_libdir_flag_spec= 10352 hardcode_libdir_separator= 10353 hardcode_minus_L=no 10354 hardcode_shlibpath_var=unsupported 10355 inherit_rpath=no 10356 link_all_deplibs=unknown 10357 module_cmds= 10358 module_expsym_cmds= 10359 old_archive_from_new_cmds= 10360 old_archive_from_expsyms_cmds= 10361 thread_safe_flag_spec= 10362 whole_archive_flag_spec= 10363 # include_expsyms should be a list of space-separated symbols to be *always* 10364 # included in the symbol list 10365 include_expsyms= 10366 # exclude_expsyms can be an extended regexp of symbols to exclude 10367 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10368 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10369 # as well as any symbol that contains 'd'. 10370 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10372 # platforms (ab)use it in PIC code, but their linkers get confused if 10373 # the symbol is explicitly referenced. Since portable code cannot 10374 # rely on this symbol name, it's probably fine to never include it in 10375 # preloaded symbol tables. 10376 # Exclude shared library initialization/finalization symbols. 10377 extract_expsyms_cmds= 10378 10379 case $host_os in 10380 cygwin* | mingw* | pw32* | cegcc*) 10381 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10382 # When not using gcc, we currently assume that we are using 10383 # Microsoft Visual C++ or Intel C++ Compiler. 10384 if test yes != "$GCC"; then 10385 with_gnu_ld=no 10386 fi 10387 ;; 10388 interix*) 10389 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10390 with_gnu_ld=yes 10391 ;; 10392 openbsd* | bitrig*) 10393 with_gnu_ld=no 10394 ;; 10395 esac 10396 10397 ld_shlibs=yes 10398 10399 # On some targets, GNU ld is compatible enough with the native linker 10400 # that we're better off using the native interface for both. 10401 lt_use_gnu_ld_interface=no 10402 if test yes = "$with_gnu_ld"; then 10403 case $host_os in 10404 aix*) 10405 # The AIX port of GNU ld has always aspired to compatibility 10406 # with the native linker. However, as the warning in the GNU ld 10407 # block says, versions before 2.19.5* couldn't really create working 10408 # shared libraries, regardless of the interface used. 10409 case `$LD -v 2>&1` in 10410 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10411 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10412 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10413 *) 10414 lt_use_gnu_ld_interface=yes 10415 ;; 10416 esac 10417 ;; 10418 *) 10419 lt_use_gnu_ld_interface=yes 10420 ;; 10421 esac 10422 fi 10423 10424 if test yes = "$lt_use_gnu_ld_interface"; then 10425 # If archive_cmds runs LD, not CC, wlarc should be empty 10426 wlarc='$wl' 10427 10428 # Set some defaults for GNU ld with shared library support. These 10429 # are reset later if shared libraries are not supported. Putting them 10430 # here allows them to be overridden if necessary. 10431 runpath_var=LD_RUN_PATH 10432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10433 export_dynamic_flag_spec='$wl--export-dynamic' 10434 # ancient GNU ld didn't support --whole-archive et. al. 10435 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10436 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10437 else 10438 whole_archive_flag_spec= 10439 fi 10440 supports_anon_versioning=no 10441 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10442 *GNU\ gold*) supports_anon_versioning=yes ;; 10443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10446 *\ 2.11.*) ;; # other 2.11 versions 10447 *) supports_anon_versioning=yes ;; 10448 esac 10449 10450 # See if GNU ld supports shared libraries. 10451 case $host_os in 10452 aix[3-9]*) 10453 # On AIX/PPC, the GNU linker is very broken 10454 if test ia64 != "$host_cpu"; then 10455 ld_shlibs=no 10456 cat <<_LT_EOF 1>&2 10457 10458 *** Warning: the GNU linker, at least up to release 2.19, is reported 10459 *** to be unable to reliably create shared libraries on AIX. 10460 *** Therefore, libtool is disabling shared libraries support. If you 10461 *** really care for shared libraries, you may want to install binutils 10462 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10463 *** You will then need to restart the configuration process. 10464 10465 _LT_EOF 10466 fi 10467 ;; 10468 10469 amigaos*) 10470 case $host_cpu in 10471 powerpc) 10472 # see comment about AmigaOS4 .so support 10473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10474 archive_expsym_cmds='' 10475 ;; 10476 m68k) 10477 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)' 10478 hardcode_libdir_flag_spec='-L$libdir' 10479 hardcode_minus_L=yes 10480 ;; 10481 esac 10482 ;; 10483 10484 beos*) 10485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10486 allow_undefined_flag=unsupported 10487 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10488 # support --undefined. This deserves some investigation. FIXME 10489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10490 else 10491 ld_shlibs=no 10492 fi 10493 ;; 10494 10495 cygwin* | mingw* | pw32* | cegcc*) 10496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10497 # as there is no search path for DLLs. 10498 hardcode_libdir_flag_spec='-L$libdir' 10499 export_dynamic_flag_spec='$wl--export-all-symbols' 10500 allow_undefined_flag=unsupported 10501 always_export_symbols=no 10502 enable_shared_with_static_runtimes=yes 10503 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' 10504 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10505 10506 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10508 # If the export-symbols file already is a .def file, use it as 10509 # is; otherwise, prepend EXPORTS... 10510 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10511 cp $export_symbols $output_objdir/$soname.def; 10512 else 10513 echo EXPORTS > $output_objdir/$soname.def; 10514 cat $export_symbols >> $output_objdir/$soname.def; 10515 fi~ 10516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10517 else 10518 ld_shlibs=no 10519 fi 10520 ;; 10521 10522 haiku*) 10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10524 link_all_deplibs=yes 10525 ;; 10526 10527 os2*) 10528 hardcode_libdir_flag_spec='-L$libdir' 10529 hardcode_minus_L=yes 10530 allow_undefined_flag=unsupported 10531 shrext_cmds=.dll 10532 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10533 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10534 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10535 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10536 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10537 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10538 emximp -o $lib $output_objdir/$libname.def' 10539 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10540 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10541 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10542 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10543 prefix_cmds="$SED"~ 10544 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10545 prefix_cmds="$prefix_cmds -e 1d"; 10546 fi~ 10547 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10548 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10549 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10550 emximp -o $lib $output_objdir/$libname.def' 10551 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10552 enable_shared_with_static_runtimes=yes 10553 file_list_spec='@' 10554 ;; 10555 10556 interix[3-9]*) 10557 hardcode_direct=no 10558 hardcode_shlibpath_var=no 10559 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10560 export_dynamic_flag_spec='$wl-E' 10561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10562 # Instead, shared libraries are loaded at an image base (0x10000000 by 10563 # default) and relocated if they conflict, which is a slow very memory 10564 # consuming and fragmenting process. To avoid this, we pick a random, 10565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10566 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10568 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' 10569 ;; 10570 10571 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10572 tmp_diet=no 10573 if test linux-dietlibc = "$host_os"; then 10574 case $cc_basename in 10575 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10576 esac 10577 fi 10578 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10579 && test no = "$tmp_diet" 10580 then 10581 tmp_addflag=' $pic_flag' 10582 tmp_sharedflag='-shared' 10583 case $cc_basename,$host_cpu in 10584 pgcc*) # Portland Group C compiler 10585 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' 10586 tmp_addflag=' $pic_flag' 10587 ;; 10588 pgf77* | pgf90* | pgf95* | pgfortran*) 10589 # Portland Group f77 and f90 compilers 10590 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' 10591 tmp_addflag=' $pic_flag -Mnomain' ;; 10592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10593 tmp_addflag=' -i_dynamic' ;; 10594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10595 tmp_addflag=' -i_dynamic -nofor_main' ;; 10596 ifc* | ifort*) # Intel Fortran compiler 10597 tmp_addflag=' -nofor_main' ;; 10598 lf95*) # Lahey Fortran 8.1 10599 whole_archive_flag_spec= 10600 tmp_sharedflag='--shared' ;; 10601 nagfor*) # NAGFOR 5.3 10602 tmp_sharedflag='-Wl,-shared' ;; 10603 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10604 tmp_sharedflag='-qmkshrobj' 10605 tmp_addflag= ;; 10606 nvcc*) # Cuda Compiler Driver 2.2 10607 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' 10608 compiler_needs_object=yes 10609 ;; 10610 esac 10611 case `$CC -V 2>&1 | $SED 5q` in 10612 *Sun\ C*) # Sun C 5.9 10613 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' 10614 compiler_needs_object=yes 10615 tmp_sharedflag='-G' ;; 10616 *Sun\ F*) # Sun Fortran 8.3 10617 tmp_sharedflag='-G' ;; 10618 esac 10619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10620 10621 if test yes = "$supports_anon_versioning"; then 10622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10623 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10624 echo "local: *; };" >> $output_objdir/$libname.ver~ 10625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10626 fi 10627 10628 case $cc_basename in 10629 tcc*) 10630 export_dynamic_flag_spec='-rdynamic' 10631 ;; 10632 xlf* | bgf* | bgxlf* | mpixlf*) 10633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10636 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10637 if test yes = "$supports_anon_versioning"; then 10638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10639 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10640 echo "local: *; };" >> $output_objdir/$libname.ver~ 10641 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10642 fi 10643 ;; 10644 esac 10645 else 10646 ld_shlibs=no 10647 fi 10648 ;; 10649 10650 netbsd*) 10651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10653 wlarc= 10654 else 10655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10657 fi 10658 ;; 10659 10660 solaris*) 10661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10662 ld_shlibs=no 10663 cat <<_LT_EOF 1>&2 10664 10665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10666 *** create shared libraries on Solaris systems. Therefore, libtool 10667 *** is disabling shared libraries support. We urge you to upgrade GNU 10668 *** binutils to release 2.9.1 or newer. Another option is to modify 10669 *** your PATH or compiler configuration so that the native linker is 10670 *** used, and then restart. 10671 10672 _LT_EOF 10673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10676 else 10677 ld_shlibs=no 10678 fi 10679 ;; 10680 10681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10682 case `$LD -v 2>&1` in 10683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10684 ld_shlibs=no 10685 cat <<_LT_EOF 1>&2 10686 10687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10688 *** reliably create shared libraries on SCO systems. Therefore, libtool 10689 *** is disabling shared libraries support. We urge you to upgrade GNU 10690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10691 *** your PATH or compiler configuration so that the native linker is 10692 *** used, and then restart. 10693 10694 _LT_EOF 10695 ;; 10696 *) 10697 # For security reasons, it is highly recommended that you always 10698 # use absolute paths for naming shared libraries, and exclude the 10699 # DT_RUNPATH tag from executables and libraries. But doing so 10700 # requires that you compile everything twice, which is a pain. 10701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10705 else 10706 ld_shlibs=no 10707 fi 10708 ;; 10709 esac 10710 ;; 10711 10712 sunos4*) 10713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10714 wlarc= 10715 hardcode_direct=yes 10716 hardcode_shlibpath_var=no 10717 ;; 10718 10719 *) 10720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10723 else 10724 ld_shlibs=no 10725 fi 10726 ;; 10727 esac 10728 10729 if test no = "$ld_shlibs"; then 10730 runpath_var= 10731 hardcode_libdir_flag_spec= 10732 export_dynamic_flag_spec= 10733 whole_archive_flag_spec= 10734 fi 10735 else 10736 # PORTME fill in a description of your system's linker (not GNU ld) 10737 case $host_os in 10738 aix3*) 10739 allow_undefined_flag=unsupported 10740 always_export_symbols=yes 10741 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' 10742 # Note: this linker hardcodes the directories in LIBPATH if there 10743 # are no directories specified by -L. 10744 hardcode_minus_L=yes 10745 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10746 # Neither direct hardcoding nor static linking is supported with a 10747 # broken collect2. 10748 hardcode_direct=unsupported 10749 fi 10750 ;; 10751 10752 aix[4-9]*) 10753 if test ia64 = "$host_cpu"; then 10754 # On IA64, the linker does run time linking by default, so we don't 10755 # have to do anything special. 10756 aix_use_runtimelinking=no 10757 exp_sym_flag='-Bexport' 10758 no_entry_flag= 10759 else 10760 # If we're using GNU nm, then we don't want the "-C" option. 10761 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10762 # Without the "-l" option, or with the "-B" option, AIX nm treats 10763 # weak defined symbols like other global defined symbols, whereas 10764 # GNU nm marks them as "W". 10765 # While the 'weak' keyword is ignored in the Export File, we need 10766 # it in the Import File for the 'aix-soname' feature, so we have 10767 # to replace the "-B" option with "-P" for AIX nm. 10768 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10769 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10770 else 10771 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10772 fi 10773 aix_use_runtimelinking=no 10774 10775 # Test if we are trying to use run time linking or normal 10776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10777 # have runtime linking enabled, and use it for executables. 10778 # For shared libraries, we enable/disable runtime linking 10779 # depending on the kind of the shared library created - 10780 # when "with_aix_soname,aix_use_runtimelinking" is: 10781 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10782 # "aix,yes" lib.so shared, rtl:yes, for executables 10783 # lib.a static archive 10784 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10785 # lib.a(lib.so.V) shared, rtl:no, for executables 10786 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10787 # lib.a(lib.so.V) shared, rtl:no 10788 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10789 # lib.a static archive 10790 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10791 for ld_flag in $LDFLAGS; do 10792 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10793 aix_use_runtimelinking=yes 10794 break 10795 fi 10796 done 10797 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10798 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10799 # so we don't have lib.a shared libs to link our executables. 10800 # We have to force runtime linking in this case. 10801 aix_use_runtimelinking=yes 10802 LDFLAGS="$LDFLAGS -Wl,-brtl" 10803 fi 10804 ;; 10805 esac 10806 10807 exp_sym_flag='-bexport' 10808 no_entry_flag='-bnoentry' 10809 fi 10810 10811 # When large executables or shared objects are built, AIX ld can 10812 # have problems creating the table of contents. If linking a library 10813 # or program results in "error TOC overflow" add -mminimal-toc to 10814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10816 10817 archive_cmds='' 10818 hardcode_direct=yes 10819 hardcode_direct_absolute=yes 10820 hardcode_libdir_separator=':' 10821 link_all_deplibs=yes 10822 file_list_spec='$wl-f,' 10823 case $with_aix_soname,$aix_use_runtimelinking in 10824 aix,*) ;; # traditional, no import file 10825 svr4,* | *,yes) # use import file 10826 # The Import File defines what to hardcode. 10827 hardcode_direct=no 10828 hardcode_direct_absolute=no 10829 ;; 10830 esac 10831 10832 if test yes = "$GCC"; then 10833 case $host_os in aix4.[012]|aix4.[012].*) 10834 # We only want to do this on AIX 4.2 and lower, the check 10835 # below for broken collect2 doesn't work under 4.3+ 10836 collect2name=`$CC -print-prog-name=collect2` 10837 if test -f "$collect2name" && 10838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10839 then 10840 # We have reworked collect2 10841 : 10842 else 10843 # We have old collect2 10844 hardcode_direct=unsupported 10845 # It fails to find uninstalled libraries when the uninstalled 10846 # path is not listed in the libpath. Setting hardcode_minus_L 10847 # to unsupported forces relinking 10848 hardcode_minus_L=yes 10849 hardcode_libdir_flag_spec='-L$libdir' 10850 hardcode_libdir_separator= 10851 fi 10852 ;; 10853 esac 10854 shared_flag='-shared' 10855 if test yes = "$aix_use_runtimelinking"; then 10856 shared_flag="$shared_flag "'$wl-G' 10857 fi 10858 # Need to ensure runtime linking is disabled for the traditional 10859 # shared library, or the linker may eventually find shared libraries 10860 # /with/ Import File - we do not want to mix them. 10861 shared_flag_aix='-shared' 10862 shared_flag_svr4='-shared $wl-G' 10863 else 10864 # not using gcc 10865 if test ia64 = "$host_cpu"; then 10866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10867 # chokes on -Wl,-G. The following line is correct: 10868 shared_flag='-G' 10869 else 10870 if test yes = "$aix_use_runtimelinking"; then 10871 shared_flag='$wl-G' 10872 else 10873 shared_flag='$wl-bM:SRE' 10874 fi 10875 shared_flag_aix='$wl-bM:SRE' 10876 shared_flag_svr4='$wl-G' 10877 fi 10878 fi 10879 10880 export_dynamic_flag_spec='$wl-bexpall' 10881 # It seems that -bexpall does not export symbols beginning with 10882 # underscore (_), so it is better to generate a list of symbols to export. 10883 always_export_symbols=yes 10884 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10885 # Warning - without using the other runtime loading flags (-brtl), 10886 # -berok will link without error, but may produce a broken library. 10887 allow_undefined_flag='-berok' 10888 # Determine the default libpath from the value encoded in an 10889 # empty executable. 10890 if test set = "${lt_cv_aix_libpath+set}"; then 10891 aix_libpath=$lt_cv_aix_libpath 10892 else 10893 if test ${lt_cv_aix_libpath_+y} 10894 then : 10895 printf %s "(cached) " >&6 10896 else $as_nop 10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898 /* end confdefs.h. */ 10899 10900 int 10901 main (void) 10902 { 10903 10904 ; 10905 return 0; 10906 } 10907 _ACEOF 10908 if ac_fn_c_try_link "$LINENO" 10909 then : 10910 10911 lt_aix_libpath_sed=' 10912 /Import File Strings/,/^$/ { 10913 /^0/ { 10914 s/^0 *\([^ ]*\) *$/\1/ 10915 p 10916 } 10917 }' 10918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10919 # Check for a 64-bit object if we didn't find anything. 10920 if test -z "$lt_cv_aix_libpath_"; then 10921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10922 fi 10923 fi 10924 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10925 conftest$ac_exeext conftest.$ac_ext 10926 if test -z "$lt_cv_aix_libpath_"; then 10927 lt_cv_aix_libpath_=/usr/lib:/lib 10928 fi 10929 10930 fi 10931 10932 aix_libpath=$lt_cv_aix_libpath_ 10933 fi 10934 10935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10936 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10937 else 10938 if test ia64 = "$host_cpu"; then 10939 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10940 allow_undefined_flag="-z nodefs" 10941 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" 10942 else 10943 # Determine the default libpath from the value encoded in an 10944 # empty executable. 10945 if test set = "${lt_cv_aix_libpath+set}"; then 10946 aix_libpath=$lt_cv_aix_libpath 10947 else 10948 if test ${lt_cv_aix_libpath_+y} 10949 then : 10950 printf %s "(cached) " >&6 10951 else $as_nop 10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953 /* end confdefs.h. */ 10954 10955 int 10956 main (void) 10957 { 10958 10959 ; 10960 return 0; 10961 } 10962 _ACEOF 10963 if ac_fn_c_try_link "$LINENO" 10964 then : 10965 10966 lt_aix_libpath_sed=' 10967 /Import File Strings/,/^$/ { 10968 /^0/ { 10969 s/^0 *\([^ ]*\) *$/\1/ 10970 p 10971 } 10972 }' 10973 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10974 # Check for a 64-bit object if we didn't find anything. 10975 if test -z "$lt_cv_aix_libpath_"; then 10976 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10977 fi 10978 fi 10979 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10980 conftest$ac_exeext conftest.$ac_ext 10981 if test -z "$lt_cv_aix_libpath_"; then 10982 lt_cv_aix_libpath_=/usr/lib:/lib 10983 fi 10984 10985 fi 10986 10987 aix_libpath=$lt_cv_aix_libpath_ 10988 fi 10989 10990 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10991 # Warning - without using the other run time loading flags, 10992 # -berok will link without error, but may produce a broken library. 10993 no_undefined_flag=' $wl-bernotok' 10994 allow_undefined_flag=' $wl-berok' 10995 if test yes = "$with_gnu_ld"; then 10996 # We only use this code for GNU lds that support --whole-archive. 10997 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10998 else 10999 # Exported symbols can be pulled into shared objects from archives 11000 whole_archive_flag_spec='$convenience' 11001 fi 11002 archive_cmds_need_lc=yes 11003 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11004 # -brtl affects multiple linker settings, -berok does not and is overridden later 11005 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11006 if test svr4 != "$with_aix_soname"; then 11007 # This is similar to how AIX traditionally builds its shared libraries. 11008 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11009 fi 11010 if test aix != "$with_aix_soname"; then 11011 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11012 else 11013 # used by -dlpreopen to get the symbols 11014 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11015 fi 11016 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11017 fi 11018 fi 11019 ;; 11020 11021 amigaos*) 11022 case $host_cpu in 11023 powerpc) 11024 # see comment about AmigaOS4 .so support 11025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11026 archive_expsym_cmds='' 11027 ;; 11028 m68k) 11029 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)' 11030 hardcode_libdir_flag_spec='-L$libdir' 11031 hardcode_minus_L=yes 11032 ;; 11033 esac 11034 ;; 11035 11036 bsdi[45]*) 11037 export_dynamic_flag_spec=-rdynamic 11038 ;; 11039 11040 cygwin* | mingw* | pw32* | cegcc*) 11041 # When not using gcc, we currently assume that we are using 11042 # Microsoft Visual C++ or Intel C++ Compiler. 11043 # hardcode_libdir_flag_spec is actually meaningless, as there is 11044 # no search path for DLLs. 11045 case $cc_basename in 11046 cl* | icl*) 11047 # Native MSVC or ICC 11048 hardcode_libdir_flag_spec=' ' 11049 allow_undefined_flag=unsupported 11050 always_export_symbols=yes 11051 file_list_spec='@' 11052 # Tell ltmain to make .lib files, not .a files. 11053 libext=lib 11054 # Tell ltmain to make .dll files, not .so files. 11055 shrext_cmds=.dll 11056 # FIXME: Setting linknames here is a bad hack. 11057 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11058 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11059 cp "$export_symbols" "$output_objdir/$soname.def"; 11060 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11061 else 11062 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11063 fi~ 11064 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11065 linknames=' 11066 # The linker will not automatically build a static lib if we build a DLL. 11067 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11068 enable_shared_with_static_runtimes=yes 11069 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11071 # Don't use ranlib 11072 old_postinstall_cmds='chmod 644 $oldlib' 11073 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11074 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11075 case $lt_outputfile in 11076 *.exe|*.EXE) ;; 11077 *) 11078 lt_outputfile=$lt_outputfile.exe 11079 lt_tool_outputfile=$lt_tool_outputfile.exe 11080 ;; 11081 esac~ 11082 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11084 $RM "$lt_outputfile.manifest"; 11085 fi' 11086 ;; 11087 *) 11088 # Assume MSVC and ICC wrapper 11089 hardcode_libdir_flag_spec=' ' 11090 allow_undefined_flag=unsupported 11091 # Tell ltmain to make .lib files, not .a files. 11092 libext=lib 11093 # Tell ltmain to make .dll files, not .so files. 11094 shrext_cmds=.dll 11095 # FIXME: Setting linknames here is a bad hack. 11096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11097 # The linker will automatically build a .lib file if we build a DLL. 11098 old_archive_from_new_cmds='true' 11099 # FIXME: Should let the user specify the lib program. 11100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11101 enable_shared_with_static_runtimes=yes 11102 ;; 11103 esac 11104 ;; 11105 11106 darwin* | rhapsody*) 11107 11108 11109 archive_cmds_need_lc=no 11110 hardcode_direct=no 11111 hardcode_automatic=yes 11112 hardcode_shlibpath_var=unsupported 11113 if test yes = "$lt_cv_ld_force_load"; then 11114 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\"`' 11115 11116 else 11117 whole_archive_flag_spec='' 11118 fi 11119 link_all_deplibs=yes 11120 allow_undefined_flag=$_lt_dar_allow_undefined 11121 case $cc_basename in 11122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11123 *) _lt_dar_can_shared=$GCC ;; 11124 esac 11125 if test yes = "$_lt_dar_can_shared"; then 11126 output_verbose_link_cmd=func_echo_all 11127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11129 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" 11130 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" 11131 11132 else 11133 ld_shlibs=no 11134 fi 11135 11136 ;; 11137 11138 dgux*) 11139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11140 hardcode_libdir_flag_spec='-L$libdir' 11141 hardcode_shlibpath_var=no 11142 ;; 11143 11144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11145 # support. Future versions do this automatically, but an explicit c++rt0.o 11146 # does not break anything, and helps significantly (at the cost of a little 11147 # extra space). 11148 freebsd2.2*) 11149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11150 hardcode_libdir_flag_spec='-R$libdir' 11151 hardcode_direct=yes 11152 hardcode_shlibpath_var=no 11153 ;; 11154 11155 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11156 freebsd2.*) 11157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11158 hardcode_direct=yes 11159 hardcode_minus_L=yes 11160 hardcode_shlibpath_var=no 11161 ;; 11162 11163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11164 freebsd* | dragonfly* | midnightbsd*) 11165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11166 hardcode_libdir_flag_spec='-R$libdir' 11167 hardcode_direct=yes 11168 hardcode_shlibpath_var=no 11169 ;; 11170 11171 hpux9*) 11172 if test yes = "$GCC"; then 11173 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11174 else 11175 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11176 fi 11177 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11178 hardcode_libdir_separator=: 11179 hardcode_direct=yes 11180 11181 # hardcode_minus_L: Not really in the search PATH, 11182 # but as the default location of the library. 11183 hardcode_minus_L=yes 11184 export_dynamic_flag_spec='$wl-E' 11185 ;; 11186 11187 hpux10*) 11188 if test yes,no = "$GCC,$with_gnu_ld"; then 11189 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11190 else 11191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11192 fi 11193 if test no = "$with_gnu_ld"; then 11194 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11195 hardcode_libdir_separator=: 11196 hardcode_direct=yes 11197 hardcode_direct_absolute=yes 11198 export_dynamic_flag_spec='$wl-E' 11199 # hardcode_minus_L: Not really in the search PATH, 11200 # but as the default location of the library. 11201 hardcode_minus_L=yes 11202 fi 11203 ;; 11204 11205 hpux11*) 11206 if test yes,no = "$GCC,$with_gnu_ld"; then 11207 case $host_cpu in 11208 hppa*64*) 11209 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11210 ;; 11211 ia64*) 11212 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11213 ;; 11214 *) 11215 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11216 ;; 11217 esac 11218 else 11219 case $host_cpu in 11220 hppa*64*) 11221 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11222 ;; 11223 ia64*) 11224 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11225 ;; 11226 *) 11227 11228 # Older versions of the 11.00 compiler do not understand -b yet 11229 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11231 printf %s "checking if $CC understands -b... " >&6; } 11232 if test ${lt_cv_prog_compiler__b+y} 11233 then : 11234 printf %s "(cached) " >&6 11235 else $as_nop 11236 lt_cv_prog_compiler__b=no 11237 save_LDFLAGS=$LDFLAGS 11238 LDFLAGS="$LDFLAGS -b" 11239 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11241 # The linker can only warn and ignore the option if not recognized 11242 # So say no if there are warnings 11243 if test -s conftest.err; then 11244 # Append any errors to the config.log. 11245 cat conftest.err 1>&5 11246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11248 if diff conftest.exp conftest.er2 >/dev/null; then 11249 lt_cv_prog_compiler__b=yes 11250 fi 11251 else 11252 lt_cv_prog_compiler__b=yes 11253 fi 11254 fi 11255 $RM -r conftest* 11256 LDFLAGS=$save_LDFLAGS 11257 11258 fi 11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11260 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11261 11262 if test yes = "$lt_cv_prog_compiler__b"; then 11263 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11264 else 11265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11266 fi 11267 11268 ;; 11269 esac 11270 fi 11271 if test no = "$with_gnu_ld"; then 11272 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11273 hardcode_libdir_separator=: 11274 11275 case $host_cpu in 11276 hppa*64*|ia64*) 11277 hardcode_direct=no 11278 hardcode_shlibpath_var=no 11279 ;; 11280 *) 11281 hardcode_direct=yes 11282 hardcode_direct_absolute=yes 11283 export_dynamic_flag_spec='$wl-E' 11284 11285 # hardcode_minus_L: Not really in the search PATH, 11286 # but as the default location of the library. 11287 hardcode_minus_L=yes 11288 ;; 11289 esac 11290 fi 11291 ;; 11292 11293 irix5* | irix6* | nonstopux*) 11294 if test yes = "$GCC"; then 11295 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' 11296 # Try to use the -exported_symbol ld option, if it does not 11297 # work, assume that -exports_file does not work either and 11298 # implicitly export all symbols. 11299 # This should be the same for all languages, so no per-tag cache variable. 11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11301 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11302 if test ${lt_cv_irix_exported_symbol+y} 11303 then : 11304 printf %s "(cached) " >&6 11305 else $as_nop 11306 save_LDFLAGS=$LDFLAGS 11307 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309 /* end confdefs.h. */ 11310 int foo (void) { return 0; } 11311 _ACEOF 11312 if ac_fn_c_try_link "$LINENO" 11313 then : 11314 lt_cv_irix_exported_symbol=yes 11315 else $as_nop 11316 lt_cv_irix_exported_symbol=no 11317 fi 11318 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11319 conftest$ac_exeext conftest.$ac_ext 11320 LDFLAGS=$save_LDFLAGS 11321 fi 11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11323 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11324 if test yes = "$lt_cv_irix_exported_symbol"; then 11325 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' 11326 fi 11327 else 11328 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' 11329 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' 11330 fi 11331 archive_cmds_need_lc='no' 11332 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11333 hardcode_libdir_separator=: 11334 inherit_rpath=yes 11335 link_all_deplibs=yes 11336 ;; 11337 11338 linux*) 11339 case $cc_basename in 11340 tcc*) 11341 # Fabrice Bellard et al's Tiny C Compiler 11342 ld_shlibs=yes 11343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11344 ;; 11345 esac 11346 ;; 11347 11348 netbsd*) 11349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11351 else 11352 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11353 fi 11354 hardcode_libdir_flag_spec='-R$libdir' 11355 hardcode_direct=yes 11356 hardcode_shlibpath_var=no 11357 ;; 11358 11359 newsos6) 11360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11361 hardcode_direct=yes 11362 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11363 hardcode_libdir_separator=: 11364 hardcode_shlibpath_var=no 11365 ;; 11366 11367 *nto* | *qnx*) 11368 ;; 11369 11370 openbsd* | bitrig*) 11371 if test -f /usr/libexec/ld.so; then 11372 hardcode_direct=yes 11373 hardcode_shlibpath_var=no 11374 hardcode_direct_absolute=yes 11375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11377 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11378 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11379 export_dynamic_flag_spec='$wl-E' 11380 else 11381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11382 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11383 fi 11384 else 11385 ld_shlibs=no 11386 fi 11387 ;; 11388 11389 os2*) 11390 hardcode_libdir_flag_spec='-L$libdir' 11391 hardcode_minus_L=yes 11392 allow_undefined_flag=unsupported 11393 shrext_cmds=.dll 11394 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11397 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11398 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11399 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11400 emximp -o $lib $output_objdir/$libname.def' 11401 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11402 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11403 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11404 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11405 prefix_cmds="$SED"~ 11406 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11407 prefix_cmds="$prefix_cmds -e 1d"; 11408 fi~ 11409 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11410 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11412 emximp -o $lib $output_objdir/$libname.def' 11413 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11414 enable_shared_with_static_runtimes=yes 11415 file_list_spec='@' 11416 ;; 11417 11418 osf3*) 11419 if test yes = "$GCC"; then 11420 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11421 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' 11422 else 11423 allow_undefined_flag=' -expect_unresolved \*' 11424 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' 11425 fi 11426 archive_cmds_need_lc='no' 11427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11428 hardcode_libdir_separator=: 11429 ;; 11430 11431 osf4* | osf5*) # as osf3* with the addition of -msym flag 11432 if test yes = "$GCC"; then 11433 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11434 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' 11435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11436 else 11437 allow_undefined_flag=' -expect_unresolved \*' 11438 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' 11439 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~ 11440 $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' 11441 11442 # Both c and cxx compiler support -rpath directly 11443 hardcode_libdir_flag_spec='-rpath $libdir' 11444 fi 11445 archive_cmds_need_lc='no' 11446 hardcode_libdir_separator=: 11447 ;; 11448 11449 solaris*) 11450 no_undefined_flag=' -z defs' 11451 if test yes = "$GCC"; then 11452 wlarc='$wl' 11453 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11454 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11455 $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' 11456 else 11457 case `$CC -V 2>&1` in 11458 *"Compilers 5.0"*) 11459 wlarc='' 11460 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11462 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11463 ;; 11464 *) 11465 wlarc='$wl' 11466 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11468 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11469 ;; 11470 esac 11471 fi 11472 hardcode_libdir_flag_spec='-R$libdir' 11473 hardcode_shlibpath_var=no 11474 case $host_os in 11475 solaris2.[0-5] | solaris2.[0-5].*) ;; 11476 *) 11477 # The compiler driver will combine and reorder linker options, 11478 # but understands '-z linker_flag'. GCC discards it without '$wl', 11479 # but is careful enough not to reorder. 11480 # Supported since Solaris 2.6 (maybe 2.5.1?) 11481 if test yes = "$GCC"; then 11482 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11483 else 11484 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11485 fi 11486 ;; 11487 esac 11488 link_all_deplibs=yes 11489 ;; 11490 11491 sunos4*) 11492 if test sequent = "$host_vendor"; then 11493 # Use $CC to link under sequent, because it throws in some extra .o 11494 # files that make .init and .fini sections work. 11495 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11496 else 11497 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11498 fi 11499 hardcode_libdir_flag_spec='-L$libdir' 11500 hardcode_direct=yes 11501 hardcode_minus_L=yes 11502 hardcode_shlibpath_var=no 11503 ;; 11504 11505 sysv4) 11506 case $host_vendor in 11507 sni) 11508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11509 hardcode_direct=yes # is this really true??? 11510 ;; 11511 siemens) 11512 ## LD is ld it makes a PLAMLIB 11513 ## CC just makes a GrossModule. 11514 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11515 reload_cmds='$CC -r -o $output$reload_objs' 11516 hardcode_direct=no 11517 ;; 11518 motorola) 11519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11520 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11521 ;; 11522 esac 11523 runpath_var='LD_RUN_PATH' 11524 hardcode_shlibpath_var=no 11525 ;; 11526 11527 sysv4.3*) 11528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11529 hardcode_shlibpath_var=no 11530 export_dynamic_flag_spec='-Bexport' 11531 ;; 11532 11533 sysv4*MP*) 11534 if test -d /usr/nec; then 11535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11536 hardcode_shlibpath_var=no 11537 runpath_var=LD_RUN_PATH 11538 hardcode_runpath_var=yes 11539 ld_shlibs=yes 11540 fi 11541 ;; 11542 11543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11544 no_undefined_flag='$wl-z,text' 11545 archive_cmds_need_lc=no 11546 hardcode_shlibpath_var=no 11547 runpath_var='LD_RUN_PATH' 11548 11549 if test yes = "$GCC"; then 11550 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11551 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11552 else 11553 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11554 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11555 fi 11556 ;; 11557 11558 sysv5* | sco3.2v5* | sco5v6*) 11559 # Note: We CANNOT use -z defs as we might desire, because we do not 11560 # link with -lc, and that would cause any symbols used from libc to 11561 # always be unresolved, which means just about no library would 11562 # ever link correctly. If we're not using GNU ld we use -z text 11563 # though, which does catch some bad symbols but isn't as heavy-handed 11564 # as -z defs. 11565 no_undefined_flag='$wl-z,text' 11566 allow_undefined_flag='$wl-z,nodefs' 11567 archive_cmds_need_lc=no 11568 hardcode_shlibpath_var=no 11569 hardcode_libdir_flag_spec='$wl-R,$libdir' 11570 hardcode_libdir_separator=':' 11571 link_all_deplibs=yes 11572 export_dynamic_flag_spec='$wl-Bexport' 11573 runpath_var='LD_RUN_PATH' 11574 11575 if test yes = "$GCC"; then 11576 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11577 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11578 else 11579 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11580 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11581 fi 11582 ;; 11583 11584 uts4*) 11585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11586 hardcode_libdir_flag_spec='-L$libdir' 11587 hardcode_shlibpath_var=no 11588 ;; 11589 11590 *) 11591 ld_shlibs=no 11592 ;; 11593 esac 11594 11595 if test sni = "$host_vendor"; then 11596 case $host in 11597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11598 export_dynamic_flag_spec='$wl-Blargedynsym' 11599 ;; 11600 esac 11601 fi 11602 fi 11603 11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11605 printf "%s\n" "$ld_shlibs" >&6; } 11606 test no = "$ld_shlibs" && can_build_shared=no 11607 11608 with_gnu_ld=$with_gnu_ld 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 # 11625 # Do we need to explicitly link libc? 11626 # 11627 case "x$archive_cmds_need_lc" in 11628 x|xyes) 11629 # Assume -lc should be added 11630 archive_cmds_need_lc=yes 11631 11632 if test yes,yes = "$GCC,$enable_shared"; then 11633 case $archive_cmds in 11634 *'~'*) 11635 # FIXME: we may have to deal with multi-command sequences. 11636 ;; 11637 '$CC '*) 11638 # Test whether the compiler implicitly links with -lc since on some 11639 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11640 # to ld, don't add -lc before -lgcc. 11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11642 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11643 if test ${lt_cv_archive_cmds_need_lc+y} 11644 then : 11645 printf %s "(cached) " >&6 11646 else $as_nop 11647 $RM conftest* 11648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11649 11650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11651 (eval $ac_compile) 2>&5 11652 ac_status=$? 11653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11654 test $ac_status = 0; } 2>conftest.err; then 11655 soname=conftest 11656 lib=conftest 11657 libobjs=conftest.$ac_objext 11658 deplibs= 11659 wl=$lt_prog_compiler_wl 11660 pic_flag=$lt_prog_compiler_pic 11661 compiler_flags=-v 11662 linker_flags=-v 11663 verstring= 11664 output_objdir=. 11665 libname=conftest 11666 lt_save_allow_undefined_flag=$allow_undefined_flag 11667 allow_undefined_flag= 11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11670 ac_status=$? 11671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11672 test $ac_status = 0; } 11673 then 11674 lt_cv_archive_cmds_need_lc=no 11675 else 11676 lt_cv_archive_cmds_need_lc=yes 11677 fi 11678 allow_undefined_flag=$lt_save_allow_undefined_flag 11679 else 11680 cat conftest.err 1>&5 11681 fi 11682 $RM conftest* 11683 11684 fi 11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11686 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11688 ;; 11689 esac 11690 fi 11691 ;; 11692 esac 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11846 printf %s "checking dynamic linker characteristics... " >&6; } 11847 11848 if test yes = "$GCC"; then 11849 case $host_os in 11850 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11851 *) lt_awk_arg='/^libraries:/' ;; 11852 esac 11853 case $host_os in 11854 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11855 *) lt_sed_strip_eq='s|=/|/|g' ;; 11856 esac 11857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11858 case $lt_search_path_spec in 11859 *\;*) 11860 # if the path contains ";" then we assume it to be the separator 11861 # otherwise default to the standard path separator (i.e. ":") - it is 11862 # assumed that no part of a normal pathname contains ";" but that should 11863 # okay in the real world where ";" in dirpaths is itself problematic. 11864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11865 ;; 11866 *) 11867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11868 ;; 11869 esac 11870 # Ok, now we have the path, separated by spaces, we can step through it 11871 # and add multilib dir if necessary... 11872 lt_tmp_lt_search_path_spec= 11873 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11874 # ...but if some path component already ends with the multilib dir we assume 11875 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11876 case "$lt_multi_os_dir; $lt_search_path_spec " in 11877 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11878 lt_multi_os_dir= 11879 ;; 11880 esac 11881 for lt_sys_path in $lt_search_path_spec; do 11882 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11884 elif test -n "$lt_multi_os_dir"; then 11885 test -d "$lt_sys_path" && \ 11886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11887 fi 11888 done 11889 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11890 BEGIN {RS = " "; FS = "/|\n";} { 11891 lt_foo = ""; 11892 lt_count = 0; 11893 for (lt_i = NF; lt_i > 0; lt_i--) { 11894 if ($lt_i != "" && $lt_i != ".") { 11895 if ($lt_i == "..") { 11896 lt_count++; 11897 } else { 11898 if (lt_count == 0) { 11899 lt_foo = "/" $lt_i lt_foo; 11900 } else { 11901 lt_count--; 11902 } 11903 } 11904 } 11905 } 11906 if (lt_foo != "") { lt_freq[lt_foo]++; } 11907 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11908 }'` 11909 # AWK program above erroneously prepends '/' to C:/dos/paths 11910 # for these hosts. 11911 case $host_os in 11912 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11913 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11914 esac 11915 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11916 else 11917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11918 fi 11919 library_names_spec= 11920 libname_spec='lib$name' 11921 soname_spec= 11922 shrext_cmds=.so 11923 postinstall_cmds= 11924 postuninstall_cmds= 11925 finish_cmds= 11926 finish_eval= 11927 shlibpath_var= 11928 shlibpath_overrides_runpath=unknown 11929 version_type=none 11930 dynamic_linker="$host_os ld.so" 11931 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11932 need_lib_prefix=unknown 11933 hardcode_into_libs=no 11934 11935 # when you set need_version to no, make sure it does not cause -set_version 11936 # flags to be left without arguments 11937 need_version=unknown 11938 11939 11940 11941 case $host_os in 11942 aix3*) 11943 version_type=linux # correct to gnu/linux during the next big refactor 11944 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11945 shlibpath_var=LIBPATH 11946 11947 # AIX 3 has no versioning support, so we append a major version to the name. 11948 soname_spec='$libname$release$shared_ext$major' 11949 ;; 11950 11951 aix[4-9]*) 11952 version_type=linux # correct to gnu/linux during the next big refactor 11953 need_lib_prefix=no 11954 need_version=no 11955 hardcode_into_libs=yes 11956 if test ia64 = "$host_cpu"; then 11957 # AIX 5 supports IA64 11958 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11959 shlibpath_var=LD_LIBRARY_PATH 11960 else 11961 # With GCC up to 2.95.x, collect2 would create an import file 11962 # for dependence libraries. The import file would start with 11963 # the line '#! .'. This would cause the generated library to 11964 # depend on '.', always an invalid library. This was fixed in 11965 # development snapshots of GCC prior to 3.0. 11966 case $host_os in 11967 aix4 | aix4.[01] | aix4.[01].*) 11968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11969 echo ' yes ' 11970 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11971 : 11972 else 11973 can_build_shared=no 11974 fi 11975 ;; 11976 esac 11977 # Using Import Files as archive members, it is possible to support 11978 # filename-based versioning of shared library archives on AIX. While 11979 # this would work for both with and without runtime linking, it will 11980 # prevent static linking of such archives. So we do filename-based 11981 # shared library versioning with .so extension only, which is used 11982 # when both runtime linking and shared linking is enabled. 11983 # Unfortunately, runtime linking may impact performance, so we do 11984 # not want this to be the default eventually. Also, we use the 11985 # versioned .so libs for executables only if there is the -brtl 11986 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11987 # To allow for filename-based versioning support, we need to create 11988 # libNAME.so.V as an archive file, containing: 11989 # *) an Import File, referring to the versioned filename of the 11990 # archive as well as the shared archive member, telling the 11991 # bitwidth (32 or 64) of that shared object, and providing the 11992 # list of exported symbols of that shared object, eventually 11993 # decorated with the 'weak' keyword 11994 # *) the shared object with the F_LOADONLY flag set, to really avoid 11995 # it being seen by the linker. 11996 # At run time we better use the real file rather than another symlink, 11997 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11998 11999 case $with_aix_soname,$aix_use_runtimelinking in 12000 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12001 # soname into executable. Probably we can add versioning support to 12002 # collect2, so additional links can be useful in future. 12003 aix,yes) # traditional libtool 12004 dynamic_linker='AIX unversionable lib.so' 12005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12006 # instead of lib<name>.a to let people know that these are not 12007 # typical AIX shared libraries. 12008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12009 ;; 12010 aix,no) # traditional AIX only 12011 dynamic_linker='AIX lib.a(lib.so.V)' 12012 # We preserve .a as extension for shared libraries through AIX4.2 12013 # and later when we are not doing run time linking. 12014 library_names_spec='$libname$release.a $libname.a' 12015 soname_spec='$libname$release$shared_ext$major' 12016 ;; 12017 svr4,*) # full svr4 only 12018 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12019 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12020 # We do not specify a path in Import Files, so LIBPATH fires. 12021 shlibpath_overrides_runpath=yes 12022 ;; 12023 *,yes) # both, prefer svr4 12024 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12025 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12026 # unpreferred sharedlib libNAME.a needs extra handling 12027 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12028 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12029 # We do not specify a path in Import Files, so LIBPATH fires. 12030 shlibpath_overrides_runpath=yes 12031 ;; 12032 *,no) # both, prefer aix 12033 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12034 library_names_spec='$libname$release.a $libname.a' 12035 soname_spec='$libname$release$shared_ext$major' 12036 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12037 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12038 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12039 ;; 12040 esac 12041 shlibpath_var=LIBPATH 12042 fi 12043 ;; 12044 12045 amigaos*) 12046 case $host_cpu in 12047 powerpc) 12048 # Since July 2007 AmigaOS4 officially supports .so libraries. 12049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12051 ;; 12052 m68k) 12053 library_names_spec='$libname.ixlibrary $libname.a' 12054 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12055 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12056 ;; 12057 esac 12058 ;; 12059 12060 beos*) 12061 library_names_spec='$libname$shared_ext' 12062 dynamic_linker="$host_os ld.so" 12063 shlibpath_var=LIBRARY_PATH 12064 ;; 12065 12066 bsdi[45]*) 12067 version_type=linux # correct to gnu/linux during the next big refactor 12068 need_version=no 12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12070 soname_spec='$libname$release$shared_ext$major' 12071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12072 shlibpath_var=LD_LIBRARY_PATH 12073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12075 # the default ld.so.conf also contains /usr/contrib/lib and 12076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12077 # libtool to hard-code these into programs 12078 ;; 12079 12080 cygwin* | mingw* | pw32* | cegcc*) 12081 version_type=windows 12082 shrext_cmds=.dll 12083 need_version=no 12084 need_lib_prefix=no 12085 12086 case $GCC,$cc_basename in 12087 yes,*) 12088 # gcc 12089 library_names_spec='$libname.dll.a' 12090 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12091 postinstall_cmds='base_file=`basename \$file`~ 12092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12093 dldir=$destdir/`dirname \$dlpath`~ 12094 test -d \$dldir || mkdir -p \$dldir~ 12095 $install_prog $dir/$dlname \$dldir/$dlname~ 12096 chmod a+x \$dldir/$dlname~ 12097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12099 fi' 12100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12101 dlpath=$dir/\$dldll~ 12102 $RM \$dlpath' 12103 shlibpath_overrides_runpath=yes 12104 12105 case $host_os in 12106 cygwin*) 12107 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12108 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12109 12110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12111 ;; 12112 mingw* | cegcc*) 12113 # MinGW DLLs use traditional 'lib' prefix 12114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12115 ;; 12116 pw32*) 12117 # pw32 DLLs use 'pw' prefix rather than 'lib' 12118 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12119 ;; 12120 esac 12121 dynamic_linker='Win32 ld.exe' 12122 ;; 12123 12124 *,cl* | *,icl*) 12125 # Native MSVC or ICC 12126 libname_spec='$name' 12127 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12128 library_names_spec='$libname.dll.lib' 12129 12130 case $build_os in 12131 mingw*) 12132 sys_lib_search_path_spec= 12133 lt_save_ifs=$IFS 12134 IFS=';' 12135 for lt_path in $LIB 12136 do 12137 IFS=$lt_save_ifs 12138 # Let DOS variable expansion print the short 8.3 style file name. 12139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12141 done 12142 IFS=$lt_save_ifs 12143 # Convert to MSYS style. 12144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12145 ;; 12146 cygwin*) 12147 # Convert to unix form, then to dos form, then back to unix form 12148 # but this time dos style (no spaces!) so that the unix form looks 12149 # like /cygdrive/c/PROGRA~1:/cygdr... 12150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12153 ;; 12154 *) 12155 sys_lib_search_path_spec=$LIB 12156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12157 # It is most probably a Windows format PATH. 12158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12159 else 12160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12161 fi 12162 # FIXME: find the short name or the path components, as spaces are 12163 # common. (e.g. "Program Files" -> "PROGRA~1") 12164 ;; 12165 esac 12166 12167 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12168 postinstall_cmds='base_file=`basename \$file`~ 12169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12170 dldir=$destdir/`dirname \$dlpath`~ 12171 test -d \$dldir || mkdir -p \$dldir~ 12172 $install_prog $dir/$dlname \$dldir/$dlname' 12173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12174 dlpath=$dir/\$dldll~ 12175 $RM \$dlpath' 12176 shlibpath_overrides_runpath=yes 12177 dynamic_linker='Win32 link.exe' 12178 ;; 12179 12180 *) 12181 # Assume MSVC and ICC wrapper 12182 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12183 dynamic_linker='Win32 ld.exe' 12184 ;; 12185 esac 12186 # FIXME: first we should search . and the directory the executable is in 12187 shlibpath_var=PATH 12188 ;; 12189 12190 darwin* | rhapsody*) 12191 dynamic_linker="$host_os dyld" 12192 version_type=darwin 12193 need_lib_prefix=no 12194 need_version=no 12195 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12196 soname_spec='$libname$release$major$shared_ext' 12197 shlibpath_overrides_runpath=yes 12198 shlibpath_var=DYLD_LIBRARY_PATH 12199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12200 12201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12203 ;; 12204 12205 dgux*) 12206 version_type=linux # correct to gnu/linux during the next big refactor 12207 need_lib_prefix=no 12208 need_version=no 12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12210 soname_spec='$libname$release$shared_ext$major' 12211 shlibpath_var=LD_LIBRARY_PATH 12212 ;; 12213 12214 freebsd* | dragonfly* | midnightbsd*) 12215 # DragonFly does not have aout. When/if they implement a new 12216 # versioning mechanism, adjust this. 12217 if test -x /usr/bin/objformat; then 12218 objformat=`/usr/bin/objformat` 12219 else 12220 case $host_os in 12221 freebsd[23].*) objformat=aout ;; 12222 *) objformat=elf ;; 12223 esac 12224 fi 12225 version_type=freebsd-$objformat 12226 case $version_type in 12227 freebsd-elf*) 12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12229 soname_spec='$libname$release$shared_ext$major' 12230 need_version=no 12231 need_lib_prefix=no 12232 ;; 12233 freebsd-*) 12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12235 need_version=yes 12236 ;; 12237 esac 12238 shlibpath_var=LD_LIBRARY_PATH 12239 case $host_os in 12240 freebsd2.*) 12241 shlibpath_overrides_runpath=yes 12242 ;; 12243 freebsd3.[01]* | freebsdelf3.[01]*) 12244 shlibpath_overrides_runpath=yes 12245 hardcode_into_libs=yes 12246 ;; 12247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12249 shlibpath_overrides_runpath=no 12250 hardcode_into_libs=yes 12251 ;; 12252 *) # from 4.6 on, and DragonFly 12253 shlibpath_overrides_runpath=yes 12254 hardcode_into_libs=yes 12255 ;; 12256 esac 12257 ;; 12258 12259 haiku*) 12260 version_type=linux # correct to gnu/linux during the next big refactor 12261 need_lib_prefix=no 12262 need_version=no 12263 dynamic_linker="$host_os runtime_loader" 12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12265 soname_spec='$libname$release$shared_ext$major' 12266 shlibpath_var=LIBRARY_PATH 12267 shlibpath_overrides_runpath=no 12268 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12269 hardcode_into_libs=yes 12270 ;; 12271 12272 hpux9* | hpux10* | hpux11*) 12273 # Give a soname corresponding to the major version so that dld.sl refuses to 12274 # link against other versions. 12275 version_type=sunos 12276 need_lib_prefix=no 12277 need_version=no 12278 case $host_cpu in 12279 ia64*) 12280 shrext_cmds='.so' 12281 hardcode_into_libs=yes 12282 dynamic_linker="$host_os dld.so" 12283 shlibpath_var=LD_LIBRARY_PATH 12284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12286 soname_spec='$libname$release$shared_ext$major' 12287 if test 32 = "$HPUX_IA64_MODE"; then 12288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12289 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12290 else 12291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12292 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12293 fi 12294 ;; 12295 hppa*64*) 12296 shrext_cmds='.sl' 12297 hardcode_into_libs=yes 12298 dynamic_linker="$host_os dld.sl" 12299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12302 soname_spec='$libname$release$shared_ext$major' 12303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12305 ;; 12306 *) 12307 shrext_cmds='.sl' 12308 dynamic_linker="$host_os dld.sl" 12309 shlibpath_var=SHLIB_PATH 12310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12312 soname_spec='$libname$release$shared_ext$major' 12313 ;; 12314 esac 12315 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12316 postinstall_cmds='chmod 555 $lib' 12317 # or fails outright, so override atomically: 12318 install_override_mode=555 12319 ;; 12320 12321 interix[3-9]*) 12322 version_type=linux # correct to gnu/linux during the next big refactor 12323 need_lib_prefix=no 12324 need_version=no 12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12326 soname_spec='$libname$release$shared_ext$major' 12327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12328 shlibpath_var=LD_LIBRARY_PATH 12329 shlibpath_overrides_runpath=no 12330 hardcode_into_libs=yes 12331 ;; 12332 12333 irix5* | irix6* | nonstopux*) 12334 case $host_os in 12335 nonstopux*) version_type=nonstopux ;; 12336 *) 12337 if test yes = "$lt_cv_prog_gnu_ld"; then 12338 version_type=linux # correct to gnu/linux during the next big refactor 12339 else 12340 version_type=irix 12341 fi ;; 12342 esac 12343 need_lib_prefix=no 12344 need_version=no 12345 soname_spec='$libname$release$shared_ext$major' 12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12347 case $host_os in 12348 irix5* | nonstopux*) 12349 libsuff= shlibsuff= 12350 ;; 12351 *) 12352 case $LD in # libtool.m4 will add one of these switches to LD 12353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12354 libsuff= shlibsuff= libmagic=32-bit;; 12355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12356 libsuff=32 shlibsuff=N32 libmagic=N32;; 12357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12358 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12359 *) libsuff= shlibsuff= libmagic=never-match;; 12360 esac 12361 ;; 12362 esac 12363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12364 shlibpath_overrides_runpath=no 12365 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12366 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12367 hardcode_into_libs=yes 12368 ;; 12369 12370 # No shared lib support for Linux oldld, aout, or coff. 12371 linux*oldld* | linux*aout* | linux*coff*) 12372 dynamic_linker=no 12373 ;; 12374 12375 linux*android*) 12376 version_type=none # Android doesn't support versioned libraries. 12377 need_lib_prefix=no 12378 need_version=no 12379 library_names_spec='$libname$release$shared_ext' 12380 soname_spec='$libname$release$shared_ext' 12381 finish_cmds= 12382 shlibpath_var=LD_LIBRARY_PATH 12383 shlibpath_overrides_runpath=yes 12384 12385 # This implies no fast_install, which is unacceptable. 12386 # Some rework will be needed to allow for fast_install 12387 # before this can be enabled. 12388 hardcode_into_libs=yes 12389 12390 dynamic_linker='Android linker' 12391 # Don't embed -rpath directories since the linker doesn't support them. 12392 hardcode_libdir_flag_spec='-L$libdir' 12393 ;; 12394 12395 # This must be glibc/ELF. 12396 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12397 version_type=linux # correct to gnu/linux during the next big refactor 12398 need_lib_prefix=no 12399 need_version=no 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12401 soname_spec='$libname$release$shared_ext$major' 12402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12403 shlibpath_var=LD_LIBRARY_PATH 12404 shlibpath_overrides_runpath=no 12405 12406 # Some binutils ld are patched to set DT_RUNPATH 12407 if test ${lt_cv_shlibpath_overrides_runpath+y} 12408 then : 12409 printf %s "(cached) " >&6 12410 else $as_nop 12411 lt_cv_shlibpath_overrides_runpath=no 12412 save_LDFLAGS=$LDFLAGS 12413 save_libdir=$libdir 12414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12417 /* end confdefs.h. */ 12418 12419 int 12420 main (void) 12421 { 12422 12423 ; 12424 return 0; 12425 } 12426 _ACEOF 12427 if ac_fn_c_try_link "$LINENO" 12428 then : 12429 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12430 then : 12431 lt_cv_shlibpath_overrides_runpath=yes 12432 fi 12433 fi 12434 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12435 conftest$ac_exeext conftest.$ac_ext 12436 LDFLAGS=$save_LDFLAGS 12437 libdir=$save_libdir 12438 12439 fi 12440 12441 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12442 12443 # This implies no fast_install, which is unacceptable. 12444 # Some rework will be needed to allow for fast_install 12445 # before this can be enabled. 12446 hardcode_into_libs=yes 12447 12448 # Add ABI-specific directories to the system library path. 12449 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12450 12451 # Ideally, we could use ldconfig to report *all* directores which are 12452 # searched for libraries, however this is still not possible. Aside from not 12453 # being certain /sbin/ldconfig is available, command 12454 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12455 # even though it is searched at run-time. Try to do the best guess by 12456 # appending ld.so.conf contents (and includes) to the search path. 12457 if test -f /etc/ld.so.conf; then 12458 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' ' '` 12459 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12460 fi 12461 12462 # We used to test for /lib/ld.so.1 and disable shared libraries on 12463 # powerpc, because MkLinux only supported shared libraries with the 12464 # GNU dynamic linker. Since this was broken with cross compilers, 12465 # most powerpc-linux boxes support dynamic linking these days and 12466 # people can always --disable-shared, the test was removed, and we 12467 # assume the GNU/Linux dynamic linker is in use. 12468 dynamic_linker='GNU/Linux ld.so' 12469 ;; 12470 12471 netbsd*) 12472 version_type=sunos 12473 need_lib_prefix=no 12474 need_version=no 12475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12478 dynamic_linker='NetBSD (a.out) ld.so' 12479 else 12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12481 soname_spec='$libname$release$shared_ext$major' 12482 dynamic_linker='NetBSD ld.elf_so' 12483 fi 12484 shlibpath_var=LD_LIBRARY_PATH 12485 shlibpath_overrides_runpath=yes 12486 hardcode_into_libs=yes 12487 ;; 12488 12489 newsos6) 12490 version_type=linux # correct to gnu/linux during the next big refactor 12491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12492 shlibpath_var=LD_LIBRARY_PATH 12493 shlibpath_overrides_runpath=yes 12494 ;; 12495 12496 *nto* | *qnx*) 12497 version_type=qnx 12498 need_lib_prefix=no 12499 need_version=no 12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12501 soname_spec='$libname$release$shared_ext$major' 12502 shlibpath_var=LD_LIBRARY_PATH 12503 shlibpath_overrides_runpath=no 12504 hardcode_into_libs=yes 12505 dynamic_linker='ldqnx.so' 12506 ;; 12507 12508 openbsd* | bitrig*) 12509 version_type=sunos 12510 sys_lib_dlsearch_path_spec=/usr/lib 12511 need_lib_prefix=no 12512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12513 need_version=no 12514 else 12515 need_version=yes 12516 fi 12517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12519 shlibpath_var=LD_LIBRARY_PATH 12520 shlibpath_overrides_runpath=yes 12521 ;; 12522 12523 os2*) 12524 libname_spec='$name' 12525 version_type=windows 12526 shrext_cmds=.dll 12527 need_version=no 12528 need_lib_prefix=no 12529 # OS/2 can only load a DLL with a base name of 8 characters or less. 12530 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12531 v=$($ECHO $release$versuffix | tr -d .-); 12532 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12533 $ECHO $n$v`$shared_ext' 12534 library_names_spec='${libname}_dll.$libext' 12535 dynamic_linker='OS/2 ld.exe' 12536 shlibpath_var=BEGINLIBPATH 12537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12539 postinstall_cmds='base_file=`basename \$file`~ 12540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12541 dldir=$destdir/`dirname \$dlpath`~ 12542 test -d \$dldir || mkdir -p \$dldir~ 12543 $install_prog $dir/$dlname \$dldir/$dlname~ 12544 chmod a+x \$dldir/$dlname~ 12545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12547 fi' 12548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12549 dlpath=$dir/\$dldll~ 12550 $RM \$dlpath' 12551 ;; 12552 12553 osf3* | osf4* | osf5*) 12554 version_type=osf 12555 need_lib_prefix=no 12556 need_version=no 12557 soname_spec='$libname$release$shared_ext$major' 12558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12559 shlibpath_var=LD_LIBRARY_PATH 12560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12562 ;; 12563 12564 rdos*) 12565 dynamic_linker=no 12566 ;; 12567 12568 solaris*) 12569 version_type=linux # correct to gnu/linux during the next big refactor 12570 need_lib_prefix=no 12571 need_version=no 12572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12573 soname_spec='$libname$release$shared_ext$major' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 shlibpath_overrides_runpath=yes 12576 hardcode_into_libs=yes 12577 # ldd complains unless libraries are executable 12578 postinstall_cmds='chmod +x $lib' 12579 ;; 12580 12581 sunos4*) 12582 version_type=sunos 12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12585 shlibpath_var=LD_LIBRARY_PATH 12586 shlibpath_overrides_runpath=yes 12587 if test yes = "$with_gnu_ld"; then 12588 need_lib_prefix=no 12589 fi 12590 need_version=yes 12591 ;; 12592 12593 sysv4 | sysv4.3*) 12594 version_type=linux # correct to gnu/linux during the next big refactor 12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12596 soname_spec='$libname$release$shared_ext$major' 12597 shlibpath_var=LD_LIBRARY_PATH 12598 case $host_vendor in 12599 sni) 12600 shlibpath_overrides_runpath=no 12601 need_lib_prefix=no 12602 runpath_var=LD_RUN_PATH 12603 ;; 12604 siemens) 12605 need_lib_prefix=no 12606 ;; 12607 motorola) 12608 need_lib_prefix=no 12609 need_version=no 12610 shlibpath_overrides_runpath=no 12611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12612 ;; 12613 esac 12614 ;; 12615 12616 sysv4*MP*) 12617 if test -d /usr/nec; then 12618 version_type=linux # correct to gnu/linux during the next big refactor 12619 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12620 soname_spec='$libname$shared_ext.$major' 12621 shlibpath_var=LD_LIBRARY_PATH 12622 fi 12623 ;; 12624 12625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12626 version_type=sco 12627 need_lib_prefix=no 12628 need_version=no 12629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12630 soname_spec='$libname$release$shared_ext$major' 12631 shlibpath_var=LD_LIBRARY_PATH 12632 shlibpath_overrides_runpath=yes 12633 hardcode_into_libs=yes 12634 if test yes = "$with_gnu_ld"; then 12635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12636 else 12637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12638 case $host_os in 12639 sco3.2v5*) 12640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12641 ;; 12642 esac 12643 fi 12644 sys_lib_dlsearch_path_spec='/usr/lib' 12645 ;; 12646 12647 tpf*) 12648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12649 version_type=linux # correct to gnu/linux during the next big refactor 12650 need_lib_prefix=no 12651 need_version=no 12652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 shlibpath_overrides_runpath=no 12655 hardcode_into_libs=yes 12656 ;; 12657 12658 uts4*) 12659 version_type=linux # correct to gnu/linux during the next big refactor 12660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12661 soname_spec='$libname$release$shared_ext$major' 12662 shlibpath_var=LD_LIBRARY_PATH 12663 ;; 12664 12665 *) 12666 dynamic_linker=no 12667 ;; 12668 esac 12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12670 printf "%s\n" "$dynamic_linker" >&6; } 12671 test no = "$dynamic_linker" && can_build_shared=no 12672 12673 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12674 if test yes = "$GCC"; then 12675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12676 fi 12677 12678 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12679 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12680 fi 12681 12682 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12683 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12684 fi 12685 12686 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12687 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12688 12689 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12690 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12691 12692 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12693 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12792 printf %s "checking how to hardcode library paths into programs... " >&6; } 12793 hardcode_action= 12794 if test -n "$hardcode_libdir_flag_spec" || 12795 test -n "$runpath_var" || 12796 test yes = "$hardcode_automatic"; then 12797 12798 # We can hardcode non-existent directories. 12799 if test no != "$hardcode_direct" && 12800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12801 # have to relink, otherwise we might link with an installed library 12802 # when we should be linking with a yet-to-be-installed one 12803 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12804 test no != "$hardcode_minus_L"; then 12805 # Linking always hardcodes the temporary library directory. 12806 hardcode_action=relink 12807 else 12808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12809 hardcode_action=immediate 12810 fi 12811 else 12812 # We cannot hardcode anything, or else we can only hardcode existing 12813 # directories. 12814 hardcode_action=unsupported 12815 fi 12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12817 printf "%s\n" "$hardcode_action" >&6; } 12818 12819 if test relink = "$hardcode_action" || 12820 test yes = "$inherit_rpath"; then 12821 # Fast installation is not supported 12822 enable_fast_install=no 12823 elif test yes = "$shlibpath_overrides_runpath" || 12824 test no = "$enable_shared"; then 12825 # Fast installation is not necessary 12826 enable_fast_install=needless 12827 fi 12828 12829 12830 12831 12832 12833 12834 if test yes != "$enable_dlopen"; then 12835 enable_dlopen=unknown 12836 enable_dlopen_self=unknown 12837 enable_dlopen_self_static=unknown 12838 else 12839 lt_cv_dlopen=no 12840 lt_cv_dlopen_libs= 12841 12842 case $host_os in 12843 beos*) 12844 lt_cv_dlopen=load_add_on 12845 lt_cv_dlopen_libs= 12846 lt_cv_dlopen_self=yes 12847 ;; 12848 12849 mingw* | pw32* | cegcc*) 12850 lt_cv_dlopen=LoadLibrary 12851 lt_cv_dlopen_libs= 12852 ;; 12853 12854 cygwin*) 12855 lt_cv_dlopen=dlopen 12856 lt_cv_dlopen_libs= 12857 ;; 12858 12859 darwin*) 12860 # if libdl is installed we need to link against it 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12862 printf %s "checking for dlopen in -ldl... " >&6; } 12863 if test ${ac_cv_lib_dl_dlopen+y} 12864 then : 12865 printf %s "(cached) " >&6 12866 else $as_nop 12867 ac_check_lib_save_LIBS=$LIBS 12868 LIBS="-ldl $LIBS" 12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12870 /* end confdefs.h. */ 12871 12872 /* Override any GCC internal prototype to avoid an error. 12873 Use char because int might match the return type of a GCC 12874 builtin and then its argument prototype would still apply. */ 12875 char dlopen (); 12876 int 12877 main (void) 12878 { 12879 return dlopen (); 12880 ; 12881 return 0; 12882 } 12883 _ACEOF 12884 if ac_fn_c_try_link "$LINENO" 12885 then : 12886 ac_cv_lib_dl_dlopen=yes 12887 else $as_nop 12888 ac_cv_lib_dl_dlopen=no 12889 fi 12890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12891 conftest$ac_exeext conftest.$ac_ext 12892 LIBS=$ac_check_lib_save_LIBS 12893 fi 12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12895 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12896 if test "x$ac_cv_lib_dl_dlopen" = xyes 12897 then : 12898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12899 else $as_nop 12900 12901 lt_cv_dlopen=dyld 12902 lt_cv_dlopen_libs= 12903 lt_cv_dlopen_self=yes 12904 12905 fi 12906 12907 ;; 12908 12909 tpf*) 12910 # Don't try to run any link tests for TPF. We know it's impossible 12911 # because TPF is a cross-compiler, and we know how we open DSOs. 12912 lt_cv_dlopen=dlopen 12913 lt_cv_dlopen_libs= 12914 lt_cv_dlopen_self=no 12915 ;; 12916 12917 *) 12918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12919 if test "x$ac_cv_func_shl_load" = xyes 12920 then : 12921 lt_cv_dlopen=shl_load 12922 else $as_nop 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12924 printf %s "checking for shl_load in -ldld... " >&6; } 12925 if test ${ac_cv_lib_dld_shl_load+y} 12926 then : 12927 printf %s "(cached) " >&6 12928 else $as_nop 12929 ac_check_lib_save_LIBS=$LIBS 12930 LIBS="-ldld $LIBS" 12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12932 /* end confdefs.h. */ 12933 12934 /* Override any GCC internal prototype to avoid an error. 12935 Use char because int might match the return type of a GCC 12936 builtin and then its argument prototype would still apply. */ 12937 char shl_load (); 12938 int 12939 main (void) 12940 { 12941 return shl_load (); 12942 ; 12943 return 0; 12944 } 12945 _ACEOF 12946 if ac_fn_c_try_link "$LINENO" 12947 then : 12948 ac_cv_lib_dld_shl_load=yes 12949 else $as_nop 12950 ac_cv_lib_dld_shl_load=no 12951 fi 12952 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12953 conftest$ac_exeext conftest.$ac_ext 12954 LIBS=$ac_check_lib_save_LIBS 12955 fi 12956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12957 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12958 if test "x$ac_cv_lib_dld_shl_load" = xyes 12959 then : 12960 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12961 else $as_nop 12962 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12963 if test "x$ac_cv_func_dlopen" = xyes 12964 then : 12965 lt_cv_dlopen=dlopen 12966 else $as_nop 12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12968 printf %s "checking for dlopen in -ldl... " >&6; } 12969 if test ${ac_cv_lib_dl_dlopen+y} 12970 then : 12971 printf %s "(cached) " >&6 12972 else $as_nop 12973 ac_check_lib_save_LIBS=$LIBS 12974 LIBS="-ldl $LIBS" 12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12976 /* end confdefs.h. */ 12977 12978 /* Override any GCC internal prototype to avoid an error. 12979 Use char because int might match the return type of a GCC 12980 builtin and then its argument prototype would still apply. */ 12981 char dlopen (); 12982 int 12983 main (void) 12984 { 12985 return dlopen (); 12986 ; 12987 return 0; 12988 } 12989 _ACEOF 12990 if ac_fn_c_try_link "$LINENO" 12991 then : 12992 ac_cv_lib_dl_dlopen=yes 12993 else $as_nop 12994 ac_cv_lib_dl_dlopen=no 12995 fi 12996 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12997 conftest$ac_exeext conftest.$ac_ext 12998 LIBS=$ac_check_lib_save_LIBS 12999 fi 13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13001 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13002 if test "x$ac_cv_lib_dl_dlopen" = xyes 13003 then : 13004 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13005 else $as_nop 13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13007 printf %s "checking for dlopen in -lsvld... " >&6; } 13008 if test ${ac_cv_lib_svld_dlopen+y} 13009 then : 13010 printf %s "(cached) " >&6 13011 else $as_nop 13012 ac_check_lib_save_LIBS=$LIBS 13013 LIBS="-lsvld $LIBS" 13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13015 /* end confdefs.h. */ 13016 13017 /* Override any GCC internal prototype to avoid an error. 13018 Use char because int might match the return type of a GCC 13019 builtin and then its argument prototype would still apply. */ 13020 char dlopen (); 13021 int 13022 main (void) 13023 { 13024 return dlopen (); 13025 ; 13026 return 0; 13027 } 13028 _ACEOF 13029 if ac_fn_c_try_link "$LINENO" 13030 then : 13031 ac_cv_lib_svld_dlopen=yes 13032 else $as_nop 13033 ac_cv_lib_svld_dlopen=no 13034 fi 13035 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13036 conftest$ac_exeext conftest.$ac_ext 13037 LIBS=$ac_check_lib_save_LIBS 13038 fi 13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13040 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13041 if test "x$ac_cv_lib_svld_dlopen" = xyes 13042 then : 13043 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13044 else $as_nop 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13046 printf %s "checking for dld_link in -ldld... " >&6; } 13047 if test ${ac_cv_lib_dld_dld_link+y} 13048 then : 13049 printf %s "(cached) " >&6 13050 else $as_nop 13051 ac_check_lib_save_LIBS=$LIBS 13052 LIBS="-ldld $LIBS" 13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13054 /* end confdefs.h. */ 13055 13056 /* Override any GCC internal prototype to avoid an error. 13057 Use char because int might match the return type of a GCC 13058 builtin and then its argument prototype would still apply. */ 13059 char dld_link (); 13060 int 13061 main (void) 13062 { 13063 return dld_link (); 13064 ; 13065 return 0; 13066 } 13067 _ACEOF 13068 if ac_fn_c_try_link "$LINENO" 13069 then : 13070 ac_cv_lib_dld_dld_link=yes 13071 else $as_nop 13072 ac_cv_lib_dld_dld_link=no 13073 fi 13074 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13075 conftest$ac_exeext conftest.$ac_ext 13076 LIBS=$ac_check_lib_save_LIBS 13077 fi 13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13079 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13080 if test "x$ac_cv_lib_dld_dld_link" = xyes 13081 then : 13082 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13083 fi 13084 13085 13086 fi 13087 13088 13089 fi 13090 13091 13092 fi 13093 13094 13095 fi 13096 13097 13098 fi 13099 13100 ;; 13101 esac 13102 13103 if test no = "$lt_cv_dlopen"; then 13104 enable_dlopen=no 13105 else 13106 enable_dlopen=yes 13107 fi 13108 13109 case $lt_cv_dlopen in 13110 dlopen) 13111 save_CPPFLAGS=$CPPFLAGS 13112 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13113 13114 save_LDFLAGS=$LDFLAGS 13115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13116 13117 save_LIBS=$LIBS 13118 LIBS="$lt_cv_dlopen_libs $LIBS" 13119 13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13121 printf %s "checking whether a program can dlopen itself... " >&6; } 13122 if test ${lt_cv_dlopen_self+y} 13123 then : 13124 printf %s "(cached) " >&6 13125 else $as_nop 13126 if test yes = "$cross_compiling"; then : 13127 lt_cv_dlopen_self=cross 13128 else 13129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13130 lt_status=$lt_dlunknown 13131 cat > conftest.$ac_ext <<_LT_EOF 13132 #line $LINENO "configure" 13133 #include "confdefs.h" 13134 13135 #if HAVE_DLFCN_H 13136 #include <dlfcn.h> 13137 #endif 13138 13139 #include <stdio.h> 13140 13141 #ifdef RTLD_GLOBAL 13142 # define LT_DLGLOBAL RTLD_GLOBAL 13143 #else 13144 # ifdef DL_GLOBAL 13145 # define LT_DLGLOBAL DL_GLOBAL 13146 # else 13147 # define LT_DLGLOBAL 0 13148 # endif 13149 #endif 13150 13151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13152 find out it does not work in some platform. */ 13153 #ifndef LT_DLLAZY_OR_NOW 13154 # ifdef RTLD_LAZY 13155 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13156 # else 13157 # ifdef DL_LAZY 13158 # define LT_DLLAZY_OR_NOW DL_LAZY 13159 # else 13160 # ifdef RTLD_NOW 13161 # define LT_DLLAZY_OR_NOW RTLD_NOW 13162 # else 13163 # ifdef DL_NOW 13164 # define LT_DLLAZY_OR_NOW DL_NOW 13165 # else 13166 # define LT_DLLAZY_OR_NOW 0 13167 # endif 13168 # endif 13169 # endif 13170 # endif 13171 #endif 13172 13173 /* When -fvisibility=hidden is used, assume the code has been annotated 13174 correspondingly for the symbols needed. */ 13175 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13176 int fnord () __attribute__((visibility("default"))); 13177 #endif 13178 13179 int fnord () { return 42; } 13180 int main () 13181 { 13182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13183 int status = $lt_dlunknown; 13184 13185 if (self) 13186 { 13187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13188 else 13189 { 13190 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13191 else puts (dlerror ()); 13192 } 13193 /* dlclose (self); */ 13194 } 13195 else 13196 puts (dlerror ()); 13197 13198 return status; 13199 } 13200 _LT_EOF 13201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13202 (eval $ac_link) 2>&5 13203 ac_status=$? 13204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13205 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13206 (./conftest; exit; ) >&5 2>/dev/null 13207 lt_status=$? 13208 case x$lt_status in 13209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13212 esac 13213 else : 13214 # compilation failed 13215 lt_cv_dlopen_self=no 13216 fi 13217 fi 13218 rm -fr conftest* 13219 13220 13221 fi 13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13223 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13224 13225 if test yes = "$lt_cv_dlopen_self"; then 13226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13228 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13229 if test ${lt_cv_dlopen_self_static+y} 13230 then : 13231 printf %s "(cached) " >&6 13232 else $as_nop 13233 if test yes = "$cross_compiling"; then : 13234 lt_cv_dlopen_self_static=cross 13235 else 13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13237 lt_status=$lt_dlunknown 13238 cat > conftest.$ac_ext <<_LT_EOF 13239 #line $LINENO "configure" 13240 #include "confdefs.h" 13241 13242 #if HAVE_DLFCN_H 13243 #include <dlfcn.h> 13244 #endif 13245 13246 #include <stdio.h> 13247 13248 #ifdef RTLD_GLOBAL 13249 # define LT_DLGLOBAL RTLD_GLOBAL 13250 #else 13251 # ifdef DL_GLOBAL 13252 # define LT_DLGLOBAL DL_GLOBAL 13253 # else 13254 # define LT_DLGLOBAL 0 13255 # endif 13256 #endif 13257 13258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13259 find out it does not work in some platform. */ 13260 #ifndef LT_DLLAZY_OR_NOW 13261 # ifdef RTLD_LAZY 13262 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13263 # else 13264 # ifdef DL_LAZY 13265 # define LT_DLLAZY_OR_NOW DL_LAZY 13266 # else 13267 # ifdef RTLD_NOW 13268 # define LT_DLLAZY_OR_NOW RTLD_NOW 13269 # else 13270 # ifdef DL_NOW 13271 # define LT_DLLAZY_OR_NOW DL_NOW 13272 # else 13273 # define LT_DLLAZY_OR_NOW 0 13274 # endif 13275 # endif 13276 # endif 13277 # endif 13278 #endif 13279 13280 /* When -fvisibility=hidden is used, assume the code has been annotated 13281 correspondingly for the symbols needed. */ 13282 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13283 int fnord () __attribute__((visibility("default"))); 13284 #endif 13285 13286 int fnord () { return 42; } 13287 int main () 13288 { 13289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13290 int status = $lt_dlunknown; 13291 13292 if (self) 13293 { 13294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13295 else 13296 { 13297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13298 else puts (dlerror ()); 13299 } 13300 /* dlclose (self); */ 13301 } 13302 else 13303 puts (dlerror ()); 13304 13305 return status; 13306 } 13307 _LT_EOF 13308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13309 (eval $ac_link) 2>&5 13310 ac_status=$? 13311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13312 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13313 (./conftest; exit; ) >&5 2>/dev/null 13314 lt_status=$? 13315 case x$lt_status in 13316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13319 esac 13320 else : 13321 # compilation failed 13322 lt_cv_dlopen_self_static=no 13323 fi 13324 fi 13325 rm -fr conftest* 13326 13327 13328 fi 13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13330 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13331 fi 13332 13333 CPPFLAGS=$save_CPPFLAGS 13334 LDFLAGS=$save_LDFLAGS 13335 LIBS=$save_LIBS 13336 ;; 13337 esac 13338 13339 case $lt_cv_dlopen_self in 13340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13341 *) enable_dlopen_self=unknown ;; 13342 esac 13343 13344 case $lt_cv_dlopen_self_static in 13345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13346 *) enable_dlopen_self_static=unknown ;; 13347 esac 13348 fi 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 striplib= 13367 old_striplib= 13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13369 printf %s "checking whether stripping libraries is possible... " >&6; } 13370 if test -z "$STRIP"; then 13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13372 printf "%s\n" "no" >&6; } 13373 else 13374 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13375 old_striplib="$STRIP --strip-debug" 13376 striplib="$STRIP --strip-unneeded" 13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13378 printf "%s\n" "yes" >&6; } 13379 else 13380 case $host_os in 13381 darwin*) 13382 # FIXME - insert some real tests, host_os isn't really good enough 13383 striplib="$STRIP -x" 13384 old_striplib="$STRIP -S" 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13386 printf "%s\n" "yes" >&6; } 13387 ;; 13388 freebsd*) 13389 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13390 old_striplib="$STRIP --strip-debug" 13391 striplib="$STRIP --strip-unneeded" 13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13393 printf "%s\n" "yes" >&6; } 13394 else 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13396 printf "%s\n" "no" >&6; } 13397 fi 13398 ;; 13399 *) 13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13401 printf "%s\n" "no" >&6; } 13402 ;; 13403 esac 13404 fi 13405 fi 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 # Report what library types will actually be built 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13420 printf %s "checking if libtool supports shared libraries... " >&6; } 13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13422 printf "%s\n" "$can_build_shared" >&6; } 13423 13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13425 printf %s "checking whether to build shared libraries... " >&6; } 13426 test no = "$can_build_shared" && enable_shared=no 13427 13428 # On AIX, shared libraries and static libraries use the same namespace, and 13429 # are all built from PIC. 13430 case $host_os in 13431 aix3*) 13432 test yes = "$enable_shared" && enable_static=no 13433 if test -n "$RANLIB"; then 13434 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13435 postinstall_cmds='$RANLIB $lib' 13436 fi 13437 ;; 13438 13439 aix[4-9]*) 13440 if test ia64 != "$host_cpu"; then 13441 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13442 yes,aix,yes) ;; # shared object as lib.so file only 13443 yes,svr4,*) ;; # shared object as lib.so archive member only 13444 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13445 esac 13446 fi 13447 ;; 13448 esac 13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13450 printf "%s\n" "$enable_shared" >&6; } 13451 13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13453 printf %s "checking whether to build static libraries... " >&6; } 13454 # Make sure either enable_shared or enable_static is yes. 13455 test yes = "$enable_shared" || enable_static=yes 13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13457 printf "%s\n" "$enable_static" >&6; } 13458 13459 13460 13461 13462 fi 13463 ac_ext=c 13464 ac_cpp='$CPP $CPPFLAGS' 13465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13467 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13468 13469 CC=$lt_save_CC 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 ac_config_commands="$ac_config_commands libtool" 13486 13487 13488 13489 13490 # Only expand once: 13491 13492 13493 13494 13495 ac_ext=c 13496 ac_cpp='$CPP $CPPFLAGS' 13497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13499 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13500 if test -n "$ac_tool_prefix"; then 13501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 13502 set dummy ${ac_tool_prefix}gcc; ac_word=$2 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13504 printf %s "checking for $ac_word... " >&6; } 13505 if test ${ac_cv_prog_CC+y} 13506 then : 13507 printf %s "(cached) " >&6 13508 else $as_nop 13509 if test -n "$CC"; then 13510 ac_cv_prog_CC="$CC" # Let the user override the test. 13511 else 13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13513 for as_dir in $PATH 13514 do 13515 IFS=$as_save_IFS 13516 case $as_dir in #((( 13517 '') as_dir=./ ;; 13518 */) ;; 13519 *) as_dir=$as_dir/ ;; 13520 esac 13521 for ac_exec_ext in '' $ac_executable_extensions; do 13522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13523 ac_cv_prog_CC="${ac_tool_prefix}gcc" 13524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13525 break 2 13526 fi 13527 done 13528 done 13529 IFS=$as_save_IFS 13530 13531 fi 13532 fi 13533 CC=$ac_cv_prog_CC 13534 if test -n "$CC"; then 13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13536 printf "%s\n" "$CC" >&6; } 13537 else 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13539 printf "%s\n" "no" >&6; } 13540 fi 13541 13542 13543 fi 13544 if test -z "$ac_cv_prog_CC"; then 13545 ac_ct_CC=$CC 13546 # Extract the first word of "gcc", so it can be a program name with args. 13547 set dummy gcc; ac_word=$2 13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13549 printf %s "checking for $ac_word... " >&6; } 13550 if test ${ac_cv_prog_ac_ct_CC+y} 13551 then : 13552 printf %s "(cached) " >&6 13553 else $as_nop 13554 if test -n "$ac_ct_CC"; then 13555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13556 else 13557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13558 for as_dir in $PATH 13559 do 13560 IFS=$as_save_IFS 13561 case $as_dir in #((( 13562 '') as_dir=./ ;; 13563 */) ;; 13564 *) as_dir=$as_dir/ ;; 13565 esac 13566 for ac_exec_ext in '' $ac_executable_extensions; do 13567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13568 ac_cv_prog_ac_ct_CC="gcc" 13569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13570 break 2 13571 fi 13572 done 13573 done 13574 IFS=$as_save_IFS 13575 13576 fi 13577 fi 13578 ac_ct_CC=$ac_cv_prog_ac_ct_CC 13579 if test -n "$ac_ct_CC"; then 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13581 printf "%s\n" "$ac_ct_CC" >&6; } 13582 else 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13584 printf "%s\n" "no" >&6; } 13585 fi 13586 13587 if test "x$ac_ct_CC" = x; then 13588 CC="" 13589 else 13590 case $cross_compiling:$ac_tool_warned in 13591 yes:) 13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13594 ac_tool_warned=yes ;; 13595 esac 13596 CC=$ac_ct_CC 13597 fi 13598 else 13599 CC="$ac_cv_prog_CC" 13600 fi 13601 13602 if test -z "$CC"; then 13603 if test -n "$ac_tool_prefix"; then 13604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 13605 set dummy ${ac_tool_prefix}cc; ac_word=$2 13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13607 printf %s "checking for $ac_word... " >&6; } 13608 if test ${ac_cv_prog_CC+y} 13609 then : 13610 printf %s "(cached) " >&6 13611 else $as_nop 13612 if test -n "$CC"; then 13613 ac_cv_prog_CC="$CC" # Let the user override the test. 13614 else 13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13616 for as_dir in $PATH 13617 do 13618 IFS=$as_save_IFS 13619 case $as_dir in #((( 13620 '') as_dir=./ ;; 13621 */) ;; 13622 *) as_dir=$as_dir/ ;; 13623 esac 13624 for ac_exec_ext in '' $ac_executable_extensions; do 13625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13626 ac_cv_prog_CC="${ac_tool_prefix}cc" 13627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13628 break 2 13629 fi 13630 done 13631 done 13632 IFS=$as_save_IFS 13633 13634 fi 13635 fi 13636 CC=$ac_cv_prog_CC 13637 if test -n "$CC"; then 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13639 printf "%s\n" "$CC" >&6; } 13640 else 13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13642 printf "%s\n" "no" >&6; } 13643 fi 13644 13645 13646 fi 13647 fi 13648 if test -z "$CC"; then 13649 # Extract the first word of "cc", so it can be a program name with args. 13650 set dummy cc; ac_word=$2 13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13652 printf %s "checking for $ac_word... " >&6; } 13653 if test ${ac_cv_prog_CC+y} 13654 then : 13655 printf %s "(cached) " >&6 13656 else $as_nop 13657 if test -n "$CC"; then 13658 ac_cv_prog_CC="$CC" # Let the user override the test. 13659 else 13660 ac_prog_rejected=no 13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13662 for as_dir in $PATH 13663 do 13664 IFS=$as_save_IFS 13665 case $as_dir in #((( 13666 '') as_dir=./ ;; 13667 */) ;; 13668 *) as_dir=$as_dir/ ;; 13669 esac 13670 for ac_exec_ext in '' $ac_executable_extensions; do 13671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13672 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 13673 ac_prog_rejected=yes 13674 continue 13675 fi 13676 ac_cv_prog_CC="cc" 13677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13678 break 2 13679 fi 13680 done 13681 done 13682 IFS=$as_save_IFS 13683 13684 if test $ac_prog_rejected = yes; then 13685 # We found a bogon in the path, so make sure we never use it. 13686 set dummy $ac_cv_prog_CC 13687 shift 13688 if test $# != 0; then 13689 # We chose a different compiler from the bogus one. 13690 # However, it has the same basename, so the bogon will be chosen 13691 # first if we set CC to just the basename; use the full file name. 13692 shift 13693 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 13694 fi 13695 fi 13696 fi 13697 fi 13698 CC=$ac_cv_prog_CC 13699 if test -n "$CC"; then 13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13701 printf "%s\n" "$CC" >&6; } 13702 else 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13704 printf "%s\n" "no" >&6; } 13705 fi 13706 13707 13708 fi 13709 if test -z "$CC"; then 13710 if test -n "$ac_tool_prefix"; then 13711 for ac_prog in cl.exe 13712 do 13713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13716 printf %s "checking for $ac_word... " >&6; } 13717 if test ${ac_cv_prog_CC+y} 13718 then : 13719 printf %s "(cached) " >&6 13720 else $as_nop 13721 if test -n "$CC"; then 13722 ac_cv_prog_CC="$CC" # Let the user override the test. 13723 else 13724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13725 for as_dir in $PATH 13726 do 13727 IFS=$as_save_IFS 13728 case $as_dir in #((( 13729 '') as_dir=./ ;; 13730 */) ;; 13731 *) as_dir=$as_dir/ ;; 13732 esac 13733 for ac_exec_ext in '' $ac_executable_extensions; do 13734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13737 break 2 13738 fi 13739 done 13740 done 13741 IFS=$as_save_IFS 13742 13743 fi 13744 fi 13745 CC=$ac_cv_prog_CC 13746 if test -n "$CC"; then 13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13748 printf "%s\n" "$CC" >&6; } 13749 else 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13751 printf "%s\n" "no" >&6; } 13752 fi 13753 13754 13755 test -n "$CC" && break 13756 done 13757 fi 13758 if test -z "$CC"; then 13759 ac_ct_CC=$CC 13760 for ac_prog in cl.exe 13761 do 13762 # Extract the first word of "$ac_prog", so it can be a program name with args. 13763 set dummy $ac_prog; ac_word=$2 13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13765 printf %s "checking for $ac_word... " >&6; } 13766 if test ${ac_cv_prog_ac_ct_CC+y} 13767 then : 13768 printf %s "(cached) " >&6 13769 else $as_nop 13770 if test -n "$ac_ct_CC"; then 13771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13772 else 13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13774 for as_dir in $PATH 13775 do 13776 IFS=$as_save_IFS 13777 case $as_dir in #((( 13778 '') as_dir=./ ;; 13779 */) ;; 13780 *) as_dir=$as_dir/ ;; 13781 esac 13782 for ac_exec_ext in '' $ac_executable_extensions; do 13783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13784 ac_cv_prog_ac_ct_CC="$ac_prog" 13785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13786 break 2 13787 fi 13788 done 13789 done 13790 IFS=$as_save_IFS 13791 13792 fi 13793 fi 13794 ac_ct_CC=$ac_cv_prog_ac_ct_CC 13795 if test -n "$ac_ct_CC"; then 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13797 printf "%s\n" "$ac_ct_CC" >&6; } 13798 else 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13800 printf "%s\n" "no" >&6; } 13801 fi 13802 13803 13804 test -n "$ac_ct_CC" && break 13805 done 13806 13807 if test "x$ac_ct_CC" = x; then 13808 CC="" 13809 else 13810 case $cross_compiling:$ac_tool_warned in 13811 yes:) 13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13813 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13814 ac_tool_warned=yes ;; 13815 esac 13816 CC=$ac_ct_CC 13817 fi 13818 fi 13819 13820 fi 13821 if test -z "$CC"; then 13822 if test -n "$ac_tool_prefix"; then 13823 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 13824 set dummy ${ac_tool_prefix}clang; ac_word=$2 13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13826 printf %s "checking for $ac_word... " >&6; } 13827 if test ${ac_cv_prog_CC+y} 13828 then : 13829 printf %s "(cached) " >&6 13830 else $as_nop 13831 if test -n "$CC"; then 13832 ac_cv_prog_CC="$CC" # Let the user override the test. 13833 else 13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13835 for as_dir in $PATH 13836 do 13837 IFS=$as_save_IFS 13838 case $as_dir in #((( 13839 '') as_dir=./ ;; 13840 */) ;; 13841 *) as_dir=$as_dir/ ;; 13842 esac 13843 for ac_exec_ext in '' $ac_executable_extensions; do 13844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13845 ac_cv_prog_CC="${ac_tool_prefix}clang" 13846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13847 break 2 13848 fi 13849 done 13850 done 13851 IFS=$as_save_IFS 13852 13853 fi 13854 fi 13855 CC=$ac_cv_prog_CC 13856 if test -n "$CC"; then 13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13858 printf "%s\n" "$CC" >&6; } 13859 else 13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13861 printf "%s\n" "no" >&6; } 13862 fi 13863 13864 13865 fi 13866 if test -z "$ac_cv_prog_CC"; then 13867 ac_ct_CC=$CC 13868 # Extract the first word of "clang", so it can be a program name with args. 13869 set dummy clang; ac_word=$2 13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13871 printf %s "checking for $ac_word... " >&6; } 13872 if test ${ac_cv_prog_ac_ct_CC+y} 13873 then : 13874 printf %s "(cached) " >&6 13875 else $as_nop 13876 if test -n "$ac_ct_CC"; then 13877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13878 else 13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13880 for as_dir in $PATH 13881 do 13882 IFS=$as_save_IFS 13883 case $as_dir in #((( 13884 '') as_dir=./ ;; 13885 */) ;; 13886 *) as_dir=$as_dir/ ;; 13887 esac 13888 for ac_exec_ext in '' $ac_executable_extensions; do 13889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13890 ac_cv_prog_ac_ct_CC="clang" 13891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13892 break 2 13893 fi 13894 done 13895 done 13896 IFS=$as_save_IFS 13897 13898 fi 13899 fi 13900 ac_ct_CC=$ac_cv_prog_ac_ct_CC 13901 if test -n "$ac_ct_CC"; then 13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13903 printf "%s\n" "$ac_ct_CC" >&6; } 13904 else 13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13906 printf "%s\n" "no" >&6; } 13907 fi 13908 13909 if test "x$ac_ct_CC" = x; then 13910 CC="" 13911 else 13912 case $cross_compiling:$ac_tool_warned in 13913 yes:) 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13916 ac_tool_warned=yes ;; 13917 esac 13918 CC=$ac_ct_CC 13919 fi 13920 else 13921 CC="$ac_cv_prog_CC" 13922 fi 13923 13924 fi 13925 13926 13927 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13928 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13929 as_fn_error $? "no acceptable C compiler found in \$PATH 13930 See \`config.log' for more details" "$LINENO" 5; } 13931 13932 # Provide some information about the compiler. 13933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13934 set X $ac_compile 13935 ac_compiler=$2 13936 for ac_option in --version -v -V -qversion -version; do 13937 { { ac_try="$ac_compiler $ac_option >&5" 13938 case "(($ac_try" in 13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13940 *) ac_try_echo=$ac_try;; 13941 esac 13942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13943 printf "%s\n" "$ac_try_echo"; } >&5 13944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13945 ac_status=$? 13946 if test -s conftest.err; then 13947 sed '10a\ 13948 ... rest of stderr output deleted ... 13949 10q' conftest.err >conftest.er1 13950 cat conftest.er1 >&5 13951 fi 13952 rm -f conftest.er1 conftest.err 13953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13954 test $ac_status = 0; } 13955 done 13956 13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 13958 printf %s "checking whether the compiler supports GNU C... " >&6; } 13959 if test ${ac_cv_c_compiler_gnu+y} 13960 then : 13961 printf %s "(cached) " >&6 13962 else $as_nop 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964 /* end confdefs.h. */ 13965 13966 int 13967 main (void) 13968 { 13969 #ifndef __GNUC__ 13970 choke me 13971 #endif 13972 13973 ; 13974 return 0; 13975 } 13976 _ACEOF 13977 if ac_fn_c_try_compile "$LINENO" 13978 then : 13979 ac_compiler_gnu=yes 13980 else $as_nop 13981 ac_compiler_gnu=no 13982 fi 13983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13984 ac_cv_c_compiler_gnu=$ac_compiler_gnu 13985 13986 fi 13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13988 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 13989 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13990 13991 if test $ac_compiler_gnu = yes; then 13992 GCC=yes 13993 else 13994 GCC= 13995 fi 13996 ac_test_CFLAGS=${CFLAGS+y} 13997 ac_save_CFLAGS=$CFLAGS 13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13999 printf %s "checking whether $CC accepts -g... " >&6; } 14000 if test ${ac_cv_prog_cc_g+y} 14001 then : 14002 printf %s "(cached) " >&6 14003 else $as_nop 14004 ac_save_c_werror_flag=$ac_c_werror_flag 14005 ac_c_werror_flag=yes 14006 ac_cv_prog_cc_g=no 14007 CFLAGS="-g" 14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14009 /* end confdefs.h. */ 14010 14011 int 14012 main (void) 14013 { 14014 14015 ; 14016 return 0; 14017 } 14018 _ACEOF 14019 if ac_fn_c_try_compile "$LINENO" 14020 then : 14021 ac_cv_prog_cc_g=yes 14022 else $as_nop 14023 CFLAGS="" 14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14025 /* end confdefs.h. */ 14026 14027 int 14028 main (void) 14029 { 14030 14031 ; 14032 return 0; 14033 } 14034 _ACEOF 14035 if ac_fn_c_try_compile "$LINENO" 14036 then : 14037 14038 else $as_nop 14039 ac_c_werror_flag=$ac_save_c_werror_flag 14040 CFLAGS="-g" 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042 /* end confdefs.h. */ 14043 14044 int 14045 main (void) 14046 { 14047 14048 ; 14049 return 0; 14050 } 14051 _ACEOF 14052 if ac_fn_c_try_compile "$LINENO" 14053 then : 14054 ac_cv_prog_cc_g=yes 14055 fi 14056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14057 fi 14058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14059 fi 14060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14061 ac_c_werror_flag=$ac_save_c_werror_flag 14062 fi 14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 14064 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 14065 if test $ac_test_CFLAGS; then 14066 CFLAGS=$ac_save_CFLAGS 14067 elif test $ac_cv_prog_cc_g = yes; then 14068 if test "$GCC" = yes; then 14069 CFLAGS="-g -O2" 14070 else 14071 CFLAGS="-g" 14072 fi 14073 else 14074 if test "$GCC" = yes; then 14075 CFLAGS="-O2" 14076 else 14077 CFLAGS= 14078 fi 14079 fi 14080 ac_prog_cc_stdc=no 14081 if test x$ac_prog_cc_stdc = xno 14082 then : 14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 14084 printf %s "checking for $CC option to enable C11 features... " >&6; } 14085 if test ${ac_cv_prog_cc_c11+y} 14086 then : 14087 printf %s "(cached) " >&6 14088 else $as_nop 14089 ac_cv_prog_cc_c11=no 14090 ac_save_CC=$CC 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092 /* end confdefs.h. */ 14093 $ac_c_conftest_c11_program 14094 _ACEOF 14095 for ac_arg in '' -std=gnu11 14096 do 14097 CC="$ac_save_CC $ac_arg" 14098 if ac_fn_c_try_compile "$LINENO" 14099 then : 14100 ac_cv_prog_cc_c11=$ac_arg 14101 fi 14102 rm -f core conftest.err conftest.$ac_objext conftest.beam 14103 test "x$ac_cv_prog_cc_c11" != "xno" && break 14104 done 14105 rm -f conftest.$ac_ext 14106 CC=$ac_save_CC 14107 fi 14108 14109 if test "x$ac_cv_prog_cc_c11" = xno 14110 then : 14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14112 printf "%s\n" "unsupported" >&6; } 14113 else $as_nop 14114 if test "x$ac_cv_prog_cc_c11" = x 14115 then : 14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14117 printf "%s\n" "none needed" >&6; } 14118 else $as_nop 14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 14120 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 14121 CC="$CC $ac_cv_prog_cc_c11" 14122 fi 14123 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 14124 ac_prog_cc_stdc=c11 14125 fi 14126 fi 14127 if test x$ac_prog_cc_stdc = xno 14128 then : 14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 14130 printf %s "checking for $CC option to enable C99 features... " >&6; } 14131 if test ${ac_cv_prog_cc_c99+y} 14132 then : 14133 printf %s "(cached) " >&6 14134 else $as_nop 14135 ac_cv_prog_cc_c99=no 14136 ac_save_CC=$CC 14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14138 /* end confdefs.h. */ 14139 $ac_c_conftest_c99_program 14140 _ACEOF 14141 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 14142 do 14143 CC="$ac_save_CC $ac_arg" 14144 if ac_fn_c_try_compile "$LINENO" 14145 then : 14146 ac_cv_prog_cc_c99=$ac_arg 14147 fi 14148 rm -f core conftest.err conftest.$ac_objext conftest.beam 14149 test "x$ac_cv_prog_cc_c99" != "xno" && break 14150 done 14151 rm -f conftest.$ac_ext 14152 CC=$ac_save_CC 14153 fi 14154 14155 if test "x$ac_cv_prog_cc_c99" = xno 14156 then : 14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14158 printf "%s\n" "unsupported" >&6; } 14159 else $as_nop 14160 if test "x$ac_cv_prog_cc_c99" = x 14161 then : 14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14163 printf "%s\n" "none needed" >&6; } 14164 else $as_nop 14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 14166 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 14167 CC="$CC $ac_cv_prog_cc_c99" 14168 fi 14169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 14170 ac_prog_cc_stdc=c99 14171 fi 14172 fi 14173 if test x$ac_prog_cc_stdc = xno 14174 then : 14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 14176 printf %s "checking for $CC option to enable C89 features... " >&6; } 14177 if test ${ac_cv_prog_cc_c89+y} 14178 then : 14179 printf %s "(cached) " >&6 14180 else $as_nop 14181 ac_cv_prog_cc_c89=no 14182 ac_save_CC=$CC 14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14184 /* end confdefs.h. */ 14185 $ac_c_conftest_c89_program 14186 _ACEOF 14187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 14188 do 14189 CC="$ac_save_CC $ac_arg" 14190 if ac_fn_c_try_compile "$LINENO" 14191 then : 14192 ac_cv_prog_cc_c89=$ac_arg 14193 fi 14194 rm -f core conftest.err conftest.$ac_objext conftest.beam 14195 test "x$ac_cv_prog_cc_c89" != "xno" && break 14196 done 14197 rm -f conftest.$ac_ext 14198 CC=$ac_save_CC 14199 fi 14200 14201 if test "x$ac_cv_prog_cc_c89" = xno 14202 then : 14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14204 printf "%s\n" "unsupported" >&6; } 14205 else $as_nop 14206 if test "x$ac_cv_prog_cc_c89" = x 14207 then : 14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14209 printf "%s\n" "none needed" >&6; } 14210 else $as_nop 14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 14212 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 14213 CC="$CC $ac_cv_prog_cc_c89" 14214 fi 14215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 14216 ac_prog_cc_stdc=c89 14217 fi 14218 fi 14219 14220 ac_ext=c 14221 ac_cpp='$CPP $CPPFLAGS' 14222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14224 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14225 14226 14227 ac_ext=c 14228 ac_cpp='$CPP $CPPFLAGS' 14229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14231 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 14233 printf %s "checking whether $CC understands -c and -o together... " >&6; } 14234 if test ${am_cv_prog_cc_c_o+y} 14235 then : 14236 printf %s "(cached) " >&6 14237 else $as_nop 14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14239 /* end confdefs.h. */ 14240 14241 int 14242 main (void) 14243 { 14244 14245 ; 14246 return 0; 14247 } 14248 _ACEOF 14249 # Make sure it works both with $CC and with simple cc. 14250 # Following AC_PROG_CC_C_O, we do the test twice because some 14251 # compilers refuse to overwrite an existing .o file with -o, 14252 # though they will create one. 14253 am_cv_prog_cc_c_o=yes 14254 for am_i in 1 2; do 14255 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 14256 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 14257 ac_status=$? 14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14259 (exit $ac_status); } \ 14260 && test -f conftest2.$ac_objext; then 14261 : OK 14262 else 14263 am_cv_prog_cc_c_o=no 14264 break 14265 fi 14266 done 14267 rm -f core conftest* 14268 unset am_i 14269 fi 14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 14271 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 14272 if test "$am_cv_prog_cc_c_o" != yes; then 14273 # Losing compiler, so override with the script. 14274 # FIXME: It is wrong to rewrite CC. 14275 # But if we don't then we get into trouble of one sort or another. 14276 # A longer-term fix would be to have automake use am__CC in this case, 14277 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 14278 CC="$am_aux_dir/compile $CC" 14279 fi 14280 ac_ext=c 14281 ac_cpp='$CPP $CPPFLAGS' 14282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14284 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14285 14286 14287 depcc="$CC" am_compiler_list= 14288 14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14290 printf %s "checking dependency style of $depcc... " >&6; } 14291 if test ${am_cv_CC_dependencies_compiler_type+y} 14292 then : 14293 printf %s "(cached) " >&6 14294 else $as_nop 14295 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 14296 # We make a subdir and do the tests there. Otherwise we can end up 14297 # making bogus files that we don't know about and never remove. For 14298 # instance it was reported that on HP-UX the gcc test will end up 14299 # making a dummy file named 'D' -- because '-MD' means "put the output 14300 # in D". 14301 rm -rf conftest.dir 14302 mkdir conftest.dir 14303 # Copy depcomp to subdir because otherwise we won't find it if we're 14304 # using a relative directory. 14305 cp "$am_depcomp" conftest.dir 14306 cd conftest.dir 14307 # We will build objects and dependencies in a subdirectory because 14308 # it helps to detect inapplicable dependency modes. For instance 14309 # both Tru64's cc and ICC support -MD to output dependencies as a 14310 # side effect of compilation, but ICC will put the dependencies in 14311 # the current directory while Tru64 will put them in the object 14312 # directory. 14313 mkdir sub 14314 14315 am_cv_CC_dependencies_compiler_type=none 14316 if test "$am_compiler_list" = ""; then 14317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 14318 fi 14319 am__universal=false 14320 case " $depcc " in #( 14321 *\ -arch\ *\ -arch\ *) am__universal=true ;; 14322 esac 14323 14324 for depmode in $am_compiler_list; do 14325 # Setup a source with many dependencies, because some compilers 14326 # like to wrap large dependency lists on column 80 (with \), and 14327 # we should not choose a depcomp mode which is confused by this. 14328 # 14329 # We need to recreate these files for each test, as the compiler may 14330 # overwrite some of them when testing with obscure command lines. 14331 # This happens at least with the AIX C compiler. 14332 : > sub/conftest.c 14333 for i in 1 2 3 4 5 6; do 14334 echo '#include "conftst'$i'.h"' >> sub/conftest.c 14335 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14336 # Solaris 10 /bin/sh. 14337 echo '/* dummy */' > sub/conftst$i.h 14338 done 14339 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14340 14341 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14342 # mode. It turns out that the SunPro C++ compiler does not properly 14343 # handle '-M -o', and we need to detect this. Also, some Intel 14344 # versions had trouble with output in subdirs. 14345 am__obj=sub/conftest.${OBJEXT-o} 14346 am__minus_obj="-o $am__obj" 14347 case $depmode in 14348 gcc) 14349 # This depmode causes a compiler race in universal mode. 14350 test "$am__universal" = false || continue 14351 ;; 14352 nosideeffect) 14353 # After this tag, mechanisms are not by side-effect, so they'll 14354 # only be used when explicitly requested. 14355 if test "x$enable_dependency_tracking" = xyes; then 14356 continue 14357 else 14358 break 14359 fi 14360 ;; 14361 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14362 # This compiler won't grok '-c -o', but also, the minuso test has 14363 # not run yet. These depmodes are late enough in the game, and 14364 # so weak that their functioning should not be impacted. 14365 am__obj=conftest.${OBJEXT-o} 14366 am__minus_obj= 14367 ;; 14368 none) break ;; 14369 esac 14370 if depmode=$depmode \ 14371 source=sub/conftest.c object=$am__obj \ 14372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14373 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14374 >/dev/null 2>conftest.err && 14375 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14376 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14377 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14379 # icc doesn't choke on unknown options, it will just issue warnings 14380 # or remarks (even with -Werror). So we grep stderr for any message 14381 # that says an option was ignored or not supported. 14382 # When given -MP, icc 7.0 and 7.1 complain thusly: 14383 # icc: Command line warning: ignoring option '-M'; no argument required 14384 # The diagnosis changed in icc 8.0: 14385 # icc: Command line remark: option '-MP' not supported 14386 if (grep 'ignoring option' conftest.err || 14387 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14388 am_cv_CC_dependencies_compiler_type=$depmode 14389 break 14390 fi 14391 fi 14392 done 14393 14394 cd .. 14395 rm -rf conftest.dir 14396 else 14397 am_cv_CC_dependencies_compiler_type=none 14398 fi 14399 14400 fi 14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 14402 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 14403 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 14404 14405 if 14406 test "x$enable_dependency_tracking" != xno \ 14407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 14408 am__fastdepCC_TRUE= 14409 am__fastdepCC_FALSE='#' 14410 else 14411 am__fastdepCC_TRUE='#' 14412 am__fastdepCC_FALSE= 14413 fi 14414 14415 14416 14417 ac_ext=c 14418 ac_cpp='$CPP $CPPFLAGS' 14419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14421 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 14423 printf %s "checking how to run the C preprocessor... " >&6; } 14424 # On Suns, sometimes $CPP names a directory. 14425 if test -n "$CPP" && test -d "$CPP"; then 14426 CPP= 14427 fi 14428 if test -z "$CPP"; then 14429 if test ${ac_cv_prog_CPP+y} 14430 then : 14431 printf %s "(cached) " >&6 14432 else $as_nop 14433 # Double quotes because $CC needs to be expanded 14434 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 14435 do 14436 ac_preproc_ok=false 14437 for ac_c_preproc_warn_flag in '' yes 14438 do 14439 # Use a header file that comes with gcc, so configuring glibc 14440 # with a fresh cross-compiler works. 14441 # On the NeXT, cc -E runs the code through the compiler's parser, 14442 # not just through cpp. "Syntax error" is here to catch this case. 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444 /* end confdefs.h. */ 14445 #include <limits.h> 14446 Syntax error 14447 _ACEOF 14448 if ac_fn_c_try_cpp "$LINENO" 14449 then : 14450 14451 else $as_nop 14452 # Broken: fails on valid input. 14453 continue 14454 fi 14455 rm -f conftest.err conftest.i conftest.$ac_ext 14456 14457 # OK, works on sane cases. Now check whether nonexistent headers 14458 # can be detected and how. 14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460 /* end confdefs.h. */ 14461 #include <ac_nonexistent.h> 14462 _ACEOF 14463 if ac_fn_c_try_cpp "$LINENO" 14464 then : 14465 # Broken: success on invalid input. 14466 continue 14467 else $as_nop 14468 # Passes both tests. 14469 ac_preproc_ok=: 14470 break 14471 fi 14472 rm -f conftest.err conftest.i conftest.$ac_ext 14473 14474 done 14475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14476 rm -f conftest.i conftest.err conftest.$ac_ext 14477 if $ac_preproc_ok 14478 then : 14479 break 14480 fi 14481 14482 done 14483 ac_cv_prog_CPP=$CPP 14484 14485 fi 14486 CPP=$ac_cv_prog_CPP 14487 else 14488 ac_cv_prog_CPP=$CPP 14489 fi 14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 14491 printf "%s\n" "$CPP" >&6; } 14492 ac_preproc_ok=false 14493 for ac_c_preproc_warn_flag in '' yes 14494 do 14495 # Use a header file that comes with gcc, so configuring glibc 14496 # with a fresh cross-compiler works. 14497 # On the NeXT, cc -E runs the code through the compiler's parser, 14498 # not just through cpp. "Syntax error" is here to catch this case. 14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500 /* end confdefs.h. */ 14501 #include <limits.h> 14502 Syntax error 14503 _ACEOF 14504 if ac_fn_c_try_cpp "$LINENO" 14505 then : 14506 14507 else $as_nop 14508 # Broken: fails on valid input. 14509 continue 14510 fi 14511 rm -f conftest.err conftest.i conftest.$ac_ext 14512 14513 # OK, works on sane cases. Now check whether nonexistent headers 14514 # can be detected and how. 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516 /* end confdefs.h. */ 14517 #include <ac_nonexistent.h> 14518 _ACEOF 14519 if ac_fn_c_try_cpp "$LINENO" 14520 then : 14521 # Broken: success on invalid input. 14522 continue 14523 else $as_nop 14524 # Passes both tests. 14525 ac_preproc_ok=: 14526 break 14527 fi 14528 rm -f conftest.err conftest.i conftest.$ac_ext 14529 14530 done 14531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14532 rm -f conftest.i conftest.err conftest.$ac_ext 14533 if $ac_preproc_ok 14534 then : 14535 14536 else $as_nop 14537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14539 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 14540 See \`config.log' for more details" "$LINENO" 5; } 14541 fi 14542 14543 ac_ext=c 14544 ac_cpp='$CPP $CPPFLAGS' 14545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14547 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14548 14549 14550 14551 14552 14553 14554 14555 # Find any Python interpreter. 14556 if test -z "$PYTHON"; then 14557 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 14558 do 14559 # Extract the first word of "$ac_prog", so it can be a program name with args. 14560 set dummy $ac_prog; ac_word=$2 14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14562 printf %s "checking for $ac_word... " >&6; } 14563 if test ${ac_cv_path_PYTHON+y} 14564 then : 14565 printf %s "(cached) " >&6 14566 else $as_nop 14567 case $PYTHON in 14568 [\\/]* | ?:[\\/]*) 14569 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 14570 ;; 14571 *) 14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14573 for as_dir in $PATH 14574 do 14575 IFS=$as_save_IFS 14576 case $as_dir in #((( 14577 '') as_dir=./ ;; 14578 */) ;; 14579 *) as_dir=$as_dir/ ;; 14580 esac 14581 for ac_exec_ext in '' $ac_executable_extensions; do 14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14583 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14585 break 2 14586 fi 14587 done 14588 done 14589 IFS=$as_save_IFS 14590 14591 ;; 14592 esac 14593 fi 14594 PYTHON=$ac_cv_path_PYTHON 14595 if test -n "$PYTHON"; then 14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 14597 printf "%s\n" "$PYTHON" >&6; } 14598 else 14599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14600 printf "%s\n" "no" >&6; } 14601 fi 14602 14603 14604 test -n "$PYTHON" && break 14605 done 14606 test -n "$PYTHON" || PYTHON=":" 14607 14608 fi 14609 am_display_PYTHON=python 14610 14611 14612 if test "$PYTHON" = :; then 14613 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 14614 else 14615 14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 14617 printf %s "checking for $am_display_PYTHON version... " >&6; } 14618 if test ${am_cv_python_version+y} 14619 then : 14620 printf %s "(cached) " >&6 14621 else $as_nop 14622 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 14623 fi 14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 14625 printf "%s\n" "$am_cv_python_version" >&6; } 14626 PYTHON_VERSION=$am_cv_python_version 14627 14628 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 14630 printf %s "checking for $am_display_PYTHON platform... " >&6; } 14631 if test ${am_cv_python_platform+y} 14632 then : 14633 printf %s "(cached) " >&6 14634 else $as_nop 14635 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 14636 fi 14637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 14638 printf "%s\n" "$am_cv_python_platform" >&6; } 14639 PYTHON_PLATFORM=$am_cv_python_platform 14640 14641 14642 if test "x$prefix" = xNONE; then 14643 am__usable_prefix=$ac_default_prefix 14644 else 14645 am__usable_prefix=$prefix 14646 fi 14647 14648 # Allow user to request using sys.* values from Python, 14649 # instead of the GNU $prefix values. 14650 14651 # Check whether --with-python-sys-prefix was given. 14652 if test ${with_python_sys_prefix+y} 14653 then : 14654 withval=$with_python_sys_prefix; am_use_python_sys=: 14655 else $as_nop 14656 am_use_python_sys=false 14657 fi 14658 14659 14660 # Allow user to override whatever the default Python prefix is. 14661 14662 # Check whether --with-python_prefix was given. 14663 if test ${with_python_prefix+y} 14664 then : 14665 withval=$with_python_prefix; am_python_prefix_subst=$withval 14666 am_cv_python_prefix=$withval 14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 14668 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 14670 printf "%s\n" "$am_cv_python_prefix" >&6; } 14671 else $as_nop 14672 14673 if $am_use_python_sys; then 14674 # using python sys.prefix value, not GNU 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 14676 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 14677 if test ${am_cv_python_prefix+y} 14678 then : 14679 printf %s "(cached) " >&6 14680 else $as_nop 14681 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 14682 fi 14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 14684 printf "%s\n" "$am_cv_python_prefix" >&6; } 14685 14686 case $am_cv_python_prefix in 14687 $am__usable_prefix*) 14688 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 14689 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 14690 ;; 14691 *) 14692 am_python_prefix_subst=$am_cv_python_prefix 14693 ;; 14694 esac 14695 else # using GNU prefix value, not python sys.prefix 14696 am_python_prefix_subst='${prefix}' 14697 am_python_prefix=$am_python_prefix_subst 14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 14699 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 14701 printf "%s\n" "$am_python_prefix" >&6; } 14702 fi 14703 fi 14704 14705 # Substituting python_prefix_subst value. 14706 PYTHON_PREFIX=$am_python_prefix_subst 14707 14708 14709 # emacs-page Now do it all over again for Python exec_prefix, but with yet 14710 # another conditional: fall back to regular prefix if that was specified. 14711 14712 # Check whether --with-python_exec_prefix was given. 14713 if test ${with_python_exec_prefix+y} 14714 then : 14715 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 14716 am_cv_python_exec_prefix=$withval 14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 14718 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14720 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14721 else $as_nop 14722 14723 # no explicit --with-python_exec_prefix, but if 14724 # --with-python_prefix was given, use its value for python_exec_prefix too. 14725 if test -n "$with_python_prefix" 14726 then : 14727 am_python_exec_prefix_subst=$with_python_prefix 14728 am_cv_python_exec_prefix=$with_python_prefix 14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 14730 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14732 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14733 else $as_nop 14734 14735 # Set am__usable_exec_prefix whether using GNU or Python values, 14736 # since we use that variable for pyexecdir. 14737 if test "x$exec_prefix" = xNONE; then 14738 am__usable_exec_prefix=$am__usable_prefix 14739 else 14740 am__usable_exec_prefix=$exec_prefix 14741 fi 14742 # 14743 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 14745 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 14746 if test ${am_cv_python_exec_prefix+y} 14747 then : 14748 printf %s "(cached) " >&6 14749 else $as_nop 14750 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 14751 fi 14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14753 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14754 case $am_cv_python_exec_prefix in 14755 $am__usable_exec_prefix*) 14756 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 14757 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 14758 ;; 14759 *) 14760 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 14761 ;; 14762 esac 14763 else # using GNU $exec_prefix, not python sys.exec_prefix 14764 am_python_exec_prefix_subst='${exec_prefix}' 14765 am_python_exec_prefix=$am_python_exec_prefix_subst 14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 14767 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 14769 printf "%s\n" "$am_python_exec_prefix" >&6; } 14770 fi 14771 fi 14772 fi 14773 14774 # Substituting python_exec_prefix_subst. 14775 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 14776 14777 14778 # Factor out some code duplication into this shell variable. 14779 am_python_setup_sysconfig="\ 14780 import sys 14781 # Prefer sysconfig over distutils.sysconfig, for better compatibility 14782 # with python 3.x. See automake bug#10227. 14783 try: 14784 import sysconfig 14785 except ImportError: 14786 can_use_sysconfig = 0 14787 else: 14788 can_use_sysconfig = 1 14789 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 14790 # <https://github.com/pypa/virtualenv/issues/118> 14791 try: 14792 from platform import python_implementation 14793 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 14794 can_use_sysconfig = 0 14795 except ImportError: 14796 pass" 14797 14798 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 14800 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 14801 if test ${am_cv_python_pythondir+y} 14802 then : 14803 printf %s "(cached) " >&6 14804 else $as_nop 14805 if test "x$am_cv_python_prefix" = x; then 14806 am_py_prefix=$am__usable_prefix 14807 else 14808 am_py_prefix=$am_cv_python_prefix 14809 fi 14810 am_cv_python_pythondir=`$PYTHON -c " 14811 $am_python_setup_sysconfig 14812 if can_use_sysconfig: 14813 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 14814 else: 14815 from distutils import sysconfig 14816 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 14817 sys.stdout.write(sitedir)"` 14818 # 14819 case $am_cv_python_pythondir in 14820 $am_py_prefix*) 14821 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 14822 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 14823 ;; 14824 *) 14825 case $am_py_prefix in 14826 /usr|/System*) ;; 14827 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 14828 ;; 14829 esac 14830 ;; 14831 esac 14832 14833 fi 14834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 14835 printf "%s\n" "$am_cv_python_pythondir" >&6; } 14836 pythondir=$am_cv_python_pythondir 14837 14838 14839 pkgpythondir=\${pythondir}/$PACKAGE 14840 14841 14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 14843 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 14844 if test ${am_cv_python_pyexecdir+y} 14845 then : 14846 printf %s "(cached) " >&6 14847 else $as_nop 14848 if test "x$am_cv_python_exec_prefix" = x; then 14849 am_py_exec_prefix=$am__usable_exec_prefix 14850 else 14851 am_py_exec_prefix=$am_cv_python_exec_prefix 14852 fi 14853 am_cv_python_pyexecdir=`$PYTHON -c " 14854 $am_python_setup_sysconfig 14855 if can_use_sysconfig: 14856 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 14857 else: 14858 from distutils import sysconfig 14859 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 14860 sys.stdout.write(sitedir)"` 14861 # 14862 case $am_cv_python_pyexecdir in 14863 $am_py_exec_prefix*) 14864 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 14865 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 14866 ;; 14867 *) 14868 case $am_py_exec_prefix in 14869 /usr|/System*) ;; 14870 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 14871 ;; 14872 esac 14873 ;; 14874 esac 14875 14876 fi 14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 14878 printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 14879 pyexecdir=$am_cv_python_pyexecdir 14880 14881 14882 pkgpyexecdir=\${pyexecdir}/$PACKAGE 14883 14884 14885 14886 fi 14887 14888 # Extract the first word of "clang-format", so it can be a program name with args. 14889 set dummy clang-format; ac_word=$2 14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14891 printf %s "checking for $ac_word... " >&6; } 14892 if test ${ac_cv_prog_CLANG_FORMAT+y} 14893 then : 14894 printf %s "(cached) " >&6 14895 else $as_nop 14896 if test -n "$CLANG_FORMAT"; then 14897 ac_cv_prog_CLANG_FORMAT="$CLANG_FORMAT" # Let the user override the test. 14898 else 14899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14900 for as_dir in $PATH 14901 do 14902 IFS=$as_save_IFS 14903 case $as_dir in #((( 14904 '') as_dir=./ ;; 14905 */) ;; 14906 *) as_dir=$as_dir/ ;; 14907 esac 14908 for ac_exec_ext in '' $ac_executable_extensions; do 14909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14910 ac_cv_prog_CLANG_FORMAT="clang-format" 14911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14912 break 2 14913 fi 14914 done 14915 done 14916 IFS=$as_save_IFS 14917 14918 test -z "$ac_cv_prog_CLANG_FORMAT" && ac_cv_prog_CLANG_FORMAT="no" 14919 fi 14920 fi 14921 CLANG_FORMAT=$ac_cv_prog_CLANG_FORMAT 14922 if test -n "$CLANG_FORMAT"; then 14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG_FORMAT" >&5 14924 printf "%s\n" "$CLANG_FORMAT" >&6; } 14925 else 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14927 printf "%s\n" "no" >&6; } 14928 fi 14929 14930 14931 14932 # Check whether --enable-silent-rules was given. 14933 if test ${enable_silent_rules+y} 14934 then : 14935 enableval=$enable_silent_rules; 14936 fi 14937 14938 case $enable_silent_rules in # ((( 14939 yes) AM_DEFAULT_VERBOSITY=0;; 14940 no) AM_DEFAULT_VERBOSITY=1;; 14941 *) AM_DEFAULT_VERBOSITY=0;; 14942 esac 14943 am_make=${MAKE-make} 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 14945 printf %s "checking whether $am_make supports nested variables... " >&6; } 14946 if test ${am_cv_make_support_nested_variables+y} 14947 then : 14948 printf %s "(cached) " >&6 14949 else $as_nop 14950 if printf "%s\n" 'TRUE=$(BAR$(V)) 14951 BAR0=false 14952 BAR1=true 14953 V=1 14954 am__doit: 14955 @$(TRUE) 14956 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 14957 am_cv_make_support_nested_variables=yes 14958 else 14959 am_cv_make_support_nested_variables=no 14960 fi 14961 fi 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 14963 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 14964 if test $am_cv_make_support_nested_variables = yes; then 14965 AM_V='$(V)' 14966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 14967 else 14968 AM_V=$AM_DEFAULT_VERBOSITY 14969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 14970 fi 14971 AM_BACKSLASH='\' 14972 14973 14974 14975 14976 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 14977 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 14978 14979 14980 CANONICAL_HOST=$host 14981 14982 14983 # Check whether --enable-largefile was given. 14984 if test ${enable_largefile+y} 14985 then : 14986 enableval=$enable_largefile; 14987 fi 14988 14989 if test "$enable_largefile" != no; then 14990 14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14992 printf %s "checking for special C compiler options needed for large files... " >&6; } 14993 if test ${ac_cv_sys_largefile_CC+y} 14994 then : 14995 printf %s "(cached) " >&6 14996 else $as_nop 14997 ac_cv_sys_largefile_CC=no 14998 if test "$GCC" != yes; then 14999 ac_save_CC=$CC 15000 while :; do 15001 # IRIX 6.2 and later do not support large files by default, 15002 # so use the C compiler's -n32 option if that helps. 15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004 /* end confdefs.h. */ 15005 #include <sys/types.h> 15006 /* Check that off_t can represent 2**63 - 1 correctly. 15007 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15008 since some C++ compilers masquerading as C compilers 15009 incorrectly reject 9223372036854775807. */ 15010 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15012 && LARGE_OFF_T % 2147483647 == 1) 15013 ? 1 : -1]; 15014 int 15015 main (void) 15016 { 15017 15018 ; 15019 return 0; 15020 } 15021 _ACEOF 15022 if ac_fn_c_try_compile "$LINENO" 15023 then : 15024 break 15025 fi 15026 rm -f core conftest.err conftest.$ac_objext conftest.beam 15027 CC="$CC -n32" 15028 if ac_fn_c_try_compile "$LINENO" 15029 then : 15030 ac_cv_sys_largefile_CC=' -n32'; break 15031 fi 15032 rm -f core conftest.err conftest.$ac_objext conftest.beam 15033 break 15034 done 15035 CC=$ac_save_CC 15036 rm -f conftest.$ac_ext 15037 fi 15038 fi 15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15040 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 15041 if test "$ac_cv_sys_largefile_CC" != no; then 15042 CC=$CC$ac_cv_sys_largefile_CC 15043 fi 15044 15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15046 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15047 if test ${ac_cv_sys_file_offset_bits+y} 15048 then : 15049 printf %s "(cached) " >&6 15050 else $as_nop 15051 while :; do 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15053 /* end confdefs.h. */ 15054 #include <sys/types.h> 15055 /* Check that off_t can represent 2**63 - 1 correctly. 15056 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15057 since some C++ compilers masquerading as C compilers 15058 incorrectly reject 9223372036854775807. */ 15059 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15061 && LARGE_OFF_T % 2147483647 == 1) 15062 ? 1 : -1]; 15063 int 15064 main (void) 15065 { 15066 15067 ; 15068 return 0; 15069 } 15070 _ACEOF 15071 if ac_fn_c_try_compile "$LINENO" 15072 then : 15073 ac_cv_sys_file_offset_bits=no; break 15074 fi 15075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15077 /* end confdefs.h. */ 15078 #define _FILE_OFFSET_BITS 64 15079 #include <sys/types.h> 15080 /* Check that off_t can represent 2**63 - 1 correctly. 15081 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15082 since some C++ compilers masquerading as C compilers 15083 incorrectly reject 9223372036854775807. */ 15084 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15086 && LARGE_OFF_T % 2147483647 == 1) 15087 ? 1 : -1]; 15088 int 15089 main (void) 15090 { 15091 15092 ; 15093 return 0; 15094 } 15095 _ACEOF 15096 if ac_fn_c_try_compile "$LINENO" 15097 then : 15098 ac_cv_sys_file_offset_bits=64; break 15099 fi 15100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15101 ac_cv_sys_file_offset_bits=unknown 15102 break 15103 done 15104 fi 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15106 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 15107 case $ac_cv_sys_file_offset_bits in #( 15108 no | unknown) ;; 15109 *) 15110 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 15111 ;; 15112 esac 15113 rm -rf conftest* 15114 if test $ac_cv_sys_file_offset_bits = unknown; then 15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15116 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 15117 if test ${ac_cv_sys_large_files+y} 15118 then : 15119 printf %s "(cached) " >&6 15120 else $as_nop 15121 while :; do 15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15123 /* end confdefs.h. */ 15124 #include <sys/types.h> 15125 /* Check that off_t can represent 2**63 - 1 correctly. 15126 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15127 since some C++ compilers masquerading as C compilers 15128 incorrectly reject 9223372036854775807. */ 15129 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15131 && LARGE_OFF_T % 2147483647 == 1) 15132 ? 1 : -1]; 15133 int 15134 main (void) 15135 { 15136 15137 ; 15138 return 0; 15139 } 15140 _ACEOF 15141 if ac_fn_c_try_compile "$LINENO" 15142 then : 15143 ac_cv_sys_large_files=no; break 15144 fi 15145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15147 /* end confdefs.h. */ 15148 #define _LARGE_FILES 1 15149 #include <sys/types.h> 15150 /* Check that off_t can represent 2**63 - 1 correctly. 15151 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15152 since some C++ compilers masquerading as C compilers 15153 incorrectly reject 9223372036854775807. */ 15154 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15156 && LARGE_OFF_T % 2147483647 == 1) 15157 ? 1 : -1]; 15158 int 15159 main (void) 15160 { 15161 15162 ; 15163 return 0; 15164 } 15165 _ACEOF 15166 if ac_fn_c_try_compile "$LINENO" 15167 then : 15168 ac_cv_sys_large_files=1; break 15169 fi 15170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15171 ac_cv_sys_large_files=unknown 15172 break 15173 done 15174 fi 15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15176 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 15177 case $ac_cv_sys_large_files in #( 15178 no | unknown) ;; 15179 *) 15180 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 15181 ;; 15182 esac 15183 rm -rf conftest* 15184 fi 15185 fi 15186 15187 15188 if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then 15189 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" 15190 fi 15191 if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then 15192 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 15193 fi 15194 15195 15196 15197 15198 15199 15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 15201 printf %s "checking for dlopen... " >&6; } 15202 if test ${ac_cv_funclib_dlopen+y} 15203 then : 15204 printf %s "(cached) " >&6 15205 else $as_nop 15206 15207 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 15208 ac_save_LIBS="$LIBS" 15209 for ac_lib in "" dl; do 15210 case "$ac_lib" in 15211 "") ;; 15212 yes) ac_lib="" ;; 15213 no) continue ;; 15214 -l*) ;; 15215 *) ac_lib="-l$ac_lib" ;; 15216 esac 15217 LIBS=" $ac_lib $ac_save_LIBS" 15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15219 /* end confdefs.h. */ 15220 15221 #ifdef HAVE_DLFCN_H 15222 #include <dlfcn.h> 15223 #endif 15224 int 15225 main (void) 15226 { 15227 dlopen(0,0) 15228 ; 15229 return 0; 15230 } 15231 _ACEOF 15232 if ac_fn_c_try_link "$LINENO" 15233 then : 15234 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 15235 fi 15236 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15237 conftest$ac_exeext conftest.$ac_ext 15238 done 15239 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 15240 LIBS="$ac_save_LIBS" 15241 fi 15242 15243 fi 15244 15245 15246 eval "ac_res=\$ac_cv_funclib_dlopen" 15247 15248 if false; then 15249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15250 if test "x$ac_cv_func_dlopen" = xyes 15251 then : 15252 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 15253 15254 fi 15255 15256 fi 15257 # dlopen 15258 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15259 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15260 eval "LIB_dlopen=$ac_res" 15261 15262 case "$ac_res" in 15263 yes) 15264 eval "ac_cv_func_dlopen=yes" 15265 eval "LIB_dlopen=" 15266 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15267 15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15269 printf "%s\n" "yes" >&6; } 15270 ;; 15271 no) 15272 eval "ac_cv_func_dlopen=no" 15273 eval "LIB_dlopen=" 15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15275 printf "%s\n" "no" >&6; } 15276 ;; 15277 *) 15278 eval "ac_cv_func_dlopen=yes" 15279 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15280 15281 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 15282 15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 15284 printf "%s\n" "yes, in $ac_res" >&6; } 15285 ;; 15286 esac 15287 15288 15289 if test "$ac_cv_funclib_dlopen" != no; then 15290 HAVE_DLOPEN_TRUE= 15291 HAVE_DLOPEN_FALSE='#' 15292 else 15293 HAVE_DLOPEN_TRUE='#' 15294 HAVE_DLOPEN_FALSE= 15295 fi 15296 15297 15298 15299 15300 aix=no 15301 case "$host" in 15302 *-*-aix3*) 15303 aix=3 15304 ;; 15305 *-*-aix[4-9]*) 15306 aix=4 15307 ;; 15308 esac 15309 15310 if test "$aix" != no; then 15311 AIX_TRUE= 15312 AIX_FALSE='#' 15313 else 15314 AIX_TRUE='#' 15315 AIX_FALSE= 15316 fi 15317 if test "$aix" = 4; then 15318 AIX4_TRUE= 15319 AIX4_FALSE='#' 15320 else 15321 AIX4_TRUE='#' 15322 AIX4_FALSE= 15323 fi 15324 15325 # Check whether --enable-dynamic-afs was given. 15326 if test ${enable_dynamic_afs+y} 15327 then : 15328 enableval=$enable_dynamic_afs; 15329 fi 15330 15331 15332 if test "$aix" != no; then 15333 15334 15335 printf "%s\n" "#define NEED_QSORT 1" >>confdefs.h 15336 15337 15338 if test "$enable_dynamic_afs" != no; then 15339 15340 if test "$ac_cv_func_dlopen" = no; then 15341 15342 15343 15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5 15345 printf %s "checking for loadquery... " >&6; } 15346 if test ${ac_cv_funclib_loadquery+y} 15347 then : 15348 printf %s "(cached) " >&6 15349 else $as_nop 15350 15351 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 15352 ac_save_LIBS="$LIBS" 15353 for ac_lib in "" ld; do 15354 case "$ac_lib" in 15355 "") ;; 15356 yes) ac_lib="" ;; 15357 no) continue ;; 15358 -l*) ;; 15359 *) ac_lib="-l$ac_lib" ;; 15360 esac 15361 LIBS=" $ac_lib $ac_save_LIBS" 15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15363 /* end confdefs.h. */ 15364 15365 int 15366 main (void) 15367 { 15368 loadquery() 15369 ; 15370 return 0; 15371 } 15372 _ACEOF 15373 if ac_fn_c_try_link "$LINENO" 15374 then : 15375 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 15376 fi 15377 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15378 conftest$ac_exeext conftest.$ac_ext 15379 done 15380 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 15381 LIBS="$ac_save_LIBS" 15382 fi 15383 15384 fi 15385 15386 15387 eval "ac_res=\$ac_cv_funclib_loadquery" 15388 15389 if false; then 15390 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" 15391 if test "x$ac_cv_func_loadquery" = xyes 15392 then : 15393 printf "%s\n" "#define HAVE_LOADQUERY 1" >>confdefs.h 15394 15395 fi 15396 15397 fi 15398 # loadquery 15399 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15400 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15401 eval "LIB_loadquery=$ac_res" 15402 15403 case "$ac_res" in 15404 yes) 15405 eval "ac_cv_func_loadquery=yes" 15406 eval "LIB_loadquery=" 15407 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15408 15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15410 printf "%s\n" "yes" >&6; } 15411 ;; 15412 no) 15413 eval "ac_cv_func_loadquery=no" 15414 eval "LIB_loadquery=" 15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15416 printf "%s\n" "no" >&6; } 15417 ;; 15418 *) 15419 eval "ac_cv_func_loadquery=yes" 15420 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 15421 15422 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 15423 15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 15425 printf "%s\n" "yes, in $ac_res" >&6; } 15426 ;; 15427 esac 15428 15429 15430 fi 15431 if test "$ac_cv_func_dlopen" != no; then 15432 AIX_EXTRA_KAFS='$(LIB_dlopen)' 15433 elif test "$ac_cv_func_loadquery" != no; then 15434 AIX_EXTRA_KAFS='$(LIB_loadquery)' 15435 else 15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5 15437 printf "%s\n" "$as_me: not using dynloaded AFS library" >&6;} 15438 AIX_EXTRA_KAFS= 15439 enable_dynamic_afs=no 15440 fi 15441 else 15442 AIX_EXTRA_KAFS= 15443 fi 15444 fi 15445 15446 if test "$enable_dynamic_afs" != no; then 15447 AIX_DYNAMIC_AFS_TRUE= 15448 AIX_DYNAMIC_AFS_FALSE='#' 15449 else 15450 AIX_DYNAMIC_AFS_TRUE='#' 15451 AIX_DYNAMIC_AFS_FALSE= 15452 fi 15453 15454 if test "$aix" != no; then 15455 15456 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 15457 15458 fi 15459 15460 15461 15462 15463 15464 irix=no 15465 case "$host" in 15466 *-*-irix*) 15467 irix=yes 15468 ;; 15469 esac 15470 if test "$irix" != no; then 15471 IRIX_TRUE= 15472 IRIX_FALSE='#' 15473 else 15474 IRIX_TRUE='#' 15475 IRIX_FALSE= 15476 fi 15477 15478 15479 15480 sunos=no 15481 case "$host" in 15482 *-*-solaris2.7) 15483 sunos=57 15484 ;; 15485 *-*-solaris2.1[1-9]) 15486 15487 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 15488 15489 15490 printf "%s\n" "#define _STDC_C11_BCI 1" >>confdefs.h 15491 15492 sunos=511 15493 ;; 15494 *-*-solaris2.[89] | *-*-solaris2.10) 15495 sunos=58 15496 ;; 15497 *-*-solaris2*) 15498 sunos=50 15499 ;; 15500 esac 15501 if test "$sunos" != no; then 15502 15503 printf "%s\n" "#define SunOS $sunos" >>confdefs.h 15504 15505 fi 15506 15507 15508 15509 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 15510 15511 15512 15513 15514 15515 if ! test -f "$srcdir/lib/asn1/der-protos.h" || 15516 ! test -f "$srcdir/lib/asn1/der-private.h"; then 15517 for ac_prog in perl 15518 do 15519 # Extract the first word of "$ac_prog", so it can be a program name with args. 15520 set dummy $ac_prog; ac_word=$2 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15522 printf %s "checking for $ac_word... " >&6; } 15523 if test ${ac_cv_prog_PERL+y} 15524 then : 15525 printf %s "(cached) " >&6 15526 else $as_nop 15527 if test -n "$PERL"; then 15528 ac_cv_prog_PERL="$PERL" # Let the user override the test. 15529 else 15530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15531 for as_dir in $PATH 15532 do 15533 IFS=$as_save_IFS 15534 case $as_dir in #((( 15535 '') as_dir=./ ;; 15536 */) ;; 15537 *) as_dir=$as_dir/ ;; 15538 esac 15539 for ac_exec_ext in '' $ac_executable_extensions; do 15540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15541 ac_cv_prog_PERL="$ac_prog" 15542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15543 break 2 15544 fi 15545 done 15546 done 15547 IFS=$as_save_IFS 15548 15549 fi 15550 fi 15551 PERL=$ac_cv_prog_PERL 15552 if test -n "$PERL"; then 15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 15554 printf "%s\n" "$PERL" >&6; } 15555 else 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15557 printf "%s\n" "no" >&6; } 15558 fi 15559 15560 15561 test -n "$PERL" && break 15562 done 15563 test -n "$PERL" || PERL="perl" 15564 15565 if test "$PERL" = ""; then 15566 as_fn_error $? "perl not found - Cannot build Heimdal without perl" "$LINENO" 5 15567 fi 15568 15569 15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl5 module Getopt::Std" >&5 15571 printf %s "checking for Perl5 module Getopt::Std... " >&6; } 15572 if ! $PERL -MGetopt::Std -e 'exit(0);' >/dev/null 2>&1; then 15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15574 printf "%s\n" "no" >&6; } 15575 as_fn_error $? "perl module Getopt::Std not found - Cannot build Heimdal without perl module Getopt::Std" "$LINENO" 5 15576 else 15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15578 printf "%s\n" "yes" >&6; } 15579 fi 15580 15581 15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl5 module File::Compare" >&5 15583 printf %s "checking for Perl5 module File::Compare... " >&6; } 15584 if ! $PERL -MFile::Compare -e 'exit(0);' >/dev/null 2>&1; then 15585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15586 printf "%s\n" "no" >&6; } 15587 as_fn_error $? "perl module File::Compare not found - Cannot build Heimdal without perl module File::Compare" "$LINENO" 5 15588 else 15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15590 printf "%s\n" "yes" >&6; } 15591 fi 15592 15593 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl5 module JSON" >&5 15595 printf %s "checking for Perl5 module JSON... " >&6; } 15596 if ! $PERL -MJSON -e 'exit(0);' >/dev/null 2>&1; then 15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15598 printf "%s\n" "no" >&6; } 15599 as_fn_error $? "perl module JSON not found - Cannot build Heimdal without perl module JSON" "$LINENO" 5 15600 else 15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15602 printf "%s\n" "yes" >&6; } 15603 fi 15604 15605 fi 15606 15607 for ac_prog in 'bison -y' byacc 15608 do 15609 # Extract the first word of "$ac_prog", so it can be a program name with args. 15610 set dummy $ac_prog; ac_word=$2 15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15612 printf %s "checking for $ac_word... " >&6; } 15613 if test ${ac_cv_prog_YACC+y} 15614 then : 15615 printf %s "(cached) " >&6 15616 else $as_nop 15617 if test -n "$YACC"; then 15618 ac_cv_prog_YACC="$YACC" # Let the user override the test. 15619 else 15620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15621 for as_dir in $PATH 15622 do 15623 IFS=$as_save_IFS 15624 case $as_dir in #((( 15625 '') as_dir=./ ;; 15626 */) ;; 15627 *) as_dir=$as_dir/ ;; 15628 esac 15629 for ac_exec_ext in '' $ac_executable_extensions; do 15630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15631 ac_cv_prog_YACC="$ac_prog" 15632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15633 break 2 15634 fi 15635 done 15636 done 15637 IFS=$as_save_IFS 15638 15639 fi 15640 fi 15641 YACC=$ac_cv_prog_YACC 15642 if test -n "$YACC"; then 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 15644 printf "%s\n" "$YACC" >&6; } 15645 else 15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15647 printf "%s\n" "no" >&6; } 15648 fi 15649 15650 15651 test -n "$YACC" && break 15652 done 15653 test -n "$YACC" || YACC="yacc" 15654 15655 for ac_prog in flex lex 15656 do 15657 # Extract the first word of "$ac_prog", so it can be a program name with args. 15658 set dummy $ac_prog; ac_word=$2 15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15660 printf %s "checking for $ac_word... " >&6; } 15661 if test ${ac_cv_prog_LEX+y} 15662 then : 15663 printf %s "(cached) " >&6 15664 else $as_nop 15665 if test -n "$LEX"; then 15666 ac_cv_prog_LEX="$LEX" # Let the user override the test. 15667 else 15668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15669 for as_dir in $PATH 15670 do 15671 IFS=$as_save_IFS 15672 case $as_dir in #((( 15673 '') as_dir=./ ;; 15674 */) ;; 15675 *) as_dir=$as_dir/ ;; 15676 esac 15677 for ac_exec_ext in '' $ac_executable_extensions; do 15678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15679 ac_cv_prog_LEX="$ac_prog" 15680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15681 break 2 15682 fi 15683 done 15684 done 15685 IFS=$as_save_IFS 15686 15687 fi 15688 fi 15689 LEX=$ac_cv_prog_LEX 15690 if test -n "$LEX"; then 15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 15692 printf "%s\n" "$LEX" >&6; } 15693 else 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15695 printf "%s\n" "no" >&6; } 15696 fi 15697 15698 15699 test -n "$LEX" && break 15700 done 15701 test -n "$LEX" || LEX=":" 15702 15703 if test "x$LEX" != "x:"; then 15704 cat >conftest.l <<_ACEOF 15705 %{ 15706 #ifdef __cplusplus 15707 extern "C" 15708 #endif 15709 int yywrap(void); 15710 %} 15711 %% 15712 a { ECHO; } 15713 b { REJECT; } 15714 c { yymore (); } 15715 d { yyless (1); } 15716 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 15717 #ifdef __cplusplus 15718 yyless ((yyinput () != 0)); 15719 #else 15720 yyless ((input () != 0)); 15721 #endif 15722 } 15723 f { unput (yytext[0]); } 15724 . { BEGIN INITIAL; } 15725 %% 15726 #ifdef YYTEXT_POINTER 15727 extern char *yytext; 15728 #endif 15729 int 15730 yywrap (void) 15731 { 15732 return 1; 15733 } 15734 int 15735 main (void) 15736 { 15737 return ! yylex (); 15738 } 15739 _ACEOF 15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 15741 printf %s "checking for lex output file root... " >&6; } 15742 if test ${ac_cv_prog_lex_root+y} 15743 then : 15744 printf %s "(cached) " >&6 15745 else $as_nop 15746 15747 ac_cv_prog_lex_root=unknown 15748 { { ac_try="$LEX conftest.l" 15749 case "(($ac_try" in 15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15751 *) ac_try_echo=$ac_try;; 15752 esac 15753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15754 printf "%s\n" "$ac_try_echo"; } >&5 15755 (eval "$LEX conftest.l") 2>&5 15756 ac_status=$? 15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15758 test $ac_status = 0; } && 15759 if test -f lex.yy.c; then 15760 ac_cv_prog_lex_root=lex.yy 15761 elif test -f lexyy.c; then 15762 ac_cv_prog_lex_root=lexyy 15763 fi 15764 fi 15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 15766 printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 15767 if test "$ac_cv_prog_lex_root" = unknown 15768 then : 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 15770 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 15771 LEX=: LEXLIB= 15772 fi 15773 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 15774 15775 if test ${LEXLIB+y} 15776 then : 15777 15778 else $as_nop 15779 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 15781 printf %s "checking for lex library... " >&6; } 15782 if test ${ac_cv_lib_lex+y} 15783 then : 15784 printf %s "(cached) " >&6 15785 else $as_nop 15786 15787 ac_save_LIBS="$LIBS" 15788 ac_found=false 15789 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 15790 case $ac_cv_lib_lex in #( 15791 'none needed') : 15792 ;; #( 15793 'not found') : 15794 break ;; #( 15795 *) : 15796 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 15797 *) : 15798 ;; 15799 esac 15800 15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15802 /* end confdefs.h. */ 15803 `cat $LEX_OUTPUT_ROOT.c` 15804 _ACEOF 15805 if ac_fn_c_try_link "$LINENO" 15806 then : 15807 ac_found=: 15808 fi 15809 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15810 conftest$ac_exeext conftest.$ac_ext 15811 if $ac_found; then 15812 break 15813 fi 15814 done 15815 LIBS="$ac_save_LIBS" 15816 15817 fi 15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 15819 printf "%s\n" "$ac_cv_lib_lex" >&6; } 15820 if test "$ac_cv_lib_lex" = 'not found' 15821 then : 15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 15823 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 15824 LEX=: LEXLIB= 15825 elif test "$ac_cv_lib_lex" = 'none needed' 15826 then : 15827 LEXLIB='' 15828 else $as_nop 15829 LEXLIB=$ac_cv_lib_lex 15830 fi 15831 ac_save_LIBS="$LIBS" 15832 LIBS= 15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 15834 printf %s "checking for library containing yywrap... " >&6; } 15835 if test ${ac_cv_search_yywrap+y} 15836 then : 15837 printf %s "(cached) " >&6 15838 else $as_nop 15839 ac_func_search_save_LIBS=$LIBS 15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15841 /* end confdefs.h. */ 15842 15843 /* Override any GCC internal prototype to avoid an error. 15844 Use char because int might match the return type of a GCC 15845 builtin and then its argument prototype would still apply. */ 15846 char yywrap (); 15847 int 15848 main (void) 15849 { 15850 return yywrap (); 15851 ; 15852 return 0; 15853 } 15854 _ACEOF 15855 for ac_lib in '' fl l 15856 do 15857 if test -z "$ac_lib"; then 15858 ac_res="none required" 15859 else 15860 ac_res=-l$ac_lib 15861 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15862 fi 15863 if ac_fn_c_try_link "$LINENO" 15864 then : 15865 ac_cv_search_yywrap=$ac_res 15866 fi 15867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15868 conftest$ac_exeext 15869 if test ${ac_cv_search_yywrap+y} 15870 then : 15871 break 15872 fi 15873 done 15874 if test ${ac_cv_search_yywrap+y} 15875 then : 15876 15877 else $as_nop 15878 ac_cv_search_yywrap=no 15879 fi 15880 rm conftest.$ac_ext 15881 LIBS=$ac_func_search_save_LIBS 15882 fi 15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 15884 printf "%s\n" "$ac_cv_search_yywrap" >&6; } 15885 ac_res=$ac_cv_search_yywrap 15886 if test "$ac_res" != no 15887 then : 15888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15889 LEXLIB="$LIBS" 15890 fi 15891 15892 LIBS="$ac_save_LIBS" 15893 fi 15894 15895 15896 if test "$LEX" != : 15897 then : 15898 15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 15900 printf %s "checking whether yytext is a pointer... " >&6; } 15901 if test ${ac_cv_prog_lex_yytext_pointer+y} 15902 then : 15903 printf %s "(cached) " >&6 15904 else $as_nop 15905 # POSIX says lex can declare yytext either as a pointer or an array; the 15906 # default is implementation-dependent. Figure out which it is, since 15907 # not all implementations provide the %pointer and %array declarations. 15908 ac_cv_prog_lex_yytext_pointer=no 15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910 /* end confdefs.h. */ 15911 15912 #define YYTEXT_POINTER 1 15913 `cat $LEX_OUTPUT_ROOT.c` 15914 _ACEOF 15915 if ac_fn_c_try_compile "$LINENO" 15916 then : 15917 ac_cv_prog_lex_yytext_pointer=yes 15918 fi 15919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15920 15921 fi 15922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 15923 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 15924 if test $ac_cv_prog_lex_yytext_pointer = yes; then 15925 15926 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 15927 15928 fi 15929 15930 fi 15931 rm -f conftest.l $LEX_OUTPUT_ROOT.c 15932 15933 fi 15934 if test "$LEX" = :; then 15935 LEX=${am_missing_run}flex 15936 fi 15937 for ac_prog in gawk mawk nawk awk 15938 do 15939 # Extract the first word of "$ac_prog", so it can be a program name with args. 15940 set dummy $ac_prog; ac_word=$2 15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15942 printf %s "checking for $ac_word... " >&6; } 15943 if test ${ac_cv_prog_AWK+y} 15944 then : 15945 printf %s "(cached) " >&6 15946 else $as_nop 15947 if test -n "$AWK"; then 15948 ac_cv_prog_AWK="$AWK" # Let the user override the test. 15949 else 15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15951 for as_dir in $PATH 15952 do 15953 IFS=$as_save_IFS 15954 case $as_dir in #((( 15955 '') as_dir=./ ;; 15956 */) ;; 15957 *) as_dir=$as_dir/ ;; 15958 esac 15959 for ac_exec_ext in '' $ac_executable_extensions; do 15960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15961 ac_cv_prog_AWK="$ac_prog" 15962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15963 break 2 15964 fi 15965 done 15966 done 15967 IFS=$as_save_IFS 15968 15969 fi 15970 fi 15971 AWK=$ac_cv_prog_AWK 15972 if test -n "$AWK"; then 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 15974 printf "%s\n" "$AWK" >&6; } 15975 else 15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15977 printf "%s\n" "no" >&6; } 15978 fi 15979 15980 15981 test -n "$AWK" && break 15982 done 15983 15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5 15985 printf %s "checking for ln -s or something else... " >&6; } 15986 if test ${ac_cv_prog_LN_S+y} 15987 then : 15988 printf %s "(cached) " >&6 15989 else $as_nop 15990 rm -f conftestdata 15991 if ln -s X conftestdata 2>/dev/null 15992 then 15993 rm -f conftestdata 15994 ac_cv_prog_LN_S="ln -s" 15995 else 15996 touch conftestdata1 15997 if ln conftestdata1 conftestdata2; then 15998 rm -f conftestdata* 15999 ac_cv_prog_LN_S=ln 16000 else 16001 ac_cv_prog_LN_S=cp 16002 fi 16003 fi 16004 fi 16005 LN_S="$ac_cv_prog_LN_S" 16006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5 16007 printf "%s\n" "$ac_cv_prog_LN_S" >&6; } 16008 16009 16010 16011 16012 # Check whether --with-mips_abi was given. 16013 if test ${with_mips_abi+y} 16014 then : 16015 withval=$with_mips_abi; 16016 fi 16017 16018 16019 case "$host_os" in 16020 irix*) 16021 with_mips_abi="${with_mips_abi:-yes}" 16022 if test -n "$GCC"; then 16023 16024 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 16025 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 16026 # 16027 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 16028 # GCC and revert back to O32. The same goes if O32 is asked for - old 16029 # GCCs doesn't like the -mabi option, and new GCCs can't output O32. 16030 # 16031 # Don't you just love *all* the different SGI ABIs? 16032 16033 case "${with_mips_abi}" in 16034 32|o32) abi='-mabi=32'; abilibdirext='' ;; 16035 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 16036 64) abi='-mabi=64'; abilibdirext='64' ;; 16037 no) abi=''; abilibdirext='';; 16038 *) as_fn_error $? "\"Invalid ABI specified\"" "$LINENO" 5 ;; 16039 esac 16040 if test -n "$abi" ; then 16041 ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5 16043 printf %s "checking if $CC supports the $abi option... " >&6; } 16044 if eval test \${$ac_foo+y} 16045 then : 16046 printf %s "(cached) " >&6 16047 else $as_nop 16048 16049 save_CFLAGS="$CFLAGS" 16050 CFLAGS="$CFLAGS $abi" 16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16052 /* end confdefs.h. */ 16053 16054 int 16055 main (void) 16056 { 16057 int x; 16058 ; 16059 return 0; 16060 } 16061 _ACEOF 16062 if ac_fn_c_try_compile "$LINENO" 16063 then : 16064 eval $ac_foo=yes 16065 else $as_nop 16066 eval $ac_foo=no 16067 fi 16068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_extCFLAGS="$save_CFLAGS" 16069 16070 fi 16071 16072 ac_res=`eval echo \\\$$ac_foo` 16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16074 printf "%s\n" "$ac_res" >&6; } 16075 if test $ac_res = no; then 16076 # Try to figure out why that failed... 16077 case $abi in 16078 -mabi=32) 16079 save_CFLAGS="$CFLAGS" 16080 CFLAGS="$CFLAGS -mabi=n32" 16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16082 /* end confdefs.h. */ 16083 16084 int 16085 main (void) 16086 { 16087 int x; 16088 ; 16089 return 0; 16090 } 16091 _ACEOF 16092 if ac_fn_c_try_compile "$LINENO" 16093 then : 16094 ac_res=yes 16095 else $as_nop 16096 ac_res=no 16097 fi 16098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CLAGS="$save_CFLAGS" 16099 if test $ac_res = yes; then 16100 # New GCC 16101 as_fn_error $? "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 16102 fi 16103 # Old GCC 16104 abi='' 16105 abilibdirext='' 16106 ;; 16107 -mabi=n32|-mabi=64) 16108 if test $with_mips_abi = yes; then 16109 # Old GCC, default to O32 16110 abi='' 16111 abilibdirext='' 16112 else 16113 # Some broken GCC 16114 as_fn_error $? "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 16115 fi 16116 ;; 16117 esac 16118 fi #if test $ac_res = no; then 16119 fi #if test -n "$abi" ; then 16120 else 16121 case "${with_mips_abi}" in 16122 32|o32) abi='-32'; abilibdirext='' ;; 16123 n32|yes) abi='-n32'; abilibdirext='32' ;; 16124 64) abi='-64'; abilibdirext='64' ;; 16125 no) abi=''; abilibdirext='';; 16126 *) as_fn_error $? "\"Invalid ABI specified\"" "$LINENO" 5 ;; 16127 esac 16128 fi #if test -n "$GCC"; then 16129 ;; 16130 esac 16131 16132 CC="$CC $abi" 16133 libdir="$libdir$abilibdirext" 16134 16135 16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 16137 printf %s "checking for __attribute__... " >&6; } 16138 if test ${ac_cv___attribute__+y} 16139 then : 16140 printf %s "(cached) " >&6 16141 else $as_nop 16142 16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16144 /* end confdefs.h. */ 16145 #include <stdlib.h> 16146 static void foo(void) __attribute__ ((noreturn)); 16147 16148 static void 16149 foo(void) 16150 { 16151 exit(1); 16152 } 16153 16154 _ACEOF 16155 if ac_fn_c_try_compile "$LINENO" 16156 then : 16157 ac_cv___attribute__=yes 16158 else $as_nop 16159 ac_cv___attribute__=no 16160 fi 16161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16162 fi 16163 16164 if test "$ac_cv___attribute__" = "yes"; then 16165 16166 printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 16167 16168 fi 16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 16170 printf "%s\n" "$ac_cv___attribute__" >&6; } 16171 16172 16173 if test "$enable_shared" = "yes"; then 16174 ENABLE_SHARED_TRUE= 16175 ENABLE_SHARED_FALSE='#' 16176 else 16177 ENABLE_SHARED_TRUE='#' 16178 ENABLE_SHARED_FALSE= 16179 fi 16180 16181 16182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5 16183 printf %s "checking for ld --version-script... " >&6; } 16184 if test ${rk_cv_version_script+y} 16185 then : 16186 printf %s "(cached) " >&6 16187 else $as_nop 16188 16189 rk_cv_version_script=no 16190 16191 cat > conftest.map <<EOF 16192 HEIM_GSS_V1 { 16193 global: gss*; 16194 }; 16195 HEIM_GSS_V1_1 { 16196 global: gss_init_creds; 16197 } HEIM_GSS_V1; 16198 EOF 16199 cat > conftest.c <<EOF 16200 int gss_init_creds(int foo) { return 0; } 16201 EOF 16202 16203 if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c' 16204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16205 (eval $ac_try) 2>&5 16206 ac_status=$? 16207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16208 test $ac_status = 0; }; } && 16209 { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o' 16210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16211 (eval $ac_try) 2>&5 16212 ac_status=$? 16213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16214 test $ac_status = 0; }; }; 16215 then 16216 rk_cv_version_script=yes 16217 fi 16218 rm -rf conftest* libconftest* .libs 16219 16220 fi 16221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5 16222 printf "%s\n" "$rk_cv_version_script" >&6; } 16223 16224 if test $rk_cv_version_script = yes ; then 16225 doversioning=yes 16226 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script," 16227 else 16228 doversioning=no 16229 LDFLAGS_VERSION_SCRIPT= 16230 fi 16231 16232 16233 if test $doversioning = yes; then 16234 versionscript_TRUE= 16235 versionscript_FALSE='#' 16236 else 16237 versionscript_TRUE='#' 16238 versionscript_FALSE= 16239 fi 16240 16241 16242 16243 16244 16245 16246 16247 16248 if test "${cross_compiling}" = yes; then 16249 CROSS_COMPILE_TRUE= 16250 CROSS_COMPILE_FALSE='#' 16251 else 16252 CROSS_COMPILE_TRUE='#' 16253 CROSS_COMPILE_FALSE= 16254 fi 16255 16256 16257 16258 # Check whether --with-cross-tools was given. 16259 if test ${with_cross_tools+y} 16260 then : 16261 withval=$with_cross_tools; if test "$withval" = "yes"; then 16262 as_fn_error $? "Need path to cross tools" "$LINENO" 5 16263 fi 16264 with_cross_tools="${with_cross_tools}/" 16265 16266 fi 16267 16268 16269 if test "${cross_compiling}" != yes ; then 16270 16271 ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)" 16272 SLC="\$(top_builddir)/lib/sl/slc" 16273 16274 ASN1_COMPILE_DEP="\$(ASN1_COMPILE)" 16275 SLC_DEP="\$(SLC)" 16276 else 16277 ASN1_COMPILE="${with_cross_tools}asn1_compile" 16278 SLC="${with_cross_tools}slc" 16279 16280 ASN1_COMPILE_DEP= 16281 SLC_DEP= 16282 16283 ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et 16284 16285 fi 16286 16287 16288 16289 16290 16291 16292 16293 16294 printf "%s\n" "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h 16295 16296 16297 16298 16299 # Check whether --with-openldap was given. 16300 if test ${with_openldap+y} 16301 then : 16302 withval=$with_openldap; 16303 fi 16304 16305 16306 # Check whether --with-openldap-lib was given. 16307 if test ${with_openldap_lib+y} 16308 then : 16309 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 16310 as_fn_error $? "No argument for --with-openldap-lib" "$LINENO" 5 16311 elif test "X$with_openldap" = "X"; then 16312 with_openldap=yes 16313 fi 16314 fi 16315 16316 16317 # Check whether --with-openldap-include was given. 16318 if test ${with_openldap_include+y} 16319 then : 16320 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then 16321 as_fn_error $? "No argument for --with-openldap-include" "$LINENO" 5 16322 elif test "X$with_openldap" = "X"; then 16323 with_openldap=yes 16324 fi 16325 fi 16326 16327 16328 # Check whether --with-openldap-config was given. 16329 if test ${with_openldap_config+y} 16330 then : 16331 withval=$with_openldap_config; 16332 fi 16333 16334 16335 16336 16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5 16338 printf %s "checking for openldap... " >&6; } 16339 16340 case "$with_openldap" in 16341 yes|"") d='' ;; 16342 no) d= ;; 16343 *) d="$with_openldap" ;; 16344 esac 16345 16346 header_dirs= 16347 lib_dirs= 16348 for i in $d; do 16349 if test "$with_openldap_include" = ""; then 16350 if test -d "$i/include/openldap"; then 16351 header_dirs="$header_dirs $i/include/openldap" 16352 fi 16353 if test -d "$i/include"; then 16354 header_dirs="$header_dirs $i/include" 16355 fi 16356 fi 16357 if test "$with_openldap_lib" = ""; then 16358 if test -d "$i/lib$abilibdirext"; then 16359 lib_dirs="$lib_dirs $i/lib$abilibdirext" 16360 fi 16361 fi 16362 done 16363 16364 if test "$with_openldap_include"; then 16365 header_dirs="$with_openldap_include $header_dirs" 16366 fi 16367 if test "$with_openldap_lib"; then 16368 lib_dirs="$with_openldap_lib $lib_dirs" 16369 fi 16370 16371 if test "$with_openldap_config" = ""; then 16372 with_openldap_config='' 16373 fi 16374 16375 openldap_cflags= 16376 openldap_libs= 16377 16378 case "$with_openldap_config" in 16379 yes|no|""|"") 16380 if test -f $with_openldap/bin/ ; then 16381 with_openldap_config=$with_openldap/bin/ 16382 fi 16383 ;; 16384 esac 16385 16386 case "$with_openldap_config" in 16387 yes|no|"") 16388 ;; 16389 *) 16390 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 16391 openldap_libs="`$with_openldap_config --libs 2>&1`" 16392 ;; 16393 esac 16394 16395 found=no 16396 if test "$with_openldap" != no; then 16397 save_CFLAGS="$CFLAGS" 16398 save_LIBS="$LIBS" 16399 if test "$openldap_cflags" -a "$openldap_libs"; then 16400 CFLAGS="$openldap_cflags $save_CFLAGS" 16401 LIBS="$openldap_libs $save_LIBS" 16402 16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16404 /* end confdefs.h. */ 16405 #include <lber.h> 16406 #include <ldap.h> 16407 int 16408 main (void) 16409 { 16410 16411 ; 16412 return 0; 16413 } 16414 _ACEOF 16415 if ac_fn_c_try_link "$LINENO" 16416 then : 16417 16418 INCLUDE_openldap="$openldap_cflags" 16419 LIB_openldap="$openldap_libs" 16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5 16421 printf "%s\n" "from $with_openldap_config" >&6; } 16422 found=yes 16423 fi 16424 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16425 conftest$ac_exeext conftest.$ac_ext 16426 fi 16427 if test "$found" = no; then 16428 ires= lres= 16429 for i in $header_dirs; do 16430 CFLAGS="-I$i $save_CFLAGS" 16431 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433 /* end confdefs.h. */ 16434 #include <lber.h> 16435 #include <ldap.h> 16436 int 16437 main (void) 16438 { 16439 16440 ; 16441 return 0; 16442 } 16443 _ACEOF 16444 if ac_fn_c_try_compile "$LINENO" 16445 then : 16446 ires=$i;break 16447 fi 16448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16449 done 16450 for i in $lib_dirs; do 16451 LIBS="-L$i -lldap -llber $save_LIBS" 16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453 /* end confdefs.h. */ 16454 #include <lber.h> 16455 #include <ldap.h> 16456 int 16457 main (void) 16458 { 16459 16460 ; 16461 return 0; 16462 } 16463 _ACEOF 16464 if ac_fn_c_try_link "$LINENO" 16465 then : 16466 lres=$i;break 16467 fi 16468 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16469 conftest$ac_exeext conftest.$ac_ext 16470 done 16471 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 16472 INCLUDE_openldap="-I$ires" 16473 LIB_openldap="-L$lres -lldap -llber " 16474 found=yes 16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 16476 printf "%s\n" "headers $ires, libraries $lres" >&6; } 16477 fi 16478 fi 16479 CFLAGS="$save_CFLAGS" 16480 LIBS="$save_LIBS" 16481 fi 16482 16483 if test "$found" = yes; then 16484 16485 printf "%s\n" "#define OPENLDAP 1" >>confdefs.h 16486 16487 with_openldap=yes 16488 else 16489 with_openldap=no 16490 INCLUDE_openldap= 16491 LIB_openldap= 16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16493 printf "%s\n" "no" >&6; } 16494 fi 16495 16496 16497 16498 16499 16500 # Check whether --enable-hdb-openldap-module was given. 16501 if test ${enable_hdb_openldap_module+y} 16502 then : 16503 enableval=$enable_hdb_openldap_module; 16504 fi 16505 16506 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 16507 16508 printf "%s\n" "#define OPENLDAP_MODULE 1" >>confdefs.h 16509 16510 fi 16511 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 16512 OPENLDAP_MODULE_TRUE= 16513 OPENLDAP_MODULE_FALSE='#' 16514 else 16515 OPENLDAP_MODULE_TRUE='#' 16516 OPENLDAP_MODULE_FALSE= 16517 fi 16518 16519 16520 16521 # Check whether --enable-pk-init was given. 16522 if test ${enable_pk_init+y} 16523 then : 16524 enableval=$enable_pk_init; 16525 fi 16526 16527 if test "$enable_pk_init" != no ;then 16528 16529 printf "%s\n" "#define PKINIT 1" >>confdefs.h 16530 16531 fi 16532 if test "$enable_pk_init" != no; then 16533 PKINIT_TRUE= 16534 PKINIT_FALSE='#' 16535 else 16536 PKINIT_TRUE='#' 16537 PKINIT_FALSE= 16538 fi 16539 16540 16541 # Check whether --enable-digest was given. 16542 if test ${enable_digest+y} 16543 then : 16544 enableval=$enable_digest; 16545 fi 16546 16547 if test "$enable_digest" != no ;then 16548 16549 printf "%s\n" "#define DIGEST 1" >>confdefs.h 16550 16551 fi 16552 16553 # Check whether --enable-kx509 was given. 16554 if test ${enable_kx509+y} 16555 then : 16556 enableval=$enable_kx509; 16557 fi 16558 16559 if test "$enable_kx509" != no ;then 16560 16561 printf "%s\n" "#define KX509 1" >>confdefs.h 16562 16563 fi 16564 16565 16566 16567 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16568 if test -n "$ac_tool_prefix"; then 16569 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16570 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16572 printf %s "checking for $ac_word... " >&6; } 16573 if test ${ac_cv_path_PKG_CONFIG+y} 16574 then : 16575 printf %s "(cached) " >&6 16576 else $as_nop 16577 case $PKG_CONFIG in 16578 [\\/]* | ?:[\\/]*) 16579 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16580 ;; 16581 *) 16582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16583 for as_dir in $PATH 16584 do 16585 IFS=$as_save_IFS 16586 case $as_dir in #((( 16587 '') as_dir=./ ;; 16588 */) ;; 16589 *) as_dir=$as_dir/ ;; 16590 esac 16591 for ac_exec_ext in '' $ac_executable_extensions; do 16592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16593 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 16594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16595 break 2 16596 fi 16597 done 16598 done 16599 IFS=$as_save_IFS 16600 16601 ;; 16602 esac 16603 fi 16604 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16605 if test -n "$PKG_CONFIG"; then 16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16607 printf "%s\n" "$PKG_CONFIG" >&6; } 16608 else 16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16610 printf "%s\n" "no" >&6; } 16611 fi 16612 16613 16614 fi 16615 if test -z "$ac_cv_path_PKG_CONFIG"; then 16616 ac_pt_PKG_CONFIG=$PKG_CONFIG 16617 # Extract the first word of "pkg-config", so it can be a program name with args. 16618 set dummy pkg-config; ac_word=$2 16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16620 printf %s "checking for $ac_word... " >&6; } 16621 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 16622 then : 16623 printf %s "(cached) " >&6 16624 else $as_nop 16625 case $ac_pt_PKG_CONFIG in 16626 [\\/]* | ?:[\\/]*) 16627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16628 ;; 16629 *) 16630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16631 for as_dir in $PATH 16632 do 16633 IFS=$as_save_IFS 16634 case $as_dir in #((( 16635 '') as_dir=./ ;; 16636 */) ;; 16637 *) as_dir=$as_dir/ ;; 16638 esac 16639 for ac_exec_ext in '' $ac_executable_extensions; do 16640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16641 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 16642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16643 break 2 16644 fi 16645 done 16646 done 16647 IFS=$as_save_IFS 16648 16649 ;; 16650 esac 16651 fi 16652 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16653 if test -n "$ac_pt_PKG_CONFIG"; then 16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16655 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 16656 else 16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16658 printf "%s\n" "no" >&6; } 16659 fi 16660 16661 if test "x$ac_pt_PKG_CONFIG" = x; then 16662 PKG_CONFIG="" 16663 else 16664 case $cross_compiling:$ac_tool_warned in 16665 yes:) 16666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16668 ac_tool_warned=yes ;; 16669 esac 16670 PKG_CONFIG=$ac_pt_PKG_CONFIG 16671 fi 16672 else 16673 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16674 fi 16675 16676 fi 16677 if test -n "$PKG_CONFIG"; then 16678 _pkg_min_version=0.9.0 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16680 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16681 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16683 printf "%s\n" "yes" >&6; } 16684 else 16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16686 printf "%s\n" "no" >&6; } 16687 PKG_CONFIG="" 16688 fi 16689 16690 fi 16691 16692 16693 # Check whether --with-capng was given. 16694 if test ${with_capng+y} 16695 then : 16696 withval=$with_capng; 16697 else $as_nop 16698 with_capng=check 16699 fi 16700 16701 if test "$with_capng" != "no"; then 16702 16703 pkg_failed=no 16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5 16705 printf %s "checking for CAPNG... " >&6; } 16706 16707 if test -n "$PKG_CONFIG"; then 16708 if test -n "$CAPNG_CFLAGS"; then 16709 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS" 16710 else 16711 if test -n "$PKG_CONFIG" && \ 16712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 16713 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 16714 ac_status=$? 16715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16716 test $ac_status = 0; }; then 16717 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null` 16718 else 16719 pkg_failed=yes 16720 fi 16721 fi 16722 else 16723 pkg_failed=untried 16724 fi 16725 if test -n "$PKG_CONFIG"; then 16726 if test -n "$CAPNG_LIBS"; then 16727 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS" 16728 else 16729 if test -n "$PKG_CONFIG" && \ 16730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 16731 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 16732 ac_status=$? 16733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16734 test $ac_status = 0; }; then 16735 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null` 16736 else 16737 pkg_failed=yes 16738 fi 16739 fi 16740 else 16741 pkg_failed=untried 16742 fi 16743 16744 16745 16746 if test $pkg_failed = yes; then 16747 16748 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16749 _pkg_short_errors_supported=yes 16750 else 16751 _pkg_short_errors_supported=no 16752 fi 16753 if test $_pkg_short_errors_supported = yes; then 16754 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 16755 else 16756 CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 16757 fi 16758 # Put the nasty error message in config.log where it belongs 16759 echo "$CAPNG_PKG_ERRORS" >&5 16760 16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16762 printf "%s\n" "no" >&6; } 16763 with_capng=no 16764 elif test $pkg_failed = untried; then 16765 with_capng=no 16766 else 16767 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS 16768 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS 16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16770 printf "%s\n" "yes" >&6; } 16771 with_capng=yes 16772 fi 16773 fi 16774 if test "$with_capng" = "yes"; then 16775 16776 printf "%s\n" "#define HAVE_CAPNG 1" >>confdefs.h 16777 16778 fi 16779 if test "$with_capng" != "no"; then 16780 HAVE_CAPNG_TRUE= 16781 HAVE_CAPNG_FALSE='#' 16782 else 16783 HAVE_CAPNG_TRUE='#' 16784 HAVE_CAPNG_FALSE= 16785 fi 16786 16787 16788 16789 16790 16791 16792 # Check whether --with-sqlite3 was given. 16793 if test ${with_sqlite3+y} 16794 then : 16795 withval=$with_sqlite3; 16796 fi 16797 16798 16799 # Check whether --with-sqlite3-lib was given. 16800 if test ${with_sqlite3_lib+y} 16801 then : 16802 withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 16803 as_fn_error $? "No argument for --with-sqlite3-lib" "$LINENO" 5 16804 elif test "X$with_sqlite3" = "X"; then 16805 with_sqlite3=yes 16806 fi 16807 fi 16808 16809 16810 # Check whether --with-sqlite3-include was given. 16811 if test ${with_sqlite3_include+y} 16812 then : 16813 withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then 16814 as_fn_error $? "No argument for --with-sqlite3-include" "$LINENO" 5 16815 elif test "X$with_sqlite3" = "X"; then 16816 with_sqlite3=yes 16817 fi 16818 fi 16819 16820 16821 # Check whether --with-sqlite3-config was given. 16822 if test ${with_sqlite3_config+y} 16823 then : 16824 withval=$with_sqlite3_config; 16825 fi 16826 16827 16828 16829 16830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5 16831 printf %s "checking for sqlite3... " >&6; } 16832 16833 case "$with_sqlite3" in 16834 yes|"") d='' ;; 16835 no) d= ;; 16836 *) d="$with_sqlite3" ;; 16837 esac 16838 16839 header_dirs= 16840 lib_dirs= 16841 for i in $d; do 16842 if test "$with_sqlite3_include" = ""; then 16843 if test -d "$i/include/sqlite3"; then 16844 header_dirs="$header_dirs $i/include/sqlite3" 16845 fi 16846 if test -d "$i/include"; then 16847 header_dirs="$header_dirs $i/include" 16848 fi 16849 fi 16850 if test "$with_sqlite3_lib" = ""; then 16851 if test -d "$i/lib$abilibdirext"; then 16852 lib_dirs="$lib_dirs $i/lib$abilibdirext" 16853 fi 16854 fi 16855 done 16856 16857 if test "$with_sqlite3_include"; then 16858 header_dirs="$with_sqlite3_include $header_dirs" 16859 fi 16860 if test "$with_sqlite3_lib"; then 16861 lib_dirs="$with_sqlite3_lib $lib_dirs" 16862 fi 16863 16864 if test "$with_sqlite3_config" = ""; then 16865 with_sqlite3_config='' 16866 fi 16867 16868 sqlite3_cflags= 16869 sqlite3_libs= 16870 16871 case "$with_sqlite3_config" in 16872 yes|no|""|"") 16873 if test -f $with_sqlite3/bin/ ; then 16874 with_sqlite3_config=$with_sqlite3/bin/ 16875 fi 16876 ;; 16877 esac 16878 16879 case "$with_sqlite3_config" in 16880 yes|no|"") 16881 ;; 16882 *) 16883 sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`" 16884 sqlite3_libs="`$with_sqlite3_config --libs 2>&1`" 16885 ;; 16886 esac 16887 16888 found=no 16889 if test "$with_sqlite3" != no; then 16890 save_CFLAGS="$CFLAGS" 16891 save_LIBS="$LIBS" 16892 if test "$sqlite3_cflags" -a "$sqlite3_libs"; then 16893 CFLAGS="$sqlite3_cflags $save_CFLAGS" 16894 LIBS="$sqlite3_libs $save_LIBS" 16895 16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16897 /* end confdefs.h. */ 16898 #include <sqlite3.h> 16899 #ifndef SQLITE_OPEN_CREATE 16900 #error "old version" 16901 #endif 16902 int 16903 main (void) 16904 { 16905 16906 ; 16907 return 0; 16908 } 16909 _ACEOF 16910 if ac_fn_c_try_link "$LINENO" 16911 then : 16912 16913 INCLUDE_sqlite3="$sqlite3_cflags" 16914 LIB_sqlite3="$sqlite3_libs" 16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5 16916 printf "%s\n" "from $with_sqlite3_config" >&6; } 16917 found=yes 16918 fi 16919 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16920 conftest$ac_exeext conftest.$ac_ext 16921 fi 16922 if test "$found" = no; then 16923 ires= lres= 16924 for i in $header_dirs; do 16925 CFLAGS="-I$i $save_CFLAGS" 16926 16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16928 /* end confdefs.h. */ 16929 #include <sqlite3.h> 16930 #ifndef SQLITE_OPEN_CREATE 16931 #error "old version" 16932 #endif 16933 int 16934 main (void) 16935 { 16936 16937 ; 16938 return 0; 16939 } 16940 _ACEOF 16941 if ac_fn_c_try_compile "$LINENO" 16942 then : 16943 ires=$i;break 16944 fi 16945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16946 done 16947 for i in $lib_dirs; do 16948 LIBS="-L$i -lsqlite3 $save_LIBS" 16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950 /* end confdefs.h. */ 16951 #include <sqlite3.h> 16952 #ifndef SQLITE_OPEN_CREATE 16953 #error "old version" 16954 #endif 16955 int 16956 main (void) 16957 { 16958 16959 ; 16960 return 0; 16961 } 16962 _ACEOF 16963 if ac_fn_c_try_link "$LINENO" 16964 then : 16965 lres=$i;break 16966 fi 16967 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16968 conftest$ac_exeext conftest.$ac_ext 16969 done 16970 if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then 16971 INCLUDE_sqlite3="-I$ires" 16972 LIB_sqlite3="-L$lres -lsqlite3 " 16973 found=yes 16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 16975 printf "%s\n" "headers $ires, libraries $lres" >&6; } 16976 fi 16977 fi 16978 CFLAGS="$save_CFLAGS" 16979 LIBS="$save_LIBS" 16980 fi 16981 16982 if test "$found" = yes; then 16983 16984 printf "%s\n" "#define SQLITE3 1" >>confdefs.h 16985 16986 with_sqlite3=yes 16987 else 16988 with_sqlite3=no 16989 INCLUDE_sqlite3= 16990 LIB_sqlite3= 16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16992 printf "%s\n" "no" >&6; } 16993 fi 16994 16995 16996 16997 16998 16999 if test "X$with_sqlite3" != Xyes ; then 17000 INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite" 17001 LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la" 17002 fi 17003 if test "X$with_sqlite3" = Xyes; then 17004 SQLITE3_TRUE= 17005 SQLITE3_FALSE='#' 17006 else 17007 SQLITE3_TRUE='#' 17008 SQLITE3_FALSE= 17009 fi 17010 17011 17012 17013 printf "%s\n" "#define HAVE_SQLITE3 1" >>confdefs.h 17014 17015 17016 # Check whether --enable-sqlite-cache was given. 17017 if test ${enable_sqlite_cache+y} 17018 then : 17019 enableval=$enable_sqlite_cache; 17020 fi 17021 17022 if test "$enable_sqlite_cache" != no; then 17023 17024 printf "%s\n" "#define HAVE_SCC 1" >>confdefs.h 17025 17026 fi 17027 if test "$enable_sqlite_cache" != no; then 17028 have_scc_TRUE= 17029 have_scc_FALSE='#' 17030 else 17031 have_scc_TRUE='#' 17032 have_scc_FALSE= 17033 fi 17034 17035 17036 17037 17038 17039 # Check whether --with-libintl was given. 17040 if test ${with_libintl+y} 17041 then : 17042 withval=$with_libintl; 17043 fi 17044 17045 17046 # Check whether --with-libintl-lib was given. 17047 if test ${with_libintl_lib+y} 17048 then : 17049 withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 17050 as_fn_error $? "No argument for --with-libintl-lib" "$LINENO" 5 17051 elif test "X$with_libintl" = "X"; then 17052 with_libintl=yes 17053 fi 17054 fi 17055 17056 17057 # Check whether --with-libintl-include was given. 17058 if test ${with_libintl_include+y} 17059 then : 17060 withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 17061 as_fn_error $? "No argument for --with-libintl-include" "$LINENO" 5 17062 elif test "X$with_libintl" = "X"; then 17063 with_libintl=yes 17064 fi 17065 fi 17066 17067 17068 # Check whether --with-libintl-config was given. 17069 if test ${with_libintl_config+y} 17070 then : 17071 withval=$with_libintl_config; 17072 fi 17073 17074 17075 17076 17077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5 17078 printf %s "checking for libintl... " >&6; } 17079 17080 case "$with_libintl" in 17081 yes|"") d='' ;; 17082 no) d= ;; 17083 *) d="$with_libintl" ;; 17084 esac 17085 17086 header_dirs= 17087 lib_dirs= 17088 for i in $d; do 17089 if test "$with_libintl_include" = ""; then 17090 if test -d "$i/include/libintl"; then 17091 header_dirs="$header_dirs $i/include/libintl" 17092 fi 17093 if test -d "$i/include"; then 17094 header_dirs="$header_dirs $i/include" 17095 fi 17096 fi 17097 if test "$with_libintl_lib" = ""; then 17098 if test -d "$i/lib$abilibdirext"; then 17099 lib_dirs="$lib_dirs $i/lib$abilibdirext" 17100 fi 17101 fi 17102 done 17103 17104 if test "$with_libintl_include"; then 17105 header_dirs="$with_libintl_include $header_dirs" 17106 fi 17107 if test "$with_libintl_lib"; then 17108 lib_dirs="$with_libintl_lib $lib_dirs" 17109 fi 17110 17111 if test "$with_libintl_config" = ""; then 17112 with_libintl_config='' 17113 fi 17114 17115 libintl_cflags= 17116 libintl_libs= 17117 17118 case "$with_libintl_config" in 17119 yes|no|""|"") 17120 if test -f $with_libintl/bin/ ; then 17121 with_libintl_config=$with_libintl/bin/ 17122 fi 17123 ;; 17124 esac 17125 17126 case "$with_libintl_config" in 17127 yes|no|"") 17128 ;; 17129 *) 17130 libintl_cflags="`$with_libintl_config --cflags 2>&1`" 17131 libintl_libs="`$with_libintl_config --libs 2>&1`" 17132 ;; 17133 esac 17134 17135 found=no 17136 if test "$with_libintl" != no; then 17137 save_CFLAGS="$CFLAGS" 17138 save_LIBS="$LIBS" 17139 if test "$libintl_cflags" -a "$libintl_libs"; then 17140 CFLAGS="$libintl_cflags $save_CFLAGS" 17141 LIBS="$libintl_libs $save_LIBS" 17142 17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17144 /* end confdefs.h. */ 17145 #include <libintl.h> 17146 int 17147 main (void) 17148 { 17149 17150 ; 17151 return 0; 17152 } 17153 _ACEOF 17154 if ac_fn_c_try_link "$LINENO" 17155 then : 17156 17157 INCLUDE_libintl="$libintl_cflags" 17158 LIB_libintl="$libintl_libs" 17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5 17160 printf "%s\n" "from $with_libintl_config" >&6; } 17161 found=yes 17162 fi 17163 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17164 conftest$ac_exeext conftest.$ac_ext 17165 fi 17166 if test "$found" = no; then 17167 ires= lres= 17168 for i in $header_dirs; do 17169 CFLAGS="-I$i $save_CFLAGS" 17170 17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17172 /* end confdefs.h. */ 17173 #include <libintl.h> 17174 int 17175 main (void) 17176 { 17177 17178 ; 17179 return 0; 17180 } 17181 _ACEOF 17182 if ac_fn_c_try_compile "$LINENO" 17183 then : 17184 ires=$i;break 17185 fi 17186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17187 done 17188 for i in $lib_dirs; do 17189 LIBS="-L$i -lintl $save_LIBS" 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191 /* end confdefs.h. */ 17192 #include <libintl.h> 17193 int 17194 main (void) 17195 { 17196 17197 ; 17198 return 0; 17199 } 17200 _ACEOF 17201 if ac_fn_c_try_link "$LINENO" 17202 then : 17203 lres=$i;break 17204 fi 17205 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17206 conftest$ac_exeext conftest.$ac_ext 17207 done 17208 if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then 17209 INCLUDE_libintl="-I$ires" 17210 LIB_libintl="-L$lres -lintl " 17211 found=yes 17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 17213 printf "%s\n" "headers $ires, libraries $lres" >&6; } 17214 fi 17215 fi 17216 CFLAGS="$save_CFLAGS" 17217 LIBS="$save_LIBS" 17218 fi 17219 17220 if test "$found" = yes; then 17221 17222 printf "%s\n" "#define LIBINTL 1" >>confdefs.h 17223 17224 with_libintl=yes 17225 else 17226 with_libintl=no 17227 INCLUDE_libintl= 17228 LIB_libintl= 17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17230 printf "%s\n" "no" >&6; } 17231 fi 17232 17233 17234 17235 17236 17237 17238 # Check whether --with-hdbdir was given. 17239 if test ${with_hdbdir+y} 17240 then : 17241 withval=$with_hdbdir; 17242 else $as_nop 17243 with_hdbdir=/var/heimdal 17244 fi 17245 17246 DIR_hdbdir="$with_hdbdir" 17247 17248 17249 17250 if true; then 17251 KRB5_TRUE= 17252 KRB5_FALSE='#' 17253 else 17254 KRB5_TRUE='#' 17255 KRB5_FALSE= 17256 fi 17257 17258 if true; then 17259 do_roken_rename_TRUE= 17260 do_roken_rename_FALSE='#' 17261 else 17262 do_roken_rename_TRUE='#' 17263 do_roken_rename_FALSE= 17264 fi 17265 17266 17267 17268 printf "%s\n" "#define SUPPORT_INETD 1" >>confdefs.h 17269 17270 17271 17272 printf "%s\n" "#define KRB5 1" >>confdefs.h 17273 17274 17275 17276 # Check whether --with-hcrypto-default-backend was given. 17277 if test ${with_hcrypto_default_backend+y} 17278 then : 17279 withval=$with_hcrypto_default_backend; 17280 CFLAGS="${CFLAGS} -DHCRYPTO_DEF_PROVIDER=${withval}" 17281 case "$withval" in 17282 cc) 17283 printf "%s\n" "#define HCRYPTO_DEF_PROVIDER cc" >>confdefs.h 17284 ;; 17285 pkcs11_hcrypto) 17286 printf "%s\n" "#define HCRYPTO_DEF_PROVIDER pkcs11_hcrypto" >>confdefs.h 17287 ;; 17288 ossl) 17289 printf "%s\n" "#define HCRYPTO_DEF_PROVIDER ossl" >>confdefs.h 17290 ;; 17291 w32crypto) 17292 printf "%s\n" "#define HCRYPTO_DEF_PROVIDER w32crypto" >>confdefs.h 17293 ;; 17294 hcrypto) 17295 printf "%s\n" "#define HCRYPTO_DEF_PROVIDER hcrypto" >>confdefs.h 17296 ;; 17297 *) echo "Invalid hcrypto provider name ($withval)"; exit 5;; 17298 esac 17299 17300 fi 17301 17302 17303 # Check whether --with-hcrypto-fallback was given. 17304 if test ${with_hcrypto_fallback+y} 17305 then : 17306 withval=$with_hcrypto_fallback; 17307 printf "%s\n" "#define HCRYPTO_FALLBACK 0" >>confdefs.h 17308 17309 else $as_nop 17310 17311 printf "%s\n" "#define HCRYPTO_FALLBACK 1" >>confdefs.h 17312 17313 fi 17314 17315 17316 17317 # Check whether --with-openssl was given. 17318 if test ${with_openssl+y} 17319 then : 17320 withval=$with_openssl; 17321 fi 17322 17323 17324 17325 # Check whether --with-openssl-lib was given. 17326 if test ${with_openssl_lib+y} 17327 then : 17328 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 17329 as_fn_error $? "No argument for --with-openssl-lib" "$LINENO" 5 17330 elif test "X$with_openssl" = "X"; then 17331 with_openssl=yes 17332 fi 17333 fi 17334 17335 17336 17337 # Check whether --with-openssl-include was given. 17338 if test ${with_openssl_include+y} 17339 then : 17340 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 17341 as_fn_error $? "No argument for --with-openssl-include" "$LINENO" 5 17342 elif test "X$with_openssl" = "X"; then 17343 with_openssl=yes 17344 fi 17345 fi 17346 17347 17348 case "$with_openssl" in 17349 yes) ;; 17350 no) ;; 17351 "") ;; 17352 *) if test "$with_openssl_include" = ""; then 17353 with_openssl_include="$with_openssl/include" 17354 fi 17355 if test "$with_openssl_lib" = ""; then 17356 with_openssl_lib="$with_openssl/lib$abilibdirext" 17357 fi 17358 ;; 17359 esac 17360 17361 17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5 17363 printf %s "checking for crypto library... " >&6; } 17364 17365 openssl=no 17366 17367 if test "$with_openssl" = "yes"; then 17368 with_openssl=/usr 17369 fi 17370 if test "$with_openssl" != "no"; then 17371 saved_CFLAGS="${CFLAGS}" 17372 saved_LDFLAGS="${LDFLAGS}" 17373 INCLUDE_openssl_crypto= 17374 LIB_openssl_crypto= 17375 if test "$with_openssl_include" != ""; then 17376 INCLUDE_openssl_crypto="-I${with_openssl_include}" 17377 else 17378 INCLUDE_openssl_crypto="-I${with_openssl}/include" 17379 fi 17380 if test "$with_openssl_lib" != ""; then 17381 LIB_openssl_crypto="-L${with_openssl_lib}" 17382 elif test "${with_openssl}" != "/usr" -a -d "${with_openssl}/lib"; then 17383 LIB_openssl_crypto="-L${with_openssl}/lib" 17384 fi 17385 CFLAGS="-DHAVE_HCRYPTO_W_OPENSSL ${INCLUDE_openssl_crypto} ${CFLAGS}" 17386 LDFLAGS="${LIB_openssl_crypto} ${LDFLAGS}" 17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17388 printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17389 if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17390 then : 17391 printf %s "(cached) " >&6 17392 else $as_nop 17393 ac_check_lib_save_LIBS=$LIBS 17394 LIBS="-lcrypto $LIBS" 17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396 /* end confdefs.h. */ 17397 17398 /* Override any GCC internal prototype to avoid an error. 17399 Use char because int might match the return type of a GCC 17400 builtin and then its argument prototype would still apply. */ 17401 char OPENSSL_init (); 17402 int 17403 main (void) 17404 { 17405 return OPENSSL_init (); 17406 ; 17407 return 0; 17408 } 17409 _ACEOF 17410 if ac_fn_c_try_link "$LINENO" 17411 then : 17412 ac_cv_lib_crypto_OPENSSL_init=yes 17413 else $as_nop 17414 ac_cv_lib_crypto_OPENSSL_init=no 17415 fi 17416 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17417 conftest$ac_exeext conftest.$ac_ext 17418 LIBS=$ac_check_lib_save_LIBS 17419 fi 17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17421 printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17422 if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17423 then : 17424 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto"; openssl=yes 17425 else $as_nop 17426 openssl=no 17427 fi 17428 17429 # These cases are just for static linking on older OSes, 17430 # presumably. 17431 if test "$openssl" = "no"; then 17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17433 printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17434 if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17435 then : 17436 printf %s "(cached) " >&6 17437 else $as_nop 17438 ac_check_lib_save_LIBS=$LIBS 17439 LIBS="-lcrypto -ldl $LIBS" 17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17441 /* end confdefs.h. */ 17442 17443 /* Override any GCC internal prototype to avoid an error. 17444 Use char because int might match the return type of a GCC 17445 builtin and then its argument prototype would still apply. */ 17446 char OPENSSL_init (); 17447 int 17448 main (void) 17449 { 17450 return OPENSSL_init (); 17451 ; 17452 return 0; 17453 } 17454 _ACEOF 17455 if ac_fn_c_try_link "$LINENO" 17456 then : 17457 ac_cv_lib_crypto_OPENSSL_init=yes 17458 else $as_nop 17459 ac_cv_lib_crypto_OPENSSL_init=no 17460 fi 17461 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17462 conftest$ac_exeext conftest.$ac_ext 17463 LIBS=$ac_check_lib_save_LIBS 17464 fi 17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17466 printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17467 if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17468 then : 17469 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl"; openssl=yes 17470 else $as_nop 17471 openssl=no 17472 fi 17473 17474 fi 17475 if test "$openssl" = "no"; then 17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17477 printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17478 if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17479 then : 17480 printf %s "(cached) " >&6 17481 else $as_nop 17482 ac_check_lib_save_LIBS=$LIBS 17483 LIBS="-lcrypto -ldl -lnsl $LIBS" 17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485 /* end confdefs.h. */ 17486 17487 /* Override any GCC internal prototype to avoid an error. 17488 Use char because int might match the return type of a GCC 17489 builtin and then its argument prototype would still apply. */ 17490 char OPENSSL_init (); 17491 int 17492 main (void) 17493 { 17494 return OPENSSL_init (); 17495 ; 17496 return 0; 17497 } 17498 _ACEOF 17499 if ac_fn_c_try_link "$LINENO" 17500 then : 17501 ac_cv_lib_crypto_OPENSSL_init=yes 17502 else $as_nop 17503 ac_cv_lib_crypto_OPENSSL_init=no 17504 fi 17505 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17506 conftest$ac_exeext conftest.$ac_ext 17507 LIBS=$ac_check_lib_save_LIBS 17508 fi 17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17510 printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17511 if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17512 then : 17513 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl -lnsl"; openssl=yes 17514 else $as_nop 17515 openssl=no 17516 fi 17517 17518 fi 17519 if test "$openssl" = "no"; then 17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init in -lcrypto" >&5 17521 printf %s "checking for OPENSSL_init in -lcrypto... " >&6; } 17522 if test ${ac_cv_lib_crypto_OPENSSL_init+y} 17523 then : 17524 printf %s "(cached) " >&6 17525 else $as_nop 17526 ac_check_lib_save_LIBS=$LIBS 17527 LIBS="-lcrypto -ldl -lnsl -lsocket $LIBS" 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529 /* end confdefs.h. */ 17530 17531 /* Override any GCC internal prototype to avoid an error. 17532 Use char because int might match the return type of a GCC 17533 builtin and then its argument prototype would still apply. */ 17534 char OPENSSL_init (); 17535 int 17536 main (void) 17537 { 17538 return OPENSSL_init (); 17539 ; 17540 return 0; 17541 } 17542 _ACEOF 17543 if ac_fn_c_try_link "$LINENO" 17544 then : 17545 ac_cv_lib_crypto_OPENSSL_init=yes 17546 else $as_nop 17547 ac_cv_lib_crypto_OPENSSL_init=no 17548 fi 17549 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17550 conftest$ac_exeext conftest.$ac_ext 17551 LIBS=$ac_check_lib_save_LIBS 17552 fi 17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init" >&5 17554 printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_init" >&6; } 17555 if test "x$ac_cv_lib_crypto_OPENSSL_init" = xyes 17556 then : 17557 LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto -ldl -lnsl -lsocket"; openssl=yes 17558 else $as_nop 17559 openssl=no 17560 fi 17561 17562 fi 17563 if test "$openssl" = "no"; then 17564 INCLUDE_openssl_crypto= 17565 LIB_openssl_crypto= 17566 fi 17567 CFLAGS="${saved_CFLAGS}" 17568 LDFLAGS="${saved_LDFLAGS}" 17569 fi 17570 17571 LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la' 17572 LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a' 17573 LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so' 17574 LIB_hcrypto_appl="-lhcrypto" 17575 17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5 17577 printf "%s\n" "included libhcrypto" >&6; } 17578 17579 17580 # Check whether --with-pkcs11-module was given. 17581 if test ${with_pkcs11_module+y} 17582 then : 17583 withval=$with_pkcs11_module; pkcs11_module="$withval" 17584 fi 17585 17586 17587 if test "$pkcs11_module" != ""; then 17588 17589 printf "%s\n" "#define PKCS11_MODULE_PATH \"$pkcs11_module\"" >>confdefs.h 17590 17591 openssl=no 17592 fi 17593 17594 if test "$openssl" = "yes"; then 17595 17596 printf "%s\n" "#define HAVE_HCRYPTO_W_OPENSSL 1" >>confdefs.h 17597 17598 fi 17599 if test "$openssl" = yes; then 17600 HAVE_HCRYPTO_W_OPENSSL_TRUE= 17601 HAVE_HCRYPTO_W_OPENSSL_FALSE='#' 17602 else 17603 HAVE_HCRYPTO_W_OPENSSL_TRUE='#' 17604 HAVE_HCRYPTO_W_OPENSSL_FALSE= 17605 fi 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5 17617 printf %s "checking if compiling threadsafe libraries... " >&6; } 17618 17619 # Check whether --enable-pthread-support was given. 17620 if test ${enable_pthread_support+y} 17621 then : 17622 enableval=$enable_pthread_support; 17623 else $as_nop 17624 enable_pthread_support=maybe 17625 fi 17626 17627 17628 case "$host" in 17629 *-*-solaris2*) 17630 native_pthread_support=yes 17631 if test "$GCC" = yes; then 17632 PTHREAD_CFLAGS="-D_REENTRANT -D_TS_ERRNO" 17633 PTHREAD_LIBADD=-lpthread 17634 else 17635 PTHREAD_CFLAGS="-mt -D_REENTRANT -D_TS_ERRNO" 17636 PTHREAD_LDADD=-mt 17637 PTHREAD_LIBADD="-mt -lpthread" 17638 fi 17639 ;; 17640 *-*-netbsd[12]*) 17641 native_pthread_support="if running netbsd 1.6T or newer" 17642 PTHREAD_LIBADD="-lpthread" 17643 ;; 17644 *-*-netbsd[3456789]*) 17645 native_pthread_support="netbsd 3 uses explict pthread" 17646 PTHREAD_LIBADD="-lpthread" 17647 ;; 17648 *-*-freebsd[1234]) 17649 ;; 17650 *-*-freebsd*) 17651 native_pthread_support=yes 17652 PTHREAD_LIBADD="-pthread" 17653 ;; 17654 *-*-openbsd*) 17655 native_pthread_support=yes 17656 PTHREAD_CFLAGS=-pthread 17657 PTHREAD_LIBADD=-pthread 17658 ;; 17659 *-*-gnu*) 17660 native_pthread_support=yes 17661 PTHREADS_CFLAGS=-pthread 17662 PTHREAD_LIBADD="-pthread -lpthread" 17663 ;; 17664 *-*-linux* | *-*-linux-gnu) 17665 case `uname -r` in 17666 2.*|3.*) 17667 native_pthread_support=yes 17668 PTHREAD_CFLAGS=-pthread 17669 PTHREAD_LIBADD=-pthread 17670 ;; 17671 esac 17672 ;; 17673 *-*-kfreebsd*-gnu*) 17674 native_pthread_support=yes 17675 PTHREAD_CFLAGS=-pthread 17676 PTHREAD_LIBADD=-pthread 17677 ;; 17678 *-*-aix*) 17679 native_pthread_support=no 17680 ;; 17681 mips-sgi-irix6.[5-9]) # maybe works for earlier versions too 17682 native_pthread_support=yes 17683 PTHREAD_LIBADD="-lpthread" 17684 ;; 17685 *-*-darwin*) 17686 native_pthread_support=yes 17687 ;; 17688 *) 17689 native_pthread_support=no 17690 ;; 17691 esac 17692 17693 if test "$enable_pthread_support" = maybe ; then 17694 enable_pthread_support="$native_pthread_support" 17695 fi 17696 17697 if test "$enable_pthread_support" != no; then 17698 17699 printf "%s\n" "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h 17700 17701 LIBS="$PTHREAD_LIBADD $LIBS" 17702 else 17703 PTHREAD_CFLAGS="" 17704 PTHREAD_LIBADD="" 17705 fi 17706 17707 if test "$enable_pthread_support" != no; then 17708 ENABLE_PTHREAD_SUPPORT_TRUE= 17709 ENABLE_PTHREAD_SUPPORT_FALSE='#' 17710 else 17711 ENABLE_PTHREAD_SUPPORT_TRUE='#' 17712 ENABLE_PTHREAD_SUPPORT_FALSE= 17713 fi 17714 17715 17716 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17717 LDADD="$LDADD $PTHREAD_LDADD" 17718 LIBADD="$LIBADD $PTHREAD_LIBADD" 17719 17720 17721 17722 17723 17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5 17725 printf "%s\n" "$enable_pthread_support" >&6; } 17726 17727 17728 # Check whether --enable-dce was given. 17729 if test ${enable_dce+y} 17730 then : 17731 enableval=$enable_dce; 17732 fi 17733 17734 if test "$enable_dce" = yes; then 17735 17736 printf "%s\n" "#define DCE 1" >>confdefs.h 17737 17738 fi 17739 if test "$enable_dce" = yes; then 17740 DCE_TRUE= 17741 DCE_FALSE='#' 17742 else 17743 DCE_TRUE='#' 17744 DCE_FALSE= 17745 fi 17746 17747 17748 ## XXX quite horrible: 17749 if test -f /etc/ibmcxx.cfg; then 17750 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 17751 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 17752 dpagaix_ldflags= 17753 else 17754 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 17755 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 17756 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 17757 fi 17758 17759 17760 17761 17762 # Check whether --enable-afs-support was given. 17763 if test ${enable_afs_support+y} 17764 then : 17765 enableval=$enable_afs_support; 17766 fi 17767 17768 if test "$enable_afs_support" = no; then 17769 17770 printf "%s\n" "#define NO_AFS 1" >>confdefs.h 17771 17772 NO_AFS="1" 17773 fi 17774 if test "$enable_afs_support" = no; then 17775 NO_AFS_TRUE= 17776 NO_AFS_FALSE='#' 17777 else 17778 NO_AFS_TRUE='#' 17779 NO_AFS_FALSE= 17780 fi 17781 17782 17783 17784 17785 # Check whether --with-db-type-preference was given. 17786 if test ${with_db_type_preference+y} 17787 then : 17788 withval=$with_db_type_preference; db_type_preference="$withval" 17789 else $as_nop 17790 db_type_preference="lmdb db3 db1 sqlite" 17791 fi 17792 17793 17794 # Check whether --with-berkeley-db was given. 17795 if test ${with_berkeley_db+y} 17796 then : 17797 withval=$with_berkeley_db; 17798 else $as_nop 17799 with_berkeley_db=check 17800 fi 17801 17802 17803 dbheader="" 17804 17805 # Check whether --with-berkeley-db-include was given. 17806 if test ${with_berkeley_db_include+y} 17807 then : 17808 withval=$with_berkeley_db_include; dbheader=$withval 17809 else $as_nop 17810 with_berkeley_db_include=check 17811 fi 17812 17813 17814 # Check whether --enable-ndbm-db was given. 17815 if test ${enable_ndbm_db+y} 17816 then : 17817 enableval=$enable_ndbm_db; 17818 17819 fi 17820 17821 17822 # Check whether --enable-mdb-db was given. 17823 if test ${enable_mdb_db+y} 17824 then : 17825 enableval=$enable_mdb_db; 17826 17827 fi 17828 17829 17830 have_db1=no 17831 have_db3=no 17832 have_lmdb=no 17833 db_type=unknown 17834 17835 if test "x$with_berkeley_db" != xno 17836 then : 17837 if test "x$with_berkeley_db_include" != xcheck 17838 then : 17839 for ac_header in "$dbheader/db.h" 17840 do : 17841 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 17842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17843 if eval test \"x\$"$as_ac_Header"\" = x"yes" 17844 then : 17845 cat >>confdefs.h <<_ACEOF 17846 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 17847 _ACEOF 17848 DBHEADER=$dbheader 17849 17850 17851 printf "%s\n" "#define HAVE_DBHEADER 1" >>confdefs.h 17852 17853 17854 else $as_nop 17855 if test "x$with_berkeley_db_include" != xcheck; then 17856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17857 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17858 as_fn_error $? "--with-berkeley-db-include was given but include test failed 17859 See \`config.log' for more details" "$LINENO" 5; } 17860 fi 17861 17862 fi 17863 17864 done 17865 else $as_nop 17866 ac_fn_c_check_header_compile "$LINENO" "db6/db.h" "ac_cv_header_db6_db_h" "$ac_includes_default" 17867 if test "x$ac_cv_header_db6_db_h" = xyes 17868 then : 17869 printf "%s\n" "#define HAVE_DB6_DB_H 1" >>confdefs.h 17870 17871 fi 17872 ac_fn_c_check_header_compile "$LINENO" "db5/db.h" "ac_cv_header_db5_db_h" "$ac_includes_default" 17873 if test "x$ac_cv_header_db5_db_h" = xyes 17874 then : 17875 printf "%s\n" "#define HAVE_DB5_DB_H 1" >>confdefs.h 17876 17877 fi 17878 ac_fn_c_check_header_compile "$LINENO" "db4/db.h" "ac_cv_header_db4_db_h" "$ac_includes_default" 17879 if test "x$ac_cv_header_db4_db_h" = xyes 17880 then : 17881 printf "%s\n" "#define HAVE_DB4_DB_H 1" >>confdefs.h 17882 17883 fi 17884 ac_fn_c_check_header_compile "$LINENO" "db3/db.h" "ac_cv_header_db3_db_h" "$ac_includes_default" 17885 if test "x$ac_cv_header_db3_db_h" = xyes 17886 then : 17887 printf "%s\n" "#define HAVE_DB3_DB_H 1" >>confdefs.h 17888 17889 fi 17890 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 17891 if test "x$ac_cv_header_db_h" = xyes 17892 then : 17893 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h 17894 17895 fi 17896 17897 fi 17898 17899 17900 17901 17902 17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5 17904 printf %s "checking for db_create... " >&6; } 17905 if test ${ac_cv_funclib_db_create+y} 17906 then : 17907 printf %s "(cached) " >&6 17908 else $as_nop 17909 17910 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 17911 ac_save_LIBS="$LIBS" 17912 for ac_lib in "" $dbheader db-6 db-5 db4 db3 db; do 17913 case "$ac_lib" in 17914 "") ;; 17915 yes) ac_lib="" ;; 17916 no) continue ;; 17917 -l*) ;; 17918 *) ac_lib="-l$ac_lib" ;; 17919 esac 17920 LIBS=" $ac_lib $ac_save_LIBS" 17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17922 /* end confdefs.h. */ 17923 17924 #include <stdio.h> 17925 #ifdef HAVE_DBHEADER 17926 #include <$dbheader/db.h> 17927 #elif HAVE_DB6_DB_H 17928 #include <db6/db.h> 17929 #elif HAVE_DB5_DB_H 17930 #include <db5/db.h> 17931 #elif HAVE_DB4_DB_H 17932 #include <db4/db.h> 17933 #elif defined(HAVE_DB3_DB_H) 17934 #include <db3/db.h> 17935 #else 17936 #include <db.h> 17937 #endif 17938 17939 int 17940 main (void) 17941 { 17942 db_create(NULL, NULL, 0) 17943 ; 17944 return 0; 17945 } 17946 _ACEOF 17947 if ac_fn_c_try_link "$LINENO" 17948 then : 17949 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 17950 fi 17951 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17952 conftest$ac_exeext conftest.$ac_ext 17953 done 17954 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 17955 LIBS="$ac_save_LIBS" 17956 fi 17957 17958 fi 17959 17960 17961 eval "ac_res=\$ac_cv_funclib_db_create" 17962 17963 if false; then 17964 ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create" 17965 if test "x$ac_cv_func_db_create" = xyes 17966 then : 17967 printf "%s\n" "#define HAVE_DB_CREATE 1" >>confdefs.h 17968 17969 fi 17970 17971 fi 17972 # db_create 17973 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17974 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17975 eval "LIB_db_create=$ac_res" 17976 17977 case "$ac_res" in 17978 yes) 17979 eval "ac_cv_func_db_create=yes" 17980 eval "LIB_db_create=" 17981 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 17982 17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17984 printf "%s\n" "yes" >&6; } 17985 ;; 17986 no) 17987 eval "ac_cv_func_db_create=no" 17988 eval "LIB_db_create=" 17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990 printf "%s\n" "no" >&6; } 17991 ;; 17992 *) 17993 eval "ac_cv_func_db_create=yes" 17994 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 17995 17996 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 17997 17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17999 printf "%s\n" "yes, in $ac_res" >&6; } 18000 ;; 18001 esac 18002 18003 18004 18005 if test "$ac_cv_func_db_create" = "yes"; then 18006 have_db3=yes 18007 if test "$ac_cv_funclib_db_create" != "yes"; then 18008 DB3LIB="$ac_cv_funclib_db_create" 18009 else 18010 DB3LIB="" 18011 fi 18012 18013 printf "%s\n" "#define HAVE_DB3 1" >>confdefs.h 18014 18015 fi 18016 18017 18018 18019 18020 18021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5 18022 printf %s "checking for dbopen... " >&6; } 18023 if test ${ac_cv_funclib_dbopen+y} 18024 then : 18025 printf %s "(cached) " >&6 18026 else $as_nop 18027 18028 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 18029 ac_save_LIBS="$LIBS" 18030 for ac_lib in "" db2 db; do 18031 case "$ac_lib" in 18032 "") ;; 18033 yes) ac_lib="" ;; 18034 no) continue ;; 18035 -l*) ;; 18036 *) ac_lib="-l$ac_lib" ;; 18037 esac 18038 LIBS=" $ac_lib $ac_save_LIBS" 18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18040 /* end confdefs.h. */ 18041 18042 #include <stdio.h> 18043 #if defined(HAVE_DB2_DB_H) 18044 #include <db2/db.h> 18045 #elif defined(HAVE_DB_H) 18046 #include <db.h> 18047 #else 18048 #error no db.h 18049 #endif 18050 18051 int 18052 main (void) 18053 { 18054 dbopen(NULL, 0, 0, 0, NULL) 18055 ; 18056 return 0; 18057 } 18058 _ACEOF 18059 if ac_fn_c_try_link "$LINENO" 18060 then : 18061 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 18062 fi 18063 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18064 conftest$ac_exeext conftest.$ac_ext 18065 done 18066 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 18067 LIBS="$ac_save_LIBS" 18068 fi 18069 18070 fi 18071 18072 18073 eval "ac_res=\$ac_cv_funclib_dbopen" 18074 18075 if false; then 18076 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" 18077 if test "x$ac_cv_func_dbopen" = xyes 18078 then : 18079 printf "%s\n" "#define HAVE_DBOPEN 1" >>confdefs.h 18080 18081 fi 18082 18083 fi 18084 # dbopen 18085 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18086 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18087 eval "LIB_dbopen=$ac_res" 18088 18089 case "$ac_res" in 18090 yes) 18091 eval "ac_cv_func_dbopen=yes" 18092 eval "LIB_dbopen=" 18093 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18094 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18096 printf "%s\n" "yes" >&6; } 18097 ;; 18098 no) 18099 eval "ac_cv_func_dbopen=no" 18100 eval "LIB_dbopen=" 18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18102 printf "%s\n" "no" >&6; } 18103 ;; 18104 *) 18105 eval "ac_cv_func_dbopen=yes" 18106 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18107 18108 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18109 18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18111 printf "%s\n" "yes, in $ac_res" >&6; } 18112 ;; 18113 esac 18114 18115 18116 18117 if test "$ac_cv_func_dbopen" = "yes"; then 18118 have_db1=yes 18119 if test "$ac_cv_funclib_dbopen" != "yes"; then 18120 DB1LIB="$ac_cv_funclib_dbopen" 18121 else 18122 DB1LIB="" 18123 fi 18124 18125 printf "%s\n" "#define HAVE_DB1 1" >>confdefs.h 18126 18127 fi 18128 18129 18130 if test "$ac_cv_func_dbm_firstkey" != yes; then 18131 18132 18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 18134 printf %s "checking for dbm_firstkey... " >&6; } 18135 if test ${ac_cv_funclib_dbm_firstkey+y} 18136 then : 18137 printf %s "(cached) " >&6 18138 else $as_nop 18139 18140 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 18141 ac_save_LIBS="$LIBS" 18142 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 18143 case "$ac_lib" in 18144 "") ;; 18145 yes) ac_lib="" ;; 18146 no) continue ;; 18147 -l*) ;; 18148 *) ac_lib="-l$ac_lib" ;; 18149 esac 18150 LIBS=" $ac_lib $ac_save_LIBS" 18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18152 /* end confdefs.h. */ 18153 18154 #include <stdio.h> 18155 #define DB_DBM_HSEARCH 1 18156 #include <db.h> 18157 DBM *dbm; 18158 18159 int 18160 main (void) 18161 { 18162 dbm_firstkey(NULL) 18163 ; 18164 return 0; 18165 } 18166 _ACEOF 18167 if ac_fn_c_try_link "$LINENO" 18168 then : 18169 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 18170 fi 18171 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18172 conftest$ac_exeext conftest.$ac_ext 18173 done 18174 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 18175 LIBS="$ac_save_LIBS" 18176 fi 18177 18178 fi 18179 18180 18181 eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 18182 18183 if false; then 18184 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 18185 if test "x$ac_cv_func_dbm_firstkey" = xyes 18186 then : 18187 printf "%s\n" "#define HAVE_DBM_FIRSTKEY 1" >>confdefs.h 18188 18189 fi 18190 18191 fi 18192 # dbm_firstkey 18193 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18194 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18195 eval "LIB_dbm_firstkey=$ac_res" 18196 18197 case "$ac_res" in 18198 yes) 18199 eval "ac_cv_func_dbm_firstkey=yes" 18200 eval "LIB_dbm_firstkey=" 18201 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18202 18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18204 printf "%s\n" "yes" >&6; } 18205 ;; 18206 no) 18207 eval "ac_cv_func_dbm_firstkey=no" 18208 eval "LIB_dbm_firstkey=" 18209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18210 printf "%s\n" "no" >&6; } 18211 ;; 18212 *) 18213 eval "ac_cv_func_dbm_firstkey=yes" 18214 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18215 18216 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18217 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18219 printf "%s\n" "yes, in $ac_res" >&6; } 18220 ;; 18221 esac 18222 18223 18224 18225 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 18226 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 18227 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 18228 else 18229 NDBMLIB="" 18230 fi 18231 18232 printf "%s\n" "#define HAVE_DB_NDBM 1" >>confdefs.h 18233 18234 18235 printf "%s\n" "#define HAVE_NEW_DB 1" >>confdefs.h 18236 18237 else 18238 $as_unset ac_cv_func_dbm_firstkey 18239 $as_unset ac_cv_funclib_dbm_firstkey 18240 fi 18241 fi 18242 18243 18244 fi # fi berkeley db 18245 18246 18247 if test "x$enable_mdb_db" != xno 18248 then : 18249 ac_fn_c_check_header_compile "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 18250 if test "x$ac_cv_header_lmdb_h" = xyes 18251 then : 18252 18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 18254 printf %s "checking for mdb_env_create in -llmdb... " >&6; } 18255 if test ${ac_cv_lib_lmdb_mdb_env_create+y} 18256 then : 18257 printf %s "(cached) " >&6 18258 else $as_nop 18259 ac_check_lib_save_LIBS=$LIBS 18260 LIBS="-llmdb $LIBS" 18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18262 /* end confdefs.h. */ 18263 18264 /* Override any GCC internal prototype to avoid an error. 18265 Use char because int might match the return type of a GCC 18266 builtin and then its argument prototype would still apply. */ 18267 char mdb_env_create (); 18268 int 18269 main (void) 18270 { 18271 return mdb_env_create (); 18272 ; 18273 return 0; 18274 } 18275 _ACEOF 18276 if ac_fn_c_try_link "$LINENO" 18277 then : 18278 ac_cv_lib_lmdb_mdb_env_create=yes 18279 else $as_nop 18280 ac_cv_lib_lmdb_mdb_env_create=no 18281 fi 18282 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18283 conftest$ac_exeext conftest.$ac_ext 18284 LIBS=$ac_check_lib_save_LIBS 18285 fi 18286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 18287 printf "%s\n" "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 18288 if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes 18289 then : 18290 have_lmdb=yes; LMDBLIB="-llmdb" 18291 18292 printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h 18293 18294 fi 18295 18296 fi 18297 18298 fi 18299 18300 for db_type in unknown $db_type_preference; do 18301 if eval test \"x\$have_${db_type}\" = xyes -o ${db_type} = sqlite; then 18302 break 18303 fi 18304 db_type=unknown 18305 done 18306 18307 if test "x$have_db3" = xyes -a "$db_type" = unknown 18308 then : 18309 db_type=db3 18310 else $as_nop 18311 db_type="$db_type" 18312 fi 18313 if test "x$have_db1" = xyes -a "$db_type" = unknown 18314 then : 18315 db_type=db1 18316 else $as_nop 18317 db_type="$db_type" 18318 fi 18319 if test "x$have_lmdb" = xyes -a "$db_type" = unknown 18320 then : 18321 db_type=lmdb 18322 else $as_nop 18323 db_type="$db_type" 18324 fi 18325 18326 if test "$enable_ndbm_db" != "no"; then 18327 18328 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 18329 18330 ac_fn_c_check_header_compile "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default" 18331 if test "x$ac_cv_header_dbm_h" = xyes 18332 then : 18333 printf "%s\n" "#define HAVE_DBM_H 1" >>confdefs.h 18334 18335 fi 18336 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 18337 if test "x$ac_cv_header_ndbm_h" = xyes 18338 then : 18339 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h 18340 18341 fi 18342 18343 18344 18345 18346 18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 18348 printf %s "checking for dbm_firstkey... " >&6; } 18349 if test ${ac_cv_funclib_dbm_firstkey+y} 18350 then : 18351 printf %s "(cached) " >&6 18352 else $as_nop 18353 18354 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 18355 ac_save_LIBS="$LIBS" 18356 for ac_lib in "" ndbm; do 18357 case "$ac_lib" in 18358 "") ;; 18359 yes) ac_lib="" ;; 18360 no) continue ;; 18361 -l*) ;; 18362 *) ac_lib="-l$ac_lib" ;; 18363 esac 18364 LIBS=" $ac_lib $ac_save_LIBS" 18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18366 /* end confdefs.h. */ 18367 18368 #include <stdio.h> 18369 #if defined(HAVE_NDBM_H) 18370 #include <ndbm.h> 18371 #elif defined(HAVE_DBM_H) 18372 #include <dbm.h> 18373 #endif 18374 DBM *dbm; 18375 18376 int 18377 main (void) 18378 { 18379 dbm_firstkey(NULL) 18380 ; 18381 return 0; 18382 } 18383 _ACEOF 18384 if ac_fn_c_try_link "$LINENO" 18385 then : 18386 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 18387 fi 18388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18389 conftest$ac_exeext conftest.$ac_ext 18390 done 18391 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 18392 LIBS="$ac_save_LIBS" 18393 fi 18394 18395 fi 18396 18397 18398 eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 18399 18400 if false; then 18401 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 18402 if test "x$ac_cv_func_dbm_firstkey" = xyes 18403 then : 18404 printf "%s\n" "#define HAVE_DBM_FIRSTKEY 1" >>confdefs.h 18405 18406 fi 18407 18408 fi 18409 # dbm_firstkey 18410 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18411 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18412 eval "LIB_dbm_firstkey=$ac_res" 18413 18414 case "$ac_res" in 18415 yes) 18416 eval "ac_cv_func_dbm_firstkey=yes" 18417 eval "LIB_dbm_firstkey=" 18418 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18419 18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18421 printf "%s\n" "yes" >&6; } 18422 ;; 18423 no) 18424 eval "ac_cv_func_dbm_firstkey=no" 18425 eval "LIB_dbm_firstkey=" 18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18427 printf "%s\n" "no" >&6; } 18428 ;; 18429 *) 18430 eval "ac_cv_func_dbm_firstkey=yes" 18431 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18432 18433 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18434 18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18436 printf "%s\n" "yes, in $ac_res" >&6; } 18437 ;; 18438 esac 18439 18440 18441 18442 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 18443 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 18444 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 18445 else 18446 NDBMLIB="" 18447 fi 18448 18449 printf "%s\n" "#define HAVE_NDBM 1" >>confdefs.h 18450 have_ndbm=yes 18451 else 18452 18453 $as_unset ac_cv_func_dbm_firstkey 18454 $as_unset ac_cv_funclib_dbm_firstkey 18455 18456 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default" 18457 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes 18458 then : 18459 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h 18460 18461 fi 18462 18463 18464 18465 18466 18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 18468 printf %s "checking for dbm_firstkey... " >&6; } 18469 if test ${ac_cv_funclib_dbm_firstkey+y} 18470 then : 18471 printf %s "(cached) " >&6 18472 else $as_nop 18473 18474 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 18475 ac_save_LIBS="$LIBS" 18476 for ac_lib in "" gdbm; do 18477 case "$ac_lib" in 18478 "") ;; 18479 yes) ac_lib="" ;; 18480 no) continue ;; 18481 -l*) ;; 18482 *) ac_lib="-l$ac_lib" ;; 18483 esac 18484 LIBS=" $ac_lib $ac_save_LIBS" 18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18486 /* end confdefs.h. */ 18487 18488 #include <stdio.h> 18489 #include <gdbm/ndbm.h> 18490 DBM *dbm; 18491 18492 int 18493 main (void) 18494 { 18495 dbm_firstkey(NULL) 18496 ; 18497 return 0; 18498 } 18499 _ACEOF 18500 if ac_fn_c_try_link "$LINENO" 18501 then : 18502 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 18503 fi 18504 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18505 conftest$ac_exeext conftest.$ac_ext 18506 done 18507 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 18508 LIBS="$ac_save_LIBS" 18509 fi 18510 18511 fi 18512 18513 18514 eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 18515 18516 if false; then 18517 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 18518 if test "x$ac_cv_func_dbm_firstkey" = xyes 18519 then : 18520 printf "%s\n" "#define HAVE_DBM_FIRSTKEY 1" >>confdefs.h 18521 18522 fi 18523 18524 fi 18525 # dbm_firstkey 18526 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18527 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18528 eval "LIB_dbm_firstkey=$ac_res" 18529 18530 case "$ac_res" in 18531 yes) 18532 eval "ac_cv_func_dbm_firstkey=yes" 18533 eval "LIB_dbm_firstkey=" 18534 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18535 18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18537 printf "%s\n" "yes" >&6; } 18538 ;; 18539 no) 18540 eval "ac_cv_func_dbm_firstkey=no" 18541 eval "LIB_dbm_firstkey=" 18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18543 printf "%s\n" "no" >&6; } 18544 ;; 18545 *) 18546 eval "ac_cv_func_dbm_firstkey=yes" 18547 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 18548 18549 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 18550 18551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18552 printf "%s\n" "yes, in $ac_res" >&6; } 18553 ;; 18554 esac 18555 18556 18557 18558 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 18559 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 18560 NDBMLIB="$ac_cv_funclib_dbm_firstkey" 18561 else 18562 NDBMLIB="" 18563 fi 18564 18565 printf "%s\n" "#define HAVE_NDBM 1" >>confdefs.h 18566 have_ndbm=yes 18567 if test "$db_type" = "unknown"; then 18568 db_type=ndbm 18569 fi 18570 fi 18571 fi 18572 fi #enable_ndbm_db 18573 fi # unknown 18574 18575 if test "$have_ndbm" = "yes"; then 18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5 18577 printf %s "checking if ndbm is implemented with db... " >&6; } 18578 if test "$cross_compiling" = yes 18579 then : 18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5 18581 printf "%s\n" "no-cross" >&6; } 18582 else $as_nop 18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18584 /* end confdefs.h. */ 18585 18586 #include <unistd.h> 18587 #include <fcntl.h> 18588 #if defined(HAVE_GDBM_NDBM_H) 18589 #include <gdbm/ndbm.h> 18590 #elif defined(HAVE_NDBM_H) 18591 #include <ndbm.h> 18592 #elif defined(HAVE_DBM_H) 18593 #include <dbm.h> 18594 #endif 18595 int main(int argc, char **argv) 18596 { 18597 DBM *d; 18598 18599 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 18600 if (d == NULL) 18601 return 1; 18602 dbm_close(d); 18603 return 0; 18604 } 18605 _ACEOF 18606 if ac_fn_c_try_run "$LINENO" 18607 then : 18608 18609 if test -f conftest.db; then 18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18611 printf "%s\n" "yes" >&6; } 18612 18613 printf "%s\n" "#define HAVE_NEW_DB 1" >>confdefs.h 18614 18615 else 18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18617 printf "%s\n" "no" >&6; } 18618 fi 18619 else $as_nop 18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18621 printf "%s\n" "no" >&6; } 18622 fi 18623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18624 conftest.$ac_objext conftest.beam conftest.$ac_ext 18625 fi 18626 18627 fi 18628 18629 if test "$have_db1" = yes; then 18630 HAVE_DB1_TRUE= 18631 HAVE_DB1_FALSE='#' 18632 else 18633 HAVE_DB1_TRUE='#' 18634 HAVE_DB1_FALSE= 18635 fi 18636 if test "$have_db3" = yes; then 18637 HAVE_DB3_TRUE= 18638 HAVE_DB3_FALSE='#' 18639 else 18640 HAVE_DB3_TRUE='#' 18641 HAVE_DB3_FALSE= 18642 fi 18643 if test "$have_lmdb" = yes; then 18644 HAVE_LMDB_TRUE= 18645 HAVE_LMDB_FALSE='#' 18646 else 18647 HAVE_LMDB_TRUE='#' 18648 HAVE_LMDB_FALSE= 18649 fi 18650 if test "$have_ndbm" = yes; then 18651 HAVE_NDBM_TRUE= 18652 HAVE_NDBM_FALSE='#' 18653 else 18654 HAVE_NDBM_TRUE='#' 18655 HAVE_NDBM_FALSE= 18656 fi 18657 if test "$dbheader" != ""; then 18658 HAVE_DBHEADER_TRUE= 18659 HAVE_DBHEADER_FALSE='#' 18660 else 18661 HAVE_DBHEADER_TRUE='#' 18662 HAVE_DBHEADER_FALSE= 18663 fi 18664 18665 ## it's probably not correct to include LDFLAGS here, but we might 18666 ## need it, for now just add any possible -L 18667 z="" 18668 for i in $LDFLAGS; do 18669 case "$i" in 18670 -L*) z="$z $i";; 18671 esac 18672 done 18673 DB3LIB="$z $DB3LIB" 18674 DB1LIB="$z $DB1LIB" 18675 LMDBLIB="$z $LMDBLIB" 18676 NDMBLIB="$z $NDBMLIB" 18677 18678 18679 18680 18681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18682 printf %s "checking for inline... " >&6; } 18683 if test ${ac_cv_c_inline+y} 18684 then : 18685 printf %s "(cached) " >&6 18686 else $as_nop 18687 ac_cv_c_inline=no 18688 for ac_kw in inline __inline__ __inline; do 18689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18690 /* end confdefs.h. */ 18691 #ifndef __cplusplus 18692 typedef int foo_t; 18693 static $ac_kw foo_t static_foo (void) {return 0; } 18694 $ac_kw foo_t foo (void) {return 0; } 18695 #endif 18696 18697 _ACEOF 18698 if ac_fn_c_try_compile "$LINENO" 18699 then : 18700 ac_cv_c_inline=$ac_kw 18701 fi 18702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18703 test "$ac_cv_c_inline" != no && break 18704 done 18705 18706 fi 18707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18708 printf "%s\n" "$ac_cv_c_inline" >&6; } 18709 18710 case $ac_cv_c_inline in 18711 inline | yes) ;; 18712 *) 18713 case $ac_cv_c_inline in 18714 no) ac_val=;; 18715 *) ac_val=$ac_cv_c_inline;; 18716 esac 18717 cat >>confdefs.h <<_ACEOF 18718 #ifndef __cplusplus 18719 #define inline $ac_val 18720 #endif 18721 _ACEOF 18722 ;; 18723 esac 18724 18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18726 printf %s "checking for an ANSI C-conforming const... " >&6; } 18727 if test ${ac_cv_c_const+y} 18728 then : 18729 printf %s "(cached) " >&6 18730 else $as_nop 18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18732 /* end confdefs.h. */ 18733 18734 int 18735 main (void) 18736 { 18737 18738 #ifndef __cplusplus 18739 /* Ultrix mips cc rejects this sort of thing. */ 18740 typedef int charset[2]; 18741 const charset cs = { 0, 0 }; 18742 /* SunOS 4.1.1 cc rejects this. */ 18743 char const *const *pcpcc; 18744 char **ppc; 18745 /* NEC SVR4.0.2 mips cc rejects this. */ 18746 struct point {int x, y;}; 18747 static struct point const zero = {0,0}; 18748 /* IBM XL C 1.02.0.0 rejects this. 18749 It does not let you subtract one const X* pointer from another in 18750 an arm of an if-expression whose if-part is not a constant 18751 expression */ 18752 const char *g = "string"; 18753 pcpcc = &g + (g ? g-g : 0); 18754 /* HPUX 7.0 cc rejects these. */ 18755 ++pcpcc; 18756 ppc = (char**) pcpcc; 18757 pcpcc = (char const *const *) ppc; 18758 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18759 char tx; 18760 char *t = &tx; 18761 char const *s = 0 ? (char *) 0 : (char const *) 0; 18762 18763 *t++ = 0; 18764 if (s) return 0; 18765 } 18766 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18767 int x[] = {25, 17}; 18768 const int *foo = &x[0]; 18769 ++foo; 18770 } 18771 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18772 typedef const int *iptr; 18773 iptr p = 0; 18774 ++p; 18775 } 18776 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 18777 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18778 struct s { int j; const int *ap[3]; } bx; 18779 struct s *b = &bx; b->j = 5; 18780 } 18781 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18782 const int foo = 10; 18783 if (!foo) return 0; 18784 } 18785 return !cs[0] && !zero.x; 18786 #endif 18787 18788 ; 18789 return 0; 18790 } 18791 _ACEOF 18792 if ac_fn_c_try_compile "$LINENO" 18793 then : 18794 ac_cv_c_const=yes 18795 else $as_nop 18796 ac_cv_c_const=no 18797 fi 18798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18799 fi 18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18801 printf "%s\n" "$ac_cv_c_const" >&6; } 18802 if test $ac_cv_c_const = no; then 18803 18804 printf "%s\n" "#define const /**/" >>confdefs.h 18805 18806 fi 18807 18808 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18809 if test "x$ac_cv_type_size_t" = xyes 18810 then : 18811 18812 else $as_nop 18813 18814 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 18815 18816 fi 18817 18818 # Autoupdate added the next two lines to ensure that your configure 18819 # script's behavior did not change. They are probably safe to remove. 18820 18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 18822 printf %s "checking for egrep... " >&6; } 18823 if test ${ac_cv_path_EGREP+y} 18824 then : 18825 printf %s "(cached) " >&6 18826 else $as_nop 18827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 18828 then ac_cv_path_EGREP="$GREP -E" 18829 else 18830 if test -z "$EGREP"; then 18831 ac_path_EGREP_found=false 18832 # Loop through the user's path and test for each of PROGNAME-LIST 18833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 18835 do 18836 IFS=$as_save_IFS 18837 case $as_dir in #((( 18838 '') as_dir=./ ;; 18839 */) ;; 18840 *) as_dir=$as_dir/ ;; 18841 esac 18842 for ac_prog in egrep 18843 do 18844 for ac_exec_ext in '' $ac_executable_extensions; do 18845 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 18846 as_fn_executable_p "$ac_path_EGREP" || continue 18847 # Check for GNU ac_path_EGREP and select it if it is found. 18848 # Check for GNU $ac_path_EGREP 18849 case `"$ac_path_EGREP" --version 2>&1` in 18850 *GNU*) 18851 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 18852 *) 18853 ac_count=0 18854 printf %s 0123456789 >"conftest.in" 18855 while : 18856 do 18857 cat "conftest.in" "conftest.in" >"conftest.tmp" 18858 mv "conftest.tmp" "conftest.in" 18859 cp "conftest.in" "conftest.nl" 18860 printf "%s\n" 'EGREP' >> "conftest.nl" 18861 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 18862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 18863 as_fn_arith $ac_count + 1 && ac_count=$as_val 18864 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 18865 # Best one so far, save it but keep looking for a better one 18866 ac_cv_path_EGREP="$ac_path_EGREP" 18867 ac_path_EGREP_max=$ac_count 18868 fi 18869 # 10*(2^10) chars as input seems more than enough 18870 test $ac_count -gt 10 && break 18871 done 18872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 18873 esac 18874 18875 $ac_path_EGREP_found && break 3 18876 done 18877 done 18878 done 18879 IFS=$as_save_IFS 18880 if test -z "$ac_cv_path_EGREP"; then 18881 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 18882 fi 18883 else 18884 ac_cv_path_EGREP=$EGREP 18885 fi 18886 18887 fi 18888 fi 18889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 18890 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 18891 EGREP="$ac_cv_path_EGREP" 18892 18893 18894 18895 18896 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 18897 " 18898 if test "x$ac_cv_type_pid_t" = xyes 18899 then : 18900 18901 else $as_nop 18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18903 /* end confdefs.h. */ 18904 18905 #if defined _WIN64 && !defined __CYGWIN__ 18906 LLP64 18907 #endif 18908 18909 int 18910 main (void) 18911 { 18912 18913 ; 18914 return 0; 18915 } 18916 18917 _ACEOF 18918 if ac_fn_c_try_compile "$LINENO" 18919 then : 18920 ac_pid_type='int' 18921 else $as_nop 18922 ac_pid_type='__int64' 18923 fi 18924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18925 18926 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 18927 18928 18929 fi 18930 18931 18932 18933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 18934 printf %s "checking for uid_t in sys/types.h... " >&6; } 18935 if test ${ac_cv_type_uid_t+y} 18936 then : 18937 printf %s "(cached) " >&6 18938 else $as_nop 18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18940 /* end confdefs.h. */ 18941 #include <sys/types.h> 18942 18943 _ACEOF 18944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18945 $EGREP "uid_t" >/dev/null 2>&1 18946 then : 18947 ac_cv_type_uid_t=yes 18948 else $as_nop 18949 ac_cv_type_uid_t=no 18950 fi 18951 rm -rf conftest* 18952 18953 fi 18954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 18955 printf "%s\n" "$ac_cv_type_uid_t" >&6; } 18956 if test $ac_cv_type_uid_t = no; then 18957 18958 printf "%s\n" "#define uid_t int" >>confdefs.h 18959 18960 18961 printf "%s\n" "#define gid_t int" >>confdefs.h 18962 18963 fi 18964 18965 18966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 18967 printf %s "checking return type of signal handlers... " >&6; } 18968 if test ${ac_cv_type_signal+y} 18969 then : 18970 printf %s "(cached) " >&6 18971 else $as_nop 18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18973 /* end confdefs.h. */ 18974 #include <sys/types.h> 18975 #include <signal.h> 18976 18977 int 18978 main (void) 18979 { 18980 return *(signal (0, 0)) (0) == 1; 18981 ; 18982 return 0; 18983 } 18984 _ACEOF 18985 if ac_fn_c_try_compile "$LINENO" 18986 then : 18987 ac_cv_type_signal=int 18988 else $as_nop 18989 ac_cv_type_signal=void 18990 fi 18991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18992 fi 18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 18994 printf "%s\n" "$ac_cv_type_signal" >&6; } 18995 18996 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h 18997 18998 18999 if test "$ac_cv_type_signal" = "void" ; then 19000 19001 printf "%s\n" "#define VOID_RETSIGTYPE 1" >>confdefs.h 19002 19003 fi 19004 19005 19006 19007 19008 19009 # Obsolete code to be removed. 19010 if test $ac_cv_header_sys_time_h = yes; then 19011 19012 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 19013 19014 fi 19015 # End of obsolete code. 19016 19017 19018 ac_fn_c_check_header_compile "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default" 19019 if test "x$ac_cv_header_standards_h" = xyes 19020 then : 19021 printf "%s\n" "#define HAVE_STANDARDS_H 1" >>confdefs.h 19022 19023 fi 19024 19025 for i in netinet/ip.h netinet/tcp.h; do 19026 19027 cv=`echo "$i" | sed 'y%./+-%__p_%'` 19028 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $i" >&5 19030 printf %s "checking for $i... " >&6; } 19031 if eval test \${ac_cv_header_$cv+y} 19032 then : 19033 printf %s "(cached) " >&6 19034 else $as_nop 19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19036 /* end confdefs.h. */ 19037 19038 #ifdef HAVE_STANDARDS_H 19039 #include <standards.h> 19040 #endif 19041 #include <$i> 19042 19043 _ACEOF 19044 if ac_fn_c_try_cpp "$LINENO" 19045 then : 19046 eval "ac_cv_header_$cv=yes" 19047 else $as_nop 19048 eval "ac_cv_header_$cv=no" 19049 fi 19050 rm -f conftest.err conftest.i conftest.$ac_ext 19051 fi 19052 eval ac_res=\$ac_cv_header_$cv 19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19054 printf "%s\n" "$ac_res" >&6; } 19055 ac_res=`eval echo \\$ac_cv_header_$cv` 19056 if test "$ac_res" = yes; then 19057 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19058 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19059 19060 fi 19061 done 19062 if false;then 19063 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "$ac_includes_default" 19064 if test "x$ac_cv_header_netinet_ip_h" = xyes 19065 then : 19066 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h 19067 19068 fi 19069 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 19070 if test "x$ac_cv_header_netinet_tcp_h" = xyes 19071 then : 19072 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 19073 19074 fi 19075 19076 fi 19077 19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 19079 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 19080 if test ${ac_cv_c_undeclared_builtin_options+y} 19081 then : 19082 printf %s "(cached) " >&6 19083 else $as_nop 19084 ac_save_CFLAGS=$CFLAGS 19085 ac_cv_c_undeclared_builtin_options='cannot detect' 19086 for ac_arg in '' -fno-builtin; do 19087 CFLAGS="$ac_save_CFLAGS $ac_arg" 19088 # This test program should *not* compile successfully. 19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19090 /* end confdefs.h. */ 19091 19092 int 19093 main (void) 19094 { 19095 (void) strchr; 19096 ; 19097 return 0; 19098 } 19099 _ACEOF 19100 if ac_fn_c_try_compile "$LINENO" 19101 then : 19102 19103 else $as_nop 19104 # This test program should compile successfully. 19105 # No library function is consistently available on 19106 # freestanding implementations, so test against a dummy 19107 # declaration. Include always-available headers on the 19108 # off chance that they somehow elicit warnings. 19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19110 /* end confdefs.h. */ 19111 #include <float.h> 19112 #include <limits.h> 19113 #include <stdarg.h> 19114 #include <stddef.h> 19115 extern void ac_decl (int, char *); 19116 19117 int 19118 main (void) 19119 { 19120 (void) ac_decl (0, (char *) 0); 19121 (void) ac_decl; 19122 19123 ; 19124 return 0; 19125 } 19126 _ACEOF 19127 if ac_fn_c_try_compile "$LINENO" 19128 then : 19129 if test x"$ac_arg" = x 19130 then : 19131 ac_cv_c_undeclared_builtin_options='none needed' 19132 else $as_nop 19133 ac_cv_c_undeclared_builtin_options=$ac_arg 19134 fi 19135 break 19136 fi 19137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19138 fi 19139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19140 done 19141 CFLAGS=$ac_save_CFLAGS 19142 19143 fi 19144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 19145 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 19146 case $ac_cv_c_undeclared_builtin_options in #( 19147 'cannot detect') : 19148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19149 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19150 as_fn_error $? "cannot make $CC report undeclared builtins 19151 See \`config.log' for more details" "$LINENO" 5; } ;; #( 19152 'none needed') : 19153 ac_c_undeclared_builtin_options='' ;; #( 19154 *) : 19155 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 19156 esac 19157 19158 19159 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" 19160 if test "x$ac_cv_func_getlogin" = xyes 19161 then : 19162 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h 19163 19164 fi 19165 ac_fn_c_check_func "$LINENO" "setlogin" "ac_cv_func_setlogin" 19166 if test "x$ac_cv_func_setlogin" = xyes 19167 then : 19168 printf "%s\n" "#define HAVE_SETLOGIN 1" >>confdefs.h 19169 19170 fi 19171 19172 if test "$ac_cv_func_getlogin" = yes; then 19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5 19174 printf %s "checking if getlogin is posix... " >&6; } 19175 if test ${ac_cv_func_getlogin_posix+y} 19176 then : 19177 printf %s "(cached) " >&6 19178 else $as_nop 19179 19180 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 19181 ac_cv_func_getlogin_posix=no 19182 else 19183 ac_cv_func_getlogin_posix=yes 19184 fi 19185 19186 fi 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5 19188 printf "%s\n" "$ac_cv_func_getlogin_posix" >&6; } 19189 if test "$ac_cv_func_getlogin_posix" = yes; then 19190 19191 printf "%s\n" "#define POSIX_GETLOGIN 1" >>confdefs.h 19192 19193 fi 19194 fi 19195 19196 19197 ac_func= 19198 for ac_item in $ac_func_c_list 19199 do 19200 if test $ac_func; then 19201 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 19202 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 19203 echo "#define $ac_item 1" >> confdefs.h 19204 fi 19205 ac_func= 19206 else 19207 ac_func=$ac_item 19208 fi 19209 done 19210 19211 19212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 19213 printf %s "checking for working mmap... " >&6; } 19214 if test ${ac_cv_func_mmap_fixed_mapped+y} 19215 then : 19216 printf %s "(cached) " >&6 19217 else $as_nop 19218 if test "$cross_compiling" = yes 19219 then : 19220 case "$host_os" in # (( 19221 # Guess yes on platforms where we know the result. 19222 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 19223 # If we don't know, assume the worst. 19224 *) ac_cv_func_mmap_fixed_mapped=no ;; 19225 esac 19226 else $as_nop 19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19228 /* end confdefs.h. */ 19229 $ac_includes_default 19230 /* malloc might have been renamed as rpl_malloc. */ 19231 #undef malloc 19232 19233 /* Thanks to Mike Haertel and Jim Avera for this test. 19234 Here is a matrix of mmap possibilities: 19235 mmap private not fixed 19236 mmap private fixed at somewhere currently unmapped 19237 mmap private fixed at somewhere already mapped 19238 mmap shared not fixed 19239 mmap shared fixed at somewhere currently unmapped 19240 mmap shared fixed at somewhere already mapped 19241 For private mappings, we should verify that changes cannot be read() 19242 back from the file, nor mmap's back from the file at a different 19243 address. (There have been systems where private was not correctly 19244 implemented like the infamous i386 svr4.0, and systems where the 19245 VM page cache was not coherent with the file system buffer cache 19246 like early versions of FreeBSD and possibly contemporary NetBSD.) 19247 For shared mappings, we should conversely verify that changes get 19248 propagated back to all the places they're supposed to be. 19249 19250 Grep wants private fixed already mapped. 19251 The main things grep needs to know about mmap are: 19252 * does it exist and is it safe to write into the mmap'd area 19253 * how to use it (BSD variants) */ 19254 19255 #include <fcntl.h> 19256 #include <sys/mman.h> 19257 19258 /* This mess was copied from the GNU getpagesize.h. */ 19259 #ifndef HAVE_GETPAGESIZE 19260 # ifdef _SC_PAGESIZE 19261 # define getpagesize() sysconf(_SC_PAGESIZE) 19262 # else /* no _SC_PAGESIZE */ 19263 # ifdef HAVE_SYS_PARAM_H 19264 # include <sys/param.h> 19265 # ifdef EXEC_PAGESIZE 19266 # define getpagesize() EXEC_PAGESIZE 19267 # else /* no EXEC_PAGESIZE */ 19268 # ifdef NBPG 19269 # define getpagesize() NBPG * CLSIZE 19270 # ifndef CLSIZE 19271 # define CLSIZE 1 19272 # endif /* no CLSIZE */ 19273 # else /* no NBPG */ 19274 # ifdef NBPC 19275 # define getpagesize() NBPC 19276 # else /* no NBPC */ 19277 # ifdef PAGESIZE 19278 # define getpagesize() PAGESIZE 19279 # endif /* PAGESIZE */ 19280 # endif /* no NBPC */ 19281 # endif /* no NBPG */ 19282 # endif /* no EXEC_PAGESIZE */ 19283 # else /* no HAVE_SYS_PARAM_H */ 19284 # define getpagesize() 8192 /* punt totally */ 19285 # endif /* no HAVE_SYS_PARAM_H */ 19286 # endif /* no _SC_PAGESIZE */ 19287 19288 #endif /* no HAVE_GETPAGESIZE */ 19289 19290 int 19291 main (void) 19292 { 19293 char *data, *data2, *data3; 19294 const char *cdata2; 19295 int i, pagesize; 19296 int fd, fd2; 19297 19298 pagesize = getpagesize (); 19299 19300 /* First, make a file with some known garbage in it. */ 19301 data = (char *) malloc (pagesize); 19302 if (!data) 19303 return 1; 19304 for (i = 0; i < pagesize; ++i) 19305 *(data + i) = rand (); 19306 umask (0); 19307 fd = creat ("conftest.mmap", 0600); 19308 if (fd < 0) 19309 return 2; 19310 if (write (fd, data, pagesize) != pagesize) 19311 return 3; 19312 close (fd); 19313 19314 /* Next, check that the tail of a page is zero-filled. File must have 19315 non-zero length, otherwise we risk SIGBUS for entire page. */ 19316 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 19317 if (fd2 < 0) 19318 return 4; 19319 cdata2 = ""; 19320 if (write (fd2, cdata2, 1) != 1) 19321 return 5; 19322 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 19323 if (data2 == MAP_FAILED) 19324 return 6; 19325 for (i = 0; i < pagesize; ++i) 19326 if (*(data2 + i)) 19327 return 7; 19328 close (fd2); 19329 if (munmap (data2, pagesize)) 19330 return 8; 19331 19332 /* Next, try to mmap the file at a fixed address which already has 19333 something else allocated at it. If we can, also make sure that 19334 we see the same garbage. */ 19335 fd = open ("conftest.mmap", O_RDWR); 19336 if (fd < 0) 19337 return 9; 19338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 19339 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 19340 return 10; 19341 for (i = 0; i < pagesize; ++i) 19342 if (*(data + i) != *(data2 + i)) 19343 return 11; 19344 19345 /* Finally, make sure that changes to the mapped area do not 19346 percolate back to the file as seen by read(). (This is a bug on 19347 some variants of i386 svr4.0.) */ 19348 for (i = 0; i < pagesize; ++i) 19349 *(data2 + i) = *(data2 + i) + 1; 19350 data3 = (char *) malloc (pagesize); 19351 if (!data3) 19352 return 12; 19353 if (read (fd, data3, pagesize) != pagesize) 19354 return 13; 19355 for (i = 0; i < pagesize; ++i) 19356 if (*(data + i) != *(data3 + i)) 19357 return 14; 19358 close (fd); 19359 free (data); 19360 free (data3); 19361 return 0; 19362 } 19363 _ACEOF 19364 if ac_fn_c_try_run "$LINENO" 19365 then : 19366 ac_cv_func_mmap_fixed_mapped=yes 19367 else $as_nop 19368 ac_cv_func_mmap_fixed_mapped=no 19369 fi 19370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19371 conftest.$ac_objext conftest.beam conftest.$ac_ext 19372 fi 19373 19374 fi 19375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 19376 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 19377 if test $ac_cv_func_mmap_fixed_mapped = yes; then 19378 19379 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 19380 19381 fi 19382 rm -f conftest.mmap conftest.txt 19383 19384 19385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5 19386 printf %s "checking if realloc if broken... " >&6; } 19387 if test ${ac_cv_func_realloc_broken+y} 19388 then : 19389 printf %s "(cached) " >&6 19390 else $as_nop 19391 19392 ac_cv_func_realloc_broken=no 19393 if test "$cross_compiling" = yes 19394 then : 19395 : 19396 else $as_nop 19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19398 /* end confdefs.h. */ 19399 19400 #include <stddef.h> 19401 #include <stdlib.h> 19402 19403 int main(int argc, char **argv) 19404 { 19405 return realloc(NULL, 17) == NULL; 19406 } 19407 19408 _ACEOF 19409 if ac_fn_c_try_run "$LINENO" 19410 then : 19411 : 19412 else $as_nop 19413 ac_cv_func_realloc_broken=yes 19414 fi 19415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19416 conftest.$ac_objext conftest.beam conftest.$ac_ext 19417 fi 19418 19419 19420 fi 19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5 19422 printf "%s\n" "$ac_cv_func_realloc_broken" >&6; } 19423 if test "$ac_cv_func_realloc_broken" = yes ; then 19424 19425 printf "%s\n" "#define BROKEN_REALLOC 1" >>confdefs.h 19426 19427 fi 19428 19429 19430 19431 19432 19433 DIR_roken=roken 19434 LIB_roken='$(top_builddir)/lib/roken/libroken.la' 19435 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 printf "%s\n" "#define rk_PATH_DELIM '/'" >>confdefs.h 19447 19448 19449 19450 19451 19452 19453 19454 19455 # Check whether --enable-developer was given. 19456 if test ${enable_developer+y} 19457 then : 19458 enableval=$enable_developer; 19459 fi 19460 19461 if test "X$enable_developer" = Xyes; then 19462 dwflags="-Werror" 19463 fi 19464 if test "X$enable_developer" = Xyes; then 19465 DEVELOPER_MODE_TRUE= 19466 DEVELOPER_MODE_FALSE='#' 19467 else 19468 DEVELOPER_MODE_TRUE='#' 19469 DEVELOPER_MODE_FALSE= 19470 fi 19471 19472 19473 WFLAGS_NOUNUSED="" 19474 if test -z "$WFLAGS" -a "$GCC" = "yes"; then 19475 # leave these out for now: 19476 # -Wcast-align doesn't work well on alpha osf/1 19477 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 19478 # -Wmissing-declarations -Wnested-externs 19479 # -Wstrict-overflow=5 19480 WFLAGS="-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow $dwflags" 19481 19482 # 19483 # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings 19484 # that fail for various bits of older code in appl/. Let's not use it 19485 # for the main libraries, though. 19486 WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow" 19487 # -Wno-unused-result (not supported on gcc-4.2) 19488 19489 fi 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 19501 printf %s "checking for ssize_t... " >&6; } 19502 if eval test \${ac_cv_type_$cv+y} 19503 then : 19504 printf %s "(cached) " >&6 19505 else $as_nop 19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19507 /* end confdefs.h. */ 19508 19509 #include <sys/types.h> 19510 #if STDC_HEADERS 19511 #include <stdlib.h> 19512 #include <stddef.h> 19513 #endif 19514 #include <unistd.h> 19515 int 19516 main (void) 19517 { 19518 ssize_t foo; 19519 ; 19520 return 0; 19521 } 19522 _ACEOF 19523 if ac_fn_c_try_compile "$LINENO" 19524 then : 19525 eval "ac_cv_type_$cv=yes" 19526 else $as_nop 19527 eval "ac_cv_type_$cv=no" 19528 fi 19529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19530 fi 19531 ac_foo=`eval echo \\$ac_cv_type_$cv` 19532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19533 printf "%s\n" "$ac_foo" >&6; } 19534 if test "$ac_foo" = yes; then 19535 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19536 if false; then 19537 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 19538 if test "x$ac_cv_type_ssize_t" = xyes 19539 then : 19540 19541 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h 19542 19543 19544 fi 19545 19546 fi 19547 19548 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19549 19550 fi 19551 19552 19553 19554 19555 19556 cv=`echo "long long" | sed 'y%./+- %__p__%'` 19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 19558 printf %s "checking for long long... " >&6; } 19559 if eval test \${ac_cv_type_$cv+y} 19560 then : 19561 printf %s "(cached) " >&6 19562 else $as_nop 19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19564 /* end confdefs.h. */ 19565 19566 #include <sys/types.h> 19567 #if STDC_HEADERS 19568 #include <stdlib.h> 19569 #include <stddef.h> 19570 #endif 19571 19572 int 19573 main (void) 19574 { 19575 long long foo; 19576 ; 19577 return 0; 19578 } 19579 _ACEOF 19580 if ac_fn_c_try_compile "$LINENO" 19581 then : 19582 eval "ac_cv_type_$cv=yes" 19583 else $as_nop 19584 eval "ac_cv_type_$cv=no" 19585 fi 19586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19587 fi 19588 ac_foo=`eval echo \\$ac_cv_type_$cv` 19589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19590 printf "%s\n" "$ac_foo" >&6; } 19591 if test "$ac_foo" = yes; then 19592 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19593 if false; then 19594 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 19595 if test "x$ac_cv_type_long_long" = xyes 19596 then : 19597 19598 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 19599 19600 19601 fi 19602 19603 fi 19604 19605 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19606 19607 fi 19608 19609 19610 19611 19612 19613 19614 19615 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 19616 if test "x$ac_cv_header_arpa_inet_h" = xyes 19617 then : 19618 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 19619 19620 fi 19621 ac_fn_c_check_header_compile "$LINENO" "config.h" "ac_cv_header_config_h" "$ac_includes_default" 19622 if test "x$ac_cv_header_config_h" = xyes 19623 then : 19624 printf "%s\n" "#define HAVE_CONFIG_H 1" >>confdefs.h 19625 19626 fi 19627 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 19628 if test "x$ac_cv_header_crypt_h" = xyes 19629 then : 19630 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h 19631 19632 fi 19633 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 19634 if test "x$ac_cv_header_dirent_h" = xyes 19635 then : 19636 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h 19637 19638 fi 19639 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 19640 if test "x$ac_cv_header_errno_h" = xyes 19641 then : 19642 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 19643 19644 fi 19645 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 19646 if test "x$ac_cv_header_err_h" = xyes 19647 then : 19648 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 19649 19650 fi 19651 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 19652 if test "x$ac_cv_header_fcntl_h" = xyes 19653 then : 19654 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 19655 19656 fi 19657 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 19658 if test "x$ac_cv_header_fnmatch_h" = xyes 19659 then : 19660 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 19661 19662 fi 19663 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 19664 if test "x$ac_cv_header_grp_h" = xyes 19665 then : 19666 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 19667 19668 fi 19669 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 19670 if test "x$ac_cv_header_ifaddrs_h" = xyes 19671 then : 19672 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 19673 19674 fi 19675 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 19676 if test "x$ac_cv_header_netinet_in_h" = xyes 19677 then : 19678 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 19679 19680 fi 19681 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default" 19682 if test "x$ac_cv_header_netinet_in6_h" = xyes 19683 then : 19684 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h 19685 19686 fi 19687 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" 19688 if test "x$ac_cv_header_netinet_in_systm_h" = xyes 19689 then : 19690 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h 19691 19692 fi 19693 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6.h" "ac_cv_header_netinet6_in6_h" "$ac_includes_default" 19694 if test "x$ac_cv_header_netinet6_in6_h" = xyes 19695 then : 19696 printf "%s\n" "#define HAVE_NETINET6_IN6_H 1" >>confdefs.h 19697 19698 fi 19699 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" 19700 if test "x$ac_cv_header_paths_h" = xyes 19701 then : 19702 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h 19703 19704 fi 19705 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 19706 if test "x$ac_cv_header_poll_h" = xyes 19707 then : 19708 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 19709 19710 fi 19711 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 19712 if test "x$ac_cv_header_pwd_h" = xyes 19713 then : 19714 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 19715 19716 fi 19717 ac_fn_c_check_header_compile "$LINENO" "rpcsvc/ypclnt.h" "ac_cv_header_rpcsvc_ypclnt_h" "$ac_includes_default" 19718 if test "x$ac_cv_header_rpcsvc_ypclnt_h" = xyes 19719 then : 19720 printf "%s\n" "#define HAVE_RPCSVC_YPCLNT_H 1" >>confdefs.h 19721 19722 fi 19723 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 19724 if test "x$ac_cv_header_search_h" = xyes 19725 then : 19726 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h 19727 19728 fi 19729 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 19730 if test "x$ac_cv_header_shadow_h" = xyes 19731 then : 19732 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h 19733 19734 fi 19735 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 19736 if test "x$ac_cv_header_stdint_h" = xyes 19737 then : 19738 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 19739 19740 fi 19741 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default" 19742 if test "x$ac_cv_header_sys_auxv_h" = xyes 19743 then : 19744 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h 19745 19746 fi 19747 ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default" 19748 if test "x$ac_cv_header_sys_bswap_h" = xyes 19749 then : 19750 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h 19751 19752 fi 19753 ac_fn_c_check_header_compile "$LINENO" "sys/errno.h" "ac_cv_header_sys_errno_h" "$ac_includes_default" 19754 if test "x$ac_cv_header_sys_errno_h" = xyes 19755 then : 19756 printf "%s\n" "#define HAVE_SYS_ERRNO_H 1" >>confdefs.h 19757 19758 fi 19759 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 19760 if test "x$ac_cv_header_sys_ioctl_h" = xyes 19761 then : 19762 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 19763 19764 fi 19765 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 19766 if test "x$ac_cv_header_sys_mman_h" = xyes 19767 then : 19768 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 19769 19770 fi 19771 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 19772 if test "x$ac_cv_header_sys_param_h" = xyes 19773 then : 19774 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 19775 19776 fi 19777 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 19778 if test "x$ac_cv_header_sys_resource_h" = xyes 19779 then : 19780 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 19781 19782 fi 19783 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 19784 if test "x$ac_cv_header_sys_sockio_h" = xyes 19785 then : 19786 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 19787 19788 fi 19789 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 19790 if test "x$ac_cv_header_sys_stat_h" = xyes 19791 then : 19792 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 19793 19794 fi 19795 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 19796 if test "x$ac_cv_header_sys_time_h" = xyes 19797 then : 19798 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 19799 19800 fi 19801 ac_fn_c_check_header_compile "$LINENO" "sys/tty.h" "ac_cv_header_sys_tty_h" "$ac_includes_default" 19802 if test "x$ac_cv_header_sys_tty_h" = xyes 19803 then : 19804 printf "%s\n" "#define HAVE_SYS_TTY_H 1" >>confdefs.h 19805 19806 fi 19807 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 19808 if test "x$ac_cv_header_sys_types_h" = xyes 19809 then : 19810 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 19811 19812 fi 19813 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 19814 if test "x$ac_cv_header_sys_uio_h" = xyes 19815 then : 19816 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 19817 19818 fi 19819 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 19820 if test "x$ac_cv_header_sys_utsname_h" = xyes 19821 then : 19822 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 19823 19824 fi 19825 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 19826 if test "x$ac_cv_header_sys_wait_h" = xyes 19827 then : 19828 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 19829 19830 fi 19831 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 19832 if test "x$ac_cv_header_syslog_h" = xyes 19833 then : 19834 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 19835 19836 fi 19837 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 19838 if test "x$ac_cv_header_termios_h" = xyes 19839 then : 19840 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 19841 19842 fi 19843 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 19844 if test "x$ac_cv_header_winsock2_h" = xyes 19845 then : 19846 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 19847 19848 fi 19849 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 19850 if test "x$ac_cv_header_ws2tcpip_h" = xyes 19851 then : 19852 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 19853 19854 fi 19855 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 19856 if test "x$ac_cv_header_unistd_h" = xyes 19857 then : 19858 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 19859 19860 fi 19861 ac_fn_c_check_header_compile "$LINENO" "userconf.h" "ac_cv_header_userconf_h" "$ac_includes_default" 19862 if test "x$ac_cv_header_userconf_h" = xyes 19863 then : 19864 printf "%s\n" "#define HAVE_USERCONF_H 1" >>confdefs.h 19865 19866 fi 19867 ac_fn_c_check_header_compile "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default" 19868 if test "x$ac_cv_header_usersec_h" = xyes 19869 then : 19870 printf "%s\n" "#define HAVE_USERSEC_H 1" >>confdefs.h 19871 19872 fi 19873 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" 19874 if test "x$ac_cv_header_util_h" = xyes 19875 then : 19876 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h 19877 19878 fi 19879 19880 19881 19882 19883 cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'` 19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 19885 printf %s "checking for uintptr_t... " >&6; } 19886 if eval test \${ac_cv_type_$cv+y} 19887 then : 19888 printf %s "(cached) " >&6 19889 else $as_nop 19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19891 /* end confdefs.h. */ 19892 19893 #include <sys/types.h> 19894 #if STDC_HEADERS 19895 #include <stdlib.h> 19896 #include <stddef.h> 19897 #endif 19898 #ifdef HAVE_STDINT_H 19899 #include <stdint.h> 19900 #endif 19901 int 19902 main (void) 19903 { 19904 uintptr_t foo; 19905 ; 19906 return 0; 19907 } 19908 _ACEOF 19909 if ac_fn_c_try_compile "$LINENO" 19910 then : 19911 eval "ac_cv_type_$cv=yes" 19912 else $as_nop 19913 eval "ac_cv_type_$cv=no" 19914 fi 19915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19916 fi 19917 ac_foo=`eval echo \\$ac_cv_type_$cv` 19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 19919 printf "%s\n" "$ac_foo" >&6; } 19920 if test "$ac_foo" = yes; then 19921 ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19922 if false; then 19923 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19924 if test "x$ac_cv_type_uintptr_t" = xyes 19925 then : 19926 19927 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 19928 19929 19930 fi 19931 19932 fi 19933 19934 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 19935 19936 fi 19937 19938 19939 ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" " 19940 #include <vis.h> 19941 #ifndef VIS_SP 19942 #error invis 19943 #endif 19944 " 19945 if test "x$ac_cv_header_vis_h" = xyes 19946 then : 19947 printf "%s\n" "#define HAVE_VIS_H 1" >>confdefs.h 19948 19949 fi 19950 19951 19952 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 19953 #ifdef HAVE_SYS_TYPES_H 19954 #include <sys/types.h> 19955 #endif 19956 19957 " 19958 if test "x$ac_cv_header_netdb_h" = xyes 19959 then : 19960 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 19961 19962 fi 19963 19964 19965 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 19966 #ifdef HAVE_SYS_TYPES_H 19967 #include <sys/types.h> 19968 #endif 19969 19970 " 19971 if test "x$ac_cv_header_sys_socket_h" = xyes 19972 then : 19973 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 19974 19975 fi 19976 19977 19978 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 19979 #ifdef HAVE_SYS_TYPES_H 19980 #include <sys/types.h> 19981 #endif 19982 #if HAVE_SYS_SOCKET_H 19983 #include <sys/socket.h> 19984 #endif 19985 " 19986 if test "x$ac_cv_header_net_if_h" = xyes 19987 then : 19988 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 19989 19990 fi 19991 19992 19993 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default 19994 #ifdef HAVE_SYS_TYPES_H 19995 #include <sys/types.h> 19996 #endif 19997 #if HAVE_SYS_SOCKET_H 19998 #include <sys/socket.h> 19999 #endif 20000 #ifdef HAVE_NETINET6_IN6_H 20001 #include <netinet6/in6.h> 20002 #endif 20003 20004 " 20005 if test "x$ac_cv_header_netinet6_in6_var_h" = xyes 20006 then : 20007 printf "%s\n" "#define HAVE_NETINET6_IN6_VAR_H 1" >>confdefs.h 20008 20009 fi 20010 20011 20012 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 20013 #ifdef HAVE_SYS_PARAM_H 20014 #include <sys/param.h> 20015 #endif 20016 20017 " 20018 if test "x$ac_cv_header_sys_sysctl_h" = xyes 20019 then : 20020 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 20021 20022 fi 20023 20024 20025 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default 20026 #ifdef HAVE_SYS_PARAM_H 20027 #include <sys/param.h> 20028 #endif 20029 20030 " 20031 if test "x$ac_cv_header_sys_proc_h" = xyes 20032 then : 20033 printf "%s\n" "#define HAVE_SYS_PROC_H 1" >>confdefs.h 20034 20035 fi 20036 20037 20038 20039 20040 if test "$ac_cv_header_err_h" = yes; then 20041 have_err_h_TRUE= 20042 have_err_h_FALSE='#' 20043 else 20044 have_err_h_TRUE='#' 20045 have_err_h_FALSE= 20046 fi 20047 20048 if test "$ac_cv_header_ifaddrs_h" = yes; then 20049 have_ifaddrs_h_TRUE= 20050 have_ifaddrs_h_FALSE='#' 20051 else 20052 have_ifaddrs_h_TRUE='#' 20053 have_ifaddrs_h_FALSE= 20054 fi 20055 20056 if test "$ac_cv_header_search_h" = yes; then 20057 have_search_h_TRUE= 20058 have_search_h_FALSE='#' 20059 else 20060 have_search_h_TRUE='#' 20061 have_search_h_FALSE= 20062 fi 20063 20064 if test "$ac_cv_header_vis_h" = yes; then 20065 have_vis_h_TRUE= 20066 have_vis_h_FALSE='#' 20067 else 20068 have_vis_h_TRUE='#' 20069 have_vis_h_FALSE= 20070 fi 20071 20072 20073 20074 20075 20076 20077 20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5 20079 printf %s "checking for socket... " >&6; } 20080 if test ${ac_cv_funclib_socket+y} 20081 then : 20082 printf %s "(cached) " >&6 20083 else $as_nop 20084 20085 if eval "test \"\$ac_cv_func_socket\" != yes" ; then 20086 ac_save_LIBS="$LIBS" 20087 for ac_lib in "" socket; do 20088 case "$ac_lib" in 20089 "") ;; 20090 yes) ac_lib="" ;; 20091 no) continue ;; 20092 -l*) ;; 20093 *) ac_lib="-l$ac_lib" ;; 20094 esac 20095 LIBS=" $ac_lib $ac_save_LIBS" 20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20097 /* end confdefs.h. */ 20098 20099 int 20100 main (void) 20101 { 20102 socket() 20103 ; 20104 return 0; 20105 } 20106 _ACEOF 20107 if ac_fn_c_try_link "$LINENO" 20108 then : 20109 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 20110 fi 20111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20112 conftest$ac_exeext conftest.$ac_ext 20113 done 20114 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 20115 LIBS="$ac_save_LIBS" 20116 fi 20117 20118 fi 20119 20120 20121 eval "ac_res=\$ac_cv_funclib_socket" 20122 20123 if false; then 20124 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 20125 if test "x$ac_cv_func_socket" = xyes 20126 then : 20127 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 20128 20129 fi 20130 20131 fi 20132 # socket 20133 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20134 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20135 eval "LIB_socket=$ac_res" 20136 20137 case "$ac_res" in 20138 yes) 20139 eval "ac_cv_func_socket=yes" 20140 eval "LIB_socket=" 20141 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20142 20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20144 printf "%s\n" "yes" >&6; } 20145 ;; 20146 no) 20147 eval "ac_cv_func_socket=no" 20148 eval "LIB_socket=" 20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20150 printf "%s\n" "no" >&6; } 20151 ;; 20152 *) 20153 eval "ac_cv_func_socket=yes" 20154 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20155 20156 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20157 20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20159 printf "%s\n" "yes, in $ac_res" >&6; } 20160 ;; 20161 esac 20162 20163 20164 if test -n "$LIB_socket"; then 20165 LIBS="$LIB_socket $LIBS" 20166 fi 20167 20168 20169 20170 20171 20172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5 20173 printf %s "checking for gethostbyname... " >&6; } 20174 if test ${ac_cv_funclib_gethostbyname+y} 20175 then : 20176 printf %s "(cached) " >&6 20177 else $as_nop 20178 20179 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 20180 ac_save_LIBS="$LIBS" 20181 for ac_lib in "" nsl; do 20182 case "$ac_lib" in 20183 "") ;; 20184 yes) ac_lib="" ;; 20185 no) continue ;; 20186 -l*) ;; 20187 *) ac_lib="-l$ac_lib" ;; 20188 esac 20189 LIBS=" $ac_lib $ac_save_LIBS" 20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20191 /* end confdefs.h. */ 20192 20193 int 20194 main (void) 20195 { 20196 gethostbyname() 20197 ; 20198 return 0; 20199 } 20200 _ACEOF 20201 if ac_fn_c_try_link "$LINENO" 20202 then : 20203 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 20204 fi 20205 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20206 conftest$ac_exeext conftest.$ac_ext 20207 done 20208 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 20209 LIBS="$ac_save_LIBS" 20210 fi 20211 20212 fi 20213 20214 20215 eval "ac_res=\$ac_cv_funclib_gethostbyname" 20216 20217 if false; then 20218 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 20219 if test "x$ac_cv_func_gethostbyname" = xyes 20220 then : 20221 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 20222 20223 fi 20224 20225 fi 20226 # gethostbyname 20227 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20228 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20229 eval "LIB_gethostbyname=$ac_res" 20230 20231 case "$ac_res" in 20232 yes) 20233 eval "ac_cv_func_gethostbyname=yes" 20234 eval "LIB_gethostbyname=" 20235 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20236 20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20238 printf "%s\n" "yes" >&6; } 20239 ;; 20240 no) 20241 eval "ac_cv_func_gethostbyname=no" 20242 eval "LIB_gethostbyname=" 20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20244 printf "%s\n" "no" >&6; } 20245 ;; 20246 *) 20247 eval "ac_cv_func_gethostbyname=yes" 20248 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20249 20250 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20251 20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20253 printf "%s\n" "yes, in $ac_res" >&6; } 20254 ;; 20255 esac 20256 20257 20258 if test -n "$LIB_gethostbyname"; then 20259 LIBS="$LIB_gethostbyname $LIBS" 20260 fi 20261 20262 20263 20264 20265 20266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5 20267 printf %s "checking for syslog... " >&6; } 20268 if test ${ac_cv_funclib_syslog+y} 20269 then : 20270 printf %s "(cached) " >&6 20271 else $as_nop 20272 20273 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 20274 ac_save_LIBS="$LIBS" 20275 for ac_lib in "" syslog; do 20276 case "$ac_lib" in 20277 "") ;; 20278 yes) ac_lib="" ;; 20279 no) continue ;; 20280 -l*) ;; 20281 *) ac_lib="-l$ac_lib" ;; 20282 esac 20283 LIBS=" $ac_lib $ac_save_LIBS" 20284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20285 /* end confdefs.h. */ 20286 20287 int 20288 main (void) 20289 { 20290 syslog() 20291 ; 20292 return 0; 20293 } 20294 _ACEOF 20295 if ac_fn_c_try_link "$LINENO" 20296 then : 20297 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 20298 fi 20299 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20300 conftest$ac_exeext conftest.$ac_ext 20301 done 20302 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 20303 LIBS="$ac_save_LIBS" 20304 fi 20305 20306 fi 20307 20308 20309 eval "ac_res=\$ac_cv_funclib_syslog" 20310 20311 if false; then 20312 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 20313 if test "x$ac_cv_func_syslog" = xyes 20314 then : 20315 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h 20316 20317 fi 20318 20319 fi 20320 # syslog 20321 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20322 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20323 eval "LIB_syslog=$ac_res" 20324 20325 case "$ac_res" in 20326 yes) 20327 eval "ac_cv_func_syslog=yes" 20328 eval "LIB_syslog=" 20329 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20330 20331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20332 printf "%s\n" "yes" >&6; } 20333 ;; 20334 no) 20335 eval "ac_cv_func_syslog=no" 20336 eval "LIB_syslog=" 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20338 printf "%s\n" "no" >&6; } 20339 ;; 20340 *) 20341 eval "ac_cv_func_syslog=yes" 20342 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20343 20344 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20345 20346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20347 printf "%s\n" "yes, in $ac_res" >&6; } 20348 ;; 20349 esac 20350 20351 20352 if test -n "$LIB_syslog"; then 20353 LIBS="$LIB_syslog $LIBS" 20354 fi 20355 20356 20357 20358 20359 # Check whether --with-ipv6 was given. 20360 if test ${with_ipv6+y} 20361 then : 20362 withval=$with_ipv6; 20363 ac_cv_lib_ipv6="$withval" 20364 20365 fi 20366 20367 save_CFLAGS="${CFLAGS}" 20368 20369 if test "X$ac_cv_lib_ipv6" != "Xno"; then 20370 20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5 20372 printf %s "checking for IPv6 stack type... " >&6; } 20373 if test ${rk_cv_v6type+y} 20374 then : 20375 printf %s "(cached) " >&6 20376 else $as_nop 20377 v6type=unknown 20378 v6lib=none 20379 20380 for i in v6d toshiba kame inria zeta linux; do 20381 case $i in 20382 v6d) 20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20384 /* end confdefs.h. */ 20385 20386 #include </usr/local/v6/include/sys/types.h> 20387 #ifdef __V6D__ 20388 yes 20389 #endif 20390 _ACEOF 20391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20392 $EGREP "yes" >/dev/null 2>&1 20393 then : 20394 v6type=$i; v6lib=v6; 20395 v6libdir=/usr/local/v6/lib; 20396 CFLAGS="-I/usr/local/v6/include $CFLAGS" 20397 fi 20398 rm -rf conftest* 20399 20400 ;; 20401 toshiba) 20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20403 /* end confdefs.h. */ 20404 20405 #include <sys/param.h> 20406 #ifdef _TOSHIBA_INET6 20407 yes 20408 #endif 20409 _ACEOF 20410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20411 $EGREP "yes" >/dev/null 2>&1 20412 then : 20413 v6type=$i; v6lib=inet6; 20414 v6libdir=/usr/local/v6/lib; 20415 CFLAGS="-DINET6 $CFLAGS" 20416 fi 20417 rm -rf conftest* 20418 20419 ;; 20420 kame) 20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20422 /* end confdefs.h. */ 20423 20424 #include <netinet/in.h> 20425 #ifdef __KAME__ 20426 yes 20427 #endif 20428 _ACEOF 20429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20430 $EGREP "yes" >/dev/null 2>&1 20431 then : 20432 v6type=$i; v6lib=inet6; 20433 v6libdir=/usr/local/v6/lib; 20434 CFLAGS="-DINET6 $CFLAGS" 20435 fi 20436 rm -rf conftest* 20437 20438 ;; 20439 inria) 20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20441 /* end confdefs.h. */ 20442 20443 #include <netinet/in.h> 20444 #ifdef IPV6_INRIA_VERSION 20445 yes 20446 #endif 20447 _ACEOF 20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20449 $EGREP "yes" >/dev/null 2>&1 20450 then : 20451 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 20452 fi 20453 rm -rf conftest* 20454 20455 ;; 20456 zeta) 20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20458 /* end confdefs.h. */ 20459 20460 #include <sys/param.h> 20461 #ifdef _ZETA_MINAMI_INET6 20462 yes 20463 #endif 20464 _ACEOF 20465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20466 $EGREP "yes" >/dev/null 2>&1 20467 then : 20468 v6type=$i; v6lib=inet6; 20469 v6libdir=/usr/local/v6/lib; 20470 CFLAGS="-DINET6 $CFLAGS" 20471 fi 20472 rm -rf conftest* 20473 20474 ;; 20475 linux) 20476 if test -d /usr/inet6; then 20477 v6type=$i 20478 v6lib=inet6 20479 v6libdir=/usr/inet6 20480 CFLAGS="-DINET6 $CFLAGS" 20481 fi 20482 ;; 20483 esac 20484 if test "$v6type" != "unknown"; then 20485 break 20486 fi 20487 done 20488 20489 if test "$v6lib" != "none"; then 20490 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 20491 if test -d $dir -a -f $dir/lib$v6lib.a; then 20492 LIBS="-L$dir -l$v6lib $LIBS" 20493 break 20494 fi 20495 done 20496 fi 20497 fi 20498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5 20499 printf "%s\n" "$rk_cv_v6type" >&6; } 20500 20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 20502 printf %s "checking for IPv6... " >&6; } 20503 if test ${rk_cv_lib_ipv6+y} 20504 then : 20505 printf %s "(cached) " >&6 20506 else $as_nop 20507 20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20509 /* end confdefs.h. */ 20510 20511 #ifdef HAVE_SYS_TYPES_H 20512 #include <sys/types.h> 20513 #endif 20514 #ifdef HAVE_SYS_SOCKET_H 20515 #include <sys/socket.h> 20516 #endif 20517 #ifdef HAVE_NETINET_IN_H 20518 #include <netinet/in.h> 20519 #endif 20520 #ifdef HAVE_NETINET_IN6_H 20521 #include <netinet/in6.h> 20522 #endif 20523 20524 int 20525 main (void) 20526 { 20527 20528 struct sockaddr_in6 sin6; 20529 int s; 20530 20531 s = socket(AF_INET6, SOCK_DGRAM, 0); 20532 20533 sin6.sin6_family = AF_INET6; 20534 sin6.sin6_port = htons(17); 20535 sin6.sin6_addr = in6addr_any; 20536 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 20537 20538 ; 20539 return 0; 20540 } 20541 _ACEOF 20542 if ac_fn_c_try_link "$LINENO" 20543 then : 20544 ac_cv_lib_ipv6=yes 20545 else $as_nop 20546 ac_cv_lib_ipv6=no 20547 fi 20548 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20549 conftest$ac_exeext conftest.$ac_ext 20550 fi 20551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5 20552 printf "%s\n" "$rk_cv_lib_ipv6" >&6; } 20553 fi 20554 20555 if test "$ac_cv_lib_ipv6" = yes; then 20556 20557 printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h 20558 20559 else 20560 CFLAGS="${save_CFLAGS}" 20561 fi 20562 20563 ## test for AIX missing in6addr_loopback 20564 if test "$ac_cv_lib_ipv6" = yes; then 20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 20566 printf %s "checking for in6addr_loopback... " >&6; } 20567 if test ${rk_cv_var_in6addr_loopback+y} 20568 then : 20569 printf %s "(cached) " >&6 20570 else $as_nop 20571 20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20573 /* end confdefs.h. */ 20574 20575 #ifdef HAVE_SYS_TYPES_H 20576 #include <sys/types.h> 20577 #endif 20578 #ifdef HAVE_SYS_SOCKET_H 20579 #include <sys/socket.h> 20580 #endif 20581 #ifdef HAVE_NETINET_IN_H 20582 #include <netinet/in.h> 20583 #endif 20584 #ifdef HAVE_NETINET_IN6_H 20585 #include <netinet/in6.h> 20586 #endif 20587 int 20588 main (void) 20589 { 20590 20591 struct sockaddr_in6 sin6; 20592 sin6.sin6_addr = in6addr_loopback; 20593 20594 ; 20595 return 0; 20596 } 20597 _ACEOF 20598 if ac_fn_c_try_link "$LINENO" 20599 then : 20600 ac_cv_var_in6addr_loopback=yes 20601 else $as_nop 20602 ac_cv_var_in6addr_loopback=no 20603 fi 20604 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20605 conftest$ac_exeext conftest.$ac_ext 20606 fi 20607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5 20608 printf "%s\n" "$rk_cv_var_in6addr_loopback" >&6; } 20609 if test "$ac_cv_var_in6addr_loopback" = yes; then 20610 20611 printf "%s\n" "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h 20612 20613 fi 20614 fi 20615 20616 20617 20618 20619 20620 20621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5 20622 printf %s "checking for gethostbyname2... " >&6; } 20623 if test ${ac_cv_funclib_gethostbyname2+y} 20624 then : 20625 printf %s "(cached) " >&6 20626 else $as_nop 20627 20628 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 20629 ac_save_LIBS="$LIBS" 20630 for ac_lib in "" inet6 ip6; do 20631 case "$ac_lib" in 20632 "") ;; 20633 yes) ac_lib="" ;; 20634 no) continue ;; 20635 -l*) ;; 20636 *) ac_lib="-l$ac_lib" ;; 20637 esac 20638 LIBS=" $ac_lib $ac_save_LIBS" 20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20640 /* end confdefs.h. */ 20641 20642 int 20643 main (void) 20644 { 20645 gethostbyname2() 20646 ; 20647 return 0; 20648 } 20649 _ACEOF 20650 if ac_fn_c_try_link "$LINENO" 20651 then : 20652 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 20653 fi 20654 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20655 conftest$ac_exeext conftest.$ac_ext 20656 done 20657 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 20658 LIBS="$ac_save_LIBS" 20659 fi 20660 20661 fi 20662 20663 20664 eval "ac_res=\$ac_cv_funclib_gethostbyname2" 20665 20666 if false; then 20667 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2" 20668 if test "x$ac_cv_func_gethostbyname2" = xyes 20669 then : 20670 printf "%s\n" "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h 20671 20672 fi 20673 20674 fi 20675 # gethostbyname2 20676 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20677 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20678 eval "LIB_gethostbyname2=$ac_res" 20679 20680 case "$ac_res" in 20681 yes) 20682 eval "ac_cv_func_gethostbyname2=yes" 20683 eval "LIB_gethostbyname2=" 20684 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20685 20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20687 printf "%s\n" "yes" >&6; } 20688 ;; 20689 no) 20690 eval "ac_cv_func_gethostbyname2=no" 20691 eval "LIB_gethostbyname2=" 20692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20693 printf "%s\n" "no" >&6; } 20694 ;; 20695 *) 20696 eval "ac_cv_func_gethostbyname2=yes" 20697 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20698 20699 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20700 20701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20702 printf "%s\n" "yes, in $ac_res" >&6; } 20703 ;; 20704 esac 20705 20706 20707 if test -n "$LIB_gethostbyname2"; then 20708 LIBS="$LIB_gethostbyname2 $LIBS" 20709 fi 20710 20711 20712 20713 20714 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" 20715 if test "x$ac_cv_header_arpa_nameser_h" = xyes 20716 then : 20717 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h 20718 20719 fi 20720 ac_fn_c_check_header_compile "$LINENO" "dns.h" "ac_cv_header_dns_h" "$ac_includes_default" 20721 if test "x$ac_cv_header_dns_h" = xyes 20722 then : 20723 printf "%s\n" "#define HAVE_DNS_H 1" >>confdefs.h 20724 20725 fi 20726 20727 20728 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default 20729 #ifdef HAVE_SYS_TYPES_H 20730 #include <sys/types.h> 20731 #endif 20732 #ifdef HAVE_NETINET_IN_H 20733 #include <netinet/in.h> 20734 #endif 20735 #ifdef HAVE_ARPA_NAMESER_H 20736 #include <arpa/nameser.h> 20737 #endif 20738 20739 " 20740 if test "x$ac_cv_header_resolv_h" = xyes 20741 then : 20742 printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h 20743 20744 fi 20745 20746 20747 20748 20749 20750 20751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5 20752 printf %s "checking for res_search... " >&6; } 20753 if test ${ac_cv_funclib_res_search+y} 20754 then : 20755 printf %s "(cached) " >&6 20756 else $as_nop 20757 20758 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 20759 ac_save_LIBS="$LIBS" 20760 for ac_lib in "" resolv; do 20761 case "$ac_lib" in 20762 "") ;; 20763 yes) ac_lib="" ;; 20764 no) continue ;; 20765 -l*) ;; 20766 *) ac_lib="-l$ac_lib" ;; 20767 esac 20768 LIBS=" $ac_lib $ac_save_LIBS" 20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20770 /* end confdefs.h. */ 20771 20772 #include <stdio.h> 20773 #ifdef HAVE_SYS_TYPES_H 20774 #include <sys/types.h> 20775 #endif 20776 #ifdef HAVE_NETINET_IN_H 20777 #include <netinet/in.h> 20778 #endif 20779 #ifdef HAVE_ARPA_NAMESER_H 20780 #include <arpa/nameser.h> 20781 #endif 20782 #ifdef HAVE_RESOLV_H 20783 #include <resolv.h> 20784 #endif 20785 20786 int 20787 main (void) 20788 { 20789 res_search(0,0,0,0,0) 20790 ; 20791 return 0; 20792 } 20793 _ACEOF 20794 if ac_fn_c_try_link "$LINENO" 20795 then : 20796 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 20797 fi 20798 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20799 conftest$ac_exeext conftest.$ac_ext 20800 done 20801 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 20802 LIBS="$ac_save_LIBS" 20803 fi 20804 20805 fi 20806 20807 20808 eval "ac_res=\$ac_cv_funclib_res_search" 20809 20810 if false; then 20811 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 20812 if test "x$ac_cv_func_res_search" = xyes 20813 then : 20814 printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h 20815 20816 fi 20817 20818 fi 20819 # res_search 20820 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20821 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20822 eval "LIB_res_search=$ac_res" 20823 20824 case "$ac_res" in 20825 yes) 20826 eval "ac_cv_func_res_search=yes" 20827 eval "LIB_res_search=" 20828 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20829 20830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20831 printf "%s\n" "yes" >&6; } 20832 ;; 20833 no) 20834 eval "ac_cv_func_res_search=no" 20835 eval "LIB_res_search=" 20836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20837 printf "%s\n" "no" >&6; } 20838 ;; 20839 *) 20840 eval "ac_cv_func_res_search=yes" 20841 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20842 20843 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20844 20845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20846 printf "%s\n" "yes, in $ac_res" >&6; } 20847 ;; 20848 esac 20849 20850 20851 if test -n "$LIB_res_search"; then 20852 LIBS="$LIB_res_search $LIBS" 20853 fi 20854 20855 20856 20857 20858 20859 20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5 20861 printf %s "checking for res_nsearch... " >&6; } 20862 if test ${ac_cv_funclib_res_nsearch+y} 20863 then : 20864 printf %s "(cached) " >&6 20865 else $as_nop 20866 20867 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 20868 ac_save_LIBS="$LIBS" 20869 for ac_lib in "" resolv; do 20870 case "$ac_lib" in 20871 "") ;; 20872 yes) ac_lib="" ;; 20873 no) continue ;; 20874 -l*) ;; 20875 *) ac_lib="-l$ac_lib" ;; 20876 esac 20877 LIBS=" $ac_lib $ac_save_LIBS" 20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20879 /* end confdefs.h. */ 20880 20881 #include <stdio.h> 20882 #ifdef HAVE_SYS_TYPES_H 20883 #include <sys/types.h> 20884 #endif 20885 #ifdef HAVE_NETINET_IN_H 20886 #include <netinet/in.h> 20887 #endif 20888 #ifdef HAVE_ARPA_NAMESER_H 20889 #include <arpa/nameser.h> 20890 #endif 20891 #ifdef HAVE_RESOLV_H 20892 #include <resolv.h> 20893 #endif 20894 20895 int 20896 main (void) 20897 { 20898 res_nsearch(0,0,0,0,0,0) 20899 ; 20900 return 0; 20901 } 20902 _ACEOF 20903 if ac_fn_c_try_link "$LINENO" 20904 then : 20905 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 20906 fi 20907 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20908 conftest$ac_exeext conftest.$ac_ext 20909 done 20910 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 20911 LIBS="$ac_save_LIBS" 20912 fi 20913 20914 fi 20915 20916 20917 eval "ac_res=\$ac_cv_funclib_res_nsearch" 20918 20919 if false; then 20920 ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" 20921 if test "x$ac_cv_func_res_nsearch" = xyes 20922 then : 20923 printf "%s\n" "#define HAVE_RES_NSEARCH 1" >>confdefs.h 20924 20925 fi 20926 20927 fi 20928 # res_nsearch 20929 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20930 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20931 eval "LIB_res_nsearch=$ac_res" 20932 20933 case "$ac_res" in 20934 yes) 20935 eval "ac_cv_func_res_nsearch=yes" 20936 eval "LIB_res_nsearch=" 20937 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20938 20939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20940 printf "%s\n" "yes" >&6; } 20941 ;; 20942 no) 20943 eval "ac_cv_func_res_nsearch=no" 20944 eval "LIB_res_nsearch=" 20945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20946 printf "%s\n" "no" >&6; } 20947 ;; 20948 *) 20949 eval "ac_cv_func_res_nsearch=yes" 20950 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 20951 20952 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 20953 20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 20955 printf "%s\n" "yes, in $ac_res" >&6; } 20956 ;; 20957 esac 20958 20959 20960 if test -n "$LIB_res_nsearch"; then 20961 LIBS="$LIB_res_nsearch $LIBS" 20962 fi 20963 20964 20965 20966 20967 20968 20969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5 20970 printf %s "checking for res_ndestroy... " >&6; } 20971 if test ${ac_cv_funclib_res_ndestroy+y} 20972 then : 20973 printf %s "(cached) " >&6 20974 else $as_nop 20975 20976 if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then 20977 ac_save_LIBS="$LIBS" 20978 for ac_lib in "" resolv; do 20979 case "$ac_lib" in 20980 "") ;; 20981 yes) ac_lib="" ;; 20982 no) continue ;; 20983 -l*) ;; 20984 *) ac_lib="-l$ac_lib" ;; 20985 esac 20986 LIBS=" $ac_lib $ac_save_LIBS" 20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20988 /* end confdefs.h. */ 20989 20990 #include <stdio.h> 20991 #ifdef HAVE_SYS_TYPES_H 20992 #include <sys/types.h> 20993 #endif 20994 #ifdef HAVE_NETINET_IN_H 20995 #include <netinet/in.h> 20996 #endif 20997 #ifdef HAVE_ARPA_NAMESER_H 20998 #include <arpa/nameser.h> 20999 #endif 21000 #ifdef HAVE_RESOLV_H 21001 #include <resolv.h> 21002 #endif 21003 21004 int 21005 main (void) 21006 { 21007 res_ndestroy(0) 21008 ; 21009 return 0; 21010 } 21011 _ACEOF 21012 if ac_fn_c_try_link "$LINENO" 21013 then : 21014 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break 21015 fi 21016 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21017 conftest$ac_exeext conftest.$ac_ext 21018 done 21019 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}" 21020 LIBS="$ac_save_LIBS" 21021 fi 21022 21023 fi 21024 21025 21026 eval "ac_res=\$ac_cv_funclib_res_ndestroy" 21027 21028 if false; then 21029 ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" 21030 if test "x$ac_cv_func_res_ndestroy" = xyes 21031 then : 21032 printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h 21033 21034 fi 21035 21036 fi 21037 # res_ndestroy 21038 eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21039 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21040 eval "LIB_res_ndestroy=$ac_res" 21041 21042 case "$ac_res" in 21043 yes) 21044 eval "ac_cv_func_res_ndestroy=yes" 21045 eval "LIB_res_ndestroy=" 21046 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21047 21048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21049 printf "%s\n" "yes" >&6; } 21050 ;; 21051 no) 21052 eval "ac_cv_func_res_ndestroy=no" 21053 eval "LIB_res_ndestroy=" 21054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21055 printf "%s\n" "no" >&6; } 21056 ;; 21057 *) 21058 eval "ac_cv_func_res_ndestroy=yes" 21059 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21060 21061 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21062 21063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21064 printf "%s\n" "yes, in $ac_res" >&6; } 21065 ;; 21066 esac 21067 21068 21069 if test -n "$LIB_res_ndestroy"; then 21070 LIBS="$LIB_res_ndestroy $LIBS" 21071 fi 21072 21073 21074 21075 21076 21077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5 21078 printf %s "checking for dns_search... " >&6; } 21079 if test ${ac_cv_funclib_dns_search+y} 21080 then : 21081 printf %s "(cached) " >&6 21082 else $as_nop 21083 21084 if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then 21085 ac_save_LIBS="$LIBS" 21086 for ac_lib in "" ; do 21087 case "$ac_lib" in 21088 "") ;; 21089 yes) ac_lib="" ;; 21090 no) continue ;; 21091 -l*) ;; 21092 *) ac_lib="-l$ac_lib" ;; 21093 esac 21094 LIBS=" $ac_lib $ac_save_LIBS" 21095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21096 /* end confdefs.h. */ 21097 21098 #ifdef HAVE_DNS_H 21099 #include <dns.h> 21100 #endif 21101 21102 int 21103 main (void) 21104 { 21105 dns_search(0,0,0,0,0,0,0,0) 21106 ; 21107 return 0; 21108 } 21109 _ACEOF 21110 if ac_fn_c_try_link "$LINENO" 21111 then : 21112 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break 21113 fi 21114 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21115 conftest$ac_exeext conftest.$ac_ext 21116 done 21117 eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}" 21118 LIBS="$ac_save_LIBS" 21119 fi 21120 21121 fi 21122 21123 21124 eval "ac_res=\$ac_cv_funclib_dns_search" 21125 21126 if false; then 21127 ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" 21128 if test "x$ac_cv_func_dns_search" = xyes 21129 then : 21130 printf "%s\n" "#define HAVE_DNS_SEARCH 1" >>confdefs.h 21131 21132 fi 21133 21134 fi 21135 # dns_search 21136 eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21137 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21138 eval "LIB_dns_search=$ac_res" 21139 21140 case "$ac_res" in 21141 yes) 21142 eval "ac_cv_func_dns_search=yes" 21143 eval "LIB_dns_search=" 21144 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21145 21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21147 printf "%s\n" "yes" >&6; } 21148 ;; 21149 no) 21150 eval "ac_cv_func_dns_search=no" 21151 eval "LIB_dns_search=" 21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21153 printf "%s\n" "no" >&6; } 21154 ;; 21155 *) 21156 eval "ac_cv_func_dns_search=yes" 21157 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21158 21159 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21160 21161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21162 printf "%s\n" "yes, in $ac_res" >&6; } 21163 ;; 21164 esac 21165 21166 21167 21168 21169 21170 21171 21172 21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5 21174 printf %s "checking for dn_expand... " >&6; } 21175 if test ${ac_cv_funclib_dn_expand+y} 21176 then : 21177 printf %s "(cached) " >&6 21178 else $as_nop 21179 21180 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 21181 ac_save_LIBS="$LIBS" 21182 for ac_lib in "" resolv; do 21183 case "$ac_lib" in 21184 "") ;; 21185 yes) ac_lib="" ;; 21186 no) continue ;; 21187 -l*) ;; 21188 *) ac_lib="-l$ac_lib" ;; 21189 esac 21190 LIBS=" $ac_lib $ac_save_LIBS" 21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21192 /* end confdefs.h. */ 21193 21194 #include <stdio.h> 21195 #ifdef HAVE_SYS_TYPES_H 21196 #include <sys/types.h> 21197 #endif 21198 #ifdef HAVE_NETINET_IN_H 21199 #include <netinet/in.h> 21200 #endif 21201 #ifdef HAVE_ARPA_NAMESER_H 21202 #include <arpa/nameser.h> 21203 #endif 21204 #ifdef HAVE_RESOLV_H 21205 #include <resolv.h> 21206 #endif 21207 21208 int 21209 main (void) 21210 { 21211 dn_expand(0,0,0,0,0) 21212 ; 21213 return 0; 21214 } 21215 _ACEOF 21216 if ac_fn_c_try_link "$LINENO" 21217 then : 21218 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 21219 fi 21220 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21221 conftest$ac_exeext conftest.$ac_ext 21222 done 21223 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 21224 LIBS="$ac_save_LIBS" 21225 fi 21226 21227 fi 21228 21229 21230 eval "ac_res=\$ac_cv_funclib_dn_expand" 21231 21232 if false; then 21233 ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" 21234 if test "x$ac_cv_func_dn_expand" = xyes 21235 then : 21236 printf "%s\n" "#define HAVE_DN_EXPAND 1" >>confdefs.h 21237 21238 fi 21239 21240 fi 21241 # dn_expand 21242 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21243 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21244 eval "LIB_dn_expand=$ac_res" 21245 21246 case "$ac_res" in 21247 yes) 21248 eval "ac_cv_func_dn_expand=yes" 21249 eval "LIB_dn_expand=" 21250 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21251 21252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21253 printf "%s\n" "yes" >&6; } 21254 ;; 21255 no) 21256 eval "ac_cv_func_dn_expand=no" 21257 eval "LIB_dn_expand=" 21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21259 printf "%s\n" "no" >&6; } 21260 ;; 21261 *) 21262 eval "ac_cv_func_dn_expand=yes" 21263 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21264 21265 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21266 21267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21268 printf "%s\n" "yes, in $ac_res" >&6; } 21269 ;; 21270 esac 21271 21272 21273 if test -n "$LIB_dn_expand"; then 21274 LIBS="$LIB_dn_expand $LIBS" 21275 fi 21276 21277 21278 21279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _res" >&5 21280 printf %s "checking for _res... " >&6; } 21281 if test ${ac_cv_var__res+y} 21282 then : 21283 printf %s "(cached) " >&6 21284 else $as_nop 21285 21286 21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21288 /* end confdefs.h. */ 21289 #include <stdio.h> 21290 #ifdef HAVE_SYS_TYPES_H 21291 #include <sys/types.h> 21292 #endif 21293 #ifdef HAVE_NETINET_IN_H 21294 #include <netinet/in.h> 21295 #endif 21296 #ifdef HAVE_ARPA_NAMESER_H 21297 #include <arpa/nameser.h> 21298 #endif 21299 #ifdef HAVE_RESOLV_H 21300 #include <resolv.h> 21301 #endif 21302 void * foo(void) { return &_res; } 21303 int 21304 main (void) 21305 { 21306 foo() 21307 ; 21308 return 0; 21309 } 21310 _ACEOF 21311 if ac_fn_c_try_link "$LINENO" 21312 then : 21313 ac_cv_var__res=yes 21314 else $as_nop 21315 ac_cv_var__res=no 21316 fi 21317 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21318 conftest$ac_exeext conftest.$ac_ext 21319 if test "$ac_cv_var__res" != yes ; then 21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21321 /* end confdefs.h. */ 21322 #include <stdio.h> 21323 #ifdef HAVE_SYS_TYPES_H 21324 #include <sys/types.h> 21325 #endif 21326 #ifdef HAVE_NETINET_IN_H 21327 #include <netinet/in.h> 21328 #endif 21329 #ifdef HAVE_ARPA_NAMESER_H 21330 #include <arpa/nameser.h> 21331 #endif 21332 #ifdef HAVE_RESOLV_H 21333 #include <resolv.h> 21334 #endif 21335 extern int _res; 21336 int foo(void) { return _res; } 21337 int 21338 main (void) 21339 { 21340 foo() 21341 ; 21342 return 0; 21343 } 21344 _ACEOF 21345 if ac_fn_c_try_link "$LINENO" 21346 then : 21347 ac_cv_var__res=yes 21348 else $as_nop 21349 ac_cv_var__res=no 21350 fi 21351 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21352 conftest$ac_exeext conftest.$ac_ext 21353 fi 21354 21355 fi 21356 21357 ac_foo=`eval echo \\$ac_cv_var__res` 21358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 21359 printf "%s\n" "$ac_foo" >&6; } 21360 if test "$ac_foo" = yes; then 21361 21362 printf "%s\n" "#define HAVE__RES 1" >>confdefs.h 21363 21364 ac_fn_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h> 21365 #ifdef HAVE_SYS_TYPES_H 21366 #include <sys/types.h> 21367 #endif 21368 #ifdef HAVE_NETINET_IN_H 21369 #include <netinet/in.h> 21370 #endif 21371 #ifdef HAVE_ARPA_NAMESER_H 21372 #include <arpa/nameser.h> 21373 #endif 21374 #ifdef HAVE_RESOLV_H 21375 #include <resolv.h> 21376 #endif 21377 " "$ac_c_undeclared_builtin_options" "CFLAGS" 21378 if test "x$ac_cv_have_decl__res" = xyes 21379 then : 21380 ac_have_decl=1 21381 else $as_nop 21382 ac_have_decl=0 21383 fi 21384 printf "%s\n" "#define HAVE_DECL__RES $ac_have_decl" >>confdefs.h 21385 21386 fi 21387 21388 21389 21390 21391 21392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 21393 printf %s "checking for working snprintf... " >&6; } 21394 if test ${ac_cv_func_snprintf_working+y} 21395 then : 21396 printf %s "(cached) " >&6 21397 else $as_nop 21398 ac_cv_func_snprintf_working=yes 21399 if test "$cross_compiling" = yes 21400 then : 21401 : 21402 else $as_nop 21403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21404 /* end confdefs.h. */ 21405 21406 #include <stdio.h> 21407 #include <string.h> 21408 int main(int argc, char **argv) 21409 { 21410 char foo[3]; 21411 snprintf(foo, 2, "12"); 21412 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2; 21413 } 21414 _ACEOF 21415 if ac_fn_c_try_run "$LINENO" 21416 then : 21417 : 21418 else $as_nop 21419 ac_cv_func_snprintf_working=no 21420 fi 21421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21422 conftest.$ac_objext conftest.beam conftest.$ac_ext 21423 fi 21424 21425 fi 21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5 21427 printf "%s\n" "$ac_cv_func_snprintf_working" >&6; } 21428 21429 if test "$ac_cv_func_snprintf_working" = yes; then 21430 21431 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 21432 21433 fi 21434 if test "$ac_cv_func_snprintf_working" = yes; then 21435 21436 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5 21438 printf %s "checking if snprintf needs a prototype... " >&6; } 21439 if test ${ac_cv_func_snprintf_noproto+y} 21440 then : 21441 printf %s "(cached) " >&6 21442 else $as_nop 21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21444 /* end confdefs.h. */ 21445 #include <stdio.h> 21446 struct foo { int foo; } xx; 21447 extern int snprintf (struct foo*); 21448 int 21449 main (void) 21450 { 21451 snprintf(&xx) 21452 ; 21453 return 0; 21454 } 21455 _ACEOF 21456 if ac_fn_c_try_compile "$LINENO" 21457 then : 21458 eval "ac_cv_func_snprintf_noproto=yes" 21459 else $as_nop 21460 eval "ac_cv_func_snprintf_noproto=no" 21461 fi 21462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21463 fi 21464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5 21465 printf "%s\n" "$ac_cv_func_snprintf_noproto" >&6; } 21466 if test "$ac_cv_func_snprintf_noproto" = yes; then 21467 21468 printf "%s\n" "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h 21469 21470 fi 21471 fi 21472 21473 fi 21474 21475 21476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5 21477 printf %s "checking for working vsnprintf... " >&6; } 21478 if test ${ac_cv_func_vsnprintf_working+y} 21479 then : 21480 printf %s "(cached) " >&6 21481 else $as_nop 21482 ac_cv_func_vsnprintf_working=yes 21483 if test "$cross_compiling" = yes 21484 then : 21485 : 21486 else $as_nop 21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21488 /* end confdefs.h. */ 21489 21490 #include <stdio.h> 21491 #include <string.h> 21492 #include <stdarg.h> 21493 21494 int foo(int num, ...) 21495 { 21496 char bar[3]; 21497 va_list arg; 21498 va_start(arg, num); 21499 vsnprintf(bar, 2, "%s", arg); 21500 va_end(arg); 21501 return strcmp(bar, "1"); 21502 } 21503 21504 int bar(int num, int len, ...) 21505 { 21506 int r; 21507 va_list arg; 21508 va_start(arg, len); 21509 r = vsnprintf(NULL, 0, "%s", arg); 21510 va_end(arg); 21511 return r != len; 21512 } 21513 21514 int main(int argc, char **argv) 21515 { 21516 return foo(0, "12") || bar(0, 2, "12"); 21517 } 21518 _ACEOF 21519 if ac_fn_c_try_run "$LINENO" 21520 then : 21521 : 21522 else $as_nop 21523 ac_cv_func_vsnprintf_working=no 21524 fi 21525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21526 conftest.$ac_objext conftest.beam conftest.$ac_ext 21527 fi 21528 21529 fi 21530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5 21531 printf "%s\n" "$ac_cv_func_vsnprintf_working" >&6; } 21532 21533 if test "$ac_cv_func_vsnprintf_working" = yes; then 21534 21535 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 21536 21537 fi 21538 if test "$ac_cv_func_vsnprintf_working" = yes; then 21539 21540 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 21541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5 21542 printf %s "checking if vsnprintf needs a prototype... " >&6; } 21543 if test ${ac_cv_func_vsnprintf_noproto+y} 21544 then : 21545 printf %s "(cached) " >&6 21546 else $as_nop 21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21548 /* end confdefs.h. */ 21549 #include <stdio.h> 21550 struct foo { int foo; } xx; 21551 extern int vsnprintf (struct foo*); 21552 int 21553 main (void) 21554 { 21555 vsnprintf(&xx) 21556 ; 21557 return 0; 21558 } 21559 _ACEOF 21560 if ac_fn_c_try_compile "$LINENO" 21561 then : 21562 eval "ac_cv_func_vsnprintf_noproto=yes" 21563 else $as_nop 21564 eval "ac_cv_func_vsnprintf_noproto=no" 21565 fi 21566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21567 fi 21568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5 21569 printf "%s\n" "$ac_cv_func_vsnprintf_noproto" >&6; } 21570 if test "$ac_cv_func_vsnprintf_noproto" = yes; then 21571 21572 printf "%s\n" "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h 21573 21574 fi 21575 fi 21576 21577 fi 21578 21579 21580 21581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5 21582 printf %s "checking for working glob... " >&6; } 21583 if test ${ac_cv_func_glob_working+y} 21584 then : 21585 printf %s "(cached) " >&6 21586 else $as_nop 21587 ac_cv_func_glob_working=yes 21588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21589 /* end confdefs.h. */ 21590 21591 #include <stdio.h> 21592 #include <glob.h> 21593 int 21594 main (void) 21595 { 21596 21597 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 21598 #ifdef GLOB_MAXPATH 21599 GLOB_MAXPATH 21600 #else 21601 GLOB_LIMIT 21602 #endif 21603 , 21604 NULL, NULL); 21605 21606 ; 21607 return 0; 21608 } 21609 _ACEOF 21610 if ac_fn_c_try_link "$LINENO" 21611 then : 21612 : 21613 else $as_nop 21614 ac_cv_func_glob_working=no 21615 fi 21616 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21617 conftest$ac_exeext conftest.$ac_ext 21618 fi 21619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5 21620 printf "%s\n" "$ac_cv_func_glob_working" >&6; } 21621 21622 if test "$ac_cv_func_glob_working" = yes; then 21623 21624 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 21625 21626 fi 21627 if test "$ac_cv_func_glob_working" = yes; then 21628 21629 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 21630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5 21631 printf %s "checking if glob needs a prototype... " >&6; } 21632 if test ${ac_cv_func_glob_noproto+y} 21633 then : 21634 printf %s "(cached) " >&6 21635 else $as_nop 21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21637 /* end confdefs.h. */ 21638 #include <stdio.h> 21639 #include <glob.h> 21640 struct foo { int foo; } xx; 21641 extern int glob (struct foo*); 21642 int 21643 main (void) 21644 { 21645 glob(&xx) 21646 ; 21647 return 0; 21648 } 21649 _ACEOF 21650 if ac_fn_c_try_compile "$LINENO" 21651 then : 21652 eval "ac_cv_func_glob_noproto=yes" 21653 else $as_nop 21654 eval "ac_cv_func_glob_noproto=no" 21655 fi 21656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21657 fi 21658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5 21659 printf "%s\n" "$ac_cv_func_glob_noproto" >&6; } 21660 if test "$ac_cv_func_glob_noproto" = yes; then 21661 21662 printf "%s\n" "#define NEED_GLOB_PROTO 1" >>confdefs.h 21663 21664 fi 21665 fi 21666 21667 fi 21668 21669 if test "$ac_cv_func_glob_working" != yes; then 21670 case " $LIBOBJS " in 21671 *" glob.$ac_objext "* ) ;; 21672 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 21673 ;; 21674 esac 21675 21676 fi 21677 if test "$ac_cv_func_glob_working" = yes; then 21678 have_glob_h_TRUE= 21679 have_glob_h_FALSE='#' 21680 else 21681 have_glob_h_TRUE='#' 21682 have_glob_h_FALSE= 21683 fi 21684 21685 21686 21687 ac_fn_c_check_func "$LINENO" "asnprintf" "ac_cv_func_asnprintf" 21688 if test "x$ac_cv_func_asnprintf" = xyes 21689 then : 21690 printf "%s\n" "#define HAVE_ASNPRINTF 1" >>confdefs.h 21691 21692 fi 21693 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 21694 if test "x$ac_cv_func_asprintf" = xyes 21695 then : 21696 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 21697 21698 fi 21699 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 21700 if test "x$ac_cv_func_atexit" = xyes 21701 then : 21702 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h 21703 21704 fi 21705 ac_fn_c_check_func "$LINENO" "cgetent" "ac_cv_func_cgetent" 21706 if test "x$ac_cv_func_cgetent" = xyes 21707 then : 21708 printf "%s\n" "#define HAVE_CGETENT 1" >>confdefs.h 21709 21710 fi 21711 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 21712 if test "x$ac_cv_func_getauxval" = xyes 21713 then : 21714 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h 21715 21716 fi 21717 ac_fn_c_check_func "$LINENO" "getconfattr" "ac_cv_func_getconfattr" 21718 if test "x$ac_cv_func_getconfattr" = xyes 21719 then : 21720 printf "%s\n" "#define HAVE_GETCONFATTR 1" >>confdefs.h 21721 21722 fi 21723 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 21724 if test "x$ac_cv_func_getprogname" = xyes 21725 then : 21726 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 21727 21728 fi 21729 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 21730 if test "x$ac_cv_func_getrlimit" = xyes 21731 then : 21732 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 21733 21734 fi 21735 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 21736 if test "x$ac_cv_func_getspnam" = xyes 21737 then : 21738 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h 21739 21740 fi 21741 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 21742 if test "x$ac_cv_func_issetugid" = xyes 21743 then : 21744 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 21745 21746 fi 21747 ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit" 21748 if test "x$ac_cv_func_on_exit" = xyes 21749 then : 21750 printf "%s\n" "#define HAVE_ON_EXIT 1" >>confdefs.h 21751 21752 fi 21753 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21754 if test "x$ac_cv_func_poll" = xyes 21755 then : 21756 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 21757 21758 fi 21759 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 21760 if test "x$ac_cv_func_random" = xyes 21761 then : 21762 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 21763 21764 fi 21765 ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname" 21766 if test "x$ac_cv_func_setprogname" = xyes 21767 then : 21768 printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h 21769 21770 fi 21771 ac_fn_c_check_func "$LINENO" "strsvis" "ac_cv_func_strsvis" 21772 if test "x$ac_cv_func_strsvis" = xyes 21773 then : 21774 printf "%s\n" "#define HAVE_STRSVIS 1" >>confdefs.h 21775 21776 fi 21777 ac_fn_c_check_func "$LINENO" "strsvisx" "ac_cv_func_strsvisx" 21778 if test "x$ac_cv_func_strsvisx" = xyes 21779 then : 21780 printf "%s\n" "#define HAVE_STRSVISX 1" >>confdefs.h 21781 21782 fi 21783 ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis" 21784 if test "x$ac_cv_func_strunvis" = xyes 21785 then : 21786 printf "%s\n" "#define HAVE_STRUNVIS 1" >>confdefs.h 21787 21788 fi 21789 ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis" 21790 if test "x$ac_cv_func_strvis" = xyes 21791 then : 21792 printf "%s\n" "#define HAVE_STRVIS 1" >>confdefs.h 21793 21794 fi 21795 ac_fn_c_check_func "$LINENO" "strvisx" "ac_cv_func_strvisx" 21796 if test "x$ac_cv_func_strvisx" = xyes 21797 then : 21798 printf "%s\n" "#define HAVE_STRVISX 1" >>confdefs.h 21799 21800 fi 21801 ac_fn_c_check_func "$LINENO" "svis" "ac_cv_func_svis" 21802 if test "x$ac_cv_func_svis" = xyes 21803 then : 21804 printf "%s\n" "#define HAVE_SVIS 1" >>confdefs.h 21805 21806 fi 21807 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 21808 if test "x$ac_cv_func_sysconf" = xyes 21809 then : 21810 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 21811 21812 fi 21813 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 21814 if test "x$ac_cv_func_sysctl" = xyes 21815 then : 21816 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h 21817 21818 fi 21819 ac_fn_c_check_func "$LINENO" "tdelete" "ac_cv_func_tdelete" 21820 if test "x$ac_cv_func_tdelete" = xyes 21821 then : 21822 printf "%s\n" "#define HAVE_TDELETE 1" >>confdefs.h 21823 21824 fi 21825 ac_fn_c_check_func "$LINENO" "tfind" "ac_cv_func_tfind" 21826 if test "x$ac_cv_func_tfind" = xyes 21827 then : 21828 printf "%s\n" "#define HAVE_TFIND 1" >>confdefs.h 21829 21830 fi 21831 ac_fn_c_check_func "$LINENO" "twalk" "ac_cv_func_twalk" 21832 if test "x$ac_cv_func_twalk" = xyes 21833 then : 21834 printf "%s\n" "#define HAVE_TWALK 1" >>confdefs.h 21835 21836 fi 21837 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 21838 if test "x$ac_cv_func_uname" = xyes 21839 then : 21840 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 21841 21842 fi 21843 ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis" 21844 if test "x$ac_cv_func_unvis" = xyes 21845 then : 21846 printf "%s\n" "#define HAVE_UNVIS 1" >>confdefs.h 21847 21848 fi 21849 ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf" 21850 if test "x$ac_cv_func_vasnprintf" = xyes 21851 then : 21852 printf "%s\n" "#define HAVE_VASNPRINTF 1" >>confdefs.h 21853 21854 fi 21855 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 21856 if test "x$ac_cv_func_vasprintf" = xyes 21857 then : 21858 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 21859 21860 fi 21861 ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis" 21862 if test "x$ac_cv_func_vis" = xyes 21863 then : 21864 printf "%s\n" "#define HAVE_VIS 1" >>confdefs.h 21865 21866 fi 21867 21868 21869 if test "$ac_cv_func_cgetent" = no; then 21870 case " $LIBOBJS " in 21871 *" getcap.$ac_objext "* ) ;; 21872 *) LIBOBJS="$LIBOBJS getcap.$ac_objext" 21873 ;; 21874 esac 21875 21876 fi 21877 if test "$ac_cv_func_cgetent" = yes; then 21878 have_cgetent_TRUE= 21879 have_cgetent_FALSE='#' 21880 else 21881 have_cgetent_TRUE='#' 21882 have_cgetent_FALSE= 21883 fi 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5 21894 printf %s "checking for getsockopt... " >&6; } 21895 if test ${ac_cv_funclib_getsockopt+y} 21896 then : 21897 printf %s "(cached) " >&6 21898 else $as_nop 21899 21900 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 21901 ac_save_LIBS="$LIBS" 21902 for ac_lib in "" ; do 21903 case "$ac_lib" in 21904 "") ;; 21905 yes) ac_lib="" ;; 21906 no) continue ;; 21907 -l*) ;; 21908 *) ac_lib="-l$ac_lib" ;; 21909 esac 21910 LIBS=" $ac_lib $ac_save_LIBS" 21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21912 /* end confdefs.h. */ 21913 #ifdef HAVE_SYS_TYPES_H 21914 #include <sys/types.h> 21915 #endif 21916 #ifdef HAVE_SYS_SOCKET_H 21917 #include <sys/socket.h> 21918 #endif 21919 int 21920 main (void) 21921 { 21922 getsockopt(0,0,0,0,0) 21923 ; 21924 return 0; 21925 } 21926 _ACEOF 21927 if ac_fn_c_try_link "$LINENO" 21928 then : 21929 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 21930 fi 21931 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21932 conftest$ac_exeext conftest.$ac_ext 21933 done 21934 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 21935 LIBS="$ac_save_LIBS" 21936 fi 21937 21938 fi 21939 21940 21941 eval "ac_res=\$ac_cv_funclib_getsockopt" 21942 21943 if false; then 21944 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt" 21945 if test "x$ac_cv_func_getsockopt" = xyes 21946 then : 21947 printf "%s\n" "#define HAVE_GETSOCKOPT 1" >>confdefs.h 21948 21949 fi 21950 21951 fi 21952 # getsockopt 21953 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21954 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21955 eval "LIB_getsockopt=$ac_res" 21956 21957 case "$ac_res" in 21958 yes) 21959 eval "ac_cv_func_getsockopt=yes" 21960 eval "LIB_getsockopt=" 21961 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21962 21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21964 printf "%s\n" "yes" >&6; } 21965 ;; 21966 no) 21967 eval "ac_cv_func_getsockopt=no" 21968 eval "LIB_getsockopt=" 21969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21970 printf "%s\n" "no" >&6; } 21971 ;; 21972 *) 21973 eval "ac_cv_func_getsockopt=yes" 21974 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 21975 21976 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 21977 21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21979 printf "%s\n" "yes, in $ac_res" >&6; } 21980 ;; 21981 esac 21982 21983 21984 21985 21986 21987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5 21988 printf %s "checking for setsockopt... " >&6; } 21989 if test ${ac_cv_funclib_setsockopt+y} 21990 then : 21991 printf %s "(cached) " >&6 21992 else $as_nop 21993 21994 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 21995 ac_save_LIBS="$LIBS" 21996 for ac_lib in "" ; do 21997 case "$ac_lib" in 21998 "") ;; 21999 yes) ac_lib="" ;; 22000 no) continue ;; 22001 -l*) ;; 22002 *) ac_lib="-l$ac_lib" ;; 22003 esac 22004 LIBS=" $ac_lib $ac_save_LIBS" 22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22006 /* end confdefs.h. */ 22007 #ifdef HAVE_SYS_TYPES_H 22008 #include <sys/types.h> 22009 #endif 22010 #ifdef HAVE_SYS_SOCKET_H 22011 #include <sys/socket.h> 22012 #endif 22013 int 22014 main (void) 22015 { 22016 setsockopt(0,0,0,0,0) 22017 ; 22018 return 0; 22019 } 22020 _ACEOF 22021 if ac_fn_c_try_link "$LINENO" 22022 then : 22023 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 22024 fi 22025 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22026 conftest$ac_exeext conftest.$ac_ext 22027 done 22028 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 22029 LIBS="$ac_save_LIBS" 22030 fi 22031 22032 fi 22033 22034 22035 eval "ac_res=\$ac_cv_funclib_setsockopt" 22036 22037 if false; then 22038 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 22039 if test "x$ac_cv_func_setsockopt" = xyes 22040 then : 22041 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h 22042 22043 fi 22044 22045 fi 22046 # setsockopt 22047 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22048 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22049 eval "LIB_setsockopt=$ac_res" 22050 22051 case "$ac_res" in 22052 yes) 22053 eval "ac_cv_func_setsockopt=yes" 22054 eval "LIB_setsockopt=" 22055 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22056 22057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22058 printf "%s\n" "yes" >&6; } 22059 ;; 22060 no) 22061 eval "ac_cv_func_setsockopt=no" 22062 eval "LIB_setsockopt=" 22063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22064 printf "%s\n" "no" >&6; } 22065 ;; 22066 *) 22067 eval "ac_cv_func_setsockopt=yes" 22068 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22069 22070 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22071 22072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22073 printf "%s\n" "yes, in $ac_res" >&6; } 22074 ;; 22075 esac 22076 22077 22078 22079 22080 22081 22082 22083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 22084 printf %s "checking for hstrerror... " >&6; } 22085 if test ${ac_cv_funclib_hstrerror+y} 22086 then : 22087 printf %s "(cached) " >&6 22088 else $as_nop 22089 22090 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 22091 ac_save_LIBS="$LIBS" 22092 for ac_lib in "" resolv; do 22093 case "$ac_lib" in 22094 "") ;; 22095 yes) ac_lib="" ;; 22096 no) continue ;; 22097 -l*) ;; 22098 *) ac_lib="-l$ac_lib" ;; 22099 esac 22100 LIBS=" $ac_lib $ac_save_LIBS" 22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22102 /* end confdefs.h. */ 22103 #ifdef HAVE_NETDB_H 22104 #include <netdb.h> 22105 #endif 22106 int 22107 main (void) 22108 { 22109 hstrerror(17) 22110 ; 22111 return 0; 22112 } 22113 _ACEOF 22114 if ac_fn_c_try_link "$LINENO" 22115 then : 22116 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 22117 fi 22118 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22119 conftest$ac_exeext conftest.$ac_ext 22120 done 22121 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 22122 LIBS="$ac_save_LIBS" 22123 fi 22124 22125 fi 22126 22127 22128 eval "ac_res=\$ac_cv_funclib_hstrerror" 22129 22130 if false; then 22131 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 22132 if test "x$ac_cv_func_hstrerror" = xyes 22133 then : 22134 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h 22135 22136 fi 22137 22138 fi 22139 # hstrerror 22140 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22141 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22142 eval "LIB_hstrerror=$ac_res" 22143 22144 case "$ac_res" in 22145 yes) 22146 eval "ac_cv_func_hstrerror=yes" 22147 eval "LIB_hstrerror=" 22148 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22149 22150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22151 printf "%s\n" "yes" >&6; } 22152 ;; 22153 no) 22154 eval "ac_cv_func_hstrerror=no" 22155 eval "LIB_hstrerror=" 22156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22157 printf "%s\n" "no" >&6; } 22158 ;; 22159 *) 22160 eval "ac_cv_func_hstrerror=yes" 22161 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22162 22163 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22164 22165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22166 printf "%s\n" "yes, in $ac_res" >&6; } 22167 ;; 22168 esac 22169 22170 22171 if test -n "$LIB_hstrerror"; then 22172 LIBS="$LIB_hstrerror $LIBS" 22173 fi 22174 22175 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 22176 case " $LIBOBJS " in 22177 *" hstrerror.$ac_objext "* ) ;; 22178 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 22179 ;; 22180 esac 22181 22182 fi 22183 22184 22185 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 22186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5 22187 printf %s "checking if hstrerror needs a prototype... " >&6; } 22188 if test ${ac_cv_func_hstrerror_noproto+y} 22189 then : 22190 printf %s "(cached) " >&6 22191 else $as_nop 22192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22193 /* end confdefs.h. */ 22194 22195 #ifdef HAVE_NETDB_H 22196 #include <netdb.h> 22197 #endif 22198 struct foo { int foo; } xx; 22199 extern int hstrerror (struct foo*); 22200 int 22201 main (void) 22202 { 22203 hstrerror(&xx) 22204 ; 22205 return 0; 22206 } 22207 _ACEOF 22208 if ac_fn_c_try_compile "$LINENO" 22209 then : 22210 eval "ac_cv_func_hstrerror_noproto=yes" 22211 else $as_nop 22212 eval "ac_cv_func_hstrerror_noproto=no" 22213 fi 22214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22215 fi 22216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5 22217 printf "%s\n" "$ac_cv_func_hstrerror_noproto" >&6; } 22218 if test "$ac_cv_func_hstrerror_noproto" = yes; then 22219 22220 printf "%s\n" "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h 22221 22222 fi 22223 fi 22224 22225 22226 22227 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 22228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5 22229 printf %s "checking if asprintf needs a prototype... " >&6; } 22230 if test ${ac_cv_func_asprintf_noproto+y} 22231 then : 22232 printf %s "(cached) " >&6 22233 else $as_nop 22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22235 /* end confdefs.h. */ 22236 22237 #include <stdio.h> 22238 #include <string.h> 22239 struct foo { int foo; } xx; 22240 extern int asprintf (struct foo*); 22241 int 22242 main (void) 22243 { 22244 asprintf(&xx) 22245 ; 22246 return 0; 22247 } 22248 _ACEOF 22249 if ac_fn_c_try_compile "$LINENO" 22250 then : 22251 eval "ac_cv_func_asprintf_noproto=yes" 22252 else $as_nop 22253 eval "ac_cv_func_asprintf_noproto=no" 22254 fi 22255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22256 fi 22257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5 22258 printf "%s\n" "$ac_cv_func_asprintf_noproto" >&6; } 22259 if test "$ac_cv_func_asprintf_noproto" = yes; then 22260 22261 printf "%s\n" "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h 22262 22263 fi 22264 fi 22265 22266 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 22267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5 22268 printf %s "checking if vasprintf needs a prototype... " >&6; } 22269 if test ${ac_cv_func_vasprintf_noproto+y} 22270 then : 22271 printf %s "(cached) " >&6 22272 else $as_nop 22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22274 /* end confdefs.h. */ 22275 22276 #include <stdio.h> 22277 #include <string.h> 22278 struct foo { int foo; } xx; 22279 extern int vasprintf (struct foo*); 22280 int 22281 main (void) 22282 { 22283 vasprintf(&xx) 22284 ; 22285 return 0; 22286 } 22287 _ACEOF 22288 if ac_fn_c_try_compile "$LINENO" 22289 then : 22290 eval "ac_cv_func_vasprintf_noproto=yes" 22291 else $as_nop 22292 eval "ac_cv_func_vasprintf_noproto=no" 22293 fi 22294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22295 fi 22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5 22297 printf "%s\n" "$ac_cv_func_vasprintf_noproto" >&6; } 22298 if test "$ac_cv_func_vasprintf_noproto" = yes; then 22299 22300 printf "%s\n" "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h 22301 22302 fi 22303 fi 22304 22305 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5 22307 printf %s "checking if asnprintf needs a prototype... " >&6; } 22308 if test ${ac_cv_func_asnprintf_noproto+y} 22309 then : 22310 printf %s "(cached) " >&6 22311 else $as_nop 22312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22313 /* end confdefs.h. */ 22314 22315 #include <stdio.h> 22316 #include <string.h> 22317 struct foo { int foo; } xx; 22318 extern int asnprintf (struct foo*); 22319 int 22320 main (void) 22321 { 22322 asnprintf(&xx) 22323 ; 22324 return 0; 22325 } 22326 _ACEOF 22327 if ac_fn_c_try_compile "$LINENO" 22328 then : 22329 eval "ac_cv_func_asnprintf_noproto=yes" 22330 else $as_nop 22331 eval "ac_cv_func_asnprintf_noproto=no" 22332 fi 22333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22334 fi 22335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5 22336 printf "%s\n" "$ac_cv_func_asnprintf_noproto" >&6; } 22337 if test "$ac_cv_func_asnprintf_noproto" = yes; then 22338 22339 printf "%s\n" "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h 22340 22341 fi 22342 fi 22343 22344 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 22345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5 22346 printf %s "checking if vasnprintf needs a prototype... " >&6; } 22347 if test ${ac_cv_func_vasnprintf_noproto+y} 22348 then : 22349 printf %s "(cached) " >&6 22350 else $as_nop 22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22352 /* end confdefs.h. */ 22353 22354 #include <stdio.h> 22355 #include <string.h> 22356 struct foo { int foo; } xx; 22357 extern int vasnprintf (struct foo*); 22358 int 22359 main (void) 22360 { 22361 vasnprintf(&xx) 22362 ; 22363 return 0; 22364 } 22365 _ACEOF 22366 if ac_fn_c_try_compile "$LINENO" 22367 then : 22368 eval "ac_cv_func_vasnprintf_noproto=yes" 22369 else $as_nop 22370 eval "ac_cv_func_vasnprintf_noproto=no" 22371 fi 22372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22373 fi 22374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5 22375 printf "%s\n" "$ac_cv_func_vasnprintf_noproto" >&6; } 22376 if test "$ac_cv_func_vasnprintf_noproto" = yes; then 22377 22378 printf "%s\n" "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h 22379 22380 fi 22381 fi 22382 22383 22384 22385 22386 22387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5 22388 printf %s "checking for bswap16... " >&6; } 22389 if test ${ac_cv_funclib_bswap16+y} 22390 then : 22391 printf %s "(cached) " >&6 22392 else $as_nop 22393 22394 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 22395 ac_save_LIBS="$LIBS" 22396 for ac_lib in "" ; do 22397 case "$ac_lib" in 22398 "") ;; 22399 yes) ac_lib="" ;; 22400 no) continue ;; 22401 -l*) ;; 22402 *) ac_lib="-l$ac_lib" ;; 22403 esac 22404 LIBS=" $ac_lib $ac_save_LIBS" 22405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22406 /* end confdefs.h. */ 22407 #ifdef HAVE_SYS_TYPES_H 22408 #include <sys/types.h> 22409 #endif 22410 #ifdef HAVE_SYS_BSWAP_H 22411 #include <sys/bswap.h> 22412 #endif 22413 int 22414 main (void) 22415 { 22416 bswap16(0) 22417 ; 22418 return 0; 22419 } 22420 _ACEOF 22421 if ac_fn_c_try_link "$LINENO" 22422 then : 22423 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 22424 fi 22425 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22426 conftest$ac_exeext conftest.$ac_ext 22427 done 22428 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 22429 LIBS="$ac_save_LIBS" 22430 fi 22431 22432 fi 22433 22434 22435 eval "ac_res=\$ac_cv_funclib_bswap16" 22436 22437 if false; then 22438 ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16" 22439 if test "x$ac_cv_func_bswap16" = xyes 22440 then : 22441 printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h 22442 22443 fi 22444 22445 fi 22446 # bswap16 22447 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22448 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22449 eval "LIB_bswap16=$ac_res" 22450 22451 case "$ac_res" in 22452 yes) 22453 eval "ac_cv_func_bswap16=yes" 22454 eval "LIB_bswap16=" 22455 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22456 22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22458 printf "%s\n" "yes" >&6; } 22459 ;; 22460 no) 22461 eval "ac_cv_func_bswap16=no" 22462 eval "LIB_bswap16=" 22463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22464 printf "%s\n" "no" >&6; } 22465 ;; 22466 *) 22467 eval "ac_cv_func_bswap16=yes" 22468 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22469 22470 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22471 22472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22473 printf "%s\n" "yes, in $ac_res" >&6; } 22474 ;; 22475 esac 22476 22477 22478 22479 22480 22481 22482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5 22483 printf %s "checking for bswap32... " >&6; } 22484 if test ${ac_cv_funclib_bswap32+y} 22485 then : 22486 printf %s "(cached) " >&6 22487 else $as_nop 22488 22489 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 22490 ac_save_LIBS="$LIBS" 22491 for ac_lib in "" ; do 22492 case "$ac_lib" in 22493 "") ;; 22494 yes) ac_lib="" ;; 22495 no) continue ;; 22496 -l*) ;; 22497 *) ac_lib="-l$ac_lib" ;; 22498 esac 22499 LIBS=" $ac_lib $ac_save_LIBS" 22500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22501 /* end confdefs.h. */ 22502 #ifdef HAVE_SYS_TYPES_H 22503 #include <sys/types.h> 22504 #endif 22505 #ifdef HAVE_SYS_BSWAP_H 22506 #include <sys/bswap.h> 22507 #endif 22508 int 22509 main (void) 22510 { 22511 bswap32(0) 22512 ; 22513 return 0; 22514 } 22515 _ACEOF 22516 if ac_fn_c_try_link "$LINENO" 22517 then : 22518 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 22519 fi 22520 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22521 conftest$ac_exeext conftest.$ac_ext 22522 done 22523 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 22524 LIBS="$ac_save_LIBS" 22525 fi 22526 22527 fi 22528 22529 22530 eval "ac_res=\$ac_cv_funclib_bswap32" 22531 22532 if false; then 22533 ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32" 22534 if test "x$ac_cv_func_bswap32" = xyes 22535 then : 22536 printf "%s\n" "#define HAVE_BSWAP32 1" >>confdefs.h 22537 22538 fi 22539 22540 fi 22541 # bswap32 22542 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22543 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22544 eval "LIB_bswap32=$ac_res" 22545 22546 case "$ac_res" in 22547 yes) 22548 eval "ac_cv_func_bswap32=yes" 22549 eval "LIB_bswap32=" 22550 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22551 22552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22553 printf "%s\n" "yes" >&6; } 22554 ;; 22555 no) 22556 eval "ac_cv_func_bswap32=no" 22557 eval "LIB_bswap32=" 22558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22559 printf "%s\n" "no" >&6; } 22560 ;; 22561 *) 22562 eval "ac_cv_func_bswap32=yes" 22563 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22564 22565 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22566 22567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22568 printf "%s\n" "yes, in $ac_res" >&6; } 22569 ;; 22570 esac 22571 22572 22573 22574 22575 22576 22577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap64" >&5 22578 printf %s "checking for bswap64... " >&6; } 22579 if test ${ac_cv_funclib_bswap64+y} 22580 then : 22581 printf %s "(cached) " >&6 22582 else $as_nop 22583 22584 if eval "test \"\$ac_cv_func_bswap64\" != yes" ; then 22585 ac_save_LIBS="$LIBS" 22586 for ac_lib in "" ; do 22587 case "$ac_lib" in 22588 "") ;; 22589 yes) ac_lib="" ;; 22590 no) continue ;; 22591 -l*) ;; 22592 *) ac_lib="-l$ac_lib" ;; 22593 esac 22594 LIBS=" $ac_lib $ac_save_LIBS" 22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22596 /* end confdefs.h. */ 22597 #ifdef HAVE_SYS_TYPES_H 22598 #include <sys/types.h> 22599 #endif 22600 #ifdef HAVE_SYS_BSWAP_H 22601 #include <sys/bswap.h> 22602 #endif 22603 int 22604 main (void) 22605 { 22606 bswap64(0) 22607 ; 22608 return 0; 22609 } 22610 _ACEOF 22611 if ac_fn_c_try_link "$LINENO" 22612 then : 22613 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap64=$ac_lib; else ac_cv_funclib_bswap64=yes; fi";break 22614 fi 22615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22616 conftest$ac_exeext conftest.$ac_ext 22617 done 22618 eval "ac_cv_funclib_bswap64=\${ac_cv_funclib_bswap64-no}" 22619 LIBS="$ac_save_LIBS" 22620 fi 22621 22622 fi 22623 22624 22625 eval "ac_res=\$ac_cv_funclib_bswap64" 22626 22627 if false; then 22628 ac_fn_c_check_func "$LINENO" "bswap64" "ac_cv_func_bswap64" 22629 if test "x$ac_cv_func_bswap64" = xyes 22630 then : 22631 printf "%s\n" "#define HAVE_BSWAP64 1" >>confdefs.h 22632 22633 fi 22634 22635 fi 22636 # bswap64 22637 eval "ac_tr_func=HAVE_`echo bswap64 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22638 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22639 eval "LIB_bswap64=$ac_res" 22640 22641 case "$ac_res" in 22642 yes) 22643 eval "ac_cv_func_bswap64=yes" 22644 eval "LIB_bswap64=" 22645 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22646 22647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22648 printf "%s\n" "yes" >&6; } 22649 ;; 22650 no) 22651 eval "ac_cv_func_bswap64=no" 22652 eval "LIB_bswap64=" 22653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22654 printf "%s\n" "no" >&6; } 22655 ;; 22656 *) 22657 eval "ac_cv_func_bswap64=yes" 22658 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22659 22660 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22661 22662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22663 printf "%s\n" "yes, in $ac_res" >&6; } 22664 ;; 22665 esac 22666 22667 22668 22669 22670 22671 22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5 22673 printf %s "checking for pidfile... " >&6; } 22674 if test ${ac_cv_funclib_pidfile+y} 22675 then : 22676 printf %s "(cached) " >&6 22677 else $as_nop 22678 22679 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 22680 ac_save_LIBS="$LIBS" 22681 for ac_lib in "" util; do 22682 case "$ac_lib" in 22683 "") ;; 22684 yes) ac_lib="" ;; 22685 no) continue ;; 22686 -l*) ;; 22687 *) ac_lib="-l$ac_lib" ;; 22688 esac 22689 LIBS=" $ac_lib $ac_save_LIBS" 22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22691 /* end confdefs.h. */ 22692 #ifdef HAVE_UTIL_H 22693 #include <util.h> 22694 #endif 22695 int 22696 main (void) 22697 { 22698 pidfile(0) 22699 ; 22700 return 0; 22701 } 22702 _ACEOF 22703 if ac_fn_c_try_link "$LINENO" 22704 then : 22705 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 22706 fi 22707 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22708 conftest$ac_exeext conftest.$ac_ext 22709 done 22710 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 22711 LIBS="$ac_save_LIBS" 22712 fi 22713 22714 fi 22715 22716 22717 eval "ac_res=\$ac_cv_funclib_pidfile" 22718 22719 if false; then 22720 ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile" 22721 if test "x$ac_cv_func_pidfile" = xyes 22722 then : 22723 printf "%s\n" "#define HAVE_PIDFILE 1" >>confdefs.h 22724 22725 fi 22726 22727 fi 22728 # pidfile 22729 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22730 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22731 eval "LIB_pidfile=$ac_res" 22732 22733 case "$ac_res" in 22734 yes) 22735 eval "ac_cv_func_pidfile=yes" 22736 eval "LIB_pidfile=" 22737 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22738 22739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22740 printf "%s\n" "yes" >&6; } 22741 ;; 22742 no) 22743 eval "ac_cv_func_pidfile=no" 22744 eval "LIB_pidfile=" 22745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22746 printf "%s\n" "no" >&6; } 22747 ;; 22748 *) 22749 eval "ac_cv_func_pidfile=yes" 22750 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22751 22752 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22753 22754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22755 printf "%s\n" "yes, in $ac_res" >&6; } 22756 ;; 22757 esac 22758 22759 22760 22761 22762 22763 22764 22765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 22766 printf %s "checking for getaddrinfo... " >&6; } 22767 if test ${ac_cv_funclib_getaddrinfo+y} 22768 then : 22769 printf %s "(cached) " >&6 22770 else $as_nop 22771 22772 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 22773 ac_save_LIBS="$LIBS" 22774 for ac_lib in "" ; do 22775 case "$ac_lib" in 22776 "") ;; 22777 yes) ac_lib="" ;; 22778 no) continue ;; 22779 -l*) ;; 22780 *) ac_lib="-l$ac_lib" ;; 22781 esac 22782 LIBS=" $ac_lib $ac_save_LIBS" 22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22784 /* end confdefs.h. */ 22785 #ifdef HAVE_NETDB_H 22786 #include <netdb.h> 22787 #endif 22788 #ifdef HAVE_WS2TCPIP_H 22789 #include <ws2tcpip.h> 22790 #endif 22791 int 22792 main (void) 22793 { 22794 getaddrinfo(0,0,0,0) 22795 ; 22796 return 0; 22797 } 22798 _ACEOF 22799 if ac_fn_c_try_link "$LINENO" 22800 then : 22801 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 22802 fi 22803 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22804 conftest$ac_exeext conftest.$ac_ext 22805 done 22806 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 22807 LIBS="$ac_save_LIBS" 22808 fi 22809 22810 fi 22811 22812 22813 eval "ac_res=\$ac_cv_funclib_getaddrinfo" 22814 22815 if false; then 22816 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22817 if test "x$ac_cv_func_getaddrinfo" = xyes 22818 then : 22819 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 22820 22821 fi 22822 22823 fi 22824 # getaddrinfo 22825 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22826 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22827 eval "LIB_getaddrinfo=$ac_res" 22828 22829 case "$ac_res" in 22830 yes) 22831 eval "ac_cv_func_getaddrinfo=yes" 22832 eval "LIB_getaddrinfo=" 22833 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22834 22835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22836 printf "%s\n" "yes" >&6; } 22837 ;; 22838 no) 22839 eval "ac_cv_func_getaddrinfo=no" 22840 eval "LIB_getaddrinfo=" 22841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22842 printf "%s\n" "no" >&6; } 22843 ;; 22844 *) 22845 eval "ac_cv_func_getaddrinfo=yes" 22846 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22847 22848 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22849 22850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22851 printf "%s\n" "yes, in $ac_res" >&6; } 22852 ;; 22853 esac 22854 22855 22856 if test -n "$LIB_getaddrinfo"; then 22857 LIBS="$LIB_getaddrinfo $LIBS" 22858 fi 22859 22860 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 22861 case " $LIBOBJS " in 22862 *" getaddrinfo.$ac_objext "* ) ;; 22863 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 22864 ;; 22865 esac 22866 22867 fi 22868 22869 22870 22871 22872 22873 22874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 22875 printf %s "checking for getnameinfo... " >&6; } 22876 if test ${ac_cv_funclib_getnameinfo+y} 22877 then : 22878 printf %s "(cached) " >&6 22879 else $as_nop 22880 22881 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 22882 ac_save_LIBS="$LIBS" 22883 for ac_lib in "" ; do 22884 case "$ac_lib" in 22885 "") ;; 22886 yes) ac_lib="" ;; 22887 no) continue ;; 22888 -l*) ;; 22889 *) ac_lib="-l$ac_lib" ;; 22890 esac 22891 LIBS=" $ac_lib $ac_save_LIBS" 22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22893 /* end confdefs.h. */ 22894 #ifdef HAVE_NETDB_H 22895 #include <netdb.h> 22896 #endif 22897 #ifdef HAVE_WS2TCPIP_H 22898 #include <ws2tcpip.h> 22899 #endif 22900 int 22901 main (void) 22902 { 22903 getnameinfo(0,0,0,0,0,0,0) 22904 ; 22905 return 0; 22906 } 22907 _ACEOF 22908 if ac_fn_c_try_link "$LINENO" 22909 then : 22910 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 22911 fi 22912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22913 conftest$ac_exeext conftest.$ac_ext 22914 done 22915 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 22916 LIBS="$ac_save_LIBS" 22917 fi 22918 22919 fi 22920 22921 22922 eval "ac_res=\$ac_cv_funclib_getnameinfo" 22923 22924 if false; then 22925 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 22926 if test "x$ac_cv_func_getnameinfo" = xyes 22927 then : 22928 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 22929 22930 fi 22931 22932 fi 22933 # getnameinfo 22934 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22935 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22936 eval "LIB_getnameinfo=$ac_res" 22937 22938 case "$ac_res" in 22939 yes) 22940 eval "ac_cv_func_getnameinfo=yes" 22941 eval "LIB_getnameinfo=" 22942 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22943 22944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22945 printf "%s\n" "yes" >&6; } 22946 ;; 22947 no) 22948 eval "ac_cv_func_getnameinfo=no" 22949 eval "LIB_getnameinfo=" 22950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22951 printf "%s\n" "no" >&6; } 22952 ;; 22953 *) 22954 eval "ac_cv_func_getnameinfo=yes" 22955 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 22956 22957 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 22958 22959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 22960 printf "%s\n" "yes, in $ac_res" >&6; } 22961 ;; 22962 esac 22963 22964 22965 if test -n "$LIB_getnameinfo"; then 22966 LIBS="$LIB_getnameinfo $LIBS" 22967 fi 22968 22969 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 22970 case " $LIBOBJS " in 22971 *" getnameinfo.$ac_objext "* ) ;; 22972 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 22973 ;; 22974 esac 22975 22976 fi 22977 22978 22979 22980 22981 22982 22983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5 22984 printf %s "checking for freeaddrinfo... " >&6; } 22985 if test ${ac_cv_funclib_freeaddrinfo+y} 22986 then : 22987 printf %s "(cached) " >&6 22988 else $as_nop 22989 22990 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 22991 ac_save_LIBS="$LIBS" 22992 for ac_lib in "" ; do 22993 case "$ac_lib" in 22994 "") ;; 22995 yes) ac_lib="" ;; 22996 no) continue ;; 22997 -l*) ;; 22998 *) ac_lib="-l$ac_lib" ;; 22999 esac 23000 LIBS=" $ac_lib $ac_save_LIBS" 23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23002 /* end confdefs.h. */ 23003 #ifdef HAVE_NETDB_H 23004 #include <netdb.h> 23005 #endif 23006 #ifdef HAVE_WS2TCPIP_H 23007 #include <ws2tcpip.h> 23008 #endif 23009 int 23010 main (void) 23011 { 23012 freeaddrinfo(0) 23013 ; 23014 return 0; 23015 } 23016 _ACEOF 23017 if ac_fn_c_try_link "$LINENO" 23018 then : 23019 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 23020 fi 23021 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23022 conftest$ac_exeext conftest.$ac_ext 23023 done 23024 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 23025 LIBS="$ac_save_LIBS" 23026 fi 23027 23028 fi 23029 23030 23031 eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 23032 23033 if false; then 23034 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" 23035 if test "x$ac_cv_func_freeaddrinfo" = xyes 23036 then : 23037 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 23038 23039 fi 23040 23041 fi 23042 # freeaddrinfo 23043 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23044 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23045 eval "LIB_freeaddrinfo=$ac_res" 23046 23047 case "$ac_res" in 23048 yes) 23049 eval "ac_cv_func_freeaddrinfo=yes" 23050 eval "LIB_freeaddrinfo=" 23051 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23052 23053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23054 printf "%s\n" "yes" >&6; } 23055 ;; 23056 no) 23057 eval "ac_cv_func_freeaddrinfo=no" 23058 eval "LIB_freeaddrinfo=" 23059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23060 printf "%s\n" "no" >&6; } 23061 ;; 23062 *) 23063 eval "ac_cv_func_freeaddrinfo=yes" 23064 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23065 23066 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 23067 23068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 23069 printf "%s\n" "yes, in $ac_res" >&6; } 23070 ;; 23071 esac 23072 23073 23074 if test -n "$LIB_freeaddrinfo"; then 23075 LIBS="$LIB_freeaddrinfo $LIBS" 23076 fi 23077 23078 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 23079 case " $LIBOBJS " in 23080 *" freeaddrinfo.$ac_objext "* ) ;; 23081 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 23082 ;; 23083 esac 23084 23085 fi 23086 23087 23088 23089 23090 23091 23092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5 23093 printf %s "checking for gai_strerror... " >&6; } 23094 if test ${ac_cv_funclib_gai_strerror+y} 23095 then : 23096 printf %s "(cached) " >&6 23097 else $as_nop 23098 23099 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 23100 ac_save_LIBS="$LIBS" 23101 for ac_lib in "" ; do 23102 case "$ac_lib" in 23103 "") ;; 23104 yes) ac_lib="" ;; 23105 no) continue ;; 23106 -l*) ;; 23107 *) ac_lib="-l$ac_lib" ;; 23108 esac 23109 LIBS=" $ac_lib $ac_save_LIBS" 23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23111 /* end confdefs.h. */ 23112 #ifdef HAVE_NETDB_H 23113 #include <netdb.h> 23114 #endif 23115 #ifdef HAVE_WS2TCPIP_H 23116 #include <ws2tcpip.h> 23117 #endif 23118 int 23119 main (void) 23120 { 23121 gai_strerror(0) 23122 ; 23123 return 0; 23124 } 23125 _ACEOF 23126 if ac_fn_c_try_link "$LINENO" 23127 then : 23128 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 23129 fi 23130 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23131 conftest$ac_exeext conftest.$ac_ext 23132 done 23133 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 23134 LIBS="$ac_save_LIBS" 23135 fi 23136 23137 fi 23138 23139 23140 eval "ac_res=\$ac_cv_funclib_gai_strerror" 23141 23142 if false; then 23143 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 23144 if test "x$ac_cv_func_gai_strerror" = xyes 23145 then : 23146 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h 23147 23148 fi 23149 23150 fi 23151 # gai_strerror 23152 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23153 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23154 eval "LIB_gai_strerror=$ac_res" 23155 23156 case "$ac_res" in 23157 yes) 23158 eval "ac_cv_func_gai_strerror=yes" 23159 eval "LIB_gai_strerror=" 23160 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23161 23162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23163 printf "%s\n" "yes" >&6; } 23164 ;; 23165 no) 23166 eval "ac_cv_func_gai_strerror=no" 23167 eval "LIB_gai_strerror=" 23168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23169 printf "%s\n" "no" >&6; } 23170 ;; 23171 *) 23172 eval "ac_cv_func_gai_strerror=yes" 23173 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 23174 23175 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 23176 23177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 23178 printf "%s\n" "yes, in $ac_res" >&6; } 23179 ;; 23180 esac 23181 23182 23183 if test -n "$LIB_gai_strerror"; then 23184 LIBS="$LIB_gai_strerror $LIBS" 23185 fi 23186 23187 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 23188 case " $LIBOBJS " in 23189 *" gai_strerror.$ac_objext "* ) ;; 23190 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 23191 ;; 23192 esac 23193 23194 fi 23195 23196 23197 case "$host_os" in 23198 darwin*) 23199 ;; 23200 *) 23201 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 23202 if test "x$ac_cv_func_daemon" = xyes 23203 then : 23204 23205 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 23206 23207 else $as_nop 23208 case " $LIBOBJS " in 23209 *" daemon.$ac_objext "* ) ;; 23210 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" 23211 ;; 23212 esac 23213 23214 fi 23215 ;; 23216 esac 23217 23218 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 23219 if test "x$ac_cv_func_chown" = xyes 23220 then : 23221 23222 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 23223 23224 else $as_nop 23225 case " $LIBOBJS " in 23226 *" chown.$ac_objext "* ) ;; 23227 *) LIBOBJS="$LIBOBJS chown.$ac_objext" 23228 ;; 23229 esac 23230 23231 fi 23232 ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent" 23233 if test "x$ac_cv_func_copyhostent" = xyes 23234 then : 23235 23236 printf "%s\n" "#define HAVE_COPYHOSTENT 1" >>confdefs.h 23237 23238 else $as_nop 23239 case " $LIBOBJS " in 23240 *" copyhostent.$ac_objext "* ) ;; 23241 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 23242 ;; 23243 esac 23244 23245 fi 23246 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 23247 if test "x$ac_cv_func_closefrom" = xyes 23248 then : 23249 23250 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h 23251 23252 else $as_nop 23253 case " $LIBOBJS " in 23254 *" closefrom.$ac_objext "* ) ;; 23255 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 23256 ;; 23257 esac 23258 23259 fi 23260 ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc" 23261 if test "x$ac_cv_func_ecalloc" = xyes 23262 then : 23263 23264 printf "%s\n" "#define HAVE_ECALLOC 1" >>confdefs.h 23265 23266 else $as_nop 23267 case " $LIBOBJS " in 23268 *" ecalloc.$ac_objext "* ) ;; 23269 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 23270 ;; 23271 esac 23272 23273 fi 23274 ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc" 23275 if test "x$ac_cv_func_emalloc" = xyes 23276 then : 23277 23278 printf "%s\n" "#define HAVE_EMALLOC 1" >>confdefs.h 23279 23280 else $as_nop 23281 case " $LIBOBJS " in 23282 *" emalloc.$ac_objext "* ) ;; 23283 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" 23284 ;; 23285 esac 23286 23287 fi 23288 ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc" 23289 if test "x$ac_cv_func_erealloc" = xyes 23290 then : 23291 23292 printf "%s\n" "#define HAVE_EREALLOC 1" >>confdefs.h 23293 23294 else $as_nop 23295 case " $LIBOBJS " in 23296 *" erealloc.$ac_objext "* ) ;; 23297 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" 23298 ;; 23299 esac 23300 23301 fi 23302 ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup" 23303 if test "x$ac_cv_func_estrdup" = xyes 23304 then : 23305 23306 printf "%s\n" "#define HAVE_ESTRDUP 1" >>confdefs.h 23307 23308 else $as_nop 23309 case " $LIBOBJS " in 23310 *" estrdup.$ac_objext "* ) ;; 23311 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" 23312 ;; 23313 esac 23314 23315 fi 23316 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" 23317 if test "x$ac_cv_func_err" = xyes 23318 then : 23319 23320 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h 23321 23322 else $as_nop 23323 case " $LIBOBJS " in 23324 *" err.$ac_objext "* ) ;; 23325 *) LIBOBJS="$LIBOBJS err.$ac_objext" 23326 ;; 23327 esac 23328 23329 fi 23330 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx" 23331 if test "x$ac_cv_func_errx" = xyes 23332 then : 23333 23334 printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h 23335 23336 else $as_nop 23337 case " $LIBOBJS " in 23338 *" errx.$ac_objext "* ) ;; 23339 *) LIBOBJS="$LIBOBJS errx.$ac_objext" 23340 ;; 23341 esac 23342 23343 fi 23344 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 23345 if test "x$ac_cv_func_fchown" = xyes 23346 then : 23347 23348 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h 23349 23350 else $as_nop 23351 case " $LIBOBJS " in 23352 *" fchown.$ac_objext "* ) ;; 23353 *) LIBOBJS="$LIBOBJS fchown.$ac_objext" 23354 ;; 23355 esac 23356 23357 fi 23358 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 23359 if test "x$ac_cv_func_flock" = xyes 23360 then : 23361 23362 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h 23363 23364 else $as_nop 23365 case " $LIBOBJS " in 23366 *" flock.$ac_objext "* ) ;; 23367 *) LIBOBJS="$LIBOBJS flock.$ac_objext" 23368 ;; 23369 esac 23370 23371 fi 23372 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 23373 if test "x$ac_cv_func_fnmatch" = xyes 23374 then : 23375 23376 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h 23377 23378 else $as_nop 23379 case " $LIBOBJS " in 23380 *" fnmatch.$ac_objext "* ) ;; 23381 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 23382 ;; 23383 esac 23384 23385 fi 23386 ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent" 23387 if test "x$ac_cv_func_freehostent" = xyes 23388 then : 23389 23390 printf "%s\n" "#define HAVE_FREEHOSTENT 1" >>confdefs.h 23391 23392 else $as_nop 23393 case " $LIBOBJS " in 23394 *" freehostent.$ac_objext "* ) ;; 23395 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" 23396 ;; 23397 esac 23398 23399 fi 23400 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 23401 if test "x$ac_cv_func_getcwd" = xyes 23402 then : 23403 23404 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h 23405 23406 else $as_nop 23407 case " $LIBOBJS " in 23408 *" getcwd.$ac_objext "* ) ;; 23409 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 23410 ;; 23411 esac 23412 23413 fi 23414 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 23415 if test "x$ac_cv_func_getdtablesize" = xyes 23416 then : 23417 23418 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 23419 23420 else $as_nop 23421 case " $LIBOBJS " in 23422 *" getdtablesize.$ac_objext "* ) ;; 23423 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 23424 ;; 23425 esac 23426 23427 fi 23428 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 23429 if test "x$ac_cv_func_getegid" = xyes 23430 then : 23431 23432 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h 23433 23434 else $as_nop 23435 case " $LIBOBJS " in 23436 *" getegid.$ac_objext "* ) ;; 23437 *) LIBOBJS="$LIBOBJS getegid.$ac_objext" 23438 ;; 23439 esac 23440 23441 fi 23442 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 23443 if test "x$ac_cv_func_geteuid" = xyes 23444 then : 23445 23446 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 23447 23448 else $as_nop 23449 case " $LIBOBJS " in 23450 *" geteuid.$ac_objext "* ) ;; 23451 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" 23452 ;; 23453 esac 23454 23455 fi 23456 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" 23457 if test "x$ac_cv_func_getgid" = xyes 23458 then : 23459 23460 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h 23461 23462 else $as_nop 23463 case " $LIBOBJS " in 23464 *" getgid.$ac_objext "* ) ;; 23465 *) LIBOBJS="$LIBOBJS getgid.$ac_objext" 23466 ;; 23467 esac 23468 23469 fi 23470 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 23471 if test "x$ac_cv_func_gethostname" = xyes 23472 then : 23473 23474 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 23475 23476 else $as_nop 23477 case " $LIBOBJS " in 23478 *" gethostname.$ac_objext "* ) ;; 23479 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" 23480 ;; 23481 esac 23482 23483 fi 23484 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 23485 if test "x$ac_cv_func_getifaddrs" = xyes 23486 then : 23487 23488 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 23489 23490 else $as_nop 23491 case " $LIBOBJS " in 23492 *" getifaddrs.$ac_objext "* ) ;; 23493 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 23494 ;; 23495 esac 23496 23497 fi 23498 ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr" 23499 if test "x$ac_cv_func_getipnodebyaddr" = xyes 23500 then : 23501 23502 printf "%s\n" "#define HAVE_GETIPNODEBYADDR 1" >>confdefs.h 23503 23504 else $as_nop 23505 case " $LIBOBJS " in 23506 *" getipnodebyaddr.$ac_objext "* ) ;; 23507 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 23508 ;; 23509 esac 23510 23511 fi 23512 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 23513 if test "x$ac_cv_func_getipnodebyname" = xyes 23514 then : 23515 23516 printf "%s\n" "#define HAVE_GETIPNODEBYNAME 1" >>confdefs.h 23517 23518 else $as_nop 23519 case " $LIBOBJS " in 23520 *" getipnodebyname.$ac_objext "* ) ;; 23521 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 23522 ;; 23523 esac 23524 23525 fi 23526 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 23527 if test "x$ac_cv_func_getopt" = xyes 23528 then : 23529 23530 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h 23531 23532 else $as_nop 23533 case " $LIBOBJS " in 23534 *" getopt.$ac_objext "* ) ;; 23535 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 23536 ;; 23537 esac 23538 23539 fi 23540 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 23541 if test "x$ac_cv_func_gettimeofday" = xyes 23542 then : 23543 23544 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 23545 23546 else $as_nop 23547 case " $LIBOBJS " in 23548 *" gettimeofday.$ac_objext "* ) ;; 23549 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 23550 ;; 23551 esac 23552 23553 fi 23554 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 23555 if test "x$ac_cv_func_getuid" = xyes 23556 then : 23557 23558 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 23559 23560 else $as_nop 23561 case " $LIBOBJS " in 23562 *" getuid.$ac_objext "* ) ;; 23563 *) LIBOBJS="$LIBOBJS getuid.$ac_objext" 23564 ;; 23565 esac 23566 23567 fi 23568 ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell" 23569 if test "x$ac_cv_func_getusershell" = xyes 23570 then : 23571 23572 printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h 23573 23574 else $as_nop 23575 case " $LIBOBJS " in 23576 *" getusershell.$ac_objext "* ) ;; 23577 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" 23578 ;; 23579 esac 23580 23581 fi 23582 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 23583 if test "x$ac_cv_func_initgroups" = xyes 23584 then : 23585 23586 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 23587 23588 else $as_nop 23589 case " $LIBOBJS " in 23590 *" initgroups.$ac_objext "* ) ;; 23591 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" 23592 ;; 23593 esac 23594 23595 fi 23596 ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr" 23597 if test "x$ac_cv_func_innetgr" = xyes 23598 then : 23599 23600 printf "%s\n" "#define HAVE_INNETGR 1" >>confdefs.h 23601 23602 else $as_nop 23603 case " $LIBOBJS " in 23604 *" innetgr.$ac_objext "* ) ;; 23605 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" 23606 ;; 23607 esac 23608 23609 fi 23610 ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok" 23611 if test "x$ac_cv_func_iruserok" = xyes 23612 then : 23613 23614 printf "%s\n" "#define HAVE_IRUSEROK 1" >>confdefs.h 23615 23616 else $as_nop 23617 case " $LIBOBJS " in 23618 *" iruserok.$ac_objext "* ) ;; 23619 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" 23620 ;; 23621 esac 23622 23623 fi 23624 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 23625 if test "x$ac_cv_func_localtime_r" = xyes 23626 then : 23627 23628 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 23629 23630 else $as_nop 23631 case " $LIBOBJS " in 23632 *" localtime_r.$ac_objext "* ) ;; 23633 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 23634 ;; 23635 esac 23636 23637 fi 23638 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 23639 if test "x$ac_cv_func_lstat" = xyes 23640 then : 23641 23642 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h 23643 23644 else $as_nop 23645 case " $LIBOBJS " in 23646 *" lstat.$ac_objext "* ) ;; 23647 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 23648 ;; 23649 esac 23650 23651 fi 23652 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 23653 if test "x$ac_cv_func_memmove" = xyes 23654 then : 23655 23656 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 23657 23658 else $as_nop 23659 case " $LIBOBJS " in 23660 *" memmove.$ac_objext "* ) ;; 23661 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 23662 ;; 23663 esac 23664 23665 fi 23666 ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s" 23667 if test "x$ac_cv_func_memset_s" = xyes 23668 then : 23669 23670 printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h 23671 23672 else $as_nop 23673 case " $LIBOBJS " in 23674 *" memset_s.$ac_objext "* ) ;; 23675 *) LIBOBJS="$LIBOBJS memset_s.$ac_objext" 23676 ;; 23677 esac 23678 23679 fi 23680 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 23681 if test "x$ac_cv_func_mkstemp" = xyes 23682 then : 23683 23684 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 23685 23686 else $as_nop 23687 case " $LIBOBJS " in 23688 *" mkstemp.$ac_objext "* ) ;; 23689 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 23690 ;; 23691 esac 23692 23693 fi 23694 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 23695 if test "x$ac_cv_func_putenv" = xyes 23696 then : 23697 23698 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h 23699 23700 else $as_nop 23701 case " $LIBOBJS " in 23702 *" putenv.$ac_objext "* ) ;; 23703 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" 23704 ;; 23705 esac 23706 23707 fi 23708 ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd" 23709 if test "x$ac_cv_func_rcmd" = xyes 23710 then : 23711 23712 printf "%s\n" "#define HAVE_RCMD 1" >>confdefs.h 23713 23714 else $as_nop 23715 case " $LIBOBJS " in 23716 *" rcmd.$ac_objext "* ) ;; 23717 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" 23718 ;; 23719 esac 23720 23721 fi 23722 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" 23723 if test "x$ac_cv_func_readv" = xyes 23724 then : 23725 23726 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h 23727 23728 else $as_nop 23729 case " $LIBOBJS " in 23730 *" readv.$ac_objext "* ) ;; 23731 *) LIBOBJS="$LIBOBJS readv.$ac_objext" 23732 ;; 23733 esac 23734 23735 fi 23736 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 23737 if test "x$ac_cv_func_recvmsg" = xyes 23738 then : 23739 23740 printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h 23741 23742 else $as_nop 23743 case " $LIBOBJS " in 23744 *" recvmsg.$ac_objext "* ) ;; 23745 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 23746 ;; 23747 esac 23748 23749 fi 23750 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 23751 if test "x$ac_cv_func_sendmsg" = xyes 23752 then : 23753 23754 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 23755 23756 else $as_nop 23757 case " $LIBOBJS " in 23758 *" sendmsg.$ac_objext "* ) ;; 23759 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 23760 ;; 23761 esac 23762 23763 fi 23764 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" 23765 if test "x$ac_cv_func_setegid" = xyes 23766 then : 23767 23768 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h 23769 23770 else $as_nop 23771 case " $LIBOBJS " in 23772 *" setegid.$ac_objext "* ) ;; 23773 *) LIBOBJS="$LIBOBJS setegid.$ac_objext" 23774 ;; 23775 esac 23776 23777 fi 23778 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 23779 if test "x$ac_cv_func_setenv" = xyes 23780 then : 23781 23782 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h 23783 23784 else $as_nop 23785 case " $LIBOBJS " in 23786 *" setenv.$ac_objext "* ) ;; 23787 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 23788 ;; 23789 esac 23790 23791 fi 23792 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 23793 if test "x$ac_cv_func_seteuid" = xyes 23794 then : 23795 23796 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 23797 23798 else $as_nop 23799 case " $LIBOBJS " in 23800 *" seteuid.$ac_objext "* ) ;; 23801 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 23802 ;; 23803 esac 23804 23805 fi 23806 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 23807 if test "x$ac_cv_func_strcasecmp" = xyes 23808 then : 23809 23810 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 23811 23812 else $as_nop 23813 case " $LIBOBJS " in 23814 *" strcasecmp.$ac_objext "* ) ;; 23815 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 23816 ;; 23817 esac 23818 23819 fi 23820 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 23821 if test "x$ac_cv_func_strdup" = xyes 23822 then : 23823 23824 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 23825 23826 else $as_nop 23827 case " $LIBOBJS " in 23828 *" strdup.$ac_objext "* ) ;; 23829 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 23830 ;; 23831 esac 23832 23833 fi 23834 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 23835 if test "x$ac_cv_func_strerror" = xyes 23836 then : 23837 23838 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h 23839 23840 else $as_nop 23841 case " $LIBOBJS " in 23842 *" strerror.$ac_objext "* ) ;; 23843 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 23844 ;; 23845 esac 23846 23847 fi 23848 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 23849 if test "x$ac_cv_func_strftime" = xyes 23850 then : 23851 23852 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 23853 23854 else $as_nop 23855 case " $LIBOBJS " in 23856 *" strftime.$ac_objext "* ) ;; 23857 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 23858 ;; 23859 esac 23860 23861 fi 23862 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 23863 if test "x$ac_cv_func_strlcat" = xyes 23864 then : 23865 23866 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 23867 23868 else $as_nop 23869 case " $LIBOBJS " in 23870 *" strlcat.$ac_objext "* ) ;; 23871 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 23872 ;; 23873 esac 23874 23875 fi 23876 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 23877 if test "x$ac_cv_func_strlcpy" = xyes 23878 then : 23879 23880 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 23881 23882 else $as_nop 23883 case " $LIBOBJS " in 23884 *" strlcpy.$ac_objext "* ) ;; 23885 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 23886 ;; 23887 esac 23888 23889 fi 23890 ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr" 23891 if test "x$ac_cv_func_strlwr" = xyes 23892 then : 23893 23894 printf "%s\n" "#define HAVE_STRLWR 1" >>confdefs.h 23895 23896 else $as_nop 23897 case " $LIBOBJS " in 23898 *" strlwr.$ac_objext "* ) ;; 23899 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" 23900 ;; 23901 esac 23902 23903 fi 23904 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 23905 if test "x$ac_cv_func_strncasecmp" = xyes 23906 then : 23907 23908 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 23909 23910 else $as_nop 23911 case " $LIBOBJS " in 23912 *" strncasecmp.$ac_objext "* ) ;; 23913 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 23914 ;; 23915 esac 23916 23917 fi 23918 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 23919 if test "x$ac_cv_func_strndup" = xyes 23920 then : 23921 23922 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 23923 23924 else $as_nop 23925 case " $LIBOBJS " in 23926 *" strndup.$ac_objext "* ) ;; 23927 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 23928 ;; 23929 esac 23930 23931 fi 23932 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 23933 if test "x$ac_cv_func_strnlen" = xyes 23934 then : 23935 23936 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 23937 23938 else $as_nop 23939 case " $LIBOBJS " in 23940 *" strnlen.$ac_objext "* ) ;; 23941 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 23942 ;; 23943 esac 23944 23945 fi 23946 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 23947 if test "x$ac_cv_func_strptime" = xyes 23948 then : 23949 23950 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 23951 23952 else $as_nop 23953 case " $LIBOBJS " in 23954 *" strptime.$ac_objext "* ) ;; 23955 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 23956 ;; 23957 esac 23958 23959 fi 23960 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 23961 if test "x$ac_cv_func_strsep" = xyes 23962 then : 23963 23964 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 23965 23966 else $as_nop 23967 case " $LIBOBJS " in 23968 *" strsep.$ac_objext "* ) ;; 23969 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 23970 ;; 23971 esac 23972 23973 fi 23974 ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy" 23975 if test "x$ac_cv_func_strsep_copy" = xyes 23976 then : 23977 23978 printf "%s\n" "#define HAVE_STRSEP_COPY 1" >>confdefs.h 23979 23980 else $as_nop 23981 case " $LIBOBJS " in 23982 *" strsep_copy.$ac_objext "* ) ;; 23983 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 23984 ;; 23985 esac 23986 23987 fi 23988 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 23989 if test "x$ac_cv_func_strtok_r" = xyes 23990 then : 23991 23992 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 23993 23994 else $as_nop 23995 case " $LIBOBJS " in 23996 *" strtok_r.$ac_objext "* ) ;; 23997 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 23998 ;; 23999 esac 24000 24001 fi 24002 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 24003 if test "x$ac_cv_func_strtoll" = xyes 24004 then : 24005 24006 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 24007 24008 else $as_nop 24009 case " $LIBOBJS " in 24010 *" strtoll.$ac_objext "* ) ;; 24011 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" 24012 ;; 24013 esac 24014 24015 fi 24016 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 24017 if test "x$ac_cv_func_strtoull" = xyes 24018 then : 24019 24020 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h 24021 24022 else $as_nop 24023 case " $LIBOBJS " in 24024 *" strtoull.$ac_objext "* ) ;; 24025 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 24026 ;; 24027 esac 24028 24029 fi 24030 ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr" 24031 if test "x$ac_cv_func_strupr" = xyes 24032 then : 24033 24034 printf "%s\n" "#define HAVE_STRUPR 1" >>confdefs.h 24035 24036 else $as_nop 24037 case " $LIBOBJS " in 24038 *" strupr.$ac_objext "* ) ;; 24039 *) LIBOBJS="$LIBOBJS strupr.$ac_objext" 24040 ;; 24041 esac 24042 24043 fi 24044 ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab" 24045 if test "x$ac_cv_func_swab" = xyes 24046 then : 24047 24048 printf "%s\n" "#define HAVE_SWAB 1" >>confdefs.h 24049 24050 else $as_nop 24051 case " $LIBOBJS " in 24052 *" swab.$ac_objext "* ) ;; 24053 *) LIBOBJS="$LIBOBJS swab.$ac_objext" 24054 ;; 24055 esac 24056 24057 fi 24058 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 24059 if test "x$ac_cv_func_tsearch" = xyes 24060 then : 24061 24062 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h 24063 24064 else $as_nop 24065 case " $LIBOBJS " in 24066 *" tsearch.$ac_objext "* ) ;; 24067 *) LIBOBJS="$LIBOBJS tsearch.$ac_objext" 24068 ;; 24069 esac 24070 24071 fi 24072 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 24073 if test "x$ac_cv_func_timegm" = xyes 24074 then : 24075 24076 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 24077 24078 else $as_nop 24079 case " $LIBOBJS " in 24080 *" timegm.$ac_objext "* ) ;; 24081 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 24082 ;; 24083 esac 24084 24085 fi 24086 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 24087 if test "x$ac_cv_func_unsetenv" = xyes 24088 then : 24089 24090 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h 24091 24092 else $as_nop 24093 case " $LIBOBJS " in 24094 *" unsetenv.$ac_objext "* ) ;; 24095 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 24096 ;; 24097 esac 24098 24099 fi 24100 ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr" 24101 if test "x$ac_cv_func_verr" = xyes 24102 then : 24103 24104 printf "%s\n" "#define HAVE_VERR 1" >>confdefs.h 24105 24106 else $as_nop 24107 case " $LIBOBJS " in 24108 *" verr.$ac_objext "* ) ;; 24109 *) LIBOBJS="$LIBOBJS verr.$ac_objext" 24110 ;; 24111 esac 24112 24113 fi 24114 ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx" 24115 if test "x$ac_cv_func_verrx" = xyes 24116 then : 24117 24118 printf "%s\n" "#define HAVE_VERRX 1" >>confdefs.h 24119 24120 else $as_nop 24121 case " $LIBOBJS " in 24122 *" verrx.$ac_objext "* ) ;; 24123 *) LIBOBJS="$LIBOBJS verrx.$ac_objext" 24124 ;; 24125 esac 24126 24127 fi 24128 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" 24129 if test "x$ac_cv_func_vsyslog" = xyes 24130 then : 24131 24132 printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h 24133 24134 else $as_nop 24135 case " $LIBOBJS " in 24136 *" vsyslog.$ac_objext "* ) ;; 24137 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 24138 ;; 24139 esac 24140 24141 fi 24142 ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn" 24143 if test "x$ac_cv_func_vwarn" = xyes 24144 then : 24145 24146 printf "%s\n" "#define HAVE_VWARN 1" >>confdefs.h 24147 24148 else $as_nop 24149 case " $LIBOBJS " in 24150 *" vwarn.$ac_objext "* ) ;; 24151 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" 24152 ;; 24153 esac 24154 24155 fi 24156 ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx" 24157 if test "x$ac_cv_func_vwarnx" = xyes 24158 then : 24159 24160 printf "%s\n" "#define HAVE_VWARNX 1" >>confdefs.h 24161 24162 else $as_nop 24163 case " $LIBOBJS " in 24164 *" vwarnx.$ac_objext "* ) ;; 24165 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 24166 ;; 24167 esac 24168 24169 fi 24170 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" 24171 if test "x$ac_cv_func_warn" = xyes 24172 then : 24173 24174 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h 24175 24176 else $as_nop 24177 case " $LIBOBJS " in 24178 *" warn.$ac_objext "* ) ;; 24179 *) LIBOBJS="$LIBOBJS warn.$ac_objext" 24180 ;; 24181 esac 24182 24183 fi 24184 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx" 24185 if test "x$ac_cv_func_warnx" = xyes 24186 then : 24187 24188 printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h 24189 24190 else $as_nop 24191 case " $LIBOBJS " in 24192 *" warnx.$ac_objext "* ) ;; 24193 *) LIBOBJS="$LIBOBJS warnx.$ac_objext" 24194 ;; 24195 esac 24196 24197 fi 24198 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 24199 if test "x$ac_cv_func_writev" = xyes 24200 then : 24201 24202 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 24203 24204 else $as_nop 24205 case " $LIBOBJS " in 24206 *" writev.$ac_objext "* ) ;; 24207 *) LIBOBJS="$LIBOBJS writev.$ac_objext" 24208 ;; 24209 esac 24210 24211 fi 24212 24213 24214 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then 24215 have_fnmatch_h_TRUE= 24216 have_fnmatch_h_FALSE='#' 24217 else 24218 have_fnmatch_h_TRUE='#' 24219 have_fnmatch_h_FALSE= 24220 fi 24221 24222 24223 24224 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 24225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5 24226 printf %s "checking if strndup needs a prototype... " >&6; } 24227 if test ${ac_cv_func_strndup_noproto+y} 24228 then : 24229 printf %s "(cached) " >&6 24230 else $as_nop 24231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24232 /* end confdefs.h. */ 24233 #include <string.h> 24234 struct foo { int foo; } xx; 24235 extern int strndup (struct foo*); 24236 int 24237 main (void) 24238 { 24239 strndup(&xx) 24240 ; 24241 return 0; 24242 } 24243 _ACEOF 24244 if ac_fn_c_try_compile "$LINENO" 24245 then : 24246 eval "ac_cv_func_strndup_noproto=yes" 24247 else $as_nop 24248 eval "ac_cv_func_strndup_noproto=no" 24249 fi 24250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24251 fi 24252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5 24253 printf "%s\n" "$ac_cv_func_strndup_noproto" >&6; } 24254 if test "$ac_cv_func_strndup_noproto" = yes; then 24255 24256 printf "%s\n" "#define NEED_STRNDUP_PROTO 1" >>confdefs.h 24257 24258 fi 24259 fi 24260 24261 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 24262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5 24263 printf %s "checking if strsep needs a prototype... " >&6; } 24264 if test ${ac_cv_func_strsep_noproto+y} 24265 then : 24266 printf %s "(cached) " >&6 24267 else $as_nop 24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24269 /* end confdefs.h. */ 24270 #include <string.h> 24271 struct foo { int foo; } xx; 24272 extern int strsep (struct foo*); 24273 int 24274 main (void) 24275 { 24276 strsep(&xx) 24277 ; 24278 return 0; 24279 } 24280 _ACEOF 24281 if ac_fn_c_try_compile "$LINENO" 24282 then : 24283 eval "ac_cv_func_strsep_noproto=yes" 24284 else $as_nop 24285 eval "ac_cv_func_strsep_noproto=no" 24286 fi 24287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24288 fi 24289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5 24290 printf "%s\n" "$ac_cv_func_strsep_noproto" >&6; } 24291 if test "$ac_cv_func_strsep_noproto" = yes; then 24292 24293 printf "%s\n" "#define NEED_STRSEP_PROTO 1" >>confdefs.h 24294 24295 fi 24296 fi 24297 24298 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 24299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5 24300 printf %s "checking if strtok_r needs a prototype... " >&6; } 24301 if test ${ac_cv_func_strtok_r_noproto+y} 24302 then : 24303 printf %s "(cached) " >&6 24304 else $as_nop 24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24306 /* end confdefs.h. */ 24307 #include <string.h> 24308 struct foo { int foo; } xx; 24309 extern int strtok_r (struct foo*); 24310 int 24311 main (void) 24312 { 24313 strtok_r(&xx) 24314 ; 24315 return 0; 24316 } 24317 _ACEOF 24318 if ac_fn_c_try_compile "$LINENO" 24319 then : 24320 eval "ac_cv_func_strtok_r_noproto=yes" 24321 else $as_nop 24322 eval "ac_cv_func_strtok_r_noproto=no" 24323 fi 24324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24325 fi 24326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5 24327 printf "%s\n" "$ac_cv_func_strtok_r_noproto" >&6; } 24328 if test "$ac_cv_func_strtok_r_noproto" = yes; then 24329 24330 printf "%s\n" "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h 24331 24332 fi 24333 fi 24334 24335 24336 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 24337 if test "x$ac_cv_func_strtoll" = xyes 24338 then : 24339 24340 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 24341 24342 fi 24343 24344 24345 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 24346 if test "x$ac_cv_func_strtoull" = xyes 24347 then : 24348 24349 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h 24350 24351 fi 24352 24353 24354 24355 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 24356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5 24357 printf %s "checking if strsvis needs a prototype... " >&6; } 24358 if test ${ac_cv_func_strsvis_noproto+y} 24359 then : 24360 printf %s "(cached) " >&6 24361 else $as_nop 24362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24363 /* end confdefs.h. */ 24364 #ifdef HAVE_VIS_H 24365 #include <vis.h> 24366 #endif 24367 struct foo { int foo; } xx; 24368 extern int strsvis (struct foo*); 24369 int 24370 main (void) 24371 { 24372 strsvis(&xx) 24373 ; 24374 return 0; 24375 } 24376 _ACEOF 24377 if ac_fn_c_try_compile "$LINENO" 24378 then : 24379 eval "ac_cv_func_strsvis_noproto=yes" 24380 else $as_nop 24381 eval "ac_cv_func_strsvis_noproto=no" 24382 fi 24383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24384 fi 24385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5 24386 printf "%s\n" "$ac_cv_func_strsvis_noproto" >&6; } 24387 if test "$ac_cv_func_strsvis_noproto" = yes; then 24388 24389 printf "%s\n" "#define NEED_STRSVIS_PROTO 1" >>confdefs.h 24390 24391 fi 24392 fi 24393 24394 if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then 24395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5 24396 printf %s "checking if strsvisx needs a prototype... " >&6; } 24397 if test ${ac_cv_func_strsvisx_noproto+y} 24398 then : 24399 printf %s "(cached) " >&6 24400 else $as_nop 24401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24402 /* end confdefs.h. */ 24403 #ifdef HAVE_VIS_H 24404 #include <vis.h> 24405 #endif 24406 struct foo { int foo; } xx; 24407 extern int strsvisx (struct foo*); 24408 int 24409 main (void) 24410 { 24411 strsvisx(&xx) 24412 ; 24413 return 0; 24414 } 24415 _ACEOF 24416 if ac_fn_c_try_compile "$LINENO" 24417 then : 24418 eval "ac_cv_func_strsvisx_noproto=yes" 24419 else $as_nop 24420 eval "ac_cv_func_strsvisx_noproto=no" 24421 fi 24422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24423 fi 24424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5 24425 printf "%s\n" "$ac_cv_func_strsvisx_noproto" >&6; } 24426 if test "$ac_cv_func_strsvisx_noproto" = yes; then 24427 24428 printf "%s\n" "#define NEED_STRSVISX_PROTO 1" >>confdefs.h 24429 24430 fi 24431 fi 24432 24433 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 24434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5 24435 printf %s "checking if strunvis needs a prototype... " >&6; } 24436 if test ${ac_cv_func_strunvis_noproto+y} 24437 then : 24438 printf %s "(cached) " >&6 24439 else $as_nop 24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24441 /* end confdefs.h. */ 24442 #ifdef HAVE_VIS_H 24443 #include <vis.h> 24444 #endif 24445 struct foo { int foo; } xx; 24446 extern int strunvis (struct foo*); 24447 int 24448 main (void) 24449 { 24450 strunvis(&xx) 24451 ; 24452 return 0; 24453 } 24454 _ACEOF 24455 if ac_fn_c_try_compile "$LINENO" 24456 then : 24457 eval "ac_cv_func_strunvis_noproto=yes" 24458 else $as_nop 24459 eval "ac_cv_func_strunvis_noproto=no" 24460 fi 24461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24462 fi 24463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5 24464 printf "%s\n" "$ac_cv_func_strunvis_noproto" >&6; } 24465 if test "$ac_cv_func_strunvis_noproto" = yes; then 24466 24467 printf "%s\n" "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h 24468 24469 fi 24470 fi 24471 24472 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 24473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5 24474 printf %s "checking if strvis needs a prototype... " >&6; } 24475 if test ${ac_cv_func_strvis_noproto+y} 24476 then : 24477 printf %s "(cached) " >&6 24478 else $as_nop 24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24480 /* end confdefs.h. */ 24481 #ifdef HAVE_VIS_H 24482 #include <vis.h> 24483 #endif 24484 struct foo { int foo; } xx; 24485 extern int strvis (struct foo*); 24486 int 24487 main (void) 24488 { 24489 strvis(&xx) 24490 ; 24491 return 0; 24492 } 24493 _ACEOF 24494 if ac_fn_c_try_compile "$LINENO" 24495 then : 24496 eval "ac_cv_func_strvis_noproto=yes" 24497 else $as_nop 24498 eval "ac_cv_func_strvis_noproto=no" 24499 fi 24500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24501 fi 24502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5 24503 printf "%s\n" "$ac_cv_func_strvis_noproto" >&6; } 24504 if test "$ac_cv_func_strvis_noproto" = yes; then 24505 24506 printf "%s\n" "#define NEED_STRVIS_PROTO 1" >>confdefs.h 24507 24508 fi 24509 fi 24510 24511 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 24512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5 24513 printf %s "checking if strvisx needs a prototype... " >&6; } 24514 if test ${ac_cv_func_strvisx_noproto+y} 24515 then : 24516 printf %s "(cached) " >&6 24517 else $as_nop 24518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24519 /* end confdefs.h. */ 24520 #ifdef HAVE_VIS_H 24521 #include <vis.h> 24522 #endif 24523 struct foo { int foo; } xx; 24524 extern int strvisx (struct foo*); 24525 int 24526 main (void) 24527 { 24528 strvisx(&xx) 24529 ; 24530 return 0; 24531 } 24532 _ACEOF 24533 if ac_fn_c_try_compile "$LINENO" 24534 then : 24535 eval "ac_cv_func_strvisx_noproto=yes" 24536 else $as_nop 24537 eval "ac_cv_func_strvisx_noproto=no" 24538 fi 24539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24540 fi 24541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5 24542 printf "%s\n" "$ac_cv_func_strvisx_noproto" >&6; } 24543 if test "$ac_cv_func_strvisx_noproto" = yes; then 24544 24545 printf "%s\n" "#define NEED_STRVISX_PROTO 1" >>confdefs.h 24546 24547 fi 24548 fi 24549 24550 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 24551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5 24552 printf %s "checking if svis needs a prototype... " >&6; } 24553 if test ${ac_cv_func_svis_noproto+y} 24554 then : 24555 printf %s "(cached) " >&6 24556 else $as_nop 24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24558 /* end confdefs.h. */ 24559 #ifdef HAVE_VIS_H 24560 #include <vis.h> 24561 #endif 24562 struct foo { int foo; } xx; 24563 extern int svis (struct foo*); 24564 int 24565 main (void) 24566 { 24567 svis(&xx) 24568 ; 24569 return 0; 24570 } 24571 _ACEOF 24572 if ac_fn_c_try_compile "$LINENO" 24573 then : 24574 eval "ac_cv_func_svis_noproto=yes" 24575 else $as_nop 24576 eval "ac_cv_func_svis_noproto=no" 24577 fi 24578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24579 fi 24580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5 24581 printf "%s\n" "$ac_cv_func_svis_noproto" >&6; } 24582 if test "$ac_cv_func_svis_noproto" = yes; then 24583 24584 printf "%s\n" "#define NEED_SVIS_PROTO 1" >>confdefs.h 24585 24586 fi 24587 fi 24588 24589 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 24590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5 24591 printf %s "checking if unvis needs a prototype... " >&6; } 24592 if test ${ac_cv_func_unvis_noproto+y} 24593 then : 24594 printf %s "(cached) " >&6 24595 else $as_nop 24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24597 /* end confdefs.h. */ 24598 #ifdef HAVE_VIS_H 24599 #include <vis.h> 24600 #endif 24601 struct foo { int foo; } xx; 24602 extern int unvis (struct foo*); 24603 int 24604 main (void) 24605 { 24606 unvis(&xx) 24607 ; 24608 return 0; 24609 } 24610 _ACEOF 24611 if ac_fn_c_try_compile "$LINENO" 24612 then : 24613 eval "ac_cv_func_unvis_noproto=yes" 24614 else $as_nop 24615 eval "ac_cv_func_unvis_noproto=no" 24616 fi 24617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24618 fi 24619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5 24620 printf "%s\n" "$ac_cv_func_unvis_noproto" >&6; } 24621 if test "$ac_cv_func_unvis_noproto" = yes; then 24622 24623 printf "%s\n" "#define NEED_UNVIS_PROTO 1" >>confdefs.h 24624 24625 fi 24626 fi 24627 24628 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 24629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5 24630 printf %s "checking if vis needs a prototype... " >&6; } 24631 if test ${ac_cv_func_vis_noproto+y} 24632 then : 24633 printf %s "(cached) " >&6 24634 else $as_nop 24635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24636 /* end confdefs.h. */ 24637 #ifdef HAVE_VIS_H 24638 #include <vis.h> 24639 #endif 24640 struct foo { int foo; } xx; 24641 extern int vis (struct foo*); 24642 int 24643 main (void) 24644 { 24645 vis(&xx) 24646 ; 24647 return 0; 24648 } 24649 _ACEOF 24650 if ac_fn_c_try_compile "$LINENO" 24651 then : 24652 eval "ac_cv_func_vis_noproto=yes" 24653 else $as_nop 24654 eval "ac_cv_func_vis_noproto=no" 24655 fi 24656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24657 fi 24658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5 24659 printf "%s\n" "$ac_cv_func_vis_noproto" >&6; } 24660 if test "$ac_cv_func_vis_noproto" = yes; then 24661 24662 printf "%s\n" "#define NEED_VIS_PROTO 1" >>confdefs.h 24663 24664 fi 24665 fi 24666 24667 24668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5 24669 printf %s "checking checking for dirfd... " >&6; } 24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24671 /* end confdefs.h. */ 24672 #include <sys/types.h> 24673 #ifdef HAVE_DIRENT_H 24674 #include <dirent.h> 24675 #endif 24676 24677 int 24678 main (void) 24679 { 24680 DIR *d = 0; dirfd(d); 24681 ; 24682 return 0; 24683 } 24684 _ACEOF 24685 if ac_fn_c_try_link "$LINENO" 24686 then : 24687 ac_rk_have_dirfd=yes 24688 else $as_nop 24689 ac_rk_have_dirfd=no 24690 fi 24691 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24692 conftest$ac_exeext conftest.$ac_ext 24693 if test "$ac_rk_have_dirfd" = "yes" ; then 24694 24695 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h 24696 24697 fi 24698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5 24699 printf "%s\n" "$ac_rk_have_dirfd" >&6; } 24700 24701 24702 24703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5 24704 printf %s "checking for dd_fd in DIR... " >&6; } 24705 if test ${ac_cv_type_dir_dd_fd+y} 24706 then : 24707 printf %s "(cached) " >&6 24708 else $as_nop 24709 24710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24711 /* end confdefs.h. */ 24712 #include <sys/types.h> 24713 #ifdef HAVE_DIRENT_H 24714 #include <dirent.h> 24715 #endif 24716 int 24717 main (void) 24718 { 24719 DIR x; memset(&x, 0, sizeof(x)); x.dd_fd 24720 ; 24721 return 0; 24722 } 24723 _ACEOF 24724 if ac_fn_c_try_compile "$LINENO" 24725 then : 24726 ac_cv_type_dir_dd_fd=yes 24727 else $as_nop 24728 ac_cv_type_dir_dd_fd=no 24729 fi 24730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24731 24732 fi 24733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5 24734 printf "%s\n" "$ac_cv_type_dir_dd_fd" >&6; } 24735 if test "$ac_cv_type_dir_dd_fd" = yes; then 24736 24737 24738 printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h 24739 24740 24741 fi 24742 24743 24744 24745 24746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 24747 printf %s "checking for inet_aton... " >&6; } 24748 if test ${ac_cv_func_inet_aton+y} 24749 then : 24750 printf %s "(cached) " >&6 24751 else $as_nop 24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24753 /* end confdefs.h. */ 24754 #ifdef HAVE_SYS_TYPES_H 24755 #include <sys/types.h> 24756 #endif 24757 #ifdef HAVE_SYS_SOCKET_H 24758 #include <sys/socket.h> 24759 #endif 24760 #ifdef HAVE_NETINET_IN_H 24761 #include <netinet/in.h> 24762 #endif 24763 #ifdef HAVE_ARPA_INET_H 24764 #include <arpa/inet.h> 24765 #endif 24766 int 24767 main (void) 24768 { 24769 24770 /* The GNU C library defines this for functions which it implements 24771 to always fail with ENOSYS. Some functions are actually named 24772 something starting with __ and the normal name is an alias. */ 24773 #if defined (__stub_inet_aton) || defined (__stub___inet_aton) 24774 choke me 24775 #else 24776 inet_aton(0,0); 24777 #endif 24778 24779 ; 24780 return 0; 24781 } 24782 _ACEOF 24783 if ac_fn_c_try_link "$LINENO" 24784 then : 24785 eval "ac_cv_func_inet_aton=yes" 24786 else $as_nop 24787 eval "ac_cv_func_inet_aton=no" 24788 fi 24789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24790 conftest$ac_exeext conftest.$ac_ext 24791 fi 24792 24793 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 24794 24795 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 24796 24797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24798 printf "%s\n" "yes" >&6; } 24799 else 24800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24801 printf "%s\n" "no" >&6; } 24802 case " $LIBOBJS " in 24803 *" inet_aton.$ac_objext "* ) ;; 24804 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 24805 ;; 24806 esac 24807 24808 fi 24809 24810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5 24811 printf %s "checking for inet_ntop... " >&6; } 24812 if test ${ac_cv_func_inet_ntop+y} 24813 then : 24814 printf %s "(cached) " >&6 24815 else $as_nop 24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24817 /* end confdefs.h. */ 24818 #ifdef HAVE_SYS_TYPES_H 24819 #include <sys/types.h> 24820 #endif 24821 #ifdef HAVE_SYS_SOCKET_H 24822 #include <sys/socket.h> 24823 #endif 24824 #ifdef HAVE_NETINET_IN_H 24825 #include <netinet/in.h> 24826 #endif 24827 #ifdef HAVE_ARPA_INET_H 24828 #include <arpa/inet.h> 24829 #endif 24830 int 24831 main (void) 24832 { 24833 24834 /* The GNU C library defines this for functions which it implements 24835 to always fail with ENOSYS. Some functions are actually named 24836 something starting with __ and the normal name is an alias. */ 24837 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 24838 choke me 24839 #else 24840 inet_ntop(0, 0, 0, 0); 24841 #endif 24842 24843 ; 24844 return 0; 24845 } 24846 _ACEOF 24847 if ac_fn_c_try_link "$LINENO" 24848 then : 24849 eval "ac_cv_func_inet_ntop=yes" 24850 else $as_nop 24851 eval "ac_cv_func_inet_ntop=no" 24852 fi 24853 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24854 conftest$ac_exeext conftest.$ac_ext 24855 fi 24856 24857 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 24858 24859 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 24860 24861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24862 printf "%s\n" "yes" >&6; } 24863 else 24864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24865 printf "%s\n" "no" >&6; } 24866 case " $LIBOBJS " in 24867 *" inet_ntop.$ac_objext "* ) ;; 24868 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 24869 ;; 24870 esac 24871 24872 fi 24873 24874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 24875 printf %s "checking for inet_pton... " >&6; } 24876 if test ${ac_cv_func_inet_pton+y} 24877 then : 24878 printf %s "(cached) " >&6 24879 else $as_nop 24880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24881 /* end confdefs.h. */ 24882 #ifdef HAVE_SYS_TYPES_H 24883 #include <sys/types.h> 24884 #endif 24885 #ifdef HAVE_SYS_SOCKET_H 24886 #include <sys/socket.h> 24887 #endif 24888 #ifdef HAVE_NETINET_IN_H 24889 #include <netinet/in.h> 24890 #endif 24891 #ifdef HAVE_ARPA_INET_H 24892 #include <arpa/inet.h> 24893 #endif 24894 int 24895 main (void) 24896 { 24897 24898 /* The GNU C library defines this for functions which it implements 24899 to always fail with ENOSYS. Some functions are actually named 24900 something starting with __ and the normal name is an alias. */ 24901 #if defined (__stub_inet_pton) || defined (__stub___inet_pton) 24902 choke me 24903 #else 24904 inet_pton(0,0,0); 24905 #endif 24906 24907 ; 24908 return 0; 24909 } 24910 _ACEOF 24911 if ac_fn_c_try_link "$LINENO" 24912 then : 24913 eval "ac_cv_func_inet_pton=yes" 24914 else $as_nop 24915 eval "ac_cv_func_inet_pton=no" 24916 fi 24917 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24918 conftest$ac_exeext conftest.$ac_ext 24919 fi 24920 24921 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 24922 24923 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 24924 24925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24926 printf "%s\n" "yes" >&6; } 24927 else 24928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24929 printf "%s\n" "no" >&6; } 24930 case " $LIBOBJS " in 24931 *" inet_pton.$ac_objext "* ) ;; 24932 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 24933 ;; 24934 esac 24935 24936 fi 24937 24938 24939 24940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 24941 printf %s "checking for sa_len in struct sockaddr... " >&6; } 24942 if test ${ac_cv_type_struct_sockaddr_sa_len+y} 24943 then : 24944 printf %s "(cached) " >&6 24945 else $as_nop 24946 24947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24948 /* end confdefs.h. */ 24949 #include <sys/types.h> 24950 #include <sys/socket.h> 24951 int 24952 main (void) 24953 { 24954 struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len 24955 ; 24956 return 0; 24957 } 24958 _ACEOF 24959 if ac_fn_c_try_compile "$LINENO" 24960 then : 24961 ac_cv_type_struct_sockaddr_sa_len=yes 24962 else $as_nop 24963 ac_cv_type_struct_sockaddr_sa_len=no 24964 fi 24965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24966 24967 fi 24968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 24969 printf "%s\n" "$ac_cv_type_struct_sockaddr_sa_len" >&6; } 24970 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 24971 24972 24973 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 24974 24975 24976 fi 24977 24978 24979 24980 #if test "$ac_cv_func_getaddrinfo" = "yes"; then 24981 # rk_BROKEN_GETADDRINFO 24982 # if test "$ac_cv_func_getaddrinfo_numserv" = no; then 24983 # AC_LIBOBJ(getaddrinfo) 24984 # AC_LIBOBJ(freeaddrinfo) 24985 # fi 24986 #fi 24987 24988 24989 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 24990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5 24991 printf %s "checking if setenv needs a prototype... " >&6; } 24992 if test ${ac_cv_func_setenv_noproto+y} 24993 then : 24994 printf %s "(cached) " >&6 24995 else $as_nop 24996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24997 /* end confdefs.h. */ 24998 #include <stdlib.h> 24999 struct foo { int foo; } xx; 25000 extern int setenv (struct foo*); 25001 int 25002 main (void) 25003 { 25004 setenv(&xx) 25005 ; 25006 return 0; 25007 } 25008 _ACEOF 25009 if ac_fn_c_try_compile "$LINENO" 25010 then : 25011 eval "ac_cv_func_setenv_noproto=yes" 25012 else $as_nop 25013 eval "ac_cv_func_setenv_noproto=no" 25014 fi 25015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25016 fi 25017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5 25018 printf "%s\n" "$ac_cv_func_setenv_noproto" >&6; } 25019 if test "$ac_cv_func_setenv_noproto" = yes; then 25020 25021 printf "%s\n" "#define NEED_SETENV_PROTO 1" >>confdefs.h 25022 25023 fi 25024 fi 25025 25026 25027 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 25028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5 25029 printf %s "checking if unsetenv needs a prototype... " >&6; } 25030 if test ${ac_cv_func_unsetenv_noproto+y} 25031 then : 25032 printf %s "(cached) " >&6 25033 else $as_nop 25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25035 /* end confdefs.h. */ 25036 #include <stdlib.h> 25037 struct foo { int foo; } xx; 25038 extern int unsetenv (struct foo*); 25039 int 25040 main (void) 25041 { 25042 unsetenv(&xx) 25043 ; 25044 return 0; 25045 } 25046 _ACEOF 25047 if ac_fn_c_try_compile "$LINENO" 25048 then : 25049 eval "ac_cv_func_unsetenv_noproto=yes" 25050 else $as_nop 25051 eval "ac_cv_func_unsetenv_noproto=no" 25052 fi 25053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25054 fi 25055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5 25056 printf "%s\n" "$ac_cv_func_unsetenv_noproto" >&6; } 25057 if test "$ac_cv_func_unsetenv_noproto" = yes; then 25058 25059 printf "%s\n" "#define NEED_UNSETENV_PROTO 1" >>confdefs.h 25060 25061 fi 25062 fi 25063 25064 25065 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 25066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5 25067 printf %s "checking if gethostname needs a prototype... " >&6; } 25068 if test ${ac_cv_func_gethostname_noproto+y} 25069 then : 25070 printf %s "(cached) " >&6 25071 else $as_nop 25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25073 /* end confdefs.h. */ 25074 #include <unistd.h> 25075 struct foo { int foo; } xx; 25076 extern int gethostname (struct foo*); 25077 int 25078 main (void) 25079 { 25080 gethostname(&xx) 25081 ; 25082 return 0; 25083 } 25084 _ACEOF 25085 if ac_fn_c_try_compile "$LINENO" 25086 then : 25087 eval "ac_cv_func_gethostname_noproto=yes" 25088 else $as_nop 25089 eval "ac_cv_func_gethostname_noproto=no" 25090 fi 25091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25092 fi 25093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5 25094 printf "%s\n" "$ac_cv_func_gethostname_noproto" >&6; } 25095 if test "$ac_cv_func_gethostname_noproto" = yes; then 25096 25097 printf "%s\n" "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h 25098 25099 fi 25100 fi 25101 25102 25103 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 25104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5 25105 printf %s "checking if mkstemp needs a prototype... " >&6; } 25106 if test ${ac_cv_func_mkstemp_noproto+y} 25107 then : 25108 printf %s "(cached) " >&6 25109 else $as_nop 25110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25111 /* end confdefs.h. */ 25112 #include <unistd.h> 25113 struct foo { int foo; } xx; 25114 extern int mkstemp (struct foo*); 25115 int 25116 main (void) 25117 { 25118 mkstemp(&xx) 25119 ; 25120 return 0; 25121 } 25122 _ACEOF 25123 if ac_fn_c_try_compile "$LINENO" 25124 then : 25125 eval "ac_cv_func_mkstemp_noproto=yes" 25126 else $as_nop 25127 eval "ac_cv_func_mkstemp_noproto=no" 25128 fi 25129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25130 fi 25131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5 25132 printf "%s\n" "$ac_cv_func_mkstemp_noproto" >&6; } 25133 if test "$ac_cv_func_mkstemp_noproto" = yes; then 25134 25135 printf "%s\n" "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h 25136 25137 fi 25138 fi 25139 25140 25141 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 25142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5 25143 printf %s "checking if getusershell needs a prototype... " >&6; } 25144 if test ${ac_cv_func_getusershell_noproto+y} 25145 then : 25146 printf %s "(cached) " >&6 25147 else $as_nop 25148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25149 /* end confdefs.h. */ 25150 #include <unistd.h> 25151 struct foo { int foo; } xx; 25152 extern int getusershell (struct foo*); 25153 int 25154 main (void) 25155 { 25156 getusershell(&xx) 25157 ; 25158 return 0; 25159 } 25160 _ACEOF 25161 if ac_fn_c_try_compile "$LINENO" 25162 then : 25163 eval "ac_cv_func_getusershell_noproto=yes" 25164 else $as_nop 25165 eval "ac_cv_func_getusershell_noproto=no" 25166 fi 25167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25168 fi 25169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5 25170 printf "%s\n" "$ac_cv_func_getusershell_noproto" >&6; } 25171 if test "$ac_cv_func_getusershell_noproto" = yes; then 25172 25173 printf "%s\n" "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h 25174 25175 fi 25176 fi 25177 25178 25179 if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then 25180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5 25181 printf %s "checking if daemon needs a prototype... " >&6; } 25182 if test ${ac_cv_func_daemon_noproto+y} 25183 then : 25184 printf %s "(cached) " >&6 25185 else $as_nop 25186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25187 /* end confdefs.h. */ 25188 #include <unistd.h> 25189 struct foo { int foo; } xx; 25190 extern int daemon (struct foo*); 25191 int 25192 main (void) 25193 { 25194 daemon(&xx) 25195 ; 25196 return 0; 25197 } 25198 _ACEOF 25199 if ac_fn_c_try_compile "$LINENO" 25200 then : 25201 eval "ac_cv_func_daemon_noproto=yes" 25202 else $as_nop 25203 eval "ac_cv_func_daemon_noproto=no" 25204 fi 25205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25206 fi 25207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5 25208 printf "%s\n" "$ac_cv_func_daemon_noproto" >&6; } 25209 if test "$ac_cv_func_daemon_noproto" = yes; then 25210 25211 printf "%s\n" "#define NEED_DAEMON_PROTO 1" >>confdefs.h 25212 25213 fi 25214 fi 25215 25216 25217 if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then 25218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5 25219 printf %s "checking if iruserok needs a prototype... " >&6; } 25220 if test ${ac_cv_func_iruserok_noproto+y} 25221 then : 25222 printf %s "(cached) " >&6 25223 else $as_nop 25224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25225 /* end confdefs.h. */ 25226 25227 #ifdef HAVE_SYS_TYPES_H 25228 #include <sys/types.h> 25229 #endif 25230 #ifdef HAVE_SYS_SOCKET_H 25231 #include <sys/socket.h> 25232 #endif 25233 #ifdef HAVE_NETINET_IN_H 25234 #include <netinet/in.h> 25235 #endif 25236 #ifdef HAVE_ARPA_INET_H 25237 #include <arpa/inet.h> 25238 #endif 25239 #ifdef HAVE_NETDB_H 25240 #include <netdb.h> 25241 #endif 25242 #ifdef HAVE_UNISTD_H 25243 #include <unistd.h> 25244 #endif 25245 struct foo { int foo; } xx; 25246 extern int iruserok (struct foo*); 25247 int 25248 main (void) 25249 { 25250 iruserok(&xx) 25251 ; 25252 return 0; 25253 } 25254 _ACEOF 25255 if ac_fn_c_try_compile "$LINENO" 25256 then : 25257 eval "ac_cv_func_iruserok_noproto=yes" 25258 else $as_nop 25259 eval "ac_cv_func_iruserok_noproto=no" 25260 fi 25261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25262 fi 25263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5 25264 printf "%s\n" "$ac_cv_func_iruserok_noproto" >&6; } 25265 if test "$ac_cv_func_iruserok_noproto" = yes; then 25266 25267 printf "%s\n" "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h 25268 25269 fi 25270 fi 25271 25272 25273 25274 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 25275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5 25276 printf %s "checking if inet_aton needs a prototype... " >&6; } 25277 if test ${ac_cv_func_inet_aton_noproto+y} 25278 then : 25279 printf %s "(cached) " >&6 25280 else $as_nop 25281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25282 /* end confdefs.h. */ 25283 25284 #ifdef HAVE_SYS_TYPES_H 25285 #include <sys/types.h> 25286 #endif 25287 #ifdef HAVE_SYS_SOCKET_H 25288 #include <sys/socket.h> 25289 #endif 25290 #ifdef HAVE_NETINET_IN_H 25291 #include <netinet/in.h> 25292 #endif 25293 #ifdef HAVE_ARPA_INET_H 25294 #include <arpa/inet.h> 25295 #endif 25296 struct foo { int foo; } xx; 25297 extern int inet_aton (struct foo*); 25298 int 25299 main (void) 25300 { 25301 inet_aton(&xx) 25302 ; 25303 return 0; 25304 } 25305 _ACEOF 25306 if ac_fn_c_try_compile "$LINENO" 25307 then : 25308 eval "ac_cv_func_inet_aton_noproto=yes" 25309 else $as_nop 25310 eval "ac_cv_func_inet_aton_noproto=no" 25311 fi 25312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25313 fi 25314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5 25315 printf "%s\n" "$ac_cv_func_inet_aton_noproto" >&6; } 25316 if test "$ac_cv_func_inet_aton_noproto" = yes; then 25317 25318 printf "%s\n" "#define NEED_INET_ATON_PROTO 1" >>confdefs.h 25319 25320 fi 25321 fi 25322 25323 25324 25325 25326 25327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5 25328 printf %s "checking for crypt... " >&6; } 25329 if test ${ac_cv_funclib_crypt+y} 25330 then : 25331 printf %s "(cached) " >&6 25332 else $as_nop 25333 25334 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 25335 ac_save_LIBS="$LIBS" 25336 for ac_lib in "" crypt; do 25337 case "$ac_lib" in 25338 "") ;; 25339 yes) ac_lib="" ;; 25340 no) continue ;; 25341 -l*) ;; 25342 *) ac_lib="-l$ac_lib" ;; 25343 esac 25344 LIBS=" $ac_lib $ac_save_LIBS" 25345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25346 /* end confdefs.h. */ 25347 25348 int 25349 main (void) 25350 { 25351 crypt() 25352 ; 25353 return 0; 25354 } 25355 _ACEOF 25356 if ac_fn_c_try_link "$LINENO" 25357 then : 25358 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 25359 fi 25360 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25361 conftest$ac_exeext conftest.$ac_ext 25362 done 25363 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 25364 LIBS="$ac_save_LIBS" 25365 fi 25366 25367 fi 25368 25369 25370 eval "ac_res=\$ac_cv_funclib_crypt" 25371 25372 if false; then 25373 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 25374 if test "x$ac_cv_func_crypt" = xyes 25375 then : 25376 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h 25377 25378 fi 25379 25380 fi 25381 # crypt 25382 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25383 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25384 eval "LIB_crypt=$ac_res" 25385 25386 case "$ac_res" in 25387 yes) 25388 eval "ac_cv_func_crypt=yes" 25389 eval "LIB_crypt=" 25390 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 25391 25392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25393 printf "%s\n" "yes" >&6; } 25394 ;; 25395 no) 25396 eval "ac_cv_func_crypt=no" 25397 eval "LIB_crypt=" 25398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25399 printf "%s\n" "no" >&6; } 25400 ;; 25401 *) 25402 eval "ac_cv_func_crypt=yes" 25403 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 25404 25405 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 25406 25407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 25408 printf "%s\n" "yes, in $ac_res" >&6; } 25409 ;; 25410 esac 25411 25412 25413 25414 25415 25416 25417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5 25418 printf %s "checking if strerror_r is compatible with system prototype... " >&6; } 25419 if test ${ac_cv_func_strerror_r_proto_compat+y} 25420 then : 25421 printf %s "(cached) " >&6 25422 else $as_nop 25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25424 /* end confdefs.h. */ 25425 25426 #include <stdio.h> 25427 #include <string.h> 25428 25429 int 25430 main (void) 25431 { 25432 int strerror_r(int, char *, size_t) 25433 ; 25434 return 0; 25435 } 25436 _ACEOF 25437 if ac_fn_c_try_compile "$LINENO" 25438 then : 25439 eval "ac_cv_func_strerror_r_proto_compat=yes" 25440 else $as_nop 25441 eval "ac_cv_func_strerror_r_proto_compat=no" 25442 fi 25443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25444 fi 25445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5 25446 printf "%s\n" "$ac_cv_func_strerror_r_proto_compat" >&6; } 25447 25448 if test "$ac_cv_func_strerror_r_proto_compat" = yes; then 25449 25450 printf "%s\n" "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h 25451 25452 fi 25453 25454 25455 25456 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 25457 if test "x$ac_cv_func_strerror_r" = xyes 25458 then : 25459 25460 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 25461 25462 fi 25463 25464 25465 25466 25467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5 25468 printf %s "checking if gethostbyname is compatible with system prototype... " >&6; } 25469 if test ${ac_cv_func_gethostbyname_proto_compat+y} 25470 then : 25471 printf %s "(cached) " >&6 25472 else $as_nop 25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25474 /* end confdefs.h. */ 25475 25476 #ifdef HAVE_SYS_TYPES_H 25477 #include <sys/types.h> 25478 #endif 25479 #ifdef HAVE_SYS_SOCKET_H 25480 #include <sys/socket.h> 25481 #endif 25482 #ifdef HAVE_NETINET_IN_H 25483 #include <netinet/in.h> 25484 #endif 25485 #ifdef HAVE_ARPA_INET_H 25486 #include <arpa/inet.h> 25487 #endif 25488 #ifdef HAVE_NETDB_H 25489 #include <netdb.h> 25490 #endif 25491 25492 int 25493 main (void) 25494 { 25495 struct hostent *gethostbyname(const char *) 25496 ; 25497 return 0; 25498 } 25499 _ACEOF 25500 if ac_fn_c_try_compile "$LINENO" 25501 then : 25502 eval "ac_cv_func_gethostbyname_proto_compat=yes" 25503 else $as_nop 25504 eval "ac_cv_func_gethostbyname_proto_compat=no" 25505 fi 25506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25507 fi 25508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5 25509 printf "%s\n" "$ac_cv_func_gethostbyname_proto_compat" >&6; } 25510 25511 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 25512 25513 printf "%s\n" "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 25514 25515 fi 25516 25517 25518 25519 25520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5 25521 printf %s "checking if gethostbyaddr is compatible with system prototype... " >&6; } 25522 if test ${ac_cv_func_gethostbyaddr_proto_compat+y} 25523 then : 25524 printf %s "(cached) " >&6 25525 else $as_nop 25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25527 /* end confdefs.h. */ 25528 25529 #ifdef HAVE_SYS_TYPES_H 25530 #include <sys/types.h> 25531 #endif 25532 #ifdef HAVE_SYS_SOCKET_H 25533 #include <sys/socket.h> 25534 #endif 25535 #ifdef HAVE_NETINET_IN_H 25536 #include <netinet/in.h> 25537 #endif 25538 #ifdef HAVE_ARPA_INET_H 25539 #include <arpa/inet.h> 25540 #endif 25541 #ifdef HAVE_NETDB_H 25542 #include <netdb.h> 25543 #endif 25544 25545 int 25546 main (void) 25547 { 25548 struct hostent *gethostbyaddr(const void *, size_t, int) 25549 ; 25550 return 0; 25551 } 25552 _ACEOF 25553 if ac_fn_c_try_compile "$LINENO" 25554 then : 25555 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 25556 else $as_nop 25557 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 25558 fi 25559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25560 fi 25561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 25562 printf "%s\n" "$ac_cv_func_gethostbyaddr_proto_compat" >&6; } 25563 25564 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 25565 25566 printf "%s\n" "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h 25567 25568 fi 25569 25570 25571 25572 25573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5 25574 printf %s "checking if getservbyname is compatible with system prototype... " >&6; } 25575 if test ${ac_cv_func_getservbyname_proto_compat+y} 25576 then : 25577 printf %s "(cached) " >&6 25578 else $as_nop 25579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25580 /* end confdefs.h. */ 25581 25582 #ifdef HAVE_SYS_TYPES_H 25583 #include <sys/types.h> 25584 #endif 25585 #ifdef HAVE_SYS_SOCKET_H 25586 #include <sys/socket.h> 25587 #endif 25588 #ifdef HAVE_NETINET_IN_H 25589 #include <netinet/in.h> 25590 #endif 25591 #ifdef HAVE_ARPA_INET_H 25592 #include <arpa/inet.h> 25593 #endif 25594 #ifdef HAVE_NETDB_H 25595 #include <netdb.h> 25596 #endif 25597 25598 int 25599 main (void) 25600 { 25601 struct servent *getservbyname(const char *, const char *) 25602 ; 25603 return 0; 25604 } 25605 _ACEOF 25606 if ac_fn_c_try_compile "$LINENO" 25607 then : 25608 eval "ac_cv_func_getservbyname_proto_compat=yes" 25609 else $as_nop 25610 eval "ac_cv_func_getservbyname_proto_compat=no" 25611 fi 25612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25613 fi 25614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5 25615 printf "%s\n" "$ac_cv_func_getservbyname_proto_compat" >&6; } 25616 25617 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 25618 25619 printf "%s\n" "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 25620 25621 fi 25622 25623 25624 25625 25626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5 25627 printf %s "checking if getsockname is compatible with system prototype... " >&6; } 25628 if test ${ac_cv_func_getsockname_proto_compat+y} 25629 then : 25630 printf %s "(cached) " >&6 25631 else $as_nop 25632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25633 /* end confdefs.h. */ 25634 25635 #ifdef HAVE_SYS_TYPES_H 25636 #include <sys/types.h> 25637 #endif 25638 #ifdef HAVE_SYS_SOCKET_H 25639 #include <sys/socket.h> 25640 #endif 25641 25642 int 25643 main (void) 25644 { 25645 int getsockname(int, struct sockaddr*, socklen_t*) 25646 ; 25647 return 0; 25648 } 25649 _ACEOF 25650 if ac_fn_c_try_compile "$LINENO" 25651 then : 25652 eval "ac_cv_func_getsockname_proto_compat=yes" 25653 else $as_nop 25654 eval "ac_cv_func_getsockname_proto_compat=no" 25655 fi 25656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25657 fi 25658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5 25659 printf "%s\n" "$ac_cv_func_getsockname_proto_compat" >&6; } 25660 25661 if test "$ac_cv_func_getsockname_proto_compat" = yes; then 25662 25663 printf "%s\n" "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h 25664 25665 fi 25666 25667 25668 25669 25670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5 25671 printf %s "checking if openlog is compatible with system prototype... " >&6; } 25672 if test ${ac_cv_func_openlog_proto_compat+y} 25673 then : 25674 printf %s "(cached) " >&6 25675 else $as_nop 25676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25677 /* end confdefs.h. */ 25678 25679 #ifdef HAVE_SYSLOG_H 25680 #include <syslog.h> 25681 #endif 25682 25683 int 25684 main (void) 25685 { 25686 void openlog(const char *, int, int) 25687 ; 25688 return 0; 25689 } 25690 _ACEOF 25691 if ac_fn_c_try_compile "$LINENO" 25692 then : 25693 eval "ac_cv_func_openlog_proto_compat=yes" 25694 else $as_nop 25695 eval "ac_cv_func_openlog_proto_compat=no" 25696 fi 25697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25698 fi 25699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5 25700 printf "%s\n" "$ac_cv_func_openlog_proto_compat" >&6; } 25701 25702 if test "$ac_cv_func_openlog_proto_compat" = yes; then 25703 25704 printf "%s\n" "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h 25705 25706 fi 25707 25708 25709 25710 25711 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 25712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5 25713 printf %s "checking if crypt needs a prototype... " >&6; } 25714 if test ${ac_cv_func_crypt_noproto+y} 25715 then : 25716 printf %s "(cached) " >&6 25717 else $as_nop 25718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25719 /* end confdefs.h. */ 25720 25721 #ifdef HAVE_CRYPT_H 25722 #include <crypt.h> 25723 #endif 25724 #ifdef HAVE_UNISTD_H 25725 #include <unistd.h> 25726 #endif 25727 25728 struct foo { int foo; } xx; 25729 extern int crypt (struct foo*); 25730 int 25731 main (void) 25732 { 25733 crypt(&xx) 25734 ; 25735 return 0; 25736 } 25737 _ACEOF 25738 if ac_fn_c_try_compile "$LINENO" 25739 then : 25740 eval "ac_cv_func_crypt_noproto=yes" 25741 else $as_nop 25742 eval "ac_cv_func_crypt_noproto=no" 25743 fi 25744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25745 fi 25746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5 25747 printf "%s\n" "$ac_cv_func_crypt_noproto" >&6; } 25748 if test "$ac_cv_func_crypt_noproto" = yes; then 25749 25750 printf "%s\n" "#define NEED_CRYPT_PROTO 1" >>confdefs.h 25751 25752 fi 25753 fi 25754 25755 25756 25757 25758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5 25759 printf %s "checking for h_errno... " >&6; } 25760 if test ${ac_cv_var_h_errno+y} 25761 then : 25762 printf %s "(cached) " >&6 25763 else $as_nop 25764 25765 25766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25767 /* end confdefs.h. */ 25768 #ifdef HAVE_SYS_TYPES_H 25769 #include <sys/types.h> 25770 #endif 25771 #ifdef HAVE_NETDB_H 25772 #include <netdb.h> 25773 #endif 25774 #ifdef HAVE_WS2TCPIP_H 25775 #include <ws2tcpip.h> 25776 #endif 25777 25778 void * foo(void) { return &h_errno; } 25779 int 25780 main (void) 25781 { 25782 foo() 25783 ; 25784 return 0; 25785 } 25786 _ACEOF 25787 if ac_fn_c_try_link "$LINENO" 25788 then : 25789 ac_cv_var_h_errno=yes 25790 else $as_nop 25791 ac_cv_var_h_errno=no 25792 fi 25793 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25794 conftest$ac_exeext conftest.$ac_ext 25795 if test "$ac_cv_var_h_errno" != yes ; then 25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25797 /* end confdefs.h. */ 25798 #ifdef HAVE_SYS_TYPES_H 25799 #include <sys/types.h> 25800 #endif 25801 #ifdef HAVE_NETDB_H 25802 #include <netdb.h> 25803 #endif 25804 #ifdef HAVE_WS2TCPIP_H 25805 #include <ws2tcpip.h> 25806 #endif 25807 25808 extern int h_errno; 25809 int foo(void) { return h_errno; } 25810 int 25811 main (void) 25812 { 25813 foo() 25814 ; 25815 return 0; 25816 } 25817 _ACEOF 25818 if ac_fn_c_try_link "$LINENO" 25819 then : 25820 ac_cv_var_h_errno=yes 25821 else $as_nop 25822 ac_cv_var_h_errno=no 25823 fi 25824 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25825 conftest$ac_exeext conftest.$ac_ext 25826 fi 25827 25828 fi 25829 25830 ac_foo=`eval echo \\$ac_cv_var_h_errno` 25831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25832 printf "%s\n" "$ac_foo" >&6; } 25833 if test "$ac_foo" = yes; then 25834 25835 printf "%s\n" "#define HAVE_H_ERRNO 1" >>confdefs.h 25836 25837 ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H 25838 #include <sys/types.h> 25839 #endif 25840 #ifdef HAVE_NETDB_H 25841 #include <netdb.h> 25842 #endif 25843 #ifdef HAVE_WS2TCPIP_H 25844 #include <ws2tcpip.h> 25845 #endif 25846 25847 " "$ac_c_undeclared_builtin_options" "CFLAGS" 25848 if test "x$ac_cv_have_decl_h_errno" = xyes 25849 then : 25850 ac_have_decl=1 25851 else $as_nop 25852 ac_have_decl=0 25853 fi 25854 printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h 25855 25856 fi 25857 25858 25859 25860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5 25861 printf %s "checking for h_errlist... " >&6; } 25862 if test ${ac_cv_var_h_errlist+y} 25863 then : 25864 printf %s "(cached) " >&6 25865 else $as_nop 25866 25867 25868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25869 /* end confdefs.h. */ 25870 #ifdef HAVE_NETDB_H 25871 #include <netdb.h> 25872 #endif 25873 #ifdef HAVE_WS2TCPIP_H 25874 #include <ws2tcpip.h> 25875 #endif 25876 void * foo(void) { return &h_errlist; } 25877 int 25878 main (void) 25879 { 25880 foo() 25881 ; 25882 return 0; 25883 } 25884 _ACEOF 25885 if ac_fn_c_try_link "$LINENO" 25886 then : 25887 ac_cv_var_h_errlist=yes 25888 else $as_nop 25889 ac_cv_var_h_errlist=no 25890 fi 25891 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25892 conftest$ac_exeext conftest.$ac_ext 25893 if test "$ac_cv_var_h_errlist" != yes ; then 25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25895 /* end confdefs.h. */ 25896 #ifdef HAVE_NETDB_H 25897 #include <netdb.h> 25898 #endif 25899 #ifdef HAVE_WS2TCPIP_H 25900 #include <ws2tcpip.h> 25901 #endif 25902 extern int h_errlist; 25903 int foo(void) { return h_errlist; } 25904 int 25905 main (void) 25906 { 25907 foo() 25908 ; 25909 return 0; 25910 } 25911 _ACEOF 25912 if ac_fn_c_try_link "$LINENO" 25913 then : 25914 ac_cv_var_h_errlist=yes 25915 else $as_nop 25916 ac_cv_var_h_errlist=no 25917 fi 25918 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25919 conftest$ac_exeext conftest.$ac_ext 25920 fi 25921 25922 fi 25923 25924 ac_foo=`eval echo \\$ac_cv_var_h_errlist` 25925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25926 printf "%s\n" "$ac_foo" >&6; } 25927 if test "$ac_foo" = yes; then 25928 25929 printf "%s\n" "#define HAVE_H_ERRLIST 1" >>confdefs.h 25930 25931 ac_fn_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H 25932 #include <netdb.h> 25933 #endif 25934 #ifdef HAVE_WS2TCPIP_H 25935 #include <ws2tcpip.h> 25936 #endif 25937 " "$ac_c_undeclared_builtin_options" "CFLAGS" 25938 if test "x$ac_cv_have_decl_h_errlist" = xyes 25939 then : 25940 ac_have_decl=1 25941 else $as_nop 25942 ac_have_decl=0 25943 fi 25944 printf "%s\n" "#define HAVE_DECL_H_ERRLIST $ac_have_decl" >>confdefs.h 25945 25946 fi 25947 25948 25949 25950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5 25951 printf %s "checking for h_nerr... " >&6; } 25952 if test ${ac_cv_var_h_nerr+y} 25953 then : 25954 printf %s "(cached) " >&6 25955 else $as_nop 25956 25957 25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25959 /* end confdefs.h. */ 25960 #ifdef HAVE_NETDB_H 25961 #include <netdb.h> 25962 #endif 25963 #ifdef HAVE_WS2TCPIP_H 25964 #include <ws2tcpip.h> 25965 #endif 25966 void * foo(void) { return &h_nerr; } 25967 int 25968 main (void) 25969 { 25970 foo() 25971 ; 25972 return 0; 25973 } 25974 _ACEOF 25975 if ac_fn_c_try_link "$LINENO" 25976 then : 25977 ac_cv_var_h_nerr=yes 25978 else $as_nop 25979 ac_cv_var_h_nerr=no 25980 fi 25981 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25982 conftest$ac_exeext conftest.$ac_ext 25983 if test "$ac_cv_var_h_nerr" != yes ; then 25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25985 /* end confdefs.h. */ 25986 #ifdef HAVE_NETDB_H 25987 #include <netdb.h> 25988 #endif 25989 #ifdef HAVE_WS2TCPIP_H 25990 #include <ws2tcpip.h> 25991 #endif 25992 extern int h_nerr; 25993 int foo(void) { return h_nerr; } 25994 int 25995 main (void) 25996 { 25997 foo() 25998 ; 25999 return 0; 26000 } 26001 _ACEOF 26002 if ac_fn_c_try_link "$LINENO" 26003 then : 26004 ac_cv_var_h_nerr=yes 26005 else $as_nop 26006 ac_cv_var_h_nerr=no 26007 fi 26008 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26009 conftest$ac_exeext conftest.$ac_ext 26010 fi 26011 26012 fi 26013 26014 ac_foo=`eval echo \\$ac_cv_var_h_nerr` 26015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26016 printf "%s\n" "$ac_foo" >&6; } 26017 if test "$ac_foo" = yes; then 26018 26019 printf "%s\n" "#define HAVE_H_NERR 1" >>confdefs.h 26020 26021 ac_fn_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H 26022 #include <netdb.h> 26023 #endif 26024 #ifdef HAVE_WS2TCPIP_H 26025 #include <ws2tcpip.h> 26026 #endif 26027 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26028 if test "x$ac_cv_have_decl_h_nerr" = xyes 26029 then : 26030 ac_have_decl=1 26031 else $as_nop 26032 ac_have_decl=0 26033 fi 26034 printf "%s\n" "#define HAVE_DECL_H_NERR $ac_have_decl" >>confdefs.h 26035 26036 fi 26037 26038 26039 26040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 26041 printf %s "checking for __progname... " >&6; } 26042 if test ${ac_cv_var___progname+y} 26043 then : 26044 printf %s "(cached) " >&6 26045 else $as_nop 26046 26047 26048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26049 /* end confdefs.h. */ 26050 #ifdef HAVE_ERR_H 26051 #include <err.h> 26052 #endif 26053 void * foo(void) { return &__progname; } 26054 int 26055 main (void) 26056 { 26057 foo() 26058 ; 26059 return 0; 26060 } 26061 _ACEOF 26062 if ac_fn_c_try_link "$LINENO" 26063 then : 26064 ac_cv_var___progname=yes 26065 else $as_nop 26066 ac_cv_var___progname=no 26067 fi 26068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26069 conftest$ac_exeext conftest.$ac_ext 26070 if test "$ac_cv_var___progname" != yes ; then 26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26072 /* end confdefs.h. */ 26073 #ifdef HAVE_ERR_H 26074 #include <err.h> 26075 #endif 26076 extern int __progname; 26077 int foo(void) { return __progname; } 26078 int 26079 main (void) 26080 { 26081 foo() 26082 ; 26083 return 0; 26084 } 26085 _ACEOF 26086 if ac_fn_c_try_link "$LINENO" 26087 then : 26088 ac_cv_var___progname=yes 26089 else $as_nop 26090 ac_cv_var___progname=no 26091 fi 26092 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26093 conftest$ac_exeext conftest.$ac_ext 26094 fi 26095 26096 fi 26097 26098 ac_foo=`eval echo \\$ac_cv_var___progname` 26099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26100 printf "%s\n" "$ac_foo" >&6; } 26101 if test "$ac_foo" = yes; then 26102 26103 printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h 26104 26105 ac_fn_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H 26106 #include <err.h> 26107 #endif 26108 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26109 if test "x$ac_cv_have_decl___progname" = xyes 26110 then : 26111 ac_have_decl=1 26112 else $as_nop 26113 ac_have_decl=0 26114 fi 26115 printf "%s\n" "#define HAVE_DECL___PROGNAME $ac_have_decl" >>confdefs.h 26116 26117 fi 26118 26119 26120 ac_fn_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " 26121 #include <stdlib.h> 26122 #ifdef HAVE_UNISTD_H 26123 #include <unistd.h> 26124 #endif 26125 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26126 if test "x$ac_cv_have_decl_optarg" = xyes 26127 then : 26128 ac_have_decl=1 26129 else $as_nop 26130 ac_have_decl=0 26131 fi 26132 printf "%s\n" "#define HAVE_DECL_OPTARG $ac_have_decl" >>confdefs.h 26133 ac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " 26134 #include <stdlib.h> 26135 #ifdef HAVE_UNISTD_H 26136 #include <unistd.h> 26137 #endif 26138 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26139 if test "x$ac_cv_have_decl_optind" = xyes 26140 then : 26141 ac_have_decl=1 26142 else $as_nop 26143 ac_have_decl=0 26144 fi 26145 printf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h 26146 ac_fn_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" " 26147 #include <stdlib.h> 26148 #ifdef HAVE_UNISTD_H 26149 #include <unistd.h> 26150 #endif 26151 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26152 if test "x$ac_cv_have_decl_opterr" = xyes 26153 then : 26154 ac_have_decl=1 26155 else $as_nop 26156 ac_have_decl=0 26157 fi 26158 printf "%s\n" "#define HAVE_DECL_OPTERR $ac_have_decl" >>confdefs.h 26159 ac_fn_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" " 26160 #include <stdlib.h> 26161 #ifdef HAVE_UNISTD_H 26162 #include <unistd.h> 26163 #endif 26164 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26165 if test "x$ac_cv_have_decl_optopt" = xyes 26166 then : 26167 ac_have_decl=1 26168 else $as_nop 26169 ac_have_decl=0 26170 fi 26171 printf "%s\n" "#define HAVE_DECL_OPTOPT $ac_have_decl" >>confdefs.h 26172 ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" " 26173 #include <stdlib.h> 26174 #ifdef HAVE_UNISTD_H 26175 #include <unistd.h> 26176 #endif 26177 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26178 if test "x$ac_cv_have_decl_environ" = xyes 26179 then : 26180 ac_have_decl=1 26181 else $as_nop 26182 ac_have_decl=0 26183 fi 26184 printf "%s\n" "#define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h 26185 26186 26187 26188 26189 26190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 26191 printf %s "checking for tm_gmtoff in struct tm... " >&6; } 26192 if test ${ac_cv_type_struct_tm_tm_gmtoff+y} 26193 then : 26194 printf %s "(cached) " >&6 26195 else $as_nop 26196 26197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26198 /* end confdefs.h. */ 26199 #include <time.h> 26200 int 26201 main (void) 26202 { 26203 struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff 26204 ; 26205 return 0; 26206 } 26207 _ACEOF 26208 if ac_fn_c_try_compile "$LINENO" 26209 then : 26210 ac_cv_type_struct_tm_tm_gmtoff=yes 26211 else $as_nop 26212 ac_cv_type_struct_tm_tm_gmtoff=no 26213 fi 26214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26215 26216 fi 26217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 26218 printf "%s\n" "$ac_cv_type_struct_tm_tm_gmtoff" >&6; } 26219 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 26220 26221 26222 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 26223 26224 26225 fi 26226 26227 26228 26229 26230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 26231 printf %s "checking for tm_zone in struct tm... " >&6; } 26232 if test ${ac_cv_type_struct_tm_tm_zone+y} 26233 then : 26234 printf %s "(cached) " >&6 26235 else $as_nop 26236 26237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26238 /* end confdefs.h. */ 26239 #include <time.h> 26240 int 26241 main (void) 26242 { 26243 struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone 26244 ; 26245 return 0; 26246 } 26247 _ACEOF 26248 if ac_fn_c_try_compile "$LINENO" 26249 then : 26250 ac_cv_type_struct_tm_tm_zone=yes 26251 else $as_nop 26252 ac_cv_type_struct_tm_tm_zone=no 26253 fi 26254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26255 26256 fi 26257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5 26258 printf "%s\n" "$ac_cv_type_struct_tm_tm_zone" >&6; } 26259 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 26260 26261 26262 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 26263 26264 26265 fi 26266 26267 26268 26269 26270 26271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 26272 printf %s "checking for timezone... " >&6; } 26273 if test ${ac_cv_var_timezone+y} 26274 then : 26275 printf %s "(cached) " >&6 26276 else $as_nop 26277 26278 26279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26280 /* end confdefs.h. */ 26281 #include <time.h> 26282 void * foo(void) { return &timezone; } 26283 int 26284 main (void) 26285 { 26286 foo() 26287 ; 26288 return 0; 26289 } 26290 _ACEOF 26291 if ac_fn_c_try_link "$LINENO" 26292 then : 26293 ac_cv_var_timezone=yes 26294 else $as_nop 26295 ac_cv_var_timezone=no 26296 fi 26297 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26298 conftest$ac_exeext conftest.$ac_ext 26299 if test "$ac_cv_var_timezone" != yes ; then 26300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26301 /* end confdefs.h. */ 26302 #include <time.h> 26303 extern int timezone; 26304 int foo(void) { return timezone; } 26305 int 26306 main (void) 26307 { 26308 foo() 26309 ; 26310 return 0; 26311 } 26312 _ACEOF 26313 if ac_fn_c_try_link "$LINENO" 26314 then : 26315 ac_cv_var_timezone=yes 26316 else $as_nop 26317 ac_cv_var_timezone=no 26318 fi 26319 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26320 conftest$ac_exeext conftest.$ac_ext 26321 fi 26322 26323 fi 26324 26325 ac_foo=`eval echo \\$ac_cv_var_timezone` 26326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26327 printf "%s\n" "$ac_foo" >&6; } 26328 if test "$ac_foo" = yes; then 26329 26330 printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h 26331 26332 ac_fn_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h> 26333 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26334 if test "x$ac_cv_have_decl_timezone" = xyes 26335 then : 26336 ac_have_decl=1 26337 else $as_nop 26338 ac_have_decl=0 26339 fi 26340 printf "%s\n" "#define HAVE_DECL_TIMEZONE $ac_have_decl" >>confdefs.h 26341 26342 fi 26343 26344 26345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5 26346 printf %s "checking for altzone... " >&6; } 26347 if test ${ac_cv_var_altzone+y} 26348 then : 26349 printf %s "(cached) " >&6 26350 else $as_nop 26351 26352 26353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26354 /* end confdefs.h. */ 26355 #include <time.h> 26356 void * foo(void) { return &altzone; } 26357 int 26358 main (void) 26359 { 26360 foo() 26361 ; 26362 return 0; 26363 } 26364 _ACEOF 26365 if ac_fn_c_try_link "$LINENO" 26366 then : 26367 ac_cv_var_altzone=yes 26368 else $as_nop 26369 ac_cv_var_altzone=no 26370 fi 26371 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26372 conftest$ac_exeext conftest.$ac_ext 26373 if test "$ac_cv_var_altzone" != yes ; then 26374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26375 /* end confdefs.h. */ 26376 #include <time.h> 26377 extern int altzone; 26378 int foo(void) { return altzone; } 26379 int 26380 main (void) 26381 { 26382 foo() 26383 ; 26384 return 0; 26385 } 26386 _ACEOF 26387 if ac_fn_c_try_link "$LINENO" 26388 then : 26389 ac_cv_var_altzone=yes 26390 else $as_nop 26391 ac_cv_var_altzone=no 26392 fi 26393 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26394 conftest$ac_exeext conftest.$ac_ext 26395 fi 26396 26397 fi 26398 26399 ac_foo=`eval echo \\$ac_cv_var_altzone` 26400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26401 printf "%s\n" "$ac_foo" >&6; } 26402 if test "$ac_foo" = yes; then 26403 26404 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h 26405 26406 ac_fn_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h> 26407 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26408 if test "x$ac_cv_have_decl_altzone" = xyes 26409 then : 26410 ac_have_decl=1 26411 else $as_nop 26412 ac_have_decl=0 26413 fi 26414 printf "%s\n" "#define HAVE_DECL_ALTZONE $ac_have_decl" >>confdefs.h 26415 26416 fi 26417 26418 26419 26420 26421 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 26422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 26423 printf %s "checking for sa_family_t... " >&6; } 26424 if eval test \${ac_cv_type_$cv+y} 26425 then : 26426 printf %s "(cached) " >&6 26427 else $as_nop 26428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26429 /* end confdefs.h. */ 26430 26431 #include <sys/types.h> 26432 #if STDC_HEADERS 26433 #include <stdlib.h> 26434 #include <stddef.h> 26435 #endif 26436 26437 #include <sys/types.h> 26438 #ifdef HAVE_SYS_SOCKET_H 26439 #include <sys/socket.h> 26440 #endif 26441 #ifdef HAVE_WS2TCPIP_H 26442 #include <ws2tcpip.h> 26443 #endif 26444 int 26445 main (void) 26446 { 26447 sa_family_t foo; 26448 ; 26449 return 0; 26450 } 26451 _ACEOF 26452 if ac_fn_c_try_compile "$LINENO" 26453 then : 26454 eval "ac_cv_type_$cv=yes" 26455 else $as_nop 26456 eval "ac_cv_type_$cv=no" 26457 fi 26458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26459 fi 26460 ac_foo=`eval echo \\$ac_cv_type_$cv` 26461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26462 printf "%s\n" "$ac_foo" >&6; } 26463 if test "$ac_foo" = yes; then 26464 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26465 if false; then 26466 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default" 26467 if test "x$ac_cv_type_sa_family_t" = xyes 26468 then : 26469 26470 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 26471 26472 26473 fi 26474 26475 fi 26476 26477 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26478 26479 fi 26480 26481 26482 26483 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 26484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 26485 printf %s "checking for socklen_t... " >&6; } 26486 if eval test \${ac_cv_type_$cv+y} 26487 then : 26488 printf %s "(cached) " >&6 26489 else $as_nop 26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26491 /* end confdefs.h. */ 26492 26493 #include <sys/types.h> 26494 #if STDC_HEADERS 26495 #include <stdlib.h> 26496 #include <stddef.h> 26497 #endif 26498 26499 #include <sys/types.h> 26500 #ifdef HAVE_SYS_SOCKET_H 26501 #include <sys/socket.h> 26502 #endif 26503 #ifdef HAVE_WS2TCPIP_H 26504 #include <ws2tcpip.h> 26505 #endif 26506 int 26507 main (void) 26508 { 26509 socklen_t foo; 26510 ; 26511 return 0; 26512 } 26513 _ACEOF 26514 if ac_fn_c_try_compile "$LINENO" 26515 then : 26516 eval "ac_cv_type_$cv=yes" 26517 else $as_nop 26518 eval "ac_cv_type_$cv=no" 26519 fi 26520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26521 fi 26522 ac_foo=`eval echo \\$ac_cv_type_$cv` 26523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26524 printf "%s\n" "$ac_foo" >&6; } 26525 if test "$ac_foo" = yes; then 26526 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26527 if false; then 26528 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default" 26529 if test "x$ac_cv_type_socklen_t" = xyes 26530 then : 26531 26532 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 26533 26534 26535 fi 26536 26537 fi 26538 26539 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26540 26541 fi 26542 26543 26544 26545 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 26546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5 26547 printf %s "checking for struct sockaddr... " >&6; } 26548 if eval test \${ac_cv_type_$cv+y} 26549 then : 26550 printf %s "(cached) " >&6 26551 else $as_nop 26552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26553 /* end confdefs.h. */ 26554 26555 #include <sys/types.h> 26556 #if STDC_HEADERS 26557 #include <stdlib.h> 26558 #include <stddef.h> 26559 #endif 26560 26561 #include <sys/types.h> 26562 #ifdef HAVE_SYS_SOCKET_H 26563 #include <sys/socket.h> 26564 #endif 26565 #ifdef HAVE_WS2TCPIP_H 26566 #include <ws2tcpip.h> 26567 #endif 26568 int 26569 main (void) 26570 { 26571 struct sockaddr foo; 26572 ; 26573 return 0; 26574 } 26575 _ACEOF 26576 if ac_fn_c_try_compile "$LINENO" 26577 then : 26578 eval "ac_cv_type_$cv=yes" 26579 else $as_nop 26580 eval "ac_cv_type_$cv=no" 26581 fi 26582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26583 fi 26584 ac_foo=`eval echo \\$ac_cv_type_$cv` 26585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26586 printf "%s\n" "$ac_foo" >&6; } 26587 if test "$ac_foo" = yes; then 26588 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26589 if false; then 26590 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default" 26591 if test "x$ac_cv_type_struct_sockaddr" = xyes 26592 then : 26593 26594 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR 1" >>confdefs.h 26595 26596 26597 fi 26598 26599 fi 26600 26601 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26602 26603 fi 26604 26605 26606 26607 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 26608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 26609 printf %s "checking for struct sockaddr_storage... " >&6; } 26610 if eval test \${ac_cv_type_$cv+y} 26611 then : 26612 printf %s "(cached) " >&6 26613 else $as_nop 26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26615 /* end confdefs.h. */ 26616 26617 #include <sys/types.h> 26618 #if STDC_HEADERS 26619 #include <stdlib.h> 26620 #include <stddef.h> 26621 #endif 26622 26623 #include <sys/types.h> 26624 #ifdef HAVE_SYS_SOCKET_H 26625 #include <sys/socket.h> 26626 #endif 26627 #ifdef HAVE_WS2TCPIP_H 26628 #include <ws2tcpip.h> 26629 #endif 26630 int 26631 main (void) 26632 { 26633 struct sockaddr_storage foo; 26634 ; 26635 return 0; 26636 } 26637 _ACEOF 26638 if ac_fn_c_try_compile "$LINENO" 26639 then : 26640 eval "ac_cv_type_$cv=yes" 26641 else $as_nop 26642 eval "ac_cv_type_$cv=no" 26643 fi 26644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26645 fi 26646 ac_foo=`eval echo \\$ac_cv_type_$cv` 26647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26648 printf "%s\n" "$ac_foo" >&6; } 26649 if test "$ac_foo" = yes; then 26650 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26651 if false; then 26652 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default" 26653 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 26654 then : 26655 26656 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 26657 26658 26659 fi 26660 26661 fi 26662 26663 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26664 26665 fi 26666 26667 26668 26669 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 26670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 26671 printf %s "checking for struct addrinfo... " >&6; } 26672 if eval test \${ac_cv_type_$cv+y} 26673 then : 26674 printf %s "(cached) " >&6 26675 else $as_nop 26676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26677 /* end confdefs.h. */ 26678 26679 #include <sys/types.h> 26680 #if STDC_HEADERS 26681 #include <stdlib.h> 26682 #include <stddef.h> 26683 #endif 26684 26685 #include <sys/types.h> 26686 #ifdef HAVE_NETDB_H 26687 #include <netdb.h> 26688 #endif 26689 #ifdef HAVE_WS2TCPIP_H 26690 #include <ws2tcpip.h> 26691 #endif 26692 int 26693 main (void) 26694 { 26695 struct addrinfo foo; 26696 ; 26697 return 0; 26698 } 26699 _ACEOF 26700 if ac_fn_c_try_compile "$LINENO" 26701 then : 26702 eval "ac_cv_type_$cv=yes" 26703 else $as_nop 26704 eval "ac_cv_type_$cv=no" 26705 fi 26706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26707 fi 26708 ac_foo=`eval echo \\$ac_cv_type_$cv` 26709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26710 printf "%s\n" "$ac_foo" >&6; } 26711 if test "$ac_foo" = yes; then 26712 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26713 if false; then 26714 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default" 26715 if test "x$ac_cv_type_struct_addrinfo" = xyes 26716 then : 26717 26718 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 26719 26720 26721 fi 26722 26723 fi 26724 26725 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26726 26727 fi 26728 26729 26730 26731 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 26732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5 26733 printf %s "checking for struct ifaddrs... " >&6; } 26734 if eval test \${ac_cv_type_$cv+y} 26735 then : 26736 printf %s "(cached) " >&6 26737 else $as_nop 26738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26739 /* end confdefs.h. */ 26740 26741 #include <sys/types.h> 26742 #if STDC_HEADERS 26743 #include <stdlib.h> 26744 #include <stddef.h> 26745 #endif 26746 #include <ifaddrs.h> 26747 int 26748 main (void) 26749 { 26750 struct ifaddrs foo; 26751 ; 26752 return 0; 26753 } 26754 _ACEOF 26755 if ac_fn_c_try_compile "$LINENO" 26756 then : 26757 eval "ac_cv_type_$cv=yes" 26758 else $as_nop 26759 eval "ac_cv_type_$cv=no" 26760 fi 26761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26762 fi 26763 ac_foo=`eval echo \\$ac_cv_type_$cv` 26764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26765 printf "%s\n" "$ac_foo" >&6; } 26766 if test "$ac_foo" = yes; then 26767 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26768 if false; then 26769 ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default" 26770 if test "x$ac_cv_type_struct_ifaddrs" = xyes 26771 then : 26772 26773 printf "%s\n" "#define HAVE_STRUCT_IFADDRS 1" >>confdefs.h 26774 26775 26776 fi 26777 26778 fi 26779 26780 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26781 26782 fi 26783 26784 26785 26786 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 26787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5 26788 printf %s "checking for struct iovec... " >&6; } 26789 if eval test \${ac_cv_type_$cv+y} 26790 then : 26791 printf %s "(cached) " >&6 26792 else $as_nop 26793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26794 /* end confdefs.h. */ 26795 26796 #include <sys/types.h> 26797 #if STDC_HEADERS 26798 #include <stdlib.h> 26799 #include <stddef.h> 26800 #endif 26801 26802 #include <sys/types.h> 26803 #include <sys/uio.h> 26804 26805 int 26806 main (void) 26807 { 26808 struct iovec foo; 26809 ; 26810 return 0; 26811 } 26812 _ACEOF 26813 if ac_fn_c_try_compile "$LINENO" 26814 then : 26815 eval "ac_cv_type_$cv=yes" 26816 else $as_nop 26817 eval "ac_cv_type_$cv=no" 26818 fi 26819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26820 fi 26821 ac_foo=`eval echo \\$ac_cv_type_$cv` 26822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26823 printf "%s\n" "$ac_foo" >&6; } 26824 if test "$ac_foo" = yes; then 26825 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26826 if false; then 26827 ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default" 26828 if test "x$ac_cv_type_struct_iovec" = xyes 26829 then : 26830 26831 printf "%s\n" "#define HAVE_STRUCT_IOVEC 1" >>confdefs.h 26832 26833 26834 fi 26835 26836 fi 26837 26838 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26839 26840 fi 26841 26842 26843 26844 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 26845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5 26846 printf %s "checking for struct msghdr... " >&6; } 26847 if eval test \${ac_cv_type_$cv+y} 26848 then : 26849 printf %s "(cached) " >&6 26850 else $as_nop 26851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26852 /* end confdefs.h. */ 26853 26854 #include <sys/types.h> 26855 #if STDC_HEADERS 26856 #include <stdlib.h> 26857 #include <stddef.h> 26858 #endif 26859 26860 #include <sys/types.h> 26861 #ifdef HAVE_SYS_SOCKET_H 26862 #include <sys/socket.h> 26863 #endif 26864 #ifdef HAVE_WS2TCPIP_H 26865 #include <ws2tcpip.h> 26866 #endif 26867 int 26868 main (void) 26869 { 26870 struct msghdr foo; 26871 ; 26872 return 0; 26873 } 26874 _ACEOF 26875 if ac_fn_c_try_compile "$LINENO" 26876 then : 26877 eval "ac_cv_type_$cv=yes" 26878 else $as_nop 26879 eval "ac_cv_type_$cv=no" 26880 fi 26881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26882 fi 26883 ac_foo=`eval echo \\$ac_cv_type_$cv` 26884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 26885 printf "%s\n" "$ac_foo" >&6; } 26886 if test "$ac_foo" = yes; then 26887 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26888 if false; then 26889 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default" 26890 if test "x$ac_cv_type_struct_msghdr" = xyes 26891 then : 26892 26893 printf "%s\n" "#define HAVE_STRUCT_MSGHDR 1" >>confdefs.h 26894 26895 26896 fi 26897 26898 fi 26899 26900 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 26901 26902 fi 26903 26904 26905 26906 26907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5 26908 printf %s "checking for struct winsize... " >&6; } 26909 if test ${ac_cv_struct_winsize+y} 26910 then : 26911 printf %s "(cached) " >&6 26912 else $as_nop 26913 26914 ac_cv_struct_winsize=no 26915 for i in sys/termios.h sys/ioctl.h; do 26916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26917 /* end confdefs.h. */ 26918 #include <$i> 26919 26920 _ACEOF 26921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26922 $EGREP "struct[ ]*winsize" >/dev/null 2>&1 26923 then : 26924 ac_cv_struct_winsize=yes; break 26925 fi 26926 rm -rf conftest* 26927 done 26928 26929 fi 26930 26931 if test "$ac_cv_struct_winsize" = "yes"; then 26932 26933 printf "%s\n" "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h 26934 26935 fi 26936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5 26937 printf "%s\n" "$ac_cv_struct_winsize" >&6; } 26938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26939 /* end confdefs.h. */ 26940 #include <termios.h> 26941 26942 _ACEOF 26943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26944 $EGREP "ws_xpixel" >/dev/null 2>&1 26945 then : 26946 26947 printf "%s\n" "#define HAVE_WS_XPIXEL 1" >>confdefs.h 26948 26949 fi 26950 rm -rf conftest* 26951 26952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26953 /* end confdefs.h. */ 26954 #include <termios.h> 26955 26956 _ACEOF 26957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26958 $EGREP "ws_ypixel" >/dev/null 2>&1 26959 then : 26960 26961 printf "%s\n" "#define HAVE_WS_YPIXEL 1" >>confdefs.h 26962 26963 fi 26964 rm -rf conftest* 26965 26966 26967 26968 26969 26970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5 26971 printf %s "checking for struct spwd... " >&6; } 26972 if test ${ac_cv_struct_spwd+y} 26973 then : 26974 printf %s "(cached) " >&6 26975 else $as_nop 26976 26977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26978 /* end confdefs.h. */ 26979 26980 #include <pwd.h> 26981 #ifdef HAVE_SHADOW_H 26982 #include <shadow.h> 26983 #endif 26984 int 26985 main (void) 26986 { 26987 struct spwd foo; 26988 ; 26989 return 0; 26990 } 26991 _ACEOF 26992 if ac_fn_c_try_compile "$LINENO" 26993 then : 26994 ac_cv_struct_spwd=yes 26995 else $as_nop 26996 ac_cv_struct_spwd=no 26997 fi 26998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26999 27000 fi 27001 27002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5 27003 printf "%s\n" "$ac_cv_struct_spwd" >&6; } 27004 27005 if test "$ac_cv_struct_spwd" = "yes"; then 27006 27007 printf "%s\n" "#define HAVE_STRUCT_SPWD 1" >>confdefs.h 27008 27009 fi 27010 27011 27012 # 27013 # Check if we want samba's socket wrapper 27014 # 27015 27016 27017 27018 # Check whether --enable-socket-wrapper was given. 27019 if test ${enable_socket_wrapper+y} 27020 then : 27021 enableval=$enable_socket_wrapper; 27022 fi 27023 27024 27025 if test "x$enable_socket_wrapper" = xyes; then 27026 have_socket_wrapper_TRUE= 27027 have_socket_wrapper_FALSE='#' 27028 else 27029 have_socket_wrapper_TRUE='#' 27030 have_socket_wrapper_FALSE= 27031 fi 27032 27033 if test "x$enable_socket_wrapper" = xyes ; then 27034 27035 printf "%s\n" "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h 27036 27037 fi 27038 27039 27040 27041 27042 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 27043 27044 27045 LIBADD_roken="$LIB_roken" 27046 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 27047 27048 27049 # Check whether --enable-otp was given. 27050 if test ${enable_otp+y} 27051 then : 27052 enableval=$enable_otp; 27053 fi 27054 27055 if test "$enable_otp" = yes -a "$db_type" = unknown; then 27056 as_fn_error $? "OTP requires a NDBM/DB compatible library" "$LINENO" 5 27057 fi 27058 if test "$enable_otp" != no; then 27059 if test "$db_type" != unknown; then 27060 enable_otp=yes 27061 else 27062 enable_otp=no 27063 fi 27064 fi 27065 if test "$enable_otp" = yes; then 27066 27067 printf "%s\n" "#define OTP 1" >>confdefs.h 27068 27069 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 27070 27071 fi 27072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5 27073 printf %s "checking whether to enable OTP library... " >&6; } 27074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5 27075 printf "%s\n" "$enable_otp" >&6; } 27076 if test "$enable_otp" = yes; then 27077 OTP_TRUE= 27078 OTP_FALSE='#' 27079 else 27080 OTP_TRUE='#' 27081 OTP_FALSE= 27082 fi 27083 27084 27085 27086 27087 for ac_prog in mig 27088 do 27089 # Extract the first word of "$ac_prog", so it can be a program name with args. 27090 set dummy $ac_prog; ac_word=$2 27091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27092 printf %s "checking for $ac_word... " >&6; } 27093 if test ${ac_cv_prog_GCD_MIG+y} 27094 then : 27095 printf %s "(cached) " >&6 27096 else $as_nop 27097 if test -n "$GCD_MIG"; then 27098 ac_cv_prog_GCD_MIG="$GCD_MIG" # Let the user override the test. 27099 else 27100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27101 for as_dir in $PATH 27102 do 27103 IFS=$as_save_IFS 27104 case $as_dir in #((( 27105 '') as_dir=./ ;; 27106 */) ;; 27107 *) as_dir=$as_dir/ ;; 27108 esac 27109 for ac_exec_ext in '' $ac_executable_extensions; do 27110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27111 ac_cv_prog_GCD_MIG="$ac_prog" 27112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27113 break 2 27114 fi 27115 done 27116 done 27117 IFS=$as_save_IFS 27118 27119 fi 27120 fi 27121 GCD_MIG=$ac_cv_prog_GCD_MIG 27122 if test -n "$GCD_MIG"; then 27123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCD_MIG" >&5 27124 printf "%s\n" "$GCD_MIG" >&6; } 27125 else 27126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27127 printf "%s\n" "no" >&6; } 27128 fi 27129 27130 27131 test -n "$GCD_MIG" && break 27132 done 27133 test -n "$GCD_MIG" || GCD_MIG="no" 27134 27135 27136 if test "$GCD_MIG" != no; then 27137 ac_fn_c_check_header_compile "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default" 27138 if test "x$ac_cv_header_dispatch_dispatch_h" = xyes 27139 then : 27140 printf "%s\n" "#define HAVE_DISPATCH_DISPATCH_H 1" >>confdefs.h 27141 27142 fi 27143 27144 27145 27146 27147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5 27148 printf %s "checking for dispatch_async_f... " >&6; } 27149 if test ${ac_cv_funclib_dispatch_async_f+y} 27150 then : 27151 printf %s "(cached) " >&6 27152 else $as_nop 27153 27154 if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then 27155 ac_save_LIBS="$LIBS" 27156 for ac_lib in "" dispatch; do 27157 case "$ac_lib" in 27158 "") ;; 27159 yes) ac_lib="" ;; 27160 no) continue ;; 27161 -l*) ;; 27162 *) ac_lib="-l$ac_lib" ;; 27163 esac 27164 LIBS=" $ac_lib $ac_save_LIBS" 27165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27166 /* end confdefs.h. */ 27167 #ifdef HAVE_DISPATCH_DISPATCH_H 27168 #include <dispatch/dispatch.h> 27169 #endif 27170 int 27171 main (void) 27172 { 27173 dispatch_async_f(0,0,0) 27174 ; 27175 return 0; 27176 } 27177 _ACEOF 27178 if ac_fn_c_try_link "$LINENO" 27179 then : 27180 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dispatch_async_f=$ac_lib; else ac_cv_funclib_dispatch_async_f=yes; fi";break 27181 fi 27182 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27183 conftest$ac_exeext conftest.$ac_ext 27184 done 27185 eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}" 27186 LIBS="$ac_save_LIBS" 27187 fi 27188 27189 fi 27190 27191 27192 eval "ac_res=\$ac_cv_funclib_dispatch_async_f" 27193 27194 if false; then 27195 ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f" 27196 if test "x$ac_cv_func_dispatch_async_f" = xyes 27197 then : 27198 printf "%s\n" "#define HAVE_DISPATCH_ASYNC_F 1" >>confdefs.h 27199 27200 fi 27201 27202 fi 27203 # dispatch_async_f 27204 eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27205 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27206 eval "LIB_dispatch_async_f=$ac_res" 27207 27208 case "$ac_res" in 27209 yes) 27210 eval "ac_cv_func_dispatch_async_f=yes" 27211 eval "LIB_dispatch_async_f=" 27212 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 27213 27214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27215 printf "%s\n" "yes" >&6; } 27216 ;; 27217 no) 27218 eval "ac_cv_func_dispatch_async_f=no" 27219 eval "LIB_dispatch_async_f=" 27220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27221 printf "%s\n" "no" >&6; } 27222 ;; 27223 *) 27224 eval "ac_cv_func_dispatch_async_f=yes" 27225 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 27226 27227 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 27228 27229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27230 printf "%s\n" "yes, in $ac_res" >&6; } 27231 ;; 27232 esac 27233 27234 27235 27236 if test "$ac_cv_func_dispatch_async_f" = yes -a "$GCD_MIG" != no; then 27237 27238 printf "%s\n" "#define HAVE_GCD 1" >>confdefs.h 27239 27240 libdispatch=yes 27241 else 27242 libdispatch=no 27243 fi 27244 27245 fi 27246 if test "$libdispatch" = yes -a "$GCD_MIG" != no; then 27247 have_gcd_TRUE= 27248 have_gcd_FALSE='#' 27249 else 27250 have_gcd_TRUE='#' 27251 have_gcd_FALSE= 27252 fi 27253 27254 27255 27256 27257 27258 # Check whether --enable-osfc2 was given. 27259 if test ${enable_osfc2+y} 27260 then : 27261 enableval=$enable_osfc2; 27262 fi 27263 27264 LIB_security= 27265 if test "$enable_osfc2" = yes; then 27266 27267 printf "%s\n" "#define HAVE_OSFC2 1" >>confdefs.h 27268 27269 LIB_security=-lsecurity 27270 fi 27271 27272 27273 27274 # Check whether --enable-mmap was given. 27275 if test ${enable_mmap+y} 27276 then : 27277 enableval=$enable_mmap; 27278 fi 27279 27280 if test "$enable_mmap" = "no"; then 27281 27282 printf "%s\n" "#define NO_MMAP 1" >>confdefs.h 27283 27284 fi 27285 27286 # Check whether --enable-afs-string-to-key was given. 27287 if test ${enable_afs_string_to_key+y} 27288 then : 27289 enableval=$enable_afs_string_to_key; 27290 else $as_nop 27291 enable_afs_string_to_key=yes 27292 fi 27293 27294 27295 if test "$enable_afs_string_to_key" = "yes"; then 27296 27297 printf "%s\n" "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h 27298 27299 ENABLE_AFS_STRING_TO_KEY=1 27300 fi 27301 27302 27303 # Extract the first word of "nroff", so it can be a program name with args. 27304 set dummy nroff; ac_word=$2 27305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27306 printf %s "checking for $ac_word... " >&6; } 27307 if test ${ac_cv_path_NROFF+y} 27308 then : 27309 printf %s "(cached) " >&6 27310 else $as_nop 27311 case $NROFF in 27312 [\\/]* | ?:[\\/]*) 27313 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 27314 ;; 27315 *) 27316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27317 for as_dir in $PATH 27318 do 27319 IFS=$as_save_IFS 27320 case $as_dir in #((( 27321 '') as_dir=./ ;; 27322 */) ;; 27323 *) as_dir=$as_dir/ ;; 27324 esac 27325 for ac_exec_ext in '' $ac_executable_extensions; do 27326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27327 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext" 27328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27329 break 2 27330 fi 27331 done 27332 done 27333 IFS=$as_save_IFS 27334 27335 ;; 27336 esac 27337 fi 27338 NROFF=$ac_cv_path_NROFF 27339 if test -n "$NROFF"; then 27340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 27341 printf "%s\n" "$NROFF" >&6; } 27342 else 27343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27344 printf "%s\n" "no" >&6; } 27345 fi 27346 27347 27348 # Extract the first word of "groff", so it can be a program name with args. 27349 set dummy groff; ac_word=$2 27350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27351 printf %s "checking for $ac_word... " >&6; } 27352 if test ${ac_cv_path_GROFF+y} 27353 then : 27354 printf %s "(cached) " >&6 27355 else $as_nop 27356 case $GROFF in 27357 [\\/]* | ?:[\\/]*) 27358 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 27359 ;; 27360 *) 27361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27362 for as_dir in $PATH 27363 do 27364 IFS=$as_save_IFS 27365 case $as_dir in #((( 27366 '') as_dir=./ ;; 27367 */) ;; 27368 *) as_dir=$as_dir/ ;; 27369 esac 27370 for ac_exec_ext in '' $ac_executable_extensions; do 27371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27372 ac_cv_path_GROFF="$as_dir$ac_word$ac_exec_ext" 27373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27374 break 2 27375 fi 27376 done 27377 done 27378 IFS=$as_save_IFS 27379 27380 ;; 27381 esac 27382 fi 27383 GROFF=$ac_cv_path_GROFF 27384 if test -n "$GROFF"; then 27385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 27386 printf "%s\n" "$GROFF" >&6; } 27387 else 27388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27389 printf "%s\n" "no" >&6; } 27390 fi 27391 27392 27393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5 27394 printf %s "checking how to format man pages... " >&6; } 27395 if test ${ac_cv_sys_man_format+y} 27396 then : 27397 printf %s "(cached) " >&6 27398 else $as_nop 27399 cat > conftest.1 << END 27400 .Dd January 1, 1970 27401 .Dt CONFTEST 1 27402 .Sh NAME 27403 .Nm conftest 27404 .Nd foobar 27405 END 27406 27407 if test "$NROFF" ; then 27408 for i in "-mdoc" "-mandoc"; do 27409 if "$NROFF" $i conftest.1 2> /dev/null | \ 27410 grep Jan > /dev/null 2>&1 ; then 27411 ac_cv_sys_man_format="$NROFF $i" 27412 break 27413 fi 27414 done 27415 fi 27416 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 27417 for i in "-mdoc" "-mandoc"; do 27418 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 27419 grep Jan > /dev/null 2>&1 ; then 27420 ac_cv_sys_man_format="$GROFF -Tascii $i" 27421 break 27422 fi 27423 done 27424 fi 27425 if test "$ac_cv_sys_man_format"; then 27426 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 27427 fi 27428 27429 fi 27430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5 27431 printf "%s\n" "$ac_cv_sys_man_format" >&6; } 27432 if test "$ac_cv_sys_man_format"; then 27433 CATMAN="$ac_cv_sys_man_format" 27434 27435 fi 27436 if test "$CATMAN"; then 27437 CATMAN_TRUE= 27438 CATMAN_FALSE='#' 27439 else 27440 CATMAN_TRUE='#' 27441 CATMAN_FALSE= 27442 fi 27443 27444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5 27445 printf %s "checking extension of pre-formatted manual pages... " >&6; } 27446 if test ${ac_cv_sys_catman_ext+y} 27447 then : 27448 printf %s "(cached) " >&6 27449 else $as_nop 27450 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 27451 ac_cv_sys_catman_ext=0 27452 else 27453 ac_cv_sys_catman_ext=number 27454 fi 27455 27456 fi 27457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5 27458 printf "%s\n" "$ac_cv_sys_catman_ext" >&6; } 27459 if test "$ac_cv_sys_catman_ext" = number; then 27460 CATMANEXT='$$section' 27461 else 27462 CATMANEXT=0 27463 fi 27464 27465 27466 27467 27468 27469 # Check whether --with-readline was given. 27470 if test ${with_readline+y} 27471 then : 27472 withval=$with_readline; 27473 fi 27474 27475 27476 # Check whether --with-readline-lib was given. 27477 if test ${with_readline_lib+y} 27478 then : 27479 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 27480 as_fn_error $? "No argument for --with-readline-lib" "$LINENO" 5 27481 elif test "X$with_readline" = "X"; then 27482 with_readline=yes 27483 fi 27484 fi 27485 27486 27487 # Check whether --with-readline-include was given. 27488 if test ${with_readline_include+y} 27489 then : 27490 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then 27491 as_fn_error $? "No argument for --with-readline-include" "$LINENO" 5 27492 elif test "X$with_readline" = "X"; then 27493 with_readline=yes 27494 fi 27495 fi 27496 27497 27498 # Check whether --with-readline-config was given. 27499 if test ${with_readline_config+y} 27500 then : 27501 withval=$with_readline_config; 27502 fi 27503 27504 27505 27506 27507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 27508 printf %s "checking for readline... " >&6; } 27509 27510 case "$with_readline" in 27511 yes|"") d='' ;; 27512 no) d= ;; 27513 *) d="$with_readline" ;; 27514 esac 27515 27516 header_dirs= 27517 lib_dirs= 27518 for i in $d; do 27519 if test "$with_readline_include" = ""; then 27520 if test -d "$i/include/readline"; then 27521 header_dirs="$header_dirs $i/include/readline" 27522 fi 27523 if test -d "$i/include"; then 27524 header_dirs="$header_dirs $i/include" 27525 fi 27526 fi 27527 if test "$with_readline_lib" = ""; then 27528 if test -d "$i/lib$abilibdirext"; then 27529 lib_dirs="$lib_dirs $i/lib$abilibdirext" 27530 fi 27531 fi 27532 done 27533 27534 if test "$with_readline_include"; then 27535 header_dirs="$with_readline_include $header_dirs" 27536 fi 27537 if test "$with_readline_lib"; then 27538 lib_dirs="$with_readline_lib $lib_dirs" 27539 fi 27540 27541 if test "$with_readline_config" = ""; then 27542 with_readline_config='' 27543 fi 27544 27545 readline_cflags= 27546 readline_libs= 27547 27548 case "$with_readline_config" in 27549 yes|no|""|"") 27550 if test -f $with_readline/bin/ ; then 27551 with_readline_config=$with_readline/bin/ 27552 fi 27553 ;; 27554 esac 27555 27556 case "$with_readline_config" in 27557 yes|no|"") 27558 ;; 27559 *) 27560 readline_cflags="`$with_readline_config --cflags 2>&1`" 27561 readline_libs="`$with_readline_config --libs 2>&1`" 27562 ;; 27563 esac 27564 27565 found=no 27566 if test "$with_readline" != no; then 27567 save_CFLAGS="$CFLAGS" 27568 save_LIBS="$LIBS" 27569 if test "$readline_cflags" -a "$readline_libs"; then 27570 CFLAGS="$readline_cflags $save_CFLAGS" 27571 LIBS="$readline_libs $save_LIBS" 27572 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27573 if test "x$ac_cv_header_readline_h" = xyes 27574 then : 27575 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27576 27577 fi 27578 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27579 if test "x$ac_cv_header_readline_readline_h" = xyes 27580 then : 27581 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27582 27583 fi 27584 27585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27586 /* end confdefs.h. */ 27587 #include <stdio.h> 27588 #if defined(HAVE_READLINE_READLINE_H) 27589 #include <readline/readline.h> 27590 #elif defined(HAVE_READLINE_H) 27591 #include <readline.h> 27592 #endif 27593 27594 int 27595 main (void) 27596 { 27597 27598 ; 27599 return 0; 27600 } 27601 _ACEOF 27602 if ac_fn_c_try_link "$LINENO" 27603 then : 27604 27605 INCLUDE_readline="$readline_cflags" 27606 LIB_readline="$readline_libs" 27607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5 27608 printf "%s\n" "from $with_readline_config" >&6; } 27609 found=yes 27610 fi 27611 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27612 conftest$ac_exeext conftest.$ac_ext 27613 fi 27614 if test "$found" = no; then 27615 ires= lres= 27616 for i in $header_dirs; do 27617 CFLAGS="-I$i $save_CFLAGS" 27618 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27619 if test "x$ac_cv_header_readline_h" = xyes 27620 then : 27621 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27622 27623 fi 27624 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27625 if test "x$ac_cv_header_readline_readline_h" = xyes 27626 then : 27627 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27628 27629 fi 27630 27631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27632 /* end confdefs.h. */ 27633 #include <stdio.h> 27634 #if defined(HAVE_READLINE_READLINE_H) 27635 #include <readline/readline.h> 27636 #elif defined(HAVE_READLINE_H) 27637 #include <readline.h> 27638 #endif 27639 27640 int 27641 main (void) 27642 { 27643 27644 ; 27645 return 0; 27646 } 27647 _ACEOF 27648 if ac_fn_c_try_compile "$LINENO" 27649 then : 27650 ires=$i;break 27651 fi 27652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27653 done 27654 for i in $lib_dirs; do 27655 LIBS="-L$i -lreadline $save_LIBS" 27656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27657 /* end confdefs.h. */ 27658 #include <stdio.h> 27659 #if defined(HAVE_READLINE_READLINE_H) 27660 #include <readline/readline.h> 27661 #elif defined(HAVE_READLINE_H) 27662 #include <readline.h> 27663 #endif 27664 27665 int 27666 main (void) 27667 { 27668 27669 ; 27670 return 0; 27671 } 27672 _ACEOF 27673 if ac_fn_c_try_link "$LINENO" 27674 then : 27675 lres=$i;break 27676 fi 27677 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27678 conftest$ac_exeext conftest.$ac_ext 27679 done 27680 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 27681 INCLUDE_readline="-I$ires" 27682 LIB_readline="-L$lres -lreadline " 27683 found=yes 27684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 27685 printf "%s\n" "headers $ires, libraries $lres" >&6; } 27686 fi 27687 fi 27688 CFLAGS="$save_CFLAGS" 27689 LIBS="$save_LIBS" 27690 fi 27691 27692 if test "$found" = yes; then 27693 27694 printf "%s\n" "#define READLINE 1" >>confdefs.h 27695 27696 with_readline=yes 27697 else 27698 with_readline=no 27699 INCLUDE_readline= 27700 LIB_readline= 27701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27702 printf "%s\n" "no" >&6; } 27703 fi 27704 27705 27706 27707 27708 27709 27710 27711 # Check whether --with-libedit was given. 27712 if test ${with_libedit+y} 27713 then : 27714 withval=$with_libedit; 27715 fi 27716 27717 27718 # Check whether --with-libedit-lib was given. 27719 if test ${with_libedit_lib+y} 27720 then : 27721 withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 27722 as_fn_error $? "No argument for --with-libedit-lib" "$LINENO" 5 27723 elif test "X$with_libedit" = "X"; then 27724 with_libedit=yes 27725 fi 27726 fi 27727 27728 27729 # Check whether --with-libedit-include was given. 27730 if test ${with_libedit_include+y} 27731 then : 27732 withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then 27733 as_fn_error $? "No argument for --with-libedit-include" "$LINENO" 5 27734 elif test "X$with_libedit" = "X"; then 27735 with_libedit=yes 27736 fi 27737 fi 27738 27739 27740 # Check whether --with-libedit-config was given. 27741 if test ${with_libedit_config+y} 27742 then : 27743 withval=$with_libedit_config; 27744 fi 27745 27746 27747 27748 27749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 27750 printf %s "checking for libedit... " >&6; } 27751 27752 case "$with_libedit" in 27753 yes|"") d='' ;; 27754 no) d= ;; 27755 *) d="$with_libedit" ;; 27756 esac 27757 27758 header_dirs= 27759 lib_dirs= 27760 for i in $d; do 27761 if test "$with_libedit_include" = ""; then 27762 if test -d "$i/include/libedit"; then 27763 header_dirs="$header_dirs $i/include/libedit" 27764 fi 27765 if test -d "$i/include"; then 27766 header_dirs="$header_dirs $i/include" 27767 fi 27768 fi 27769 if test "$with_libedit_lib" = ""; then 27770 if test -d "$i/lib$abilibdirext"; then 27771 lib_dirs="$lib_dirs $i/lib$abilibdirext" 27772 fi 27773 fi 27774 done 27775 27776 if test "$with_libedit_include"; then 27777 header_dirs="$with_libedit_include $header_dirs" 27778 fi 27779 if test "$with_libedit_lib"; then 27780 lib_dirs="$with_libedit_lib $lib_dirs" 27781 fi 27782 27783 if test "$with_libedit_config" = ""; then 27784 with_libedit_config='' 27785 fi 27786 27787 libedit_cflags= 27788 libedit_libs= 27789 27790 case "$with_libedit_config" in 27791 yes|no|""|"") 27792 if test -f $with_libedit/bin/ ; then 27793 with_libedit_config=$with_libedit/bin/ 27794 fi 27795 ;; 27796 esac 27797 27798 case "$with_libedit_config" in 27799 yes|no|"") 27800 ;; 27801 *) 27802 libedit_cflags="`$with_libedit_config --cflags 2>&1`" 27803 libedit_libs="`$with_libedit_config --libs 2>&1`" 27804 ;; 27805 esac 27806 27807 found=no 27808 if test "$with_libedit" != no; then 27809 save_CFLAGS="$CFLAGS" 27810 save_LIBS="$LIBS" 27811 if test "$libedit_cflags" -a "$libedit_libs"; then 27812 CFLAGS="$libedit_cflags $save_CFLAGS" 27813 LIBS="$libedit_libs $save_LIBS" 27814 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27815 if test "x$ac_cv_header_readline_h" = xyes 27816 then : 27817 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27818 27819 fi 27820 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27821 if test "x$ac_cv_header_readline_readline_h" = xyes 27822 then : 27823 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27824 27825 fi 27826 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 27827 if test "x$ac_cv_header_editline_readline_h" = xyes 27828 then : 27829 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h 27830 27831 fi 27832 27833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27834 /* end confdefs.h. */ 27835 #include <stdio.h> 27836 #if defined(HAVE_READLINE_READLINE_H) 27837 #include <readline/readline.h> 27838 #elif defined(HAVE_READLINE_H) 27839 #include <readline.h> 27840 #elif defined(HAVE_EDITLINE_READLINE_H) 27841 #include <editline/readline.h> 27842 #endif 27843 27844 int 27845 main (void) 27846 { 27847 27848 ; 27849 return 0; 27850 } 27851 _ACEOF 27852 if ac_fn_c_try_link "$LINENO" 27853 then : 27854 27855 INCLUDE_libedit="$libedit_cflags" 27856 LIB_libedit="$libedit_libs" 27857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5 27858 printf "%s\n" "from $with_libedit_config" >&6; } 27859 found=yes 27860 fi 27861 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27862 conftest$ac_exeext conftest.$ac_ext 27863 fi 27864 if test "$found" = no; then 27865 ires= lres= 27866 for i in $header_dirs; do 27867 CFLAGS="-I$i $save_CFLAGS" 27868 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 27869 if test "x$ac_cv_header_readline_h" = xyes 27870 then : 27871 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h 27872 27873 fi 27874 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27875 if test "x$ac_cv_header_readline_readline_h" = xyes 27876 then : 27877 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 27878 27879 fi 27880 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 27881 if test "x$ac_cv_header_editline_readline_h" = xyes 27882 then : 27883 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h 27884 27885 fi 27886 27887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27888 /* end confdefs.h. */ 27889 #include <stdio.h> 27890 #if defined(HAVE_READLINE_READLINE_H) 27891 #include <readline/readline.h> 27892 #elif defined(HAVE_READLINE_H) 27893 #include <readline.h> 27894 #elif defined(HAVE_EDITLINE_READLINE_H) 27895 #include <editline/readline.h> 27896 #endif 27897 27898 int 27899 main (void) 27900 { 27901 27902 ; 27903 return 0; 27904 } 27905 _ACEOF 27906 if ac_fn_c_try_compile "$LINENO" 27907 then : 27908 ires=$i;break 27909 fi 27910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27911 done 27912 for i in $lib_dirs; do 27913 LIBS="-L$i -ledit $save_LIBS" 27914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27915 /* end confdefs.h. */ 27916 #include <stdio.h> 27917 #if defined(HAVE_READLINE_READLINE_H) 27918 #include <readline/readline.h> 27919 #elif defined(HAVE_READLINE_H) 27920 #include <readline.h> 27921 #elif defined(HAVE_EDITLINE_READLINE_H) 27922 #include <editline/readline.h> 27923 #endif 27924 27925 int 27926 main (void) 27927 { 27928 27929 ; 27930 return 0; 27931 } 27932 _ACEOF 27933 if ac_fn_c_try_link "$LINENO" 27934 then : 27935 lres=$i;break 27936 fi 27937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27938 conftest$ac_exeext conftest.$ac_ext 27939 done 27940 if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then 27941 INCLUDE_libedit="-I$ires" 27942 LIB_libedit="-L$lres -ledit " 27943 found=yes 27944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 27945 printf "%s\n" "headers $ires, libraries $lres" >&6; } 27946 fi 27947 fi 27948 CFLAGS="$save_CFLAGS" 27949 LIBS="$save_LIBS" 27950 fi 27951 27952 if test "$found" = yes; then 27953 27954 printf "%s\n" "#define LIBEDIT 1" >>confdefs.h 27955 27956 with_libedit=yes 27957 else 27958 with_libedit=no 27959 INCLUDE_libedit= 27960 LIB_libedit= 27961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27962 printf "%s\n" "no" >&6; } 27963 fi 27964 27965 27966 27967 27968 27969 27970 27971 subdirs="$subdirs lib/libedit" 27972 27973 27974 27975 # Check whether --enable-bigendian was given. 27976 if test ${enable_bigendian+y} 27977 then : 27978 enableval=$enable_bigendian; krb_cv_c_bigendian=yes 27979 fi 27980 27981 # Check whether --enable-littleendian was given. 27982 if test ${enable_littleendian+y} 27983 then : 27984 enableval=$enable_littleendian; krb_cv_c_bigendian=no 27985 fi 27986 27987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5 27988 printf %s "checking whether byte order is known at compile time... " >&6; } 27989 if test ${krb_cv_c_bigendian_compile+y} 27990 then : 27991 printf %s "(cached) " >&6 27992 else $as_nop 27993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27994 /* end confdefs.h. */ 27995 27996 #include <sys/types.h> 27997 #include <sys/param.h> 27998 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 27999 bogus endian macros 28000 #endif 28001 _ACEOF 28002 if ac_fn_c_try_compile "$LINENO" 28003 then : 28004 krb_cv_c_bigendian_compile=yes 28005 else $as_nop 28006 krb_cv_c_bigendian_compile=no 28007 fi 28008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28009 fi 28010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5 28011 printf "%s\n" "$krb_cv_c_bigendian_compile" >&6; } 28012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 28013 printf %s "checking whether byte ordering is bigendian... " >&6; } 28014 if test ${krb_cv_c_bigendian+y} 28015 then : 28016 printf %s "(cached) " >&6 28017 else $as_nop 28018 28019 if test "$krb_cv_c_bigendian_compile" = "yes"; then 28020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28021 /* end confdefs.h. */ 28022 28023 #include <sys/types.h> 28024 #include <sys/param.h> 28025 #if BYTE_ORDER != BIG_ENDIAN 28026 not big endian 28027 #endif 28028 _ACEOF 28029 if ac_fn_c_try_compile "$LINENO" 28030 then : 28031 krb_cv_c_bigendian=yes 28032 else $as_nop 28033 krb_cv_c_bigendian=no 28034 fi 28035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28036 else 28037 if test "$cross_compiling" = yes 28038 then : 28039 as_fn_error $? "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5 28040 else $as_nop 28041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28042 /* end confdefs.h. */ 28043 main (int argc, char **argv) { 28044 /* Are we little or big endian? From Harbison&Steele. */ 28045 union 28046 { 28047 long l; 28048 char c[sizeof (long)]; 28049 } u; 28050 u.l = 1; 28051 exit (u.c[sizeof (long) - 1] == 1); 28052 } 28053 _ACEOF 28054 if ac_fn_c_try_run "$LINENO" 28055 then : 28056 krb_cv_c_bigendian=no 28057 else $as_nop 28058 krb_cv_c_bigendian=yes 28059 fi 28060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28061 conftest.$ac_objext conftest.beam conftest.$ac_ext 28062 fi 28063 28064 fi 28065 28066 fi 28067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5 28068 printf "%s\n" "$krb_cv_c_bigendian" >&6; } 28069 if test "$krb_cv_c_bigendian" = "yes"; then 28070 28071 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 28072 fi 28073 if test "$krb_cv_c_bigendian_compile" = "yes"; then 28074 28075 printf "%s\n" "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h 28076 fi 28077 28078 28079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 28080 printf %s "checking for inline... " >&6; } 28081 if test ${ac_cv_c_inline+y} 28082 then : 28083 printf %s "(cached) " >&6 28084 else $as_nop 28085 ac_cv_c_inline=no 28086 for ac_kw in inline __inline__ __inline; do 28087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28088 /* end confdefs.h. */ 28089 #ifndef __cplusplus 28090 typedef int foo_t; 28091 static $ac_kw foo_t static_foo (void) {return 0; } 28092 $ac_kw foo_t foo (void) {return 0; } 28093 #endif 28094 28095 _ACEOF 28096 if ac_fn_c_try_compile "$LINENO" 28097 then : 28098 ac_cv_c_inline=$ac_kw 28099 fi 28100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28101 test "$ac_cv_c_inline" != no && break 28102 done 28103 28104 fi 28105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 28106 printf "%s\n" "$ac_cv_c_inline" >&6; } 28107 28108 case $ac_cv_c_inline in 28109 inline | yes) ;; 28110 *) 28111 case $ac_cv_c_inline in 28112 no) ac_val=;; 28113 *) ac_val=$ac_cv_c_inline;; 28114 esac 28115 cat >>confdefs.h <<_ACEOF 28116 #ifndef __cplusplus 28117 #define inline $ac_val 28118 #endif 28119 _ACEOF 28120 ;; 28121 esac 28122 28123 28124 28125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 28126 printf %s "checking for an ANSI C-conforming const... " >&6; } 28127 if test ${ac_cv_c_const+y} 28128 then : 28129 printf %s "(cached) " >&6 28130 else $as_nop 28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28132 /* end confdefs.h. */ 28133 28134 int 28135 main (void) 28136 { 28137 28138 #ifndef __cplusplus 28139 /* Ultrix mips cc rejects this sort of thing. */ 28140 typedef int charset[2]; 28141 const charset cs = { 0, 0 }; 28142 /* SunOS 4.1.1 cc rejects this. */ 28143 char const *const *pcpcc; 28144 char **ppc; 28145 /* NEC SVR4.0.2 mips cc rejects this. */ 28146 struct point {int x, y;}; 28147 static struct point const zero = {0,0}; 28148 /* IBM XL C 1.02.0.0 rejects this. 28149 It does not let you subtract one const X* pointer from another in 28150 an arm of an if-expression whose if-part is not a constant 28151 expression */ 28152 const char *g = "string"; 28153 pcpcc = &g + (g ? g-g : 0); 28154 /* HPUX 7.0 cc rejects these. */ 28155 ++pcpcc; 28156 ppc = (char**) pcpcc; 28157 pcpcc = (char const *const *) ppc; 28158 { /* SCO 3.2v4 cc rejects this sort of thing. */ 28159 char tx; 28160 char *t = &tx; 28161 char const *s = 0 ? (char *) 0 : (char const *) 0; 28162 28163 *t++ = 0; 28164 if (s) return 0; 28165 } 28166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 28167 int x[] = {25, 17}; 28168 const int *foo = &x[0]; 28169 ++foo; 28170 } 28171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 28172 typedef const int *iptr; 28173 iptr p = 0; 28174 ++p; 28175 } 28176 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 28177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 28178 struct s { int j; const int *ap[3]; } bx; 28179 struct s *b = &bx; b->j = 5; 28180 } 28181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 28182 const int foo = 10; 28183 if (!foo) return 0; 28184 } 28185 return !cs[0] && !zero.x; 28186 #endif 28187 28188 ; 28189 return 0; 28190 } 28191 _ACEOF 28192 if ac_fn_c_try_compile "$LINENO" 28193 then : 28194 ac_cv_c_const=yes 28195 else $as_nop 28196 ac_cv_c_const=no 28197 fi 28198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28199 fi 28200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 28201 printf "%s\n" "$ac_cv_c_const" >&6; } 28202 if test $ac_cv_c_const = no; then 28203 28204 printf "%s\n" "#define const /**/" >>confdefs.h 28205 28206 fi 28207 28208 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 28209 if test "x$ac_cv_type_off_t" = xyes 28210 then : 28211 28212 else $as_nop 28213 28214 printf "%s\n" "#define off_t long int" >>confdefs.h 28215 28216 fi 28217 28218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 28219 printf %s "checking for mode_t... " >&6; } 28220 if test ${ac_cv_type_mode_t+y} 28221 then : 28222 printf %s "(cached) " >&6 28223 else $as_nop 28224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28225 /* end confdefs.h. */ 28226 #include <sys/types.h> 28227 #if STDC_HEADERS 28228 #include <stdlib.h> 28229 #include <stddef.h> 28230 #endif 28231 28232 _ACEOF 28233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28234 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1 28235 then : 28236 ac_cv_type_mode_t=yes 28237 else $as_nop 28238 ac_cv_type_mode_t=no 28239 fi 28240 rm -rf conftest* 28241 28242 fi 28243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5 28244 printf "%s\n" "$ac_cv_type_mode_t" >&6; } 28245 if test $ac_cv_type_mode_t = no; then 28246 28247 printf "%s\n" "#define mode_t unsigned short" >>confdefs.h 28248 28249 fi 28250 28251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 28252 printf %s "checking for sig_atomic_t... " >&6; } 28253 if test ${ac_cv_type_sig_atomic_t+y} 28254 then : 28255 printf %s "(cached) " >&6 28256 else $as_nop 28257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28258 /* end confdefs.h. */ 28259 #include <sys/types.h> 28260 #if STDC_HEADERS 28261 #include <stdlib.h> 28262 #include <stddef.h> 28263 #endif 28264 #include <signal.h> 28265 _ACEOF 28266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28267 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1 28268 then : 28269 ac_cv_type_sig_atomic_t=yes 28270 else $as_nop 28271 ac_cv_type_sig_atomic_t=no 28272 fi 28273 rm -rf conftest* 28274 28275 fi 28276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 28277 printf "%s\n" "$ac_cv_type_sig_atomic_t" >&6; } 28278 if test $ac_cv_type_sig_atomic_t = no; then 28279 28280 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h 28281 28282 fi 28283 28284 28285 28286 cv=`echo "long long" | sed 'y%./+- %__p__%'` 28287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 28288 printf %s "checking for long long... " >&6; } 28289 if eval test \${ac_cv_type_$cv+y} 28290 then : 28291 printf %s "(cached) " >&6 28292 else $as_nop 28293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28294 /* end confdefs.h. */ 28295 28296 #include <sys/types.h> 28297 #if STDC_HEADERS 28298 #include <stdlib.h> 28299 #include <stddef.h> 28300 #endif 28301 28302 int 28303 main (void) 28304 { 28305 long long foo; 28306 ; 28307 return 0; 28308 } 28309 _ACEOF 28310 if ac_fn_c_try_compile "$LINENO" 28311 then : 28312 eval "ac_cv_type_$cv=yes" 28313 else $as_nop 28314 eval "ac_cv_type_$cv=no" 28315 fi 28316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28317 fi 28318 ac_foo=`eval echo \\$ac_cv_type_$cv` 28319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 28320 printf "%s\n" "$ac_foo" >&6; } 28321 if test "$ac_foo" = yes; then 28322 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 28323 if false; then 28324 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 28325 if test "x$ac_cv_type_long_long" = xyes 28326 then : 28327 28328 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 28329 28330 28331 fi 28332 28333 fi 28334 28335 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h 28336 28337 fi 28338 28339 28340 # Obsolete code to be removed. 28341 if test $ac_cv_header_sys_time_h = yes; then 28342 28343 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 28344 28345 fi 28346 # End of obsolete code. 28347 28348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 28349 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 28350 if test ${ac_cv_struct_tm+y} 28351 then : 28352 printf %s "(cached) " >&6 28353 else $as_nop 28354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28355 /* end confdefs.h. */ 28356 #include <sys/types.h> 28357 #include <time.h> 28358 28359 int 28360 main (void) 28361 { 28362 struct tm tm; 28363 int *p = &tm.tm_sec; 28364 return !p; 28365 ; 28366 return 0; 28367 } 28368 _ACEOF 28369 if ac_fn_c_try_compile "$LINENO" 28370 then : 28371 ac_cv_struct_tm=time.h 28372 else $as_nop 28373 ac_cv_struct_tm=sys/time.h 28374 fi 28375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28376 fi 28377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 28378 printf "%s\n" "$ac_cv_struct_tm" >&6; } 28379 if test $ac_cv_struct_tm = sys/time.h; then 28380 28381 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 28382 28383 fi 28384 28385 28386 # Autoupdate added the next two lines to ensure that your configure 28387 # script's behavior did not change. They are probably safe to remove. 28388 28389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 28390 printf %s "checking for egrep... " >&6; } 28391 if test ${ac_cv_path_EGREP+y} 28392 then : 28393 printf %s "(cached) " >&6 28394 else $as_nop 28395 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 28396 then ac_cv_path_EGREP="$GREP -E" 28397 else 28398 if test -z "$EGREP"; then 28399 ac_path_EGREP_found=false 28400 # Loop through the user's path and test for each of PROGNAME-LIST 28401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 28403 do 28404 IFS=$as_save_IFS 28405 case $as_dir in #((( 28406 '') as_dir=./ ;; 28407 */) ;; 28408 *) as_dir=$as_dir/ ;; 28409 esac 28410 for ac_prog in egrep 28411 do 28412 for ac_exec_ext in '' $ac_executable_extensions; do 28413 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 28414 as_fn_executable_p "$ac_path_EGREP" || continue 28415 # Check for GNU ac_path_EGREP and select it if it is found. 28416 # Check for GNU $ac_path_EGREP 28417 case `"$ac_path_EGREP" --version 2>&1` in 28418 *GNU*) 28419 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 28420 *) 28421 ac_count=0 28422 printf %s 0123456789 >"conftest.in" 28423 while : 28424 do 28425 cat "conftest.in" "conftest.in" >"conftest.tmp" 28426 mv "conftest.tmp" "conftest.in" 28427 cp "conftest.in" "conftest.nl" 28428 printf "%s\n" 'EGREP' >> "conftest.nl" 28429 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 28430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 28431 as_fn_arith $ac_count + 1 && ac_count=$as_val 28432 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 28433 # Best one so far, save it but keep looking for a better one 28434 ac_cv_path_EGREP="$ac_path_EGREP" 28435 ac_path_EGREP_max=$ac_count 28436 fi 28437 # 10*(2^10) chars as input seems more than enough 28438 test $ac_count -gt 10 && break 28439 done 28440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 28441 esac 28442 28443 $ac_path_EGREP_found && break 3 28444 done 28445 done 28446 done 28447 IFS=$as_save_IFS 28448 if test -z "$ac_cv_path_EGREP"; then 28449 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 28450 fi 28451 else 28452 ac_cv_path_EGREP=$EGREP 28453 fi 28454 28455 fi 28456 fi 28457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 28458 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 28459 EGREP="$ac_cv_path_EGREP" 28460 28461 28462 28463 28464 ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonDigest.h" "ac_cv_header_CommonCrypto_CommonDigest_h" "$ac_includes_default" 28465 if test "x$ac_cv_header_CommonCrypto_CommonDigest_h" = xyes 28466 then : 28467 printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONDIGEST_H 1" >>confdefs.h 28468 28469 fi 28470 ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonCryptor.h" "ac_cv_header_CommonCrypto_CommonCryptor_h" "$ac_includes_default" 28471 if test "x$ac_cv_header_CommonCrypto_CommonCryptor_h" = xyes 28472 then : 28473 printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONCRYPTOR_H 1" >>confdefs.h 28474 28475 fi 28476 ac_fn_c_check_header_compile "$LINENO" "arpa/telnet.h" "ac_cv_header_arpa_telnet_h" "$ac_includes_default" 28477 if test "x$ac_cv_header_arpa_telnet_h" = xyes 28478 then : 28479 printf "%s\n" "#define HAVE_ARPA_TELNET_H 1" >>confdefs.h 28480 28481 fi 28482 ac_fn_c_check_header_compile "$LINENO" "bind/bitypes.h" "ac_cv_header_bind_bitypes_h" "$ac_includes_default" 28483 if test "x$ac_cv_header_bind_bitypes_h" = xyes 28484 then : 28485 printf "%s\n" "#define HAVE_BIND_BITYPES_H 1" >>confdefs.h 28486 28487 fi 28488 ac_fn_c_check_header_compile "$LINENO" "bsdsetjmp.h" "ac_cv_header_bsdsetjmp_h" "$ac_includes_default" 28489 if test "x$ac_cv_header_bsdsetjmp_h" = xyes 28490 then : 28491 printf "%s\n" "#define HAVE_BSDSETJMP_H 1" >>confdefs.h 28492 28493 fi 28494 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 28495 if test "x$ac_cv_header_curses_h" = xyes 28496 then : 28497 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h 28498 28499 fi 28500 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 28501 if test "x$ac_cv_header_dlfcn_h" = xyes 28502 then : 28503 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 28504 28505 fi 28506 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 28507 if test "x$ac_cv_header_execinfo_h" = xyes 28508 then : 28509 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 28510 28511 fi 28512 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 28513 if test "x$ac_cv_header_fnmatch_h" = xyes 28514 then : 28515 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 28516 28517 fi 28518 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 28519 if test "x$ac_cv_header_inttypes_h" = xyes 28520 then : 28521 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 28522 28523 fi 28524 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" 28525 if test "x$ac_cv_header_io_h" = xyes 28526 then : 28527 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 28528 28529 fi 28530 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 28531 if test "x$ac_cv_header_libutil_h" = xyes 28532 then : 28533 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h 28534 28535 fi 28536 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 28537 if test "x$ac_cv_header_limits_h" = xyes 28538 then : 28539 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 28540 28541 fi 28542 ac_fn_c_check_header_compile "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 28543 if test "x$ac_cv_header_maillock_h" = xyes 28544 then : 28545 printf "%s\n" "#define HAVE_MAILLOCK_H 1" >>confdefs.h 28546 28547 fi 28548 ac_fn_c_check_header_compile "$LINENO" "netgroup.h" "ac_cv_header_netgroup_h" "$ac_includes_default" 28549 if test "x$ac_cv_header_netgroup_h" = xyes 28550 then : 28551 printf "%s\n" "#define HAVE_NETGROUP_H 1" >>confdefs.h 28552 28553 fi 28554 ac_fn_c_check_header_compile "$LINENO" "netinet/in6_machtypes.h" "ac_cv_header_netinet_in6_machtypes_h" "$ac_includes_default" 28555 if test "x$ac_cv_header_netinet_in6_machtypes_h" = xyes 28556 then : 28557 printf "%s\n" "#define HAVE_NETINET_IN6_MACHTYPES_H 1" >>confdefs.h 28558 28559 fi 28560 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 28561 if test "x$ac_cv_header_netinet_tcp_h" = xyes 28562 then : 28563 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 28564 28565 fi 28566 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 28567 if test "x$ac_cv_header_pthread_h" = xyes 28568 then : 28569 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 28570 28571 fi 28572 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 28573 if test "x$ac_cv_header_pty_h" = xyes 28574 then : 28575 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h 28576 28577 fi 28578 ac_fn_c_check_header_compile "$LINENO" "sac.h" "ac_cv_header_sac_h" "$ac_includes_default" 28579 if test "x$ac_cv_header_sac_h" = xyes 28580 then : 28581 printf "%s\n" "#define HAVE_SAC_H 1" >>confdefs.h 28582 28583 fi 28584 ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" 28585 if test "x$ac_cv_header_sgtty_h" = xyes 28586 then : 28587 printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h 28588 28589 fi 28590 ac_fn_c_check_header_compile "$LINENO" "siad.h" "ac_cv_header_siad_h" "$ac_includes_default" 28591 if test "x$ac_cv_header_siad_h" = xyes 28592 then : 28593 printf "%s\n" "#define HAVE_SIAD_H 1" >>confdefs.h 28594 28595 fi 28596 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 28597 if test "x$ac_cv_header_signal_h" = xyes 28598 then : 28599 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 28600 28601 fi 28602 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 28603 if test "x$ac_cv_header_strings_h" = xyes 28604 then : 28605 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 28606 28607 fi 28608 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 28609 if test "x$ac_cv_header_stropts_h" = xyes 28610 then : 28611 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 28612 28613 fi 28614 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 28615 if test "x$ac_cv_header_sys_bitypes_h" = xyes 28616 then : 28617 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 28618 28619 fi 28620 ac_fn_c_check_header_compile "$LINENO" "sys/category.h" "ac_cv_header_sys_category_h" "$ac_includes_default" 28621 if test "x$ac_cv_header_sys_category_h" = xyes 28622 then : 28623 printf "%s\n" "#define HAVE_SYS_CATEGORY_H 1" >>confdefs.h 28624 28625 fi 28626 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 28627 if test "x$ac_cv_header_sys_file_h" = xyes 28628 then : 28629 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h 28630 28631 fi 28632 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 28633 if test "x$ac_cv_header_sys_filio_h" = xyes 28634 then : 28635 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 28636 28637 fi 28638 ac_fn_c_check_header_compile "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default" 28639 if test "x$ac_cv_header_sys_ioccom_h" = xyes 28640 then : 28641 printf "%s\n" "#define HAVE_SYS_IOCCOM_H 1" >>confdefs.h 28642 28643 fi 28644 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 28645 if test "x$ac_cv_header_sys_mman_h" = xyes 28646 then : 28647 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 28648 28649 fi 28650 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 28651 if test "x$ac_cv_header_sys_param_h" = xyes 28652 then : 28653 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 28654 28655 fi 28656 ac_fn_c_check_header_compile "$LINENO" "sys/pty.h" "ac_cv_header_sys_pty_h" "$ac_includes_default" 28657 if test "x$ac_cv_header_sys_pty_h" = xyes 28658 then : 28659 printf "%s\n" "#define HAVE_SYS_PTY_H 1" >>confdefs.h 28660 28661 fi 28662 ac_fn_c_check_header_compile "$LINENO" "sys/ptyio.h" "ac_cv_header_sys_ptyio_h" "$ac_includes_default" 28663 if test "x$ac_cv_header_sys_ptyio_h" = xyes 28664 then : 28665 printf "%s\n" "#define HAVE_SYS_PTYIO_H 1" >>confdefs.h 28666 28667 fi 28668 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 28669 if test "x$ac_cv_header_sys_select_h" = xyes 28670 then : 28671 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 28672 28673 fi 28674 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 28675 if test "x$ac_cv_header_sys_socket_h" = xyes 28676 then : 28677 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 28678 28679 fi 28680 ac_fn_c_check_header_compile "$LINENO" "sys/str_tty.h" "ac_cv_header_sys_str_tty_h" "$ac_includes_default" 28681 if test "x$ac_cv_header_sys_str_tty_h" = xyes 28682 then : 28683 printf "%s\n" "#define HAVE_SYS_STR_TTY_H 1" >>confdefs.h 28684 28685 fi 28686 ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default" 28687 if test "x$ac_cv_header_sys_stream_h" = xyes 28688 then : 28689 printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h 28690 28691 fi 28692 ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default" 28693 if test "x$ac_cv_header_sys_stropts_h" = xyes 28694 then : 28695 printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h 28696 28697 fi 28698 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 28699 if test "x$ac_cv_header_sys_syscall_h" = xyes 28700 then : 28701 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h 28702 28703 fi 28704 ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" 28705 if test "x$ac_cv_header_sys_termio_h" = xyes 28706 then : 28707 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h 28708 28709 fi 28710 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 28711 if test "x$ac_cv_header_sys_timeb_h" = xyes 28712 then : 28713 printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h 28714 28715 fi 28716 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" 28717 if test "x$ac_cv_header_sys_times_h" = xyes 28718 then : 28719 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h 28720 28721 fi 28722 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 28723 if test "x$ac_cv_header_sys_types_h" = xyes 28724 then : 28725 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 28726 28727 fi 28728 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 28729 if test "x$ac_cv_header_sys_un_h" = xyes 28730 then : 28731 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 28732 28733 fi 28734 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 28735 if test "x$ac_cv_header_locale_h" = xyes 28736 then : 28737 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 28738 28739 fi 28740 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" 28741 if test "x$ac_cv_header_termcap_h" = xyes 28742 then : 28743 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h 28744 28745 fi 28746 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" 28747 if test "x$ac_cv_header_termio_h" = xyes 28748 then : 28749 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h 28750 28751 fi 28752 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 28753 if test "x$ac_cv_header_termios_h" = xyes 28754 then : 28755 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 28756 28757 fi 28758 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 28759 if test "x$ac_cv_header_time_h" = xyes 28760 then : 28761 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 28762 28763 fi 28764 ac_fn_c_check_header_compile "$LINENO" "tmpdir.h" "ac_cv_header_tmpdir_h" "$ac_includes_default" 28765 if test "x$ac_cv_header_tmpdir_h" = xyes 28766 then : 28767 printf "%s\n" "#define HAVE_TMPDIR_H 1" >>confdefs.h 28768 28769 fi 28770 ac_fn_c_check_header_compile "$LINENO" "udb.h" "ac_cv_header_udb_h" "$ac_includes_default" 28771 if test "x$ac_cv_header_udb_h" = xyes 28772 then : 28773 printf "%s\n" "#define HAVE_UDB_H 1" >>confdefs.h 28774 28775 fi 28776 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" 28777 if test "x$ac_cv_header_util_h" = xyes 28778 then : 28779 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h 28780 28781 fi 28782 28783 28784 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 28785 if test "x$ac_cv_header_term_h" = xyes 28786 then : 28787 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h 28788 28789 fi 28790 28791 28792 ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" " 28793 #include <asl.h> 28794 #ifndef ASL_STRING_EMERG 28795 #error ASL_STRING_EMERG missing 28796 #endif 28797 " 28798 if test "x$ac_cv_header_asl_h" = xyes 28799 then : 28800 printf "%s\n" "#define HAVE_ASL_H 1" >>confdefs.h 28801 28802 fi 28803 28804 28805 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 28806 #if HAVE_SYS_SOCKET_H 28807 #include <sys/socket.h> 28808 #endif 28809 " 28810 if test "x$ac_cv_header_net_if_h" = xyes 28811 then : 28812 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 28813 28814 fi 28815 28816 28817 ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default 28818 #if HAVE_SYS_TTY_H 28819 #include <sys/tty.h> 28820 #endif 28821 " 28822 if test "x$ac_cv_header_sys_ptyvar_h" = xyes 28823 then : 28824 printf "%s\n" "#define HAVE_SYS_PTYVAR_H 1" >>confdefs.h 28825 28826 fi 28827 28828 28829 ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default 28830 #if HAVE_TERMIOS_H 28831 #include <termios.h> 28832 #endif 28833 #if HAVE_SYS_STREAM_H 28834 #include <sys/stream.h> 28835 #endif 28836 " 28837 if test "x$ac_cv_header_sys_strtty_h" = xyes 28838 then : 28839 printf "%s\n" "#define HAVE_SYS_STRTTY_H 1" >>confdefs.h 28840 28841 fi 28842 28843 28844 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default 28845 #if HAVE_SYS_TYPES_H 28846 #include <sys/types.h> 28847 #endif 28848 #if HAVE_SYS_PARAM_H 28849 #include <sys/param.h> 28850 #endif 28851 " 28852 if test "x$ac_cv_header_sys_ucred_h" = xyes 28853 then : 28854 printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h 28855 28856 fi 28857 28858 28859 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default 28860 #include <security/pam_appl.h> 28861 28862 " 28863 if test "x$ac_cv_header_security_pam_modules_h" = xyes 28864 then : 28865 printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h 28866 28867 fi 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5 28879 printf %s "checking for logwtmp... " >&6; } 28880 if test ${ac_cv_funclib_logwtmp+y} 28881 then : 28882 printf %s "(cached) " >&6 28883 else $as_nop 28884 28885 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 28886 ac_save_LIBS="$LIBS" 28887 for ac_lib in "" util; do 28888 case "$ac_lib" in 28889 "") ;; 28890 yes) ac_lib="" ;; 28891 no) continue ;; 28892 -l*) ;; 28893 *) ac_lib="-l$ac_lib" ;; 28894 esac 28895 LIBS=" $ac_lib $ac_save_LIBS" 28896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28897 /* end confdefs.h. */ 28898 28899 #ifdef HAVE_UTIL_H 28900 #include <util.h> 28901 #endif 28902 28903 int 28904 main (void) 28905 { 28906 logwtmp(0,0,0) 28907 ; 28908 return 0; 28909 } 28910 _ACEOF 28911 if ac_fn_c_try_link "$LINENO" 28912 then : 28913 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 28914 fi 28915 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28916 conftest$ac_exeext conftest.$ac_ext 28917 done 28918 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 28919 LIBS="$ac_save_LIBS" 28920 fi 28921 28922 fi 28923 28924 28925 eval "ac_res=\$ac_cv_funclib_logwtmp" 28926 28927 if false; then 28928 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp" 28929 if test "x$ac_cv_func_logwtmp" = xyes 28930 then : 28931 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h 28932 28933 fi 28934 28935 fi 28936 # logwtmp 28937 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28938 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28939 eval "LIB_logwtmp=$ac_res" 28940 28941 case "$ac_res" in 28942 yes) 28943 eval "ac_cv_func_logwtmp=yes" 28944 eval "LIB_logwtmp=" 28945 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 28946 28947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28948 printf "%s\n" "yes" >&6; } 28949 ;; 28950 no) 28951 eval "ac_cv_func_logwtmp=no" 28952 eval "LIB_logwtmp=" 28953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28954 printf "%s\n" "no" >&6; } 28955 ;; 28956 *) 28957 eval "ac_cv_func_logwtmp=yes" 28958 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 28959 28960 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 28961 28962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 28963 printf "%s\n" "yes, in $ac_res" >&6; } 28964 ;; 28965 esac 28966 28967 28968 28969 28970 28971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for logout" >&5 28972 printf %s "checking for logout... " >&6; } 28973 if test ${ac_cv_funclib_logout+y} 28974 then : 28975 printf %s "(cached) " >&6 28976 else $as_nop 28977 28978 if eval "test \"\$ac_cv_func_logout\" != yes" ; then 28979 ac_save_LIBS="$LIBS" 28980 for ac_lib in "" util; do 28981 case "$ac_lib" in 28982 "") ;; 28983 yes) ac_lib="" ;; 28984 no) continue ;; 28985 -l*) ;; 28986 *) ac_lib="-l$ac_lib" ;; 28987 esac 28988 LIBS=" $ac_lib $ac_save_LIBS" 28989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28990 /* end confdefs.h. */ 28991 28992 #ifdef HAVE_UTIL_H 28993 #include <util.h> 28994 #endif 28995 28996 int 28997 main (void) 28998 { 28999 logout(0) 29000 ; 29001 return 0; 29002 } 29003 _ACEOF 29004 if ac_fn_c_try_link "$LINENO" 29005 then : 29006 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 29007 fi 29008 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29009 conftest$ac_exeext conftest.$ac_ext 29010 done 29011 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 29012 LIBS="$ac_save_LIBS" 29013 fi 29014 29015 fi 29016 29017 29018 eval "ac_res=\$ac_cv_funclib_logout" 29019 29020 if false; then 29021 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout" 29022 if test "x$ac_cv_func_logout" = xyes 29023 then : 29024 printf "%s\n" "#define HAVE_LOGOUT 1" >>confdefs.h 29025 29026 fi 29027 29028 fi 29029 # logout 29030 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29031 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29032 eval "LIB_logout=$ac_res" 29033 29034 case "$ac_res" in 29035 yes) 29036 eval "ac_cv_func_logout=yes" 29037 eval "LIB_logout=" 29038 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29039 29040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29041 printf "%s\n" "yes" >&6; } 29042 ;; 29043 no) 29044 eval "ac_cv_func_logout=no" 29045 eval "LIB_logout=" 29046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29047 printf "%s\n" "no" >&6; } 29048 ;; 29049 *) 29050 eval "ac_cv_func_logout=yes" 29051 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29052 29053 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29054 29055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29056 printf "%s\n" "yes, in $ac_res" >&6; } 29057 ;; 29058 esac 29059 29060 29061 29062 29063 29064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5 29065 printf %s "checking for openpty... " >&6; } 29066 if test ${ac_cv_funclib_openpty+y} 29067 then : 29068 printf %s "(cached) " >&6 29069 else $as_nop 29070 29071 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 29072 ac_save_LIBS="$LIBS" 29073 for ac_lib in "" util; do 29074 case "$ac_lib" in 29075 "") ;; 29076 yes) ac_lib="" ;; 29077 no) continue ;; 29078 -l*) ;; 29079 *) ac_lib="-l$ac_lib" ;; 29080 esac 29081 LIBS=" $ac_lib $ac_save_LIBS" 29082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29083 /* end confdefs.h. */ 29084 29085 #ifdef HAVE_UTIL_H 29086 #include <util.h> 29087 #endif 29088 29089 int 29090 main (void) 29091 { 29092 openpty(0,0,0,0,0) 29093 ; 29094 return 0; 29095 } 29096 _ACEOF 29097 if ac_fn_c_try_link "$LINENO" 29098 then : 29099 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 29100 fi 29101 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29102 conftest$ac_exeext conftest.$ac_ext 29103 done 29104 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 29105 LIBS="$ac_save_LIBS" 29106 fi 29107 29108 fi 29109 29110 29111 eval "ac_res=\$ac_cv_funclib_openpty" 29112 29113 if false; then 29114 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 29115 if test "x$ac_cv_func_openpty" = xyes 29116 then : 29117 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 29118 29119 fi 29120 29121 fi 29122 # openpty 29123 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29124 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29125 eval "LIB_openpty=$ac_res" 29126 29127 case "$ac_res" in 29128 yes) 29129 eval "ac_cv_func_openpty=yes" 29130 eval "LIB_openpty=" 29131 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29132 29133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29134 printf "%s\n" "yes" >&6; } 29135 ;; 29136 no) 29137 eval "ac_cv_func_openpty=no" 29138 eval "LIB_openpty=" 29139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29140 printf "%s\n" "no" >&6; } 29141 ;; 29142 *) 29143 eval "ac_cv_func_openpty=yes" 29144 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29145 29146 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29147 29148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29149 printf "%s\n" "yes, in $ac_res" >&6; } 29150 ;; 29151 esac 29152 29153 29154 29155 29156 29157 29158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5 29159 printf %s "checking for tgetent... " >&6; } 29160 if test ${ac_cv_funclib_tgetent+y} 29161 then : 29162 printf %s "(cached) " >&6 29163 else $as_nop 29164 29165 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 29166 ac_save_LIBS="$LIBS" 29167 for ac_lib in "" termcap ncurses curses; do 29168 case "$ac_lib" in 29169 "") ;; 29170 yes) ac_lib="" ;; 29171 no) continue ;; 29172 -l*) ;; 29173 *) ac_lib="-l$ac_lib" ;; 29174 esac 29175 LIBS=" $ac_lib $ac_save_LIBS" 29176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29177 /* end confdefs.h. */ 29178 29179 #ifdef HAVE_TERMCAP_H 29180 #include <termcap.h> 29181 #endif 29182 #ifdef HAVE_CURSES_H 29183 #include <curses.h> 29184 #endif 29185 29186 int 29187 main (void) 29188 { 29189 tgetent(0,0) 29190 ; 29191 return 0; 29192 } 29193 _ACEOF 29194 if ac_fn_c_try_link "$LINENO" 29195 then : 29196 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 29197 fi 29198 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29199 conftest$ac_exeext conftest.$ac_ext 29200 done 29201 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 29202 LIBS="$ac_save_LIBS" 29203 fi 29204 29205 fi 29206 29207 29208 eval "ac_res=\$ac_cv_funclib_tgetent" 29209 29210 if false; then 29211 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" 29212 if test "x$ac_cv_func_tgetent" = xyes 29213 then : 29214 printf "%s\n" "#define HAVE_TGETENT 1" >>confdefs.h 29215 29216 fi 29217 29218 fi 29219 # tgetent 29220 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29221 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29222 eval "LIB_tgetent=$ac_res" 29223 29224 case "$ac_res" in 29225 yes) 29226 eval "ac_cv_func_tgetent=yes" 29227 eval "LIB_tgetent=" 29228 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29229 29230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29231 printf "%s\n" "yes" >&6; } 29232 ;; 29233 no) 29234 eval "ac_cv_func_tgetent=no" 29235 eval "LIB_tgetent=" 29236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29237 printf "%s\n" "no" >&6; } 29238 ;; 29239 *) 29240 eval "ac_cv_func_tgetent=yes" 29241 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29242 29243 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29244 29245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29246 printf "%s\n" "yes, in $ac_res" >&6; } 29247 ;; 29248 esac 29249 29250 29251 29252 29253 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" 29254 if test "x$ac_cv_func__getpty" = xyes 29255 then : 29256 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h 29257 29258 fi 29259 ac_fn_c_check_func "$LINENO" "_scrsize" "ac_cv_func__scrsize" 29260 if test "x$ac_cv_func__scrsize" = xyes 29261 then : 29262 printf "%s\n" "#define HAVE__SCRSIZE 1" >>confdefs.h 29263 29264 fi 29265 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 29266 if test "x$ac_cv_func_arc4random" = xyes 29267 then : 29268 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 29269 29270 fi 29271 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 29272 if test "x$ac_cv_func_backtrace" = xyes 29273 then : 29274 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 29275 29276 fi 29277 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 29278 if test "x$ac_cv_func_fcntl" = xyes 29279 then : 29280 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 29281 29282 fi 29283 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 29284 if test "x$ac_cv_func_fork" = xyes 29285 then : 29286 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 29287 29288 fi 29289 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 29290 if test "x$ac_cv_func_getpeereid" = xyes 29291 then : 29292 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h 29293 29294 fi 29295 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 29296 if test "x$ac_cv_func_getpeerucred" = xyes 29297 then : 29298 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h 29299 29300 fi 29301 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 29302 if test "x$ac_cv_func_grantpt" = xyes 29303 then : 29304 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h 29305 29306 fi 29307 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 29308 if test "x$ac_cv_func_kill" = xyes 29309 then : 29310 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 29311 29312 fi 29313 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 29314 if test "x$ac_cv_func_mktime" = xyes 29315 then : 29316 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h 29317 29318 fi 29319 ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname" 29320 if test "x$ac_cv_func_ptsname" = xyes 29321 then : 29322 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h 29323 29324 fi 29325 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand" 29326 if test "x$ac_cv_func_rand" = xyes 29327 then : 29328 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h 29329 29330 fi 29331 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke" 29332 if test "x$ac_cv_func_revoke" = xyes 29333 then : 29334 printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h 29335 29336 fi 29337 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 29338 if test "x$ac_cv_func_select" = xyes 29339 then : 29340 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 29341 29342 fi 29343 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 29344 if test "x$ac_cv_func_setitimer" = xyes 29345 then : 29346 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 29347 29348 fi 29349 ac_fn_c_check_func "$LINENO" "setpcred" "ac_cv_func_setpcred" 29350 if test "x$ac_cv_func_setpcred" = xyes 29351 then : 29352 printf "%s\n" "#define HAVE_SETPCRED 1" >>confdefs.h 29353 29354 fi 29355 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" 29356 if test "x$ac_cv_func_setpgid" = xyes 29357 then : 29358 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h 29359 29360 fi 29361 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 29362 if test "x$ac_cv_func_setproctitle" = xyes 29363 then : 29364 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h 29365 29366 fi 29367 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 29368 if test "x$ac_cv_func_setregid" = xyes 29369 then : 29370 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 29371 29372 fi 29373 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 29374 if test "x$ac_cv_func_setresgid" = xyes 29375 then : 29376 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 29377 29378 fi 29379 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 29380 if test "x$ac_cv_func_setresuid" = xyes 29381 then : 29382 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 29383 29384 fi 29385 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 29386 if test "x$ac_cv_func_setreuid" = xyes 29387 then : 29388 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 29389 29390 fi 29391 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 29392 if test "x$ac_cv_func_setsid" = xyes 29393 then : 29394 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 29395 29396 fi 29397 ac_fn_c_check_func "$LINENO" "setutent" "ac_cv_func_setutent" 29398 if test "x$ac_cv_func_setutent" = xyes 29399 then : 29400 printf "%s\n" "#define HAVE_SETUTENT 1" >>confdefs.h 29401 29402 fi 29403 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 29404 if test "x$ac_cv_func_sigaction" = xyes 29405 then : 29406 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 29407 29408 fi 29409 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 29410 if test "x$ac_cv_func_strstr" = xyes 29411 then : 29412 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h 29413 29414 fi 29415 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname" 29416 if test "x$ac_cv_func_ttyname" = xyes 29417 then : 29418 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h 29419 29420 fi 29421 ac_fn_c_check_func "$LINENO" "ttyslot" "ac_cv_func_ttyslot" 29422 if test "x$ac_cv_func_ttyslot" = xyes 29423 then : 29424 printf "%s\n" "#define HAVE_TTYSLOT 1" >>confdefs.h 29425 29426 fi 29427 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 29428 if test "x$ac_cv_func_umask" = xyes 29429 then : 29430 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h 29431 29432 fi 29433 ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt" 29434 if test "x$ac_cv_func_unlockpt" = xyes 29435 then : 29436 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h 29437 29438 fi 29439 ac_fn_c_check_func "$LINENO" "vhangup" "ac_cv_func_vhangup" 29440 if test "x$ac_cv_func_vhangup" = xyes 29441 then : 29442 printf "%s\n" "#define HAVE_VHANGUP 1" >>confdefs.h 29443 29444 fi 29445 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 29446 if test "x$ac_cv_func_waitpid" = xyes 29447 then : 29448 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h 29449 29450 fi 29451 ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain" 29452 if test "x$ac_cv_func_yp_get_default_domain" = xyes 29453 then : 29454 printf "%s\n" "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h 29455 29456 fi 29457 29458 29459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5 29460 printf %s "checking checking for __sync_add_and_fetch... " >&6; } 29461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29462 /* end confdefs.h. */ 29463 #include <sys/types.h> 29464 int 29465 main (void) 29466 { 29467 unsigned int foo, bar; bar = __sync_add_and_fetch(&foo, 1); 29468 ; 29469 return 0; 29470 } 29471 _ACEOF 29472 if ac_fn_c_try_link "$LINENO" 29473 then : 29474 ac_rk_have___sync_add_and_fetch=yes 29475 else $as_nop 29476 ac_rk_have___sync_add_and_fetch=no 29477 fi 29478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29479 conftest$ac_exeext conftest.$ac_ext 29480 if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then 29481 29482 printf "%s\n" "#define HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h 29483 29484 fi 29485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5 29486 printf "%s\n" "$ac_rk_have___sync_add_and_fetch" >&6; } 29487 29488 29489 29490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 29491 printf %s "checking for working mmap... " >&6; } 29492 if test ${ac_cv_func_mmap_fixed_mapped+y} 29493 then : 29494 printf %s "(cached) " >&6 29495 else $as_nop 29496 if test "$cross_compiling" = yes 29497 then : 29498 case "$host_os" in # (( 29499 # Guess yes on platforms where we know the result. 29500 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 29501 # If we don't know, assume the worst. 29502 *) ac_cv_func_mmap_fixed_mapped=no ;; 29503 esac 29504 else $as_nop 29505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29506 /* end confdefs.h. */ 29507 $ac_includes_default 29508 /* malloc might have been renamed as rpl_malloc. */ 29509 #undef malloc 29510 29511 /* Thanks to Mike Haertel and Jim Avera for this test. 29512 Here is a matrix of mmap possibilities: 29513 mmap private not fixed 29514 mmap private fixed at somewhere currently unmapped 29515 mmap private fixed at somewhere already mapped 29516 mmap shared not fixed 29517 mmap shared fixed at somewhere currently unmapped 29518 mmap shared fixed at somewhere already mapped 29519 For private mappings, we should verify that changes cannot be read() 29520 back from the file, nor mmap's back from the file at a different 29521 address. (There have been systems where private was not correctly 29522 implemented like the infamous i386 svr4.0, and systems where the 29523 VM page cache was not coherent with the file system buffer cache 29524 like early versions of FreeBSD and possibly contemporary NetBSD.) 29525 For shared mappings, we should conversely verify that changes get 29526 propagated back to all the places they're supposed to be. 29527 29528 Grep wants private fixed already mapped. 29529 The main things grep needs to know about mmap are: 29530 * does it exist and is it safe to write into the mmap'd area 29531 * how to use it (BSD variants) */ 29532 29533 #include <fcntl.h> 29534 #include <sys/mman.h> 29535 29536 /* This mess was copied from the GNU getpagesize.h. */ 29537 #ifndef HAVE_GETPAGESIZE 29538 # ifdef _SC_PAGESIZE 29539 # define getpagesize() sysconf(_SC_PAGESIZE) 29540 # else /* no _SC_PAGESIZE */ 29541 # ifdef HAVE_SYS_PARAM_H 29542 # include <sys/param.h> 29543 # ifdef EXEC_PAGESIZE 29544 # define getpagesize() EXEC_PAGESIZE 29545 # else /* no EXEC_PAGESIZE */ 29546 # ifdef NBPG 29547 # define getpagesize() NBPG * CLSIZE 29548 # ifndef CLSIZE 29549 # define CLSIZE 1 29550 # endif /* no CLSIZE */ 29551 # else /* no NBPG */ 29552 # ifdef NBPC 29553 # define getpagesize() NBPC 29554 # else /* no NBPC */ 29555 # ifdef PAGESIZE 29556 # define getpagesize() PAGESIZE 29557 # endif /* PAGESIZE */ 29558 # endif /* no NBPC */ 29559 # endif /* no NBPG */ 29560 # endif /* no EXEC_PAGESIZE */ 29561 # else /* no HAVE_SYS_PARAM_H */ 29562 # define getpagesize() 8192 /* punt totally */ 29563 # endif /* no HAVE_SYS_PARAM_H */ 29564 # endif /* no _SC_PAGESIZE */ 29565 29566 #endif /* no HAVE_GETPAGESIZE */ 29567 29568 int 29569 main (void) 29570 { 29571 char *data, *data2, *data3; 29572 const char *cdata2; 29573 int i, pagesize; 29574 int fd, fd2; 29575 29576 pagesize = getpagesize (); 29577 29578 /* First, make a file with some known garbage in it. */ 29579 data = (char *) malloc (pagesize); 29580 if (!data) 29581 return 1; 29582 for (i = 0; i < pagesize; ++i) 29583 *(data + i) = rand (); 29584 umask (0); 29585 fd = creat ("conftest.mmap", 0600); 29586 if (fd < 0) 29587 return 2; 29588 if (write (fd, data, pagesize) != pagesize) 29589 return 3; 29590 close (fd); 29591 29592 /* Next, check that the tail of a page is zero-filled. File must have 29593 non-zero length, otherwise we risk SIGBUS for entire page. */ 29594 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 29595 if (fd2 < 0) 29596 return 4; 29597 cdata2 = ""; 29598 if (write (fd2, cdata2, 1) != 1) 29599 return 5; 29600 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 29601 if (data2 == MAP_FAILED) 29602 return 6; 29603 for (i = 0; i < pagesize; ++i) 29604 if (*(data2 + i)) 29605 return 7; 29606 close (fd2); 29607 if (munmap (data2, pagesize)) 29608 return 8; 29609 29610 /* Next, try to mmap the file at a fixed address which already has 29611 something else allocated at it. If we can, also make sure that 29612 we see the same garbage. */ 29613 fd = open ("conftest.mmap", O_RDWR); 29614 if (fd < 0) 29615 return 9; 29616 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 29617 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 29618 return 10; 29619 for (i = 0; i < pagesize; ++i) 29620 if (*(data + i) != *(data2 + i)) 29621 return 11; 29622 29623 /* Finally, make sure that changes to the mapped area do not 29624 percolate back to the file as seen by read(). (This is a bug on 29625 some variants of i386 svr4.0.) */ 29626 for (i = 0; i < pagesize; ++i) 29627 *(data2 + i) = *(data2 + i) + 1; 29628 data3 = (char *) malloc (pagesize); 29629 if (!data3) 29630 return 12; 29631 if (read (fd, data3, pagesize) != pagesize) 29632 return 13; 29633 for (i = 0; i < pagesize; ++i) 29634 if (*(data + i) != *(data3 + i)) 29635 return 14; 29636 close (fd); 29637 free (data); 29638 free (data3); 29639 return 0; 29640 } 29641 _ACEOF 29642 if ac_fn_c_try_run "$LINENO" 29643 then : 29644 ac_cv_func_mmap_fixed_mapped=yes 29645 else $as_nop 29646 ac_cv_func_mmap_fixed_mapped=no 29647 fi 29648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29649 conftest.$ac_objext conftest.beam conftest.$ac_ext 29650 fi 29651 29652 fi 29653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 29654 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 29655 if test $ac_cv_func_mmap_fixed_mapped = yes; then 29656 29657 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 29658 29659 fi 29660 rm -f conftest.mmap conftest.txt 29661 29662 29663 29664 29665 ac_fn_c_check_header_compile "$LINENO" "capability.h" "ac_cv_header_capability_h" "$ac_includes_default" 29666 if test "x$ac_cv_header_capability_h" = xyes 29667 then : 29668 printf "%s\n" "#define HAVE_CAPABILITY_H 1" >>confdefs.h 29669 29670 fi 29671 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 29672 if test "x$ac_cv_header_sys_capability_h" = xyes 29673 then : 29674 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h 29675 29676 fi 29677 29678 29679 ac_fn_c_check_func "$LINENO" "sgi_getcapabilitybyname" "ac_cv_func_sgi_getcapabilitybyname" 29680 if test "x$ac_cv_func_sgi_getcapabilitybyname" = xyes 29681 then : 29682 printf "%s\n" "#define HAVE_SGI_GETCAPABILITYBYNAME 1" >>confdefs.h 29683 29684 fi 29685 ac_fn_c_check_func "$LINENO" "cap_set_proc" "ac_cv_func_cap_set_proc" 29686 if test "x$ac_cv_func_cap_set_proc" = xyes 29687 then : 29688 printf "%s\n" "#define HAVE_CAP_SET_PROC 1" >>confdefs.h 29689 29690 fi 29691 29692 29693 29694 29695 29696 29697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dladdr" >&5 29698 printf %s "checking for dladdr... " >&6; } 29699 if test ${ac_cv_funclib_dladdr+y} 29700 then : 29701 printf %s "(cached) " >&6 29702 else $as_nop 29703 29704 if eval "test \"\$ac_cv_func_dladdr\" != yes" ; then 29705 ac_save_LIBS="$LIBS" 29706 for ac_lib in "" dl; do 29707 case "$ac_lib" in 29708 "") ;; 29709 yes) ac_lib="" ;; 29710 no) continue ;; 29711 -l*) ;; 29712 *) ac_lib="-l$ac_lib" ;; 29713 esac 29714 LIBS=" $ac_lib $ac_save_LIBS" 29715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29716 /* end confdefs.h. */ 29717 29718 #ifdef HAVE_DLFCN_H 29719 #include <dlfcn.h> 29720 #endif 29721 int 29722 main (void) 29723 { 29724 dladdr(0,0) 29725 ; 29726 return 0; 29727 } 29728 _ACEOF 29729 if ac_fn_c_try_link "$LINENO" 29730 then : 29731 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dladdr=$ac_lib; else ac_cv_funclib_dladdr=yes; fi";break 29732 fi 29733 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29734 conftest$ac_exeext conftest.$ac_ext 29735 done 29736 eval "ac_cv_funclib_dladdr=\${ac_cv_funclib_dladdr-no}" 29737 LIBS="$ac_save_LIBS" 29738 fi 29739 29740 fi 29741 29742 29743 eval "ac_res=\$ac_cv_funclib_dladdr" 29744 29745 if false; then 29746 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" 29747 if test "x$ac_cv_func_dladdr" = xyes 29748 then : 29749 printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h 29750 29751 fi 29752 29753 fi 29754 # dladdr 29755 eval "ac_tr_func=HAVE_`echo dladdr | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29756 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29757 eval "LIB_dladdr=$ac_res" 29758 29759 case "$ac_res" in 29760 yes) 29761 eval "ac_cv_func_dladdr=yes" 29762 eval "LIB_dladdr=" 29763 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29764 29765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29766 printf "%s\n" "yes" >&6; } 29767 ;; 29768 no) 29769 eval "ac_cv_func_dladdr=no" 29770 eval "LIB_dladdr=" 29771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29772 printf "%s\n" "no" >&6; } 29773 ;; 29774 *) 29775 eval "ac_cv_func_dladdr=yes" 29776 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29777 29778 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29779 29780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29781 printf "%s\n" "yes, in $ac_res" >&6; } 29782 ;; 29783 esac 29784 29785 29786 if test "$ac_cv_funclib_dladdr" != no; then 29787 HAVE_DLADDR_TRUE= 29788 HAVE_DLADDR_FALSE='#' 29789 else 29790 HAVE_DLADDR_TRUE='#' 29791 HAVE_DLADDR_FALSE= 29792 fi 29793 29794 29795 29796 29797 29798 29799 29800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5 29801 printf %s "checking for getpwnam_r... " >&6; } 29802 if test ${ac_cv_funclib_getpwnam_r+y} 29803 then : 29804 printf %s "(cached) " >&6 29805 else $as_nop 29806 29807 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 29808 ac_save_LIBS="$LIBS" 29809 for ac_lib in "" c_r; do 29810 case "$ac_lib" in 29811 "") ;; 29812 yes) ac_lib="" ;; 29813 no) continue ;; 29814 -l*) ;; 29815 *) ac_lib="-l$ac_lib" ;; 29816 esac 29817 LIBS=" $ac_lib $ac_save_LIBS" 29818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29819 /* end confdefs.h. */ 29820 29821 int 29822 main (void) 29823 { 29824 getpwnam_r() 29825 ; 29826 return 0; 29827 } 29828 _ACEOF 29829 if ac_fn_c_try_link "$LINENO" 29830 then : 29831 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 29832 fi 29833 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29834 conftest$ac_exeext conftest.$ac_ext 29835 done 29836 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 29837 LIBS="$ac_save_LIBS" 29838 fi 29839 29840 fi 29841 29842 29843 eval "ac_res=\$ac_cv_funclib_getpwnam_r" 29844 29845 if false; then 29846 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 29847 if test "x$ac_cv_func_getpwnam_r" = xyes 29848 then : 29849 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h 29850 29851 fi 29852 29853 fi 29854 # getpwnam_r 29855 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29856 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29857 eval "LIB_getpwnam_r=$ac_res" 29858 29859 case "$ac_res" in 29860 yes) 29861 eval "ac_cv_func_getpwnam_r=yes" 29862 eval "LIB_getpwnam_r=" 29863 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29864 29865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29866 printf "%s\n" "yes" >&6; } 29867 ;; 29868 no) 29869 eval "ac_cv_func_getpwnam_r=no" 29870 eval "LIB_getpwnam_r=" 29871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29872 printf "%s\n" "no" >&6; } 29873 ;; 29874 *) 29875 eval "ac_cv_func_getpwnam_r=yes" 29876 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 29877 29878 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 29879 29880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 29881 printf "%s\n" "yes, in $ac_res" >&6; } 29882 ;; 29883 esac 29884 29885 29886 if test "$ac_cv_func_getpwnam_r" = yes; then 29887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5 29888 printf %s "checking if getpwnam_r is posix... " >&6; } 29889 if test ${ac_cv_func_getpwnam_r_posix+y} 29890 then : 29891 printf %s "(cached) " >&6 29892 else $as_nop 29893 ac_libs="$LIBS" 29894 LIBS="$LIBS $LIB_getpwnam_r" 29895 if test "$cross_compiling" = yes 29896 then : 29897 : 29898 else $as_nop 29899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29900 /* end confdefs.h. */ 29901 29902 #define _POSIX_PTHREAD_SEMANTICS 29903 #include <pwd.h> 29904 int main(int argc, char **argv) 29905 { 29906 struct passwd pw, *pwd; 29907 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 29908 } 29909 29910 _ACEOF 29911 if ac_fn_c_try_run "$LINENO" 29912 then : 29913 ac_cv_func_getpwnam_r_posix=yes 29914 else $as_nop 29915 ac_cv_func_getpwnam_r_posix=no 29916 fi 29917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29918 conftest.$ac_objext conftest.beam conftest.$ac_ext 29919 fi 29920 29921 LIBS="$ac_libs" 29922 fi 29923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5 29924 printf "%s\n" "$ac_cv_func_getpwnam_r_posix" >&6; } 29925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5 29926 printf %s "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; } 29927 if test ${ac_cv_func_getpwnam_r_posix_def+y} 29928 then : 29929 printf %s "(cached) " >&6 29930 else $as_nop 29931 ac_libs="$LIBS" 29932 LIBS="$LIBS $LIB_getpwnam_r" 29933 if test "$cross_compiling" = yes 29934 then : 29935 : 29936 else $as_nop 29937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29938 /* end confdefs.h. */ 29939 29940 #include <pwd.h> 29941 int main(int argc, char **argv) 29942 { 29943 struct passwd pw, *pwd; 29944 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 29945 } 29946 29947 _ACEOF 29948 if ac_fn_c_try_run "$LINENO" 29949 then : 29950 ac_cv_func_getpwnam_r_posix_def=no 29951 else $as_nop 29952 ac_cv_func_getpwnam_r_posix_def=yes 29953 fi 29954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29955 conftest.$ac_objext conftest.beam conftest.$ac_ext 29956 fi 29957 29958 LIBS="$ac_libs" 29959 fi 29960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5 29961 printf "%s\n" "$ac_cv_func_getpwnam_r_posix_def" >&6; } 29962 if test "$ac_cv_func_getpwnam_r_posix" = yes; then 29963 29964 printf "%s\n" "#define POSIX_GETPWNAM_R 1" >>confdefs.h 29965 29966 fi 29967 if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then 29968 29969 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 29970 29971 fi 29972 fi 29973 29974 29975 if test "$enable_pthread_support" != no; then 29976 saved_LIBS="$LIBS" 29977 LIBS="$LIBS $PTHREADS_LIBS" 29978 29979 29980 29981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5 29982 printf %s "checking for door_create... " >&6; } 29983 if test ${ac_cv_funclib_door_create+y} 29984 then : 29985 printf %s "(cached) " >&6 29986 else $as_nop 29987 29988 if eval "test \"\$ac_cv_func_door_create\" != yes" ; then 29989 ac_save_LIBS="$LIBS" 29990 for ac_lib in "" door; do 29991 case "$ac_lib" in 29992 "") ;; 29993 yes) ac_lib="" ;; 29994 no) continue ;; 29995 -l*) ;; 29996 *) ac_lib="-l$ac_lib" ;; 29997 esac 29998 LIBS=" $ac_lib $ac_save_LIBS" 29999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30000 /* end confdefs.h. */ 30001 30002 int 30003 main (void) 30004 { 30005 door_create() 30006 ; 30007 return 0; 30008 } 30009 _ACEOF 30010 if ac_fn_c_try_link "$LINENO" 30011 then : 30012 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break 30013 fi 30014 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30015 conftest$ac_exeext conftest.$ac_ext 30016 done 30017 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}" 30018 LIBS="$ac_save_LIBS" 30019 fi 30020 30021 fi 30022 30023 30024 eval "ac_res=\$ac_cv_funclib_door_create" 30025 30026 if false; then 30027 ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create" 30028 if test "x$ac_cv_func_door_create" = xyes 30029 then : 30030 printf "%s\n" "#define HAVE_DOOR_CREATE 1" >>confdefs.h 30031 30032 fi 30033 30034 fi 30035 # door_create 30036 eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30037 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30038 eval "LIB_door_create=$ac_res" 30039 30040 case "$ac_res" in 30041 yes) 30042 eval "ac_cv_func_door_create=yes" 30043 eval "LIB_door_create=" 30044 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 30045 30046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30047 printf "%s\n" "yes" >&6; } 30048 ;; 30049 no) 30050 eval "ac_cv_func_door_create=no" 30051 eval "LIB_door_create=" 30052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30053 printf "%s\n" "no" >&6; } 30054 ;; 30055 *) 30056 eval "ac_cv_func_door_create=yes" 30057 printf "%s\n" "#define $ac_tr_func 1" >>confdefs.h 30058 30059 printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 30060 30061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 30062 printf "%s\n" "yes, in $ac_res" >&6; } 30063 ;; 30064 esac 30065 30066 30067 LIBS="$saved_LIBS" 30068 fi 30069 30070 # Check whether --enable-kcm was given. 30071 if test ${enable_kcm+y} 30072 then : 30073 enableval=$enable_kcm; 30074 else $as_nop 30075 enable_kcm=yes 30076 fi 30077 30078 30079 if test "$enable_kcm" = yes ; then 30080 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then 30081 enable_kcm=no 30082 fi 30083 fi 30084 if test "$enable_kcm" = yes; then 30085 30086 printf "%s\n" "#define HAVE_KCM 1" >>confdefs.h 30087 30088 fi 30089 if test "$enable_kcm" = yes; then 30090 KCM_TRUE= 30091 KCM_FALSE='#' 30092 else 30093 KCM_TRUE='#' 30094 KCM_FALSE= 30095 fi 30096 30097 30098 30099 30100 ac_fn_c_check_func "$LINENO" "getudbnam" "ac_cv_func_getudbnam" 30101 if test "x$ac_cv_func_getudbnam" = xyes 30102 then : 30103 printf "%s\n" "#define HAVE_GETUDBNAM 1" >>confdefs.h 30104 30105 fi 30106 ac_fn_c_check_func "$LINENO" "setlim" "ac_cv_func_setlim" 30107 if test "x$ac_cv_func_setlim" = xyes 30108 then : 30109 printf "%s\n" "#define HAVE_SETLIM 1" >>confdefs.h 30110 30111 fi 30112 30113 30114 30115 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " 30116 #ifdef HAVE_INTTYPES_H 30117 #include <inttypes.h> 30118 #endif 30119 #ifdef HAVE_SYS_TYPES_H 30120 #include <sys/types.h> 30121 #endif 30122 #ifdef HAVE_SYS_BITYPES_H 30123 #include <sys/bitypes.h> 30124 #endif 30125 #ifdef HAVE_BIND_BITYPES_H 30126 #include <bind/bitypes.h> 30127 #endif 30128 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30129 #include <netinet/in6_machtypes.h> 30130 #endif 30131 30132 " 30133 if test "x$ac_cv_type_int8_t" = xyes 30134 then : 30135 30136 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h 30137 30138 30139 fi 30140 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " 30141 #ifdef HAVE_INTTYPES_H 30142 #include <inttypes.h> 30143 #endif 30144 #ifdef HAVE_SYS_TYPES_H 30145 #include <sys/types.h> 30146 #endif 30147 #ifdef HAVE_SYS_BITYPES_H 30148 #include <sys/bitypes.h> 30149 #endif 30150 #ifdef HAVE_BIND_BITYPES_H 30151 #include <bind/bitypes.h> 30152 #endif 30153 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30154 #include <netinet/in6_machtypes.h> 30155 #endif 30156 30157 " 30158 if test "x$ac_cv_type_int16_t" = xyes 30159 then : 30160 30161 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h 30162 30163 30164 fi 30165 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " 30166 #ifdef HAVE_INTTYPES_H 30167 #include <inttypes.h> 30168 #endif 30169 #ifdef HAVE_SYS_TYPES_H 30170 #include <sys/types.h> 30171 #endif 30172 #ifdef HAVE_SYS_BITYPES_H 30173 #include <sys/bitypes.h> 30174 #endif 30175 #ifdef HAVE_BIND_BITYPES_H 30176 #include <bind/bitypes.h> 30177 #endif 30178 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30179 #include <netinet/in6_machtypes.h> 30180 #endif 30181 30182 " 30183 if test "x$ac_cv_type_int32_t" = xyes 30184 then : 30185 30186 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h 30187 30188 30189 fi 30190 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " 30191 #ifdef HAVE_INTTYPES_H 30192 #include <inttypes.h> 30193 #endif 30194 #ifdef HAVE_SYS_TYPES_H 30195 #include <sys/types.h> 30196 #endif 30197 #ifdef HAVE_SYS_BITYPES_H 30198 #include <sys/bitypes.h> 30199 #endif 30200 #ifdef HAVE_BIND_BITYPES_H 30201 #include <bind/bitypes.h> 30202 #endif 30203 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30204 #include <netinet/in6_machtypes.h> 30205 #endif 30206 30207 " 30208 if test "x$ac_cv_type_int64_t" = xyes 30209 then : 30210 30211 printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h 30212 30213 30214 fi 30215 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" " 30216 #ifdef HAVE_INTTYPES_H 30217 #include <inttypes.h> 30218 #endif 30219 #ifdef HAVE_SYS_TYPES_H 30220 #include <sys/types.h> 30221 #endif 30222 #ifdef HAVE_SYS_BITYPES_H 30223 #include <sys/bitypes.h> 30224 #endif 30225 #ifdef HAVE_BIND_BITYPES_H 30226 #include <bind/bitypes.h> 30227 #endif 30228 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30229 #include <netinet/in6_machtypes.h> 30230 #endif 30231 30232 " 30233 if test "x$ac_cv_type_u_int8_t" = xyes 30234 then : 30235 30236 printf "%s\n" "#define HAVE_U_INT8_T 1" >>confdefs.h 30237 30238 30239 fi 30240 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" " 30241 #ifdef HAVE_INTTYPES_H 30242 #include <inttypes.h> 30243 #endif 30244 #ifdef HAVE_SYS_TYPES_H 30245 #include <sys/types.h> 30246 #endif 30247 #ifdef HAVE_SYS_BITYPES_H 30248 #include <sys/bitypes.h> 30249 #endif 30250 #ifdef HAVE_BIND_BITYPES_H 30251 #include <bind/bitypes.h> 30252 #endif 30253 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30254 #include <netinet/in6_machtypes.h> 30255 #endif 30256 30257 " 30258 if test "x$ac_cv_type_u_int16_t" = xyes 30259 then : 30260 30261 printf "%s\n" "#define HAVE_U_INT16_T 1" >>confdefs.h 30262 30263 30264 fi 30265 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" " 30266 #ifdef HAVE_INTTYPES_H 30267 #include <inttypes.h> 30268 #endif 30269 #ifdef HAVE_SYS_TYPES_H 30270 #include <sys/types.h> 30271 #endif 30272 #ifdef HAVE_SYS_BITYPES_H 30273 #include <sys/bitypes.h> 30274 #endif 30275 #ifdef HAVE_BIND_BITYPES_H 30276 #include <bind/bitypes.h> 30277 #endif 30278 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30279 #include <netinet/in6_machtypes.h> 30280 #endif 30281 30282 " 30283 if test "x$ac_cv_type_u_int32_t" = xyes 30284 then : 30285 30286 printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h 30287 30288 30289 fi 30290 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" " 30291 #ifdef HAVE_INTTYPES_H 30292 #include <inttypes.h> 30293 #endif 30294 #ifdef HAVE_SYS_TYPES_H 30295 #include <sys/types.h> 30296 #endif 30297 #ifdef HAVE_SYS_BITYPES_H 30298 #include <sys/bitypes.h> 30299 #endif 30300 #ifdef HAVE_BIND_BITYPES_H 30301 #include <bind/bitypes.h> 30302 #endif 30303 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30304 #include <netinet/in6_machtypes.h> 30305 #endif 30306 30307 " 30308 if test "x$ac_cv_type_u_int64_t" = xyes 30309 then : 30310 30311 printf "%s\n" "#define HAVE_U_INT64_T 1" >>confdefs.h 30312 30313 30314 fi 30315 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " 30316 #ifdef HAVE_INTTYPES_H 30317 #include <inttypes.h> 30318 #endif 30319 #ifdef HAVE_SYS_TYPES_H 30320 #include <sys/types.h> 30321 #endif 30322 #ifdef HAVE_SYS_BITYPES_H 30323 #include <sys/bitypes.h> 30324 #endif 30325 #ifdef HAVE_BIND_BITYPES_H 30326 #include <bind/bitypes.h> 30327 #endif 30328 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30329 #include <netinet/in6_machtypes.h> 30330 #endif 30331 30332 " 30333 if test "x$ac_cv_type_uint8_t" = xyes 30334 then : 30335 30336 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h 30337 30338 30339 fi 30340 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " 30341 #ifdef HAVE_INTTYPES_H 30342 #include <inttypes.h> 30343 #endif 30344 #ifdef HAVE_SYS_TYPES_H 30345 #include <sys/types.h> 30346 #endif 30347 #ifdef HAVE_SYS_BITYPES_H 30348 #include <sys/bitypes.h> 30349 #endif 30350 #ifdef HAVE_BIND_BITYPES_H 30351 #include <bind/bitypes.h> 30352 #endif 30353 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30354 #include <netinet/in6_machtypes.h> 30355 #endif 30356 30357 " 30358 if test "x$ac_cv_type_uint16_t" = xyes 30359 then : 30360 30361 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h 30362 30363 30364 fi 30365 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " 30366 #ifdef HAVE_INTTYPES_H 30367 #include <inttypes.h> 30368 #endif 30369 #ifdef HAVE_SYS_TYPES_H 30370 #include <sys/types.h> 30371 #endif 30372 #ifdef HAVE_SYS_BITYPES_H 30373 #include <sys/bitypes.h> 30374 #endif 30375 #ifdef HAVE_BIND_BITYPES_H 30376 #include <bind/bitypes.h> 30377 #endif 30378 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30379 #include <netinet/in6_machtypes.h> 30380 #endif 30381 30382 " 30383 if test "x$ac_cv_type_uint32_t" = xyes 30384 then : 30385 30386 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h 30387 30388 30389 fi 30390 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " 30391 #ifdef HAVE_INTTYPES_H 30392 #include <inttypes.h> 30393 #endif 30394 #ifdef HAVE_SYS_TYPES_H 30395 #include <sys/types.h> 30396 #endif 30397 #ifdef HAVE_SYS_BITYPES_H 30398 #include <sys/bitypes.h> 30399 #endif 30400 #ifdef HAVE_BIND_BITYPES_H 30401 #include <bind/bitypes.h> 30402 #endif 30403 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 30404 #include <netinet/in6_machtypes.h> 30405 #endif 30406 30407 " 30408 if test "x$ac_cv_type_uint64_t" = xyes 30409 then : 30410 30411 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h 30412 30413 30414 fi 30415 30416 30417 30418 30419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5 30420 printf %s "checking for framework security... " >&6; } 30421 if test ${rk_cv_framework_security+y} 30422 then : 30423 printf %s "(cached) " >&6 30424 else $as_nop 30425 30426 if test "$rk_cv_framework_security" != yes; then 30427 ac_save_LIBS="$LIBS" 30428 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation" 30429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30430 /* end confdefs.h. */ 30431 #include <Security/Security.h> 30432 30433 int 30434 main (void) 30435 { 30436 SecKeychainSearchRef searchRef; 30437 SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef); 30438 CFRelease(&searchRef); 30439 30440 ; 30441 return 0; 30442 } 30443 _ACEOF 30444 if ac_fn_c_try_link "$LINENO" 30445 then : 30446 rk_cv_framework_security=yes 30447 fi 30448 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30449 conftest$ac_exeext conftest.$ac_ext 30450 LIBS="$ac_save_LIBS" 30451 fi 30452 30453 fi 30454 30455 30456 if test "$rk_cv_framework_security" = yes; then 30457 30458 printf "%s\n" "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h 30459 30460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30461 printf "%s\n" "yes" >&6; } 30462 else 30463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30464 printf "%s\n" "no" >&6; } 30465 fi 30466 if test "$rk_cv_framework_security" = yes; then 30467 FRAMEWORK_SECURITY_TRUE= 30468 FRAMEWORK_SECURITY_FALSE='#' 30469 else 30470 FRAMEWORK_SECURITY_TRUE='#' 30471 FRAMEWORK_SECURITY_FALSE= 30472 fi 30473 30474 30475 if test "$rk_cv_framework_security" = yes; then 30476 30477 if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then 30478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5 30479 printf %s "checking if SecKeyGetCSPHandle needs a prototype... " >&6; } 30480 if test ${ac_cv_func_SecKeyGetCSPHandle_noproto+y} 30481 then : 30482 printf %s "(cached) " >&6 30483 else $as_nop 30484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30485 /* end confdefs.h. */ 30486 #include <Security/Security.h> 30487 struct foo { int foo; } xx; 30488 extern int SecKeyGetCSPHandle (struct foo*); 30489 int 30490 main (void) 30491 { 30492 SecKeyGetCSPHandle(&xx) 30493 ; 30494 return 0; 30495 } 30496 _ACEOF 30497 if ac_fn_c_try_compile "$LINENO" 30498 then : 30499 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes" 30500 else $as_nop 30501 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no" 30502 fi 30503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30504 fi 30505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5 30506 printf "%s\n" "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; } 30507 if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then 30508 30509 printf "%s\n" "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h 30510 30511 fi 30512 fi 30513 30514 fi 30515 30516 30517 30518 30519 30520 30521 ac_foo=no 30522 build_editline=no 30523 if test "$with_readline" = yes; then 30524 : 30525 elif test "$with_libedit" = yes; then 30526 LIB_readline="${LIB_libedit}" 30527 elif test "$ac_cv_func_readline" = yes; then 30528 : 30529 else 30530 build_libedit=yes 30531 LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)" 30532 fi 30533 if test "$build_libedit" = yes; then 30534 LIBEDIT_TRUE= 30535 LIBEDIT_FALSE='#' 30536 else 30537 LIBEDIT_TRUE='#' 30538 LIBEDIT_FALSE= 30539 fi 30540 30541 30542 printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h 30543 30544 30545 30546 30547 30548 printf "%s\n" "#define AUTHENTICATION 1" >>confdefs.h 30549 30550 printf "%s\n" "#define ENCRYPTION 1" >>confdefs.h 30551 30552 printf "%s\n" "#define DES_ENCRYPTION 1" >>confdefs.h 30553 30554 printf "%s\n" "#define DIAGNOSTICS 1" >>confdefs.h 30555 30556 printf "%s\n" "#define OLD_ENVIRON 1" >>confdefs.h 30557 if false; then 30558 30559 printf "%s\n" "#define ENV_HACK 1" >>confdefs.h 30560 30561 fi 30562 30563 # Simple test for streamspty, based on the existance of getmsg(), alas 30564 # this breaks on SunOS4 which have streams but BSD-like ptys 30565 # 30566 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys 30567 30568 case "$host" in 30569 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 30570 ;; 30571 *) 30572 ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg" 30573 if test "x$ac_cv_func_getmsg" = xyes 30574 then : 30575 30576 fi 30577 30578 if test "$ac_cv_func_getmsg" = "yes"; then 30579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5 30580 printf %s "checking if getmsg works... " >&6; } 30581 if test ${ac_cv_func_getmsg_works+y} 30582 then : 30583 printf %s "(cached) " >&6 30584 else $as_nop 30585 if test "$cross_compiling" = yes 30586 then : 30587 ac_cv_func_getmsg_works=no 30588 else $as_nop 30589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30590 /* end confdefs.h. */ 30591 30592 #include <stdio.h> 30593 #include <errno.h> 30594 30595 int main(int argc, char **argv) 30596 { 30597 int ret; 30598 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 30599 if(ret < 0 && errno == ENOSYS) 30600 return 1; 30601 return 0; 30602 } 30603 30604 _ACEOF 30605 if ac_fn_c_try_run "$LINENO" 30606 then : 30607 ac_cv_func_getmsg_works=yes 30608 else $as_nop 30609 ac_cv_func_getmsg_works=no 30610 fi 30611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30612 conftest.$ac_objext conftest.beam conftest.$ac_ext 30613 fi 30614 30615 fi 30616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5 30617 printf "%s\n" "$ac_cv_func_getmsg_works" >&6; } 30618 if test "$ac_cv_func_getmsg_works" = "yes"; then 30619 30620 printf "%s\n" "#define HAVE_GETMSG 1" >>confdefs.h 30621 30622 30623 printf "%s\n" "#define STREAMSPTY 1" >>confdefs.h 30624 30625 fi 30626 fi 30627 ;; 30628 esac 30629 30630 30631 30632 30633 30634 30635 # Extract the first word of "compile_et", so it can be a program name with args. 30636 set dummy compile_et; ac_word=$2 30637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30638 printf %s "checking for $ac_word... " >&6; } 30639 if test ${ac_cv_prog_COMPILE_ET+y} 30640 then : 30641 printf %s "(cached) " >&6 30642 else $as_nop 30643 if test -n "$COMPILE_ET"; then 30644 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 30645 else 30646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30647 for as_dir in $PATH 30648 do 30649 IFS=$as_save_IFS 30650 case $as_dir in #((( 30651 '') as_dir=./ ;; 30652 */) ;; 30653 *) as_dir=$as_dir/ ;; 30654 esac 30655 for ac_exec_ext in '' $ac_executable_extensions; do 30656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30657 ac_cv_prog_COMPILE_ET="compile_et" 30658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30659 break 2 30660 fi 30661 done 30662 done 30663 IFS=$as_save_IFS 30664 30665 test -z "$ac_cv_prog_COMPILE_ET" && ac_cv_prog_COMPILE_ET="no" 30666 fi 30667 fi 30668 COMPILE_ET=$ac_cv_prog_COMPILE_ET 30669 if test -n "$COMPILE_ET"; then 30670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5 30671 printf "%s\n" "$COMPILE_ET" >&6; } 30672 else 30673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30674 printf "%s\n" "no" >&6; } 30675 fi 30676 30677 30678 30679 krb_cv_compile_et="no" 30680 krb_cv_com_err_need_r="" 30681 krb_cv_compile_et_cross=no 30682 if test "${COMPILE_ET}" != "no"; then 30683 30684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5 30685 printf %s "checking whether compile_et has the features we need... " >&6; } 30686 cat > conftest_et.et <<'EOF' 30687 error_table test conf 30688 prefix CONFTEST 30689 index 1 30690 error_code CODE1, "CODE1" 30691 index 128 30692 error_code CODE2, "CODE2" 30693 end 30694 EOF 30695 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 30696 save_CPPFLAGS="${CPPFLAGS}" 30697 if test -d "/usr/include/et"; then 30698 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 30699 fi 30700 ac_ext=c 30701 ac_cpp='$CPP $CPPFLAGS' 30702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30704 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30705 30706 if test "$cross_compiling" = yes 30707 then : 30708 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes 30709 else $as_nop 30710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30711 /* end confdefs.h. */ 30712 30713 #include <com_err.h> 30714 #include <string.h> 30715 #include "conftest_et.h" 30716 int main(int argc, char **argv){ 30717 #ifndef ERROR_TABLE_BASE_conf 30718 #error compile_et does not handle error_table N M 30719 #endif 30720 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 30721 30722 _ACEOF 30723 if ac_fn_c_try_run "$LINENO" 30724 then : 30725 krb_cv_compile_et="yes" 30726 else $as_nop 30727 CPPFLAGS="${save_CPPFLAGS}" 30728 fi 30729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30730 conftest.$ac_objext conftest.beam conftest.$ac_ext 30731 fi 30732 30733 fi 30734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5 30735 printf "%s\n" "${krb_cv_compile_et}" >&6; } 30736 if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then 30737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5 30738 printf %s "checking for if com_err generates a initialize_conf_error_table_r... " >&6; } 30739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30740 /* end confdefs.h. */ 30741 #include "conftest_et.h" 30742 _ACEOF 30743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30744 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1 30745 then : 30746 krb_cv_com_err_need_r="ok" 30747 fi 30748 rm -rf conftest* 30749 30750 if test X"$krb_cv_com_err_need_r" = X ; then 30751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30752 printf "%s\n" "no" >&6; } 30753 krb_cv_compile_et=no 30754 else 30755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30756 printf "%s\n" "yes" >&6; } 30757 fi 30758 fi 30759 rm -fr conftest* 30760 fi 30761 30762 if test "${krb_cv_compile_et_cross}" = yes ; then 30763 krb_cv_com_err="cross" 30764 elif test "${krb_cv_compile_et}" = "yes"; then 30765 krb_cv_save_LIBS="${LIBS}" 30766 LIBS="${LIBS} -lcom_err" 30767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5 30768 printf %s "checking for com_err... " >&6; } 30769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30770 /* end confdefs.h. */ 30771 #include <com_err.h> 30772 int 30773 main (void) 30774 { 30775 30776 const char *p; 30777 p = error_message(0); 30778 initialize_error_table_r(0,0,0,0); 30779 com_right_r(0, 0, 0, 0); 30780 30781 ; 30782 return 0; 30783 } 30784 _ACEOF 30785 if ac_fn_c_try_link "$LINENO" 30786 then : 30787 krb_cv_com_err="yes" 30788 else $as_nop 30789 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 30790 fi 30791 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30792 conftest$ac_exeext conftest.$ac_ext 30793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5 30794 printf "%s\n" "${krb_cv_com_err}" >&6; } 30795 LIBS="${krb_cv_save_LIBS}" 30796 else 30797 krb_cv_com_err="no" 30798 fi 30799 30800 if test "${krb_cv_com_err}" = "yes"; then 30801 DIR_com_err="" 30802 LIB_com_err="-lcom_err" 30803 LIB_com_err_a="" 30804 LIB_com_err_so="" 30805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5 30806 printf "%s\n" "$as_me: Using the already-installed com_err" >&6;} 30807 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 30808 localcomerr=no 30809 elif test "${krb_cv_com_err}" = "cross"; then 30810 DIR_com_err="com_err" 30811 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 30812 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 30813 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 30814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5 30815 printf "%s\n" "$as_me: Using our own com_err with toolchain compile_et" >&6;} 30816 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 30817 localcomerr=yes 30818 else 30819 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 30820 DIR_com_err="com_err" 30821 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 30822 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 30823 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 30824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5 30825 printf "%s\n" "$as_me: Using our own com_err" >&6;} 30826 localcomerr=yes 30827 fi 30828 if test "$localcomerr" = yes; then 30829 COM_ERR_TRUE= 30830 COM_ERR_FALSE='#' 30831 else 30832 COM_ERR_TRUE='#' 30833 COM_ERR_FALSE= 30834 fi 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5 30845 printf %s "checking which authentication modules should be built... " >&6; } 30846 30847 z='sia afskauthlib' 30848 LIB_AUTH_SUBDIRS= 30849 for i in $z; do 30850 case $i in 30851 sia) 30852 if test "$ac_cv_header_siad_h" = yes; then 30853 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 30854 fi 30855 ;; 30856 pam) 30857 case "${host}" in 30858 *-*-freebsd*) ac_cv_want_pam_krb4=no ;; 30859 *) ac_cv_want_pam_krb4=yes ;; 30860 esac 30861 30862 if test "$ac_cv_want_pam_krb4" = yes -a \ 30863 "$ac_cv_header_security_pam_modules_h" = yes -a \ 30864 "$enable_shared" = yes; then 30865 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 30866 fi 30867 ;; 30868 afskauthlib) 30869 case "${host}" in 30870 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 30871 esac 30872 ;; 30873 esac 30874 done 30875 if test "$LIB_AUTH_SUBDIRS"; then 30876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5 30877 printf "%s\n" "$LIB_AUTH_SUBDIRS" >&6; } 30878 else 30879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 30880 printf "%s\n" "none" >&6; } 30881 fi 30882 30883 30884 30885 30886 # This is done by AC_OUTPUT but we need the result here. 30887 test "x$prefix" = xNONE && prefix=$ac_default_prefix 30888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30889 30890 30891 x="${bindir}" 30892 eval y="$x" 30893 while test "x$y" != "x$x"; do 30894 x="$y" 30895 eval y="$x" 30896 done 30897 30898 printf "%s\n" "#define BINDIR \"$x\"" >>confdefs.h 30899 30900 x="${libdir}" 30901 eval y="$x" 30902 while test "x$y" != "x$x"; do 30903 x="$y" 30904 eval y="$x" 30905 done 30906 30907 printf "%s\n" "#define LIBDIR \"$x\"" >>confdefs.h 30908 30909 x="${libexecdir}" 30910 eval y="$x" 30911 while test "x$y" != "x$x"; do 30912 x="$y" 30913 eval y="$x" 30914 done 30915 30916 printf "%s\n" "#define LIBEXECDIR \"$x\"" >>confdefs.h 30917 30918 x="${localstatedir}" 30919 eval y="$x" 30920 while test "x$y" != "x$x"; do 30921 x="$y" 30922 eval y="$x" 30923 done 30924 30925 printf "%s\n" "#define LOCALSTATEDIR \"$x\"" >>confdefs.h 30926 30927 x="${sbindir}" 30928 eval y="$x" 30929 while test "x$y" != "x$x"; do 30930 x="$y" 30931 eval y="$x" 30932 done 30933 30934 printf "%s\n" "#define SBINDIR \"$x\"" >>confdefs.h 30935 30936 x="${sysconfdir}" 30937 eval y="$x" 30938 while test "x$y" != "x$x"; do 30939 x="$y" 30940 eval y="$x" 30941 done 30942 30943 printf "%s\n" "#define SYSCONFDIR \"$x\"" >>confdefs.h 30944 30945 30946 30947 30948 30949 # Check whether --enable-developer was given. 30950 if test ${enable_developer+y} 30951 then : 30952 enableval=$enable_developer; 30953 fi 30954 30955 if test "X$enable_developer" = Xyes; then 30956 dwflags="-Werror" 30957 fi 30958 if test "X$enable_developer" = Xyes; then 30959 DEVELOPER_MODE_TRUE= 30960 DEVELOPER_MODE_FALSE='#' 30961 else 30962 DEVELOPER_MODE_TRUE='#' 30963 DEVELOPER_MODE_FALSE= 30964 fi 30965 30966 30967 WFLAGS_NOUNUSED="" 30968 if test -z "$WFLAGS" -a "$GCC" = "yes"; then 30969 # leave these out for now: 30970 # -Wcast-align doesn't work well on alpha osf/1 30971 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 30972 # -Wmissing-declarations -Wnested-externs 30973 # -Wstrict-overflow=5 30974 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 30975 30976 # 30977 # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings 30978 # that fail for various bits of older code in appl/. Let's not use it 30979 # for the main libraries, though. 30980 WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow" 30981 # -Wno-unused-result (not supported on gcc-4.2) 30982 30983 fi 30984 30985 30986 30987 30988 30989 30990 30991 # Check whether --enable-heimdal-documentation was given. 30992 if test ${enable_heimdal_documentation+y} 30993 then : 30994 enableval=$enable_heimdal_documentation; 30995 fi 30996 30997 if test "$enable_heimdal_documentation" != no; then 30998 HEIMDAL_DOCUMENTATION_TRUE= 30999 HEIMDAL_DOCUMENTATION_FALSE='#' 31000 else 31001 HEIMDAL_DOCUMENTATION_TRUE='#' 31002 HEIMDAL_DOCUMENTATION_FALSE= 31003 fi 31004 31005 31006 ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/base/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/ipc/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/sqlite/Makefile lib/vers/Makefile lib/wind/Makefile po/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/dbutils/Makefile appl/gssmask/Makefile appl/otp/Makefile appl/su/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/bin/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile doc/Makefile tools/Makefile" 31007 31008 31009 cat >confcache <<\_ACEOF 31010 # This file is a shell script that caches the results of configure 31011 # tests run on this system so they can be shared between configure 31012 # scripts and configure runs, see configure's option --config-cache. 31013 # It is not useful on other systems. If it contains results you don't 31014 # want to keep, you may remove or edit it. 31015 # 31016 # config.status only pays attention to the cache file if you give it 31017 # the --recheck option to rerun configure. 31018 # 31019 # `ac_cv_env_foo' variables (set or unset) will be overridden when 31020 # loading this file, other *unset* `ac_cv_foo' will be assigned the 31021 # following values. 31022 31023 _ACEOF 31024 31025 # The following way of writing the cache mishandles newlines in values, 31026 # but we know of no workaround that is simple, portable, and efficient. 31027 # So, we kill variables containing newlines. 31028 # Ultrix sh set writes to stderr and can't be redirected directly, 31029 # and sets the high bit in the cache file unless we assign to the vars. 31030 ( 31031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 31032 eval ac_val=\$$ac_var 31033 case $ac_val in #( 31034 *${as_nl}*) 31035 case $ac_var in #( 31036 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 31037 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 31038 esac 31039 case $ac_var in #( 31040 _ | IFS | as_nl) ;; #( 31041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 31042 *) { eval $ac_var=; unset $ac_var;} ;; 31043 esac ;; 31044 esac 31045 done 31046 31047 (set) 2>&1 | 31048 case $as_nl`(ac_space=' '; set) 2>&1` in #( 31049 *${as_nl}ac_space=\ *) 31050 # `set' does not quote correctly, so add quotes: double-quote 31051 # substitution turns \\\\ into \\, and sed turns \\ into \. 31052 sed -n \ 31053 "s/'/'\\\\''/g; 31054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 31055 ;; #( 31056 *) 31057 # `set' quotes correctly as required by POSIX, so do not add quotes. 31058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 31059 ;; 31060 esac | 31061 sort 31062 ) | 31063 sed ' 31064 /^ac_cv_env_/b end 31065 t clear 31066 :clear 31067 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 31068 t end 31069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 31070 :end' >>confcache 31071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 31072 if test -w "$cache_file"; then 31073 if test "x$cache_file" != "x/dev/null"; then 31074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 31075 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 31076 if test ! -f "$cache_file" || test -h "$cache_file"; then 31077 cat confcache >"$cache_file" 31078 else 31079 case $cache_file in #( 31080 */* | ?:*) 31081 mv -f confcache "$cache_file"$$ && 31082 mv -f "$cache_file"$$ "$cache_file" ;; #( 31083 *) 31084 mv -f confcache "$cache_file" ;; 31085 esac 31086 fi 31087 fi 31088 else 31089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 31090 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 31091 fi 31092 fi 31093 rm -f confcache 31094 31095 test "x$prefix" = xNONE && prefix=$ac_default_prefix 31096 # Let make expand exec_prefix. 31097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 31098 31099 DEFS=-DHAVE_CONFIG_H 31100 31101 ac_libobjs= 31102 ac_ltlibobjs= 31103 U= 31104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 31105 # 1. Remove the extension, and $U if already installed. 31106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 31107 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 31108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 31109 # will be set to the directory where LIBOBJS objects are built. 31110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 31111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 31112 done 31113 LIBOBJS=$ac_libobjs 31114 31115 LTLIBOBJS=$ac_ltlibobjs 31116 31117 31118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 31119 printf %s "checking that generated files are newer than configure... " >&6; } 31120 if test -n "$am_sleep_pid"; then 31121 # Hide warnings about reused PIDs. 31122 wait $am_sleep_pid 2>/dev/null 31123 fi 31124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 31125 printf "%s\n" "done" >&6; } 31126 if test -n "$EXEEXT"; then 31127 am__EXEEXT_TRUE= 31128 am__EXEEXT_FALSE='#' 31129 else 31130 am__EXEEXT_TRUE='#' 31131 am__EXEEXT_FALSE= 31132 fi 31133 31134 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 31135 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 31136 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31137 fi 31138 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 31139 as_fn_error $? "conditional \"AMDEP\" was never defined. 31140 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31141 fi 31142 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 31143 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 31144 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31145 fi 31146 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 31147 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 31148 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31149 fi 31150 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 31151 as_fn_error $? "conditional \"AIX\" was never defined. 31152 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31153 fi 31154 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 31155 as_fn_error $? "conditional \"AIX4\" was never defined. 31156 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31157 fi 31158 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 31159 as_fn_error $? "conditional \"HAVE_DLOPEN\" was never defined. 31160 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31161 fi 31162 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 31163 as_fn_error $? "conditional \"AIX_DYNAMIC_AFS\" was never defined. 31164 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31165 fi 31166 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 31167 as_fn_error $? "conditional \"IRIX\" was never defined. 31168 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31169 fi 31170 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 31171 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined. 31172 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31173 fi 31174 if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then 31175 as_fn_error $? "conditional \"versionscript\" was never defined. 31176 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31177 fi 31178 if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then 31179 as_fn_error $? "conditional \"CROSS_COMPILE\" was never defined. 31180 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31181 fi 31182 if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then 31183 as_fn_error $? "conditional \"OPENLDAP_MODULE\" was never defined. 31184 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31185 fi 31186 if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then 31187 as_fn_error $? "conditional \"PKINIT\" was never defined. 31188 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31189 fi 31190 if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then 31191 as_fn_error $? "conditional \"HAVE_CAPNG\" was never defined. 31192 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31193 fi 31194 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then 31195 as_fn_error $? "conditional \"SQLITE3\" was never defined. 31196 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31197 fi 31198 if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then 31199 as_fn_error $? "conditional \"have_scc\" was never defined. 31200 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31201 fi 31202 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 31203 as_fn_error $? "conditional \"KRB5\" was never defined. 31204 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31205 fi 31206 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 31207 as_fn_error $? "conditional \"do_roken_rename\" was never defined. 31208 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31209 fi 31210 if test -z "${HAVE_HCRYPTO_W_OPENSSL_TRUE}" && test -z "${HAVE_HCRYPTO_W_OPENSSL_FALSE}"; then 31211 as_fn_error $? "conditional \"HAVE_HCRYPTO_W_OPENSSL\" was never defined. 31212 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31213 fi 31214 if test -z "${ENABLE_PTHREAD_SUPPORT_TRUE}" && test -z "${ENABLE_PTHREAD_SUPPORT_FALSE}"; then 31215 as_fn_error $? "conditional \"ENABLE_PTHREAD_SUPPORT\" was never defined. 31216 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31217 fi 31218 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 31219 as_fn_error $? "conditional \"DCE\" was never defined. 31220 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31221 fi 31222 if test -z "${NO_AFS_TRUE}" && test -z "${NO_AFS_FALSE}"; then 31223 as_fn_error $? "conditional \"NO_AFS\" was never defined. 31224 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31225 fi 31226 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 31227 as_fn_error $? "conditional \"HAVE_DB1\" was never defined. 31228 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31229 fi 31230 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 31231 as_fn_error $? "conditional \"HAVE_DB3\" was never defined. 31232 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31233 fi 31234 if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then 31235 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined. 31236 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31237 fi 31238 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 31239 as_fn_error $? "conditional \"HAVE_NDBM\" was never defined. 31240 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31241 fi 31242 if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then 31243 as_fn_error $? "conditional \"HAVE_DBHEADER\" was never defined. 31244 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31245 fi 31246 if test -z "${DEVELOPER_MODE_TRUE}" && test -z "${DEVELOPER_MODE_FALSE}"; then 31247 as_fn_error $? "conditional \"DEVELOPER_MODE\" was never defined. 31248 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31249 fi 31250 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 31251 as_fn_error $? "conditional \"have_err_h\" was never defined. 31252 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31253 fi 31254 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 31255 as_fn_error $? "conditional \"have_ifaddrs_h\" was never defined. 31256 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31257 fi 31258 if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then 31259 as_fn_error $? "conditional \"have_search_h\" was never defined. 31260 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31261 fi 31262 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 31263 as_fn_error $? "conditional \"have_vis_h\" was never defined. 31264 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31265 fi 31266 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 31267 as_fn_error $? "conditional \"have_glob_h\" was never defined. 31268 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31269 fi 31270 if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then 31271 as_fn_error $? "conditional \"have_cgetent\" was never defined. 31272 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31273 fi 31274 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 31275 as_fn_error $? "conditional \"have_fnmatch_h\" was never defined. 31276 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31277 fi 31278 if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then 31279 as_fn_error $? "conditional \"have_socket_wrapper\" was never defined. 31280 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31281 fi 31282 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 31283 as_fn_error $? "conditional \"OTP\" was never defined. 31284 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31285 fi 31286 if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then 31287 as_fn_error $? "conditional \"have_gcd\" was never defined. 31288 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31289 fi 31290 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 31291 as_fn_error $? "conditional \"CATMAN\" was never defined. 31292 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31293 fi 31294 if test -z "${HAVE_DLADDR_TRUE}" && test -z "${HAVE_DLADDR_FALSE}"; then 31295 as_fn_error $? "conditional \"HAVE_DLADDR\" was never defined. 31296 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31297 fi 31298 if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then 31299 as_fn_error $? "conditional \"KCM\" was never defined. 31300 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31301 fi 31302 if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then 31303 as_fn_error $? "conditional \"FRAMEWORK_SECURITY\" was never defined. 31304 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31305 fi 31306 if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then 31307 as_fn_error $? "conditional \"LIBEDIT\" was never defined. 31308 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31309 fi 31310 if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then 31311 as_fn_error $? "conditional \"COM_ERR\" was never defined. 31312 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31313 fi 31314 if test -z "${DEVELOPER_MODE_TRUE}" && test -z "${DEVELOPER_MODE_FALSE}"; then 31315 as_fn_error $? "conditional \"DEVELOPER_MODE\" was never defined. 31316 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31317 fi 31318 if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then 31319 as_fn_error $? "conditional \"HEIMDAL_DOCUMENTATION\" was never defined. 31320 Usually this means the macro was only invoked conditionally." "$LINENO" 5 31321 fi 31322 31323 : "${CONFIG_STATUS=./config.status}" 31324 ac_write_fail=0 31325 ac_clean_files_save=$ac_clean_files 31326 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 31327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 31328 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 31329 as_write_fail=0 31330 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 31331 #! $SHELL 31332 # Generated by $as_me. 31333 # Run this file to recreate the current configuration. 31334 # Compiler output produced by configure, useful for debugging 31335 # configure, is in config.log if it exists. 31336 31337 debug=false 31338 ac_cs_recheck=false 31339 ac_cs_silent=false 31340 31341 SHELL=\${CONFIG_SHELL-$SHELL} 31342 export SHELL 31343 _ASEOF 31344 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 31345 ## -------------------- ## 31346 ## M4sh Initialization. ## 31347 ## -------------------- ## 31348 31349 # Be more Bourne compatible 31350 DUALCASE=1; export DUALCASE # for MKS sh 31351 as_nop=: 31352 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 31353 then : 31354 emulate sh 31355 NULLCMD=: 31356 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31357 # is contrary to our usage. Disable this feature. 31358 alias -g '${1+"$@"}'='"$@"' 31359 setopt NO_GLOB_SUBST 31360 else $as_nop 31361 case `(set -o) 2>/dev/null` in #( 31362 *posix*) : 31363 set -o posix ;; #( 31364 *) : 31365 ;; 31366 esac 31367 fi 31368 31369 31370 31371 # Reset variables that may have inherited troublesome values from 31372 # the environment. 31373 31374 # IFS needs to be set, to space, tab, and newline, in precisely that order. 31375 # (If _AS_PATH_WALK were called with IFS unset, it would have the 31376 # side effect of setting IFS to empty, thus disabling word splitting.) 31377 # Quoting is to prevent editors from complaining about space-tab. 31378 as_nl=' 31379 ' 31380 export as_nl 31381 IFS=" "" $as_nl" 31382 31383 PS1='$ ' 31384 PS2='> ' 31385 PS4='+ ' 31386 31387 # Ensure predictable behavior from utilities with locale-dependent output. 31388 LC_ALL=C 31389 export LC_ALL 31390 LANGUAGE=C 31391 export LANGUAGE 31392 31393 # We cannot yet rely on "unset" to work, but we need these variables 31394 # to be unset--not just set to an empty or harmless value--now, to 31395 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 31396 # also avoids known problems related to "unset" and subshell syntax 31397 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 31398 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 31399 do eval test \${$as_var+y} \ 31400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31401 done 31402 31403 # Ensure that fds 0, 1, and 2 are open. 31404 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 31405 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 31406 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 31407 31408 # The user is always right. 31409 if ${PATH_SEPARATOR+false} :; then 31410 PATH_SEPARATOR=: 31411 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31412 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31413 PATH_SEPARATOR=';' 31414 } 31415 fi 31416 31417 31418 # Find who we are. Look in the path if we contain no directory separator. 31419 as_myself= 31420 case $0 in #(( 31421 *[\\/]* ) as_myself=$0 ;; 31422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31423 for as_dir in $PATH 31424 do 31425 IFS=$as_save_IFS 31426 case $as_dir in #((( 31427 '') as_dir=./ ;; 31428 */) ;; 31429 *) as_dir=$as_dir/ ;; 31430 esac 31431 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 31432 done 31433 IFS=$as_save_IFS 31434 31435 ;; 31436 esac 31437 # We did not find ourselves, most probably we were run as `sh COMMAND' 31438 # in which case we are not to be found in the path. 31439 if test "x$as_myself" = x; then 31440 as_myself=$0 31441 fi 31442 if test ! -f "$as_myself"; then 31443 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 31444 exit 1 31445 fi 31446 31447 31448 31449 # as_fn_error STATUS ERROR [LINENO LOG_FD] 31450 # ---------------------------------------- 31451 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 31452 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 31453 # script with STATUS, using 1 if that was 0. 31454 as_fn_error () 31455 { 31456 as_status=$1; test $as_status -eq 0 && as_status=1 31457 if test "$4"; then 31458 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 31459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 31460 fi 31461 printf "%s\n" "$as_me: error: $2" >&2 31462 as_fn_exit $as_status 31463 } # as_fn_error 31464 31465 31466 31467 # as_fn_set_status STATUS 31468 # ----------------------- 31469 # Set $? to STATUS, without forking. 31470 as_fn_set_status () 31471 { 31472 return $1 31473 } # as_fn_set_status 31474 31475 # as_fn_exit STATUS 31476 # ----------------- 31477 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31478 as_fn_exit () 31479 { 31480 set +e 31481 as_fn_set_status $1 31482 exit $1 31483 } # as_fn_exit 31484 31485 # as_fn_unset VAR 31486 # --------------- 31487 # Portably unset VAR. 31488 as_fn_unset () 31489 { 31490 { eval $1=; unset $1;} 31491 } 31492 as_unset=as_fn_unset 31493 31494 # as_fn_append VAR VALUE 31495 # ---------------------- 31496 # Append the text in VALUE to the end of the definition contained in VAR. Take 31497 # advantage of any shell optimizations that allow amortized linear growth over 31498 # repeated appends, instead of the typical quadratic growth present in naive 31499 # implementations. 31500 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 31501 then : 31502 eval 'as_fn_append () 31503 { 31504 eval $1+=\$2 31505 }' 31506 else $as_nop 31507 as_fn_append () 31508 { 31509 eval $1=\$$1\$2 31510 } 31511 fi # as_fn_append 31512 31513 # as_fn_arith ARG... 31514 # ------------------ 31515 # Perform arithmetic evaluation on the ARGs, and store the result in the 31516 # global $as_val. Take advantage of shells that can avoid forks. The arguments 31517 # must be portable across $(()) and expr. 31518 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 31519 then : 31520 eval 'as_fn_arith () 31521 { 31522 as_val=$(( $* )) 31523 }' 31524 else $as_nop 31525 as_fn_arith () 31526 { 31527 as_val=`expr "$@" || test $? -eq 1` 31528 } 31529 fi # as_fn_arith 31530 31531 31532 if expr a : '\(a\)' >/dev/null 2>&1 && 31533 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31534 as_expr=expr 31535 else 31536 as_expr=false 31537 fi 31538 31539 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31540 as_basename=basename 31541 else 31542 as_basename=false 31543 fi 31544 31545 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31546 as_dirname=dirname 31547 else 31548 as_dirname=false 31549 fi 31550 31551 as_me=`$as_basename -- "$0" || 31552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31553 X"$0" : 'X\(//\)$' \| \ 31554 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31555 printf "%s\n" X/"$0" | 31556 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31557 s//\1/ 31558 q 31559 } 31560 /^X\/\(\/\/\)$/{ 31561 s//\1/ 31562 q 31563 } 31564 /^X\/\(\/\).*/{ 31565 s//\1/ 31566 q 31567 } 31568 s/.*/./; q'` 31569 31570 # Avoid depending upon Character Ranges. 31571 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31574 as_cr_digits='0123456789' 31575 as_cr_alnum=$as_cr_Letters$as_cr_digits 31576 31577 31578 # Determine whether it's possible to make 'echo' print without a newline. 31579 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 31580 # for compatibility with existing Makefiles. 31581 ECHO_C= ECHO_N= ECHO_T= 31582 case `echo -n x` in #((((( 31583 -n*) 31584 case `echo 'xy\c'` in 31585 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31586 xy) ECHO_C='\c';; 31587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31588 ECHO_T=' ';; 31589 esac;; 31590 *) 31591 ECHO_N='-n';; 31592 esac 31593 31594 # For backward compatibility with old third-party macros, we provide 31595 # the shell variables $as_echo and $as_echo_n. New code should use 31596 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 31597 as_echo='printf %s\n' 31598 as_echo_n='printf %s' 31599 31600 rm -f conf$$ conf$$.exe conf$$.file 31601 if test -d conf$$.dir; then 31602 rm -f conf$$.dir/conf$$.file 31603 else 31604 rm -f conf$$.dir 31605 mkdir conf$$.dir 2>/dev/null 31606 fi 31607 if (echo >conf$$.file) 2>/dev/null; then 31608 if ln -s conf$$.file conf$$ 2>/dev/null; then 31609 as_ln_s='ln -s' 31610 # ... but there are two gotchas: 31611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31613 # In both cases, we have to default to `cp -pR'. 31614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31615 as_ln_s='cp -pR' 31616 elif ln conf$$.file conf$$ 2>/dev/null; then 31617 as_ln_s=ln 31618 else 31619 as_ln_s='cp -pR' 31620 fi 31621 else 31622 as_ln_s='cp -pR' 31623 fi 31624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31625 rmdir conf$$.dir 2>/dev/null 31626 31627 31628 # as_fn_mkdir_p 31629 # ------------- 31630 # Create "$as_dir" as a directory, including parents if necessary. 31631 as_fn_mkdir_p () 31632 { 31633 31634 case $as_dir in #( 31635 -*) as_dir=./$as_dir;; 31636 esac 31637 test -d "$as_dir" || eval $as_mkdir_p || { 31638 as_dirs= 31639 while :; do 31640 case $as_dir in #( 31641 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31642 *) as_qdir=$as_dir;; 31643 esac 31644 as_dirs="'$as_qdir' $as_dirs" 31645 as_dir=`$as_dirname -- "$as_dir" || 31646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31647 X"$as_dir" : 'X\(//\)[^/]' \| \ 31648 X"$as_dir" : 'X\(//\)$' \| \ 31649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31650 printf "%s\n" X"$as_dir" | 31651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31652 s//\1/ 31653 q 31654 } 31655 /^X\(\/\/\)[^/].*/{ 31656 s//\1/ 31657 q 31658 } 31659 /^X\(\/\/\)$/{ 31660 s//\1/ 31661 q 31662 } 31663 /^X\(\/\).*/{ 31664 s//\1/ 31665 q 31666 } 31667 s/.*/./; q'` 31668 test -d "$as_dir" && break 31669 done 31670 test -z "$as_dirs" || eval "mkdir $as_dirs" 31671 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31672 31673 31674 } # as_fn_mkdir_p 31675 if mkdir -p . 2>/dev/null; then 31676 as_mkdir_p='mkdir -p "$as_dir"' 31677 else 31678 test -d ./-p && rmdir ./-p 31679 as_mkdir_p=false 31680 fi 31681 31682 31683 # as_fn_executable_p FILE 31684 # ----------------------- 31685 # Test if FILE is an executable regular file. 31686 as_fn_executable_p () 31687 { 31688 test -f "$1" && test -x "$1" 31689 } # as_fn_executable_p 31690 as_test_x='test -x' 31691 as_executable_p=as_fn_executable_p 31692 31693 # Sed expression to map a string onto a valid CPP name. 31694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31695 31696 # Sed expression to map a string onto a valid variable name. 31697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31698 31699 31700 exec 6>&1 31701 ## ----------------------------------- ## 31702 ## Main body of $CONFIG_STATUS script. ## 31703 ## ----------------------------------- ## 31704 _ASEOF 31705 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31706 31707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31708 # Save the log message, to keep $0 and so on meaningful, and to 31709 # report actual input values of CONFIG_FILES etc. instead of their 31710 # values after options handling. 31711 ac_log=" 31712 This file was extended by Heimdal $as_me 7.8.0, which was 31713 generated by GNU Autoconf 2.71. Invocation command line was 31714 31715 CONFIG_FILES = $CONFIG_FILES 31716 CONFIG_HEADERS = $CONFIG_HEADERS 31717 CONFIG_LINKS = $CONFIG_LINKS 31718 CONFIG_COMMANDS = $CONFIG_COMMANDS 31719 $ $0 $@ 31720 31721 on `(hostname || uname -n) 2>/dev/null | sed 1q` 31722 " 31723 31724 _ACEOF 31725 31726 case $ac_config_files in *" 31727 "*) set x $ac_config_files; shift; ac_config_files=$*;; 31728 esac 31729 31730 case $ac_config_headers in *" 31731 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31732 esac 31733 31734 31735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31736 # Files that config.status was made for. 31737 config_files="$ac_config_files" 31738 config_headers="$ac_config_headers" 31739 config_commands="$ac_config_commands" 31740 31741 _ACEOF 31742 31743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31744 ac_cs_usage="\ 31745 \`$as_me' instantiates files and other configuration actions 31746 from templates according to the current configuration. Unless the files 31747 and actions are specified as TAGs, all are instantiated by default. 31748 31749 Usage: $0 [OPTION]... [TAG]... 31750 31751 -h, --help print this help, then exit 31752 -V, --version print version number and configuration settings, then exit 31753 --config print configuration, then exit 31754 -q, --quiet, --silent 31755 do not print progress messages 31756 -d, --debug don't remove temporary files 31757 --recheck update $as_me by reconfiguring in the same conditions 31758 --file=FILE[:TEMPLATE] 31759 instantiate the configuration file FILE 31760 --header=FILE[:TEMPLATE] 31761 instantiate the configuration header FILE 31762 31763 Configuration files: 31764 $config_files 31765 31766 Configuration headers: 31767 $config_headers 31768 31769 Configuration commands: 31770 $config_commands 31771 31772 Report bugs to <https://github.com/heimdal/heimdal/issues>." 31773 31774 _ACEOF 31775 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 31776 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 31777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31778 ac_cs_config='$ac_cs_config_escaped' 31779 ac_cs_version="\\ 31780 Heimdal config.status 7.8.0 31781 configured by $0, generated by GNU Autoconf 2.71, 31782 with options \\"\$ac_cs_config\\" 31783 31784 Copyright (C) 2021 Free Software Foundation, Inc. 31785 This config.status script is free software; the Free Software Foundation 31786 gives unlimited permission to copy, distribute and modify it." 31787 31788 ac_pwd='$ac_pwd' 31789 srcdir='$srcdir' 31790 INSTALL='$INSTALL' 31791 MKDIR_P='$MKDIR_P' 31792 AWK='$AWK' 31793 test -n "\$AWK" || AWK=awk 31794 _ACEOF 31795 31796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31797 # The default lists apply if the user does not specify any file. 31798 ac_need_defaults=: 31799 while test $# != 0 31800 do 31801 case $1 in 31802 --*=?*) 31803 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31805 ac_shift=: 31806 ;; 31807 --*=) 31808 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31809 ac_optarg= 31810 ac_shift=: 31811 ;; 31812 *) 31813 ac_option=$1 31814 ac_optarg=$2 31815 ac_shift=shift 31816 ;; 31817 esac 31818 31819 case $ac_option in 31820 # Handling of the options. 31821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31822 ac_cs_recheck=: ;; 31823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31824 printf "%s\n" "$ac_cs_version"; exit ;; 31825 --config | --confi | --conf | --con | --co | --c ) 31826 printf "%s\n" "$ac_cs_config"; exit ;; 31827 --debug | --debu | --deb | --de | --d | -d ) 31828 debug=: ;; 31829 --file | --fil | --fi | --f ) 31830 $ac_shift 31831 case $ac_optarg in 31832 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31833 '') as_fn_error $? "missing file argument" ;; 31834 esac 31835 as_fn_append CONFIG_FILES " '$ac_optarg'" 31836 ac_need_defaults=false;; 31837 --header | --heade | --head | --hea ) 31838 $ac_shift 31839 case $ac_optarg in 31840 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31841 esac 31842 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31843 ac_need_defaults=false;; 31844 --he | --h) 31845 # Conflict between --help and --header 31846 as_fn_error $? "ambiguous option: \`$1' 31847 Try \`$0 --help' for more information.";; 31848 --help | --hel | -h ) 31849 printf "%s\n" "$ac_cs_usage"; exit ;; 31850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31851 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31852 ac_cs_silent=: ;; 31853 31854 # This is an error. 31855 -*) as_fn_error $? "unrecognized option: \`$1' 31856 Try \`$0 --help' for more information." ;; 31857 31858 *) as_fn_append ac_config_targets " $1" 31859 ac_need_defaults=false ;; 31860 31861 esac 31862 shift 31863 done 31864 31865 ac_configure_extra_args= 31866 31867 if $ac_cs_silent; then 31868 exec 6>/dev/null 31869 ac_configure_extra_args="$ac_configure_extra_args --silent" 31870 fi 31871 31872 _ACEOF 31873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31874 if \$ac_cs_recheck; then 31875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31876 shift 31877 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 31878 CONFIG_SHELL='$SHELL' 31879 export CONFIG_SHELL 31880 exec "\$@" 31881 fi 31882 31883 _ACEOF 31884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31885 exec 5>>config.log 31886 { 31887 echo 31888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31889 ## Running $as_me. ## 31890 _ASBOX 31891 printf "%s\n" "$ac_log" 31892 } >&5 31893 31894 _ACEOF 31895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31896 # 31897 # INIT-COMMANDS 31898 # 31899 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 31900 31901 31902 # The HP-UX ksh and POSIX shell print the target directory to stdout 31903 # if CDPATH is set. 31904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31905 31906 sed_quote_subst='$sed_quote_subst' 31907 double_quote_subst='$double_quote_subst' 31908 delay_variable_subst='$delay_variable_subst' 31909 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 31910 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 31911 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 31912 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 31913 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 31914 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 31915 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 31916 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 31917 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 31918 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 31919 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 31920 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 31921 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 31922 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 31923 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 31924 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 31925 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 31926 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 31927 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 31928 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 31929 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 31930 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 31931 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 31932 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 31933 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 31934 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 31935 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 31936 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 31937 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 31938 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 31939 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 31940 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 31941 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 31942 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 31943 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 31944 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 31945 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 31946 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 31947 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 31948 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 31949 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 31950 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 31951 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 31952 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 31953 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 31954 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 31955 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 31956 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 31957 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 31958 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31959 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31960 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 31961 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 31962 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 31963 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 31964 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 31965 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 31966 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 31967 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 31968 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 31969 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 31970 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 31971 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 31972 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 31973 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 31974 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 31975 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 31976 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 31977 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 31978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 31979 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 31980 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 31981 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 31982 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 31983 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 31984 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 31985 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 31986 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 31987 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 31988 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 31989 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 31990 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 31991 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31992 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 31993 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 31994 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 31995 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 31996 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 31997 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 31998 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31999 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 32000 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32001 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 32002 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32003 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 32004 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 32005 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 32006 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 32007 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 32008 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 32009 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 32010 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 32011 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 32012 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 32013 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 32014 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 32015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 32016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 32017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 32018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 32019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 32020 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 32021 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 32022 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 32023 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 32024 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 32025 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 32026 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 32027 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 32028 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 32029 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 32030 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 32031 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 32032 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 32033 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32034 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32035 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 32036 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 32037 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 32038 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 32039 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 32040 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 32041 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 32042 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 32043 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 32044 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 32045 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 32046 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 32047 32048 LTCC='$LTCC' 32049 LTCFLAGS='$LTCFLAGS' 32050 compiler='$compiler_DEFAULT' 32051 32052 # A function that is used when there is no print builtin or printf. 32053 func_fallback_echo () 32054 { 32055 eval 'cat <<_LTECHO_EOF 32056 \$1 32057 _LTECHO_EOF' 32058 } 32059 32060 # Quote evaled strings. 32061 for var in AS \ 32062 DLLTOOL \ 32063 OBJDUMP \ 32064 SHELL \ 32065 ECHO \ 32066 PATH_SEPARATOR \ 32067 SED \ 32068 GREP \ 32069 EGREP \ 32070 FGREP \ 32071 LD \ 32072 NM \ 32073 LN_S \ 32074 lt_SP2NL \ 32075 lt_NL2SP \ 32076 reload_flag \ 32077 FILECMD \ 32078 deplibs_check_method \ 32079 file_magic_cmd \ 32080 file_magic_glob \ 32081 want_nocaseglob \ 32082 sharedlib_from_linklib_cmd \ 32083 AR \ 32084 archiver_list_spec \ 32085 STRIP \ 32086 RANLIB \ 32087 CC \ 32088 CFLAGS \ 32089 compiler \ 32090 lt_cv_sys_global_symbol_pipe \ 32091 lt_cv_sys_global_symbol_to_cdecl \ 32092 lt_cv_sys_global_symbol_to_import \ 32093 lt_cv_sys_global_symbol_to_c_name_address \ 32094 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 32095 lt_cv_nm_interface \ 32096 nm_file_list_spec \ 32097 lt_cv_truncate_bin \ 32098 lt_prog_compiler_no_builtin_flag \ 32099 lt_prog_compiler_pic \ 32100 lt_prog_compiler_wl \ 32101 lt_prog_compiler_static \ 32102 lt_cv_prog_compiler_c_o \ 32103 need_locks \ 32104 MANIFEST_TOOL \ 32105 DSYMUTIL \ 32106 NMEDIT \ 32107 LIPO \ 32108 OTOOL \ 32109 OTOOL64 \ 32110 shrext_cmds \ 32111 export_dynamic_flag_spec \ 32112 whole_archive_flag_spec \ 32113 compiler_needs_object \ 32114 with_gnu_ld \ 32115 allow_undefined_flag \ 32116 no_undefined_flag \ 32117 hardcode_libdir_flag_spec \ 32118 hardcode_libdir_separator \ 32119 exclude_expsyms \ 32120 include_expsyms \ 32121 file_list_spec \ 32122 variables_saved_for_relink \ 32123 libname_spec \ 32124 library_names_spec \ 32125 soname_spec \ 32126 install_override_mode \ 32127 finish_eval \ 32128 old_striplib \ 32129 striplib; do 32130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32131 *[\\\\\\\`\\"\\\$]*) 32132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32133 ;; 32134 *) 32135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32136 ;; 32137 esac 32138 done 32139 32140 # Double-quote double-evaled strings. 32141 for var in reload_cmds \ 32142 old_postinstall_cmds \ 32143 old_postuninstall_cmds \ 32144 old_archive_cmds \ 32145 extract_expsyms_cmds \ 32146 old_archive_from_new_cmds \ 32147 old_archive_from_expsyms_cmds \ 32148 archive_cmds \ 32149 archive_expsym_cmds \ 32150 module_cmds \ 32151 module_expsym_cmds \ 32152 export_symbols_cmds \ 32153 prelink_cmds \ 32154 postlink_cmds \ 32155 postinstall_cmds \ 32156 postuninstall_cmds \ 32157 finish_cmds \ 32158 sys_lib_search_path_spec \ 32159 configure_time_dlsearch_path \ 32160 configure_time_lt_sys_library_path; do 32161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32162 *[\\\\\\\`\\"\\\$]*) 32163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32164 ;; 32165 *) 32166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32167 ;; 32168 esac 32169 done 32170 32171 ac_aux_dir='$ac_aux_dir' 32172 32173 # See if we are running on zsh, and set the options that allow our 32174 # commands through without removal of \ escapes INIT. 32175 if test -n "\${ZSH_VERSION+set}"; then 32176 setopt NO_GLOB_SUBST 32177 fi 32178 32179 32180 PACKAGE='$PACKAGE' 32181 VERSION='$VERSION' 32182 RM='$RM' 32183 ofile='$ofile' 32184 32185 32186 32187 32188 _ACEOF 32189 32190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32191 32192 # Handling of arguments. 32193 for ac_config_target in $ac_config_targets 32194 do 32195 case $ac_config_target in 32196 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 32197 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 32198 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 32199 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 32200 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 32201 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 32202 "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;; 32203 "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;; 32204 "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 32205 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 32206 "lib/base/Makefile") CONFIG_FILES="$CONFIG_FILES lib/base/Makefile" ;; 32207 "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 32208 "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 32209 "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;; 32210 "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;; 32211 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 32212 "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;; 32213 "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 32214 "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;; 32215 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 32216 "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 32217 "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 32218 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 32219 "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 32220 "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 32221 "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 32222 "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;; 32223 "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 32224 "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;; 32225 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 32226 "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 32227 "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 32228 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 32229 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 32230 "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;; 32231 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 32232 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 32233 "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 32234 "appl/dbutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dbutils/Makefile" ;; 32235 "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;; 32236 "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 32237 "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 32238 "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 32239 "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 32240 "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 32241 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 32242 "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;; 32243 "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;; 32244 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;; 32245 "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;; 32246 "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;; 32247 "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;; 32248 "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;; 32249 "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;; 32250 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 32251 "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;; 32252 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 32253 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 32254 32255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 32256 esac 32257 done 32258 32259 32260 # If the user did not use the arguments to specify the items to instantiate, 32261 # then the envvar interface is used. Set only those that are not. 32262 # We use the long form for the default assignment because of an extremely 32263 # bizarre bug on SunOS 4.1.3. 32264 if $ac_need_defaults; then 32265 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 32266 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 32267 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 32268 fi 32269 32270 # Have a temporary directory for convenience. Make it in the build tree 32271 # simply because there is no reason against having it here, and in addition, 32272 # creating and moving files from /tmp can sometimes cause problems. 32273 # Hook for its removal unless debugging. 32274 # Note that there is a small window in which the directory will not be cleaned: 32275 # after its creation but before its name has been assigned to `$tmp'. 32276 $debug || 32277 { 32278 tmp= ac_tmp= 32279 trap 'exit_status=$? 32280 : "${ac_tmp:=$tmp}" 32281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 32282 ' 0 32283 trap 'as_fn_exit 1' 1 2 13 15 32284 } 32285 # Create a (secure) tmp directory for tmp files. 32286 32287 { 32288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 32289 test -d "$tmp" 32290 } || 32291 { 32292 tmp=./conf$$-$RANDOM 32293 (umask 077 && mkdir "$tmp") 32294 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 32295 ac_tmp=$tmp 32296 32297 # Set up the scripts for CONFIG_FILES section. 32298 # No need to generate them if there are no CONFIG_FILES. 32299 # This happens for instance with `./config.status config.h'. 32300 if test -n "$CONFIG_FILES"; then 32301 32302 32303 ac_cr=`echo X | tr X '\015'` 32304 # On cygwin, bash can eat \r inside `` if the user requested igncr. 32305 # But we know of no other shell where ac_cr would be empty at this 32306 # point, so we can use a bashism as a fallback. 32307 if test "x$ac_cr" = x; then 32308 eval ac_cr=\$\'\\r\' 32309 fi 32310 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 32311 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 32312 ac_cs_awk_cr='\\r' 32313 else 32314 ac_cs_awk_cr=$ac_cr 32315 fi 32316 32317 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 32318 _ACEOF 32319 32320 32321 { 32322 echo "cat >conf$$subs.awk <<_ACEOF" && 32323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 32324 echo "_ACEOF" 32325 } >conf$$subs.sh || 32326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 32328 ac_delim='%!_!# ' 32329 for ac_last_try in false false false false false :; do 32330 . ./conf$$subs.sh || 32331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32332 32333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 32334 if test $ac_delim_n = $ac_delim_num; then 32335 break 32336 elif $ac_last_try; then 32337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32338 else 32339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32340 fi 32341 done 32342 rm -f conf$$subs.sh 32343 32344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32345 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 32346 _ACEOF 32347 sed -n ' 32348 h 32349 s/^/S["/; s/!.*/"]=/ 32350 p 32351 g 32352 s/^[^!]*!// 32353 :repl 32354 t repl 32355 s/'"$ac_delim"'$// 32356 t delim 32357 :nl 32358 h 32359 s/\(.\{148\}\)..*/\1/ 32360 t more1 32361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 32362 p 32363 n 32364 b repl 32365 :more1 32366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32367 p 32368 g 32369 s/.\{148\}// 32370 t nl 32371 :delim 32372 h 32373 s/\(.\{148\}\)..*/\1/ 32374 t more2 32375 s/["\\]/\\&/g; s/^/"/; s/$/"/ 32376 p 32377 b 32378 :more2 32379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32380 p 32381 g 32382 s/.\{148\}// 32383 t delim 32384 ' <conf$$subs.awk | sed ' 32385 /^[^""]/{ 32386 N 32387 s/\n// 32388 } 32389 ' >>$CONFIG_STATUS || ac_write_fail=1 32390 rm -f conf$$subs.awk 32391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32392 _ACAWK 32393 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 32394 for (key in S) S_is_set[key] = 1 32395 FS = "" 32396 32397 } 32398 { 32399 line = $ 0 32400 nfields = split(line, field, "@") 32401 substed = 0 32402 len = length(field[1]) 32403 for (i = 2; i < nfields; i++) { 32404 key = field[i] 32405 keylen = length(key) 32406 if (S_is_set[key]) { 32407 value = S[key] 32408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 32409 len += length(value) + length(field[++i]) 32410 substed = 1 32411 } else 32412 len += 1 + keylen 32413 } 32414 32415 print line 32416 } 32417 32418 _ACAWK 32419 _ACEOF 32420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32421 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 32422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 32423 else 32424 cat 32425 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 32426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 32427 _ACEOF 32428 32429 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 32430 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 32431 # trailing colons and then remove the whole line if VPATH becomes empty 32432 # (actually we leave an empty line to preserve line numbers). 32433 if test "x$srcdir" = x.; then 32434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 32435 h 32436 s/// 32437 s/^/:/ 32438 s/[ ]*$/:/ 32439 s/:\$(srcdir):/:/g 32440 s/:\${srcdir}:/:/g 32441 s/:@srcdir@:/:/g 32442 s/^:*// 32443 s/:*$// 32444 x 32445 s/\(=[ ]*\).*/\1/ 32446 G 32447 s/\n// 32448 s/^[^=]*=[ ]*$// 32449 }' 32450 fi 32451 32452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32453 fi # test -n "$CONFIG_FILES" 32454 32455 # Set up the scripts for CONFIG_HEADERS section. 32456 # No need to generate them if there are no CONFIG_HEADERS. 32457 # This happens for instance with `./config.status Makefile'. 32458 if test -n "$CONFIG_HEADERS"; then 32459 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32460 BEGIN { 32461 _ACEOF 32462 32463 # Transform confdefs.h into an awk script `defines.awk', embedded as 32464 # here-document in config.status, that substitutes the proper values into 32465 # config.h.in to produce config.h. 32466 32467 # Create a delimiter string that does not exist in confdefs.h, to ease 32468 # handling of long lines. 32469 ac_delim='%!_!# ' 32470 for ac_last_try in false false :; do 32471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32472 if test -z "$ac_tt"; then 32473 break 32474 elif $ac_last_try; then 32475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32476 else 32477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32478 fi 32479 done 32480 32481 # For the awk script, D is an array of macro values keyed by name, 32482 # likewise P contains macro parameters if any. Preserve backslash 32483 # newline sequences. 32484 32485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32486 sed -n ' 32487 s/.\{148\}/&'"$ac_delim"'/g 32488 t rset 32489 :rset 32490 s/^[ ]*#[ ]*define[ ][ ]*/ / 32491 t def 32492 d 32493 :def 32494 s/\\$// 32495 t bsnl 32496 s/["\\]/\\&/g 32497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32498 D["\1"]=" \3"/p 32499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32500 d 32501 :bsnl 32502 s/["\\]/\\&/g 32503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32504 D["\1"]=" \3\\\\\\n"\\/p 32505 t cont 32506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32507 t cont 32508 d 32509 :cont 32510 n 32511 s/.\{148\}/&'"$ac_delim"'/g 32512 t clear 32513 :clear 32514 s/\\$// 32515 t bsnlc 32516 s/["\\]/\\&/g; s/^/"/; s/$/"/p 32517 d 32518 :bsnlc 32519 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32520 b cont 32521 ' <confdefs.h | sed ' 32522 s/'"$ac_delim"'/"\\\ 32523 "/g' >>$CONFIG_STATUS || ac_write_fail=1 32524 32525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32526 for (key in D) D_is_set[key] = 1 32527 FS = "" 32528 } 32529 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32530 line = \$ 0 32531 split(line, arg, " ") 32532 if (arg[1] == "#") { 32533 defundef = arg[2] 32534 mac1 = arg[3] 32535 } else { 32536 defundef = substr(arg[1], 2) 32537 mac1 = arg[2] 32538 } 32539 split(mac1, mac2, "(") #) 32540 macro = mac2[1] 32541 prefix = substr(line, 1, index(line, defundef) - 1) 32542 if (D_is_set[macro]) { 32543 # Preserve the white space surrounding the "#". 32544 print prefix "define", macro P[macro] D[macro] 32545 next 32546 } else { 32547 # Replace #undef with comments. This is necessary, for example, 32548 # in the case of _POSIX_SOURCE, which is predefined and required 32549 # on some systems where configure will not decide to define it. 32550 if (defundef == "undef") { 32551 print "/*", prefix defundef, macro, "*/" 32552 next 32553 } 32554 } 32555 } 32556 { print } 32557 _ACAWK 32558 _ACEOF 32559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32561 fi # test -n "$CONFIG_HEADERS" 32562 32563 32564 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 32565 shift 32566 for ac_tag 32567 do 32568 case $ac_tag in 32569 :[FHLC]) ac_mode=$ac_tag; continue;; 32570 esac 32571 case $ac_mode$ac_tag in 32572 :[FHL]*:*);; 32573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32574 :[FH]-) ac_tag=-:-;; 32575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32576 esac 32577 ac_save_IFS=$IFS 32578 IFS=: 32579 set x $ac_tag 32580 IFS=$ac_save_IFS 32581 shift 32582 ac_file=$1 32583 shift 32584 32585 case $ac_mode in 32586 :L) ac_source=$1;; 32587 :[FH]) 32588 ac_file_inputs= 32589 for ac_f 32590 do 32591 case $ac_f in 32592 -) ac_f="$ac_tmp/stdin";; 32593 *) # Look for the file first in the build tree, then in the source tree 32594 # (if the path is not absolute). The absolute path cannot be DOS-style, 32595 # because $ac_f cannot contain `:'. 32596 test -f "$ac_f" || 32597 case $ac_f in 32598 [\\/$]*) false;; 32599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32600 esac || 32601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32602 esac 32603 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32604 as_fn_append ac_file_inputs " '$ac_f'" 32605 done 32606 32607 # Let's still pretend it is `configure' which instantiates (i.e., don't 32608 # use $as_me), people would be surprised to read: 32609 # /* config.h. Generated by config.status. */ 32610 configure_input='Generated from '` 32611 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32612 `' by configure.' 32613 if test x"$ac_file" != x-; then 32614 configure_input="$ac_file. $configure_input" 32615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32616 printf "%s\n" "$as_me: creating $ac_file" >&6;} 32617 fi 32618 # Neutralize special characters interpreted by sed in replacement strings. 32619 case $configure_input in #( 32620 *\&* | *\|* | *\\* ) 32621 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 32622 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32623 *) ac_sed_conf_input=$configure_input;; 32624 esac 32625 32626 case $ac_tag in 32627 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32629 esac 32630 ;; 32631 esac 32632 32633 ac_dir=`$as_dirname -- "$ac_file" || 32634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32635 X"$ac_file" : 'X\(//\)[^/]' \| \ 32636 X"$ac_file" : 'X\(//\)$' \| \ 32637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32638 printf "%s\n" X"$ac_file" | 32639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32640 s//\1/ 32641 q 32642 } 32643 /^X\(\/\/\)[^/].*/{ 32644 s//\1/ 32645 q 32646 } 32647 /^X\(\/\/\)$/{ 32648 s//\1/ 32649 q 32650 } 32651 /^X\(\/\).*/{ 32652 s//\1/ 32653 q 32654 } 32655 s/.*/./; q'` 32656 as_dir="$ac_dir"; as_fn_mkdir_p 32657 ac_builddir=. 32658 32659 case "$ac_dir" in 32660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32661 *) 32662 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 32663 # A ".." for each directory in $ac_dir_suffix. 32664 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32665 case $ac_top_builddir_sub in 32666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32668 esac ;; 32669 esac 32670 ac_abs_top_builddir=$ac_pwd 32671 ac_abs_builddir=$ac_pwd$ac_dir_suffix 32672 # for backward compatibility: 32673 ac_top_builddir=$ac_top_build_prefix 32674 32675 case $srcdir in 32676 .) # We are building in place. 32677 ac_srcdir=. 32678 ac_top_srcdir=$ac_top_builddir_sub 32679 ac_abs_top_srcdir=$ac_pwd ;; 32680 [\\/]* | ?:[\\/]* ) # Absolute name. 32681 ac_srcdir=$srcdir$ac_dir_suffix; 32682 ac_top_srcdir=$srcdir 32683 ac_abs_top_srcdir=$srcdir ;; 32684 *) # Relative name. 32685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32686 ac_top_srcdir=$ac_top_build_prefix$srcdir 32687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32688 esac 32689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32690 32691 32692 case $ac_mode in 32693 :F) 32694 # 32695 # CONFIG_FILE 32696 # 32697 32698 case $INSTALL in 32699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 32700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 32701 esac 32702 ac_MKDIR_P=$MKDIR_P 32703 case $MKDIR_P in 32704 [\\/$]* | ?:[\\/]* ) ;; 32705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 32706 esac 32707 _ACEOF 32708 32709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32710 # If the template does not know about datarootdir, expand it. 32711 # FIXME: This hack should be removed a few years after 2.60. 32712 ac_datarootdir_hack=; ac_datarootdir_seen= 32713 ac_sed_dataroot=' 32714 /datarootdir/ { 32715 p 32716 q 32717 } 32718 /@datadir@/p 32719 /@docdir@/p 32720 /@infodir@/p 32721 /@localedir@/p 32722 /@mandir@/p' 32723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32724 *datarootdir*) ac_datarootdir_seen=yes;; 32725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32727 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32728 _ACEOF 32729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32730 ac_datarootdir_hack=' 32731 s&@datadir@&$datadir&g 32732 s&@docdir@&$docdir&g 32733 s&@infodir@&$infodir&g 32734 s&@localedir@&$localedir&g 32735 s&@mandir@&$mandir&g 32736 s&\\\${datarootdir}&$datarootdir&g' ;; 32737 esac 32738 _ACEOF 32739 32740 # Neutralize VPATH when `$srcdir' = `.'. 32741 # Shell code in configure.ac might set extrasub. 32742 # FIXME: do we really want to maintain this feature? 32743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32744 ac_sed_extra="$ac_vpsub 32745 $extrasub 32746 _ACEOF 32747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32748 :t 32749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32750 s|@configure_input@|$ac_sed_conf_input|;t t 32751 s&@top_builddir@&$ac_top_builddir_sub&;t t 32752 s&@top_build_prefix@&$ac_top_build_prefix&;t t 32753 s&@srcdir@&$ac_srcdir&;t t 32754 s&@abs_srcdir@&$ac_abs_srcdir&;t t 32755 s&@top_srcdir@&$ac_top_srcdir&;t t 32756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32757 s&@builddir@&$ac_builddir&;t t 32758 s&@abs_builddir@&$ac_abs_builddir&;t t 32759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32760 s&@INSTALL@&$ac_INSTALL&;t t 32761 s&@MKDIR_P@&$ac_MKDIR_P&;t t 32762 $ac_datarootdir_hack 32763 " 32764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 32765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32766 32767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32770 "$ac_tmp/out"`; test -z "$ac_out"; } && 32771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32772 which seems to be undefined. Please make sure it is defined" >&5 32773 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32774 which seems to be undefined. Please make sure it is defined" >&2;} 32775 32776 rm -f "$ac_tmp/stdin" 32777 case $ac_file in 32778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 32779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 32780 esac \ 32781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32782 ;; 32783 :H) 32784 # 32785 # CONFIG_HEADER 32786 # 32787 if test x"$ac_file" != x-; then 32788 { 32789 printf "%s\n" "/* $configure_input */" >&1 \ 32790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 32791 } >"$ac_tmp/config.h" \ 32792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 32794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 32795 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 32796 else 32797 rm -f "$ac_file" 32798 mv "$ac_tmp/config.h" "$ac_file" \ 32799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32800 fi 32801 else 32802 printf "%s\n" "/* $configure_input */" >&1 \ 32803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32804 || as_fn_error $? "could not create -" "$LINENO" 5 32805 fi 32806 # Compute "$ac_file"'s index in $config_headers. 32807 _am_arg="$ac_file" 32808 _am_stamp_count=1 32809 for _am_header in $config_headers :; do 32810 case $_am_header in 32811 $_am_arg | $_am_arg:* ) 32812 break ;; 32813 * ) 32814 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 32815 esac 32816 done 32817 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 32818 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32819 X"$_am_arg" : 'X\(//\)[^/]' \| \ 32820 X"$_am_arg" : 'X\(//\)$' \| \ 32821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 32822 printf "%s\n" X"$_am_arg" | 32823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32824 s//\1/ 32825 q 32826 } 32827 /^X\(\/\/\)[^/].*/{ 32828 s//\1/ 32829 q 32830 } 32831 /^X\(\/\/\)$/{ 32832 s//\1/ 32833 q 32834 } 32835 /^X\(\/\).*/{ 32836 s//\1/ 32837 q 32838 } 32839 s/.*/./; q'`/stamp-h$_am_stamp_count 32840 ;; 32841 32842 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32843 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 32844 ;; 32845 esac 32846 32847 32848 case $ac_file$ac_mode in 32849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 32850 # Older Autoconf quotes --file arguments for eval, but not when files 32851 # are listed without --file. Let's play safe and only enable the eval 32852 # if we detect the quoting. 32853 # TODO: see whether this extra hack can be removed once we start 32854 # requiring Autoconf 2.70 or later. 32855 case $CONFIG_FILES in #( 32856 *\'*) : 32857 eval set x "$CONFIG_FILES" ;; #( 32858 *) : 32859 set x $CONFIG_FILES ;; #( 32860 *) : 32861 ;; 32862 esac 32863 shift 32864 # Used to flag and report bootstrapping failures. 32865 am_rc=0 32866 for am_mf 32867 do 32868 # Strip MF so we end up with the name of the file. 32869 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 32870 # Check whether this is an Automake generated Makefile which includes 32871 # dependency-tracking related rules and includes. 32872 # Grep'ing the whole file directly is not great: AIX grep has a line 32873 # limit of 2048, but all sed's we know have understand at least 4000. 32874 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 32875 || continue 32876 am_dirpart=`$as_dirname -- "$am_mf" || 32877 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32878 X"$am_mf" : 'X\(//\)[^/]' \| \ 32879 X"$am_mf" : 'X\(//\)$' \| \ 32880 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 32881 printf "%s\n" X"$am_mf" | 32882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32883 s//\1/ 32884 q 32885 } 32886 /^X\(\/\/\)[^/].*/{ 32887 s//\1/ 32888 q 32889 } 32890 /^X\(\/\/\)$/{ 32891 s//\1/ 32892 q 32893 } 32894 /^X\(\/\).*/{ 32895 s//\1/ 32896 q 32897 } 32898 s/.*/./; q'` 32899 am_filepart=`$as_basename -- "$am_mf" || 32900 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 32901 X"$am_mf" : 'X\(//\)$' \| \ 32902 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 32903 printf "%s\n" X/"$am_mf" | 32904 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32905 s//\1/ 32906 q 32907 } 32908 /^X\/\(\/\/\)$/{ 32909 s//\1/ 32910 q 32911 } 32912 /^X\/\(\/\).*/{ 32913 s//\1/ 32914 q 32915 } 32916 s/.*/./; q'` 32917 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 32918 && sed -e '/# am--include-marker/d' "$am_filepart" \ 32919 | $MAKE -f - am--depfiles" >&5 32920 (cd "$am_dirpart" \ 32921 && sed -e '/# am--include-marker/d' "$am_filepart" \ 32922 | $MAKE -f - am--depfiles) >&5 2>&5 32923 ac_status=$? 32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32925 (exit $ac_status); } || am_rc=$? 32926 done 32927 if test $am_rc -ne 0; then 32928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32930 as_fn_error $? "Something went wrong bootstrapping makefile fragments 32931 for automatic dependency tracking. If GNU make was not used, consider 32932 re-running the configure script with MAKE=\"gmake\" (or whatever is 32933 necessary). You can also try re-running configure with the 32934 '--disable-dependency-tracking' option to at least be able to build 32935 the package (albeit without support for automatic dependency tracking). 32936 See \`config.log' for more details" "$LINENO" 5; } 32937 fi 32938 { am_dirpart=; unset am_dirpart;} 32939 { am_filepart=; unset am_filepart;} 32940 { am_mf=; unset am_mf;} 32941 { am_rc=; unset am_rc;} 32942 rm -f conftest-deps.mk 32943 } 32944 ;; 32945 "libtool":C) 32946 32947 # See if we are running on zsh, and set the options that allow our 32948 # commands through without removal of \ escapes. 32949 if test -n "${ZSH_VERSION+set}"; then 32950 setopt NO_GLOB_SUBST 32951 fi 32952 32953 cfgfile=${ofile}T 32954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 32955 $RM "$cfgfile" 32956 32957 cat <<_LT_EOF >> "$cfgfile" 32958 #! $SHELL 32959 # Generated automatically by $as_me ($PACKAGE) $VERSION 32960 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 32961 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 32962 32963 # Provide generalized library-building support services. 32964 # Written by Gordon Matzigkeit, 1996 32965 32966 # Copyright (C) 2014 Free Software Foundation, Inc. 32967 # This is free software; see the source for copying conditions. There is NO 32968 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32969 32970 # GNU Libtool is free software; you can redistribute it and/or modify 32971 # it under the terms of the GNU General Public License as published by 32972 # the Free Software Foundation; either version 2 of of the License, or 32973 # (at your option) any later version. 32974 # 32975 # As a special exception to the GNU General Public License, if you 32976 # distribute this file as part of a program or library that is built 32977 # using GNU Libtool, you may include this file under the same 32978 # distribution terms that you use for the rest of that program. 32979 # 32980 # GNU Libtool is distributed in the hope that it will be useful, but 32981 # WITHOUT ANY WARRANTY; without even the implied warranty of 32982 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32983 # GNU General Public License for more details. 32984 # 32985 # You should have received a copy of the GNU General Public License 32986 # along with this program. If not, see <http://www.gnu.org/licenses/>. 32987 32988 32989 # The names of the tagged configurations supported by this script. 32990 available_tags='' 32991 32992 # Configured defaults for sys_lib_dlsearch_path munging. 32993 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 32994 32995 # ### BEGIN LIBTOOL CONFIG 32996 32997 # Which release of libtool.m4 was used? 32998 macro_version=$macro_version 32999 macro_revision=$macro_revision 33000 33001 # Whether or not to build shared libraries. 33002 build_libtool_libs=$enable_shared 33003 33004 # Whether or not to build static libraries. 33005 build_old_libs=$enable_static 33006 33007 # Assembler program. 33008 AS=$lt_AS 33009 33010 # DLL creation program. 33011 DLLTOOL=$lt_DLLTOOL 33012 33013 # Object dumper program. 33014 OBJDUMP=$lt_OBJDUMP 33015 33016 # What type of objects to build. 33017 pic_mode=$pic_mode 33018 33019 # Whether or not to optimize for fast installation. 33020 fast_install=$enable_fast_install 33021 33022 # Shared archive member basename,for filename based shared library versioning on AIX. 33023 shared_archive_member_spec=$shared_archive_member_spec 33024 33025 # Shell to use when invoking shell scripts. 33026 SHELL=$lt_SHELL 33027 33028 # An echo program that protects backslashes. 33029 ECHO=$lt_ECHO 33030 33031 # The PATH separator for the build system. 33032 PATH_SEPARATOR=$lt_PATH_SEPARATOR 33033 33034 # The host system. 33035 host_alias=$host_alias 33036 host=$host 33037 host_os=$host_os 33038 33039 # The build system. 33040 build_alias=$build_alias 33041 build=$build 33042 build_os=$build_os 33043 33044 # A sed program that does not truncate output. 33045 SED=$lt_SED 33046 33047 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 33048 Xsed="\$SED -e 1s/^X//" 33049 33050 # A grep program that handles long lines. 33051 GREP=$lt_GREP 33052 33053 # An ERE matcher. 33054 EGREP=$lt_EGREP 33055 33056 # A literal string matcher. 33057 FGREP=$lt_FGREP 33058 33059 # A BSD- or MS-compatible name lister. 33060 NM=$lt_NM 33061 33062 # Whether we need soft or hard links. 33063 LN_S=$lt_LN_S 33064 33065 # What is the maximum length of a command? 33066 max_cmd_len=$max_cmd_len 33067 33068 # Object file suffix (normally "o"). 33069 objext=$ac_objext 33070 33071 # Executable file suffix (normally ""). 33072 exeext=$exeext 33073 33074 # whether the shell understands "unset". 33075 lt_unset=$lt_unset 33076 33077 # turn spaces into newlines. 33078 SP2NL=$lt_lt_SP2NL 33079 33080 # turn newlines into spaces. 33081 NL2SP=$lt_lt_NL2SP 33082 33083 # convert \$build file names to \$host format. 33084 to_host_file_cmd=$lt_cv_to_host_file_cmd 33085 33086 # convert \$build files to toolchain format. 33087 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 33088 33089 # A file(cmd) program that detects file types. 33090 FILECMD=$lt_FILECMD 33091 33092 # Method to check whether dependent libraries are shared objects. 33093 deplibs_check_method=$lt_deplibs_check_method 33094 33095 # Command to use when deplibs_check_method = "file_magic". 33096 file_magic_cmd=$lt_file_magic_cmd 33097 33098 # How to find potential files when deplibs_check_method = "file_magic". 33099 file_magic_glob=$lt_file_magic_glob 33100 33101 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 33102 want_nocaseglob=$lt_want_nocaseglob 33103 33104 # Command to associate shared and link libraries. 33105 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 33106 33107 # The archiver. 33108 AR=$lt_AR 33109 33110 # Flags to create an archive (by configure). 33111 lt_ar_flags=$lt_ar_flags 33112 33113 # Flags to create an archive. 33114 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 33115 33116 # How to feed a file listing to the archiver. 33117 archiver_list_spec=$lt_archiver_list_spec 33118 33119 # A symbol stripping program. 33120 STRIP=$lt_STRIP 33121 33122 # Commands used to install an old-style archive. 33123 RANLIB=$lt_RANLIB 33124 old_postinstall_cmds=$lt_old_postinstall_cmds 33125 old_postuninstall_cmds=$lt_old_postuninstall_cmds 33126 33127 # Whether to use a lock for old archive extraction. 33128 lock_old_archive_extraction=$lock_old_archive_extraction 33129 33130 # A C compiler. 33131 LTCC=$lt_CC 33132 33133 # LTCC compiler flags. 33134 LTCFLAGS=$lt_CFLAGS 33135 33136 # Take the output of nm and produce a listing of raw symbols and C names. 33137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 33138 33139 # Transform the output of nm in a proper C declaration. 33140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 33141 33142 # Transform the output of nm into a list of symbols to manually relocate. 33143 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 33144 33145 # Transform the output of nm in a C name address pair. 33146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 33147 33148 # Transform the output of nm in a C name address pair when lib prefix is needed. 33149 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 33150 33151 # The name lister interface. 33152 nm_interface=$lt_lt_cv_nm_interface 33153 33154 # Specify filename containing input files for \$NM. 33155 nm_file_list_spec=$lt_nm_file_list_spec 33156 33157 # The root where to search for dependent libraries,and where our libraries should be installed. 33158 lt_sysroot=$lt_sysroot 33159 33160 # Command to truncate a binary pipe. 33161 lt_truncate_bin=$lt_lt_cv_truncate_bin 33162 33163 # The name of the directory that contains temporary libtool files. 33164 objdir=$objdir 33165 33166 # Used to examine libraries when file_magic_cmd begins with "file". 33167 MAGIC_CMD=$MAGIC_CMD 33168 33169 # Must we lock files when doing compilation? 33170 need_locks=$lt_need_locks 33171 33172 # Manifest tool. 33173 MANIFEST_TOOL=$lt_MANIFEST_TOOL 33174 33175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 33176 DSYMUTIL=$lt_DSYMUTIL 33177 33178 # Tool to change global to local symbols on Mac OS X. 33179 NMEDIT=$lt_NMEDIT 33180 33181 # Tool to manipulate fat objects and archives on Mac OS X. 33182 LIPO=$lt_LIPO 33183 33184 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 33185 OTOOL=$lt_OTOOL 33186 33187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 33188 OTOOL64=$lt_OTOOL64 33189 33190 # Old archive suffix (normally "a"). 33191 libext=$libext 33192 33193 # Shared library suffix (normally ".so"). 33194 shrext_cmds=$lt_shrext_cmds 33195 33196 # The commands to extract the exported symbol list from a shared archive. 33197 extract_expsyms_cmds=$lt_extract_expsyms_cmds 33198 33199 # Variables whose values should be saved in libtool wrapper scripts and 33200 # restored at link time. 33201 variables_saved_for_relink=$lt_variables_saved_for_relink 33202 33203 # Do we need the "lib" prefix for modules? 33204 need_lib_prefix=$need_lib_prefix 33205 33206 # Do we need a version for libraries? 33207 need_version=$need_version 33208 33209 # Library versioning type. 33210 version_type=$version_type 33211 33212 # Shared library runtime path variable. 33213 runpath_var=$runpath_var 33214 33215 # Shared library path variable. 33216 shlibpath_var=$shlibpath_var 33217 33218 # Is shlibpath searched before the hard-coded library search path? 33219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 33220 33221 # Format of library name prefix. 33222 libname_spec=$lt_libname_spec 33223 33224 # List of archive names. First name is the real one, the rest are links. 33225 # The last name is the one that the linker finds with -lNAME 33226 library_names_spec=$lt_library_names_spec 33227 33228 # The coded name of the library, if different from the real name. 33229 soname_spec=$lt_soname_spec 33230 33231 # Permission mode override for installation of shared libraries. 33232 install_override_mode=$lt_install_override_mode 33233 33234 # Command to use after installation of a shared archive. 33235 postinstall_cmds=$lt_postinstall_cmds 33236 33237 # Command to use after uninstallation of a shared archive. 33238 postuninstall_cmds=$lt_postuninstall_cmds 33239 33240 # Commands used to finish a libtool library installation in a directory. 33241 finish_cmds=$lt_finish_cmds 33242 33243 # As "finish_cmds", except a single script fragment to be evaled but 33244 # not shown. 33245 finish_eval=$lt_finish_eval 33246 33247 # Whether we should hardcode library paths into libraries. 33248 hardcode_into_libs=$hardcode_into_libs 33249 33250 # Compile-time system search path for libraries. 33251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 33252 33253 # Detected run-time system search path for libraries. 33254 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 33255 33256 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 33257 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 33258 33259 # Whether dlopen is supported. 33260 dlopen_support=$enable_dlopen 33261 33262 # Whether dlopen of programs is supported. 33263 dlopen_self=$enable_dlopen_self 33264 33265 # Whether dlopen of statically linked programs is supported. 33266 dlopen_self_static=$enable_dlopen_self_static 33267 33268 # Commands to strip libraries. 33269 old_striplib=$lt_old_striplib 33270 striplib=$lt_striplib 33271 33272 33273 # The linker used to build libraries. 33274 LD=$lt_LD 33275 33276 # How to create reloadable object files. 33277 reload_flag=$lt_reload_flag 33278 reload_cmds=$lt_reload_cmds 33279 33280 # Commands used to build an old-style archive. 33281 old_archive_cmds=$lt_old_archive_cmds 33282 33283 # A language specific compiler. 33284 CC=$lt_compiler 33285 33286 # Is the compiler the GNU compiler? 33287 with_gcc=$GCC 33288 33289 # Compiler flag to turn off builtin functions. 33290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 33291 33292 # Additional compiler flags for building library objects. 33293 pic_flag=$lt_lt_prog_compiler_pic 33294 33295 # How to pass a linker flag through the compiler. 33296 wl=$lt_lt_prog_compiler_wl 33297 33298 # Compiler flag to prevent dynamic linking. 33299 link_static_flag=$lt_lt_prog_compiler_static 33300 33301 # Does compiler simultaneously support -c and -o options? 33302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 33303 33304 # Whether or not to add -lc for building shared libraries. 33305 build_libtool_need_lc=$archive_cmds_need_lc 33306 33307 # Whether or not to disallow shared libs when runtime libs are static. 33308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 33309 33310 # Compiler flag to allow reflexive dlopens. 33311 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 33312 33313 # Compiler flag to generate shared objects directly from archives. 33314 whole_archive_flag_spec=$lt_whole_archive_flag_spec 33315 33316 # Whether the compiler copes with passing no objects directly. 33317 compiler_needs_object=$lt_compiler_needs_object 33318 33319 # Create an old-style archive from a shared archive. 33320 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 33321 33322 # Create a temporary old-style archive to link instead of a shared archive. 33323 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 33324 33325 # Commands used to build a shared archive. 33326 archive_cmds=$lt_archive_cmds 33327 archive_expsym_cmds=$lt_archive_expsym_cmds 33328 33329 # Commands used to build a loadable module if different from building 33330 # a shared archive. 33331 module_cmds=$lt_module_cmds 33332 module_expsym_cmds=$lt_module_expsym_cmds 33333 33334 # Whether we are building with GNU ld or not. 33335 with_gnu_ld=$lt_with_gnu_ld 33336 33337 # Flag that allows shared libraries with undefined symbols to be built. 33338 allow_undefined_flag=$lt_allow_undefined_flag 33339 33340 # Flag that enforces no undefined symbols. 33341 no_undefined_flag=$lt_no_undefined_flag 33342 33343 # Flag to hardcode \$libdir into a binary during linking. 33344 # This must work even if \$libdir does not exist 33345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 33346 33347 # Whether we need a single "-rpath" flag with a separated argument. 33348 hardcode_libdir_separator=$lt_hardcode_libdir_separator 33349 33350 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33351 # DIR into the resulting binary. 33352 hardcode_direct=$hardcode_direct 33353 33354 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33355 # DIR into the resulting binary and the resulting library dependency is 33356 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 33357 # library is relocated. 33358 hardcode_direct_absolute=$hardcode_direct_absolute 33359 33360 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33361 # into the resulting binary. 33362 hardcode_minus_L=$hardcode_minus_L 33363 33364 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33365 # into the resulting binary. 33366 hardcode_shlibpath_var=$hardcode_shlibpath_var 33367 33368 # Set to "yes" if building a shared library automatically hardcodes DIR 33369 # into the library and all subsequent libraries and executables linked 33370 # against it. 33371 hardcode_automatic=$hardcode_automatic 33372 33373 # Set to yes if linker adds runtime paths of dependent libraries 33374 # to runtime path list. 33375 inherit_rpath=$inherit_rpath 33376 33377 # Whether libtool must link a program against all its dependency libraries. 33378 link_all_deplibs=$link_all_deplibs 33379 33380 # Set to "yes" if exported symbols are required. 33381 always_export_symbols=$always_export_symbols 33382 33383 # The commands to list exported symbols. 33384 export_symbols_cmds=$lt_export_symbols_cmds 33385 33386 # Symbols that should not be listed in the preloaded symbols. 33387 exclude_expsyms=$lt_exclude_expsyms 33388 33389 # Symbols that must always be exported. 33390 include_expsyms=$lt_include_expsyms 33391 33392 # Commands necessary for linking programs (against libraries) with templates. 33393 prelink_cmds=$lt_prelink_cmds 33394 33395 # Commands necessary for finishing linking programs. 33396 postlink_cmds=$lt_postlink_cmds 33397 33398 # Specify filename containing input files. 33399 file_list_spec=$lt_file_list_spec 33400 33401 # How to hardcode a shared library path into an executable. 33402 hardcode_action=$hardcode_action 33403 33404 # ### END LIBTOOL CONFIG 33405 33406 _LT_EOF 33407 33408 cat <<'_LT_EOF' >> "$cfgfile" 33409 33410 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 33411 33412 # func_munge_path_list VARIABLE PATH 33413 # ----------------------------------- 33414 # VARIABLE is name of variable containing _space_ separated list of 33415 # directories to be munged by the contents of PATH, which is string 33416 # having a format: 33417 # "DIR[:DIR]:" 33418 # string "DIR[ DIR]" will be prepended to VARIABLE 33419 # ":DIR[:DIR]" 33420 # string "DIR[ DIR]" will be appended to VARIABLE 33421 # "DIRP[:DIRP]::[DIRA:]DIRA" 33422 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 33423 # "DIRA[ DIRA]" will be appended to VARIABLE 33424 # "DIR[:DIR]" 33425 # VARIABLE will be replaced by "DIR[ DIR]" 33426 func_munge_path_list () 33427 { 33428 case x$2 in 33429 x) 33430 ;; 33431 *:) 33432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 33433 ;; 33434 x:*) 33435 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 33436 ;; 33437 *::*) 33438 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 33439 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 33440 ;; 33441 *) 33442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 33443 ;; 33444 esac 33445 } 33446 33447 33448 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 33449 func_cc_basename () 33450 { 33451 for cc_temp in $*""; do 33452 case $cc_temp in 33453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 33454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 33455 \-*) ;; 33456 *) break;; 33457 esac 33458 done 33459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 33460 } 33461 33462 33463 # ### END FUNCTIONS SHARED WITH CONFIGURE 33464 33465 _LT_EOF 33466 33467 case $host_os in 33468 aix3*) 33469 cat <<\_LT_EOF >> "$cfgfile" 33470 # AIX sometimes has problems with the GCC collect2 program. For some 33471 # reason, if we set the COLLECT_NAMES environment variable, the problems 33472 # vanish in a puff of smoke. 33473 if test set != "${COLLECT_NAMES+set}"; then 33474 COLLECT_NAMES= 33475 export COLLECT_NAMES 33476 fi 33477 _LT_EOF 33478 ;; 33479 esac 33480 33481 33482 33483 ltmain=$ac_aux_dir/ltmain.sh 33484 33485 33486 # We use sed instead of cat because bash on DJGPP gets confused if 33487 # if finds mixed CR/LF and LF-only lines. Since sed operates in 33488 # text mode, it properly converts lines to CR/LF. This bash problem 33489 # is reportedly fixed, but why not run on old versions too? 33490 $SED '$q' "$ltmain" >> "$cfgfile" \ 33491 || (rm -f "$cfgfile"; exit 1) 33492 33493 mv -f "$cfgfile" "$ofile" || 33494 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 33495 chmod +x "$ofile" 33496 33497 ;; 33498 33499 esac 33500 done # for ac_tag 33501 33502 33503 as_fn_exit 0 33504 _ACEOF 33505 ac_clean_files=$ac_clean_files_save 33506 33507 test $ac_write_fail = 0 || 33508 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33509 33510 33511 # configure is writing to config.log, and then calls config.status. 33512 # config.status does its own redirection, appending to config.log. 33513 # Unfortunately, on DOS this fails, as config.log is still kept open 33514 # by configure, so config.status won't be able to write to it; its 33515 # output is simply discarded. So we exec the FD to /dev/null, 33516 # effectively closing config.log, so it can be properly (re)opened and 33517 # appended to by config.status. When coming back to configure, we 33518 # need to make the FD available again. 33519 if test "$no_create" != yes; then 33520 ac_cs_success=: 33521 ac_config_status_args= 33522 test "$silent" = yes && 33523 ac_config_status_args="$ac_config_status_args --quiet" 33524 exec 5>/dev/null 33525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33526 exec 5>>config.log 33527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33528 # would make configure fail if this is the last instruction. 33529 $ac_cs_success || as_fn_exit 1 33530 fi 33531 33532 # 33533 # CONFIG_SUBDIRS section. 33534 # 33535 if test "$no_recursion" != yes; then 33536 33537 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 33538 # so they do not pile up. 33539 ac_sub_configure_args= 33540 ac_prev= 33541 eval "set x $ac_configure_args" 33542 shift 33543 for ac_arg 33544 do 33545 if test -n "$ac_prev"; then 33546 ac_prev= 33547 continue 33548 fi 33549 case $ac_arg in 33550 -cache-file | --cache-file | --cache-fil | --cache-fi \ 33551 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 33552 ac_prev=cache_file ;; 33553 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 33554 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 33555 | --c=*) 33556 ;; 33557 --config-cache | -C) 33558 ;; 33559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 33560 ac_prev=srcdir ;; 33561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 33562 ;; 33563 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 33564 ac_prev=prefix ;; 33565 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 33566 ;; 33567 --disable-option-checking) 33568 ;; 33569 *) 33570 case $ac_arg in 33571 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 33572 esac 33573 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 33574 esac 33575 done 33576 33577 # Always prepend --prefix to ensure using the same prefix 33578 # in subdir configurations. 33579 ac_arg="--prefix=$prefix" 33580 case $ac_arg in 33581 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 33582 esac 33583 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 33584 33585 # Pass --silent 33586 if test "$silent" = yes; then 33587 ac_sub_configure_args="--silent $ac_sub_configure_args" 33588 fi 33589 33590 # Always prepend --disable-option-checking to silence warnings, since 33591 # different subdirs can have different --enable and --with options. 33592 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 33593 33594 ac_popdir=`pwd` 33595 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 33596 33597 # Do not complain, so a configure script can configure whichever 33598 # parts of a large source tree are present. 33599 test -d "$srcdir/$ac_dir" || continue 33600 33601 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 33602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 33603 printf "%s\n" "$ac_msg" >&6 33604 as_dir="$ac_dir"; as_fn_mkdir_p 33605 ac_builddir=. 33606 33607 case "$ac_dir" in 33608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 33609 *) 33610 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 33611 # A ".." for each directory in $ac_dir_suffix. 33612 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 33613 case $ac_top_builddir_sub in 33614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 33615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 33616 esac ;; 33617 esac 33618 ac_abs_top_builddir=$ac_pwd 33619 ac_abs_builddir=$ac_pwd$ac_dir_suffix 33620 # for backward compatibility: 33621 ac_top_builddir=$ac_top_build_prefix 33622 33623 case $srcdir in 33624 .) # We are building in place. 33625 ac_srcdir=. 33626 ac_top_srcdir=$ac_top_builddir_sub 33627 ac_abs_top_srcdir=$ac_pwd ;; 33628 [\\/]* | ?:[\\/]* ) # Absolute name. 33629 ac_srcdir=$srcdir$ac_dir_suffix; 33630 ac_top_srcdir=$srcdir 33631 ac_abs_top_srcdir=$srcdir ;; 33632 *) # Relative name. 33633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 33634 ac_top_srcdir=$ac_top_build_prefix$srcdir 33635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 33636 esac 33637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 33638 33639 33640 cd "$ac_dir" 33641 33642 # Check for configure.gnu first; this name is used for a wrapper for 33643 # Metaconfig's "Configure" on case-insensitive file systems. 33644 if test -f "$ac_srcdir/configure.gnu"; then 33645 ac_sub_configure=$ac_srcdir/configure.gnu 33646 elif test -f "$ac_srcdir/configure"; then 33647 ac_sub_configure=$ac_srcdir/configure 33648 else 33649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 33650 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 33651 ac_sub_configure= 33652 fi 33653 33654 # The recursion is here. 33655 if test -n "$ac_sub_configure"; then 33656 # Make the cache file name correct relative to the subdirectory. 33657 case $cache_file in 33658 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 33659 *) # Relative name. 33660 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 33661 esac 33662 33663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 33664 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 33665 # The eval makes quoting arguments work. 33666 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 33667 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 33668 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 33669 fi 33670 33671 cd "$ac_popdir" 33672 done 33673 fi 33674 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33676 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33677 fi 33678 33679 33680 33681 cat > include/newversion.h.in <<EOF 33682 #ifndef VERSION_HIDDEN 33683 #define VERSION_HIDDEN 33684 #endif 33685 VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$"; 33686 VERSION_HIDDEN const char *heimdal_version = "Heimdal 7.8.0"; 33687 EOF 33688 33689 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 33690 echo "include/version.h is unchanged" 33691 rm -f include/newversion.h.in 33692 else 33693 echo "creating include/version.h" 33694 User=${USER-${LOGNAME}} 33695 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 33696 Date=`date` 33697 mv -f include/newversion.h.in include/version.h.in 33698 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 33699 fi 33700 33701