1 #! /bin/sh 2 # From configure.ac Revision. 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.65 for Heimdal 1.5.2. 5 # 6 # Report bugs to <heimdal-bugs@h5l.org>. 7 # 8 # 9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 11 # Inc. 12 # 13 # 14 # This configure script is free software; the Free Software Foundation 15 # gives unlimited permission to copy, distribute and modify it. 16 ## -------------------- ## 17 ## M4sh Initialization. ## 18 ## -------------------- ## 19 20 # Be more Bourne compatible 21 DUALCASE=1; export DUALCASE # for MKS sh 22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 as_nl=' 40 ' 41 export as_nl 42 # Printing a long string crashes Solaris 7 /usr/bin/printf. 43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46 # Prefer a ksh shell builtin over an external printf program on Solaris, 47 # but without wasting forks for bash or zsh. 48 if test -z "$BASH_VERSION$ZSH_VERSION" \ 49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='print -r --' 51 as_echo_n='print -rn --' 52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='printf %s\n' 54 as_echo_n='printf %s' 55 else 56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 58 as_echo_n='/usr/ucb/echo -n' 59 else 60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 61 as_echo_n_body='eval 62 arg=$1; 63 case $arg in #( 64 *"$as_nl"*) 65 expr "X$arg" : "X\\(.*\\)$as_nl"; 66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 67 esac; 68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69 ' 70 export as_echo_n_body 71 as_echo_n='sh -c $as_echo_n_body as_echo' 72 fi 73 export as_echo_body 74 as_echo='sh -c $as_echo_body as_echo' 75 fi 76 77 # The user is always right. 78 if test "${PATH_SEPARATOR+set}" != set; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # IFS 88 # We need space, tab and new line, in precisely that order. Quoting is 89 # there to prevent editors from complaining about space-tab. 90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 91 # splitting by setting IFS to empty value.) 92 IFS=" "" $as_nl" 93 94 # Find who we are. Look in the path if we contain no directory separator. 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185 test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188 else 189 as_have_required=no 190 fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193 else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_found=false 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197 do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211 fi 212 fi 213 done;; 214 esac 215 as_found=false 216 done 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220 fi; } 221 IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 BASH_ENV=/dev/null 229 ENV=/dev/null 230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 231 export CONFIG_SHELL 232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 233 fi 234 235 if test x$as_have_required = xno; then : 236 $as_echo "$0: This script requires a shell more modern than all" 237 $as_echo "$0: the shells that I found on your system." 238 if test x${ZSH_VERSION+set} = xset ; then 239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 240 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 241 else 242 $as_echo "$0: Please tell bug-autoconf@gnu.org and 243 $0: heimdal-bugs@h5l.org about your system, including any 244 $0: error possibly output before this message. Then install 245 $0: a modern shell, or manually run the script under such a 246 $0: shell if you do have one." 247 fi 248 exit 1 249 fi 250 fi 251 fi 252 SHELL=${CONFIG_SHELL-/bin/sh} 253 export SHELL 254 # Unset more variables known to interfere with behavior of common tools. 255 CLICOLOR_FORCE= GREP_OPTIONS= 256 unset CLICOLOR_FORCE GREP_OPTIONS 257 258 ## --------------------- ## 259 ## M4sh Shell Functions. ## 260 ## --------------------- ## 261 # as_fn_unset VAR 262 # --------------- 263 # Portably unset VAR. 264 as_fn_unset () 265 { 266 { eval $1=; unset $1;} 267 } 268 as_unset=as_fn_unset 269 270 # as_fn_set_status STATUS 271 # ----------------------- 272 # Set $? to STATUS, without forking. 273 as_fn_set_status () 274 { 275 return $1 276 } # as_fn_set_status 277 278 # as_fn_exit STATUS 279 # ----------------- 280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281 as_fn_exit () 282 { 283 set +e 284 as_fn_set_status $1 285 exit $1 286 } # as_fn_exit 287 288 # as_fn_mkdir_p 289 # ------------- 290 # Create "$as_dir" as a directory, including parents if necessary. 291 as_fn_mkdir_p () 292 { 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310 $as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 332 333 334 } # as_fn_mkdir_p 335 # as_fn_append VAR VALUE 336 # ---------------------- 337 # Append the text in VALUE to the end of the definition contained in VAR. Take 338 # advantage of any shell optimizations that allow amortized linear growth over 339 # repeated appends, instead of the typical quadratic growth present in naive 340 # implementations. 341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346 else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351 fi # as_fn_append 352 353 # as_fn_arith ARG... 354 # ------------------ 355 # Perform arithmetic evaluation on the ARGs, and store the result in the 356 # global $as_val. Take advantage of shells that can avoid forks. The arguments 357 # must be portable across $(()) and expr. 358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363 else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368 fi # as_fn_arith 369 370 371 # as_fn_error ERROR [LINENO LOG_FD] 372 # --------------------------------- 373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375 # script with status $?, using 1 if that was 0. 376 as_fn_error () 377 { 378 as_status=$?; test $as_status -eq 0 && as_status=1 379 if test "$3"; then 380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 382 fi 383 $as_echo "$as_me: error: $1" >&2 384 as_fn_exit $as_status 385 } # as_fn_error 386 387 if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390 else 391 as_expr=false 392 fi 393 394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396 else 397 as_basename=false 398 fi 399 400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402 else 403 as_dirname=false 404 fi 405 406 as_me=`$as_basename -- "$0" || 407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410 $as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425 # Avoid depending upon Character Ranges. 426 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429 as_cr_digits='0123456789' 430 as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462 } 463 464 ECHO_C= ECHO_N= ECHO_T= 465 case `echo -n x` in #((((( 466 -n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473 *) 474 ECHO_N='-n';; 475 esac 476 477 rm -f conf$$ conf$$.exe conf$$.file 478 if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480 else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483 fi 484 if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498 else 499 as_ln_s='cp -p' 500 fi 501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502 rmdir conf$$.dir 2>/dev/null 503 504 if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506 else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509 fi 510 511 if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513 else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531 fi 532 as_executable_p=$as_test_x 533 534 # Sed expression to map a string onto a valid CPP name. 535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537 # Sed expression to map a string onto a valid variable name. 538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 SHELL=${CONFIG_SHELL-/bin/sh} 541 542 543 test -n "$DJDIR" || exec 7<&0 </dev/null 544 exec 6>&1 545 546 # Name of the host. 547 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 548 # so uname gets run too. 549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 550 551 # 552 # Initializations. 553 # 554 ac_default_prefix=/usr/local 555 ac_clean_files= 556 ac_config_libobj_dir=. 557 LIBOBJS= 558 cross_compiling=no 559 subdirs= 560 MFLAGS= 561 MAKEFLAGS= 562 563 # Identity of this package. 564 PACKAGE_NAME='Heimdal' 565 PACKAGE_TARNAME='heimdal' 566 PACKAGE_VERSION='1.5.2' 567 PACKAGE_STRING='Heimdal 1.5.2' 568 PACKAGE_BUGREPORT='heimdal-bugs@h5l.org' 569 PACKAGE_URL='' 570 571 ac_unique_file="kuser/kinit.c" 572 # Factoring default headers for most tests. 573 ac_includes_default="\ 574 #include <stdio.h> 575 #ifdef HAVE_SYS_TYPES_H 576 # include <sys/types.h> 577 #endif 578 #ifdef HAVE_SYS_STAT_H 579 # include <sys/stat.h> 580 #endif 581 #ifdef STDC_HEADERS 582 # include <stdlib.h> 583 # include <stddef.h> 584 #else 585 # ifdef HAVE_STDLIB_H 586 # include <stdlib.h> 587 # endif 588 #endif 589 #ifdef HAVE_STRING_H 590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 591 # include <memory.h> 592 # endif 593 # include <string.h> 594 #endif 595 #ifdef HAVE_STRINGS_H 596 # include <strings.h> 597 #endif 598 #ifdef HAVE_INTTYPES_H 599 # include <inttypes.h> 600 #endif 601 #ifdef HAVE_STDINT_H 602 # include <stdint.h> 603 #endif 604 #ifdef HAVE_UNISTD_H 605 # include <unistd.h> 606 #endif" 607 608 ac_default_prefix=/usr/heimdal 609 ac_header_list= 610 enable_option_checking=no 611 ac_subst_vars='am__EXEEXT_FALSE 612 am__EXEEXT_TRUE 613 LTLIBOBJS 614 HEIMDAL_DOCUMENTATION_FALSE 615 HEIMDAL_DOCUMENTATION_TRUE 616 LIB_AUTH_SUBDIRS 617 LIB_com_err_so 618 LIB_com_err_a 619 LIB_com_err 620 DIR_com_err 621 COM_ERR_FALSE 622 COM_ERR_TRUE 623 COMPILE_ET 624 LIBEDIT_FALSE 625 LIBEDIT_TRUE 626 FRAMEWORK_SECURITY_FALSE 627 FRAMEWORK_SECURITY_TRUE 628 KCM_FALSE 629 KCM_TRUE 630 LIB_door_create 631 LIB_getpwnam_r 632 LIB_tgetent 633 LIB_openpty 634 LIB_logout 635 LIB_logwtmp 636 NEED_WRITEAUTH_FALSE 637 NEED_WRITEAUTH_TRUE 638 LIB_XauFileName 639 LIB_XauReadAuth 640 LIB_XauWriteAuth 641 HAVE_X_FALSE 642 HAVE_X_TRUE 643 X_EXTRA_LIBS 644 X_LIBS 645 X_PRE_LIBS 646 X_CFLAGS 647 XMKMF 648 LIB_hesiod 649 INCLUDE_hesiod 650 subdirs 651 LIB_libedit 652 INCLUDE_libedit 653 LIB_readline 654 INCLUDE_readline 655 CATMANEXT 656 CATMAN_FALSE 657 CATMAN_TRUE 658 CATMAN 659 GROFF 660 NROFF 661 LIB_security 662 have_gcd_FALSE 663 have_gcd_TRUE 664 LIB_dispatch_async_f 665 OTP_FALSE 666 OTP_TRUE 667 LIB_otp 668 LIBADD_roken 669 INCLUDES_roken 670 LIB_roken 671 DIR_roken 672 have_socket_wrapper_FALSE 673 have_socket_wrapper_TRUE 674 LIB_crypt 675 have_fnmatch_h_FALSE 676 have_fnmatch_h_TRUE 677 LIB_gai_strerror 678 LIB_freeaddrinfo 679 LIB_getnameinfo 680 LIB_getaddrinfo 681 LIB_pidfile 682 LIB_bswap32 683 LIB_bswap16 684 LIB_hstrerror 685 LIB_setsockopt 686 LIB_getsockopt 687 have_cgetent_FALSE 688 have_cgetent_TRUE 689 have_glob_h_FALSE 690 have_glob_h_TRUE 691 LIBOBJS 692 LIB_dn_expand 693 LIB_dns_search 694 LIB_res_ndestroy 695 LIB_res_nsearch 696 LIB_res_search 697 LIB_gethostbyname2 698 LIB_syslog 699 LIB_gethostbyname 700 LIB_socket 701 have_vis_h_FALSE 702 have_vis_h_TRUE 703 have_search_h_FALSE 704 have_search_h_TRUE 705 have_ifaddrs_h_FALSE 706 have_ifaddrs_h_TRUE 707 have_err_h_FALSE 708 have_err_h_TRUE 709 WFLAGS_NOIMPLICITINT 710 WFLAGS_NOUNUSED 711 WFLAGS 712 LIB_NDBM 713 DBLIB 714 HAVE_DBHEADER_FALSE 715 HAVE_DBHEADER_TRUE 716 HAVE_NDBM_FALSE 717 HAVE_NDBM_TRUE 718 HAVE_DB3_FALSE 719 HAVE_DB3_TRUE 720 HAVE_DB1_FALSE 721 HAVE_DB1_TRUE 722 LIB_dbm_firstkey 723 LIB_dbopen 724 LIB_db_create 725 DBHEADER 726 NO_AFS 727 dpagaix_ldflags 728 dpagaix_ldadd 729 dpagaix_cflags 730 DCE_FALSE 731 DCE_TRUE 732 PTHREAD_LIBADD 733 PTHREAD_LDADD 734 PTHREAD_CFLAGS 735 LIB_hcrypto_appl 736 LIB_hcrypto_so 737 LIB_hcrypto_a 738 LIB_hcrypto 739 INCLUDE_hcrypto 740 DIR_hcrypto 741 HAVE_OPENSSL_FALSE 742 HAVE_OPENSSL_TRUE 743 LIB_kdb 744 do_roken_rename_FALSE 745 do_roken_rename_TRUE 746 KRB5_FALSE 747 KRB5_TRUE 748 KRB4_FALSE 749 KRB4_TRUE 750 LIB_krb4 751 INCLUDE_krb4 752 DIR_hdbdir 753 LIB_libintl 754 INCLUDE_libintl 755 have_scc_FALSE 756 have_scc_TRUE 757 SQLITE3_FALSE 758 SQLITE3_TRUE 759 LIB_sqlite3 760 INCLUDE_sqlite3 761 HAVE_CAPNG_FALSE 762 HAVE_CAPNG_TRUE 763 CAPNG_LIBS 764 CAPNG_CFLAGS 765 PKG_CONFIG 766 PKINIT_FALSE 767 PKINIT_TRUE 768 OPENLDAP_MODULE_FALSE 769 OPENLDAP_MODULE_TRUE 770 LIB_openldap 771 INCLUDE_openldap 772 SLC_DEP 773 SLC 774 ASN1_COMPILE_DEP 775 ASN1_COMPILE 776 CROSS_COMPILE_FALSE 777 CROSS_COMPILE_TRUE 778 LDFLAGS_VERSION_SCRIPT 779 versionscript_FALSE 780 versionscript_TRUE 781 VERSIONING 782 ENABLE_SHARED_FALSE 783 ENABLE_SHARED_TRUE 784 LEXLIB 785 LEX_OUTPUT_ROOT 786 LEX 787 YFLAGS 788 YACC 789 IRIX_FALSE 790 IRIX_TRUE 791 AIX_EXTRA_KAFS 792 AIX_DYNAMIC_AFS_FALSE 793 AIX_DYNAMIC_AFS_TRUE 794 LIB_loadquery 795 HAVE_DLOPEN_FALSE 796 HAVE_DLOPEN_TRUE 797 LIB_dlopen 798 AIX4_FALSE 799 AIX4_TRUE 800 AIX_FALSE 801 AIX_TRUE 802 CANONICAL_HOST 803 OTOOL64 804 OTOOL 805 LIPO 806 NMEDIT 807 DSYMUTIL 808 MANIFEST_TOOL 809 RANLIB 810 ac_ct_AR 811 AR 812 DLLTOOL 813 OBJDUMP 814 LN_S 815 NM 816 ac_ct_DUMPBIN 817 DUMPBIN 818 LD 819 FGREP 820 EGREP 821 GREP 822 SED 823 host_os 824 host_vendor 825 host_cpu 826 host 827 build_os 828 build_vendor 829 build_cpu 830 build 831 LIBTOOL 832 CPP 833 am__fastdepCC_FALSE 834 am__fastdepCC_TRUE 835 CCDEPMODE 836 AMDEPBACKSLASH 837 AMDEP_FALSE 838 AMDEP_TRUE 839 am__quote 840 am__include 841 DEPDIR 842 OBJEXT 843 EXEEXT 844 ac_ct_CC 845 CPPFLAGS 846 LDFLAGS 847 CFLAGS 848 CC 849 MAINT 850 MAINTAINER_MODE_FALSE 851 MAINTAINER_MODE_TRUE 852 am__untar 853 am__tar 854 AMTAR 855 am__leading_dot 856 SET_MAKE 857 AWK 858 mkdir_p 859 MKDIR_P 860 INSTALL_STRIP_PROGRAM 861 STRIP 862 install_sh 863 MAKEINFO 864 AUTOHEADER 865 AUTOMAKE 866 AUTOCONF 867 ACLOCAL 868 VERSION 869 PACKAGE 870 CYGPATH_W 871 am__isrc 872 INSTALL_DATA 873 INSTALL_SCRIPT 874 INSTALL_PROGRAM 875 target_alias 876 host_alias 877 build_alias 878 LIBS 879 ECHO_T 880 ECHO_N 881 ECHO_C 882 DEFS 883 mandir 884 localedir 885 libdir 886 psdir 887 pdfdir 888 dvidir 889 htmldir 890 infodir 891 docdir 892 oldincludedir 893 includedir 894 localstatedir 895 sharedstatedir 896 sysconfdir 897 datadir 898 datarootdir 899 libexecdir 900 sbindir 901 bindir 902 program_transform_name 903 prefix 904 exec_prefix 905 PACKAGE_URL 906 PACKAGE_BUGREPORT 907 PACKAGE_STRING 908 PACKAGE_VERSION 909 PACKAGE_TARNAME 910 PACKAGE_NAME 911 PATH_SEPARATOR 912 SHELL' 913 ac_subst_files='' 914 ac_user_opts=' 915 enable_option_checking 916 enable_maintainer_mode 917 enable_dependency_tracking 918 enable_shared 919 enable_static 920 with_pic 921 enable_fast_install 922 with_gnu_ld 923 with_sysroot 924 enable_libtool_lock 925 enable_largefile 926 enable_dynamic_afs 927 with_mips_abi 928 with_cross_tools 929 with_openldap 930 with_openldap_lib 931 with_openldap_include 932 with_openldap_config 933 enable_hdb_openldap_module 934 enable_pk_init 935 enable_digest 936 enable_kx509 937 with_capng 938 with_sqlite3 939 with_sqlite3_lib 940 with_sqlite3_include 941 with_sqlite3_config 942 enable_sqlite_cache 943 with_libintl 944 with_libintl_lib 945 with_libintl_include 946 with_libintl_config 947 with_hdbdir 948 with_openssl 949 with_openssl_lib 950 with_openssl_include 951 enable_pthread_support 952 enable_dce 953 enable_afs_support 954 with_berkeley_db 955 with_berkeley_db_include 956 enable_ndbm_db 957 enable_developer 958 with_ipv6 959 enable_socket_wrapper 960 enable_otp 961 enable_osfc2 962 enable_mmap 963 enable_afs_string_to_key 964 with_readline 965 with_readline_lib 966 with_readline_include 967 with_readline_config 968 with_libedit 969 with_libedit_lib 970 with_libedit_include 971 with_libedit_config 972 with_hesiod 973 with_hesiod_lib 974 with_hesiod_include 975 with_hesiod_config 976 enable_bigendian 977 enable_littleendian 978 with_x 979 enable_kcm 980 enable_heimdal_documentation 981 ' 982 ac_precious_vars='build_alias 983 host_alias 984 target_alias 985 CC 986 CFLAGS 987 LDFLAGS 988 LIBS 989 CPPFLAGS 990 CPP 991 YACC 992 YFLAGS 993 PKG_CONFIG 994 CAPNG_CFLAGS 995 CAPNG_LIBS 996 XMKMF' 997 ac_subdirs_all='lib/libedit' 998 999 # Initialize some variables set by options. 1000 ac_init_help= 1001 ac_init_version=false 1002 ac_unrecognized_opts= 1003 ac_unrecognized_sep= 1004 # The variables have the same names as the options, with 1005 # dashes changed to underlines. 1006 cache_file=/dev/null 1007 exec_prefix=NONE 1008 no_create= 1009 no_recursion= 1010 prefix=NONE 1011 program_prefix=NONE 1012 program_suffix=NONE 1013 program_transform_name=s,x,x, 1014 silent= 1015 site= 1016 srcdir= 1017 verbose= 1018 x_includes=NONE 1019 x_libraries=NONE 1020 1021 # Installation directory options. 1022 # These are left unexpanded so users can "make install exec_prefix=/foo" 1023 # and all the variables that are supposed to be based on exec_prefix 1024 # by default will actually change. 1025 # Use braces instead of parens because sh, perl, etc. also accept them. 1026 # (The list follows the same order as the GNU Coding Standards.) 1027 bindir='${exec_prefix}/bin' 1028 sbindir='${exec_prefix}/sbin' 1029 libexecdir='${exec_prefix}/libexec' 1030 datarootdir='${prefix}/share' 1031 datadir='${datarootdir}' 1032 sysconfdir='${prefix}/etc' 1033 sharedstatedir='${prefix}/com' 1034 localstatedir='${prefix}/var' 1035 includedir='${prefix}/include' 1036 oldincludedir='/usr/include' 1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1038 infodir='${datarootdir}/info' 1039 htmldir='${docdir}' 1040 dvidir='${docdir}' 1041 pdfdir='${docdir}' 1042 psdir='${docdir}' 1043 libdir='${exec_prefix}/lib' 1044 localedir='${datarootdir}/locale' 1045 mandir='${datarootdir}/man' 1046 1047 ac_prev= 1048 ac_dashdash= 1049 for ac_option 1050 do 1051 # If the previous option needs an argument, assign it. 1052 if test -n "$ac_prev"; then 1053 eval $ac_prev=\$ac_option 1054 ac_prev= 1055 continue 1056 fi 1057 1058 case $ac_option in 1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1060 *) ac_optarg=yes ;; 1061 esac 1062 1063 # Accept the important Cygnus configure options, so we can diagnose typos. 1064 1065 case $ac_dashdash$ac_option in 1066 --) 1067 ac_dashdash=yes ;; 1068 1069 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1070 ac_prev=bindir ;; 1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1072 bindir=$ac_optarg ;; 1073 1074 -build | --build | --buil | --bui | --bu) 1075 ac_prev=build_alias ;; 1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1077 build_alias=$ac_optarg ;; 1078 1079 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1081 ac_prev=cache_file ;; 1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1084 cache_file=$ac_optarg ;; 1085 1086 --config-cache | -C) 1087 cache_file=config.cache ;; 1088 1089 -datadir | --datadir | --datadi | --datad) 1090 ac_prev=datadir ;; 1091 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1092 datadir=$ac_optarg ;; 1093 1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1095 | --dataroo | --dataro | --datar) 1096 ac_prev=datarootdir ;; 1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1099 datarootdir=$ac_optarg ;; 1100 1101 -disable-* | --disable-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error "invalid feature name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110 "enable_$ac_useropt" 1111 "*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval enable_$ac_useropt=no ;; 1116 1117 -docdir | --docdir | --docdi | --doc | --do) 1118 ac_prev=docdir ;; 1119 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1120 docdir=$ac_optarg ;; 1121 1122 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1123 ac_prev=dvidir ;; 1124 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1125 dvidir=$ac_optarg ;; 1126 1127 -enable-* | --enable-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error "invalid feature name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136 "enable_$ac_useropt" 1137 "*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval enable_$ac_useropt=\$ac_optarg ;; 1142 1143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1145 | --exec | --exe | --ex) 1146 ac_prev=exec_prefix ;; 1147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1149 | --exec=* | --exe=* | --ex=*) 1150 exec_prefix=$ac_optarg ;; 1151 1152 -gas | --gas | --ga | --g) 1153 # Obsolete; use --with-gas. 1154 with_gas=yes ;; 1155 1156 -help | --help | --hel | --he | -h) 1157 ac_init_help=long ;; 1158 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1159 ac_init_help=recursive ;; 1160 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1161 ac_init_help=short ;; 1162 1163 -host | --host | --hos | --ho) 1164 ac_prev=host_alias ;; 1165 -host=* | --host=* | --hos=* | --ho=*) 1166 host_alias=$ac_optarg ;; 1167 1168 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1169 ac_prev=htmldir ;; 1170 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1171 | --ht=*) 1172 htmldir=$ac_optarg ;; 1173 1174 -includedir | --includedir | --includedi | --included | --include \ 1175 | --includ | --inclu | --incl | --inc) 1176 ac_prev=includedir ;; 1177 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1178 | --includ=* | --inclu=* | --incl=* | --inc=*) 1179 includedir=$ac_optarg ;; 1180 1181 -infodir | --infodir | --infodi | --infod | --info | --inf) 1182 ac_prev=infodir ;; 1183 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1184 infodir=$ac_optarg ;; 1185 1186 -libdir | --libdir | --libdi | --libd) 1187 ac_prev=libdir ;; 1188 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1189 libdir=$ac_optarg ;; 1190 1191 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1192 | --libexe | --libex | --libe) 1193 ac_prev=libexecdir ;; 1194 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1195 | --libexe=* | --libex=* | --libe=*) 1196 libexecdir=$ac_optarg ;; 1197 1198 -localedir | --localedir | --localedi | --localed | --locale) 1199 ac_prev=localedir ;; 1200 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1201 localedir=$ac_optarg ;; 1202 1203 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1204 | --localstate | --localstat | --localsta | --localst | --locals) 1205 ac_prev=localstatedir ;; 1206 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1207 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1208 localstatedir=$ac_optarg ;; 1209 1210 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1211 ac_prev=mandir ;; 1212 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1213 mandir=$ac_optarg ;; 1214 1215 -nfp | --nfp | --nf) 1216 # Obsolete; use --without-fp. 1217 with_fp=no ;; 1218 1219 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1220 | --no-cr | --no-c | -n) 1221 no_create=yes ;; 1222 1223 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1224 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1225 no_recursion=yes ;; 1226 1227 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1228 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1229 | --oldin | --oldi | --old | --ol | --o) 1230 ac_prev=oldincludedir ;; 1231 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1232 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1233 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1234 oldincludedir=$ac_optarg ;; 1235 1236 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1237 ac_prev=prefix ;; 1238 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1239 prefix=$ac_optarg ;; 1240 1241 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1242 | --program-pre | --program-pr | --program-p) 1243 ac_prev=program_prefix ;; 1244 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1245 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1246 program_prefix=$ac_optarg ;; 1247 1248 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1249 | --program-suf | --program-su | --program-s) 1250 ac_prev=program_suffix ;; 1251 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1252 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1253 program_suffix=$ac_optarg ;; 1254 1255 -program-transform-name | --program-transform-name \ 1256 | --program-transform-nam | --program-transform-na \ 1257 | --program-transform-n | --program-transform- \ 1258 | --program-transform | --program-transfor \ 1259 | --program-transfo | --program-transf \ 1260 | --program-trans | --program-tran \ 1261 | --progr-tra | --program-tr | --program-t) 1262 ac_prev=program_transform_name ;; 1263 -program-transform-name=* | --program-transform-name=* \ 1264 | --program-transform-nam=* | --program-transform-na=* \ 1265 | --program-transform-n=* | --program-transform-=* \ 1266 | --program-transform=* | --program-transfor=* \ 1267 | --program-transfo=* | --program-transf=* \ 1268 | --program-trans=* | --program-tran=* \ 1269 | --progr-tra=* | --program-tr=* | --program-t=*) 1270 program_transform_name=$ac_optarg ;; 1271 1272 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1273 ac_prev=pdfdir ;; 1274 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1275 pdfdir=$ac_optarg ;; 1276 1277 -psdir | --psdir | --psdi | --psd | --ps) 1278 ac_prev=psdir ;; 1279 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1280 psdir=$ac_optarg ;; 1281 1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1283 | -silent | --silent | --silen | --sile | --sil) 1284 silent=yes ;; 1285 1286 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1287 ac_prev=sbindir ;; 1288 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1289 | --sbi=* | --sb=*) 1290 sbindir=$ac_optarg ;; 1291 1292 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1293 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1294 | --sharedst | --shareds | --shared | --share | --shar \ 1295 | --sha | --sh) 1296 ac_prev=sharedstatedir ;; 1297 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1298 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1299 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1300 | --sha=* | --sh=*) 1301 sharedstatedir=$ac_optarg ;; 1302 1303 -site | --site | --sit) 1304 ac_prev=site ;; 1305 -site=* | --site=* | --sit=*) 1306 site=$ac_optarg ;; 1307 1308 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1309 ac_prev=srcdir ;; 1310 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1311 srcdir=$ac_optarg ;; 1312 1313 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1314 | --syscon | --sysco | --sysc | --sys | --sy) 1315 ac_prev=sysconfdir ;; 1316 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1317 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1318 sysconfdir=$ac_optarg ;; 1319 1320 -target | --target | --targe | --targ | --tar | --ta | --t) 1321 ac_prev=target_alias ;; 1322 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1323 target_alias=$ac_optarg ;; 1324 1325 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1326 verbose=yes ;; 1327 1328 -version | --version | --versio | --versi | --vers | -V) 1329 ac_init_version=: ;; 1330 1331 -with-* | --with-*) 1332 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1333 # Reject names that are not valid shell variable names. 1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1335 as_fn_error "invalid package name: $ac_useropt" 1336 ac_useropt_orig=$ac_useropt 1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1338 case $ac_user_opts in 1339 *" 1340 "with_$ac_useropt" 1341 "*) ;; 1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1343 ac_unrecognized_sep=', ';; 1344 esac 1345 eval with_$ac_useropt=\$ac_optarg ;; 1346 1347 -without-* | --without-*) 1348 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1349 # Reject names that are not valid shell variable names. 1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1351 as_fn_error "invalid package name: $ac_useropt" 1352 ac_useropt_orig=$ac_useropt 1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1354 case $ac_user_opts in 1355 *" 1356 "with_$ac_useropt" 1357 "*) ;; 1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1359 ac_unrecognized_sep=', ';; 1360 esac 1361 eval with_$ac_useropt=no ;; 1362 1363 --x) 1364 # Obsolete; use --with-x. 1365 with_x=yes ;; 1366 1367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1368 | --x-incl | --x-inc | --x-in | --x-i) 1369 ac_prev=x_includes ;; 1370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1372 x_includes=$ac_optarg ;; 1373 1374 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1376 ac_prev=x_libraries ;; 1377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1379 x_libraries=$ac_optarg ;; 1380 1381 -*) as_fn_error "unrecognized option: \`$ac_option' 1382 Try \`$0 --help' for more information." 1383 ;; 1384 1385 *=*) 1386 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1387 # Reject names that are not valid shell variable names. 1388 case $ac_envvar in #( 1389 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1390 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1391 esac 1392 eval $ac_envvar=\$ac_optarg 1393 export $ac_envvar ;; 1394 1395 *) 1396 # FIXME: should be removed in autoconf 3.0. 1397 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1398 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1399 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1400 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1401 ;; 1402 1403 esac 1404 done 1405 1406 if test -n "$ac_prev"; then 1407 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1408 as_fn_error "missing argument to $ac_option" 1409 fi 1410 1411 if test -n "$ac_unrecognized_opts"; then 1412 case $enable_option_checking in 1413 no) ;; 1414 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1415 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1416 esac 1417 fi 1418 1419 # Check all directory arguments for consistency. 1420 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1421 datadir sysconfdir sharedstatedir localstatedir includedir \ 1422 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1423 libdir localedir mandir 1424 do 1425 eval ac_val=\$$ac_var 1426 # Remove trailing slashes. 1427 case $ac_val in 1428 */ ) 1429 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1430 eval $ac_var=\$ac_val;; 1431 esac 1432 # Be sure to have absolute directory names. 1433 case $ac_val in 1434 [\\/$]* | ?:[\\/]* ) continue;; 1435 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1436 esac 1437 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1438 done 1439 1440 # There might be people who depend on the old broken behavior: `$host' 1441 # used to hold the argument of --host etc. 1442 # FIXME: To remove some day. 1443 build=$build_alias 1444 host=$host_alias 1445 target=$target_alias 1446 1447 # FIXME: To remove some day. 1448 if test "x$host_alias" != x; then 1449 if test "x$build_alias" = x; then 1450 cross_compiling=maybe 1451 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1452 If a cross compiler is detected then cross compile mode will be used." >&2 1453 elif test "x$build_alias" != "x$host_alias"; then 1454 cross_compiling=yes 1455 fi 1456 fi 1457 1458 ac_tool_prefix= 1459 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1460 1461 test "$silent" = yes && exec 6>/dev/null 1462 1463 1464 ac_pwd=`pwd` && test -n "$ac_pwd" && 1465 ac_ls_di=`ls -di .` && 1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1467 as_fn_error "working directory cannot be determined" 1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1469 as_fn_error "pwd does not report name of working directory" 1470 1471 1472 # Find the source files, if location was not specified. 1473 if test -z "$srcdir"; then 1474 ac_srcdir_defaulted=yes 1475 # Try the directory containing this script, then the parent directory. 1476 ac_confdir=`$as_dirname -- "$as_myself" || 1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1478 X"$as_myself" : 'X\(//\)[^/]' \| \ 1479 X"$as_myself" : 'X\(//\)$' \| \ 1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1481 $as_echo X"$as_myself" | 1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1483 s//\1/ 1484 q 1485 } 1486 /^X\(\/\/\)[^/].*/{ 1487 s//\1/ 1488 q 1489 } 1490 /^X\(\/\/\)$/{ 1491 s//\1/ 1492 q 1493 } 1494 /^X\(\/\).*/{ 1495 s//\1/ 1496 q 1497 } 1498 s/.*/./; q'` 1499 srcdir=$ac_confdir 1500 if test ! -r "$srcdir/$ac_unique_file"; then 1501 srcdir=.. 1502 fi 1503 else 1504 ac_srcdir_defaulted=no 1505 fi 1506 if test ! -r "$srcdir/$ac_unique_file"; then 1507 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1508 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1509 fi 1510 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1511 ac_abs_confdir=`( 1512 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1513 pwd)` 1514 # When building in place, set srcdir=. 1515 if test "$ac_abs_confdir" = "$ac_pwd"; then 1516 srcdir=. 1517 fi 1518 # Remove unnecessary trailing slashes from srcdir. 1519 # Double slashes in file names in object file debugging info 1520 # mess up M-x gdb in Emacs. 1521 case $srcdir in 1522 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1523 esac 1524 for ac_var in $ac_precious_vars; do 1525 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1526 eval ac_env_${ac_var}_value=\$${ac_var} 1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1528 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1529 done 1530 1531 # 1532 # Report the --help message. 1533 # 1534 if test "$ac_init_help" = "long"; then 1535 # Omit some internal or obsolete options to make the list less imposing. 1536 # This message is too long to be a string in the A/UX 3.1 sh. 1537 cat <<_ACEOF 1538 \`configure' configures Heimdal 1.5.2 to adapt to many kinds of systems. 1539 1540 Usage: $0 [OPTION]... [VAR=VALUE]... 1541 1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1543 VAR=VALUE. See below for descriptions of some of the useful variables. 1544 1545 Defaults for the options are specified in brackets. 1546 1547 Configuration: 1548 -h, --help display this help and exit 1549 --help=short display options specific to this package 1550 --help=recursive display the short help of all the included packages 1551 -V, --version display version information and exit 1552 -q, --quiet, --silent do not print \`checking...' messages 1553 --cache-file=FILE cache test results in FILE [disabled] 1554 -C, --config-cache alias for \`--cache-file=config.cache' 1555 -n, --no-create do not create output files 1556 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1557 1558 Installation directories: 1559 --prefix=PREFIX install architecture-independent files in PREFIX 1560 [$ac_default_prefix] 1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1562 [PREFIX] 1563 1564 By default, \`make install' will install all the files in 1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1567 for instance \`--prefix=\$HOME'. 1568 1569 For better control, use the options below. 1570 1571 Fine tuning of the installation directories: 1572 --bindir=DIR user executables [EPREFIX/bin] 1573 --sbindir=DIR system admin executables [EPREFIX/sbin] 1574 --libexecdir=DIR program executables [EPREFIX/libexec] 1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1578 --libdir=DIR object code libraries [EPREFIX/lib] 1579 --includedir=DIR C header files [PREFIX/include] 1580 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1583 --infodir=DIR info documentation [DATAROOTDIR/info] 1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1585 --mandir=DIR man documentation [DATAROOTDIR/man] 1586 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal] 1587 --htmldir=DIR html documentation [DOCDIR] 1588 --dvidir=DIR dvi documentation [DOCDIR] 1589 --pdfdir=DIR pdf documentation [DOCDIR] 1590 --psdir=DIR ps documentation [DOCDIR] 1591 _ACEOF 1592 1593 cat <<\_ACEOF 1594 1595 Program names: 1596 --program-prefix=PREFIX prepend PREFIX to installed program names 1597 --program-suffix=SUFFIX append SUFFIX to installed program names 1598 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1599 1600 X features: 1601 --x-includes=DIR X include files are in DIR 1602 --x-libraries=DIR X library files are in DIR 1603 1604 System types: 1605 --build=BUILD configure for building on BUILD [guessed] 1606 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1607 _ACEOF 1608 fi 1609 1610 if test -n "$ac_init_help"; then 1611 case $ac_init_help in 1612 short | recursive ) echo "Configuration of Heimdal 1.5.2:";; 1613 esac 1614 cat <<\_ACEOF 1615 1616 Optional Features: 1617 --disable-option-checking ignore unrecognized --enable/--with options 1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1620 --enable-maintainer-mode enable make rules and dependencies not useful 1621 (and sometimes confusing) to the casual installer 1622 --disable-dependency-tracking speeds up one-time build 1623 --enable-dependency-tracking do not reject slow dependency extractors 1624 --enable-shared[=PKGS] build shared libraries [default=yes] 1625 --enable-static[=PKGS] build static libraries [default=yes] 1626 --enable-fast-install[=PKGS] 1627 optimize for fast installation [default=yes] 1628 --disable-libtool-lock avoid locking (might break parallel builds) 1629 --disable-largefile omit support for large files 1630 --disable-dynamic-afs do not use loaded AFS library with AIX 1631 --enable-hdb-openldap-module 1632 if you want support to build openldap hdb as shared 1633 object 1634 --disable-pk-init if you want disable to PK-INIT support 1635 --disable-digest if you want disable to DIGEST support 1636 --disable-kx509 if you want disable to kx509 support 1637 --disable-sqlite-cache if you want support for cache in sqlite 1638 --enable-pthread-support 1639 if you want thread safe libraries 1640 --enable-dce if you want support for DCE/DFS PAG's 1641 --disable-afs-support if you don't want support for AFS 1642 --disable-ndbm-db if you don't want ndbm db 1643 --enable-developer enable developer warnings 1644 --enable-socket-wrapper use sambas socket-wrapper for testing 1645 --disable-otp if you don't want OTP support 1646 --enable-osfc2 enable some OSF C2 support 1647 --disable-mmap disable use of mmap 1648 --disable-afs-string-to-key 1649 disable use of weak AFS string-to-key functions 1650 --enable-bigendian the target is big endian 1651 --enable-littleendian the target is little endian 1652 --enable-kcm enable Kerberos Credentials Manager 1653 --disable-heimdal-documentation 1654 if you want disable to heimdal documentation 1655 1656 Optional Packages: 1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1659 --with-pic try to use only PIC/non-PIC objects [default=use 1660 both] 1661 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1662 --with-sysroot=DIR Search for dependent libraries within DIR 1663 (or the compiler's sysroot if not specified). 1664 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1665 --with-cross-tools=dir use cross tools in dir 1666 --with-openldap=dir use openldap in dir 1667 --with-openldap-lib=dir use openldap libraries in dir 1668 --with-openldap-include=dir 1669 use openldap headers in dir 1670 --with-openldap-config=path 1671 config program for openldap 1672 --with-capng use libcap-ng to drop KDC privileges [default=check] 1673 --with-sqlite3=dir use sqlite3 in dir 1674 --with-sqlite3-lib=dir use sqlite3 libraries in dir 1675 --with-sqlite3-include=dir 1676 use sqlite3 headers in dir 1677 --with-sqlite3-config=path 1678 config program for sqlite3 1679 --with-libintl=dir use libintl in dir 1680 --with-libintl-lib=dir use libintl libraries in dir 1681 --with-libintl-include=dir 1682 use libintl headers in dir 1683 --with-libintl-config=path 1684 config program for libintl 1685 --with-hdbdir Default location for KDC database 1686 [default=/var/heimdal] 1687 --with-openssl=dir use openssl in dir 1688 --with-openssl-lib=dir use openssl libraries in dir 1689 --with-openssl-include=dir 1690 use openssl headers in dir 1691 --with-berkeley-db enable support for berkeley db [default=check] 1692 --with-berkeley-db-include=dir 1693 use berkeley-db headers in dir 1694 --without-ipv6 do not enable IPv6 support 1695 --with-readline=dir use readline in dir 1696 --with-readline-lib=dir use readline libraries in dir 1697 --with-readline-include=dir 1698 use readline headers in dir 1699 --with-readline-config=path 1700 config program for readline 1701 --with-libedit=dir use libedit in dir 1702 --with-libedit-lib=dir use libedit libraries in dir 1703 --with-libedit-include=dir 1704 use libedit headers in dir 1705 --with-libedit-config=path 1706 config program for libedit 1707 --with-hesiod=dir use hesiod in dir 1708 --with-hesiod-lib=dir use hesiod libraries in dir 1709 --with-hesiod-include=dir 1710 use hesiod headers in dir 1711 --with-hesiod-config=path 1712 config program for hesiod 1713 --with-x use the X Window System 1714 1715 Some influential environment variables: 1716 CC C compiler command 1717 CFLAGS C compiler flags 1718 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1719 nonstandard directory <lib dir> 1720 LIBS libraries to pass to the linker, e.g. -l<library> 1721 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1722 you have headers in a nonstandard directory <include dir> 1723 CPP C preprocessor 1724 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1725 the first program found out of: `bison -y', `byacc', `yacc'. 1726 YFLAGS The list of arguments that will be passed by default to $YACC. 1727 This script will default YFLAGS to the empty string to avoid a 1728 default value of `-d' given by some make applications. 1729 PKG_CONFIG path to pkg-config utility 1730 CAPNG_CFLAGS 1731 C compiler flags for CAPNG, overriding pkg-config 1732 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config 1733 XMKMF Path to xmkmf, Makefile generator for X Window System 1734 1735 Use these variables to override the choices made by `configure' or to help 1736 it to find libraries and programs with nonstandard names/locations. 1737 1738 Report bugs to <heimdal-bugs@h5l.org>. 1739 _ACEOF 1740 ac_status=$? 1741 fi 1742 1743 if test "$ac_init_help" = "recursive"; then 1744 # If there are subdirs, report their specific --help. 1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1746 test -d "$ac_dir" || 1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1748 continue 1749 ac_builddir=. 1750 1751 case "$ac_dir" in 1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1753 *) 1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1755 # A ".." for each directory in $ac_dir_suffix. 1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1757 case $ac_top_builddir_sub in 1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1760 esac ;; 1761 esac 1762 ac_abs_top_builddir=$ac_pwd 1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1764 # for backward compatibility: 1765 ac_top_builddir=$ac_top_build_prefix 1766 1767 case $srcdir in 1768 .) # We are building in place. 1769 ac_srcdir=. 1770 ac_top_srcdir=$ac_top_builddir_sub 1771 ac_abs_top_srcdir=$ac_pwd ;; 1772 [\\/]* | ?:[\\/]* ) # Absolute name. 1773 ac_srcdir=$srcdir$ac_dir_suffix; 1774 ac_top_srcdir=$srcdir 1775 ac_abs_top_srcdir=$srcdir ;; 1776 *) # Relative name. 1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1778 ac_top_srcdir=$ac_top_build_prefix$srcdir 1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1780 esac 1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1782 1783 cd "$ac_dir" || { ac_status=$?; continue; } 1784 # Check for guested configure. 1785 if test -f "$ac_srcdir/configure.gnu"; then 1786 echo && 1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1788 elif test -f "$ac_srcdir/configure"; then 1789 echo && 1790 $SHELL "$ac_srcdir/configure" --help=recursive 1791 else 1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1793 fi || ac_status=$? 1794 cd "$ac_pwd" || { ac_status=$?; break; } 1795 done 1796 fi 1797 1798 test -n "$ac_init_help" && exit $ac_status 1799 if $ac_init_version; then 1800 cat <<\_ACEOF 1801 Heimdal configure 1.5.2 1802 generated by GNU Autoconf 2.65 1803 1804 Copyright (C) 2009 Free Software Foundation, Inc. 1805 This configure script is free software; the Free Software Foundation 1806 gives unlimited permission to copy, distribute and modify it. 1807 _ACEOF 1808 exit 1809 fi 1810 1811 ## ------------------------ ## 1812 ## Autoconf initialization. ## 1813 ## ------------------------ ## 1814 1815 # ac_fn_c_try_compile LINENO 1816 # -------------------------- 1817 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1818 ac_fn_c_try_compile () 1819 { 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 rm -f conftest.$ac_objext 1822 if { { ac_try="$ac_compile" 1823 case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826 esac 1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828 $as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_compile") 2>conftest.err 1830 ac_status=$? 1831 if test -s conftest.err; then 1832 grep -v '^ *+' conftest.err >conftest.er1 1833 cat conftest.er1 >&5 1834 mv -f conftest.er1 conftest.err 1835 fi 1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; } && { 1838 test -z "$ac_c_werror_flag" || 1839 test ! -s conftest.err 1840 } && test -s conftest.$ac_objext; then : 1841 ac_retval=0 1842 else 1843 $as_echo "$as_me: failed program was:" >&5 1844 sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847 fi 1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1849 as_fn_set_status $ac_retval 1850 1851 } # ac_fn_c_try_compile 1852 1853 # ac_fn_c_try_cpp LINENO 1854 # ---------------------- 1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1856 ac_fn_c_try_cpp () 1857 { 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 if { { ac_try="$ac_cpp conftest.$ac_ext" 1860 case "(($ac_try" in 1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1862 *) ac_try_echo=$ac_try;; 1863 esac 1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1865 $as_echo "$ac_try_echo"; } >&5 1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1867 ac_status=$? 1868 if test -s conftest.err; then 1869 grep -v '^ *+' conftest.err >conftest.er1 1870 cat conftest.er1 >&5 1871 mv -f conftest.er1 conftest.err 1872 fi 1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1874 test $ac_status = 0; } >/dev/null && { 1875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1876 test ! -s conftest.err 1877 }; then : 1878 ac_retval=0 1879 else 1880 $as_echo "$as_me: failed program was:" >&5 1881 sed 's/^/| /' conftest.$ac_ext >&5 1882 1883 ac_retval=1 1884 fi 1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1886 as_fn_set_status $ac_retval 1887 1888 } # ac_fn_c_try_cpp 1889 1890 # ac_fn_c_try_link LINENO 1891 # ----------------------- 1892 # Try to link conftest.$ac_ext, and return whether this succeeded. 1893 ac_fn_c_try_link () 1894 { 1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896 rm -f conftest.$ac_objext conftest$ac_exeext 1897 if { { ac_try="$ac_link" 1898 case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901 esac 1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903 $as_echo "$ac_try_echo"; } >&5 1904 (eval "$ac_link") 2>conftest.err 1905 ac_status=$? 1906 if test -s conftest.err; then 1907 grep -v '^ *+' conftest.err >conftest.er1 1908 cat conftest.er1 >&5 1909 mv -f conftest.er1 conftest.err 1910 fi 1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; } && { 1913 test -z "$ac_c_werror_flag" || 1914 test ! -s conftest.err 1915 } && test -s conftest$ac_exeext && { 1916 test "$cross_compiling" = yes || 1917 $as_test_x conftest$ac_exeext 1918 }; then : 1919 ac_retval=0 1920 else 1921 $as_echo "$as_me: failed program was:" >&5 1922 sed 's/^/| /' conftest.$ac_ext >&5 1923 1924 ac_retval=1 1925 fi 1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1928 # interfere with the next link command; also delete a directory that is 1929 # left behind by Apple's compiler. We do this before executing the actions. 1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1932 as_fn_set_status $ac_retval 1933 1934 } # ac_fn_c_try_link 1935 1936 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1937 # ------------------------------------------------------- 1938 # Tests whether HEADER exists and can be compiled using the include files in 1939 # INCLUDES, setting the cache variable VAR accordingly. 1940 ac_fn_c_check_header_compile () 1941 { 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1944 $as_echo_n "checking for $2... " >&6; } 1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1946 $as_echo_n "(cached) " >&6 1947 else 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949 /* end confdefs.h. */ 1950 $4 1951 #include <$2> 1952 _ACEOF 1953 if ac_fn_c_try_compile "$LINENO"; then : 1954 eval "$3=yes" 1955 else 1956 eval "$3=no" 1957 fi 1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1959 fi 1960 eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962 $as_echo "$ac_res" >&6; } 1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1964 1965 } # ac_fn_c_check_header_compile 1966 1967 # ac_fn_c_try_run LINENO 1968 # ---------------------- 1969 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1970 # that executables *can* be run. 1971 ac_fn_c_try_run () 1972 { 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 if { { ac_try="$ac_link" 1975 case "(($ac_try" in 1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1977 *) ac_try_echo=$ac_try;; 1978 esac 1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1980 $as_echo "$ac_try_echo"; } >&5 1981 (eval "$ac_link") 2>&5 1982 ac_status=$? 1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1984 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1985 { { case "(($ac_try" in 1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1987 *) ac_try_echo=$ac_try;; 1988 esac 1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1990 $as_echo "$ac_try_echo"; } >&5 1991 (eval "$ac_try") 2>&5 1992 ac_status=$? 1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1994 test $ac_status = 0; }; }; then : 1995 ac_retval=0 1996 else 1997 $as_echo "$as_me: program exited with status $ac_status" >&5 1998 $as_echo "$as_me: failed program was:" >&5 1999 sed 's/^/| /' conftest.$ac_ext >&5 2000 2001 ac_retval=$ac_status 2002 fi 2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2005 as_fn_set_status $ac_retval 2006 2007 } # ac_fn_c_try_run 2008 2009 # ac_fn_c_check_func LINENO FUNC VAR 2010 # ---------------------------------- 2011 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2012 ac_fn_c_check_func () 2013 { 2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2016 $as_echo_n "checking for $2... " >&6; } 2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2018 $as_echo_n "(cached) " >&6 2019 else 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2021 /* end confdefs.h. */ 2022 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2023 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2024 #define $2 innocuous_$2 2025 2026 /* System header to define __stub macros and hopefully few prototypes, 2027 which can conflict with char $2 (); below. 2028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2029 <limits.h> exists even on freestanding compilers. */ 2030 2031 #ifdef __STDC__ 2032 # include <limits.h> 2033 #else 2034 # include <assert.h> 2035 #endif 2036 2037 #undef $2 2038 2039 /* Override any GCC internal prototype to avoid an error. 2040 Use char because int might match the return type of a GCC 2041 builtin and then its argument prototype would still apply. */ 2042 #ifdef __cplusplus 2043 extern "C" 2044 #endif 2045 char $2 (); 2046 /* The GNU C library defines this for functions which it implements 2047 to always fail with ENOSYS. Some functions are actually named 2048 something starting with __ and the normal name is an alias. */ 2049 #if defined __stub_$2 || defined __stub___$2 2050 choke me 2051 #endif 2052 2053 int 2054 main () 2055 { 2056 return $2 (); 2057 ; 2058 return 0; 2059 } 2060 _ACEOF 2061 if ac_fn_c_try_link "$LINENO"; then : 2062 eval "$3=yes" 2063 else 2064 eval "$3=no" 2065 fi 2066 rm -f core conftest.err conftest.$ac_objext \ 2067 conftest$ac_exeext conftest.$ac_ext 2068 fi 2069 eval ac_res=\$$3 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2071 $as_echo "$ac_res" >&6; } 2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2073 2074 } # ac_fn_c_check_func 2075 2076 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2077 # ------------------------------------------------------- 2078 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2079 # the include files in INCLUDES and setting the cache variable VAR 2080 # accordingly. 2081 ac_fn_c_check_header_mongrel () 2082 { 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2086 $as_echo_n "checking for $2... " >&6; } 2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2088 $as_echo_n "(cached) " >&6 2089 fi 2090 eval ac_res=\$$3 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2092 $as_echo "$ac_res" >&6; } 2093 else 2094 # Is the header compilable? 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2096 $as_echo_n "checking $2 usability... " >&6; } 2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2098 /* end confdefs.h. */ 2099 $4 2100 #include <$2> 2101 _ACEOF 2102 if ac_fn_c_try_compile "$LINENO"; then : 2103 ac_header_compiler=yes 2104 else 2105 ac_header_compiler=no 2106 fi 2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2109 $as_echo "$ac_header_compiler" >&6; } 2110 2111 # Is the header present? 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2113 $as_echo_n "checking $2 presence... " >&6; } 2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2115 /* end confdefs.h. */ 2116 #include <$2> 2117 _ACEOF 2118 if ac_fn_c_try_cpp "$LINENO"; then : 2119 ac_header_preproc=yes 2120 else 2121 ac_header_preproc=no 2122 fi 2123 rm -f conftest.err conftest.$ac_ext 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2125 $as_echo "$ac_header_preproc" >&6; } 2126 2127 # So? What about this header? 2128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2129 yes:no: ) 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2131 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2133 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2134 ;; 2135 no:yes:* ) 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2137 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2139 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2141 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2143 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2146 ( cat <<\_ASBOX 2147 ## ----------------------------------- ## 2148 ## Report this to heimdal-bugs@h5l.org ## 2149 ## ----------------------------------- ## 2150 _ASBOX 2151 ) | sed "s/^/$as_me: WARNING: /" >&2 2152 ;; 2153 esac 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155 $as_echo_n "checking for $2... " >&6; } 2156 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2157 $as_echo_n "(cached) " >&6 2158 else 2159 eval "$3=\$ac_header_compiler" 2160 fi 2161 eval ac_res=\$$3 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2163 $as_echo "$ac_res" >&6; } 2164 fi 2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2166 2167 } # ac_fn_c_check_header_mongrel 2168 2169 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2170 # ------------------------------------------- 2171 # Tests whether TYPE exists after having included INCLUDES, setting cache 2172 # variable VAR accordingly. 2173 ac_fn_c_check_type () 2174 { 2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2177 $as_echo_n "checking for $2... " >&6; } 2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2179 $as_echo_n "(cached) " >&6 2180 else 2181 eval "$3=no" 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2183 /* end confdefs.h. */ 2184 $4 2185 int 2186 main () 2187 { 2188 if (sizeof ($2)) 2189 return 0; 2190 ; 2191 return 0; 2192 } 2193 _ACEOF 2194 if ac_fn_c_try_compile "$LINENO"; then : 2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2196 /* end confdefs.h. */ 2197 $4 2198 int 2199 main () 2200 { 2201 if (sizeof (($2))) 2202 return 0; 2203 ; 2204 return 0; 2205 } 2206 _ACEOF 2207 if ac_fn_c_try_compile "$LINENO"; then : 2208 2209 else 2210 eval "$3=yes" 2211 fi 2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2213 fi 2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215 fi 2216 eval ac_res=\$$3 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2218 $as_echo "$ac_res" >&6; } 2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2220 2221 } # ac_fn_c_check_type 2222 2223 # ac_fn_c_check_header_preproc LINENO HEADER VAR 2224 # ---------------------------------------------- 2225 # Tests whether HEADER is present, setting the cache variable VAR accordingly. 2226 ac_fn_c_check_header_preproc () 2227 { 2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2230 $as_echo_n "checking for $2... " >&6; } 2231 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2232 $as_echo_n "(cached) " >&6 2233 else 2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2235 /* end confdefs.h. */ 2236 #include <$2> 2237 _ACEOF 2238 if ac_fn_c_try_cpp "$LINENO"; then : 2239 eval "$3=yes" 2240 else 2241 eval "$3=no" 2242 fi 2243 rm -f conftest.err conftest.$ac_ext 2244 fi 2245 eval ac_res=\$$3 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2247 $as_echo "$ac_res" >&6; } 2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2249 2250 } # ac_fn_c_check_header_preproc 2251 cat >config.log <<_ACEOF 2252 This file contains any messages produced by compilers while 2253 running configure, to aid debugging if configure makes a mistake. 2254 2255 It was created by Heimdal $as_me 1.5.2, which was 2256 generated by GNU Autoconf 2.65. Invocation command line was 2257 2258 $ $0 $@ 2259 2260 _ACEOF 2261 exec 5>>config.log 2262 { 2263 cat <<_ASUNAME 2264 ## --------- ## 2265 ## Platform. ## 2266 ## --------- ## 2267 2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2269 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2270 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2271 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2272 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2273 2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2276 2277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2280 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2284 2285 _ASUNAME 2286 2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288 for as_dir in $PATH 2289 do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 $as_echo "PATH: $as_dir" 2293 done 2294 IFS=$as_save_IFS 2295 2296 } >&5 2297 2298 cat >&5 <<_ACEOF 2299 2300 2301 ## ----------- ## 2302 ## Core tests. ## 2303 ## ----------- ## 2304 2305 _ACEOF 2306 2307 2308 # Keep a trace of the command line. 2309 # Strip out --no-create and --no-recursion so they do not pile up. 2310 # Strip out --silent because we don't want to record it for future runs. 2311 # Also quote any args containing shell meta-characters. 2312 # Make two passes to allow for proper duplicate-argument suppression. 2313 ac_configure_args= 2314 ac_configure_args0= 2315 ac_configure_args1= 2316 ac_must_keep_next=false 2317 for ac_pass in 1 2 2318 do 2319 for ac_arg 2320 do 2321 case $ac_arg in 2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2324 | -silent | --silent | --silen | --sile | --sil) 2325 continue ;; 2326 *\'*) 2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2328 esac 2329 case $ac_pass in 2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2331 2) 2332 as_fn_append ac_configure_args1 " '$ac_arg'" 2333 if test $ac_must_keep_next = true; then 2334 ac_must_keep_next=false # Got value, back to normal. 2335 else 2336 case $ac_arg in 2337 *=* | --config-cache | -C | -disable-* | --disable-* \ 2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2340 | -with-* | --with-* | -without-* | --without-* | --x) 2341 case "$ac_configure_args0 " in 2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2343 esac 2344 ;; 2345 -* ) ac_must_keep_next=true ;; 2346 esac 2347 fi 2348 as_fn_append ac_configure_args " '$ac_arg'" 2349 ;; 2350 esac 2351 done 2352 done 2353 { ac_configure_args0=; unset ac_configure_args0;} 2354 { ac_configure_args1=; unset ac_configure_args1;} 2355 2356 # When interrupted or exit'd, cleanup temporary files, and complete 2357 # config.log. We remove comments because anyway the quotes in there 2358 # would cause problems or look ugly. 2359 # WARNING: Use '\'' to represent an apostrophe within the trap. 2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2361 trap 'exit_status=$? 2362 # Save into config.log some information that might help in debugging. 2363 { 2364 echo 2365 2366 cat <<\_ASBOX 2367 ## ---------------- ## 2368 ## Cache variables. ## 2369 ## ---------------- ## 2370 _ASBOX 2371 echo 2372 # The following way of writing the cache mishandles newlines in values, 2373 ( 2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in #( 2377 *${as_nl}*) 2378 case $ac_var in #( 2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2381 esac 2382 case $ac_var in #( 2383 _ | IFS | as_nl) ;; #( 2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2385 *) { eval $ac_var=; unset $ac_var;} ;; 2386 esac ;; 2387 esac 2388 done 2389 (set) 2>&1 | 2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2391 *${as_nl}ac_space=\ *) 2392 sed -n \ 2393 "s/'\''/'\''\\\\'\'''\''/g; 2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2395 ;; #( 2396 *) 2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2398 ;; 2399 esac | 2400 sort 2401 ) 2402 echo 2403 2404 cat <<\_ASBOX 2405 ## ----------------- ## 2406 ## Output variables. ## 2407 ## ----------------- ## 2408 _ASBOX 2409 echo 2410 for ac_var in $ac_subst_vars 2411 do 2412 eval ac_val=\$$ac_var 2413 case $ac_val in 2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2415 esac 2416 $as_echo "$ac_var='\''$ac_val'\''" 2417 done | sort 2418 echo 2419 2420 if test -n "$ac_subst_files"; then 2421 cat <<\_ASBOX 2422 ## ------------------- ## 2423 ## File substitutions. ## 2424 ## ------------------- ## 2425 _ASBOX 2426 echo 2427 for ac_var in $ac_subst_files 2428 do 2429 eval ac_val=\$$ac_var 2430 case $ac_val in 2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2432 esac 2433 $as_echo "$ac_var='\''$ac_val'\''" 2434 done | sort 2435 echo 2436 fi 2437 2438 if test -s confdefs.h; then 2439 cat <<\_ASBOX 2440 ## ----------- ## 2441 ## confdefs.h. ## 2442 ## ----------- ## 2443 _ASBOX 2444 echo 2445 cat confdefs.h 2446 echo 2447 fi 2448 test "$ac_signal" != 0 && 2449 $as_echo "$as_me: caught signal $ac_signal" 2450 $as_echo "$as_me: exit $exit_status" 2451 } >&5 2452 rm -f core *.core core.conftest.* && 2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2454 exit $exit_status 2455 ' 0 2456 for ac_signal in 1 2 13 15; do 2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2458 done 2459 ac_signal=0 2460 2461 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2462 rm -f -r conftest* confdefs.h 2463 2464 $as_echo "/* confdefs.h */" > confdefs.h 2465 2466 # Predefined preprocessor variables. 2467 2468 cat >>confdefs.h <<_ACEOF 2469 #define PACKAGE_NAME "$PACKAGE_NAME" 2470 _ACEOF 2471 2472 cat >>confdefs.h <<_ACEOF 2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2474 _ACEOF 2475 2476 cat >>confdefs.h <<_ACEOF 2477 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2478 _ACEOF 2479 2480 cat >>confdefs.h <<_ACEOF 2481 #define PACKAGE_STRING "$PACKAGE_STRING" 2482 _ACEOF 2483 2484 cat >>confdefs.h <<_ACEOF 2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2486 _ACEOF 2487 2488 cat >>confdefs.h <<_ACEOF 2489 #define PACKAGE_URL "$PACKAGE_URL" 2490 _ACEOF 2491 2492 2493 # Let the site file select an alternate cache file if it wants to. 2494 # Prefer an explicitly selected file to automatically selected ones. 2495 ac_site_file1=NONE 2496 ac_site_file2=NONE 2497 if test -n "$CONFIG_SITE"; then 2498 ac_site_file1=$CONFIG_SITE 2499 elif test "x$prefix" != xNONE; then 2500 ac_site_file1=$prefix/share/config.site 2501 ac_site_file2=$prefix/etc/config.site 2502 else 2503 ac_site_file1=$ac_default_prefix/share/config.site 2504 ac_site_file2=$ac_default_prefix/etc/config.site 2505 fi 2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2507 do 2508 test "x$ac_site_file" = xNONE && continue 2509 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2512 sed 's/^/| /' "$ac_site_file" >&5 2513 . "$ac_site_file" 2514 fi 2515 done 2516 2517 if test -r "$cache_file"; then 2518 # Some versions of bash will fail to source /dev/null (special files 2519 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2520 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2522 $as_echo "$as_me: loading cache $cache_file" >&6;} 2523 case $cache_file in 2524 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2525 *) . "./$cache_file";; 2526 esac 2527 fi 2528 else 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2530 $as_echo "$as_me: creating cache $cache_file" >&6;} 2531 >$cache_file 2532 fi 2533 2534 as_fn_append ac_header_list " stdlib.h" 2535 as_fn_append ac_header_list " unistd.h" 2536 as_fn_append ac_header_list " sys/param.h" 2537 # Check that the precious variables saved in the cache have kept the same 2538 # value. 2539 ac_cache_corrupted=false 2540 for ac_var in $ac_precious_vars; do 2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2542 eval ac_new_set=\$ac_env_${ac_var}_set 2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2544 eval ac_new_val=\$ac_env_${ac_var}_value 2545 case $ac_old_set,$ac_new_set in 2546 set,) 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2549 ac_cache_corrupted=: ;; 2550 ,set) 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2553 ac_cache_corrupted=: ;; 2554 ,);; 2555 *) 2556 if test "x$ac_old_val" != "x$ac_new_val"; then 2557 # differences in whitespace do not lead to failure. 2558 ac_old_val_w=`echo x $ac_old_val` 2559 ac_new_val_w=`echo x $ac_new_val` 2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2563 ac_cache_corrupted=: 2564 else 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2567 eval $ac_var=\$ac_old_val 2568 fi 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2573 fi;; 2574 esac 2575 # Pass precious variables to config.status. 2576 if test "$ac_new_set" = set; then 2577 case $ac_new_val in 2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2579 *) ac_arg=$ac_var=$ac_new_val ;; 2580 esac 2581 case " $ac_configure_args " in 2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2584 esac 2585 fi 2586 done 2587 if $ac_cache_corrupted; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2593 fi 2594 ## -------------------- ## 2595 ## Main body of script. ## 2596 ## -------------------- ## 2597 2598 ac_ext=c 2599 ac_cpp='$CPP $CPPFLAGS' 2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2603 2604 2605 2606 ac_config_headers="$ac_config_headers include/config.h" 2607 2608 2609 2610 am__api_version='1.11' 2611 2612 ac_aux_dir= 2613 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2614 for ac_t in install-sh install.sh shtool; do 2615 if test -f "$ac_dir/$ac_t"; then 2616 ac_aux_dir=$ac_dir 2617 ac_install_sh="$ac_aux_dir/$ac_t -c" 2618 break 2 2619 fi 2620 done 2621 done 2622 if test -z "$ac_aux_dir"; then 2623 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2624 fi 2625 2626 # These three variables are undocumented and unsupported, 2627 # and are intended to be withdrawn in a future Autoconf release. 2628 # They can cause serious problems if a builder's source tree is in a directory 2629 # whose full name contains unusual characters. 2630 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2631 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2632 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2633 2634 2635 # Find a good install program. We prefer a C program (faster), 2636 # so one script is as good as another. But avoid the broken or 2637 # incompatible versions: 2638 # SysV /etc/install, /usr/sbin/install 2639 # SunOS /usr/etc/install 2640 # IRIX /sbin/install 2641 # AIX /bin/install 2642 # AmigaOS /C/install, which installs bootblocks on floppy discs 2643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2646 # OS/2's system install, which has a completely different semantic 2647 # ./install, which can be erroneously created by make from ./install.sh. 2648 # Reject install programs that cannot install multiple files. 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2650 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2651 if test -z "$INSTALL"; then 2652 if test "${ac_cv_path_install+set}" = set; then : 2653 $as_echo_n "(cached) " >&6 2654 else 2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656 for as_dir in $PATH 2657 do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 # Account for people who put trailing slashes in PATH elements. 2661 case $as_dir/ in #(( 2662 ./ | .// | /[cC]/* | \ 2663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2664 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2665 /usr/ucb/* ) ;; 2666 *) 2667 # OSF1 and SCO ODT 3.0 have their own names for install. 2668 # Don't use installbsd from OSF since it installs stuff as root 2669 # by default. 2670 for ac_prog in ginstall scoinst install; do 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2673 if test $ac_prog = install && 2674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2675 # AIX install. It has an incompatible calling convention. 2676 : 2677 elif test $ac_prog = install && 2678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2679 # program-specific install script used by HP pwplus--don't use. 2680 : 2681 else 2682 rm -rf conftest.one conftest.two conftest.dir 2683 echo one > conftest.one 2684 echo two > conftest.two 2685 mkdir conftest.dir 2686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2687 test -s conftest.one && test -s conftest.two && 2688 test -s conftest.dir/conftest.one && 2689 test -s conftest.dir/conftest.two 2690 then 2691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2692 break 3 2693 fi 2694 fi 2695 fi 2696 done 2697 done 2698 ;; 2699 esac 2700 2701 done 2702 IFS=$as_save_IFS 2703 2704 rm -rf conftest.one conftest.two conftest.dir 2705 2706 fi 2707 if test "${ac_cv_path_install+set}" = set; then 2708 INSTALL=$ac_cv_path_install 2709 else 2710 # As a last resort, use the slow shell script. Don't cache a 2711 # value for INSTALL within a source directory, because that will 2712 # break other packages using the cache if that directory is 2713 # removed, or if the value is a relative name. 2714 INSTALL=$ac_install_sh 2715 fi 2716 fi 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2718 $as_echo "$INSTALL" >&6; } 2719 2720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2721 # It thinks the first close brace ends the variable substitution. 2722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2723 2724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2725 2726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2727 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2729 $as_echo_n "checking whether build environment is sane... " >&6; } 2730 # Just in case 2731 sleep 1 2732 echo timestamp > conftest.file 2733 # Reject unsafe characters in $srcdir or the absolute working directory 2734 # name. Accept space and tab only in the latter. 2735 am_lf=' 2736 ' 2737 case `pwd` in 2738 *[\\\"\#\$\&\'\`$am_lf]*) 2739 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2740 esac 2741 case $srcdir in 2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2743 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2744 esac 2745 2746 # Do `set' in a subshell so we don't clobber the current shell's 2747 # arguments. Must try -L first in case configure is actually a 2748 # symlink; some systems play weird games with the mod time of symlinks 2749 # (eg FreeBSD returns the mod time of the symlink's containing 2750 # directory). 2751 if ( 2752 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2753 if test "$*" = "X"; then 2754 # -L didn't work. 2755 set X `ls -t "$srcdir/configure" conftest.file` 2756 fi 2757 rm -f conftest.file 2758 if test "$*" != "X $srcdir/configure conftest.file" \ 2759 && test "$*" != "X conftest.file $srcdir/configure"; then 2760 2761 # If neither matched, then we have a broken ls. This can happen 2762 # if, for instance, CONFIG_SHELL is bash and it inherits a 2763 # broken ls alias from the environment. This has actually 2764 # happened. Such a system could not be considered "sane". 2765 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2766 alias in your environment" "$LINENO" 5 2767 fi 2768 2769 test "$2" = conftest.file 2770 ) 2771 then 2772 # Ok. 2773 : 2774 else 2775 as_fn_error "newly created file is older than distributed files! 2776 Check your system clock" "$LINENO" 5 2777 fi 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779 $as_echo "yes" >&6; } 2780 test "$program_prefix" != NONE && 2781 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2782 # Use a double $ so make ignores it. 2783 test "$program_suffix" != NONE && 2784 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2785 # Double any \ or $. 2786 # By default was `s,x,x', remove it if useless. 2787 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2788 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2789 2790 # expand $ac_aux_dir to an absolute path 2791 am_aux_dir=`cd $ac_aux_dir && pwd` 2792 2793 if test x"${MISSING+set}" != xset; then 2794 case $am_aux_dir in 2795 *\ * | *\ *) 2796 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2797 *) 2798 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2799 esac 2800 fi 2801 # Use eval to expand $SHELL 2802 if eval "$MISSING --run true"; then 2803 am_missing_run="$MISSING --run " 2804 else 2805 am_missing_run= 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2807 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2808 fi 2809 2810 if test x"${install_sh}" != xset; then 2811 case $am_aux_dir in 2812 *\ * | *\ *) 2813 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2814 *) 2815 install_sh="\${SHELL} $am_aux_dir/install-sh" 2816 esac 2817 fi 2818 2819 # Installed binaries are usually stripped using `strip' when the user 2820 # run `make install-strip'. However `strip' might not be the right 2821 # tool to use in cross-compilation environments, therefore Automake 2822 # will honor the `STRIP' environment variable to overrule this program. 2823 if test "$cross_compiling" != no; then 2824 if test -n "$ac_tool_prefix"; then 2825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2826 set dummy ${ac_tool_prefix}strip; ac_word=$2 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2828 $as_echo_n "checking for $ac_word... " >&6; } 2829 if test "${ac_cv_prog_STRIP+set}" = set; then : 2830 $as_echo_n "(cached) " >&6 2831 else 2832 if test -n "$STRIP"; then 2833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2834 else 2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836 for as_dir in $PATH 2837 do 2838 IFS=$as_save_IFS 2839 test -z "$as_dir" && as_dir=. 2840 for ac_exec_ext in '' $ac_executable_extensions; do 2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2842 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2844 break 2 2845 fi 2846 done 2847 done 2848 IFS=$as_save_IFS 2849 2850 fi 2851 fi 2852 STRIP=$ac_cv_prog_STRIP 2853 if test -n "$STRIP"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2855 $as_echo "$STRIP" >&6; } 2856 else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858 $as_echo "no" >&6; } 2859 fi 2860 2861 2862 fi 2863 if test -z "$ac_cv_prog_STRIP"; then 2864 ac_ct_STRIP=$STRIP 2865 # Extract the first word of "strip", so it can be a program name with args. 2866 set dummy strip; ac_word=$2 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868 $as_echo_n "checking for $ac_word... " >&6; } 2869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2870 $as_echo_n "(cached) " >&6 2871 else 2872 if test -n "$ac_ct_STRIP"; then 2873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2874 else 2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876 for as_dir in $PATH 2877 do 2878 IFS=$as_save_IFS 2879 test -z "$as_dir" && as_dir=. 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2882 ac_cv_prog_ac_ct_STRIP="strip" 2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886 done 2887 done 2888 IFS=$as_save_IFS 2889 2890 fi 2891 fi 2892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2893 if test -n "$ac_ct_STRIP"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2895 $as_echo "$ac_ct_STRIP" >&6; } 2896 else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898 $as_echo "no" >&6; } 2899 fi 2900 2901 if test "x$ac_ct_STRIP" = x; then 2902 STRIP=":" 2903 else 2904 case $cross_compiling:$ac_tool_warned in 2905 yes:) 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2908 ac_tool_warned=yes ;; 2909 esac 2910 STRIP=$ac_ct_STRIP 2911 fi 2912 else 2913 STRIP="$ac_cv_prog_STRIP" 2914 fi 2915 2916 fi 2917 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2918 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2920 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2921 if test -z "$MKDIR_P"; then 2922 if test "${ac_cv_path_mkdir+set}" = set; then : 2923 $as_echo_n "(cached) " >&6 2924 else 2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2927 do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_prog in mkdir gmkdir; do 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2933 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2934 'mkdir (GNU coreutils) '* | \ 2935 'mkdir (coreutils) '* | \ 2936 'mkdir (fileutils) '4.1*) 2937 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2938 break 3;; 2939 esac 2940 done 2941 done 2942 done 2943 IFS=$as_save_IFS 2944 2945 fi 2946 2947 test -d ./--version && rmdir ./--version 2948 if test "${ac_cv_path_mkdir+set}" = set; then 2949 MKDIR_P="$ac_cv_path_mkdir -p" 2950 else 2951 # As a last resort, use the slow shell script. Don't cache a 2952 # value for MKDIR_P within a source directory, because that will 2953 # break other packages using the cache if that directory is 2954 # removed, or if the value is a relative name. 2955 MKDIR_P="$ac_install_sh -d" 2956 fi 2957 fi 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2959 $as_echo "$MKDIR_P" >&6; } 2960 2961 mkdir_p="$MKDIR_P" 2962 case $mkdir_p in 2963 [\\/$]* | ?:[\\/]*) ;; 2964 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2965 esac 2966 2967 for ac_prog in gawk mawk nawk awk 2968 do 2969 # Extract the first word of "$ac_prog", so it can be a program name with args. 2970 set dummy $ac_prog; ac_word=$2 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972 $as_echo_n "checking for $ac_word... " >&6; } 2973 if test "${ac_cv_prog_AWK+set}" = set; then : 2974 $as_echo_n "(cached) " >&6 2975 else 2976 if test -n "$AWK"; then 2977 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2978 else 2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980 for as_dir in $PATH 2981 do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2986 ac_cv_prog_AWK="$ac_prog" 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2988 break 2 2989 fi 2990 done 2991 done 2992 IFS=$as_save_IFS 2993 2994 fi 2995 fi 2996 AWK=$ac_cv_prog_AWK 2997 if test -n "$AWK"; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2999 $as_echo "$AWK" >&6; } 3000 else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002 $as_echo "no" >&6; } 3003 fi 3004 3005 3006 test -n "$AWK" && break 3007 done 3008 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3011 set x ${MAKE-make} 3012 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3013 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3014 $as_echo_n "(cached) " >&6 3015 else 3016 cat >conftest.make <<\_ACEOF 3017 SHELL = /bin/sh 3018 all: 3019 @echo '@@@%%%=$(MAKE)=@@@%%%' 3020 _ACEOF 3021 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3022 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3023 *@@@%%%=?*=@@@%%%*) 3024 eval ac_cv_prog_make_${ac_make}_set=yes;; 3025 *) 3026 eval ac_cv_prog_make_${ac_make}_set=no;; 3027 esac 3028 rm -f conftest.make 3029 fi 3030 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3032 $as_echo "yes" >&6; } 3033 SET_MAKE= 3034 else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036 $as_echo "no" >&6; } 3037 SET_MAKE="MAKE=${MAKE-make}" 3038 fi 3039 3040 rm -rf .tst 2>/dev/null 3041 mkdir .tst 2>/dev/null 3042 if test -d .tst; then 3043 am__leading_dot=. 3044 else 3045 am__leading_dot=_ 3046 fi 3047 rmdir .tst 2>/dev/null 3048 3049 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3050 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3051 # is not polluted with repeated "-I." 3052 am__isrc=' -I$(srcdir)' 3053 # test to see if srcdir already configured 3054 if test -f $srcdir/config.status; then 3055 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3056 fi 3057 fi 3058 3059 # test whether we have cygpath 3060 if test -z "$CYGPATH_W"; then 3061 if (cygpath --version) >/dev/null 2>/dev/null; then 3062 CYGPATH_W='cygpath -w' 3063 else 3064 CYGPATH_W=echo 3065 fi 3066 fi 3067 3068 3069 # Define the identity of the package. 3070 PACKAGE='heimdal' 3071 VERSION='1.5.2' 3072 3073 3074 cat >>confdefs.h <<_ACEOF 3075 #define PACKAGE "$PACKAGE" 3076 _ACEOF 3077 3078 3079 cat >>confdefs.h <<_ACEOF 3080 #define VERSION "$VERSION" 3081 _ACEOF 3082 3083 # Some tools Automake needs. 3084 3085 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3086 3087 3088 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3089 3090 3091 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3092 3093 3094 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3095 3096 3097 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3098 3099 # We need awk for the "check" target. The system "awk" is bad on 3100 # some platforms. 3101 # Always define AMTAR for backward compatibility. 3102 3103 AMTAR=${AMTAR-"${am_missing_run}tar"} 3104 3105 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3106 3107 3108 3109 3110 3111 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3113 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3114 # Check whether --enable-maintainer-mode was given. 3115 if test "${enable_maintainer_mode+set}" = set; then : 3116 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3117 else 3118 USE_MAINTAINER_MODE=no 3119 fi 3120 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3122 $as_echo "$USE_MAINTAINER_MODE" >&6; } 3123 if test $USE_MAINTAINER_MODE = yes; then 3124 MAINTAINER_MODE_TRUE= 3125 MAINTAINER_MODE_FALSE='#' 3126 else 3127 MAINTAINER_MODE_TRUE='#' 3128 MAINTAINER_MODE_FALSE= 3129 fi 3130 3131 MAINT=$MAINTAINER_MODE_TRUE 3132 3133 3134 3135 ac_ext=c 3136 ac_cpp='$CPP $CPPFLAGS' 3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3140 if test -n "$ac_tool_prefix"; then 3141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3142 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144 $as_echo_n "checking for $ac_word... " >&6; } 3145 if test "${ac_cv_prog_CC+set}" = set; then : 3146 $as_echo_n "(cached) " >&6 3147 else 3148 if test -n "$CC"; then 3149 ac_cv_prog_CC="$CC" # Let the user override the test. 3150 else 3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152 for as_dir in $PATH 3153 do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3158 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162 done 3163 done 3164 IFS=$as_save_IFS 3165 3166 fi 3167 fi 3168 CC=$ac_cv_prog_CC 3169 if test -n "$CC"; then 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3171 $as_echo "$CC" >&6; } 3172 else 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174 $as_echo "no" >&6; } 3175 fi 3176 3177 3178 fi 3179 if test -z "$ac_cv_prog_CC"; then 3180 ac_ct_CC=$CC 3181 # Extract the first word of "gcc", so it can be a program name with args. 3182 set dummy gcc; ac_word=$2 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184 $as_echo_n "checking for $ac_word... " >&6; } 3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3186 $as_echo_n "(cached) " >&6 3187 else 3188 if test -n "$ac_ct_CC"; then 3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3190 else 3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192 for as_dir in $PATH 3193 do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3198 ac_cv_prog_ac_ct_CC="gcc" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202 done 3203 done 3204 IFS=$as_save_IFS 3205 3206 fi 3207 fi 3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3209 if test -n "$ac_ct_CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3211 $as_echo "$ac_ct_CC" >&6; } 3212 else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214 $as_echo "no" >&6; } 3215 fi 3216 3217 if test "x$ac_ct_CC" = x; then 3218 CC="" 3219 else 3220 case $cross_compiling:$ac_tool_warned in 3221 yes:) 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3224 ac_tool_warned=yes ;; 3225 esac 3226 CC=$ac_ct_CC 3227 fi 3228 else 3229 CC="$ac_cv_prog_CC" 3230 fi 3231 3232 if test -z "$CC"; then 3233 if test -n "$ac_tool_prefix"; then 3234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3235 set dummy ${ac_tool_prefix}cc; ac_word=$2 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3237 $as_echo_n "checking for $ac_word... " >&6; } 3238 if test "${ac_cv_prog_CC+set}" = set; then : 3239 $as_echo_n "(cached) " >&6 3240 else 3241 if test -n "$CC"; then 3242 ac_cv_prog_CC="$CC" # Let the user override the test. 3243 else 3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245 for as_dir in $PATH 3246 do 3247 IFS=$as_save_IFS 3248 test -z "$as_dir" && as_dir=. 3249 for ac_exec_ext in '' $ac_executable_extensions; do 3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3251 ac_cv_prog_CC="${ac_tool_prefix}cc" 3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3253 break 2 3254 fi 3255 done 3256 done 3257 IFS=$as_save_IFS 3258 3259 fi 3260 fi 3261 CC=$ac_cv_prog_CC 3262 if test -n "$CC"; then 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3264 $as_echo "$CC" >&6; } 3265 else 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3267 $as_echo "no" >&6; } 3268 fi 3269 3270 3271 fi 3272 fi 3273 if test -z "$CC"; then 3274 # Extract the first word of "cc", so it can be a program name with args. 3275 set dummy cc; ac_word=$2 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3277 $as_echo_n "checking for $ac_word... " >&6; } 3278 if test "${ac_cv_prog_CC+set}" = set; then : 3279 $as_echo_n "(cached) " >&6 3280 else 3281 if test -n "$CC"; then 3282 ac_cv_prog_CC="$CC" # Let the user override the test. 3283 else 3284 ac_prog_rejected=no 3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286 for as_dir in $PATH 3287 do 3288 IFS=$as_save_IFS 3289 test -z "$as_dir" && as_dir=. 3290 for ac_exec_ext in '' $ac_executable_extensions; do 3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3293 ac_prog_rejected=yes 3294 continue 3295 fi 3296 ac_cv_prog_CC="cc" 3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300 done 3301 done 3302 IFS=$as_save_IFS 3303 3304 if test $ac_prog_rejected = yes; then 3305 # We found a bogon in the path, so make sure we never use it. 3306 set dummy $ac_cv_prog_CC 3307 shift 3308 if test $# != 0; then 3309 # We chose a different compiler from the bogus one. 3310 # However, it has the same basename, so the bogon will be chosen 3311 # first if we set CC to just the basename; use the full file name. 3312 shift 3313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3314 fi 3315 fi 3316 fi 3317 fi 3318 CC=$ac_cv_prog_CC 3319 if test -n "$CC"; then 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3321 $as_echo "$CC" >&6; } 3322 else 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324 $as_echo "no" >&6; } 3325 fi 3326 3327 3328 fi 3329 if test -z "$CC"; then 3330 if test -n "$ac_tool_prefix"; then 3331 for ac_prog in cl.exe 3332 do 3333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3336 $as_echo_n "checking for $ac_word... " >&6; } 3337 if test "${ac_cv_prog_CC+set}" = set; then : 3338 $as_echo_n "(cached) " >&6 3339 else 3340 if test -n "$CC"; then 3341 ac_cv_prog_CC="$CC" # Let the user override the test. 3342 else 3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3344 for as_dir in $PATH 3345 do 3346 IFS=$as_save_IFS 3347 test -z "$as_dir" && as_dir=. 3348 for ac_exec_ext in '' $ac_executable_extensions; do 3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3352 break 2 3353 fi 3354 done 3355 done 3356 IFS=$as_save_IFS 3357 3358 fi 3359 fi 3360 CC=$ac_cv_prog_CC 3361 if test -n "$CC"; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3363 $as_echo "$CC" >&6; } 3364 else 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366 $as_echo "no" >&6; } 3367 fi 3368 3369 3370 test -n "$CC" && break 3371 done 3372 fi 3373 if test -z "$CC"; then 3374 ac_ct_CC=$CC 3375 for ac_prog in cl.exe 3376 do 3377 # Extract the first word of "$ac_prog", so it can be a program name with args. 3378 set dummy $ac_prog; ac_word=$2 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3380 $as_echo_n "checking for $ac_word... " >&6; } 3381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3382 $as_echo_n "(cached) " >&6 3383 else 3384 if test -n "$ac_ct_CC"; then 3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3386 else 3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388 for as_dir in $PATH 3389 do 3390 IFS=$as_save_IFS 3391 test -z "$as_dir" && as_dir=. 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3394 ac_cv_prog_ac_ct_CC="$ac_prog" 3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398 done 3399 done 3400 IFS=$as_save_IFS 3401 3402 fi 3403 fi 3404 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3405 if test -n "$ac_ct_CC"; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3407 $as_echo "$ac_ct_CC" >&6; } 3408 else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410 $as_echo "no" >&6; } 3411 fi 3412 3413 3414 test -n "$ac_ct_CC" && break 3415 done 3416 3417 if test "x$ac_ct_CC" = x; then 3418 CC="" 3419 else 3420 case $cross_compiling:$ac_tool_warned in 3421 yes:) 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3424 ac_tool_warned=yes ;; 3425 esac 3426 CC=$ac_ct_CC 3427 fi 3428 fi 3429 3430 fi 3431 3432 3433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3435 as_fn_error "no acceptable C compiler found in \$PATH 3436 See \`config.log' for more details." "$LINENO" 5; } 3437 3438 # Provide some information about the compiler. 3439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3440 set X $ac_compile 3441 ac_compiler=$2 3442 for ac_option in --version -v -V -qversion; do 3443 { { ac_try="$ac_compiler $ac_option >&5" 3444 case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447 esac 3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449 $as_echo "$ac_try_echo"; } >&5 3450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3451 ac_status=$? 3452 if test -s conftest.err; then 3453 sed '10a\ 3454 ... rest of stderr output deleted ... 3455 10q' conftest.err >conftest.er1 3456 cat conftest.er1 >&5 3457 fi 3458 rm -f conftest.er1 conftest.err 3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3460 test $ac_status = 0; } 3461 done 3462 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464 /* end confdefs.h. */ 3465 3466 int 3467 main () 3468 { 3469 3470 ; 3471 return 0; 3472 } 3473 _ACEOF 3474 ac_clean_files_save=$ac_clean_files 3475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3476 # Try to create an executable without -o first, disregard a.out. 3477 # It will help us diagnose broken compilers, and finding out an intuition 3478 # of exeext. 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3480 $as_echo_n "checking whether the C compiler works... " >&6; } 3481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3482 3483 # The possible output files: 3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3485 3486 ac_rmfiles= 3487 for ac_file in $ac_files 3488 do 3489 case $ac_file in 3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3492 esac 3493 done 3494 rm -f $ac_rmfiles 3495 3496 if { { ac_try="$ac_link_default" 3497 case "(($ac_try" in 3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3499 *) ac_try_echo=$ac_try;; 3500 esac 3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3502 $as_echo "$ac_try_echo"; } >&5 3503 (eval "$ac_link_default") 2>&5 3504 ac_status=$? 3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3506 test $ac_status = 0; }; then : 3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3509 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3510 # so that the user can short-circuit this test for compilers unknown to 3511 # Autoconf. 3512 for ac_file in $ac_files '' 3513 do 3514 test -f "$ac_file" || continue 3515 case $ac_file in 3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3517 ;; 3518 [ab].out ) 3519 # We found the default executable, but exeext='' is most 3520 # certainly right. 3521 break;; 3522 *.* ) 3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3524 then :; else 3525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3526 fi 3527 # We set ac_cv_exeext here because the later test for it is not 3528 # safe: cross compilers may not add the suffix if given an `-o' 3529 # argument, so we may need to know it at that point already. 3530 # Even if this section looks crufty: it has the advantage of 3531 # actually working. 3532 break;; 3533 * ) 3534 break;; 3535 esac 3536 done 3537 test "$ac_cv_exeext" = no && ac_cv_exeext= 3538 3539 else 3540 ac_file='' 3541 fi 3542 if test -z "$ac_file"; then : 3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3544 $as_echo "no" >&6; } 3545 $as_echo "$as_me: failed program was:" >&5 3546 sed 's/^/| /' conftest.$ac_ext >&5 3547 3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3550 { as_fn_set_status 77 3551 as_fn_error "C compiler cannot create executables 3552 See \`config.log' for more details." "$LINENO" 5; }; } 3553 else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3555 $as_echo "yes" >&6; } 3556 fi 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3558 $as_echo_n "checking for C compiler default output file name... " >&6; } 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3560 $as_echo "$ac_file" >&6; } 3561 ac_exeext=$ac_cv_exeext 3562 3563 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3564 ac_clean_files=$ac_clean_files_save 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3566 $as_echo_n "checking for suffix of executables... " >&6; } 3567 if { { ac_try="$ac_link" 3568 case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571 esac 3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3573 $as_echo "$ac_try_echo"; } >&5 3574 (eval "$ac_link") 2>&5 3575 ac_status=$? 3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3577 test $ac_status = 0; }; then : 3578 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3579 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3580 # work properly (i.e., refer to `conftest.exe'), while it won't with 3581 # `rm'. 3582 for ac_file in conftest.exe conftest conftest.*; do 3583 test -f "$ac_file" || continue 3584 case $ac_file in 3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3587 break;; 3588 * ) break;; 3589 esac 3590 done 3591 else 3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3594 as_fn_error "cannot compute suffix of executables: cannot compile and link 3595 See \`config.log' for more details." "$LINENO" 5; } 3596 fi 3597 rm -f conftest conftest$ac_cv_exeext 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3599 $as_echo "$ac_cv_exeext" >&6; } 3600 3601 rm -f conftest.$ac_ext 3602 EXEEXT=$ac_cv_exeext 3603 ac_exeext=$EXEEXT 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3605 /* end confdefs.h. */ 3606 #include <stdio.h> 3607 int 3608 main () 3609 { 3610 FILE *f = fopen ("conftest.out", "w"); 3611 return ferror (f) || fclose (f) != 0; 3612 3613 ; 3614 return 0; 3615 } 3616 _ACEOF 3617 ac_clean_files="$ac_clean_files conftest.out" 3618 # Check that the compiler produces executables we can run. If not, either 3619 # the compiler is broken, or we cross compile. 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3621 $as_echo_n "checking whether we are cross compiling... " >&6; } 3622 if test "$cross_compiling" != yes; then 3623 { { ac_try="$ac_link" 3624 case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627 esac 3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3629 $as_echo "$ac_try_echo"; } >&5 3630 (eval "$ac_link") 2>&5 3631 ac_status=$? 3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3633 test $ac_status = 0; } 3634 if { ac_try='./conftest$ac_cv_exeext' 3635 { { case "(($ac_try" in 3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3637 *) ac_try_echo=$ac_try;; 3638 esac 3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3640 $as_echo "$ac_try_echo"; } >&5 3641 (eval "$ac_try") 2>&5 3642 ac_status=$? 3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3644 test $ac_status = 0; }; }; then 3645 cross_compiling=no 3646 else 3647 if test "$cross_compiling" = maybe; then 3648 cross_compiling=yes 3649 else 3650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3652 as_fn_error "cannot run C compiled programs. 3653 If you meant to cross compile, use \`--host'. 3654 See \`config.log' for more details." "$LINENO" 5; } 3655 fi 3656 fi 3657 fi 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3659 $as_echo "$cross_compiling" >&6; } 3660 3661 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3662 ac_clean_files=$ac_clean_files_save 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3664 $as_echo_n "checking for suffix of object files... " >&6; } 3665 if test "${ac_cv_objext+set}" = set; then : 3666 $as_echo_n "(cached) " >&6 3667 else 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669 /* end confdefs.h. */ 3670 3671 int 3672 main () 3673 { 3674 3675 ; 3676 return 0; 3677 } 3678 _ACEOF 3679 rm -f conftest.o conftest.obj 3680 if { { ac_try="$ac_compile" 3681 case "(($ac_try" in 3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3683 *) ac_try_echo=$ac_try;; 3684 esac 3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3686 $as_echo "$ac_try_echo"; } >&5 3687 (eval "$ac_compile") 2>&5 3688 ac_status=$? 3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3690 test $ac_status = 0; }; then : 3691 for ac_file in conftest.o conftest.obj conftest.*; do 3692 test -f "$ac_file" || continue; 3693 case $ac_file in 3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3696 break;; 3697 esac 3698 done 3699 else 3700 $as_echo "$as_me: failed program was:" >&5 3701 sed 's/^/| /' conftest.$ac_ext >&5 3702 3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3705 as_fn_error "cannot compute suffix of object files: cannot compile 3706 See \`config.log' for more details." "$LINENO" 5; } 3707 fi 3708 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3709 fi 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3711 $as_echo "$ac_cv_objext" >&6; } 3712 OBJEXT=$ac_cv_objext 3713 ac_objext=$OBJEXT 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3716 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3717 $as_echo_n "(cached) " >&6 3718 else 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720 /* end confdefs.h. */ 3721 3722 int 3723 main () 3724 { 3725 #ifndef __GNUC__ 3726 choke me 3727 #endif 3728 3729 ; 3730 return 0; 3731 } 3732 _ACEOF 3733 if ac_fn_c_try_compile "$LINENO"; then : 3734 ac_compiler_gnu=yes 3735 else 3736 ac_compiler_gnu=no 3737 fi 3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3739 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3740 3741 fi 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3743 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3744 if test $ac_compiler_gnu = yes; then 3745 GCC=yes 3746 else 3747 GCC= 3748 fi 3749 ac_test_CFLAGS=${CFLAGS+set} 3750 ac_save_CFLAGS=$CFLAGS 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3752 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3753 if test "${ac_cv_prog_cc_g+set}" = set; then : 3754 $as_echo_n "(cached) " >&6 3755 else 3756 ac_save_c_werror_flag=$ac_c_werror_flag 3757 ac_c_werror_flag=yes 3758 ac_cv_prog_cc_g=no 3759 CFLAGS="-g" 3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3761 /* end confdefs.h. */ 3762 3763 int 3764 main () 3765 { 3766 3767 ; 3768 return 0; 3769 } 3770 _ACEOF 3771 if ac_fn_c_try_compile "$LINENO"; then : 3772 ac_cv_prog_cc_g=yes 3773 else 3774 CFLAGS="" 3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776 /* end confdefs.h. */ 3777 3778 int 3779 main () 3780 { 3781 3782 ; 3783 return 0; 3784 } 3785 _ACEOF 3786 if ac_fn_c_try_compile "$LINENO"; then : 3787 3788 else 3789 ac_c_werror_flag=$ac_save_c_werror_flag 3790 CFLAGS="-g" 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792 /* end confdefs.h. */ 3793 3794 int 3795 main () 3796 { 3797 3798 ; 3799 return 0; 3800 } 3801 _ACEOF 3802 if ac_fn_c_try_compile "$LINENO"; then : 3803 ac_cv_prog_cc_g=yes 3804 fi 3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3806 fi 3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3808 fi 3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3810 ac_c_werror_flag=$ac_save_c_werror_flag 3811 fi 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3813 $as_echo "$ac_cv_prog_cc_g" >&6; } 3814 if test "$ac_test_CFLAGS" = set; then 3815 CFLAGS=$ac_save_CFLAGS 3816 elif test $ac_cv_prog_cc_g = yes; then 3817 if test "$GCC" = yes; then 3818 CFLAGS="-g -O2" 3819 else 3820 CFLAGS="-g" 3821 fi 3822 else 3823 if test "$GCC" = yes; then 3824 CFLAGS="-O2" 3825 else 3826 CFLAGS= 3827 fi 3828 fi 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3831 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3832 $as_echo_n "(cached) " >&6 3833 else 3834 ac_cv_prog_cc_c89=no 3835 ac_save_CC=$CC 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837 /* end confdefs.h. */ 3838 #include <stdarg.h> 3839 #include <stdio.h> 3840 #include <sys/types.h> 3841 #include <sys/stat.h> 3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3843 struct buf { int x; }; 3844 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3845 static char *e (p, i) 3846 char **p; 3847 int i; 3848 { 3849 return p[i]; 3850 } 3851 static char *f (char * (*g) (char **, int), char **p, ...) 3852 { 3853 char *s; 3854 va_list v; 3855 va_start (v,p); 3856 s = g (p, va_arg (v,int)); 3857 va_end (v); 3858 return s; 3859 } 3860 3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3862 function prototypes and stuff, but not '\xHH' hex character constants. 3863 These don't provoke an error unfortunately, instead are silently treated 3864 as 'x'. The following induces an error, until -std is added to get 3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3866 array size at least. It's necessary to write '\x00'==0 to get something 3867 that's true only with -std. */ 3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3869 3870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3871 inside strings and character constants. */ 3872 #define FOO(x) 'x' 3873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3874 3875 int test (int i, double x); 3876 struct s1 {int (*f) (int a);}; 3877 struct s2 {int (*f) (double a);}; 3878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3879 int argc; 3880 char **argv; 3881 int 3882 main () 3883 { 3884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3885 ; 3886 return 0; 3887 } 3888 _ACEOF 3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3891 do 3892 CC="$ac_save_CC $ac_arg" 3893 if ac_fn_c_try_compile "$LINENO"; then : 3894 ac_cv_prog_cc_c89=$ac_arg 3895 fi 3896 rm -f core conftest.err conftest.$ac_objext 3897 test "x$ac_cv_prog_cc_c89" != "xno" && break 3898 done 3899 rm -f conftest.$ac_ext 3900 CC=$ac_save_CC 3901 3902 fi 3903 # AC_CACHE_VAL 3904 case "x$ac_cv_prog_cc_c89" in 3905 x) 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3907 $as_echo "none needed" >&6; } ;; 3908 xno) 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3910 $as_echo "unsupported" >&6; } ;; 3911 *) 3912 CC="$CC $ac_cv_prog_cc_c89" 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3914 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3915 esac 3916 if test "x$ac_cv_prog_cc_c89" != xno; then : 3917 3918 fi 3919 3920 ac_ext=c 3921 ac_cpp='$CPP $CPPFLAGS' 3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3925 DEPDIR="${am__leading_dot}deps" 3926 3927 ac_config_commands="$ac_config_commands depfiles" 3928 3929 3930 am_make=${MAKE-make} 3931 cat > confinc << 'END' 3932 am__doit: 3933 @echo this is the am__doit target 3934 .PHONY: am__doit 3935 END 3936 # If we don't find an include directive, just comment out the code. 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3938 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3939 am__include="#" 3940 am__quote= 3941 _am_result=none 3942 # First try GNU make style include. 3943 echo "include confinc" > confmf 3944 # Ignore all kinds of additional output from `make'. 3945 case `$am_make -s -f confmf 2> /dev/null` in #( 3946 *the\ am__doit\ target*) 3947 am__include=include 3948 am__quote= 3949 _am_result=GNU 3950 ;; 3951 esac 3952 # Now try BSD make style include. 3953 if test "$am__include" = "#"; then 3954 echo '.include "confinc"' > confmf 3955 case `$am_make -s -f confmf 2> /dev/null` in #( 3956 *the\ am__doit\ target*) 3957 am__include=.include 3958 am__quote="\"" 3959 _am_result=BSD 3960 ;; 3961 esac 3962 fi 3963 3964 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3966 $as_echo "$_am_result" >&6; } 3967 rm -f confinc confmf 3968 3969 # Check whether --enable-dependency-tracking was given. 3970 if test "${enable_dependency_tracking+set}" = set; then : 3971 enableval=$enable_dependency_tracking; 3972 fi 3973 3974 if test "x$enable_dependency_tracking" != xno; then 3975 am_depcomp="$ac_aux_dir/depcomp" 3976 AMDEPBACKSLASH='\' 3977 fi 3978 if test "x$enable_dependency_tracking" != xno; then 3979 AMDEP_TRUE= 3980 AMDEP_FALSE='#' 3981 else 3982 AMDEP_TRUE='#' 3983 AMDEP_FALSE= 3984 fi 3985 3986 3987 3988 depcc="$CC" am_compiler_list= 3989 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3991 $as_echo_n "checking dependency style of $depcc... " >&6; } 3992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3993 $as_echo_n "(cached) " >&6 3994 else 3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3996 # We make a subdir and do the tests there. Otherwise we can end up 3997 # making bogus files that we don't know about and never remove. For 3998 # instance it was reported that on HP-UX the gcc test will end up 3999 # making a dummy file named `D' -- because `-MD' means `put the output 4000 # in D'. 4001 mkdir conftest.dir 4002 # Copy depcomp to subdir because otherwise we won't find it if we're 4003 # using a relative directory. 4004 cp "$am_depcomp" conftest.dir 4005 cd conftest.dir 4006 # We will build objects and dependencies in a subdirectory because 4007 # it helps to detect inapplicable dependency modes. For instance 4008 # both Tru64's cc and ICC support -MD to output dependencies as a 4009 # side effect of compilation, but ICC will put the dependencies in 4010 # the current directory while Tru64 will put them in the object 4011 # directory. 4012 mkdir sub 4013 4014 am_cv_CC_dependencies_compiler_type=none 4015 if test "$am_compiler_list" = ""; then 4016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4017 fi 4018 am__universal=false 4019 case " $depcc " in #( 4020 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4021 esac 4022 4023 for depmode in $am_compiler_list; do 4024 # Setup a source with many dependencies, because some compilers 4025 # like to wrap large dependency lists on column 80 (with \), and 4026 # we should not choose a depcomp mode which is confused by this. 4027 # 4028 # We need to recreate these files for each test, as the compiler may 4029 # overwrite some of them when testing with obscure command lines. 4030 # This happens at least with the AIX C compiler. 4031 : > sub/conftest.c 4032 for i in 1 2 3 4 5 6; do 4033 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4035 # Solaris 8's {/usr,}/bin/sh. 4036 touch sub/conftst$i.h 4037 done 4038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4039 4040 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4041 # mode. It turns out that the SunPro C++ compiler does not properly 4042 # handle `-M -o', and we need to detect this. Also, some Intel 4043 # versions had trouble with output in subdirs 4044 am__obj=sub/conftest.${OBJEXT-o} 4045 am__minus_obj="-o $am__obj" 4046 case $depmode in 4047 gcc) 4048 # This depmode causes a compiler race in universal mode. 4049 test "$am__universal" = false || continue 4050 ;; 4051 nosideeffect) 4052 # after this tag, mechanisms are not by side-effect, so they'll 4053 # only be used when explicitly requested 4054 if test "x$enable_dependency_tracking" = xyes; then 4055 continue 4056 else 4057 break 4058 fi 4059 ;; 4060 msvisualcpp | msvcmsys) 4061 # This compiler won't grok `-c -o', but also, the minuso test has 4062 # not run yet. These depmodes are late enough in the game, and 4063 # so weak that their functioning should not be impacted. 4064 am__obj=conftest.${OBJEXT-o} 4065 am__minus_obj= 4066 ;; 4067 none) break ;; 4068 esac 4069 if depmode=$depmode \ 4070 source=sub/conftest.c object=$am__obj \ 4071 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4072 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4073 >/dev/null 2>conftest.err && 4074 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4076 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4078 # icc doesn't choke on unknown options, it will just issue warnings 4079 # or remarks (even with -Werror). So we grep stderr for any message 4080 # that says an option was ignored or not supported. 4081 # When given -MP, icc 7.0 and 7.1 complain thusly: 4082 # icc: Command line warning: ignoring option '-M'; no argument required 4083 # The diagnosis changed in icc 8.0: 4084 # icc: Command line remark: option '-MP' not supported 4085 if (grep 'ignoring option' conftest.err || 4086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4087 am_cv_CC_dependencies_compiler_type=$depmode 4088 break 4089 fi 4090 fi 4091 done 4092 4093 cd .. 4094 rm -rf conftest.dir 4095 else 4096 am_cv_CC_dependencies_compiler_type=none 4097 fi 4098 4099 fi 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4101 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4102 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4103 4104 if 4105 test "x$enable_dependency_tracking" != xno \ 4106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4107 am__fastdepCC_TRUE= 4108 am__fastdepCC_FALSE='#' 4109 else 4110 am__fastdepCC_TRUE='#' 4111 am__fastdepCC_FALSE= 4112 fi 4113 4114 4115 if test "x$CC" != xcc; then 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4117 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4118 else 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4120 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4121 fi 4122 set dummy $CC; ac_cc=`$as_echo "$2" | 4123 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4124 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 4125 $as_echo_n "(cached) " >&6 4126 else 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128 /* end confdefs.h. */ 4129 4130 int 4131 main () 4132 { 4133 4134 ; 4135 return 0; 4136 } 4137 _ACEOF 4138 # Make sure it works both with $CC and with simple cc. 4139 # We do the test twice because some compilers refuse to overwrite an 4140 # existing .o file with -o, though they will create one. 4141 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4142 rm -f conftest2.* 4143 if { { case "(($ac_try" in 4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4145 *) ac_try_echo=$ac_try;; 4146 esac 4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4148 $as_echo "$ac_try_echo"; } >&5 4149 (eval "$ac_try") 2>&5 4150 ac_status=$? 4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4152 test $ac_status = 0; } && 4153 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4155 *) ac_try_echo=$ac_try;; 4156 esac 4157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4158 $as_echo "$ac_try_echo"; } >&5 4159 (eval "$ac_try") 2>&5 4160 ac_status=$? 4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4162 test $ac_status = 0; }; 4163 then 4164 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4165 if test "x$CC" != xcc; then 4166 # Test first that cc exists at all. 4167 if { ac_try='cc -c conftest.$ac_ext >&5' 4168 { { case "(($ac_try" in 4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4170 *) ac_try_echo=$ac_try;; 4171 esac 4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4173 $as_echo "$ac_try_echo"; } >&5 4174 (eval "$ac_try") 2>&5 4175 ac_status=$? 4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4177 test $ac_status = 0; }; }; then 4178 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4179 rm -f conftest2.* 4180 if { { case "(($ac_try" in 4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4182 *) ac_try_echo=$ac_try;; 4183 esac 4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4185 $as_echo "$ac_try_echo"; } >&5 4186 (eval "$ac_try") 2>&5 4187 ac_status=$? 4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4189 test $ac_status = 0; } && 4190 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4192 *) ac_try_echo=$ac_try;; 4193 esac 4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4195 $as_echo "$ac_try_echo"; } >&5 4196 (eval "$ac_try") 2>&5 4197 ac_status=$? 4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4199 test $ac_status = 0; }; 4200 then 4201 # cc works too. 4202 : 4203 else 4204 # cc exists but doesn't like -o. 4205 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4206 fi 4207 fi 4208 fi 4209 else 4210 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4211 fi 4212 rm -f core conftest* 4213 4214 fi 4215 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4217 $as_echo "yes" >&6; } 4218 else 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4220 $as_echo "no" >&6; } 4221 4222 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4223 4224 fi 4225 4226 # FIXME: we rely on the cache variable name because 4227 # there is no other way. 4228 set dummy $CC 4229 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4230 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4231 if test "$am_t" != yes; then 4232 # Losing compiler, so override with the script. 4233 # FIXME: It is wrong to rewrite CC. 4234 # But if we don't then we get into trouble of one sort or another. 4235 # A longer-term fix would be to have automake use am__CC in this case, 4236 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4237 CC="$am_aux_dir/compile $CC" 4238 fi 4239 4240 4241 ac_ext=c 4242 ac_cpp='$CPP $CPPFLAGS' 4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4247 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4248 # On Suns, sometimes $CPP names a directory. 4249 if test -n "$CPP" && test -d "$CPP"; then 4250 CPP= 4251 fi 4252 if test -z "$CPP"; then 4253 if test "${ac_cv_prog_CPP+set}" = set; then : 4254 $as_echo_n "(cached) " >&6 4255 else 4256 # Double quotes because CPP needs to be expanded 4257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4258 do 4259 ac_preproc_ok=false 4260 for ac_c_preproc_warn_flag in '' yes 4261 do 4262 # Use a header file that comes with gcc, so configuring glibc 4263 # with a fresh cross-compiler works. 4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4265 # <limits.h> exists even on freestanding compilers. 4266 # On the NeXT, cc -E runs the code through the compiler's parser, 4267 # not just through cpp. "Syntax error" is here to catch this case. 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269 /* end confdefs.h. */ 4270 #ifdef __STDC__ 4271 # include <limits.h> 4272 #else 4273 # include <assert.h> 4274 #endif 4275 Syntax error 4276 _ACEOF 4277 if ac_fn_c_try_cpp "$LINENO"; then : 4278 4279 else 4280 # Broken: fails on valid input. 4281 continue 4282 fi 4283 rm -f conftest.err conftest.$ac_ext 4284 4285 # OK, works on sane cases. Now check whether nonexistent headers 4286 # can be detected and how. 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288 /* end confdefs.h. */ 4289 #include <ac_nonexistent.h> 4290 _ACEOF 4291 if ac_fn_c_try_cpp "$LINENO"; then : 4292 # Broken: success on invalid input. 4293 continue 4294 else 4295 # Passes both tests. 4296 ac_preproc_ok=: 4297 break 4298 fi 4299 rm -f conftest.err conftest.$ac_ext 4300 4301 done 4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4303 rm -f conftest.err conftest.$ac_ext 4304 if $ac_preproc_ok; then : 4305 break 4306 fi 4307 4308 done 4309 ac_cv_prog_CPP=$CPP 4310 4311 fi 4312 CPP=$ac_cv_prog_CPP 4313 else 4314 ac_cv_prog_CPP=$CPP 4315 fi 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4317 $as_echo "$CPP" >&6; } 4318 ac_preproc_ok=false 4319 for ac_c_preproc_warn_flag in '' yes 4320 do 4321 # Use a header file that comes with gcc, so configuring glibc 4322 # with a fresh cross-compiler works. 4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4324 # <limits.h> exists even on freestanding compilers. 4325 # On the NeXT, cc -E runs the code through the compiler's parser, 4326 # not just through cpp. "Syntax error" is here to catch this case. 4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328 /* end confdefs.h. */ 4329 #ifdef __STDC__ 4330 # include <limits.h> 4331 #else 4332 # include <assert.h> 4333 #endif 4334 Syntax error 4335 _ACEOF 4336 if ac_fn_c_try_cpp "$LINENO"; then : 4337 4338 else 4339 # Broken: fails on valid input. 4340 continue 4341 fi 4342 rm -f conftest.err conftest.$ac_ext 4343 4344 # OK, works on sane cases. Now check whether nonexistent headers 4345 # can be detected and how. 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347 /* end confdefs.h. */ 4348 #include <ac_nonexistent.h> 4349 _ACEOF 4350 if ac_fn_c_try_cpp "$LINENO"; then : 4351 # Broken: success on invalid input. 4352 continue 4353 else 4354 # Passes both tests. 4355 ac_preproc_ok=: 4356 break 4357 fi 4358 rm -f conftest.err conftest.$ac_ext 4359 4360 done 4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4362 rm -f conftest.err conftest.$ac_ext 4363 if $ac_preproc_ok; then : 4364 4365 else 4366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4368 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4369 See \`config.log' for more details." "$LINENO" 5; } 4370 fi 4371 4372 ac_ext=c 4373 ac_cpp='$CPP $CPPFLAGS' 4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4377 4378 case `pwd` in 4379 *\ * | *\ *) 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4381 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4382 esac 4383 4384 4385 4386 macro_version='2.4' 4387 macro_revision='1.3293' 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 ltmain="$ac_aux_dir/ltmain.sh" 4402 4403 # Make sure we can run config.sub. 4404 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4405 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4406 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4408 $as_echo_n "checking build system type... " >&6; } 4409 if test "${ac_cv_build+set}" = set; then : 4410 $as_echo_n "(cached) " >&6 4411 else 4412 ac_build_alias=$build_alias 4413 test "x$ac_build_alias" = x && 4414 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4415 test "x$ac_build_alias" = x && 4416 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4417 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4418 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4419 4420 fi 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4422 $as_echo "$ac_cv_build" >&6; } 4423 case $ac_cv_build in 4424 *-*-*) ;; 4425 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4426 esac 4427 build=$ac_cv_build 4428 ac_save_IFS=$IFS; IFS='-' 4429 set x $ac_cv_build 4430 shift 4431 build_cpu=$1 4432 build_vendor=$2 4433 shift; shift 4434 # Remember, the first character of IFS is used to create $*, 4435 # except with old shells: 4436 build_os=$* 4437 IFS=$ac_save_IFS 4438 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4439 4440 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4442 $as_echo_n "checking host system type... " >&6; } 4443 if test "${ac_cv_host+set}" = set; then : 4444 $as_echo_n "(cached) " >&6 4445 else 4446 if test "x$host_alias" = x; then 4447 ac_cv_host=$ac_cv_build 4448 else 4449 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4450 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4451 fi 4452 4453 fi 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4455 $as_echo "$ac_cv_host" >&6; } 4456 case $ac_cv_host in 4457 *-*-*) ;; 4458 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4459 esac 4460 host=$ac_cv_host 4461 ac_save_IFS=$IFS; IFS='-' 4462 set x $ac_cv_host 4463 shift 4464 host_cpu=$1 4465 host_vendor=$2 4466 shift; shift 4467 # Remember, the first character of IFS is used to create $*, 4468 # except with old shells: 4469 host_os=$* 4470 IFS=$ac_save_IFS 4471 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4472 4473 4474 # Backslashify metacharacters that are still active within 4475 # double-quoted strings. 4476 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4477 4478 # Same as above, but do not quote variable references. 4479 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4480 4481 # Sed substitution to delay expansion of an escaped shell variable in a 4482 # double_quote_subst'ed string. 4483 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4484 4485 # Sed substitution to delay expansion of an escaped single quote. 4486 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4487 4488 # Sed substitution to avoid accidental globbing in evaled expressions 4489 no_glob_subst='s/\*/\\\*/g' 4490 4491 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4494 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4496 $as_echo_n "checking how to print strings... " >&6; } 4497 # Test print first, because it will be a builtin if present. 4498 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4500 ECHO='print -r --' 4501 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4502 ECHO='printf %s\n' 4503 else 4504 # Use this function as a fallback that always works. 4505 func_fallback_echo () 4506 { 4507 eval 'cat <<_LTECHO_EOF 4508 $1 4509 _LTECHO_EOF' 4510 } 4511 ECHO='func_fallback_echo' 4512 fi 4513 4514 # func_echo_all arg... 4515 # Invoke $ECHO with all args, space-separated. 4516 func_echo_all () 4517 { 4518 $ECHO "" 4519 } 4520 4521 case "$ECHO" in 4522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4523 $as_echo "printf" >&6; } ;; 4524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4525 $as_echo "print -r" >&6; } ;; 4526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4527 $as_echo "cat" >&6; } ;; 4528 esac 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4544 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4545 if test "${ac_cv_path_SED+set}" = set; then : 4546 $as_echo_n "(cached) " >&6 4547 else 4548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4549 for ac_i in 1 2 3 4 5 6 7; do 4550 ac_script="$ac_script$as_nl$ac_script" 4551 done 4552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4553 { ac_script=; unset ac_script;} 4554 if test -z "$SED"; then 4555 ac_path_SED_found=false 4556 # Loop through the user's path and test for each of PROGNAME-LIST 4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558 for as_dir in $PATH 4559 do 4560 IFS=$as_save_IFS 4561 test -z "$as_dir" && as_dir=. 4562 for ac_prog in sed gsed; do 4563 for ac_exec_ext in '' $ac_executable_extensions; do 4564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4565 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4566 # Check for GNU ac_path_SED and select it if it is found. 4567 # Check for GNU $ac_path_SED 4568 case `"$ac_path_SED" --version 2>&1` in 4569 *GNU*) 4570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4571 *) 4572 ac_count=0 4573 $as_echo_n 0123456789 >"conftest.in" 4574 while : 4575 do 4576 cat "conftest.in" "conftest.in" >"conftest.tmp" 4577 mv "conftest.tmp" "conftest.in" 4578 cp "conftest.in" "conftest.nl" 4579 $as_echo '' >> "conftest.nl" 4580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4582 as_fn_arith $ac_count + 1 && ac_count=$as_val 4583 if test $ac_count -gt ${ac_path_SED_max-0}; then 4584 # Best one so far, save it but keep looking for a better one 4585 ac_cv_path_SED="$ac_path_SED" 4586 ac_path_SED_max=$ac_count 4587 fi 4588 # 10*(2^10) chars as input seems more than enough 4589 test $ac_count -gt 10 && break 4590 done 4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4592 esac 4593 4594 $ac_path_SED_found && break 3 4595 done 4596 done 4597 done 4598 IFS=$as_save_IFS 4599 if test -z "$ac_cv_path_SED"; then 4600 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4601 fi 4602 else 4603 ac_cv_path_SED=$SED 4604 fi 4605 4606 fi 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4608 $as_echo "$ac_cv_path_SED" >&6; } 4609 SED="$ac_cv_path_SED" 4610 rm -f conftest.sed 4611 4612 test -z "$SED" && SED=sed 4613 Xsed="$SED -e 1s/^X//" 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4627 if test "${ac_cv_path_GREP+set}" = set; then : 4628 $as_echo_n "(cached) " >&6 4629 else 4630 if test -z "$GREP"; then 4631 ac_path_GREP_found=false 4632 # Loop through the user's path and test for each of PROGNAME-LIST 4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4635 do 4636 IFS=$as_save_IFS 4637 test -z "$as_dir" && as_dir=. 4638 for ac_prog in grep ggrep; do 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4642 # Check for GNU ac_path_GREP and select it if it is found. 4643 # Check for GNU $ac_path_GREP 4644 case `"$ac_path_GREP" --version 2>&1` in 4645 *GNU*) 4646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4647 *) 4648 ac_count=0 4649 $as_echo_n 0123456789 >"conftest.in" 4650 while : 4651 do 4652 cat "conftest.in" "conftest.in" >"conftest.tmp" 4653 mv "conftest.tmp" "conftest.in" 4654 cp "conftest.in" "conftest.nl" 4655 $as_echo 'GREP' >> "conftest.nl" 4656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4658 as_fn_arith $ac_count + 1 && ac_count=$as_val 4659 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4660 # Best one so far, save it but keep looking for a better one 4661 ac_cv_path_GREP="$ac_path_GREP" 4662 ac_path_GREP_max=$ac_count 4663 fi 4664 # 10*(2^10) chars as input seems more than enough 4665 test $ac_count -gt 10 && break 4666 done 4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4668 esac 4669 4670 $ac_path_GREP_found && break 3 4671 done 4672 done 4673 done 4674 IFS=$as_save_IFS 4675 if test -z "$ac_cv_path_GREP"; then 4676 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4677 fi 4678 else 4679 ac_cv_path_GREP=$GREP 4680 fi 4681 4682 fi 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4684 $as_echo "$ac_cv_path_GREP" >&6; } 4685 GREP="$ac_cv_path_GREP" 4686 4687 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4689 $as_echo_n "checking for egrep... " >&6; } 4690 if test "${ac_cv_path_EGREP+set}" = set; then : 4691 $as_echo_n "(cached) " >&6 4692 else 4693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4694 then ac_cv_path_EGREP="$GREP -E" 4695 else 4696 if test -z "$EGREP"; then 4697 ac_path_EGREP_found=false 4698 # Loop through the user's path and test for each of PROGNAME-LIST 4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4701 do 4702 IFS=$as_save_IFS 4703 test -z "$as_dir" && as_dir=. 4704 for ac_prog in egrep; do 4705 for ac_exec_ext in '' $ac_executable_extensions; do 4706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4707 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4708 # Check for GNU ac_path_EGREP and select it if it is found. 4709 # Check for GNU $ac_path_EGREP 4710 case `"$ac_path_EGREP" --version 2>&1` in 4711 *GNU*) 4712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4713 *) 4714 ac_count=0 4715 $as_echo_n 0123456789 >"conftest.in" 4716 while : 4717 do 4718 cat "conftest.in" "conftest.in" >"conftest.tmp" 4719 mv "conftest.tmp" "conftest.in" 4720 cp "conftest.in" "conftest.nl" 4721 $as_echo 'EGREP' >> "conftest.nl" 4722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4724 as_fn_arith $ac_count + 1 && ac_count=$as_val 4725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4726 # Best one so far, save it but keep looking for a better one 4727 ac_cv_path_EGREP="$ac_path_EGREP" 4728 ac_path_EGREP_max=$ac_count 4729 fi 4730 # 10*(2^10) chars as input seems more than enough 4731 test $ac_count -gt 10 && break 4732 done 4733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4734 esac 4735 4736 $ac_path_EGREP_found && break 3 4737 done 4738 done 4739 done 4740 IFS=$as_save_IFS 4741 if test -z "$ac_cv_path_EGREP"; then 4742 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4743 fi 4744 else 4745 ac_cv_path_EGREP=$EGREP 4746 fi 4747 4748 fi 4749 fi 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4751 $as_echo "$ac_cv_path_EGREP" >&6; } 4752 EGREP="$ac_cv_path_EGREP" 4753 4754 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4756 $as_echo_n "checking for fgrep... " >&6; } 4757 if test "${ac_cv_path_FGREP+set}" = set; then : 4758 $as_echo_n "(cached) " >&6 4759 else 4760 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4761 then ac_cv_path_FGREP="$GREP -F" 4762 else 4763 if test -z "$FGREP"; then 4764 ac_path_FGREP_found=false 4765 # Loop through the user's path and test for each of PROGNAME-LIST 4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4768 do 4769 IFS=$as_save_IFS 4770 test -z "$as_dir" && as_dir=. 4771 for ac_prog in fgrep; do 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4774 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4775 # Check for GNU ac_path_FGREP and select it if it is found. 4776 # Check for GNU $ac_path_FGREP 4777 case `"$ac_path_FGREP" --version 2>&1` in 4778 *GNU*) 4779 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4780 *) 4781 ac_count=0 4782 $as_echo_n 0123456789 >"conftest.in" 4783 while : 4784 do 4785 cat "conftest.in" "conftest.in" >"conftest.tmp" 4786 mv "conftest.tmp" "conftest.in" 4787 cp "conftest.in" "conftest.nl" 4788 $as_echo 'FGREP' >> "conftest.nl" 4789 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4791 as_fn_arith $ac_count + 1 && ac_count=$as_val 4792 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4793 # Best one so far, save it but keep looking for a better one 4794 ac_cv_path_FGREP="$ac_path_FGREP" 4795 ac_path_FGREP_max=$ac_count 4796 fi 4797 # 10*(2^10) chars as input seems more than enough 4798 test $ac_count -gt 10 && break 4799 done 4800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4801 esac 4802 4803 $ac_path_FGREP_found && break 3 4804 done 4805 done 4806 done 4807 IFS=$as_save_IFS 4808 if test -z "$ac_cv_path_FGREP"; then 4809 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4810 fi 4811 else 4812 ac_cv_path_FGREP=$FGREP 4813 fi 4814 4815 fi 4816 fi 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4818 $as_echo "$ac_cv_path_FGREP" >&6; } 4819 FGREP="$ac_cv_path_FGREP" 4820 4821 4822 test -z "$GREP" && GREP=grep 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 # Check whether --with-gnu-ld was given. 4843 if test "${with_gnu_ld+set}" = set; then : 4844 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4845 else 4846 with_gnu_ld=no 4847 fi 4848 4849 ac_prog=ld 4850 if test "$GCC" = yes; then 4851 # Check if gcc -print-prog-name=ld gives a path. 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4853 $as_echo_n "checking for ld used by $CC... " >&6; } 4854 case $host in 4855 *-*-mingw*) 4856 # gcc leaves a trailing carriage return which upsets mingw 4857 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4858 *) 4859 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4860 esac 4861 case $ac_prog in 4862 # Accept absolute paths. 4863 [\\/]* | ?:[\\/]*) 4864 re_direlt='/[^/][^/]*/\.\./' 4865 # Canonicalize the pathname of ld 4866 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4867 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4868 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4869 done 4870 test -z "$LD" && LD="$ac_prog" 4871 ;; 4872 "") 4873 # If it fails, then pretend we aren't using GCC. 4874 ac_prog=ld 4875 ;; 4876 *) 4877 # If it is relative, then search for the first ld in PATH. 4878 with_gnu_ld=unknown 4879 ;; 4880 esac 4881 elif test "$with_gnu_ld" = yes; then 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4883 $as_echo_n "checking for GNU ld... " >&6; } 4884 else 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4886 $as_echo_n "checking for non-GNU ld... " >&6; } 4887 fi 4888 if test "${lt_cv_path_LD+set}" = set; then : 4889 $as_echo_n "(cached) " >&6 4890 else 4891 if test -z "$LD"; then 4892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4893 for ac_dir in $PATH; do 4894 IFS="$lt_save_ifs" 4895 test -z "$ac_dir" && ac_dir=. 4896 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4897 lt_cv_path_LD="$ac_dir/$ac_prog" 4898 # Check to see if the program is GNU ld. I'd rather use --version, 4899 # but apparently some variants of GNU ld only accept -v. 4900 # Break only if it was the GNU/non-GNU ld that we prefer. 4901 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4902 *GNU* | *'with BFD'*) 4903 test "$with_gnu_ld" != no && break 4904 ;; 4905 *) 4906 test "$with_gnu_ld" != yes && break 4907 ;; 4908 esac 4909 fi 4910 done 4911 IFS="$lt_save_ifs" 4912 else 4913 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4914 fi 4915 fi 4916 4917 LD="$lt_cv_path_LD" 4918 if test -n "$LD"; then 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4920 $as_echo "$LD" >&6; } 4921 else 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4923 $as_echo "no" >&6; } 4924 fi 4925 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4928 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4929 $as_echo_n "(cached) " >&6 4930 else 4931 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4932 case `$LD -v 2>&1 </dev/null` in 4933 *GNU* | *'with BFD'*) 4934 lt_cv_prog_gnu_ld=yes 4935 ;; 4936 *) 4937 lt_cv_prog_gnu_ld=no 4938 ;; 4939 esac 4940 fi 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4942 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4943 with_gnu_ld=$lt_cv_prog_gnu_ld 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4954 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4955 if test "${lt_cv_path_NM+set}" = set; then : 4956 $as_echo_n "(cached) " >&6 4957 else 4958 if test -n "$NM"; then 4959 # Let the user override the test. 4960 lt_cv_path_NM="$NM" 4961 else 4962 lt_nm_to_check="${ac_tool_prefix}nm" 4963 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4964 lt_nm_to_check="$lt_nm_to_check nm" 4965 fi 4966 for lt_tmp_nm in $lt_nm_to_check; do 4967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4968 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4969 IFS="$lt_save_ifs" 4970 test -z "$ac_dir" && ac_dir=. 4971 tmp_nm="$ac_dir/$lt_tmp_nm" 4972 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4973 # Check to see if the nm accepts a BSD-compat flag. 4974 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4975 # nm: unknown option "B" ignored 4976 # Tru64's nm complains that /dev/null is an invalid object file 4977 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4978 */dev/null* | *'Invalid file or object type'*) 4979 lt_cv_path_NM="$tmp_nm -B" 4980 break 4981 ;; 4982 *) 4983 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4984 */dev/null*) 4985 lt_cv_path_NM="$tmp_nm -p" 4986 break 4987 ;; 4988 *) 4989 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4990 continue # so that we can try to find one that supports BSD flags 4991 ;; 4992 esac 4993 ;; 4994 esac 4995 fi 4996 done 4997 IFS="$lt_save_ifs" 4998 done 4999 : ${lt_cv_path_NM=no} 5000 fi 5001 fi 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5003 $as_echo "$lt_cv_path_NM" >&6; } 5004 if test "$lt_cv_path_NM" != "no"; then 5005 NM="$lt_cv_path_NM" 5006 else 5007 # Didn't find any BSD compatible name lister, look for dumpbin. 5008 if test -n "$DUMPBIN"; then : 5009 # Let the user override the test. 5010 else 5011 if test -n "$ac_tool_prefix"; then 5012 for ac_prog in dumpbin "link -dump" 5013 do 5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5017 $as_echo_n "checking for $ac_word... " >&6; } 5018 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5019 $as_echo_n "(cached) " >&6 5020 else 5021 if test -n "$DUMPBIN"; then 5022 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5023 else 5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5025 for as_dir in $PATH 5026 do 5027 IFS=$as_save_IFS 5028 test -z "$as_dir" && as_dir=. 5029 for ac_exec_ext in '' $ac_executable_extensions; do 5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5031 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5033 break 2 5034 fi 5035 done 5036 done 5037 IFS=$as_save_IFS 5038 5039 fi 5040 fi 5041 DUMPBIN=$ac_cv_prog_DUMPBIN 5042 if test -n "$DUMPBIN"; then 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5044 $as_echo "$DUMPBIN" >&6; } 5045 else 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5047 $as_echo "no" >&6; } 5048 fi 5049 5050 5051 test -n "$DUMPBIN" && break 5052 done 5053 fi 5054 if test -z "$DUMPBIN"; then 5055 ac_ct_DUMPBIN=$DUMPBIN 5056 for ac_prog in dumpbin "link -dump" 5057 do 5058 # Extract the first word of "$ac_prog", so it can be a program name with args. 5059 set dummy $ac_prog; ac_word=$2 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5061 $as_echo_n "checking for $ac_word... " >&6; } 5062 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5063 $as_echo_n "(cached) " >&6 5064 else 5065 if test -n "$ac_ct_DUMPBIN"; then 5066 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5067 else 5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5069 for as_dir in $PATH 5070 do 5071 IFS=$as_save_IFS 5072 test -z "$as_dir" && as_dir=. 5073 for ac_exec_ext in '' $ac_executable_extensions; do 5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5075 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5077 break 2 5078 fi 5079 done 5080 done 5081 IFS=$as_save_IFS 5082 5083 fi 5084 fi 5085 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5086 if test -n "$ac_ct_DUMPBIN"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5088 $as_echo "$ac_ct_DUMPBIN" >&6; } 5089 else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5091 $as_echo "no" >&6; } 5092 fi 5093 5094 5095 test -n "$ac_ct_DUMPBIN" && break 5096 done 5097 5098 if test "x$ac_ct_DUMPBIN" = x; then 5099 DUMPBIN=":" 5100 else 5101 case $cross_compiling:$ac_tool_warned in 5102 yes:) 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5105 ac_tool_warned=yes ;; 5106 esac 5107 DUMPBIN=$ac_ct_DUMPBIN 5108 fi 5109 fi 5110 5111 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5112 *COFF*) 5113 DUMPBIN="$DUMPBIN -symbols" 5114 ;; 5115 *) 5116 DUMPBIN=: 5117 ;; 5118 esac 5119 fi 5120 5121 if test "$DUMPBIN" != ":"; then 5122 NM="$DUMPBIN" 5123 fi 5124 fi 5125 test -z "$NM" && NM=nm 5126 5127 5128 5129 5130 5131 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5133 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5134 if test "${lt_cv_nm_interface+set}" = set; then : 5135 $as_echo_n "(cached) " >&6 5136 else 5137 lt_cv_nm_interface="BSD nm" 5138 echo "int some_variable = 0;" > conftest.$ac_ext 5139 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5140 (eval "$ac_compile" 2>conftest.err) 5141 cat conftest.err >&5 5142 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5143 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5144 cat conftest.err >&5 5145 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5146 cat conftest.out >&5 5147 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5148 lt_cv_nm_interface="MS dumpbin" 5149 fi 5150 rm -f conftest* 5151 fi 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5153 $as_echo "$lt_cv_nm_interface" >&6; } 5154 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5156 $as_echo_n "checking whether ln -s works... " >&6; } 5157 LN_S=$as_ln_s 5158 if test "$LN_S" = "ln -s"; then 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5160 $as_echo "yes" >&6; } 5161 else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5163 $as_echo "no, using $LN_S" >&6; } 5164 fi 5165 5166 # find the maximum length of command line arguments 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5168 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5169 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5170 $as_echo_n "(cached) " >&6 5171 else 5172 i=0 5173 teststring="ABCD" 5174 5175 case $build_os in 5176 msdosdjgpp*) 5177 # On DJGPP, this test can blow up pretty badly due to problems in libc 5178 # (any single argument exceeding 2000 bytes causes a buffer overrun 5179 # during glob expansion). Even if it were fixed, the result of this 5180 # check would be larger than it should be. 5181 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5182 ;; 5183 5184 gnu*) 5185 # Under GNU Hurd, this test is not required because there is 5186 # no limit to the length of command line arguments. 5187 # Libtool will interpret -1 as no limit whatsoever 5188 lt_cv_sys_max_cmd_len=-1; 5189 ;; 5190 5191 cygwin* | mingw* | cegcc*) 5192 # On Win9x/ME, this test blows up -- it succeeds, but takes 5193 # about 5 minutes as the teststring grows exponentially. 5194 # Worse, since 9x/ME are not pre-emptively multitasking, 5195 # you end up with a "frozen" computer, even though with patience 5196 # the test eventually succeeds (with a max line length of 256k). 5197 # Instead, let's just punt: use the minimum linelength reported by 5198 # all of the supported platforms: 8192 (on NT/2K/XP). 5199 lt_cv_sys_max_cmd_len=8192; 5200 ;; 5201 5202 mint*) 5203 # On MiNT this can take a long time and run out of memory. 5204 lt_cv_sys_max_cmd_len=8192; 5205 ;; 5206 5207 amigaos*) 5208 # On AmigaOS with pdksh, this test takes hours, literally. 5209 # So we just punt and use a minimum line length of 8192. 5210 lt_cv_sys_max_cmd_len=8192; 5211 ;; 5212 5213 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5214 # This has been around since 386BSD, at least. Likely further. 5215 if test -x /sbin/sysctl; then 5216 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5217 elif test -x /usr/sbin/sysctl; then 5218 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5219 else 5220 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5221 fi 5222 # And add a safety zone 5223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5225 ;; 5226 5227 interix*) 5228 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5229 lt_cv_sys_max_cmd_len=196608 5230 ;; 5231 5232 osf*) 5233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5235 # nice to cause kernel panics so lets avoid the loop below. 5236 # First set a reasonable default. 5237 lt_cv_sys_max_cmd_len=16384 5238 # 5239 if test -x /sbin/sysconfig; then 5240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5241 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5242 esac 5243 fi 5244 ;; 5245 sco3.2v5*) 5246 lt_cv_sys_max_cmd_len=102400 5247 ;; 5248 sysv5* | sco5v6* | sysv4.2uw2*) 5249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5250 if test -n "$kargmax"; then 5251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5252 else 5253 lt_cv_sys_max_cmd_len=32768 5254 fi 5255 ;; 5256 *) 5257 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5258 if test -n "$lt_cv_sys_max_cmd_len"; then 5259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5261 else 5262 # Make teststring a little bigger before we do anything with it. 5263 # a 1K string should be a reasonable start. 5264 for i in 1 2 3 4 5 6 7 8 ; do 5265 teststring=$teststring$teststring 5266 done 5267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5268 # If test is not a shell built-in, we'll probably end up computing a 5269 # maximum length that is only half of the actual maximum length, but 5270 # we can't tell. 5271 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5272 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5273 test $i != 17 # 1/2 MB should be enough 5274 do 5275 i=`expr $i + 1` 5276 teststring=$teststring$teststring 5277 done 5278 # Only check the string length outside the loop. 5279 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5280 teststring= 5281 # Add a significant safety factor because C++ compilers can tack on 5282 # massive amounts of additional arguments before passing them to the 5283 # linker. It appears as though 1/2 is a usable value. 5284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5285 fi 5286 ;; 5287 esac 5288 5289 fi 5290 5291 if test -n $lt_cv_sys_max_cmd_len ; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5293 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5294 else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5296 $as_echo "none" >&6; } 5297 fi 5298 max_cmd_len=$lt_cv_sys_max_cmd_len 5299 5300 5301 5302 5303 5304 5305 : ${CP="cp -f"} 5306 : ${MV="mv -f"} 5307 : ${RM="rm -f"} 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5310 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5311 # Try some XSI features 5312 xsi_shell=no 5313 ( _lt_dummy="a/b/c" 5314 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5315 = c,a/b,b/c, \ 5316 && eval 'test $(( 1 + 1 )) -eq 2 \ 5317 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5318 && xsi_shell=yes 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5320 $as_echo "$xsi_shell" >&6; } 5321 5322 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5324 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5325 lt_shell_append=no 5326 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5327 >/dev/null 2>&1 \ 5328 && lt_shell_append=yes 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5330 $as_echo "$lt_shell_append" >&6; } 5331 5332 5333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5334 lt_unset=unset 5335 else 5336 lt_unset=false 5337 fi 5338 5339 5340 5341 5342 5343 # test EBCDIC or ASCII 5344 case `echo X|tr X '\101'` in 5345 A) # ASCII based system 5346 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5347 lt_SP2NL='tr \040 \012' 5348 lt_NL2SP='tr \015\012 \040\040' 5349 ;; 5350 *) # EBCDIC based system 5351 lt_SP2NL='tr \100 \n' 5352 lt_NL2SP='tr \r\n \100\100' 5353 ;; 5354 esac 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5365 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5366 if test "${lt_cv_to_host_file_cmd+set}" = set; then : 5367 $as_echo_n "(cached) " >&6 5368 else 5369 case $host in 5370 *-*-mingw* ) 5371 case $build in 5372 *-*-mingw* ) # actually msys 5373 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5374 ;; 5375 *-*-cygwin* ) 5376 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5377 ;; 5378 * ) # otherwise, assume *nix 5379 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5380 ;; 5381 esac 5382 ;; 5383 *-*-cygwin* ) 5384 case $build in 5385 *-*-mingw* ) # actually msys 5386 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5387 ;; 5388 *-*-cygwin* ) 5389 lt_cv_to_host_file_cmd=func_convert_file_noop 5390 ;; 5391 * ) # otherwise, assume *nix 5392 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5393 ;; 5394 esac 5395 ;; 5396 * ) # unhandled hosts (and "normal" native builds) 5397 lt_cv_to_host_file_cmd=func_convert_file_noop 5398 ;; 5399 esac 5400 5401 fi 5402 5403 to_host_file_cmd=$lt_cv_to_host_file_cmd 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5405 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5406 5407 5408 5409 5410 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5412 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5413 if test "${lt_cv_to_tool_file_cmd+set}" = set; then : 5414 $as_echo_n "(cached) " >&6 5415 else 5416 #assume ordinary cross tools, or native build. 5417 lt_cv_to_tool_file_cmd=func_convert_file_noop 5418 case $host in 5419 *-*-mingw* ) 5420 case $build in 5421 *-*-mingw* ) # actually msys 5422 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5423 ;; 5424 esac 5425 ;; 5426 esac 5427 5428 fi 5429 5430 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5432 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5433 5434 5435 5436 5437 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5439 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5440 if test "${lt_cv_ld_reload_flag+set}" = set; then : 5441 $as_echo_n "(cached) " >&6 5442 else 5443 lt_cv_ld_reload_flag='-r' 5444 fi 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5446 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5447 reload_flag=$lt_cv_ld_reload_flag 5448 case $reload_flag in 5449 "" | " "*) ;; 5450 *) reload_flag=" $reload_flag" ;; 5451 esac 5452 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5453 case $host_os in 5454 cygwin* | mingw* | pw32* | cegcc*) 5455 if test "$GCC" != yes; then 5456 reload_cmds=false 5457 fi 5458 ;; 5459 darwin*) 5460 if test "$GCC" = yes; then 5461 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5462 else 5463 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5464 fi 5465 ;; 5466 esac 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 if test -n "$ac_tool_prefix"; then 5477 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5478 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480 $as_echo_n "checking for $ac_word... " >&6; } 5481 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5482 $as_echo_n "(cached) " >&6 5483 else 5484 if test -n "$OBJDUMP"; then 5485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5486 else 5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488 for as_dir in $PATH 5489 do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5494 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5496 break 2 5497 fi 5498 done 5499 done 5500 IFS=$as_save_IFS 5501 5502 fi 5503 fi 5504 OBJDUMP=$ac_cv_prog_OBJDUMP 5505 if test -n "$OBJDUMP"; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5507 $as_echo "$OBJDUMP" >&6; } 5508 else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510 $as_echo "no" >&6; } 5511 fi 5512 5513 5514 fi 5515 if test -z "$ac_cv_prog_OBJDUMP"; then 5516 ac_ct_OBJDUMP=$OBJDUMP 5517 # Extract the first word of "objdump", so it can be a program name with args. 5518 set dummy objdump; ac_word=$2 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5520 $as_echo_n "checking for $ac_word... " >&6; } 5521 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5522 $as_echo_n "(cached) " >&6 5523 else 5524 if test -n "$ac_ct_OBJDUMP"; then 5525 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5526 else 5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5528 for as_dir in $PATH 5529 do 5530 IFS=$as_save_IFS 5531 test -z "$as_dir" && as_dir=. 5532 for ac_exec_ext in '' $ac_executable_extensions; do 5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5534 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5536 break 2 5537 fi 5538 done 5539 done 5540 IFS=$as_save_IFS 5541 5542 fi 5543 fi 5544 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5545 if test -n "$ac_ct_OBJDUMP"; then 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5547 $as_echo "$ac_ct_OBJDUMP" >&6; } 5548 else 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5550 $as_echo "no" >&6; } 5551 fi 5552 5553 if test "x$ac_ct_OBJDUMP" = x; then 5554 OBJDUMP="false" 5555 else 5556 case $cross_compiling:$ac_tool_warned in 5557 yes:) 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5560 ac_tool_warned=yes ;; 5561 esac 5562 OBJDUMP=$ac_ct_OBJDUMP 5563 fi 5564 else 5565 OBJDUMP="$ac_cv_prog_OBJDUMP" 5566 fi 5567 5568 test -z "$OBJDUMP" && OBJDUMP=objdump 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5579 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5580 if test "${lt_cv_deplibs_check_method+set}" = set; then : 5581 $as_echo_n "(cached) " >&6 5582 else 5583 lt_cv_file_magic_cmd='$MAGIC_CMD' 5584 lt_cv_file_magic_test_file= 5585 lt_cv_deplibs_check_method='unknown' 5586 # Need to set the preceding variable on all platforms that support 5587 # interlibrary dependencies. 5588 # 'none' -- dependencies not supported. 5589 # `unknown' -- same as none, but documents that we really don't know. 5590 # 'pass_all' -- all dependencies passed with no checks. 5591 # 'test_compile' -- check by making test program. 5592 # 'file_magic [[regex]]' -- check by looking for files in library path 5593 # which responds to the $file_magic_cmd with a given extended regex. 5594 # If you have `file' or equivalent on your system and you're not sure 5595 # whether `pass_all' will *always* work, you probably want this one. 5596 5597 case $host_os in 5598 aix[4-9]*) 5599 lt_cv_deplibs_check_method=pass_all 5600 ;; 5601 5602 beos*) 5603 lt_cv_deplibs_check_method=pass_all 5604 ;; 5605 5606 bsdi[45]*) 5607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5608 lt_cv_file_magic_cmd='/usr/bin/file -L' 5609 lt_cv_file_magic_test_file=/shlib/libc.so 5610 ;; 5611 5612 cygwin*) 5613 # func_win32_libid is a shell function defined in ltmain.sh 5614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5615 lt_cv_file_magic_cmd='func_win32_libid' 5616 ;; 5617 5618 mingw* | pw32*) 5619 # Base MSYS/MinGW do not provide the 'file' command needed by 5620 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5621 # unless we find 'file', for example because we are cross-compiling. 5622 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5623 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5625 lt_cv_file_magic_cmd='func_win32_libid' 5626 else 5627 # Keep this pattern in sync with the one in func_win32_libid. 5628 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5629 lt_cv_file_magic_cmd='$OBJDUMP -f' 5630 fi 5631 ;; 5632 5633 cegcc*) 5634 # use the weaker test based on 'objdump'. See mingw*. 5635 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5636 lt_cv_file_magic_cmd='$OBJDUMP -f' 5637 ;; 5638 5639 darwin* | rhapsody*) 5640 lt_cv_deplibs_check_method=pass_all 5641 ;; 5642 5643 freebsd* | dragonfly*) 5644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5645 case $host_cpu in 5646 i*86 ) 5647 # Not sure whether the presence of OpenBSD here was a mistake. 5648 # Let's accept both of them until this is cleared up. 5649 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5650 lt_cv_file_magic_cmd=/usr/bin/file 5651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5652 ;; 5653 esac 5654 else 5655 lt_cv_deplibs_check_method=pass_all 5656 fi 5657 ;; 5658 5659 gnu*) 5660 lt_cv_deplibs_check_method=pass_all 5661 ;; 5662 5663 haiku*) 5664 lt_cv_deplibs_check_method=pass_all 5665 ;; 5666 5667 hpux10.20* | hpux11*) 5668 lt_cv_file_magic_cmd=/usr/bin/file 5669 case $host_cpu in 5670 ia64*) 5671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5672 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5673 ;; 5674 hppa*64*) 5675 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]' 5676 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5677 ;; 5678 *) 5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5680 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5681 ;; 5682 esac 5683 ;; 5684 5685 interix[3-9]*) 5686 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5688 ;; 5689 5690 irix5* | irix6* | nonstopux*) 5691 case $LD in 5692 *-32|*"-32 ") libmagic=32-bit;; 5693 *-n32|*"-n32 ") libmagic=N32;; 5694 *-64|*"-64 ") libmagic=64-bit;; 5695 *) libmagic=never-match;; 5696 esac 5697 lt_cv_deplibs_check_method=pass_all 5698 ;; 5699 5700 # This must be Linux ELF. 5701 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5702 lt_cv_deplibs_check_method=pass_all 5703 ;; 5704 5705 netbsd*) 5706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5708 else 5709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5710 fi 5711 ;; 5712 5713 newos6*) 5714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5715 lt_cv_file_magic_cmd=/usr/bin/file 5716 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5717 ;; 5718 5719 *nto* | *qnx*) 5720 lt_cv_deplibs_check_method=pass_all 5721 ;; 5722 5723 openbsd*) 5724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5726 else 5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5728 fi 5729 ;; 5730 5731 osf3* | osf4* | osf5*) 5732 lt_cv_deplibs_check_method=pass_all 5733 ;; 5734 5735 rdos*) 5736 lt_cv_deplibs_check_method=pass_all 5737 ;; 5738 5739 solaris*) 5740 lt_cv_deplibs_check_method=pass_all 5741 ;; 5742 5743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 5747 sysv4 | sysv4.3*) 5748 case $host_vendor in 5749 motorola) 5750 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]' 5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5752 ;; 5753 ncr) 5754 lt_cv_deplibs_check_method=pass_all 5755 ;; 5756 sequent) 5757 lt_cv_file_magic_cmd='/bin/file' 5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5759 ;; 5760 sni) 5761 lt_cv_file_magic_cmd='/bin/file' 5762 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5763 lt_cv_file_magic_test_file=/lib/libc.so 5764 ;; 5765 siemens) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 pc) 5769 lt_cv_deplibs_check_method=pass_all 5770 ;; 5771 esac 5772 ;; 5773 5774 tpf*) 5775 lt_cv_deplibs_check_method=pass_all 5776 ;; 5777 esac 5778 5779 fi 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5781 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5782 5783 file_magic_glob= 5784 want_nocaseglob=no 5785 if test "$build" = "$host"; then 5786 case $host_os in 5787 mingw* | pw32*) 5788 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5789 want_nocaseglob=yes 5790 else 5791 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5792 fi 5793 ;; 5794 esac 5795 fi 5796 5797 file_magic_cmd=$lt_cv_file_magic_cmd 5798 deplibs_check_method=$lt_cv_deplibs_check_method 5799 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 if test -n "$ac_tool_prefix"; then 5823 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5824 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5826 $as_echo_n "checking for $ac_word... " >&6; } 5827 if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 5828 $as_echo_n "(cached) " >&6 5829 else 5830 if test -n "$DLLTOOL"; then 5831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5832 else 5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834 for as_dir in $PATH 5835 do 5836 IFS=$as_save_IFS 5837 test -z "$as_dir" && as_dir=. 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5840 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844 done 5845 done 5846 IFS=$as_save_IFS 5847 5848 fi 5849 fi 5850 DLLTOOL=$ac_cv_prog_DLLTOOL 5851 if test -n "$DLLTOOL"; then 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5853 $as_echo "$DLLTOOL" >&6; } 5854 else 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5856 $as_echo "no" >&6; } 5857 fi 5858 5859 5860 fi 5861 if test -z "$ac_cv_prog_DLLTOOL"; then 5862 ac_ct_DLLTOOL=$DLLTOOL 5863 # Extract the first word of "dlltool", so it can be a program name with args. 5864 set dummy dlltool; ac_word=$2 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866 $as_echo_n "checking for $ac_word... " >&6; } 5867 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 5868 $as_echo_n "(cached) " >&6 5869 else 5870 if test -n "$ac_ct_DLLTOOL"; then 5871 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5872 else 5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874 for as_dir in $PATH 5875 do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5880 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884 done 5885 done 5886 IFS=$as_save_IFS 5887 5888 fi 5889 fi 5890 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5891 if test -n "$ac_ct_DLLTOOL"; then 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5893 $as_echo "$ac_ct_DLLTOOL" >&6; } 5894 else 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5896 $as_echo "no" >&6; } 5897 fi 5898 5899 if test "x$ac_ct_DLLTOOL" = x; then 5900 DLLTOOL="false" 5901 else 5902 case $cross_compiling:$ac_tool_warned in 5903 yes:) 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5906 ac_tool_warned=yes ;; 5907 esac 5908 DLLTOOL=$ac_ct_DLLTOOL 5909 fi 5910 else 5911 DLLTOOL="$ac_cv_prog_DLLTOOL" 5912 fi 5913 5914 test -z "$DLLTOOL" && DLLTOOL=dlltool 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5926 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5927 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : 5928 $as_echo_n "(cached) " >&6 5929 else 5930 lt_cv_sharedlib_from_linklib_cmd='unknown' 5931 5932 case $host_os in 5933 cygwin* | mingw* | pw32* | cegcc*) 5934 # two different shell functions defined in ltmain.sh 5935 # decide which to use based on capabilities of $DLLTOOL 5936 case `$DLLTOOL --help 2>&1` in 5937 *--identify-strict*) 5938 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5939 ;; 5940 *) 5941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5942 ;; 5943 esac 5944 ;; 5945 *) 5946 # fallback: assume linklib IS sharedlib 5947 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5948 ;; 5949 esac 5950 5951 fi 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5953 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5954 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5955 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5956 5957 5958 5959 5960 5961 5962 5963 5964 if test -n "$ac_tool_prefix"; then 5965 for ac_prog in ar 5966 do 5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5970 $as_echo_n "checking for $ac_word... " >&6; } 5971 if test "${ac_cv_prog_AR+set}" = set; then : 5972 $as_echo_n "(cached) " >&6 5973 else 5974 if test -n "$AR"; then 5975 ac_cv_prog_AR="$AR" # Let the user override the test. 5976 else 5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5978 for as_dir in $PATH 5979 do 5980 IFS=$as_save_IFS 5981 test -z "$as_dir" && as_dir=. 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5984 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5986 break 2 5987 fi 5988 done 5989 done 5990 IFS=$as_save_IFS 5991 5992 fi 5993 fi 5994 AR=$ac_cv_prog_AR 5995 if test -n "$AR"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5997 $as_echo "$AR" >&6; } 5998 else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000 $as_echo "no" >&6; } 6001 fi 6002 6003 6004 test -n "$AR" && break 6005 done 6006 fi 6007 if test -z "$AR"; then 6008 ac_ct_AR=$AR 6009 for ac_prog in ar 6010 do 6011 # Extract the first word of "$ac_prog", so it can be a program name with args. 6012 set dummy $ac_prog; ac_word=$2 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6014 $as_echo_n "checking for $ac_word... " >&6; } 6015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6016 $as_echo_n "(cached) " >&6 6017 else 6018 if test -n "$ac_ct_AR"; then 6019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6020 else 6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6022 for as_dir in $PATH 6023 do 6024 IFS=$as_save_IFS 6025 test -z "$as_dir" && as_dir=. 6026 for ac_exec_ext in '' $ac_executable_extensions; do 6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6028 ac_cv_prog_ac_ct_AR="$ac_prog" 6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6030 break 2 6031 fi 6032 done 6033 done 6034 IFS=$as_save_IFS 6035 6036 fi 6037 fi 6038 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6039 if test -n "$ac_ct_AR"; then 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6041 $as_echo "$ac_ct_AR" >&6; } 6042 else 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6044 $as_echo "no" >&6; } 6045 fi 6046 6047 6048 test -n "$ac_ct_AR" && break 6049 done 6050 6051 if test "x$ac_ct_AR" = x; then 6052 AR="false" 6053 else 6054 case $cross_compiling:$ac_tool_warned in 6055 yes:) 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6058 ac_tool_warned=yes ;; 6059 esac 6060 AR=$ac_ct_AR 6061 fi 6062 fi 6063 6064 : ${AR=ar} 6065 : ${AR_FLAGS=cru} 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6078 $as_echo_n "checking for archiver @FILE support... " >&6; } 6079 if test "${lt_cv_ar_at_file+set}" = set; then : 6080 $as_echo_n "(cached) " >&6 6081 else 6082 lt_cv_ar_at_file=no 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084 /* end confdefs.h. */ 6085 6086 int 6087 main () 6088 { 6089 6090 ; 6091 return 0; 6092 } 6093 _ACEOF 6094 if ac_fn_c_try_compile "$LINENO"; then : 6095 echo conftest.$ac_objext > conftest.lst 6096 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6098 (eval $lt_ar_try) 2>&5 6099 ac_status=$? 6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6101 test $ac_status = 0; } 6102 if test "$ac_status" -eq 0; then 6103 # Ensure the archiver fails upon bogus file names. 6104 rm -f conftest.$ac_objext libconftest.a 6105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6106 (eval $lt_ar_try) 2>&5 6107 ac_status=$? 6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6109 test $ac_status = 0; } 6110 if test "$ac_status" -ne 0; then 6111 lt_cv_ar_at_file=@ 6112 fi 6113 fi 6114 rm -f conftest.* libconftest.a 6115 6116 fi 6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6118 6119 fi 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6121 $as_echo "$lt_cv_ar_at_file" >&6; } 6122 6123 if test "x$lt_cv_ar_at_file" = xno; then 6124 archiver_list_spec= 6125 else 6126 archiver_list_spec=$lt_cv_ar_at_file 6127 fi 6128 6129 6130 6131 6132 6133 6134 6135 if test -n "$ac_tool_prefix"; then 6136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6137 set dummy ${ac_tool_prefix}strip; ac_word=$2 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6139 $as_echo_n "checking for $ac_word... " >&6; } 6140 if test "${ac_cv_prog_STRIP+set}" = set; then : 6141 $as_echo_n "(cached) " >&6 6142 else 6143 if test -n "$STRIP"; then 6144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6145 else 6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147 for as_dir in $PATH 6148 do 6149 IFS=$as_save_IFS 6150 test -z "$as_dir" && as_dir=. 6151 for ac_exec_ext in '' $ac_executable_extensions; do 6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6153 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6155 break 2 6156 fi 6157 done 6158 done 6159 IFS=$as_save_IFS 6160 6161 fi 6162 fi 6163 STRIP=$ac_cv_prog_STRIP 6164 if test -n "$STRIP"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6166 $as_echo "$STRIP" >&6; } 6167 else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169 $as_echo "no" >&6; } 6170 fi 6171 6172 6173 fi 6174 if test -z "$ac_cv_prog_STRIP"; then 6175 ac_ct_STRIP=$STRIP 6176 # Extract the first word of "strip", so it can be a program name with args. 6177 set dummy strip; ac_word=$2 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6179 $as_echo_n "checking for $ac_word... " >&6; } 6180 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6181 $as_echo_n "(cached) " >&6 6182 else 6183 if test -n "$ac_ct_STRIP"; then 6184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6185 else 6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6187 for as_dir in $PATH 6188 do 6189 IFS=$as_save_IFS 6190 test -z "$as_dir" && as_dir=. 6191 for ac_exec_ext in '' $ac_executable_extensions; do 6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6193 ac_cv_prog_ac_ct_STRIP="strip" 6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6195 break 2 6196 fi 6197 done 6198 done 6199 IFS=$as_save_IFS 6200 6201 fi 6202 fi 6203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6204 if test -n "$ac_ct_STRIP"; then 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6206 $as_echo "$ac_ct_STRIP" >&6; } 6207 else 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6209 $as_echo "no" >&6; } 6210 fi 6211 6212 if test "x$ac_ct_STRIP" = x; then 6213 STRIP=":" 6214 else 6215 case $cross_compiling:$ac_tool_warned in 6216 yes:) 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6219 ac_tool_warned=yes ;; 6220 esac 6221 STRIP=$ac_ct_STRIP 6222 fi 6223 else 6224 STRIP="$ac_cv_prog_STRIP" 6225 fi 6226 6227 test -z "$STRIP" && STRIP=: 6228 6229 6230 6231 6232 6233 6234 if test -n "$ac_tool_prefix"; then 6235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6238 $as_echo_n "checking for $ac_word... " >&6; } 6239 if test "${ac_cv_prog_RANLIB+set}" = set; then : 6240 $as_echo_n "(cached) " >&6 6241 else 6242 if test -n "$RANLIB"; then 6243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6244 else 6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246 for as_dir in $PATH 6247 do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256 done 6257 done 6258 IFS=$as_save_IFS 6259 6260 fi 6261 fi 6262 RANLIB=$ac_cv_prog_RANLIB 6263 if test -n "$RANLIB"; then 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6265 $as_echo "$RANLIB" >&6; } 6266 else 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6268 $as_echo "no" >&6; } 6269 fi 6270 6271 6272 fi 6273 if test -z "$ac_cv_prog_RANLIB"; then 6274 ac_ct_RANLIB=$RANLIB 6275 # Extract the first word of "ranlib", so it can be a program name with args. 6276 set dummy ranlib; ac_word=$2 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278 $as_echo_n "checking for $ac_word... " >&6; } 6279 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6280 $as_echo_n "(cached) " >&6 6281 else 6282 if test -n "$ac_ct_RANLIB"; then 6283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6284 else 6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286 for as_dir in $PATH 6287 do 6288 IFS=$as_save_IFS 6289 test -z "$as_dir" && as_dir=. 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6292 ac_cv_prog_ac_ct_RANLIB="ranlib" 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296 done 6297 done 6298 IFS=$as_save_IFS 6299 6300 fi 6301 fi 6302 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6303 if test -n "$ac_ct_RANLIB"; then 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6305 $as_echo "$ac_ct_RANLIB" >&6; } 6306 else 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6308 $as_echo "no" >&6; } 6309 fi 6310 6311 if test "x$ac_ct_RANLIB" = x; then 6312 RANLIB=":" 6313 else 6314 case $cross_compiling:$ac_tool_warned in 6315 yes:) 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6318 ac_tool_warned=yes ;; 6319 esac 6320 RANLIB=$ac_ct_RANLIB 6321 fi 6322 else 6323 RANLIB="$ac_cv_prog_RANLIB" 6324 fi 6325 6326 test -z "$RANLIB" && RANLIB=: 6327 6328 6329 6330 6331 6332 6333 # Determine commands to create old-style static archives. 6334 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6335 old_postinstall_cmds='chmod 644 $oldlib' 6336 old_postuninstall_cmds= 6337 6338 if test -n "$RANLIB"; then 6339 case $host_os in 6340 openbsd*) 6341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6342 ;; 6343 *) 6344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6345 ;; 6346 esac 6347 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6348 fi 6349 6350 case $host_os in 6351 darwin*) 6352 lock_old_archive_extraction=yes ;; 6353 *) 6354 lock_old_archive_extraction=no ;; 6355 esac 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 # If no C compiler was specified, use CC. 6396 LTCC=${LTCC-"$CC"} 6397 6398 # If no C compiler flags were specified, use CFLAGS. 6399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6400 6401 # Allow CC to be a program name with arguments. 6402 compiler=$CC 6403 6404 6405 # Check for command to grab the raw symbol name followed by C symbol from nm. 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6407 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6408 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6409 $as_echo_n "(cached) " >&6 6410 else 6411 6412 # These are sane defaults that work on at least a few old systems. 6413 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6414 6415 # Character class describing NM global symbol codes. 6416 symcode='[BCDEGRST]' 6417 6418 # Regexp to match symbols that can be accessed directly from C. 6419 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6420 6421 # Define system-specific variables. 6422 case $host_os in 6423 aix*) 6424 symcode='[BCDT]' 6425 ;; 6426 cygwin* | mingw* | pw32* | cegcc*) 6427 symcode='[ABCDGISTW]' 6428 ;; 6429 hpux*) 6430 if test "$host_cpu" = ia64; then 6431 symcode='[ABCDEGRST]' 6432 fi 6433 ;; 6434 irix* | nonstopux*) 6435 symcode='[BCDEGRST]' 6436 ;; 6437 osf*) 6438 symcode='[BCDEGQRST]' 6439 ;; 6440 solaris*) 6441 symcode='[BDRT]' 6442 ;; 6443 sco3.2v5*) 6444 symcode='[DT]' 6445 ;; 6446 sysv4.2uw2*) 6447 symcode='[DT]' 6448 ;; 6449 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6450 symcode='[ABDT]' 6451 ;; 6452 sysv4) 6453 symcode='[DFNSTU]' 6454 ;; 6455 esac 6456 6457 # If we're using GNU nm, then use its standard symbol codes. 6458 case `$NM -V 2>&1` in 6459 *GNU* | *'with BFD'*) 6460 symcode='[ABCDGIRSTW]' ;; 6461 esac 6462 6463 # Transform an extracted symbol line into a proper C declaration. 6464 # Some systems (esp. on ia64) link data and code symbols differently, 6465 # so use this general approach. 6466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6467 6468 # Transform an extracted symbol line into symbol name and symbol address 6469 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6471 6472 # Handle CRLF in mingw tool chain 6473 opt_cr= 6474 case $build_os in 6475 mingw*) 6476 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6477 ;; 6478 esac 6479 6480 # Try without a prefix underscore, then with it. 6481 for ac_symprfx in "" "_"; do 6482 6483 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6484 symxfrm="\\1 $ac_symprfx\\2 \\2" 6485 6486 # Write the raw and C identifiers. 6487 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6488 # Fake it for dumpbin and say T for any non-static function 6489 # and D for any global variable. 6490 # Also find C++ and __fastcall symbols from MSVC++, 6491 # which start with @ or ?. 6492 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6493 " {last_section=section; section=\$ 3};"\ 6494 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6495 " \$ 0!~/External *\|/{next};"\ 6496 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6497 " {if(hide[section]) next};"\ 6498 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6499 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6500 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6501 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6502 " ' prfx=^$ac_symprfx" 6503 else 6504 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6505 fi 6506 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6507 6508 # Check to see that the pipe works correctly. 6509 pipe_works=no 6510 6511 rm -f conftest* 6512 cat > conftest.$ac_ext <<_LT_EOF 6513 #ifdef __cplusplus 6514 extern "C" { 6515 #endif 6516 char nm_test_var; 6517 void nm_test_func(void); 6518 void nm_test_func(void){} 6519 #ifdef __cplusplus 6520 } 6521 #endif 6522 int main(){nm_test_var='a';nm_test_func();return(0);} 6523 _LT_EOF 6524 6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6526 (eval $ac_compile) 2>&5 6527 ac_status=$? 6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6529 test $ac_status = 0; }; then 6530 # Now try to grab the symbols. 6531 nlist=conftest.nm 6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6533 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6534 ac_status=$? 6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6536 test $ac_status = 0; } && test -s "$nlist"; then 6537 # Try sorting and uniquifying the output. 6538 if sort "$nlist" | uniq > "$nlist"T; then 6539 mv -f "$nlist"T "$nlist" 6540 else 6541 rm -f "$nlist"T 6542 fi 6543 6544 # Make sure that we snagged all the symbols we need. 6545 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6546 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6547 cat <<_LT_EOF > conftest.$ac_ext 6548 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6549 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6550 /* DATA imports from DLLs on WIN32 con't be const, because runtime 6551 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6552 # define LT_DLSYM_CONST 6553 #elif defined(__osf__) 6554 /* This system does not cope well with relocations in const data. */ 6555 # define LT_DLSYM_CONST 6556 #else 6557 # define LT_DLSYM_CONST const 6558 #endif 6559 6560 #ifdef __cplusplus 6561 extern "C" { 6562 #endif 6563 6564 _LT_EOF 6565 # Now generate the symbol file. 6566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6567 6568 cat <<_LT_EOF >> conftest.$ac_ext 6569 6570 /* The mapping between symbol names and symbols. */ 6571 LT_DLSYM_CONST struct { 6572 const char *name; 6573 void *address; 6574 } 6575 lt__PROGRAM__LTX_preloaded_symbols[] = 6576 { 6577 { "@PROGRAM@", (void *) 0 }, 6578 _LT_EOF 6579 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6580 cat <<\_LT_EOF >> conftest.$ac_ext 6581 {0, (void *) 0} 6582 }; 6583 6584 /* This works around a problem in FreeBSD linker */ 6585 #ifdef FREEBSD_WORKAROUND 6586 static const void *lt_preloaded_setup() { 6587 return lt__PROGRAM__LTX_preloaded_symbols; 6588 } 6589 #endif 6590 6591 #ifdef __cplusplus 6592 } 6593 #endif 6594 _LT_EOF 6595 # Now try linking the two files. 6596 mv conftest.$ac_objext conftstm.$ac_objext 6597 lt_globsym_save_LIBS=$LIBS 6598 lt_globsym_save_CFLAGS=$CFLAGS 6599 LIBS="conftstm.$ac_objext" 6600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6602 (eval $ac_link) 2>&5 6603 ac_status=$? 6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6606 pipe_works=yes 6607 fi 6608 LIBS=$lt_globsym_save_LIBS 6609 CFLAGS=$lt_globsym_save_CFLAGS 6610 else 6611 echo "cannot find nm_test_func in $nlist" >&5 6612 fi 6613 else 6614 echo "cannot find nm_test_var in $nlist" >&5 6615 fi 6616 else 6617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6618 fi 6619 else 6620 echo "$progname: failed program was:" >&5 6621 cat conftest.$ac_ext >&5 6622 fi 6623 rm -rf conftest* conftst* 6624 6625 # Do not use the global_symbol_pipe unless it works. 6626 if test "$pipe_works" = yes; then 6627 break 6628 else 6629 lt_cv_sys_global_symbol_pipe= 6630 fi 6631 done 6632 6633 fi 6634 6635 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6636 lt_cv_sys_global_symbol_to_cdecl= 6637 fi 6638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6640 $as_echo "failed" >&6; } 6641 else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6643 $as_echo "ok" >&6; } 6644 fi 6645 6646 # Response file support. 6647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6648 nm_file_list_spec='@' 6649 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6650 nm_file_list_spec='@' 6651 fi 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6680 $as_echo_n "checking for sysroot... " >&6; } 6681 6682 # Check whether --with-sysroot was given. 6683 if test "${with_sysroot+set}" = set; then : 6684 withval=$with_sysroot; 6685 else 6686 with_sysroot=no 6687 fi 6688 6689 6690 lt_sysroot= 6691 case ${with_sysroot} in #( 6692 yes) 6693 if test "$GCC" = yes; then 6694 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6695 fi 6696 ;; #( 6697 /*) 6698 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6699 ;; #( 6700 no|'') 6701 ;; #( 6702 *) 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6704 $as_echo "${with_sysroot}" >&6; } 6705 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 6706 ;; 6707 esac 6708 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6710 $as_echo "${lt_sysroot:-no}" >&6; } 6711 6712 6713 6714 6715 6716 # Check whether --enable-libtool-lock was given. 6717 if test "${enable_libtool_lock+set}" = set; then : 6718 enableval=$enable_libtool_lock; 6719 fi 6720 6721 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6722 6723 # Some flags need to be propagated to the compiler or linker for good 6724 # libtool support. 6725 case $host in 6726 ia64-*-hpux*) 6727 # Find out which ABI we are using. 6728 echo 'int i;' > conftest.$ac_ext 6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6730 (eval $ac_compile) 2>&5 6731 ac_status=$? 6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6733 test $ac_status = 0; }; then 6734 case `/usr/bin/file conftest.$ac_objext` in 6735 *ELF-32*) 6736 HPUX_IA64_MODE="32" 6737 ;; 6738 *ELF-64*) 6739 HPUX_IA64_MODE="64" 6740 ;; 6741 esac 6742 fi 6743 rm -rf conftest* 6744 ;; 6745 *-*-irix6*) 6746 # Find out which ABI we are using. 6747 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6749 (eval $ac_compile) 2>&5 6750 ac_status=$? 6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6752 test $ac_status = 0; }; then 6753 if test "$lt_cv_prog_gnu_ld" = yes; then 6754 case `/usr/bin/file conftest.$ac_objext` in 6755 *32-bit*) 6756 LD="${LD-ld} -melf32bsmip" 6757 ;; 6758 *N32*) 6759 LD="${LD-ld} -melf32bmipn32" 6760 ;; 6761 *64-bit*) 6762 LD="${LD-ld} -melf64bmip" 6763 ;; 6764 esac 6765 else 6766 case `/usr/bin/file conftest.$ac_objext` in 6767 *32-bit*) 6768 LD="${LD-ld} -32" 6769 ;; 6770 *N32*) 6771 LD="${LD-ld} -n32" 6772 ;; 6773 *64-bit*) 6774 LD="${LD-ld} -64" 6775 ;; 6776 esac 6777 fi 6778 fi 6779 rm -rf conftest* 6780 ;; 6781 6782 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6783 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6784 # Find out which ABI we are using. 6785 echo 'int i;' > conftest.$ac_ext 6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6787 (eval $ac_compile) 2>&5 6788 ac_status=$? 6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6790 test $ac_status = 0; }; then 6791 case `/usr/bin/file conftest.o` in 6792 *32-bit*) 6793 case $host in 6794 x86_64-*kfreebsd*-gnu) 6795 LD="${LD-ld} -m elf_i386_fbsd" 6796 ;; 6797 x86_64-*linux*) 6798 LD="${LD-ld} -m elf_i386" 6799 ;; 6800 ppc64-*linux*|powerpc64-*linux*) 6801 LD="${LD-ld} -m elf32ppclinux" 6802 ;; 6803 s390x-*linux*) 6804 LD="${LD-ld} -m elf_s390" 6805 ;; 6806 sparc64-*linux*) 6807 LD="${LD-ld} -m elf32_sparc" 6808 ;; 6809 esac 6810 ;; 6811 *64-bit*) 6812 case $host in 6813 x86_64-*kfreebsd*-gnu) 6814 LD="${LD-ld} -m elf_x86_64_fbsd" 6815 ;; 6816 x86_64-*linux*) 6817 LD="${LD-ld} -m elf_x86_64" 6818 ;; 6819 ppc*-*linux*|powerpc*-*linux*) 6820 LD="${LD-ld} -m elf64ppc" 6821 ;; 6822 s390*-*linux*|s390*-*tpf*) 6823 LD="${LD-ld} -m elf64_s390" 6824 ;; 6825 sparc*-*linux*) 6826 LD="${LD-ld} -m elf64_sparc" 6827 ;; 6828 esac 6829 ;; 6830 esac 6831 fi 6832 rm -rf conftest* 6833 ;; 6834 6835 *-*-sco3.2v5*) 6836 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6837 SAVE_CFLAGS="$CFLAGS" 6838 CFLAGS="$CFLAGS -belf" 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6840 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6841 if test "${lt_cv_cc_needs_belf+set}" = set; then : 6842 $as_echo_n "(cached) " >&6 6843 else 6844 ac_ext=c 6845 ac_cpp='$CPP $CPPFLAGS' 6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6849 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6851 /* end confdefs.h. */ 6852 6853 int 6854 main () 6855 { 6856 6857 ; 6858 return 0; 6859 } 6860 _ACEOF 6861 if ac_fn_c_try_link "$LINENO"; then : 6862 lt_cv_cc_needs_belf=yes 6863 else 6864 lt_cv_cc_needs_belf=no 6865 fi 6866 rm -f core conftest.err conftest.$ac_objext \ 6867 conftest$ac_exeext conftest.$ac_ext 6868 ac_ext=c 6869 ac_cpp='$CPP $CPPFLAGS' 6870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6872 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6873 6874 fi 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6876 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6877 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6878 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6879 CFLAGS="$SAVE_CFLAGS" 6880 fi 6881 ;; 6882 sparc*-*solaris*) 6883 # Find out which ABI we are using. 6884 echo 'int i;' > conftest.$ac_ext 6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6886 (eval $ac_compile) 2>&5 6887 ac_status=$? 6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6889 test $ac_status = 0; }; then 6890 case `/usr/bin/file conftest.o` in 6891 *64-bit*) 6892 case $lt_cv_prog_gnu_ld in 6893 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6894 *) 6895 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6896 LD="${LD-ld} -64" 6897 fi 6898 ;; 6899 esac 6900 ;; 6901 esac 6902 fi 6903 rm -rf conftest* 6904 ;; 6905 esac 6906 6907 need_locks="$enable_libtool_lock" 6908 6909 if test -n "$ac_tool_prefix"; then 6910 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6911 set dummy ${ac_tool_prefix}mt; ac_word=$2 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6913 $as_echo_n "checking for $ac_word... " >&6; } 6914 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : 6915 $as_echo_n "(cached) " >&6 6916 else 6917 if test -n "$MANIFEST_TOOL"; then 6918 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6919 else 6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921 for as_dir in $PATH 6922 do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6927 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931 done 6932 done 6933 IFS=$as_save_IFS 6934 6935 fi 6936 fi 6937 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6938 if test -n "$MANIFEST_TOOL"; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6940 $as_echo "$MANIFEST_TOOL" >&6; } 6941 else 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6943 $as_echo "no" >&6; } 6944 fi 6945 6946 6947 fi 6948 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6949 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6950 # Extract the first word of "mt", so it can be a program name with args. 6951 set dummy mt; ac_word=$2 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953 $as_echo_n "checking for $ac_word... " >&6; } 6954 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : 6955 $as_echo_n "(cached) " >&6 6956 else 6957 if test -n "$ac_ct_MANIFEST_TOOL"; then 6958 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6959 else 6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961 for as_dir in $PATH 6962 do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6967 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971 done 6972 done 6973 IFS=$as_save_IFS 6974 6975 fi 6976 fi 6977 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6978 if test -n "$ac_ct_MANIFEST_TOOL"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6980 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6981 else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983 $as_echo "no" >&6; } 6984 fi 6985 6986 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6987 MANIFEST_TOOL=":" 6988 else 6989 case $cross_compiling:$ac_tool_warned in 6990 yes:) 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6993 ac_tool_warned=yes ;; 6994 esac 6995 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6996 fi 6997 else 6998 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6999 fi 7000 7001 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7003 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7004 if test "${lt_cv_path_mainfest_tool+set}" = set; then : 7005 $as_echo_n "(cached) " >&6 7006 else 7007 lt_cv_path_mainfest_tool=no 7008 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7009 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7010 cat conftest.err >&5 7011 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7012 lt_cv_path_mainfest_tool=yes 7013 fi 7014 rm -f conftest* 7015 fi 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7017 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7018 if test "x$lt_cv_path_mainfest_tool" != xyes; then 7019 MANIFEST_TOOL=: 7020 fi 7021 7022 7023 7024 7025 7026 7027 case $host_os in 7028 rhapsody* | darwin*) 7029 if test -n "$ac_tool_prefix"; then 7030 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7031 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7033 $as_echo_n "checking for $ac_word... " >&6; } 7034 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7035 $as_echo_n "(cached) " >&6 7036 else 7037 if test -n "$DSYMUTIL"; then 7038 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7039 else 7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7041 for as_dir in $PATH 7042 do 7043 IFS=$as_save_IFS 7044 test -z "$as_dir" && as_dir=. 7045 for ac_exec_ext in '' $ac_executable_extensions; do 7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7047 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7049 break 2 7050 fi 7051 done 7052 done 7053 IFS=$as_save_IFS 7054 7055 fi 7056 fi 7057 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7058 if test -n "$DSYMUTIL"; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7060 $as_echo "$DSYMUTIL" >&6; } 7061 else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063 $as_echo "no" >&6; } 7064 fi 7065 7066 7067 fi 7068 if test -z "$ac_cv_prog_DSYMUTIL"; then 7069 ac_ct_DSYMUTIL=$DSYMUTIL 7070 # Extract the first word of "dsymutil", so it can be a program name with args. 7071 set dummy dsymutil; ac_word=$2 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7073 $as_echo_n "checking for $ac_word... " >&6; } 7074 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7075 $as_echo_n "(cached) " >&6 7076 else 7077 if test -n "$ac_ct_DSYMUTIL"; then 7078 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7079 else 7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7081 for as_dir in $PATH 7082 do 7083 IFS=$as_save_IFS 7084 test -z "$as_dir" && as_dir=. 7085 for ac_exec_ext in '' $ac_executable_extensions; do 7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7087 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7089 break 2 7090 fi 7091 done 7092 done 7093 IFS=$as_save_IFS 7094 7095 fi 7096 fi 7097 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7098 if test -n "$ac_ct_DSYMUTIL"; then 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7100 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7101 else 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7103 $as_echo "no" >&6; } 7104 fi 7105 7106 if test "x$ac_ct_DSYMUTIL" = x; then 7107 DSYMUTIL=":" 7108 else 7109 case $cross_compiling:$ac_tool_warned in 7110 yes:) 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7113 ac_tool_warned=yes ;; 7114 esac 7115 DSYMUTIL=$ac_ct_DSYMUTIL 7116 fi 7117 else 7118 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7119 fi 7120 7121 if test -n "$ac_tool_prefix"; then 7122 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7123 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7125 $as_echo_n "checking for $ac_word... " >&6; } 7126 if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7127 $as_echo_n "(cached) " >&6 7128 else 7129 if test -n "$NMEDIT"; then 7130 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7131 else 7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133 for as_dir in $PATH 7134 do 7135 IFS=$as_save_IFS 7136 test -z "$as_dir" && as_dir=. 7137 for ac_exec_ext in '' $ac_executable_extensions; do 7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7139 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7141 break 2 7142 fi 7143 done 7144 done 7145 IFS=$as_save_IFS 7146 7147 fi 7148 fi 7149 NMEDIT=$ac_cv_prog_NMEDIT 7150 if test -n "$NMEDIT"; then 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7152 $as_echo "$NMEDIT" >&6; } 7153 else 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7155 $as_echo "no" >&6; } 7156 fi 7157 7158 7159 fi 7160 if test -z "$ac_cv_prog_NMEDIT"; then 7161 ac_ct_NMEDIT=$NMEDIT 7162 # Extract the first word of "nmedit", so it can be a program name with args. 7163 set dummy nmedit; ac_word=$2 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165 $as_echo_n "checking for $ac_word... " >&6; } 7166 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7167 $as_echo_n "(cached) " >&6 7168 else 7169 if test -n "$ac_ct_NMEDIT"; then 7170 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7171 else 7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173 for as_dir in $PATH 7174 do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7179 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183 done 7184 done 7185 IFS=$as_save_IFS 7186 7187 fi 7188 fi 7189 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7190 if test -n "$ac_ct_NMEDIT"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7192 $as_echo "$ac_ct_NMEDIT" >&6; } 7193 else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195 $as_echo "no" >&6; } 7196 fi 7197 7198 if test "x$ac_ct_NMEDIT" = x; then 7199 NMEDIT=":" 7200 else 7201 case $cross_compiling:$ac_tool_warned in 7202 yes:) 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7205 ac_tool_warned=yes ;; 7206 esac 7207 NMEDIT=$ac_ct_NMEDIT 7208 fi 7209 else 7210 NMEDIT="$ac_cv_prog_NMEDIT" 7211 fi 7212 7213 if test -n "$ac_tool_prefix"; then 7214 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7215 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7217 $as_echo_n "checking for $ac_word... " >&6; } 7218 if test "${ac_cv_prog_LIPO+set}" = set; then : 7219 $as_echo_n "(cached) " >&6 7220 else 7221 if test -n "$LIPO"; then 7222 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7223 else 7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7225 for as_dir in $PATH 7226 do 7227 IFS=$as_save_IFS 7228 test -z "$as_dir" && as_dir=. 7229 for ac_exec_ext in '' $ac_executable_extensions; do 7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7231 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7233 break 2 7234 fi 7235 done 7236 done 7237 IFS=$as_save_IFS 7238 7239 fi 7240 fi 7241 LIPO=$ac_cv_prog_LIPO 7242 if test -n "$LIPO"; then 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7244 $as_echo "$LIPO" >&6; } 7245 else 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7247 $as_echo "no" >&6; } 7248 fi 7249 7250 7251 fi 7252 if test -z "$ac_cv_prog_LIPO"; then 7253 ac_ct_LIPO=$LIPO 7254 # Extract the first word of "lipo", so it can be a program name with args. 7255 set dummy lipo; ac_word=$2 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7257 $as_echo_n "checking for $ac_word... " >&6; } 7258 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7259 $as_echo_n "(cached) " >&6 7260 else 7261 if test -n "$ac_ct_LIPO"; then 7262 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7263 else 7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7265 for as_dir in $PATH 7266 do 7267 IFS=$as_save_IFS 7268 test -z "$as_dir" && as_dir=. 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7271 ac_cv_prog_ac_ct_LIPO="lipo" 7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275 done 7276 done 7277 IFS=$as_save_IFS 7278 7279 fi 7280 fi 7281 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7282 if test -n "$ac_ct_LIPO"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7284 $as_echo "$ac_ct_LIPO" >&6; } 7285 else 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7287 $as_echo "no" >&6; } 7288 fi 7289 7290 if test "x$ac_ct_LIPO" = x; then 7291 LIPO=":" 7292 else 7293 case $cross_compiling:$ac_tool_warned in 7294 yes:) 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7297 ac_tool_warned=yes ;; 7298 esac 7299 LIPO=$ac_ct_LIPO 7300 fi 7301 else 7302 LIPO="$ac_cv_prog_LIPO" 7303 fi 7304 7305 if test -n "$ac_tool_prefix"; then 7306 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7307 set dummy ${ac_tool_prefix}otool; ac_word=$2 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7309 $as_echo_n "checking for $ac_word... " >&6; } 7310 if test "${ac_cv_prog_OTOOL+set}" = set; then : 7311 $as_echo_n "(cached) " >&6 7312 else 7313 if test -n "$OTOOL"; then 7314 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7315 else 7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7317 for as_dir in $PATH 7318 do 7319 IFS=$as_save_IFS 7320 test -z "$as_dir" && as_dir=. 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7323 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327 done 7328 done 7329 IFS=$as_save_IFS 7330 7331 fi 7332 fi 7333 OTOOL=$ac_cv_prog_OTOOL 7334 if test -n "$OTOOL"; then 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7336 $as_echo "$OTOOL" >&6; } 7337 else 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7339 $as_echo "no" >&6; } 7340 fi 7341 7342 7343 fi 7344 if test -z "$ac_cv_prog_OTOOL"; then 7345 ac_ct_OTOOL=$OTOOL 7346 # Extract the first word of "otool", so it can be a program name with args. 7347 set dummy otool; ac_word=$2 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7349 $as_echo_n "checking for $ac_word... " >&6; } 7350 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7351 $as_echo_n "(cached) " >&6 7352 else 7353 if test -n "$ac_ct_OTOOL"; then 7354 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7355 else 7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7357 for as_dir in $PATH 7358 do 7359 IFS=$as_save_IFS 7360 test -z "$as_dir" && as_dir=. 7361 for ac_exec_ext in '' $ac_executable_extensions; do 7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7363 ac_cv_prog_ac_ct_OTOOL="otool" 7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7365 break 2 7366 fi 7367 done 7368 done 7369 IFS=$as_save_IFS 7370 7371 fi 7372 fi 7373 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7374 if test -n "$ac_ct_OTOOL"; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7376 $as_echo "$ac_ct_OTOOL" >&6; } 7377 else 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7379 $as_echo "no" >&6; } 7380 fi 7381 7382 if test "x$ac_ct_OTOOL" = x; then 7383 OTOOL=":" 7384 else 7385 case $cross_compiling:$ac_tool_warned in 7386 yes:) 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7389 ac_tool_warned=yes ;; 7390 esac 7391 OTOOL=$ac_ct_OTOOL 7392 fi 7393 else 7394 OTOOL="$ac_cv_prog_OTOOL" 7395 fi 7396 7397 if test -n "$ac_tool_prefix"; then 7398 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7399 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7401 $as_echo_n "checking for $ac_word... " >&6; } 7402 if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7403 $as_echo_n "(cached) " >&6 7404 else 7405 if test -n "$OTOOL64"; then 7406 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7407 else 7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7409 for as_dir in $PATH 7410 do 7411 IFS=$as_save_IFS 7412 test -z "$as_dir" && as_dir=. 7413 for ac_exec_ext in '' $ac_executable_extensions; do 7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7415 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7417 break 2 7418 fi 7419 done 7420 done 7421 IFS=$as_save_IFS 7422 7423 fi 7424 fi 7425 OTOOL64=$ac_cv_prog_OTOOL64 7426 if test -n "$OTOOL64"; then 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7428 $as_echo "$OTOOL64" >&6; } 7429 else 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7431 $as_echo "no" >&6; } 7432 fi 7433 7434 7435 fi 7436 if test -z "$ac_cv_prog_OTOOL64"; then 7437 ac_ct_OTOOL64=$OTOOL64 7438 # Extract the first word of "otool64", so it can be a program name with args. 7439 set dummy otool64; ac_word=$2 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7441 $as_echo_n "checking for $ac_word... " >&6; } 7442 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7443 $as_echo_n "(cached) " >&6 7444 else 7445 if test -n "$ac_ct_OTOOL64"; then 7446 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7447 else 7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7449 for as_dir in $PATH 7450 do 7451 IFS=$as_save_IFS 7452 test -z "$as_dir" && as_dir=. 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7455 ac_cv_prog_ac_ct_OTOOL64="otool64" 7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459 done 7460 done 7461 IFS=$as_save_IFS 7462 7463 fi 7464 fi 7465 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7466 if test -n "$ac_ct_OTOOL64"; then 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7468 $as_echo "$ac_ct_OTOOL64" >&6; } 7469 else 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471 $as_echo "no" >&6; } 7472 fi 7473 7474 if test "x$ac_ct_OTOOL64" = x; then 7475 OTOOL64=":" 7476 else 7477 case $cross_compiling:$ac_tool_warned in 7478 yes:) 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7481 ac_tool_warned=yes ;; 7482 esac 7483 OTOOL64=$ac_ct_OTOOL64 7484 fi 7485 else 7486 OTOOL64="$ac_cv_prog_OTOOL64" 7487 fi 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7516 $as_echo_n "checking for -single_module linker flag... " >&6; } 7517 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7518 $as_echo_n "(cached) " >&6 7519 else 7520 lt_cv_apple_cc_single_mod=no 7521 if test -z "${LT_MULTI_MODULE}"; then 7522 # By default we will add the -single_module flag. You can override 7523 # by either setting the environment variable LT_MULTI_MODULE 7524 # non-empty at configure time, or by adding -multi_module to the 7525 # link flags. 7526 rm -rf libconftest.dylib* 7527 echo "int foo(void){return 1;}" > conftest.c 7528 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7529 -dynamiclib -Wl,-single_module conftest.c" >&5 7530 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7531 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7532 _lt_result=$? 7533 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7534 lt_cv_apple_cc_single_mod=yes 7535 else 7536 cat conftest.err >&5 7537 fi 7538 rm -rf libconftest.dylib* 7539 rm -f conftest.* 7540 fi 7541 fi 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7543 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7545 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7546 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7547 $as_echo_n "(cached) " >&6 7548 else 7549 lt_cv_ld_exported_symbols_list=no 7550 save_LDFLAGS=$LDFLAGS 7551 echo "_main" > conftest.sym 7552 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7554 /* end confdefs.h. */ 7555 7556 int 7557 main () 7558 { 7559 7560 ; 7561 return 0; 7562 } 7563 _ACEOF 7564 if ac_fn_c_try_link "$LINENO"; then : 7565 lt_cv_ld_exported_symbols_list=yes 7566 else 7567 lt_cv_ld_exported_symbols_list=no 7568 fi 7569 rm -f core conftest.err conftest.$ac_objext \ 7570 conftest$ac_exeext conftest.$ac_ext 7571 LDFLAGS="$save_LDFLAGS" 7572 7573 fi 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7575 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7577 $as_echo_n "checking for -force_load linker flag... " >&6; } 7578 if test "${lt_cv_ld_force_load+set}" = set; then : 7579 $as_echo_n "(cached) " >&6 7580 else 7581 lt_cv_ld_force_load=no 7582 cat > conftest.c << _LT_EOF 7583 int forced_loaded() { return 2;} 7584 _LT_EOF 7585 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7586 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7587 echo "$AR cru libconftest.a conftest.o" >&5 7588 $AR cru libconftest.a conftest.o 2>&5 7589 echo "$RANLIB libconftest.a" >&5 7590 $RANLIB libconftest.a 2>&5 7591 cat > conftest.c << _LT_EOF 7592 int main() { return 0;} 7593 _LT_EOF 7594 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7595 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7596 _lt_result=$? 7597 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7598 lt_cv_ld_force_load=yes 7599 else 7600 cat conftest.err >&5 7601 fi 7602 rm -f conftest.err libconftest.a conftest conftest.c 7603 rm -rf conftest.dSYM 7604 7605 fi 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7607 $as_echo "$lt_cv_ld_force_load" >&6; } 7608 case $host_os in 7609 rhapsody* | darwin1.[012]) 7610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7611 darwin1.*) 7612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7613 darwin*) # darwin 5.x on 7614 # if running on 10.5 or later, the deployment target defaults 7615 # to the OS version, if on x86, and 10.4, the deployment 7616 # target defaults to 10.4. Don't you love it? 7617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7618 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7620 10.[012]*) 7621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7622 10.*) 7623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7624 esac 7625 ;; 7626 esac 7627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7628 _lt_dar_single_mod='$single_module' 7629 fi 7630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7632 else 7633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7634 fi 7635 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7636 _lt_dsymutil='~$DSYMUTIL $lib || :' 7637 else 7638 _lt_dsymutil= 7639 fi 7640 ;; 7641 esac 7642 7643 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7645 $as_echo_n "checking for ANSI C header files... " >&6; } 7646 if test "${ac_cv_header_stdc+set}" = set; then : 7647 $as_echo_n "(cached) " >&6 7648 else 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650 /* end confdefs.h. */ 7651 #include <stdlib.h> 7652 #include <stdarg.h> 7653 #include <string.h> 7654 #include <float.h> 7655 7656 int 7657 main () 7658 { 7659 7660 ; 7661 return 0; 7662 } 7663 _ACEOF 7664 if ac_fn_c_try_compile "$LINENO"; then : 7665 ac_cv_header_stdc=yes 7666 else 7667 ac_cv_header_stdc=no 7668 fi 7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7670 7671 if test $ac_cv_header_stdc = yes; then 7672 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674 /* end confdefs.h. */ 7675 #include <string.h> 7676 7677 _ACEOF 7678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7679 $EGREP "memchr" >/dev/null 2>&1; then : 7680 7681 else 7682 ac_cv_header_stdc=no 7683 fi 7684 rm -f conftest* 7685 7686 fi 7687 7688 if test $ac_cv_header_stdc = yes; then 7689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691 /* end confdefs.h. */ 7692 #include <stdlib.h> 7693 7694 _ACEOF 7695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7696 $EGREP "free" >/dev/null 2>&1; then : 7697 7698 else 7699 ac_cv_header_stdc=no 7700 fi 7701 rm -f conftest* 7702 7703 fi 7704 7705 if test $ac_cv_header_stdc = yes; then 7706 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7707 if test "$cross_compiling" = yes; then : 7708 : 7709 else 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711 /* end confdefs.h. */ 7712 #include <ctype.h> 7713 #include <stdlib.h> 7714 #if ((' ' & 0x0FF) == 0x020) 7715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7717 #else 7718 # define ISLOWER(c) \ 7719 (('a' <= (c) && (c) <= 'i') \ 7720 || ('j' <= (c) && (c) <= 'r') \ 7721 || ('s' <= (c) && (c) <= 'z')) 7722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7723 #endif 7724 7725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7726 int 7727 main () 7728 { 7729 int i; 7730 for (i = 0; i < 256; i++) 7731 if (XOR (islower (i), ISLOWER (i)) 7732 || toupper (i) != TOUPPER (i)) 7733 return 2; 7734 return 0; 7735 } 7736 _ACEOF 7737 if ac_fn_c_try_run "$LINENO"; then : 7738 7739 else 7740 ac_cv_header_stdc=no 7741 fi 7742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7743 conftest.$ac_objext conftest.beam conftest.$ac_ext 7744 fi 7745 7746 fi 7747 fi 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7749 $as_echo "$ac_cv_header_stdc" >&6; } 7750 if test $ac_cv_header_stdc = yes; then 7751 7752 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7753 7754 fi 7755 7756 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7757 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7758 inttypes.h stdint.h unistd.h 7759 do : 7760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7761 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7762 " 7763 eval as_val=\$$as_ac_Header 7764 if test "x$as_val" = x""yes; then : 7765 cat >>confdefs.h <<_ACEOF 7766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7767 _ACEOF 7768 7769 fi 7770 7771 done 7772 7773 7774 for ac_header in dlfcn.h 7775 do : 7776 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7777 " 7778 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7779 cat >>confdefs.h <<_ACEOF 7780 #define HAVE_DLFCN_H 1 7781 _ACEOF 7782 7783 fi 7784 7785 done 7786 7787 7788 7789 7790 7791 # Set options 7792 7793 7794 7795 enable_dlopen=no 7796 7797 7798 enable_win32_dll=no 7799 7800 7801 # Check whether --enable-shared was given. 7802 if test "${enable_shared+set}" = set; then : 7803 enableval=$enable_shared; p=${PACKAGE-default} 7804 case $enableval in 7805 yes) enable_shared=yes ;; 7806 no) enable_shared=no ;; 7807 *) 7808 enable_shared=no 7809 # Look at the argument we got. We use all the common list separators. 7810 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7811 for pkg in $enableval; do 7812 IFS="$lt_save_ifs" 7813 if test "X$pkg" = "X$p"; then 7814 enable_shared=yes 7815 fi 7816 done 7817 IFS="$lt_save_ifs" 7818 ;; 7819 esac 7820 else 7821 enable_shared=yes 7822 fi 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 # Check whether --enable-static was given. 7833 if test "${enable_static+set}" = set; then : 7834 enableval=$enable_static; p=${PACKAGE-default} 7835 case $enableval in 7836 yes) enable_static=yes ;; 7837 no) enable_static=no ;; 7838 *) 7839 enable_static=no 7840 # Look at the argument we got. We use all the common list separators. 7841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7842 for pkg in $enableval; do 7843 IFS="$lt_save_ifs" 7844 if test "X$pkg" = "X$p"; then 7845 enable_static=yes 7846 fi 7847 done 7848 IFS="$lt_save_ifs" 7849 ;; 7850 esac 7851 else 7852 enable_static=yes 7853 fi 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 # Check whether --with-pic was given. 7865 if test "${with_pic+set}" = set; then : 7866 withval=$with_pic; pic_mode="$withval" 7867 else 7868 pic_mode=default 7869 fi 7870 7871 7872 test -z "$pic_mode" && pic_mode=default 7873 7874 7875 7876 7877 7878 7879 7880 # Check whether --enable-fast-install was given. 7881 if test "${enable_fast_install+set}" = set; then : 7882 enableval=$enable_fast_install; p=${PACKAGE-default} 7883 case $enableval in 7884 yes) enable_fast_install=yes ;; 7885 no) enable_fast_install=no ;; 7886 *) 7887 enable_fast_install=no 7888 # Look at the argument we got. We use all the common list separators. 7889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7890 for pkg in $enableval; do 7891 IFS="$lt_save_ifs" 7892 if test "X$pkg" = "X$p"; then 7893 enable_fast_install=yes 7894 fi 7895 done 7896 IFS="$lt_save_ifs" 7897 ;; 7898 esac 7899 else 7900 enable_fast_install=yes 7901 fi 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 # This can be used to rebuild libtool when needed 7914 LIBTOOL_DEPS="$ltmain" 7915 7916 # Always use our own libtool. 7917 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 test -z "$LN_S" && LN_S="ln -s" 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 if test -n "${ZSH_VERSION+set}" ; then 7960 setopt NO_GLOB_SUBST 7961 fi 7962 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7964 $as_echo_n "checking for objdir... " >&6; } 7965 if test "${lt_cv_objdir+set}" = set; then : 7966 $as_echo_n "(cached) " >&6 7967 else 7968 rm -f .libs 2>/dev/null 7969 mkdir .libs 2>/dev/null 7970 if test -d .libs; then 7971 lt_cv_objdir=.libs 7972 else 7973 # MS-DOS does not allow filenames that begin with a dot. 7974 lt_cv_objdir=_libs 7975 fi 7976 rmdir .libs 2>/dev/null 7977 fi 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7979 $as_echo "$lt_cv_objdir" >&6; } 7980 objdir=$lt_cv_objdir 7981 7982 7983 7984 7985 7986 cat >>confdefs.h <<_ACEOF 7987 #define LT_OBJDIR "$lt_cv_objdir/" 7988 _ACEOF 7989 7990 7991 7992 7993 case $host_os in 7994 aix3*) 7995 # AIX sometimes has problems with the GCC collect2 program. For some 7996 # reason, if we set the COLLECT_NAMES environment variable, the problems 7997 # vanish in a puff of smoke. 7998 if test "X${COLLECT_NAMES+set}" != Xset; then 7999 COLLECT_NAMES= 8000 export COLLECT_NAMES 8001 fi 8002 ;; 8003 esac 8004 8005 # Global variables: 8006 ofile=libtool 8007 can_build_shared=yes 8008 8009 # All known linkers require a `.a' archive for static linking (except MSVC, 8010 # which needs '.lib'). 8011 libext=a 8012 8013 with_gnu_ld="$lt_cv_prog_gnu_ld" 8014 8015 old_CC="$CC" 8016 old_CFLAGS="$CFLAGS" 8017 8018 # Set sane defaults for various variables 8019 test -z "$CC" && CC=cc 8020 test -z "$LTCC" && LTCC=$CC 8021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8022 test -z "$LD" && LD=ld 8023 test -z "$ac_objext" && ac_objext=o 8024 8025 for cc_temp in $compiler""; do 8026 case $cc_temp in 8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8029 \-*) ;; 8030 *) break;; 8031 esac 8032 done 8033 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8034 8035 8036 # Only perform the check for file, if the check method requires it 8037 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8038 case $deplibs_check_method in 8039 file_magic*) 8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8044 $as_echo_n "(cached) " >&6 8045 else 8046 case $MAGIC_CMD in 8047 [\\/*] | ?:[\\/]*) 8048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8049 ;; 8050 *) 8051 lt_save_MAGIC_CMD="$MAGIC_CMD" 8052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8054 for ac_dir in $ac_dummy; do 8055 IFS="$lt_save_ifs" 8056 test -z "$ac_dir" && ac_dir=. 8057 if test -f $ac_dir/${ac_tool_prefix}file; then 8058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8059 if test -n "$file_magic_test_file"; then 8060 case $deplibs_check_method in 8061 "file_magic "*) 8062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8065 $EGREP "$file_magic_regex" > /dev/null; then 8066 : 8067 else 8068 cat <<_LT_EOF 1>&2 8069 8070 *** Warning: the command libtool uses to detect shared libraries, 8071 *** $file_magic_cmd, produces output that libtool cannot recognize. 8072 *** The result is that libtool may fail to recognize shared libraries 8073 *** as such. This will affect the creation of libtool libraries that 8074 *** depend on shared libraries, but programs linked with such libtool 8075 *** libraries will work regardless of this problem. Nevertheless, you 8076 *** may want to report the problem to your system manager and/or to 8077 *** bug-libtool@gnu.org 8078 8079 _LT_EOF 8080 fi ;; 8081 esac 8082 fi 8083 break 8084 fi 8085 done 8086 IFS="$lt_save_ifs" 8087 MAGIC_CMD="$lt_save_MAGIC_CMD" 8088 ;; 8089 esac 8090 fi 8091 8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8093 if test -n "$MAGIC_CMD"; then 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8095 $as_echo "$MAGIC_CMD" >&6; } 8096 else 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8098 $as_echo "no" >&6; } 8099 fi 8100 8101 8102 8103 8104 8105 if test -z "$lt_cv_path_MAGIC_CMD"; then 8106 if test -n "$ac_tool_prefix"; then 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8108 $as_echo_n "checking for file... " >&6; } 8109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8110 $as_echo_n "(cached) " >&6 8111 else 8112 case $MAGIC_CMD in 8113 [\\/*] | ?:[\\/]*) 8114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8115 ;; 8116 *) 8117 lt_save_MAGIC_CMD="$MAGIC_CMD" 8118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8120 for ac_dir in $ac_dummy; do 8121 IFS="$lt_save_ifs" 8122 test -z "$ac_dir" && ac_dir=. 8123 if test -f $ac_dir/file; then 8124 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8125 if test -n "$file_magic_test_file"; then 8126 case $deplibs_check_method in 8127 "file_magic "*) 8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8131 $EGREP "$file_magic_regex" > /dev/null; then 8132 : 8133 else 8134 cat <<_LT_EOF 1>&2 8135 8136 *** Warning: the command libtool uses to detect shared libraries, 8137 *** $file_magic_cmd, produces output that libtool cannot recognize. 8138 *** The result is that libtool may fail to recognize shared libraries 8139 *** as such. This will affect the creation of libtool libraries that 8140 *** depend on shared libraries, but programs linked with such libtool 8141 *** libraries will work regardless of this problem. Nevertheless, you 8142 *** may want to report the problem to your system manager and/or to 8143 *** bug-libtool@gnu.org 8144 8145 _LT_EOF 8146 fi ;; 8147 esac 8148 fi 8149 break 8150 fi 8151 done 8152 IFS="$lt_save_ifs" 8153 MAGIC_CMD="$lt_save_MAGIC_CMD" 8154 ;; 8155 esac 8156 fi 8157 8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8159 if test -n "$MAGIC_CMD"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8161 $as_echo "$MAGIC_CMD" >&6; } 8162 else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164 $as_echo "no" >&6; } 8165 fi 8166 8167 8168 else 8169 MAGIC_CMD=: 8170 fi 8171 fi 8172 8173 fi 8174 ;; 8175 esac 8176 8177 # Use C for the default configuration in the libtool script 8178 8179 lt_save_CC="$CC" 8180 ac_ext=c 8181 ac_cpp='$CPP $CPPFLAGS' 8182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8184 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8185 8186 8187 # Source file extension for C test sources. 8188 ac_ext=c 8189 8190 # Object file extension for compiled C test sources. 8191 objext=o 8192 objext=$objext 8193 8194 # Code to be used in simple compile tests 8195 lt_simple_compile_test_code="int some_variable = 0;" 8196 8197 # Code to be used in simple link tests 8198 lt_simple_link_test_code='int main(){return(0);}' 8199 8200 8201 8202 8203 8204 8205 8206 # If no C compiler was specified, use CC. 8207 LTCC=${LTCC-"$CC"} 8208 8209 # If no C compiler flags were specified, use CFLAGS. 8210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8211 8212 # Allow CC to be a program name with arguments. 8213 compiler=$CC 8214 8215 # Save the default compiler, since it gets overwritten when the other 8216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8217 compiler_DEFAULT=$CC 8218 8219 # save warnings/boilerplate of simple test code 8220 ac_outfile=conftest.$ac_objext 8221 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8223 _lt_compiler_boilerplate=`cat conftest.err` 8224 $RM conftest* 8225 8226 ac_outfile=conftest.$ac_objext 8227 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8229 _lt_linker_boilerplate=`cat conftest.err` 8230 $RM -r conftest* 8231 8232 8233 ## CAVEAT EMPTOR: 8234 ## There is no encapsulation within the following macros, do not change 8235 ## the running order or otherwise move them around unless you know exactly 8236 ## what you are doing... 8237 if test -n "$compiler"; then 8238 8239 lt_prog_compiler_no_builtin_flag= 8240 8241 if test "$GCC" = yes; then 8242 case $cc_basename in 8243 nvcc*) 8244 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8245 *) 8246 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8247 esac 8248 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8250 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8251 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8252 $as_echo_n "(cached) " >&6 8253 else 8254 lt_cv_prog_compiler_rtti_exceptions=no 8255 ac_outfile=conftest.$ac_objext 8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8257 lt_compiler_flag="-fno-rtti -fno-exceptions" 8258 # Insert the option either (1) after the last *FLAGS variable, or 8259 # (2) before a word containing "conftest.", or (3) at the end. 8260 # Note that $ac_compile itself does not contain backslashes and begins 8261 # with a dollar sign (not a hyphen), so the echo should work correctly. 8262 # The option is referenced via a variable to avoid confusing sed. 8263 lt_compile=`echo "$ac_compile" | $SED \ 8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8266 -e 's:$: $lt_compiler_flag:'` 8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8268 (eval "$lt_compile" 2>conftest.err) 8269 ac_status=$? 8270 cat conftest.err >&5 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 if (exit $ac_status) && test -s "$ac_outfile"; then 8273 # The compiler can only warn and ignore the option if not recognized 8274 # So say no if there are warnings other than the usual output. 8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8278 lt_cv_prog_compiler_rtti_exceptions=yes 8279 fi 8280 fi 8281 $RM conftest* 8282 8283 fi 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8285 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8286 8287 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8288 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8289 else 8290 : 8291 fi 8292 8293 fi 8294 8295 8296 8297 8298 8299 8300 lt_prog_compiler_wl= 8301 lt_prog_compiler_pic= 8302 lt_prog_compiler_static= 8303 8304 8305 if test "$GCC" = yes; then 8306 lt_prog_compiler_wl='-Wl,' 8307 lt_prog_compiler_static='-static' 8308 8309 case $host_os in 8310 aix*) 8311 # All AIX code is PIC. 8312 if test "$host_cpu" = ia64; then 8313 # AIX 5 now supports IA64 processor 8314 lt_prog_compiler_static='-Bstatic' 8315 fi 8316 ;; 8317 8318 amigaos*) 8319 case $host_cpu in 8320 powerpc) 8321 # see comment about AmigaOS4 .so support 8322 lt_prog_compiler_pic='-fPIC' 8323 ;; 8324 m68k) 8325 # FIXME: we need at least 68020 code to build shared libraries, but 8326 # adding the `-m68020' flag to GCC prevents building anything better, 8327 # like `-m68040'. 8328 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8329 ;; 8330 esac 8331 ;; 8332 8333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8334 # PIC is the default for these OSes. 8335 ;; 8336 8337 mingw* | cygwin* | pw32* | os2* | cegcc*) 8338 # This hack is so that the source file can tell whether it is being 8339 # built for inclusion in a dll (and should export symbols for example). 8340 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8341 # (--disable-auto-import) libraries 8342 lt_prog_compiler_pic='-DDLL_EXPORT' 8343 ;; 8344 8345 darwin* | rhapsody*) 8346 # PIC is the default on this platform 8347 # Common symbols not allowed in MH_DYLIB files 8348 lt_prog_compiler_pic='-fno-common' 8349 ;; 8350 8351 haiku*) 8352 # PIC is the default for Haiku. 8353 # The "-static" flag exists, but is broken. 8354 lt_prog_compiler_static= 8355 ;; 8356 8357 hpux*) 8358 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8359 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8360 # sets the default TLS model and affects inlining. 8361 case $host_cpu in 8362 hppa*64*) 8363 # +Z the default 8364 ;; 8365 *) 8366 lt_prog_compiler_pic='-fPIC' 8367 ;; 8368 esac 8369 ;; 8370 8371 interix[3-9]*) 8372 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8373 # Instead, we relocate shared libraries at runtime. 8374 ;; 8375 8376 msdosdjgpp*) 8377 # Just because we use GCC doesn't mean we suddenly get shared libraries 8378 # on systems that don't support them. 8379 lt_prog_compiler_can_build_shared=no 8380 enable_shared=no 8381 ;; 8382 8383 *nto* | *qnx*) 8384 # QNX uses GNU C++, but need to define -shared option too, otherwise 8385 # it will coredump. 8386 lt_prog_compiler_pic='-fPIC -shared' 8387 ;; 8388 8389 sysv4*MP*) 8390 if test -d /usr/nec; then 8391 lt_prog_compiler_pic=-Kconform_pic 8392 fi 8393 ;; 8394 8395 *) 8396 lt_prog_compiler_pic='-fPIC' 8397 ;; 8398 esac 8399 8400 case $cc_basename in 8401 nvcc*) # Cuda Compiler Driver 2.2 8402 lt_prog_compiler_wl='-Xlinker ' 8403 lt_prog_compiler_pic='-Xcompiler -fPIC' 8404 ;; 8405 esac 8406 else 8407 # PORTME Check for flag to pass linker flags through the system compiler. 8408 case $host_os in 8409 aix*) 8410 lt_prog_compiler_wl='-Wl,' 8411 if test "$host_cpu" = ia64; then 8412 # AIX 5 now supports IA64 processor 8413 lt_prog_compiler_static='-Bstatic' 8414 else 8415 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8416 fi 8417 ;; 8418 8419 mingw* | cygwin* | pw32* | os2* | cegcc*) 8420 # This hack is so that the source file can tell whether it is being 8421 # built for inclusion in a dll (and should export symbols for example). 8422 lt_prog_compiler_pic='-DDLL_EXPORT' 8423 ;; 8424 8425 hpux9* | hpux10* | hpux11*) 8426 lt_prog_compiler_wl='-Wl,' 8427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8428 # not for PA HP-UX. 8429 case $host_cpu in 8430 hppa*64*|ia64*) 8431 # +Z the default 8432 ;; 8433 *) 8434 lt_prog_compiler_pic='+Z' 8435 ;; 8436 esac 8437 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8438 lt_prog_compiler_static='${wl}-a ${wl}archive' 8439 ;; 8440 8441 irix5* | irix6* | nonstopux*) 8442 lt_prog_compiler_wl='-Wl,' 8443 # PIC (with -KPIC) is the default. 8444 lt_prog_compiler_static='-non_shared' 8445 ;; 8446 8447 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8448 case $cc_basename in 8449 # old Intel for x86_64 which still supported -KPIC. 8450 ecc*) 8451 lt_prog_compiler_wl='-Wl,' 8452 lt_prog_compiler_pic='-KPIC' 8453 lt_prog_compiler_static='-static' 8454 ;; 8455 # icc used to be incompatible with GCC. 8456 # ICC 10 doesn't accept -KPIC any more. 8457 icc* | ifort*) 8458 lt_prog_compiler_wl='-Wl,' 8459 lt_prog_compiler_pic='-fPIC' 8460 lt_prog_compiler_static='-static' 8461 ;; 8462 # Lahey Fortran 8.1. 8463 lf95*) 8464 lt_prog_compiler_wl='-Wl,' 8465 lt_prog_compiler_pic='--shared' 8466 lt_prog_compiler_static='--static' 8467 ;; 8468 nagfor*) 8469 # NAG Fortran compiler 8470 lt_prog_compiler_wl='-Wl,-Wl,,' 8471 lt_prog_compiler_pic='-PIC' 8472 lt_prog_compiler_static='-Bstatic' 8473 ;; 8474 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8475 # Portland Group compilers (*not* the Pentium gcc compiler, 8476 # which looks to be a dead project) 8477 lt_prog_compiler_wl='-Wl,' 8478 lt_prog_compiler_pic='-fpic' 8479 lt_prog_compiler_static='-Bstatic' 8480 ;; 8481 ccc*) 8482 lt_prog_compiler_wl='-Wl,' 8483 # All Alpha code is PIC. 8484 lt_prog_compiler_static='-non_shared' 8485 ;; 8486 xl* | bgxl* | bgf* | mpixl*) 8487 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8488 lt_prog_compiler_wl='-Wl,' 8489 lt_prog_compiler_pic='-qpic' 8490 lt_prog_compiler_static='-qstaticlink' 8491 ;; 8492 *) 8493 case `$CC -V 2>&1 | sed 5q` in 8494 *Sun\ F* | *Sun*Fortran*) 8495 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8496 lt_prog_compiler_pic='-KPIC' 8497 lt_prog_compiler_static='-Bstatic' 8498 lt_prog_compiler_wl='' 8499 ;; 8500 *Sun\ C*) 8501 # Sun C 5.9 8502 lt_prog_compiler_pic='-KPIC' 8503 lt_prog_compiler_static='-Bstatic' 8504 lt_prog_compiler_wl='-Wl,' 8505 ;; 8506 esac 8507 ;; 8508 esac 8509 ;; 8510 8511 newsos6) 8512 lt_prog_compiler_pic='-KPIC' 8513 lt_prog_compiler_static='-Bstatic' 8514 ;; 8515 8516 *nto* | *qnx*) 8517 # QNX uses GNU C++, but need to define -shared option too, otherwise 8518 # it will coredump. 8519 lt_prog_compiler_pic='-fPIC -shared' 8520 ;; 8521 8522 osf3* | osf4* | osf5*) 8523 lt_prog_compiler_wl='-Wl,' 8524 # All OSF/1 code is PIC. 8525 lt_prog_compiler_static='-non_shared' 8526 ;; 8527 8528 rdos*) 8529 lt_prog_compiler_static='-non_shared' 8530 ;; 8531 8532 solaris*) 8533 lt_prog_compiler_pic='-KPIC' 8534 lt_prog_compiler_static='-Bstatic' 8535 case $cc_basename in 8536 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8537 lt_prog_compiler_wl='-Qoption ld ';; 8538 *) 8539 lt_prog_compiler_wl='-Wl,';; 8540 esac 8541 ;; 8542 8543 sunos4*) 8544 lt_prog_compiler_wl='-Qoption ld ' 8545 lt_prog_compiler_pic='-PIC' 8546 lt_prog_compiler_static='-Bstatic' 8547 ;; 8548 8549 sysv4 | sysv4.2uw2* | sysv4.3*) 8550 lt_prog_compiler_wl='-Wl,' 8551 lt_prog_compiler_pic='-KPIC' 8552 lt_prog_compiler_static='-Bstatic' 8553 ;; 8554 8555 sysv4*MP*) 8556 if test -d /usr/nec ;then 8557 lt_prog_compiler_pic='-Kconform_pic' 8558 lt_prog_compiler_static='-Bstatic' 8559 fi 8560 ;; 8561 8562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8563 lt_prog_compiler_wl='-Wl,' 8564 lt_prog_compiler_pic='-KPIC' 8565 lt_prog_compiler_static='-Bstatic' 8566 ;; 8567 8568 unicos*) 8569 lt_prog_compiler_wl='-Wl,' 8570 lt_prog_compiler_can_build_shared=no 8571 ;; 8572 8573 uts4*) 8574 lt_prog_compiler_pic='-pic' 8575 lt_prog_compiler_static='-Bstatic' 8576 ;; 8577 8578 *) 8579 lt_prog_compiler_can_build_shared=no 8580 ;; 8581 esac 8582 fi 8583 8584 case $host_os in 8585 # For platforms which do not support PIC, -DPIC is meaningless: 8586 *djgpp*) 8587 lt_prog_compiler_pic= 8588 ;; 8589 *) 8590 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8591 ;; 8592 esac 8593 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8596 if test "${lt_cv_prog_compiler_pic+set}" = set; then : 8597 $as_echo_n "(cached) " >&6 8598 else 8599 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8600 fi 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8602 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8603 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8604 8605 # 8606 # Check to make sure the PIC flag actually works. 8607 # 8608 if test -n "$lt_prog_compiler_pic"; then 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8611 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8612 $as_echo_n "(cached) " >&6 8613 else 8614 lt_cv_prog_compiler_pic_works=no 8615 ac_outfile=conftest.$ac_objext 8616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8617 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8618 # Insert the option either (1) after the last *FLAGS variable, or 8619 # (2) before a word containing "conftest.", or (3) at the end. 8620 # Note that $ac_compile itself does not contain backslashes and begins 8621 # with a dollar sign (not a hyphen), so the echo should work correctly. 8622 # The option is referenced via a variable to avoid confusing sed. 8623 lt_compile=`echo "$ac_compile" | $SED \ 8624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8626 -e 's:$: $lt_compiler_flag:'` 8627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8628 (eval "$lt_compile" 2>conftest.err) 8629 ac_status=$? 8630 cat conftest.err >&5 8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 if (exit $ac_status) && test -s "$ac_outfile"; then 8633 # The compiler can only warn and ignore the option if not recognized 8634 # So say no if there are warnings other than the usual output. 8635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8638 lt_cv_prog_compiler_pic_works=yes 8639 fi 8640 fi 8641 $RM conftest* 8642 8643 fi 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8645 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8646 8647 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8648 case $lt_prog_compiler_pic in 8649 "" | " "*) ;; 8650 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8651 esac 8652 else 8653 lt_prog_compiler_pic= 8654 lt_prog_compiler_can_build_shared=no 8655 fi 8656 8657 fi 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 # 8670 # Check to make sure the static flag actually works. 8671 # 8672 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8674 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8675 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8676 $as_echo_n "(cached) " >&6 8677 else 8678 lt_cv_prog_compiler_static_works=no 8679 save_LDFLAGS="$LDFLAGS" 8680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8681 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8683 # The linker can only warn and ignore the option if not recognized 8684 # So say no if there are warnings 8685 if test -s conftest.err; then 8686 # Append any errors to the config.log. 8687 cat conftest.err 1>&5 8688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8690 if diff conftest.exp conftest.er2 >/dev/null; then 8691 lt_cv_prog_compiler_static_works=yes 8692 fi 8693 else 8694 lt_cv_prog_compiler_static_works=yes 8695 fi 8696 fi 8697 $RM -r conftest* 8698 LDFLAGS="$save_LDFLAGS" 8699 8700 fi 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8702 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8703 8704 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8705 : 8706 else 8707 lt_prog_compiler_static= 8708 fi 8709 8710 8711 8712 8713 8714 8715 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8719 $as_echo_n "(cached) " >&6 8720 else 8721 lt_cv_prog_compiler_c_o=no 8722 $RM -r conftest 2>/dev/null 8723 mkdir conftest 8724 cd conftest 8725 mkdir out 8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8727 8728 lt_compiler_flag="-o out/conftest2.$ac_objext" 8729 # Insert the option either (1) after the last *FLAGS variable, or 8730 # (2) before a word containing "conftest.", or (3) at the end. 8731 # Note that $ac_compile itself does not contain backslashes and begins 8732 # with a dollar sign (not a hyphen), so the echo should work correctly. 8733 lt_compile=`echo "$ac_compile" | $SED \ 8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8736 -e 's:$: $lt_compiler_flag:'` 8737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8738 (eval "$lt_compile" 2>out/conftest.err) 8739 ac_status=$? 8740 cat out/conftest.err >&5 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8743 then 8744 # The compiler can only warn and ignore the option if not recognized 8745 # So say no if there are warnings 8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8749 lt_cv_prog_compiler_c_o=yes 8750 fi 8751 fi 8752 chmod u+w . 2>&5 8753 $RM conftest* 8754 # SGI C++ compiler will create directory out/ii_files/ for 8755 # template instantiation 8756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8757 $RM out/* && rmdir out 8758 cd .. 8759 $RM -r conftest 8760 $RM conftest* 8761 8762 fi 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8764 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8765 8766 8767 8768 8769 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8772 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8773 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8774 $as_echo_n "(cached) " >&6 8775 else 8776 lt_cv_prog_compiler_c_o=no 8777 $RM -r conftest 2>/dev/null 8778 mkdir conftest 8779 cd conftest 8780 mkdir out 8781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8782 8783 lt_compiler_flag="-o out/conftest2.$ac_objext" 8784 # Insert the option either (1) after the last *FLAGS variable, or 8785 # (2) before a word containing "conftest.", or (3) at the end. 8786 # Note that $ac_compile itself does not contain backslashes and begins 8787 # with a dollar sign (not a hyphen), so the echo should work correctly. 8788 lt_compile=`echo "$ac_compile" | $SED \ 8789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8791 -e 's:$: $lt_compiler_flag:'` 8792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8793 (eval "$lt_compile" 2>out/conftest.err) 8794 ac_status=$? 8795 cat out/conftest.err >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8798 then 8799 # The compiler can only warn and ignore the option if not recognized 8800 # So say no if there are warnings 8801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8804 lt_cv_prog_compiler_c_o=yes 8805 fi 8806 fi 8807 chmod u+w . 2>&5 8808 $RM conftest* 8809 # SGI C++ compiler will create directory out/ii_files/ for 8810 # template instantiation 8811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8812 $RM out/* && rmdir out 8813 cd .. 8814 $RM -r conftest 8815 $RM conftest* 8816 8817 fi 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8819 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8820 8821 8822 8823 8824 hard_links="nottested" 8825 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8826 # do not overwrite the value of need_locks provided by the user 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8828 $as_echo_n "checking if we can lock with hard links... " >&6; } 8829 hard_links=yes 8830 $RM conftest* 8831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8832 touch conftest.a 8833 ln conftest.a conftest.b 2>&5 || hard_links=no 8834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8836 $as_echo "$hard_links" >&6; } 8837 if test "$hard_links" = no; then 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8839 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8840 need_locks=warn 8841 fi 8842 else 8843 need_locks=no 8844 fi 8845 8846 8847 8848 8849 8850 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8853 8854 runpath_var= 8855 allow_undefined_flag= 8856 always_export_symbols=no 8857 archive_cmds= 8858 archive_expsym_cmds= 8859 compiler_needs_object=no 8860 enable_shared_with_static_runtimes=no 8861 export_dynamic_flag_spec= 8862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8863 hardcode_automatic=no 8864 hardcode_direct=no 8865 hardcode_direct_absolute=no 8866 hardcode_libdir_flag_spec= 8867 hardcode_libdir_flag_spec_ld= 8868 hardcode_libdir_separator= 8869 hardcode_minus_L=no 8870 hardcode_shlibpath_var=unsupported 8871 inherit_rpath=no 8872 link_all_deplibs=unknown 8873 module_cmds= 8874 module_expsym_cmds= 8875 old_archive_from_new_cmds= 8876 old_archive_from_expsyms_cmds= 8877 thread_safe_flag_spec= 8878 whole_archive_flag_spec= 8879 # include_expsyms should be a list of space-separated symbols to be *always* 8880 # included in the symbol list 8881 include_expsyms= 8882 # exclude_expsyms can be an extended regexp of symbols to exclude 8883 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8885 # as well as any symbol that contains `d'. 8886 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8888 # platforms (ab)use it in PIC code, but their linkers get confused if 8889 # the symbol is explicitly referenced. Since portable code cannot 8890 # rely on this symbol name, it's probably fine to never include it in 8891 # preloaded symbol tables. 8892 # Exclude shared library initialization/finalization symbols. 8893 extract_expsyms_cmds= 8894 8895 case $host_os in 8896 cygwin* | mingw* | pw32* | cegcc*) 8897 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8898 # When not using gcc, we currently assume that we are using 8899 # Microsoft Visual C++. 8900 if test "$GCC" != yes; then 8901 with_gnu_ld=no 8902 fi 8903 ;; 8904 interix*) 8905 # we just hope/assume this is gcc and not c89 (= MSVC++) 8906 with_gnu_ld=yes 8907 ;; 8908 openbsd*) 8909 with_gnu_ld=no 8910 ;; 8911 esac 8912 8913 ld_shlibs=yes 8914 8915 # On some targets, GNU ld is compatible enough with the native linker 8916 # that we're better off using the native interface for both. 8917 lt_use_gnu_ld_interface=no 8918 if test "$with_gnu_ld" = yes; then 8919 case $host_os in 8920 aix*) 8921 # The AIX port of GNU ld has always aspired to compatibility 8922 # with the native linker. However, as the warning in the GNU ld 8923 # block says, versions before 2.19.5* couldn't really create working 8924 # shared libraries, regardless of the interface used. 8925 case `$LD -v 2>&1` in 8926 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8927 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8928 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8929 *) 8930 lt_use_gnu_ld_interface=yes 8931 ;; 8932 esac 8933 ;; 8934 *) 8935 lt_use_gnu_ld_interface=yes 8936 ;; 8937 esac 8938 fi 8939 8940 if test "$lt_use_gnu_ld_interface" = yes; then 8941 # If archive_cmds runs LD, not CC, wlarc should be empty 8942 wlarc='${wl}' 8943 8944 # Set some defaults for GNU ld with shared library support. These 8945 # are reset later if shared libraries are not supported. Putting them 8946 # here allows them to be overridden if necessary. 8947 runpath_var=LD_RUN_PATH 8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8949 export_dynamic_flag_spec='${wl}--export-dynamic' 8950 # ancient GNU ld didn't support --whole-archive et. al. 8951 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8952 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8953 else 8954 whole_archive_flag_spec= 8955 fi 8956 supports_anon_versioning=no 8957 case `$LD -v 2>&1` in 8958 *GNU\ gold*) supports_anon_versioning=yes ;; 8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8962 *\ 2.11.*) ;; # other 2.11 versions 8963 *) supports_anon_versioning=yes ;; 8964 esac 8965 8966 # See if GNU ld supports shared libraries. 8967 case $host_os in 8968 aix[3-9]*) 8969 # On AIX/PPC, the GNU linker is very broken 8970 if test "$host_cpu" != ia64; then 8971 ld_shlibs=no 8972 cat <<_LT_EOF 1>&2 8973 8974 *** Warning: the GNU linker, at least up to release 2.19, is reported 8975 *** to be unable to reliably create shared libraries on AIX. 8976 *** Therefore, libtool is disabling shared libraries support. If you 8977 *** really care for shared libraries, you may want to install binutils 8978 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8979 *** You will then need to restart the configuration process. 8980 8981 _LT_EOF 8982 fi 8983 ;; 8984 8985 amigaos*) 8986 case $host_cpu in 8987 powerpc) 8988 # see comment about AmigaOS4 .so support 8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 archive_expsym_cmds='' 8991 ;; 8992 m68k) 8993 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)' 8994 hardcode_libdir_flag_spec='-L$libdir' 8995 hardcode_minus_L=yes 8996 ;; 8997 esac 8998 ;; 8999 9000 beos*) 9001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9002 allow_undefined_flag=unsupported 9003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9004 # support --undefined. This deserves some investigation. FIXME 9005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9006 else 9007 ld_shlibs=no 9008 fi 9009 ;; 9010 9011 cygwin* | mingw* | pw32* | cegcc*) 9012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9013 # as there is no search path for DLLs. 9014 hardcode_libdir_flag_spec='-L$libdir' 9015 export_dynamic_flag_spec='${wl}--export-all-symbols' 9016 allow_undefined_flag=unsupported 9017 always_export_symbols=no 9018 enable_shared_with_static_runtimes=yes 9019 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' 9020 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9021 9022 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9024 # If the export-symbols file already is a .def file (1st line 9025 # is EXPORTS), use it as is; otherwise, prepend... 9026 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9027 cp $export_symbols $output_objdir/$soname.def; 9028 else 9029 echo EXPORTS > $output_objdir/$soname.def; 9030 cat $export_symbols >> $output_objdir/$soname.def; 9031 fi~ 9032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9033 else 9034 ld_shlibs=no 9035 fi 9036 ;; 9037 9038 haiku*) 9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9040 link_all_deplibs=yes 9041 ;; 9042 9043 interix[3-9]*) 9044 hardcode_direct=no 9045 hardcode_shlibpath_var=no 9046 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9047 export_dynamic_flag_spec='${wl}-E' 9048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9049 # Instead, shared libraries are loaded at an image base (0x10000000 by 9050 # default) and relocated if they conflict, which is a slow very memory 9051 # consuming and fragmenting process. To avoid this, we pick a random, 9052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9053 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9055 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' 9056 ;; 9057 9058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9059 tmp_diet=no 9060 if test "$host_os" = linux-dietlibc; then 9061 case $cc_basename in 9062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9063 esac 9064 fi 9065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9066 && test "$tmp_diet" = no 9067 then 9068 tmp_addflag=' $pic_flag' 9069 tmp_sharedflag='-shared' 9070 case $cc_basename,$host_cpu in 9071 pgcc*) # Portland Group C compiler 9072 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' 9073 tmp_addflag=' $pic_flag' 9074 ;; 9075 pgf77* | pgf90* | pgf95* | pgfortran*) 9076 # Portland Group f77 and f90 compilers 9077 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' 9078 tmp_addflag=' $pic_flag -Mnomain' ;; 9079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9080 tmp_addflag=' -i_dynamic' ;; 9081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9082 tmp_addflag=' -i_dynamic -nofor_main' ;; 9083 ifc* | ifort*) # Intel Fortran compiler 9084 tmp_addflag=' -nofor_main' ;; 9085 lf95*) # Lahey Fortran 8.1 9086 whole_archive_flag_spec= 9087 tmp_sharedflag='--shared' ;; 9088 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9089 tmp_sharedflag='-qmkshrobj' 9090 tmp_addflag= ;; 9091 nvcc*) # Cuda Compiler Driver 2.2 9092 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' 9093 compiler_needs_object=yes 9094 ;; 9095 esac 9096 case `$CC -V 2>&1 | sed 5q` in 9097 *Sun\ C*) # Sun C 5.9 9098 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' 9099 compiler_needs_object=yes 9100 tmp_sharedflag='-G' ;; 9101 *Sun\ F*) # Sun Fortran 8.3 9102 tmp_sharedflag='-G' ;; 9103 esac 9104 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9105 9106 if test "x$supports_anon_versioning" = xyes; then 9107 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9109 echo "local: *; };" >> $output_objdir/$libname.ver~ 9110 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9111 fi 9112 9113 case $cc_basename in 9114 xlf* | bgf* | bgxlf* | mpixlf*) 9115 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9116 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9117 hardcode_libdir_flag_spec= 9118 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9119 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9120 if test "x$supports_anon_versioning" = xyes; then 9121 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9123 echo "local: *; };" >> $output_objdir/$libname.ver~ 9124 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9125 fi 9126 ;; 9127 esac 9128 else 9129 ld_shlibs=no 9130 fi 9131 ;; 9132 9133 netbsd*) 9134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9135 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9136 wlarc= 9137 else 9138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9140 fi 9141 ;; 9142 9143 solaris*) 9144 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9145 ld_shlibs=no 9146 cat <<_LT_EOF 1>&2 9147 9148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9149 *** create shared libraries on Solaris systems. Therefore, libtool 9150 *** is disabling shared libraries support. We urge you to upgrade GNU 9151 *** binutils to release 2.9.1 or newer. Another option is to modify 9152 *** your PATH or compiler configuration so that the native linker is 9153 *** used, and then restart. 9154 9155 _LT_EOF 9156 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9158 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9159 else 9160 ld_shlibs=no 9161 fi 9162 ;; 9163 9164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9165 case `$LD -v 2>&1` in 9166 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9167 ld_shlibs=no 9168 cat <<_LT_EOF 1>&2 9169 9170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9171 *** reliably create shared libraries on SCO systems. Therefore, libtool 9172 *** is disabling shared libraries support. We urge you to upgrade GNU 9173 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9174 *** your PATH or compiler configuration so that the native linker is 9175 *** used, and then restart. 9176 9177 _LT_EOF 9178 ;; 9179 *) 9180 # For security reasons, it is highly recommended that you always 9181 # use absolute paths for naming shared libraries, and exclude the 9182 # DT_RUNPATH tag from executables and libraries. But doing so 9183 # requires that you compile everything twice, which is a pain. 9184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9188 else 9189 ld_shlibs=no 9190 fi 9191 ;; 9192 esac 9193 ;; 9194 9195 sunos4*) 9196 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9197 wlarc= 9198 hardcode_direct=yes 9199 hardcode_shlibpath_var=no 9200 ;; 9201 9202 *) 9203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9205 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9206 else 9207 ld_shlibs=no 9208 fi 9209 ;; 9210 esac 9211 9212 if test "$ld_shlibs" = no; then 9213 runpath_var= 9214 hardcode_libdir_flag_spec= 9215 export_dynamic_flag_spec= 9216 whole_archive_flag_spec= 9217 fi 9218 else 9219 # PORTME fill in a description of your system's linker (not GNU ld) 9220 case $host_os in 9221 aix3*) 9222 allow_undefined_flag=unsupported 9223 always_export_symbols=yes 9224 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' 9225 # Note: this linker hardcodes the directories in LIBPATH if there 9226 # are no directories specified by -L. 9227 hardcode_minus_L=yes 9228 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9229 # Neither direct hardcoding nor static linking is supported with a 9230 # broken collect2. 9231 hardcode_direct=unsupported 9232 fi 9233 ;; 9234 9235 aix[4-9]*) 9236 if test "$host_cpu" = ia64; then 9237 # On IA64, the linker does run time linking by default, so we don't 9238 # have to do anything special. 9239 aix_use_runtimelinking=no 9240 exp_sym_flag='-Bexport' 9241 no_entry_flag="" 9242 else 9243 # If we're using GNU nm, then we don't want the "-C" option. 9244 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9245 # Also, AIX nm treats weak defined symbols like other global 9246 # defined symbols, whereas GNU nm marks them as "W". 9247 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9248 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9249 else 9250 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9251 fi 9252 aix_use_runtimelinking=no 9253 9254 # Test if we are trying to use run time linking or normal 9255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9256 # need to do runtime linking. 9257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9258 for ld_flag in $LDFLAGS; do 9259 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9260 aix_use_runtimelinking=yes 9261 break 9262 fi 9263 done 9264 ;; 9265 esac 9266 9267 exp_sym_flag='-bexport' 9268 no_entry_flag='-bnoentry' 9269 fi 9270 9271 # When large executables or shared objects are built, AIX ld can 9272 # have problems creating the table of contents. If linking a library 9273 # or program results in "error TOC overflow" add -mminimal-toc to 9274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9276 9277 archive_cmds='' 9278 hardcode_direct=yes 9279 hardcode_direct_absolute=yes 9280 hardcode_libdir_separator=':' 9281 link_all_deplibs=yes 9282 file_list_spec='${wl}-f,' 9283 9284 if test "$GCC" = yes; then 9285 case $host_os in aix4.[012]|aix4.[012].*) 9286 # We only want to do this on AIX 4.2 and lower, the check 9287 # below for broken collect2 doesn't work under 4.3+ 9288 collect2name=`${CC} -print-prog-name=collect2` 9289 if test -f "$collect2name" && 9290 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9291 then 9292 # We have reworked collect2 9293 : 9294 else 9295 # We have old collect2 9296 hardcode_direct=unsupported 9297 # It fails to find uninstalled libraries when the uninstalled 9298 # path is not listed in the libpath. Setting hardcode_minus_L 9299 # to unsupported forces relinking 9300 hardcode_minus_L=yes 9301 hardcode_libdir_flag_spec='-L$libdir' 9302 hardcode_libdir_separator= 9303 fi 9304 ;; 9305 esac 9306 shared_flag='-shared' 9307 if test "$aix_use_runtimelinking" = yes; then 9308 shared_flag="$shared_flag "'${wl}-G' 9309 fi 9310 else 9311 # not using gcc 9312 if test "$host_cpu" = ia64; then 9313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9314 # chokes on -Wl,-G. The following line is correct: 9315 shared_flag='-G' 9316 else 9317 if test "$aix_use_runtimelinking" = yes; then 9318 shared_flag='${wl}-G' 9319 else 9320 shared_flag='${wl}-bM:SRE' 9321 fi 9322 fi 9323 fi 9324 9325 export_dynamic_flag_spec='${wl}-bexpall' 9326 # It seems that -bexpall does not export symbols beginning with 9327 # underscore (_), so it is better to generate a list of symbols to export. 9328 always_export_symbols=yes 9329 if test "$aix_use_runtimelinking" = yes; then 9330 # Warning - without using the other runtime loading flags (-brtl), 9331 # -berok will link without error, but may produce a broken library. 9332 allow_undefined_flag='-berok' 9333 # Determine the default libpath from the value encoded in an 9334 # empty executable. 9335 if test "${lt_cv_aix_libpath+set}" = set; then 9336 aix_libpath=$lt_cv_aix_libpath 9337 else 9338 if test "${lt_cv_aix_libpath_+set}" = set; then : 9339 $as_echo_n "(cached) " >&6 9340 else 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342 /* end confdefs.h. */ 9343 9344 int 9345 main () 9346 { 9347 9348 ; 9349 return 0; 9350 } 9351 _ACEOF 9352 if ac_fn_c_try_link "$LINENO"; then : 9353 9354 lt_aix_libpath_sed=' 9355 /Import File Strings/,/^$/ { 9356 /^0/ { 9357 s/^0 *\([^ ]*\) *$/\1/ 9358 p 9359 } 9360 }' 9361 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9362 # Check for a 64-bit object if we didn't find anything. 9363 if test -z "$lt_cv_aix_libpath_"; then 9364 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9365 fi 9366 fi 9367 rm -f core conftest.err conftest.$ac_objext \ 9368 conftest$ac_exeext conftest.$ac_ext 9369 if test -z "$lt_cv_aix_libpath_"; then 9370 lt_cv_aix_libpath_="/usr/lib:/lib" 9371 fi 9372 9373 fi 9374 9375 aix_libpath=$lt_cv_aix_libpath_ 9376 fi 9377 9378 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9379 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9380 else 9381 if test "$host_cpu" = ia64; then 9382 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9383 allow_undefined_flag="-z nodefs" 9384 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" 9385 else 9386 # Determine the default libpath from the value encoded in an 9387 # empty executable. 9388 if test "${lt_cv_aix_libpath+set}" = set; then 9389 aix_libpath=$lt_cv_aix_libpath 9390 else 9391 if test "${lt_cv_aix_libpath_+set}" = set; then : 9392 $as_echo_n "(cached) " >&6 9393 else 9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9395 /* end confdefs.h. */ 9396 9397 int 9398 main () 9399 { 9400 9401 ; 9402 return 0; 9403 } 9404 _ACEOF 9405 if ac_fn_c_try_link "$LINENO"; then : 9406 9407 lt_aix_libpath_sed=' 9408 /Import File Strings/,/^$/ { 9409 /^0/ { 9410 s/^0 *\([^ ]*\) *$/\1/ 9411 p 9412 } 9413 }' 9414 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9415 # Check for a 64-bit object if we didn't find anything. 9416 if test -z "$lt_cv_aix_libpath_"; then 9417 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9418 fi 9419 fi 9420 rm -f core conftest.err conftest.$ac_objext \ 9421 conftest$ac_exeext conftest.$ac_ext 9422 if test -z "$lt_cv_aix_libpath_"; then 9423 lt_cv_aix_libpath_="/usr/lib:/lib" 9424 fi 9425 9426 fi 9427 9428 aix_libpath=$lt_cv_aix_libpath_ 9429 fi 9430 9431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9432 # Warning - without using the other run time loading flags, 9433 # -berok will link without error, but may produce a broken library. 9434 no_undefined_flag=' ${wl}-bernotok' 9435 allow_undefined_flag=' ${wl}-berok' 9436 if test "$with_gnu_ld" = yes; then 9437 # We only use this code for GNU lds that support --whole-archive. 9438 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9439 else 9440 # Exported symbols can be pulled into shared objects from archives 9441 whole_archive_flag_spec='$convenience' 9442 fi 9443 archive_cmds_need_lc=yes 9444 # This is similar to how AIX traditionally builds its shared libraries. 9445 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9446 fi 9447 fi 9448 ;; 9449 9450 amigaos*) 9451 case $host_cpu in 9452 powerpc) 9453 # see comment about AmigaOS4 .so support 9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9455 archive_expsym_cmds='' 9456 ;; 9457 m68k) 9458 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)' 9459 hardcode_libdir_flag_spec='-L$libdir' 9460 hardcode_minus_L=yes 9461 ;; 9462 esac 9463 ;; 9464 9465 bsdi[45]*) 9466 export_dynamic_flag_spec=-rdynamic 9467 ;; 9468 9469 cygwin* | mingw* | pw32* | cegcc*) 9470 # When not using gcc, we currently assume that we are using 9471 # Microsoft Visual C++. 9472 # hardcode_libdir_flag_spec is actually meaningless, as there is 9473 # no search path for DLLs. 9474 case $cc_basename in 9475 cl*) 9476 # Native MSVC 9477 hardcode_libdir_flag_spec=' ' 9478 allow_undefined_flag=unsupported 9479 always_export_symbols=yes 9480 file_list_spec='@' 9481 # Tell ltmain to make .lib files, not .a files. 9482 libext=lib 9483 # Tell ltmain to make .dll files, not .so files. 9484 shrext_cmds=".dll" 9485 # FIXME: Setting linknames here is a bad hack. 9486 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9487 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9488 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9489 else 9490 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9491 fi~ 9492 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9493 linknames=' 9494 # The linker will not automatically build a static lib if we build a DLL. 9495 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9496 enable_shared_with_static_runtimes=yes 9497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9498 # Don't use ranlib 9499 old_postinstall_cmds='chmod 644 $oldlib' 9500 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9501 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9502 case $lt_outputfile in 9503 *.exe|*.EXE) ;; 9504 *) 9505 lt_outputfile="$lt_outputfile.exe" 9506 lt_tool_outputfile="$lt_tool_outputfile.exe" 9507 ;; 9508 esac~ 9509 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9510 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9511 $RM "$lt_outputfile.manifest"; 9512 fi' 9513 ;; 9514 *) 9515 # Assume MSVC wrapper 9516 hardcode_libdir_flag_spec=' ' 9517 allow_undefined_flag=unsupported 9518 # Tell ltmain to make .lib files, not .a files. 9519 libext=lib 9520 # Tell ltmain to make .dll files, not .so files. 9521 shrext_cmds=".dll" 9522 # FIXME: Setting linknames here is a bad hack. 9523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9524 # The linker will automatically build a .lib file if we build a DLL. 9525 old_archive_from_new_cmds='true' 9526 # FIXME: Should let the user specify the lib program. 9527 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9528 enable_shared_with_static_runtimes=yes 9529 ;; 9530 esac 9531 ;; 9532 9533 darwin* | rhapsody*) 9534 9535 9536 archive_cmds_need_lc=no 9537 hardcode_direct=no 9538 hardcode_automatic=yes 9539 hardcode_shlibpath_var=unsupported 9540 if test "$lt_cv_ld_force_load" = "yes"; then 9541 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\"`' 9542 else 9543 whole_archive_flag_spec='' 9544 fi 9545 link_all_deplibs=yes 9546 allow_undefined_flag="$_lt_dar_allow_undefined" 9547 case $cc_basename in 9548 ifort*) _lt_dar_can_shared=yes ;; 9549 *) _lt_dar_can_shared=$GCC ;; 9550 esac 9551 if test "$_lt_dar_can_shared" = "yes"; then 9552 output_verbose_link_cmd=func_echo_all 9553 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9554 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9555 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}" 9556 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}" 9557 9558 else 9559 ld_shlibs=no 9560 fi 9561 9562 ;; 9563 9564 dgux*) 9565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9566 hardcode_libdir_flag_spec='-L$libdir' 9567 hardcode_shlibpath_var=no 9568 ;; 9569 9570 freebsd1*) 9571 ld_shlibs=no 9572 ;; 9573 9574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9575 # support. Future versions do this automatically, but an explicit c++rt0.o 9576 # does not break anything, and helps significantly (at the cost of a little 9577 # extra space). 9578 freebsd2.2*) 9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9580 hardcode_libdir_flag_spec='-R$libdir' 9581 hardcode_direct=yes 9582 hardcode_shlibpath_var=no 9583 ;; 9584 9585 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9586 freebsd2*) 9587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9588 hardcode_direct=yes 9589 hardcode_minus_L=yes 9590 hardcode_shlibpath_var=no 9591 ;; 9592 9593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9594 freebsd* | dragonfly*) 9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9596 hardcode_libdir_flag_spec='-R$libdir' 9597 hardcode_direct=yes 9598 hardcode_shlibpath_var=no 9599 ;; 9600 9601 hpux9*) 9602 if test "$GCC" = yes; then 9603 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9604 else 9605 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9606 fi 9607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9608 hardcode_libdir_separator=: 9609 hardcode_direct=yes 9610 9611 # hardcode_minus_L: Not really in the search PATH, 9612 # but as the default location of the library. 9613 hardcode_minus_L=yes 9614 export_dynamic_flag_spec='${wl}-E' 9615 ;; 9616 9617 hpux10*) 9618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9620 else 9621 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9622 fi 9623 if test "$with_gnu_ld" = no; then 9624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9625 hardcode_libdir_flag_spec_ld='+b $libdir' 9626 hardcode_libdir_separator=: 9627 hardcode_direct=yes 9628 hardcode_direct_absolute=yes 9629 export_dynamic_flag_spec='${wl}-E' 9630 # hardcode_minus_L: Not really in the search PATH, 9631 # but as the default location of the library. 9632 hardcode_minus_L=yes 9633 fi 9634 ;; 9635 9636 hpux11*) 9637 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9638 case $host_cpu in 9639 hppa*64*) 9640 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9641 ;; 9642 ia64*) 9643 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9644 ;; 9645 *) 9646 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9647 ;; 9648 esac 9649 else 9650 case $host_cpu in 9651 hppa*64*) 9652 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9653 ;; 9654 ia64*) 9655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9656 ;; 9657 *) 9658 9659 # Older versions of the 11.00 compiler do not understand -b yet 9660 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9662 $as_echo_n "checking if $CC understands -b... " >&6; } 9663 if test "${lt_cv_prog_compiler__b+set}" = set; then : 9664 $as_echo_n "(cached) " >&6 9665 else 9666 lt_cv_prog_compiler__b=no 9667 save_LDFLAGS="$LDFLAGS" 9668 LDFLAGS="$LDFLAGS -b" 9669 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9671 # The linker can only warn and ignore the option if not recognized 9672 # So say no if there are warnings 9673 if test -s conftest.err; then 9674 # Append any errors to the config.log. 9675 cat conftest.err 1>&5 9676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9678 if diff conftest.exp conftest.er2 >/dev/null; then 9679 lt_cv_prog_compiler__b=yes 9680 fi 9681 else 9682 lt_cv_prog_compiler__b=yes 9683 fi 9684 fi 9685 $RM -r conftest* 9686 LDFLAGS="$save_LDFLAGS" 9687 9688 fi 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9690 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9691 9692 if test x"$lt_cv_prog_compiler__b" = xyes; then 9693 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9694 else 9695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9696 fi 9697 9698 ;; 9699 esac 9700 fi 9701 if test "$with_gnu_ld" = no; then 9702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9703 hardcode_libdir_separator=: 9704 9705 case $host_cpu in 9706 hppa*64*|ia64*) 9707 hardcode_direct=no 9708 hardcode_shlibpath_var=no 9709 ;; 9710 *) 9711 hardcode_direct=yes 9712 hardcode_direct_absolute=yes 9713 export_dynamic_flag_spec='${wl}-E' 9714 9715 # hardcode_minus_L: Not really in the search PATH, 9716 # but as the default location of the library. 9717 hardcode_minus_L=yes 9718 ;; 9719 esac 9720 fi 9721 ;; 9722 9723 irix5* | irix6* | nonstopux*) 9724 if test "$GCC" = yes; then 9725 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' 9726 # Try to use the -exported_symbol ld option, if it does not 9727 # work, assume that -exports_file does not work either and 9728 # implicitly export all symbols. 9729 # This should be the same for all languages, so no per-tag cache variable. 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9731 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9732 if test "${lt_cv_irix_exported_symbol+set}" = set; then : 9733 $as_echo_n "(cached) " >&6 9734 else 9735 save_LDFLAGS="$LDFLAGS" 9736 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738 /* end confdefs.h. */ 9739 int foo (void) { return 0; } 9740 _ACEOF 9741 if ac_fn_c_try_link "$LINENO"; then : 9742 lt_cv_irix_exported_symbol=yes 9743 else 9744 lt_cv_irix_exported_symbol=no 9745 fi 9746 rm -f core conftest.err conftest.$ac_objext \ 9747 conftest$ac_exeext conftest.$ac_ext 9748 LDFLAGS="$save_LDFLAGS" 9749 fi 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9751 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 9752 if test "$lt_cv_irix_exported_symbol" = yes; then 9753 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' 9754 fi 9755 else 9756 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' 9757 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' 9758 fi 9759 archive_cmds_need_lc='no' 9760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9761 hardcode_libdir_separator=: 9762 inherit_rpath=yes 9763 link_all_deplibs=yes 9764 ;; 9765 9766 netbsd*) 9767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9769 else 9770 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9771 fi 9772 hardcode_libdir_flag_spec='-R$libdir' 9773 hardcode_direct=yes 9774 hardcode_shlibpath_var=no 9775 ;; 9776 9777 newsos6) 9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9779 hardcode_direct=yes 9780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9781 hardcode_libdir_separator=: 9782 hardcode_shlibpath_var=no 9783 ;; 9784 9785 *nto* | *qnx*) 9786 ;; 9787 9788 openbsd*) 9789 if test -f /usr/libexec/ld.so; then 9790 hardcode_direct=yes 9791 hardcode_shlibpath_var=no 9792 hardcode_direct_absolute=yes 9793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9795 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9797 export_dynamic_flag_spec='${wl}-E' 9798 else 9799 case $host_os in 9800 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9802 hardcode_libdir_flag_spec='-R$libdir' 9803 ;; 9804 *) 9805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9807 ;; 9808 esac 9809 fi 9810 else 9811 ld_shlibs=no 9812 fi 9813 ;; 9814 9815 os2*) 9816 hardcode_libdir_flag_spec='-L$libdir' 9817 hardcode_minus_L=yes 9818 allow_undefined_flag=unsupported 9819 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9820 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9821 ;; 9822 9823 osf3*) 9824 if test "$GCC" = yes; then 9825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9826 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' 9827 else 9828 allow_undefined_flag=' -expect_unresolved \*' 9829 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' 9830 fi 9831 archive_cmds_need_lc='no' 9832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9833 hardcode_libdir_separator=: 9834 ;; 9835 9836 osf4* | osf5*) # as osf3* with the addition of -msym flag 9837 if test "$GCC" = yes; then 9838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9839 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' 9840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9841 else 9842 allow_undefined_flag=' -expect_unresolved \*' 9843 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' 9844 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~ 9845 $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' 9846 9847 # Both c and cxx compiler support -rpath directly 9848 hardcode_libdir_flag_spec='-rpath $libdir' 9849 fi 9850 archive_cmds_need_lc='no' 9851 hardcode_libdir_separator=: 9852 ;; 9853 9854 solaris*) 9855 no_undefined_flag=' -z defs' 9856 if test "$GCC" = yes; then 9857 wlarc='${wl}' 9858 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9860 $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' 9861 else 9862 case `$CC -V 2>&1` in 9863 *"Compilers 5.0"*) 9864 wlarc='' 9865 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9868 ;; 9869 *) 9870 wlarc='${wl}' 9871 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9873 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9874 ;; 9875 esac 9876 fi 9877 hardcode_libdir_flag_spec='-R$libdir' 9878 hardcode_shlibpath_var=no 9879 case $host_os in 9880 solaris2.[0-5] | solaris2.[0-5].*) ;; 9881 *) 9882 # The compiler driver will combine and reorder linker options, 9883 # but understands `-z linker_flag'. GCC discards it without `$wl', 9884 # but is careful enough not to reorder. 9885 # Supported since Solaris 2.6 (maybe 2.5.1?) 9886 if test "$GCC" = yes; then 9887 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9888 else 9889 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9890 fi 9891 ;; 9892 esac 9893 link_all_deplibs=yes 9894 ;; 9895 9896 sunos4*) 9897 if test "x$host_vendor" = xsequent; then 9898 # Use $CC to link under sequent, because it throws in some extra .o 9899 # files that make .init and .fini sections work. 9900 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9901 else 9902 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9903 fi 9904 hardcode_libdir_flag_spec='-L$libdir' 9905 hardcode_direct=yes 9906 hardcode_minus_L=yes 9907 hardcode_shlibpath_var=no 9908 ;; 9909 9910 sysv4) 9911 case $host_vendor in 9912 sni) 9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9914 hardcode_direct=yes # is this really true??? 9915 ;; 9916 siemens) 9917 ## LD is ld it makes a PLAMLIB 9918 ## CC just makes a GrossModule. 9919 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9920 reload_cmds='$CC -r -o $output$reload_objs' 9921 hardcode_direct=no 9922 ;; 9923 motorola) 9924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9925 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9926 ;; 9927 esac 9928 runpath_var='LD_RUN_PATH' 9929 hardcode_shlibpath_var=no 9930 ;; 9931 9932 sysv4.3*) 9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9934 hardcode_shlibpath_var=no 9935 export_dynamic_flag_spec='-Bexport' 9936 ;; 9937 9938 sysv4*MP*) 9939 if test -d /usr/nec; then 9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9941 hardcode_shlibpath_var=no 9942 runpath_var=LD_RUN_PATH 9943 hardcode_runpath_var=yes 9944 ld_shlibs=yes 9945 fi 9946 ;; 9947 9948 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9949 no_undefined_flag='${wl}-z,text' 9950 archive_cmds_need_lc=no 9951 hardcode_shlibpath_var=no 9952 runpath_var='LD_RUN_PATH' 9953 9954 if test "$GCC" = yes; then 9955 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9957 else 9958 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9960 fi 9961 ;; 9962 9963 sysv5* | sco3.2v5* | sco5v6*) 9964 # Note: We can NOT use -z defs as we might desire, because we do not 9965 # link with -lc, and that would cause any symbols used from libc to 9966 # always be unresolved, which means just about no library would 9967 # ever link correctly. If we're not using GNU ld we use -z text 9968 # though, which does catch some bad symbols but isn't as heavy-handed 9969 # as -z defs. 9970 no_undefined_flag='${wl}-z,text' 9971 allow_undefined_flag='${wl}-z,nodefs' 9972 archive_cmds_need_lc=no 9973 hardcode_shlibpath_var=no 9974 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9975 hardcode_libdir_separator=':' 9976 link_all_deplibs=yes 9977 export_dynamic_flag_spec='${wl}-Bexport' 9978 runpath_var='LD_RUN_PATH' 9979 9980 if test "$GCC" = yes; then 9981 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9983 else 9984 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9985 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9986 fi 9987 ;; 9988 9989 uts4*) 9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9991 hardcode_libdir_flag_spec='-L$libdir' 9992 hardcode_shlibpath_var=no 9993 ;; 9994 9995 *) 9996 ld_shlibs=no 9997 ;; 9998 esac 9999 10000 if test x$host_vendor = xsni; then 10001 case $host in 10002 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10003 export_dynamic_flag_spec='${wl}-Blargedynsym' 10004 ;; 10005 esac 10006 fi 10007 fi 10008 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10010 $as_echo "$ld_shlibs" >&6; } 10011 test "$ld_shlibs" = no && can_build_shared=no 10012 10013 with_gnu_ld=$with_gnu_ld 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 # 10030 # Do we need to explicitly link libc? 10031 # 10032 case "x$archive_cmds_need_lc" in 10033 x|xyes) 10034 # Assume -lc should be added 10035 archive_cmds_need_lc=yes 10036 10037 if test "$enable_shared" = yes && test "$GCC" = yes; then 10038 case $archive_cmds in 10039 *'~'*) 10040 # FIXME: we may have to deal with multi-command sequences. 10041 ;; 10042 '$CC '*) 10043 # Test whether the compiler implicitly links with -lc since on some 10044 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10045 # to ld, don't add -lc before -lgcc. 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10047 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10048 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10049 $as_echo_n "(cached) " >&6 10050 else 10051 $RM conftest* 10052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10053 10054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10055 (eval $ac_compile) 2>&5 10056 ac_status=$? 10057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10058 test $ac_status = 0; } 2>conftest.err; then 10059 soname=conftest 10060 lib=conftest 10061 libobjs=conftest.$ac_objext 10062 deplibs= 10063 wl=$lt_prog_compiler_wl 10064 pic_flag=$lt_prog_compiler_pic 10065 compiler_flags=-v 10066 linker_flags=-v 10067 verstring= 10068 output_objdir=. 10069 libname=conftest 10070 lt_save_allow_undefined_flag=$allow_undefined_flag 10071 allow_undefined_flag= 10072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10073 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10074 ac_status=$? 10075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10076 test $ac_status = 0; } 10077 then 10078 lt_cv_archive_cmds_need_lc=no 10079 else 10080 lt_cv_archive_cmds_need_lc=yes 10081 fi 10082 allow_undefined_flag=$lt_save_allow_undefined_flag 10083 else 10084 cat conftest.err 1>&5 10085 fi 10086 $RM conftest* 10087 10088 fi 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10090 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10091 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10092 ;; 10093 esac 10094 fi 10095 ;; 10096 esac 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10255 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10256 10257 if test "$GCC" = yes; then 10258 case $host_os in 10259 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10260 *) lt_awk_arg="/^libraries:/" ;; 10261 esac 10262 case $host_os in 10263 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10264 *) lt_sed_strip_eq="s,=/,/,g" ;; 10265 esac 10266 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10267 case $lt_search_path_spec in 10268 *\;*) 10269 # if the path contains ";" then we assume it to be the separator 10270 # otherwise default to the standard path separator (i.e. ":") - it is 10271 # assumed that no part of a normal pathname contains ";" but that should 10272 # okay in the real world where ";" in dirpaths is itself problematic. 10273 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10274 ;; 10275 *) 10276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10277 ;; 10278 esac 10279 # Ok, now we have the path, separated by spaces, we can step through it 10280 # and add multilib dir if necessary. 10281 lt_tmp_lt_search_path_spec= 10282 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10283 for lt_sys_path in $lt_search_path_spec; do 10284 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10286 else 10287 test -d "$lt_sys_path" && \ 10288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10289 fi 10290 done 10291 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10292 BEGIN {RS=" "; FS="/|\n";} { 10293 lt_foo=""; 10294 lt_count=0; 10295 for (lt_i = NF; lt_i > 0; lt_i--) { 10296 if ($lt_i != "" && $lt_i != ".") { 10297 if ($lt_i == "..") { 10298 lt_count++; 10299 } else { 10300 if (lt_count == 0) { 10301 lt_foo="/" $lt_i lt_foo; 10302 } else { 10303 lt_count--; 10304 } 10305 } 10306 } 10307 } 10308 if (lt_foo != "") { lt_freq[lt_foo]++; } 10309 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10310 }'` 10311 # AWK program above erroneously prepends '/' to C:/dos/paths 10312 # for these hosts. 10313 case $host_os in 10314 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10315 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10316 esac 10317 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10318 else 10319 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10320 fi 10321 library_names_spec= 10322 libname_spec='lib$name' 10323 soname_spec= 10324 shrext_cmds=".so" 10325 postinstall_cmds= 10326 postuninstall_cmds= 10327 finish_cmds= 10328 finish_eval= 10329 shlibpath_var= 10330 shlibpath_overrides_runpath=unknown 10331 version_type=none 10332 dynamic_linker="$host_os ld.so" 10333 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10334 need_lib_prefix=unknown 10335 hardcode_into_libs=no 10336 10337 # when you set need_version to no, make sure it does not cause -set_version 10338 # flags to be left without arguments 10339 need_version=unknown 10340 10341 case $host_os in 10342 aix3*) 10343 version_type=linux 10344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10345 shlibpath_var=LIBPATH 10346 10347 # AIX 3 has no versioning support, so we append a major version to the name. 10348 soname_spec='${libname}${release}${shared_ext}$major' 10349 ;; 10350 10351 aix[4-9]*) 10352 version_type=linux 10353 need_lib_prefix=no 10354 need_version=no 10355 hardcode_into_libs=yes 10356 if test "$host_cpu" = ia64; then 10357 # AIX 5 supports IA64 10358 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10359 shlibpath_var=LD_LIBRARY_PATH 10360 else 10361 # With GCC up to 2.95.x, collect2 would create an import file 10362 # for dependence libraries. The import file would start with 10363 # the line `#! .'. This would cause the generated library to 10364 # depend on `.', always an invalid library. This was fixed in 10365 # development snapshots of GCC prior to 3.0. 10366 case $host_os in 10367 aix4 | aix4.[01] | aix4.[01].*) 10368 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10369 echo ' yes ' 10370 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10371 : 10372 else 10373 can_build_shared=no 10374 fi 10375 ;; 10376 esac 10377 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10378 # soname into executable. Probably we can add versioning support to 10379 # collect2, so additional links can be useful in future. 10380 if test "$aix_use_runtimelinking" = yes; then 10381 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10382 # instead of lib<name>.a to let people know that these are not 10383 # typical AIX shared libraries. 10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10385 else 10386 # We preserve .a as extension for shared libraries through AIX4.2 10387 # and later when we are not doing run time linking. 10388 library_names_spec='${libname}${release}.a $libname.a' 10389 soname_spec='${libname}${release}${shared_ext}$major' 10390 fi 10391 shlibpath_var=LIBPATH 10392 fi 10393 ;; 10394 10395 amigaos*) 10396 case $host_cpu in 10397 powerpc) 10398 # Since July 2007 AmigaOS4 officially supports .so libraries. 10399 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10401 ;; 10402 m68k) 10403 library_names_spec='$libname.ixlibrary $libname.a' 10404 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10405 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10406 ;; 10407 esac 10408 ;; 10409 10410 beos*) 10411 library_names_spec='${libname}${shared_ext}' 10412 dynamic_linker="$host_os ld.so" 10413 shlibpath_var=LIBRARY_PATH 10414 ;; 10415 10416 bsdi[45]*) 10417 version_type=linux 10418 need_version=no 10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10420 soname_spec='${libname}${release}${shared_ext}$major' 10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10422 shlibpath_var=LD_LIBRARY_PATH 10423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10425 # the default ld.so.conf also contains /usr/contrib/lib and 10426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10427 # libtool to hard-code these into programs 10428 ;; 10429 10430 cygwin* | mingw* | pw32* | cegcc*) 10431 version_type=windows 10432 shrext_cmds=".dll" 10433 need_version=no 10434 need_lib_prefix=no 10435 10436 case $GCC,$cc_basename in 10437 yes,*) 10438 # gcc 10439 library_names_spec='$libname.dll.a' 10440 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10441 postinstall_cmds='base_file=`basename \${file}`~ 10442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10443 dldir=$destdir/`dirname \$dlpath`~ 10444 test -d \$dldir || mkdir -p \$dldir~ 10445 $install_prog $dir/$dlname \$dldir/$dlname~ 10446 chmod a+x \$dldir/$dlname~ 10447 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10448 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10449 fi' 10450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10451 dlpath=$dir/\$dldll~ 10452 $RM \$dlpath' 10453 shlibpath_overrides_runpath=yes 10454 10455 case $host_os in 10456 cygwin*) 10457 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10459 10460 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10461 ;; 10462 mingw* | cegcc*) 10463 # MinGW DLLs use traditional 'lib' prefix 10464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10465 ;; 10466 pw32*) 10467 # pw32 DLLs use 'pw' prefix rather than 'lib' 10468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10469 ;; 10470 esac 10471 dynamic_linker='Win32 ld.exe' 10472 ;; 10473 10474 *,cl*) 10475 # Native MSVC 10476 libname_spec='$name' 10477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10478 library_names_spec='${libname}.dll.lib' 10479 10480 case $build_os in 10481 mingw*) 10482 sys_lib_search_path_spec= 10483 lt_save_ifs=$IFS 10484 IFS=';' 10485 for lt_path in $LIB 10486 do 10487 IFS=$lt_save_ifs 10488 # Let DOS variable expansion print the short 8.3 style file name. 10489 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10490 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10491 done 10492 IFS=$lt_save_ifs 10493 # Convert to MSYS style. 10494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10495 ;; 10496 cygwin*) 10497 # Convert to unix form, then to dos form, then back to unix form 10498 # but this time dos style (no spaces!) so that the unix form looks 10499 # like /cygdrive/c/PROGRA~1:/cygdr... 10500 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10501 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10502 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10503 ;; 10504 *) 10505 sys_lib_search_path_spec="$LIB" 10506 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10507 # It is most probably a Windows format PATH. 10508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10509 else 10510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10511 fi 10512 # FIXME: find the short name or the path components, as spaces are 10513 # common. (e.g. "Program Files" -> "PROGRA~1") 10514 ;; 10515 esac 10516 10517 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10518 postinstall_cmds='base_file=`basename \${file}`~ 10519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10520 dldir=$destdir/`dirname \$dlpath`~ 10521 test -d \$dldir || mkdir -p \$dldir~ 10522 $install_prog $dir/$dlname \$dldir/$dlname' 10523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10524 dlpath=$dir/\$dldll~ 10525 $RM \$dlpath' 10526 shlibpath_overrides_runpath=yes 10527 dynamic_linker='Win32 link.exe' 10528 ;; 10529 10530 *) 10531 # Assume MSVC wrapper 10532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10533 dynamic_linker='Win32 ld.exe' 10534 ;; 10535 esac 10536 # FIXME: first we should search . and the directory the executable is in 10537 shlibpath_var=PATH 10538 ;; 10539 10540 darwin* | rhapsody*) 10541 dynamic_linker="$host_os dyld" 10542 version_type=darwin 10543 need_lib_prefix=no 10544 need_version=no 10545 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10546 soname_spec='${libname}${release}${major}$shared_ext' 10547 shlibpath_overrides_runpath=yes 10548 shlibpath_var=DYLD_LIBRARY_PATH 10549 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10550 10551 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10552 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10553 ;; 10554 10555 dgux*) 10556 version_type=linux 10557 need_lib_prefix=no 10558 need_version=no 10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10560 soname_spec='${libname}${release}${shared_ext}$major' 10561 shlibpath_var=LD_LIBRARY_PATH 10562 ;; 10563 10564 freebsd1*) 10565 dynamic_linker=no 10566 ;; 10567 10568 freebsd* | dragonfly*) 10569 # DragonFly does not have aout. When/if they implement a new 10570 # versioning mechanism, adjust this. 10571 if test -x /usr/bin/objformat; then 10572 objformat=`/usr/bin/objformat` 10573 else 10574 case $host_os in 10575 freebsd[123]*) objformat=aout ;; 10576 *) objformat=elf ;; 10577 esac 10578 fi 10579 version_type=freebsd-$objformat 10580 case $version_type in 10581 freebsd-elf*) 10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10583 need_version=no 10584 need_lib_prefix=no 10585 ;; 10586 freebsd-*) 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10588 need_version=yes 10589 ;; 10590 esac 10591 shlibpath_var=LD_LIBRARY_PATH 10592 case $host_os in 10593 freebsd2*) 10594 shlibpath_overrides_runpath=yes 10595 ;; 10596 freebsd3.[01]* | freebsdelf3.[01]*) 10597 shlibpath_overrides_runpath=yes 10598 hardcode_into_libs=yes 10599 ;; 10600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10602 shlibpath_overrides_runpath=no 10603 hardcode_into_libs=yes 10604 ;; 10605 *) # from 4.6 on, and DragonFly 10606 shlibpath_overrides_runpath=yes 10607 hardcode_into_libs=yes 10608 ;; 10609 esac 10610 ;; 10611 10612 gnu*) 10613 version_type=linux 10614 need_lib_prefix=no 10615 need_version=no 10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10617 soname_spec='${libname}${release}${shared_ext}$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 hardcode_into_libs=yes 10620 ;; 10621 10622 haiku*) 10623 version_type=linux 10624 need_lib_prefix=no 10625 need_version=no 10626 dynamic_linker="$host_os runtime_loader" 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10628 soname_spec='${libname}${release}${shared_ext}$major' 10629 shlibpath_var=LIBRARY_PATH 10630 shlibpath_overrides_runpath=yes 10631 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10632 hardcode_into_libs=yes 10633 ;; 10634 10635 hpux9* | hpux10* | hpux11*) 10636 # Give a soname corresponding to the major version so that dld.sl refuses to 10637 # link against other versions. 10638 version_type=sunos 10639 need_lib_prefix=no 10640 need_version=no 10641 case $host_cpu in 10642 ia64*) 10643 shrext_cmds='.so' 10644 hardcode_into_libs=yes 10645 dynamic_linker="$host_os dld.so" 10646 shlibpath_var=LD_LIBRARY_PATH 10647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10649 soname_spec='${libname}${release}${shared_ext}$major' 10650 if test "X$HPUX_IA64_MODE" = X32; then 10651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10652 else 10653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10654 fi 10655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10656 ;; 10657 hppa*64*) 10658 shrext_cmds='.sl' 10659 hardcode_into_libs=yes 10660 dynamic_linker="$host_os dld.sl" 10661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10664 soname_spec='${libname}${release}${shared_ext}$major' 10665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10667 ;; 10668 *) 10669 shrext_cmds='.sl' 10670 dynamic_linker="$host_os dld.sl" 10671 shlibpath_var=SHLIB_PATH 10672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 ;; 10676 esac 10677 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10678 postinstall_cmds='chmod 555 $lib' 10679 # or fails outright, so override atomically: 10680 install_override_mode=555 10681 ;; 10682 10683 interix[3-9]*) 10684 version_type=linux 10685 need_lib_prefix=no 10686 need_version=no 10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10688 soname_spec='${libname}${release}${shared_ext}$major' 10689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10690 shlibpath_var=LD_LIBRARY_PATH 10691 shlibpath_overrides_runpath=no 10692 hardcode_into_libs=yes 10693 ;; 10694 10695 irix5* | irix6* | nonstopux*) 10696 case $host_os in 10697 nonstopux*) version_type=nonstopux ;; 10698 *) 10699 if test "$lt_cv_prog_gnu_ld" = yes; then 10700 version_type=linux 10701 else 10702 version_type=irix 10703 fi ;; 10704 esac 10705 need_lib_prefix=no 10706 need_version=no 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10709 case $host_os in 10710 irix5* | nonstopux*) 10711 libsuff= shlibsuff= 10712 ;; 10713 *) 10714 case $LD in # libtool.m4 will add one of these switches to LD 10715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10716 libsuff= shlibsuff= libmagic=32-bit;; 10717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10718 libsuff=32 shlibsuff=N32 libmagic=N32;; 10719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10720 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10721 *) libsuff= shlibsuff= libmagic=never-match;; 10722 esac 10723 ;; 10724 esac 10725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10726 shlibpath_overrides_runpath=no 10727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10729 hardcode_into_libs=yes 10730 ;; 10731 10732 # No shared lib support for Linux oldld, aout, or coff. 10733 linux*oldld* | linux*aout* | linux*coff*) 10734 dynamic_linker=no 10735 ;; 10736 10737 # This must be Linux ELF. 10738 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10739 version_type=linux 10740 need_lib_prefix=no 10741 need_version=no 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10745 shlibpath_var=LD_LIBRARY_PATH 10746 shlibpath_overrides_runpath=no 10747 10748 # Some binutils ld are patched to set DT_RUNPATH 10749 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10750 $as_echo_n "(cached) " >&6 10751 else 10752 lt_cv_shlibpath_overrides_runpath=no 10753 save_LDFLAGS=$LDFLAGS 10754 save_libdir=$libdir 10755 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10756 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10758 /* end confdefs.h. */ 10759 10760 int 10761 main () 10762 { 10763 10764 ; 10765 return 0; 10766 } 10767 _ACEOF 10768 if ac_fn_c_try_link "$LINENO"; then : 10769 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10770 lt_cv_shlibpath_overrides_runpath=yes 10771 fi 10772 fi 10773 rm -f core conftest.err conftest.$ac_objext \ 10774 conftest$ac_exeext conftest.$ac_ext 10775 LDFLAGS=$save_LDFLAGS 10776 libdir=$save_libdir 10777 10778 fi 10779 10780 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10781 10782 # This implies no fast_install, which is unacceptable. 10783 # Some rework will be needed to allow for fast_install 10784 # before this can be enabled. 10785 hardcode_into_libs=yes 10786 10787 # Append ld.so.conf contents to the search path 10788 if test -f /etc/ld.so.conf; then 10789 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' ' '` 10790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10791 fi 10792 10793 # We used to test for /lib/ld.so.1 and disable shared libraries on 10794 # powerpc, because MkLinux only supported shared libraries with the 10795 # GNU dynamic linker. Since this was broken with cross compilers, 10796 # most powerpc-linux boxes support dynamic linking these days and 10797 # people can always --disable-shared, the test was removed, and we 10798 # assume the GNU/Linux dynamic linker is in use. 10799 dynamic_linker='GNU/Linux ld.so' 10800 ;; 10801 10802 netbsd*) 10803 version_type=sunos 10804 need_lib_prefix=no 10805 need_version=no 10806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10809 dynamic_linker='NetBSD (a.out) ld.so' 10810 else 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 dynamic_linker='NetBSD ld.elf_so' 10814 fi 10815 shlibpath_var=LD_LIBRARY_PATH 10816 shlibpath_overrides_runpath=yes 10817 hardcode_into_libs=yes 10818 ;; 10819 10820 newsos6) 10821 version_type=linux 10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10823 shlibpath_var=LD_LIBRARY_PATH 10824 shlibpath_overrides_runpath=yes 10825 ;; 10826 10827 *nto* | *qnx*) 10828 version_type=qnx 10829 need_lib_prefix=no 10830 need_version=no 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 shlibpath_var=LD_LIBRARY_PATH 10834 shlibpath_overrides_runpath=no 10835 hardcode_into_libs=yes 10836 dynamic_linker='ldqnx.so' 10837 ;; 10838 10839 openbsd*) 10840 version_type=sunos 10841 sys_lib_dlsearch_path_spec="/usr/lib" 10842 need_lib_prefix=no 10843 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10844 case $host_os in 10845 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10846 *) need_version=no ;; 10847 esac 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10852 case $host_os in 10853 openbsd2.[89] | openbsd2.[89].*) 10854 shlibpath_overrides_runpath=no 10855 ;; 10856 *) 10857 shlibpath_overrides_runpath=yes 10858 ;; 10859 esac 10860 else 10861 shlibpath_overrides_runpath=yes 10862 fi 10863 ;; 10864 10865 os2*) 10866 libname_spec='$name' 10867 shrext_cmds=".dll" 10868 need_lib_prefix=no 10869 library_names_spec='$libname${shared_ext} $libname.a' 10870 dynamic_linker='OS/2 ld.exe' 10871 shlibpath_var=LIBPATH 10872 ;; 10873 10874 osf3* | osf4* | osf5*) 10875 version_type=osf 10876 need_lib_prefix=no 10877 need_version=no 10878 soname_spec='${libname}${release}${shared_ext}$major' 10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10880 shlibpath_var=LD_LIBRARY_PATH 10881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10882 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10883 ;; 10884 10885 rdos*) 10886 dynamic_linker=no 10887 ;; 10888 10889 solaris*) 10890 version_type=linux 10891 need_lib_prefix=no 10892 need_version=no 10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10894 soname_spec='${libname}${release}${shared_ext}$major' 10895 shlibpath_var=LD_LIBRARY_PATH 10896 shlibpath_overrides_runpath=yes 10897 hardcode_into_libs=yes 10898 # ldd complains unless libraries are executable 10899 postinstall_cmds='chmod +x $lib' 10900 ;; 10901 10902 sunos4*) 10903 version_type=sunos 10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10906 shlibpath_var=LD_LIBRARY_PATH 10907 shlibpath_overrides_runpath=yes 10908 if test "$with_gnu_ld" = yes; then 10909 need_lib_prefix=no 10910 fi 10911 need_version=yes 10912 ;; 10913 10914 sysv4 | sysv4.3*) 10915 version_type=linux 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 case $host_vendor in 10920 sni) 10921 shlibpath_overrides_runpath=no 10922 need_lib_prefix=no 10923 runpath_var=LD_RUN_PATH 10924 ;; 10925 siemens) 10926 need_lib_prefix=no 10927 ;; 10928 motorola) 10929 need_lib_prefix=no 10930 need_version=no 10931 shlibpath_overrides_runpath=no 10932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10933 ;; 10934 esac 10935 ;; 10936 10937 sysv4*MP*) 10938 if test -d /usr/nec ;then 10939 version_type=linux 10940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10941 soname_spec='$libname${shared_ext}.$major' 10942 shlibpath_var=LD_LIBRARY_PATH 10943 fi 10944 ;; 10945 10946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10947 version_type=freebsd-elf 10948 need_lib_prefix=no 10949 need_version=no 10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 shlibpath_var=LD_LIBRARY_PATH 10953 shlibpath_overrides_runpath=yes 10954 hardcode_into_libs=yes 10955 if test "$with_gnu_ld" = yes; then 10956 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10957 else 10958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10959 case $host_os in 10960 sco3.2v5*) 10961 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10962 ;; 10963 esac 10964 fi 10965 sys_lib_dlsearch_path_spec='/usr/lib' 10966 ;; 10967 10968 tpf*) 10969 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10970 version_type=linux 10971 need_lib_prefix=no 10972 need_version=no 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 shlibpath_var=LD_LIBRARY_PATH 10975 shlibpath_overrides_runpath=no 10976 hardcode_into_libs=yes 10977 ;; 10978 10979 uts4*) 10980 version_type=linux 10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10982 soname_spec='${libname}${release}${shared_ext}$major' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 ;; 10985 10986 *) 10987 dynamic_linker=no 10988 ;; 10989 esac 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10991 $as_echo "$dynamic_linker" >&6; } 10992 test "$dynamic_linker" = no && can_build_shared=no 10993 10994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10995 if test "$GCC" = yes; then 10996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10997 fi 10998 10999 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11000 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11001 fi 11002 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11003 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11004 fi 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11098 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11099 hardcode_action= 11100 if test -n "$hardcode_libdir_flag_spec" || 11101 test -n "$runpath_var" || 11102 test "X$hardcode_automatic" = "Xyes" ; then 11103 11104 # We can hardcode non-existent directories. 11105 if test "$hardcode_direct" != no && 11106 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11107 # have to relink, otherwise we might link with an installed library 11108 # when we should be linking with a yet-to-be-installed one 11109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11110 test "$hardcode_minus_L" != no; then 11111 # Linking always hardcodes the temporary library directory. 11112 hardcode_action=relink 11113 else 11114 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11115 hardcode_action=immediate 11116 fi 11117 else 11118 # We cannot hardcode anything, or else we can only hardcode existing 11119 # directories. 11120 hardcode_action=unsupported 11121 fi 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11123 $as_echo "$hardcode_action" >&6; } 11124 11125 if test "$hardcode_action" = relink || 11126 test "$inherit_rpath" = yes; then 11127 # Fast installation is not supported 11128 enable_fast_install=no 11129 elif test "$shlibpath_overrides_runpath" = yes || 11130 test "$enable_shared" = no; then 11131 # Fast installation is not necessary 11132 enable_fast_install=needless 11133 fi 11134 11135 11136 11137 11138 11139 11140 if test "x$enable_dlopen" != xyes; then 11141 enable_dlopen=unknown 11142 enable_dlopen_self=unknown 11143 enable_dlopen_self_static=unknown 11144 else 11145 lt_cv_dlopen=no 11146 lt_cv_dlopen_libs= 11147 11148 case $host_os in 11149 beos*) 11150 lt_cv_dlopen="load_add_on" 11151 lt_cv_dlopen_libs= 11152 lt_cv_dlopen_self=yes 11153 ;; 11154 11155 mingw* | pw32* | cegcc*) 11156 lt_cv_dlopen="LoadLibrary" 11157 lt_cv_dlopen_libs= 11158 ;; 11159 11160 cygwin*) 11161 lt_cv_dlopen="dlopen" 11162 lt_cv_dlopen_libs= 11163 ;; 11164 11165 darwin*) 11166 # if libdl is installed we need to link against it 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11168 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11170 $as_echo_n "(cached) " >&6 11171 else 11172 ac_check_lib_save_LIBS=$LIBS 11173 LIBS="-ldl $LIBS" 11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175 /* end confdefs.h. */ 11176 11177 /* Override any GCC internal prototype to avoid an error. 11178 Use char because int might match the return type of a GCC 11179 builtin and then its argument prototype would still apply. */ 11180 #ifdef __cplusplus 11181 extern "C" 11182 #endif 11183 char dlopen (); 11184 int 11185 main () 11186 { 11187 return dlopen (); 11188 ; 11189 return 0; 11190 } 11191 _ACEOF 11192 if ac_fn_c_try_link "$LINENO"; then : 11193 ac_cv_lib_dl_dlopen=yes 11194 else 11195 ac_cv_lib_dl_dlopen=no 11196 fi 11197 rm -f core conftest.err conftest.$ac_objext \ 11198 conftest$ac_exeext conftest.$ac_ext 11199 LIBS=$ac_check_lib_save_LIBS 11200 fi 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11203 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11205 else 11206 11207 lt_cv_dlopen="dyld" 11208 lt_cv_dlopen_libs= 11209 lt_cv_dlopen_self=yes 11210 11211 fi 11212 11213 ;; 11214 11215 *) 11216 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11217 if test "x$ac_cv_func_shl_load" = x""yes; then : 11218 lt_cv_dlopen="shl_load" 11219 else 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11221 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11222 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11223 $as_echo_n "(cached) " >&6 11224 else 11225 ac_check_lib_save_LIBS=$LIBS 11226 LIBS="-ldld $LIBS" 11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228 /* end confdefs.h. */ 11229 11230 /* Override any GCC internal prototype to avoid an error. 11231 Use char because int might match the return type of a GCC 11232 builtin and then its argument prototype would still apply. */ 11233 #ifdef __cplusplus 11234 extern "C" 11235 #endif 11236 char shl_load (); 11237 int 11238 main () 11239 { 11240 return shl_load (); 11241 ; 11242 return 0; 11243 } 11244 _ACEOF 11245 if ac_fn_c_try_link "$LINENO"; then : 11246 ac_cv_lib_dld_shl_load=yes 11247 else 11248 ac_cv_lib_dld_shl_load=no 11249 fi 11250 rm -f core conftest.err conftest.$ac_objext \ 11251 conftest$ac_exeext conftest.$ac_ext 11252 LIBS=$ac_check_lib_save_LIBS 11253 fi 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11255 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11256 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11257 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11258 else 11259 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11260 if test "x$ac_cv_func_dlopen" = x""yes; then : 11261 lt_cv_dlopen="dlopen" 11262 else 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11264 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11266 $as_echo_n "(cached) " >&6 11267 else 11268 ac_check_lib_save_LIBS=$LIBS 11269 LIBS="-ldl $LIBS" 11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11271 /* end confdefs.h. */ 11272 11273 /* Override any GCC internal prototype to avoid an error. 11274 Use char because int might match the return type of a GCC 11275 builtin and then its argument prototype would still apply. */ 11276 #ifdef __cplusplus 11277 extern "C" 11278 #endif 11279 char dlopen (); 11280 int 11281 main () 11282 { 11283 return dlopen (); 11284 ; 11285 return 0; 11286 } 11287 _ACEOF 11288 if ac_fn_c_try_link "$LINENO"; then : 11289 ac_cv_lib_dl_dlopen=yes 11290 else 11291 ac_cv_lib_dl_dlopen=no 11292 fi 11293 rm -f core conftest.err conftest.$ac_objext \ 11294 conftest$ac_exeext conftest.$ac_ext 11295 LIBS=$ac_check_lib_save_LIBS 11296 fi 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11299 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11301 else 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11303 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11305 $as_echo_n "(cached) " >&6 11306 else 11307 ac_check_lib_save_LIBS=$LIBS 11308 LIBS="-lsvld $LIBS" 11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11310 /* end confdefs.h. */ 11311 11312 /* Override any GCC internal prototype to avoid an error. 11313 Use char because int might match the return type of a GCC 11314 builtin and then its argument prototype would still apply. */ 11315 #ifdef __cplusplus 11316 extern "C" 11317 #endif 11318 char dlopen (); 11319 int 11320 main () 11321 { 11322 return dlopen (); 11323 ; 11324 return 0; 11325 } 11326 _ACEOF 11327 if ac_fn_c_try_link "$LINENO"; then : 11328 ac_cv_lib_svld_dlopen=yes 11329 else 11330 ac_cv_lib_svld_dlopen=no 11331 fi 11332 rm -f core conftest.err conftest.$ac_objext \ 11333 conftest$ac_exeext conftest.$ac_ext 11334 LIBS=$ac_check_lib_save_LIBS 11335 fi 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11337 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11338 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11340 else 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11342 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11344 $as_echo_n "(cached) " >&6 11345 else 11346 ac_check_lib_save_LIBS=$LIBS 11347 LIBS="-ldld $LIBS" 11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349 /* end confdefs.h. */ 11350 11351 /* Override any GCC internal prototype to avoid an error. 11352 Use char because int might match the return type of a GCC 11353 builtin and then its argument prototype would still apply. */ 11354 #ifdef __cplusplus 11355 extern "C" 11356 #endif 11357 char dld_link (); 11358 int 11359 main () 11360 { 11361 return dld_link (); 11362 ; 11363 return 0; 11364 } 11365 _ACEOF 11366 if ac_fn_c_try_link "$LINENO"; then : 11367 ac_cv_lib_dld_dld_link=yes 11368 else 11369 ac_cv_lib_dld_dld_link=no 11370 fi 11371 rm -f core conftest.err conftest.$ac_objext \ 11372 conftest$ac_exeext conftest.$ac_ext 11373 LIBS=$ac_check_lib_save_LIBS 11374 fi 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11376 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11377 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11379 fi 11380 11381 11382 fi 11383 11384 11385 fi 11386 11387 11388 fi 11389 11390 11391 fi 11392 11393 11394 fi 11395 11396 ;; 11397 esac 11398 11399 if test "x$lt_cv_dlopen" != xno; then 11400 enable_dlopen=yes 11401 else 11402 enable_dlopen=no 11403 fi 11404 11405 case $lt_cv_dlopen in 11406 dlopen) 11407 save_CPPFLAGS="$CPPFLAGS" 11408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11409 11410 save_LDFLAGS="$LDFLAGS" 11411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11412 11413 save_LIBS="$LIBS" 11414 LIBS="$lt_cv_dlopen_libs $LIBS" 11415 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11417 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11418 if test "${lt_cv_dlopen_self+set}" = set; then : 11419 $as_echo_n "(cached) " >&6 11420 else 11421 if test "$cross_compiling" = yes; then : 11422 lt_cv_dlopen_self=cross 11423 else 11424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11425 lt_status=$lt_dlunknown 11426 cat > conftest.$ac_ext <<_LT_EOF 11427 #line $LINENO "configure" 11428 #include "confdefs.h" 11429 11430 #if HAVE_DLFCN_H 11431 #include <dlfcn.h> 11432 #endif 11433 11434 #include <stdio.h> 11435 11436 #ifdef RTLD_GLOBAL 11437 # define LT_DLGLOBAL RTLD_GLOBAL 11438 #else 11439 # ifdef DL_GLOBAL 11440 # define LT_DLGLOBAL DL_GLOBAL 11441 # else 11442 # define LT_DLGLOBAL 0 11443 # endif 11444 #endif 11445 11446 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11447 find out it does not work in some platform. */ 11448 #ifndef LT_DLLAZY_OR_NOW 11449 # ifdef RTLD_LAZY 11450 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11451 # else 11452 # ifdef DL_LAZY 11453 # define LT_DLLAZY_OR_NOW DL_LAZY 11454 # else 11455 # ifdef RTLD_NOW 11456 # define LT_DLLAZY_OR_NOW RTLD_NOW 11457 # else 11458 # ifdef DL_NOW 11459 # define LT_DLLAZY_OR_NOW DL_NOW 11460 # else 11461 # define LT_DLLAZY_OR_NOW 0 11462 # endif 11463 # endif 11464 # endif 11465 # endif 11466 #endif 11467 11468 /* When -fvisbility=hidden is used, assume the code has been annotated 11469 correspondingly for the symbols needed. */ 11470 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11471 int fnord () __attribute__((visibility("default"))); 11472 #endif 11473 11474 int fnord () { return 42; } 11475 int main () 11476 { 11477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11478 int status = $lt_dlunknown; 11479 11480 if (self) 11481 { 11482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11483 else 11484 { 11485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11486 else puts (dlerror ()); 11487 } 11488 /* dlclose (self); */ 11489 } 11490 else 11491 puts (dlerror ()); 11492 11493 return status; 11494 } 11495 _LT_EOF 11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11497 (eval $ac_link) 2>&5 11498 ac_status=$? 11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11501 (./conftest; exit; ) >&5 2>/dev/null 11502 lt_status=$? 11503 case x$lt_status in 11504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11506 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11507 esac 11508 else : 11509 # compilation failed 11510 lt_cv_dlopen_self=no 11511 fi 11512 fi 11513 rm -fr conftest* 11514 11515 11516 fi 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11518 $as_echo "$lt_cv_dlopen_self" >&6; } 11519 11520 if test "x$lt_cv_dlopen_self" = xyes; then 11521 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11523 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11524 if test "${lt_cv_dlopen_self_static+set}" = set; then : 11525 $as_echo_n "(cached) " >&6 11526 else 11527 if test "$cross_compiling" = yes; then : 11528 lt_cv_dlopen_self_static=cross 11529 else 11530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11531 lt_status=$lt_dlunknown 11532 cat > conftest.$ac_ext <<_LT_EOF 11533 #line $LINENO "configure" 11534 #include "confdefs.h" 11535 11536 #if HAVE_DLFCN_H 11537 #include <dlfcn.h> 11538 #endif 11539 11540 #include <stdio.h> 11541 11542 #ifdef RTLD_GLOBAL 11543 # define LT_DLGLOBAL RTLD_GLOBAL 11544 #else 11545 # ifdef DL_GLOBAL 11546 # define LT_DLGLOBAL DL_GLOBAL 11547 # else 11548 # define LT_DLGLOBAL 0 11549 # endif 11550 #endif 11551 11552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11553 find out it does not work in some platform. */ 11554 #ifndef LT_DLLAZY_OR_NOW 11555 # ifdef RTLD_LAZY 11556 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11557 # else 11558 # ifdef DL_LAZY 11559 # define LT_DLLAZY_OR_NOW DL_LAZY 11560 # else 11561 # ifdef RTLD_NOW 11562 # define LT_DLLAZY_OR_NOW RTLD_NOW 11563 # else 11564 # ifdef DL_NOW 11565 # define LT_DLLAZY_OR_NOW DL_NOW 11566 # else 11567 # define LT_DLLAZY_OR_NOW 0 11568 # endif 11569 # endif 11570 # endif 11571 # endif 11572 #endif 11573 11574 /* When -fvisbility=hidden is used, assume the code has been annotated 11575 correspondingly for the symbols needed. */ 11576 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11577 int fnord () __attribute__((visibility("default"))); 11578 #endif 11579 11580 int fnord () { return 42; } 11581 int main () 11582 { 11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11584 int status = $lt_dlunknown; 11585 11586 if (self) 11587 { 11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11589 else 11590 { 11591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11592 else puts (dlerror ()); 11593 } 11594 /* dlclose (self); */ 11595 } 11596 else 11597 puts (dlerror ()); 11598 11599 return status; 11600 } 11601 _LT_EOF 11602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11603 (eval $ac_link) 2>&5 11604 ac_status=$? 11605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11606 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11607 (./conftest; exit; ) >&5 2>/dev/null 11608 lt_status=$? 11609 case x$lt_status in 11610 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11611 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11612 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11613 esac 11614 else : 11615 # compilation failed 11616 lt_cv_dlopen_self_static=no 11617 fi 11618 fi 11619 rm -fr conftest* 11620 11621 11622 fi 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11624 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11625 fi 11626 11627 CPPFLAGS="$save_CPPFLAGS" 11628 LDFLAGS="$save_LDFLAGS" 11629 LIBS="$save_LIBS" 11630 ;; 11631 esac 11632 11633 case $lt_cv_dlopen_self in 11634 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11635 *) enable_dlopen_self=unknown ;; 11636 esac 11637 11638 case $lt_cv_dlopen_self_static in 11639 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11640 *) enable_dlopen_self_static=unknown ;; 11641 esac 11642 fi 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 striplib= 11661 old_striplib= 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11663 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11664 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11665 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11666 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11668 $as_echo "yes" >&6; } 11669 else 11670 # FIXME - insert some real tests, host_os isn't really good enough 11671 case $host_os in 11672 darwin*) 11673 if test -n "$STRIP" ; then 11674 striplib="$STRIP -x" 11675 old_striplib="$STRIP -S" 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11677 $as_echo "yes" >&6; } 11678 else 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680 $as_echo "no" >&6; } 11681 fi 11682 ;; 11683 *) 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685 $as_echo "no" >&6; } 11686 ;; 11687 esac 11688 fi 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 # Report which library types will actually be built 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11703 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11705 $as_echo "$can_build_shared" >&6; } 11706 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11708 $as_echo_n "checking whether to build shared libraries... " >&6; } 11709 test "$can_build_shared" = "no" && enable_shared=no 11710 11711 # On AIX, shared libraries and static libraries use the same namespace, and 11712 # are all built from PIC. 11713 case $host_os in 11714 aix3*) 11715 test "$enable_shared" = yes && enable_static=no 11716 if test -n "$RANLIB"; then 11717 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11718 postinstall_cmds='$RANLIB $lib' 11719 fi 11720 ;; 11721 11722 aix[4-9]*) 11723 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11724 test "$enable_shared" = yes && enable_static=no 11725 fi 11726 ;; 11727 esac 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11729 $as_echo "$enable_shared" >&6; } 11730 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11732 $as_echo_n "checking whether to build static libraries... " >&6; } 11733 # Make sure either enable_shared or enable_static is yes. 11734 test "$enable_shared" = yes || enable_static=yes 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11736 $as_echo "$enable_static" >&6; } 11737 11738 11739 11740 11741 fi 11742 ac_ext=c 11743 ac_cpp='$CPP $CPPFLAGS' 11744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11746 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11747 11748 CC="$lt_save_CC" 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 ac_config_commands="$ac_config_commands libtool" 11763 11764 11765 11766 11767 # Only expand once: 11768 11769 11770 11771 11772 11773 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 11774 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 11775 11776 11777 CANONICAL_HOST=$host 11778 11779 11780 # Check whether --enable-largefile was given. 11781 if test "${enable_largefile+set}" = set; then : 11782 enableval=$enable_largefile; 11783 fi 11784 11785 if test "$enable_largefile" != no; then 11786 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11788 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11789 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 11790 $as_echo_n "(cached) " >&6 11791 else 11792 ac_cv_sys_largefile_CC=no 11793 if test "$GCC" != yes; then 11794 ac_save_CC=$CC 11795 while :; do 11796 # IRIX 6.2 and later do not support large files by default, 11797 # so use the C compiler's -n32 option if that helps. 11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11799 /* end confdefs.h. */ 11800 #include <sys/types.h> 11801 /* Check that off_t can represent 2**63 - 1 correctly. 11802 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11803 since some C++ compilers masquerading as C compilers 11804 incorrectly reject 9223372036854775807. */ 11805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11807 && LARGE_OFF_T % 2147483647 == 1) 11808 ? 1 : -1]; 11809 int 11810 main () 11811 { 11812 11813 ; 11814 return 0; 11815 } 11816 _ACEOF 11817 if ac_fn_c_try_compile "$LINENO"; then : 11818 break 11819 fi 11820 rm -f core conftest.err conftest.$ac_objext 11821 CC="$CC -n32" 11822 if ac_fn_c_try_compile "$LINENO"; then : 11823 ac_cv_sys_largefile_CC=' -n32'; break 11824 fi 11825 rm -f core conftest.err conftest.$ac_objext 11826 break 11827 done 11828 CC=$ac_save_CC 11829 rm -f conftest.$ac_ext 11830 fi 11831 fi 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11833 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 11834 if test "$ac_cv_sys_largefile_CC" != no; then 11835 CC=$CC$ac_cv_sys_largefile_CC 11836 fi 11837 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11839 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11840 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 11841 $as_echo_n "(cached) " >&6 11842 else 11843 while :; do 11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11845 /* end confdefs.h. */ 11846 #include <sys/types.h> 11847 /* Check that off_t can represent 2**63 - 1 correctly. 11848 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11849 since some C++ compilers masquerading as C compilers 11850 incorrectly reject 9223372036854775807. */ 11851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11853 && LARGE_OFF_T % 2147483647 == 1) 11854 ? 1 : -1]; 11855 int 11856 main () 11857 { 11858 11859 ; 11860 return 0; 11861 } 11862 _ACEOF 11863 if ac_fn_c_try_compile "$LINENO"; then : 11864 ac_cv_sys_file_offset_bits=no; break 11865 fi 11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11868 /* end confdefs.h. */ 11869 #define _FILE_OFFSET_BITS 64 11870 #include <sys/types.h> 11871 /* Check that off_t can represent 2**63 - 1 correctly. 11872 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11873 since some C++ compilers masquerading as C compilers 11874 incorrectly reject 9223372036854775807. */ 11875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11877 && LARGE_OFF_T % 2147483647 == 1) 11878 ? 1 : -1]; 11879 int 11880 main () 11881 { 11882 11883 ; 11884 return 0; 11885 } 11886 _ACEOF 11887 if ac_fn_c_try_compile "$LINENO"; then : 11888 ac_cv_sys_file_offset_bits=64; break 11889 fi 11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11891 ac_cv_sys_file_offset_bits=unknown 11892 break 11893 done 11894 fi 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11896 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11897 case $ac_cv_sys_file_offset_bits in #( 11898 no | unknown) ;; 11899 *) 11900 cat >>confdefs.h <<_ACEOF 11901 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11902 _ACEOF 11903 ;; 11904 esac 11905 rm -rf conftest* 11906 if test $ac_cv_sys_file_offset_bits = unknown; then 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11908 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11909 if test "${ac_cv_sys_large_files+set}" = set; then : 11910 $as_echo_n "(cached) " >&6 11911 else 11912 while :; do 11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11914 /* end confdefs.h. */ 11915 #include <sys/types.h> 11916 /* Check that off_t can represent 2**63 - 1 correctly. 11917 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11918 since some C++ compilers masquerading as C compilers 11919 incorrectly reject 9223372036854775807. */ 11920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11922 && LARGE_OFF_T % 2147483647 == 1) 11923 ? 1 : -1]; 11924 int 11925 main () 11926 { 11927 11928 ; 11929 return 0; 11930 } 11931 _ACEOF 11932 if ac_fn_c_try_compile "$LINENO"; then : 11933 ac_cv_sys_large_files=no; break 11934 fi 11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11937 /* end confdefs.h. */ 11938 #define _LARGE_FILES 1 11939 #include <sys/types.h> 11940 /* Check that off_t can represent 2**63 - 1 correctly. 11941 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11942 since some C++ compilers masquerading as C compilers 11943 incorrectly reject 9223372036854775807. */ 11944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11946 && LARGE_OFF_T % 2147483647 == 1) 11947 ? 1 : -1]; 11948 int 11949 main () 11950 { 11951 11952 ; 11953 return 0; 11954 } 11955 _ACEOF 11956 if ac_fn_c_try_compile "$LINENO"; then : 11957 ac_cv_sys_large_files=1; break 11958 fi 11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11960 ac_cv_sys_large_files=unknown 11961 break 11962 done 11963 fi 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11965 $as_echo "$ac_cv_sys_large_files" >&6; } 11966 case $ac_cv_sys_large_files in #( 11967 no | unknown) ;; 11968 *) 11969 cat >>confdefs.h <<_ACEOF 11970 #define _LARGE_FILES $ac_cv_sys_large_files 11971 _ACEOF 11972 ;; 11973 esac 11974 rm -rf conftest* 11975 fi 11976 fi 11977 11978 11979 if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then 11980 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" 11981 fi 11982 if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then 11983 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 11984 fi 11985 11986 11987 11988 11989 11990 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 11992 $as_echo_n "checking for dlopen... " >&6; } 11993 if test "${ac_cv_funclib_dlopen+set}" = set; then : 11994 $as_echo_n "(cached) " >&6 11995 else 11996 11997 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 11998 ac_save_LIBS="$LIBS" 11999 for ac_lib in "" dl; do 12000 case "$ac_lib" in 12001 "") ;; 12002 yes) ac_lib="" ;; 12003 no) continue ;; 12004 -l*) ;; 12005 *) ac_lib="-l$ac_lib" ;; 12006 esac 12007 LIBS=" $ac_lib $ac_save_LIBS" 12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12009 /* end confdefs.h. */ 12010 12011 #ifdef HAVE_DLFCN_H 12012 #include <dlfcn.h> 12013 #endif 12014 int 12015 main () 12016 { 12017 dlopen(0,0) 12018 ; 12019 return 0; 12020 } 12021 _ACEOF 12022 if ac_fn_c_try_link "$LINENO"; then : 12023 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 12024 fi 12025 rm -f core conftest.err conftest.$ac_objext \ 12026 conftest$ac_exeext conftest.$ac_ext 12027 done 12028 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 12029 LIBS="$ac_save_LIBS" 12030 fi 12031 12032 fi 12033 12034 12035 eval "ac_res=\$ac_cv_funclib_dlopen" 12036 12037 if false; then 12038 for ac_func in dlopen 12039 do : 12040 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12041 if test "x$ac_cv_func_dlopen" = x""yes; then : 12042 cat >>confdefs.h <<_ACEOF 12043 #define HAVE_DLOPEN 1 12044 _ACEOF 12045 12046 fi 12047 done 12048 12049 fi 12050 # dlopen 12051 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12052 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12053 eval "LIB_dlopen=$ac_res" 12054 12055 case "$ac_res" in 12056 yes) 12057 eval "ac_cv_func_dlopen=yes" 12058 eval "LIB_dlopen=" 12059 cat >>confdefs.h <<_ACEOF 12060 #define $ac_tr_func 1 12061 _ACEOF 12062 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12064 $as_echo "yes" >&6; } 12065 ;; 12066 no) 12067 eval "ac_cv_func_dlopen=no" 12068 eval "LIB_dlopen=" 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12070 $as_echo "no" >&6; } 12071 ;; 12072 *) 12073 eval "ac_cv_func_dlopen=yes" 12074 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12075 cat >>confdefs.h <<_ACEOF 12076 #define $ac_tr_func 1 12077 _ACEOF 12078 12079 cat >>confdefs.h <<_ACEOF 12080 #define $ac_tr_lib 1 12081 _ACEOF 12082 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 12084 $as_echo "yes, in $ac_res" >&6; } 12085 ;; 12086 esac 12087 12088 12089 if test "$ac_cv_funclib_dlopen" != no; then 12090 HAVE_DLOPEN_TRUE= 12091 HAVE_DLOPEN_FALSE='#' 12092 else 12093 HAVE_DLOPEN_TRUE='#' 12094 HAVE_DLOPEN_FALSE= 12095 fi 12096 12097 12098 12099 12100 aix=no 12101 case "$host" in 12102 *-*-aix3*) 12103 aix=3 12104 ;; 12105 *-*-aix[4-9]*) 12106 aix=4 12107 ;; 12108 esac 12109 12110 if test "$aix" != no; then 12111 AIX_TRUE= 12112 AIX_FALSE='#' 12113 else 12114 AIX_TRUE='#' 12115 AIX_FALSE= 12116 fi 12117 if test "$aix" = 4; then 12118 AIX4_TRUE= 12119 AIX4_FALSE='#' 12120 else 12121 AIX4_TRUE='#' 12122 AIX4_FALSE= 12123 fi 12124 12125 # Check whether --enable-dynamic-afs was given. 12126 if test "${enable_dynamic_afs+set}" = set; then : 12127 enableval=$enable_dynamic_afs; 12128 fi 12129 12130 12131 if test "$aix" != no; then 12132 12133 12134 $as_echo "#define NEED_QSORT 1" >>confdefs.h 12135 12136 12137 if test "$enable_dynamic_afs" != no; then 12138 12139 if test "$ac_cv_func_dlopen" = no; then 12140 12141 12142 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5 12144 $as_echo_n "checking for loadquery... " >&6; } 12145 if test "${ac_cv_funclib_loadquery+set}" = set; then : 12146 $as_echo_n "(cached) " >&6 12147 else 12148 12149 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 12150 ac_save_LIBS="$LIBS" 12151 for ac_lib in "" ld; do 12152 case "$ac_lib" in 12153 "") ;; 12154 yes) ac_lib="" ;; 12155 no) continue ;; 12156 -l*) ;; 12157 *) ac_lib="-l$ac_lib" ;; 12158 esac 12159 LIBS=" $ac_lib $ac_save_LIBS" 12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12161 /* end confdefs.h. */ 12162 12163 int 12164 main () 12165 { 12166 loadquery() 12167 ; 12168 return 0; 12169 } 12170 _ACEOF 12171 if ac_fn_c_try_link "$LINENO"; then : 12172 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 12173 fi 12174 rm -f core conftest.err conftest.$ac_objext \ 12175 conftest$ac_exeext conftest.$ac_ext 12176 done 12177 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 12178 LIBS="$ac_save_LIBS" 12179 fi 12180 12181 fi 12182 12183 12184 eval "ac_res=\$ac_cv_funclib_loadquery" 12185 12186 if false; then 12187 for ac_func in loadquery 12188 do : 12189 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" 12190 if test "x$ac_cv_func_loadquery" = x""yes; then : 12191 cat >>confdefs.h <<_ACEOF 12192 #define HAVE_LOADQUERY 1 12193 _ACEOF 12194 12195 fi 12196 done 12197 12198 fi 12199 # loadquery 12200 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12201 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12202 eval "LIB_loadquery=$ac_res" 12203 12204 case "$ac_res" in 12205 yes) 12206 eval "ac_cv_func_loadquery=yes" 12207 eval "LIB_loadquery=" 12208 cat >>confdefs.h <<_ACEOF 12209 #define $ac_tr_func 1 12210 _ACEOF 12211 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12213 $as_echo "yes" >&6; } 12214 ;; 12215 no) 12216 eval "ac_cv_func_loadquery=no" 12217 eval "LIB_loadquery=" 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12219 $as_echo "no" >&6; } 12220 ;; 12221 *) 12222 eval "ac_cv_func_loadquery=yes" 12223 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12224 cat >>confdefs.h <<_ACEOF 12225 #define $ac_tr_func 1 12226 _ACEOF 12227 12228 cat >>confdefs.h <<_ACEOF 12229 #define $ac_tr_lib 1 12230 _ACEOF 12231 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 12233 $as_echo "yes, in $ac_res" >&6; } 12234 ;; 12235 esac 12236 12237 12238 fi 12239 if test "$ac_cv_func_dlopen" != no; then 12240 AIX_EXTRA_KAFS='$(LIB_dlopen)' 12241 elif test "$ac_cv_func_loadquery" != no; then 12242 AIX_EXTRA_KAFS='$(LIB_loadquery)' 12243 else 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5 12245 $as_echo "$as_me: not using dynloaded AFS library" >&6;} 12246 AIX_EXTRA_KAFS= 12247 enable_dynamic_afs=no 12248 fi 12249 else 12250 AIX_EXTRA_KAFS= 12251 fi 12252 fi 12253 12254 if test "$enable_dynamic_afs" != no; then 12255 AIX_DYNAMIC_AFS_TRUE= 12256 AIX_DYNAMIC_AFS_FALSE='#' 12257 else 12258 AIX_DYNAMIC_AFS_TRUE='#' 12259 AIX_DYNAMIC_AFS_FALSE= 12260 fi 12261 12262 if test "$aix" != no; then 12263 12264 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 12265 12266 fi 12267 12268 12269 12270 12271 12272 irix=no 12273 case "$host" in 12274 *-*-irix*) 12275 irix=yes 12276 ;; 12277 esac 12278 if test "$irix" != no; then 12279 IRIX_TRUE= 12280 IRIX_FALSE='#' 12281 else 12282 IRIX_TRUE='#' 12283 IRIX_FALSE= 12284 fi 12285 12286 12287 12288 sunos=no 12289 case "$host" in 12290 *-*-solaris2.7) 12291 sunos=57 12292 ;; 12293 *-*-solaris2.[89] | *-*-solaris2.1[0-9]) 12294 sunos=58 12295 ;; 12296 *-*-solaris2*) 12297 sunos=50 12298 ;; 12299 esac 12300 if test "$sunos" != no; then 12301 12302 cat >>confdefs.h <<_ACEOF 12303 #define SunOS $sunos 12304 _ACEOF 12305 12306 fi 12307 12308 12309 12310 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 12311 12312 12313 12314 12315 12316 for ac_prog in 'bison -y' byacc 12317 do 12318 # Extract the first word of "$ac_prog", so it can be a program name with args. 12319 set dummy $ac_prog; ac_word=$2 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12321 $as_echo_n "checking for $ac_word... " >&6; } 12322 if test "${ac_cv_prog_YACC+set}" = set; then : 12323 $as_echo_n "(cached) " >&6 12324 else 12325 if test -n "$YACC"; then 12326 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12327 else 12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12329 for as_dir in $PATH 12330 do 12331 IFS=$as_save_IFS 12332 test -z "$as_dir" && as_dir=. 12333 for ac_exec_ext in '' $ac_executable_extensions; do 12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12335 ac_cv_prog_YACC="$ac_prog" 12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12337 break 2 12338 fi 12339 done 12340 done 12341 IFS=$as_save_IFS 12342 12343 fi 12344 fi 12345 YACC=$ac_cv_prog_YACC 12346 if test -n "$YACC"; then 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12348 $as_echo "$YACC" >&6; } 12349 else 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12351 $as_echo "no" >&6; } 12352 fi 12353 12354 12355 test -n "$YACC" && break 12356 done 12357 test -n "$YACC" || YACC="yacc" 12358 12359 for ac_prog in flex lex 12360 do 12361 # Extract the first word of "$ac_prog", so it can be a program name with args. 12362 set dummy $ac_prog; ac_word=$2 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12364 $as_echo_n "checking for $ac_word... " >&6; } 12365 if test "${ac_cv_prog_LEX+set}" = set; then : 12366 $as_echo_n "(cached) " >&6 12367 else 12368 if test -n "$LEX"; then 12369 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12370 else 12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12372 for as_dir in $PATH 12373 do 12374 IFS=$as_save_IFS 12375 test -z "$as_dir" && as_dir=. 12376 for ac_exec_ext in '' $ac_executable_extensions; do 12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12378 ac_cv_prog_LEX="$ac_prog" 12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12380 break 2 12381 fi 12382 done 12383 done 12384 IFS=$as_save_IFS 12385 12386 fi 12387 fi 12388 LEX=$ac_cv_prog_LEX 12389 if test -n "$LEX"; then 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12391 $as_echo "$LEX" >&6; } 12392 else 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12394 $as_echo "no" >&6; } 12395 fi 12396 12397 12398 test -n "$LEX" && break 12399 done 12400 test -n "$LEX" || LEX=":" 12401 12402 if test "x$LEX" != "x:"; then 12403 cat >conftest.l <<_ACEOF 12404 %% 12405 a { ECHO; } 12406 b { REJECT; } 12407 c { yymore (); } 12408 d { yyless (1); } 12409 e { yyless (input () != 0); } 12410 f { unput (yytext[0]); } 12411 . { BEGIN INITIAL; } 12412 %% 12413 #ifdef YYTEXT_POINTER 12414 extern char *yytext; 12415 #endif 12416 int 12417 main (void) 12418 { 12419 return ! yylex () + ! yywrap (); 12420 } 12421 _ACEOF 12422 { { ac_try="$LEX conftest.l" 12423 case "(($ac_try" in 12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12425 *) ac_try_echo=$ac_try;; 12426 esac 12427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12428 $as_echo "$ac_try_echo"; } >&5 12429 (eval "$LEX conftest.l") 2>&5 12430 ac_status=$? 12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12432 test $ac_status = 0; } 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12434 $as_echo_n "checking lex output file root... " >&6; } 12435 if test "${ac_cv_prog_lex_root+set}" = set; then : 12436 $as_echo_n "(cached) " >&6 12437 else 12438 12439 if test -f lex.yy.c; then 12440 ac_cv_prog_lex_root=lex.yy 12441 elif test -f lexyy.c; then 12442 ac_cv_prog_lex_root=lexyy 12443 else 12444 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 12445 fi 12446 fi 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 12448 $as_echo "$ac_cv_prog_lex_root" >&6; } 12449 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 12450 12451 if test -z "${LEXLIB+set}"; then 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 12453 $as_echo_n "checking lex library... " >&6; } 12454 if test "${ac_cv_lib_lex+set}" = set; then : 12455 $as_echo_n "(cached) " >&6 12456 else 12457 12458 ac_save_LIBS=$LIBS 12459 ac_cv_lib_lex='none needed' 12460 for ac_lib in '' -lfl -ll; do 12461 LIBS="$ac_lib $ac_save_LIBS" 12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12463 /* end confdefs.h. */ 12464 `cat $LEX_OUTPUT_ROOT.c` 12465 _ACEOF 12466 if ac_fn_c_try_link "$LINENO"; then : 12467 ac_cv_lib_lex=$ac_lib 12468 fi 12469 rm -f core conftest.err conftest.$ac_objext \ 12470 conftest$ac_exeext conftest.$ac_ext 12471 test "$ac_cv_lib_lex" != 'none needed' && break 12472 done 12473 LIBS=$ac_save_LIBS 12474 12475 fi 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 12477 $as_echo "$ac_cv_lib_lex" >&6; } 12478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 12479 fi 12480 12481 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 12483 $as_echo_n "checking whether yytext is a pointer... " >&6; } 12484 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : 12485 $as_echo_n "(cached) " >&6 12486 else 12487 # POSIX says lex can declare yytext either as a pointer or an array; the 12488 # default is implementation-dependent. Figure out which it is, since 12489 # not all implementations provide the %pointer and %array declarations. 12490 ac_cv_prog_lex_yytext_pointer=no 12491 ac_save_LIBS=$LIBS 12492 LIBS="$LEXLIB $ac_save_LIBS" 12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12494 /* end confdefs.h. */ 12495 #define YYTEXT_POINTER 1 12496 `cat $LEX_OUTPUT_ROOT.c` 12497 _ACEOF 12498 if ac_fn_c_try_link "$LINENO"; then : 12499 ac_cv_prog_lex_yytext_pointer=yes 12500 fi 12501 rm -f core conftest.err conftest.$ac_objext \ 12502 conftest$ac_exeext conftest.$ac_ext 12503 LIBS=$ac_save_LIBS 12504 12505 fi 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 12507 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 12508 if test $ac_cv_prog_lex_yytext_pointer = yes; then 12509 12510 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 12511 12512 fi 12513 rm -f conftest.l $LEX_OUTPUT_ROOT.c 12514 12515 fi 12516 if test "$LEX" = :; then 12517 LEX=${am_missing_run}flex 12518 fi 12519 for ac_prog in gawk mawk nawk awk 12520 do 12521 # Extract the first word of "$ac_prog", so it can be a program name with args. 12522 set dummy $ac_prog; ac_word=$2 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12524 $as_echo_n "checking for $ac_word... " >&6; } 12525 if test "${ac_cv_prog_AWK+set}" = set; then : 12526 $as_echo_n "(cached) " >&6 12527 else 12528 if test -n "$AWK"; then 12529 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12530 else 12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12532 for as_dir in $PATH 12533 do 12534 IFS=$as_save_IFS 12535 test -z "$as_dir" && as_dir=. 12536 for ac_exec_ext in '' $ac_executable_extensions; do 12537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12538 ac_cv_prog_AWK="$ac_prog" 12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12540 break 2 12541 fi 12542 done 12543 done 12544 IFS=$as_save_IFS 12545 12546 fi 12547 fi 12548 AWK=$ac_cv_prog_AWK 12549 if test -n "$AWK"; then 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12551 $as_echo "$AWK" >&6; } 12552 else 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12554 $as_echo "no" >&6; } 12555 fi 12556 12557 12558 test -n "$AWK" && break 12559 done 12560 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5 12562 $as_echo_n "checking for ln -s or something else... " >&6; } 12563 if test "${ac_cv_prog_LN_S+set}" = set; then : 12564 $as_echo_n "(cached) " >&6 12565 else 12566 rm -f conftestdata 12567 if ln -s X conftestdata 2>/dev/null 12568 then 12569 rm -f conftestdata 12570 ac_cv_prog_LN_S="ln -s" 12571 else 12572 touch conftestdata1 12573 if ln conftestdata1 conftestdata2; then 12574 rm -f conftestdata* 12575 ac_cv_prog_LN_S=ln 12576 else 12577 ac_cv_prog_LN_S=cp 12578 fi 12579 fi 12580 fi 12581 LN_S="$ac_cv_prog_LN_S" 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5 12583 $as_echo "$ac_cv_prog_LN_S" >&6; } 12584 12585 12586 12587 12588 # Check whether --with-mips_abi was given. 12589 if test "${with_mips_abi+set}" = set; then : 12590 withval=$with_mips_abi; 12591 fi 12592 12593 12594 case "$host_os" in 12595 irix*) 12596 with_mips_abi="${with_mips_abi:-yes}" 12597 if test -n "$GCC"; then 12598 12599 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 12600 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 12601 # 12602 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 12603 # GCC and revert back to O32. The same goes if O32 is asked for - old 12604 # GCCs doesn't like the -mabi option, and new GCCs can't output O32. 12605 # 12606 # Don't you just love *all* the different SGI ABIs? 12607 12608 case "${with_mips_abi}" in 12609 32|o32) abi='-mabi=32'; abilibdirext='' ;; 12610 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 12611 64) abi='-mabi=64'; abilibdirext='64' ;; 12612 no) abi=''; abilibdirext='';; 12613 *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;; 12614 esac 12615 if test -n "$abi" ; then 12616 ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5 12618 $as_echo_n "checking if $CC supports the $abi option... " >&6; } 12619 if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then : 12620 $as_echo_n "(cached) " >&6 12621 else 12622 12623 save_CFLAGS="$CFLAGS" 12624 CFLAGS="$CFLAGS $abi" 12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12626 /* end confdefs.h. */ 12627 12628 int 12629 main () 12630 { 12631 int x; 12632 ; 12633 return 0; 12634 } 12635 _ACEOF 12636 if ac_fn_c_try_compile "$LINENO"; then : 12637 eval $ac_foo=yes 12638 else 12639 eval $ac_foo=no 12640 fi 12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS" 12642 12643 fi 12644 12645 ac_res=`eval echo \\\$$ac_foo` 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12647 $as_echo "$ac_res" >&6; } 12648 if test $ac_res = no; then 12649 # Try to figure out why that failed... 12650 case $abi in 12651 -mabi=32) 12652 save_CFLAGS="$CFLAGS" 12653 CFLAGS="$CFLAGS -mabi=n32" 12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12655 /* end confdefs.h. */ 12656 12657 int 12658 main () 12659 { 12660 int x; 12661 ; 12662 return 0; 12663 } 12664 _ACEOF 12665 if ac_fn_c_try_compile "$LINENO"; then : 12666 ac_res=yes 12667 else 12668 ac_res=no 12669 fi 12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CLAGS="$save_CFLAGS" 12671 if test $ac_res = yes; then 12672 # New GCC 12673 as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 12674 fi 12675 # Old GCC 12676 abi='' 12677 abilibdirext='' 12678 ;; 12679 -mabi=n32|-mabi=64) 12680 if test $with_mips_abi = yes; then 12681 # Old GCC, default to O32 12682 abi='' 12683 abilibdirext='' 12684 else 12685 # Some broken GCC 12686 as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5 12687 fi 12688 ;; 12689 esac 12690 fi #if test $ac_res = no; then 12691 fi #if test -n "$abi" ; then 12692 else 12693 case "${with_mips_abi}" in 12694 32|o32) abi='-32'; abilibdirext='' ;; 12695 n32|yes) abi='-n32'; abilibdirext='32' ;; 12696 64) abi='-64'; abilibdirext='64' ;; 12697 no) abi=''; abilibdirext='';; 12698 *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;; 12699 esac 12700 fi #if test -n "$GCC"; then 12701 ;; 12702 esac 12703 12704 CC="$CC $abi" 12705 libdir="$libdir$abilibdirext" 12706 12707 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 12709 $as_echo_n "checking for __attribute__... " >&6; } 12710 if test "${ac_cv___attribute__+set}" = set; then : 12711 $as_echo_n "(cached) " >&6 12712 else 12713 12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12715 /* end confdefs.h. */ 12716 #include <stdlib.h> 12717 static void foo(void) __attribute__ ((noreturn)); 12718 12719 static void 12720 foo(void) 12721 { 12722 exit(1); 12723 } 12724 12725 _ACEOF 12726 if ac_fn_c_try_compile "$LINENO"; then : 12727 ac_cv___attribute__=yes 12728 else 12729 ac_cv___attribute__=no 12730 fi 12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12732 fi 12733 12734 if test "$ac_cv___attribute__" = "yes"; then 12735 12736 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 12737 12738 fi 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 12740 $as_echo "$ac_cv___attribute__" >&6; } 12741 12742 12743 12744 12745 12746 if test "$enable_shared" = "yes"; then 12747 ENABLE_SHARED_TRUE= 12748 ENABLE_SHARED_FALSE='#' 12749 else 12750 ENABLE_SHARED_TRUE='#' 12751 ENABLE_SHARED_FALSE= 12752 fi 12753 12754 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5 12756 $as_echo_n "checking for ld --version-script... " >&6; } 12757 if test "${rk_cv_version_script+set}" = set; then : 12758 $as_echo_n "(cached) " >&6 12759 else 12760 12761 rk_cv_version_script=no 12762 12763 cat > conftest.map <<EOF 12764 HEIM_GSS_V1 { 12765 global: gss*; 12766 }; 12767 HEIM_GSS_V1_1 { 12768 global: gss_init_creds; 12769 } HEIM_GSS_V1; 12770 EOF 12771 cat > conftest.c <<EOF 12772 int gss_init_creds(int foo) { return 0; } 12773 EOF 12774 12775 if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c' 12776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 12777 (eval $ac_try) 2>&5 12778 ac_status=$? 12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12780 test $ac_status = 0; }; } && 12781 { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o' 12782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 12783 (eval $ac_try) 2>&5 12784 ac_status=$? 12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12786 test $ac_status = 0; }; }; 12787 then 12788 rk_cv_version_script=yes 12789 fi 12790 rm -rf conftest* libconftest* .libs 12791 12792 fi 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5 12794 $as_echo "$rk_cv_version_script" >&6; } 12795 12796 if test $rk_cv_version_script = yes ; then 12797 doversioning=yes 12798 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script," 12799 else 12800 doversioning=no 12801 LDFLAGS_VERSION_SCRIPT= 12802 fi 12803 12804 12805 if test $doversioning = yes; then 12806 versionscript_TRUE= 12807 versionscript_FALSE='#' 12808 else 12809 versionscript_TRUE='#' 12810 versionscript_FALSE= 12811 fi 12812 12813 12814 12815 12816 12817 12818 12819 12820 if test "${cross_compiling}" = yes; then 12821 CROSS_COMPILE_TRUE= 12822 CROSS_COMPILE_FALSE='#' 12823 else 12824 CROSS_COMPILE_TRUE='#' 12825 CROSS_COMPILE_FALSE= 12826 fi 12827 12828 12829 12830 # Check whether --with-cross-tools was given. 12831 if test "${with_cross_tools+set}" = set; then : 12832 withval=$with_cross_tools; if test "$withval" = "yes"; then 12833 as_fn_error "Need path to cross tools" "$LINENO" 5 12834 fi 12835 with_cross_tools="${with_cross_tools}/" 12836 12837 fi 12838 12839 12840 if test "${cross_compiling}" != yes ; then 12841 12842 ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)" 12843 SLC="\$(top_builddir)/lib/sl/slc" 12844 12845 ASN1_COMPILE_DEP="\$(ASN1_COMPILE)" 12846 SLC_DEP="\$(SLC)" 12847 else 12848 ASN1_COMPILE="${with_cross_tools}asn1_compile" 12849 SLC="${with_cross_tools}slc" 12850 12851 ASN1_COMPILE_DEP= 12852 SLC_DEP= 12853 12854 ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et 12855 12856 fi 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 $as_echo "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h 12867 12868 12869 12870 12871 # Check whether --with-openldap was given. 12872 if test "${with_openldap+set}" = set; then : 12873 withval=$with_openldap; 12874 fi 12875 12876 12877 # Check whether --with-openldap-lib was given. 12878 if test "${with_openldap_lib+set}" = set; then : 12879 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 12880 as_fn_error "No argument for --with-openldap-lib" "$LINENO" 5 12881 elif test "X$with_openldap" = "X"; then 12882 with_openldap=yes 12883 fi 12884 fi 12885 12886 12887 # Check whether --with-openldap-include was given. 12888 if test "${with_openldap_include+set}" = set; then : 12889 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then 12890 as_fn_error "No argument for --with-openldap-include" "$LINENO" 5 12891 elif test "X$with_openldap" = "X"; then 12892 with_openldap=yes 12893 fi 12894 fi 12895 12896 12897 # Check whether --with-openldap-config was given. 12898 if test "${with_openldap_config+set}" = set; then : 12899 withval=$with_openldap_config; 12900 fi 12901 12902 12903 12904 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5 12906 $as_echo_n "checking for openldap... " >&6; } 12907 12908 case "$with_openldap" in 12909 yes|"") d='' ;; 12910 no) d= ;; 12911 *) d="$with_openldap" ;; 12912 esac 12913 12914 header_dirs= 12915 lib_dirs= 12916 for i in $d; do 12917 if test "$with_openldap_include" = ""; then 12918 if test -d "$i/include/openldap"; then 12919 header_dirs="$header_dirs $i/include/openldap" 12920 fi 12921 if test -d "$i/include"; then 12922 header_dirs="$header_dirs $i/include" 12923 fi 12924 fi 12925 if test "$with_openldap_lib" = ""; then 12926 if test -d "$i/lib$abilibdirext"; then 12927 lib_dirs="$lib_dirs $i/lib$abilibdirext" 12928 fi 12929 fi 12930 done 12931 12932 if test "$with_openldap_include"; then 12933 header_dirs="$with_openldap_include $header_dirs" 12934 fi 12935 if test "$with_openldap_lib"; then 12936 lib_dirs="$with_openldap_lib $lib_dirs" 12937 fi 12938 12939 if test "$with_openldap_config" = ""; then 12940 with_openldap_config='' 12941 fi 12942 12943 openldap_cflags= 12944 openldap_libs= 12945 12946 case "$with_openldap_config" in 12947 yes|no|""|"") 12948 if test -f $with_openldap/bin/ ; then 12949 with_openldap_config=$with_openldap/bin/ 12950 fi 12951 ;; 12952 esac 12953 12954 case "$with_openldap_config" in 12955 yes|no|"") 12956 ;; 12957 *) 12958 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 12959 openldap_libs="`$with_openldap_config --libs 2>&1`" 12960 ;; 12961 esac 12962 12963 found=no 12964 if test "$with_openldap" != no; then 12965 save_CFLAGS="$CFLAGS" 12966 save_LIBS="$LIBS" 12967 if test "$openldap_cflags" -a "$openldap_libs"; then 12968 CFLAGS="$openldap_cflags $save_CFLAGS" 12969 LIBS="$openldap_libs $save_LIBS" 12970 12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972 /* end confdefs.h. */ 12973 #include <lber.h> 12974 #include <ldap.h> 12975 int 12976 main () 12977 { 12978 12979 ; 12980 return 0; 12981 } 12982 _ACEOF 12983 if ac_fn_c_try_link "$LINENO"; then : 12984 12985 INCLUDE_openldap="$openldap_cflags" 12986 LIB_openldap="$openldap_libs" 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5 12988 $as_echo "from $with_openldap_config" >&6; } 12989 found=yes 12990 fi 12991 rm -f core conftest.err conftest.$ac_objext \ 12992 conftest$ac_exeext conftest.$ac_ext 12993 fi 12994 if test "$found" = no; then 12995 ires= lres= 12996 for i in $header_dirs; do 12997 CFLAGS="-I$i $save_CFLAGS" 12998 12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13000 /* end confdefs.h. */ 13001 #include <lber.h> 13002 #include <ldap.h> 13003 int 13004 main () 13005 { 13006 13007 ; 13008 return 0; 13009 } 13010 _ACEOF 13011 if ac_fn_c_try_compile "$LINENO"; then : 13012 ires=$i;break 13013 fi 13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13015 done 13016 for i in $lib_dirs; do 13017 LIBS="-L$i -lldap -llber $save_LIBS" 13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019 /* end confdefs.h. */ 13020 #include <lber.h> 13021 #include <ldap.h> 13022 int 13023 main () 13024 { 13025 13026 ; 13027 return 0; 13028 } 13029 _ACEOF 13030 if ac_fn_c_try_link "$LINENO"; then : 13031 lres=$i;break 13032 fi 13033 rm -f core conftest.err conftest.$ac_objext \ 13034 conftest$ac_exeext conftest.$ac_ext 13035 done 13036 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 13037 INCLUDE_openldap="-I$ires" 13038 LIB_openldap="-L$lres -lldap -llber " 13039 found=yes 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 13041 $as_echo "headers $ires, libraries $lres" >&6; } 13042 fi 13043 fi 13044 CFLAGS="$save_CFLAGS" 13045 LIBS="$save_LIBS" 13046 fi 13047 13048 if test "$found" = yes; then 13049 13050 cat >>confdefs.h <<_ACEOF 13051 #define OPENLDAP 1 13052 _ACEOF 13053 13054 with_openldap=yes 13055 else 13056 with_openldap=no 13057 INCLUDE_openldap= 13058 LIB_openldap= 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13060 $as_echo "no" >&6; } 13061 fi 13062 13063 13064 13065 13066 13067 # Check whether --enable-hdb-openldap-module was given. 13068 if test "${enable_hdb_openldap_module+set}" = set; then : 13069 enableval=$enable_hdb_openldap_module; 13070 fi 13071 13072 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 13073 13074 $as_echo "#define OPENLDAP_MODULE 1" >>confdefs.h 13075 13076 fi 13077 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 13078 OPENLDAP_MODULE_TRUE= 13079 OPENLDAP_MODULE_FALSE='#' 13080 else 13081 OPENLDAP_MODULE_TRUE='#' 13082 OPENLDAP_MODULE_FALSE= 13083 fi 13084 13085 13086 13087 # Check whether --enable-pk-init was given. 13088 if test "${enable_pk_init+set}" = set; then : 13089 enableval=$enable_pk_init; 13090 fi 13091 13092 if test "$enable_pk_init" != no ;then 13093 13094 $as_echo "#define PKINIT 1" >>confdefs.h 13095 13096 fi 13097 if test "$enable_pk_init" != no; then 13098 PKINIT_TRUE= 13099 PKINIT_FALSE='#' 13100 else 13101 PKINIT_TRUE='#' 13102 PKINIT_FALSE= 13103 fi 13104 13105 13106 # Check whether --enable-digest was given. 13107 if test "${enable_digest+set}" = set; then : 13108 enableval=$enable_digest; 13109 fi 13110 13111 if test "$enable_digest" != no ;then 13112 13113 $as_echo "#define DIGEST 1" >>confdefs.h 13114 13115 fi 13116 13117 # Check whether --enable-kx509 was given. 13118 if test "${enable_kx509+set}" = set; then : 13119 enableval=$enable_kx509; 13120 fi 13121 13122 if test "$enable_kx509" != no ;then 13123 13124 $as_echo "#define KX509 1" >>confdefs.h 13125 13126 fi 13127 13128 13129 13130 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13131 if test -n "$ac_tool_prefix"; then 13132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13133 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13135 $as_echo_n "checking for $ac_word... " >&6; } 13136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13137 $as_echo_n "(cached) " >&6 13138 else 13139 case $PKG_CONFIG in 13140 [\\/]* | ?:[\\/]*) 13141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13142 ;; 13143 *) 13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13145 for as_dir in $PATH 13146 do 13147 IFS=$as_save_IFS 13148 test -z "$as_dir" && as_dir=. 13149 for ac_exec_ext in '' $ac_executable_extensions; do 13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13153 break 2 13154 fi 13155 done 13156 done 13157 IFS=$as_save_IFS 13158 13159 ;; 13160 esac 13161 fi 13162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13163 if test -n "$PKG_CONFIG"; then 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13165 $as_echo "$PKG_CONFIG" >&6; } 13166 else 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13168 $as_echo "no" >&6; } 13169 fi 13170 13171 13172 fi 13173 if test -z "$ac_cv_path_PKG_CONFIG"; then 13174 ac_pt_PKG_CONFIG=$PKG_CONFIG 13175 # Extract the first word of "pkg-config", so it can be a program name with args. 13176 set dummy pkg-config; ac_word=$2 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13178 $as_echo_n "checking for $ac_word... " >&6; } 13179 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 13180 $as_echo_n "(cached) " >&6 13181 else 13182 case $ac_pt_PKG_CONFIG in 13183 [\\/]* | ?:[\\/]*) 13184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13185 ;; 13186 *) 13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13188 for as_dir in $PATH 13189 do 13190 IFS=$as_save_IFS 13191 test -z "$as_dir" && as_dir=. 13192 for ac_exec_ext in '' $ac_executable_extensions; do 13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13196 break 2 13197 fi 13198 done 13199 done 13200 IFS=$as_save_IFS 13201 13202 ;; 13203 esac 13204 fi 13205 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13206 if test -n "$ac_pt_PKG_CONFIG"; then 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13208 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 13209 else 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13211 $as_echo "no" >&6; } 13212 fi 13213 13214 if test "x$ac_pt_PKG_CONFIG" = x; then 13215 PKG_CONFIG="" 13216 else 13217 case $cross_compiling:$ac_tool_warned in 13218 yes:) 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13221 ac_tool_warned=yes ;; 13222 esac 13223 PKG_CONFIG=$ac_pt_PKG_CONFIG 13224 fi 13225 else 13226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13227 fi 13228 13229 fi 13230 if test -n "$PKG_CONFIG"; then 13231 _pkg_min_version=0.9.0 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13233 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13236 $as_echo "yes" >&6; } 13237 else 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13239 $as_echo "no" >&6; } 13240 PKG_CONFIG="" 13241 fi 13242 13243 fi 13244 13245 13246 # Check whether --with-capng was given. 13247 if test "${with_capng+set}" = set; then : 13248 withval=$with_capng; 13249 else 13250 with_capng=check 13251 fi 13252 13253 if test "$with_capng" != "no"; then 13254 13255 pkg_failed=no 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5 13257 $as_echo_n "checking for CAPNG... " >&6; } 13258 13259 if test -n "$PKG_CONFIG"; then 13260 if test -n "$CAPNG_CFLAGS"; then 13261 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS" 13262 else 13263 if test -n "$PKG_CONFIG" && \ 13264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 13265 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 13266 ac_status=$? 13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13268 test $ac_status = 0; }; then 13269 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null` 13270 else 13271 pkg_failed=yes 13272 fi 13273 fi 13274 else 13275 pkg_failed=untried 13276 fi 13277 if test -n "$PKG_CONFIG"; then 13278 if test -n "$CAPNG_LIBS"; then 13279 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS" 13280 else 13281 if test -n "$PKG_CONFIG" && \ 13282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5 13283 ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5 13284 ac_status=$? 13285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13286 test $ac_status = 0; }; then 13287 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null` 13288 else 13289 pkg_failed=yes 13290 fi 13291 fi 13292 else 13293 pkg_failed=untried 13294 fi 13295 13296 13297 13298 if test $pkg_failed = yes; then 13299 13300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13301 _pkg_short_errors_supported=yes 13302 else 13303 _pkg_short_errors_supported=no 13304 fi 13305 if test $_pkg_short_errors_supported = yes; then 13306 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 13307 else 13308 CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"` 13309 fi 13310 # Put the nasty error message in config.log where it belongs 13311 echo "$CAPNG_PKG_ERRORS" >&5 13312 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13314 $as_echo "no" >&6; } 13315 with_capng=no 13316 elif test $pkg_failed = untried; then 13317 with_capng=no 13318 else 13319 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS 13320 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13322 $as_echo "yes" >&6; } 13323 with_capng=yes 13324 fi 13325 fi 13326 if test "$with_capng" = "yes"; then 13327 13328 cat >>confdefs.h <<_ACEOF 13329 #define HAVE_CAPNG 1 13330 _ACEOF 13331 13332 fi 13333 if test "$with_capng" != "no"; then 13334 HAVE_CAPNG_TRUE= 13335 HAVE_CAPNG_FALSE='#' 13336 else 13337 HAVE_CAPNG_TRUE='#' 13338 HAVE_CAPNG_FALSE= 13339 fi 13340 13341 13342 13343 13344 13345 13346 # Check whether --with-sqlite3 was given. 13347 if test "${with_sqlite3+set}" = set; then : 13348 withval=$with_sqlite3; 13349 fi 13350 13351 13352 # Check whether --with-sqlite3-lib was given. 13353 if test "${with_sqlite3_lib+set}" = set; then : 13354 withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 13355 as_fn_error "No argument for --with-sqlite3-lib" "$LINENO" 5 13356 elif test "X$with_sqlite3" = "X"; then 13357 with_sqlite3=yes 13358 fi 13359 fi 13360 13361 13362 # Check whether --with-sqlite3-include was given. 13363 if test "${with_sqlite3_include+set}" = set; then : 13364 withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then 13365 as_fn_error "No argument for --with-sqlite3-include" "$LINENO" 5 13366 elif test "X$with_sqlite3" = "X"; then 13367 with_sqlite3=yes 13368 fi 13369 fi 13370 13371 13372 # Check whether --with-sqlite3-config was given. 13373 if test "${with_sqlite3_config+set}" = set; then : 13374 withval=$with_sqlite3_config; 13375 fi 13376 13377 13378 13379 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5 13381 $as_echo_n "checking for sqlite3... " >&6; } 13382 13383 case "$with_sqlite3" in 13384 yes|"") d='' ;; 13385 no) d= ;; 13386 *) d="$with_sqlite3" ;; 13387 esac 13388 13389 header_dirs= 13390 lib_dirs= 13391 for i in $d; do 13392 if test "$with_sqlite3_include" = ""; then 13393 if test -d "$i/include/sqlite3"; then 13394 header_dirs="$header_dirs $i/include/sqlite3" 13395 fi 13396 if test -d "$i/include"; then 13397 header_dirs="$header_dirs $i/include" 13398 fi 13399 fi 13400 if test "$with_sqlite3_lib" = ""; then 13401 if test -d "$i/lib$abilibdirext"; then 13402 lib_dirs="$lib_dirs $i/lib$abilibdirext" 13403 fi 13404 fi 13405 done 13406 13407 if test "$with_sqlite3_include"; then 13408 header_dirs="$with_sqlite3_include $header_dirs" 13409 fi 13410 if test "$with_sqlite3_lib"; then 13411 lib_dirs="$with_sqlite3_lib $lib_dirs" 13412 fi 13413 13414 if test "$with_sqlite3_config" = ""; then 13415 with_sqlite3_config='' 13416 fi 13417 13418 sqlite3_cflags= 13419 sqlite3_libs= 13420 13421 case "$with_sqlite3_config" in 13422 yes|no|""|"") 13423 if test -f $with_sqlite3/bin/ ; then 13424 with_sqlite3_config=$with_sqlite3/bin/ 13425 fi 13426 ;; 13427 esac 13428 13429 case "$with_sqlite3_config" in 13430 yes|no|"") 13431 ;; 13432 *) 13433 sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`" 13434 sqlite3_libs="`$with_sqlite3_config --libs 2>&1`" 13435 ;; 13436 esac 13437 13438 found=no 13439 if test "$with_sqlite3" != no; then 13440 save_CFLAGS="$CFLAGS" 13441 save_LIBS="$LIBS" 13442 if test "$sqlite3_cflags" -a "$sqlite3_libs"; then 13443 CFLAGS="$sqlite3_cflags $save_CFLAGS" 13444 LIBS="$sqlite3_libs $save_LIBS" 13445 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447 /* end confdefs.h. */ 13448 #include <sqlite3.h> 13449 #ifndef SQLITE_OPEN_CREATE 13450 #error "old version" 13451 #endif 13452 int 13453 main () 13454 { 13455 13456 ; 13457 return 0; 13458 } 13459 _ACEOF 13460 if ac_fn_c_try_link "$LINENO"; then : 13461 13462 INCLUDE_sqlite3="$sqlite3_cflags" 13463 LIB_sqlite3="$sqlite3_libs" 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5 13465 $as_echo "from $with_sqlite3_config" >&6; } 13466 found=yes 13467 fi 13468 rm -f core conftest.err conftest.$ac_objext \ 13469 conftest$ac_exeext conftest.$ac_ext 13470 fi 13471 if test "$found" = no; then 13472 ires= lres= 13473 for i in $header_dirs; do 13474 CFLAGS="-I$i $save_CFLAGS" 13475 13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13477 /* end confdefs.h. */ 13478 #include <sqlite3.h> 13479 #ifndef SQLITE_OPEN_CREATE 13480 #error "old version" 13481 #endif 13482 int 13483 main () 13484 { 13485 13486 ; 13487 return 0; 13488 } 13489 _ACEOF 13490 if ac_fn_c_try_compile "$LINENO"; then : 13491 ires=$i;break 13492 fi 13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13494 done 13495 for i in $lib_dirs; do 13496 LIBS="-L$i -lsqlite3 $save_LIBS" 13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13498 /* end confdefs.h. */ 13499 #include <sqlite3.h> 13500 #ifndef SQLITE_OPEN_CREATE 13501 #error "old version" 13502 #endif 13503 int 13504 main () 13505 { 13506 13507 ; 13508 return 0; 13509 } 13510 _ACEOF 13511 if ac_fn_c_try_link "$LINENO"; then : 13512 lres=$i;break 13513 fi 13514 rm -f core conftest.err conftest.$ac_objext \ 13515 conftest$ac_exeext conftest.$ac_ext 13516 done 13517 if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then 13518 INCLUDE_sqlite3="-I$ires" 13519 LIB_sqlite3="-L$lres -lsqlite3 " 13520 found=yes 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 13522 $as_echo "headers $ires, libraries $lres" >&6; } 13523 fi 13524 fi 13525 CFLAGS="$save_CFLAGS" 13526 LIBS="$save_LIBS" 13527 fi 13528 13529 if test "$found" = yes; then 13530 13531 cat >>confdefs.h <<_ACEOF 13532 #define SQLITE3 1 13533 _ACEOF 13534 13535 with_sqlite3=yes 13536 else 13537 with_sqlite3=no 13538 INCLUDE_sqlite3= 13539 LIB_sqlite3= 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13541 $as_echo "no" >&6; } 13542 fi 13543 13544 13545 13546 13547 13548 if test "X$with_sqlite3" != Xyes ; then 13549 INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite" 13550 LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la" 13551 fi 13552 if test "X$with_sqlite3" = Xyes; then 13553 SQLITE3_TRUE= 13554 SQLITE3_FALSE='#' 13555 else 13556 SQLITE3_TRUE='#' 13557 SQLITE3_FALSE= 13558 fi 13559 13560 13561 13562 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h 13563 13564 13565 # Check whether --enable-sqlite-cache was given. 13566 if test "${enable_sqlite_cache+set}" = set; then : 13567 enableval=$enable_sqlite_cache; 13568 fi 13569 13570 if test "$enable_sqlite_cache" != no; then 13571 13572 $as_echo "#define HAVE_SCC 1" >>confdefs.h 13573 13574 fi 13575 if test "$enable_sqlite_cache" != no; then 13576 have_scc_TRUE= 13577 have_scc_FALSE='#' 13578 else 13579 have_scc_TRUE='#' 13580 have_scc_FALSE= 13581 fi 13582 13583 13584 13585 13586 13587 # Check whether --with-libintl was given. 13588 if test "${with_libintl+set}" = set; then : 13589 withval=$with_libintl; 13590 fi 13591 13592 13593 # Check whether --with-libintl-lib was given. 13594 if test "${with_libintl_lib+set}" = set; then : 13595 withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 13596 as_fn_error "No argument for --with-libintl-lib" "$LINENO" 5 13597 elif test "X$with_libintl" = "X"; then 13598 with_libintl=yes 13599 fi 13600 fi 13601 13602 13603 # Check whether --with-libintl-include was given. 13604 if test "${with_libintl_include+set}" = set; then : 13605 withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 13606 as_fn_error "No argument for --with-libintl-include" "$LINENO" 5 13607 elif test "X$with_libintl" = "X"; then 13608 with_libintl=yes 13609 fi 13610 fi 13611 13612 13613 # Check whether --with-libintl-config was given. 13614 if test "${with_libintl_config+set}" = set; then : 13615 withval=$with_libintl_config; 13616 fi 13617 13618 13619 13620 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5 13622 $as_echo_n "checking for libintl... " >&6; } 13623 13624 case "$with_libintl" in 13625 yes|"") d='' ;; 13626 no) d= ;; 13627 *) d="$with_libintl" ;; 13628 esac 13629 13630 header_dirs= 13631 lib_dirs= 13632 for i in $d; do 13633 if test "$with_libintl_include" = ""; then 13634 if test -d "$i/include/libintl"; then 13635 header_dirs="$header_dirs $i/include/libintl" 13636 fi 13637 if test -d "$i/include"; then 13638 header_dirs="$header_dirs $i/include" 13639 fi 13640 fi 13641 if test "$with_libintl_lib" = ""; then 13642 if test -d "$i/lib$abilibdirext"; then 13643 lib_dirs="$lib_dirs $i/lib$abilibdirext" 13644 fi 13645 fi 13646 done 13647 13648 if test "$with_libintl_include"; then 13649 header_dirs="$with_libintl_include $header_dirs" 13650 fi 13651 if test "$with_libintl_lib"; then 13652 lib_dirs="$with_libintl_lib $lib_dirs" 13653 fi 13654 13655 if test "$with_libintl_config" = ""; then 13656 with_libintl_config='' 13657 fi 13658 13659 libintl_cflags= 13660 libintl_libs= 13661 13662 case "$with_libintl_config" in 13663 yes|no|""|"") 13664 if test -f $with_libintl/bin/ ; then 13665 with_libintl_config=$with_libintl/bin/ 13666 fi 13667 ;; 13668 esac 13669 13670 case "$with_libintl_config" in 13671 yes|no|"") 13672 ;; 13673 *) 13674 libintl_cflags="`$with_libintl_config --cflags 2>&1`" 13675 libintl_libs="`$with_libintl_config --libs 2>&1`" 13676 ;; 13677 esac 13678 13679 found=no 13680 if test "$with_libintl" != no; then 13681 save_CFLAGS="$CFLAGS" 13682 save_LIBS="$LIBS" 13683 if test "$libintl_cflags" -a "$libintl_libs"; then 13684 CFLAGS="$libintl_cflags $save_CFLAGS" 13685 LIBS="$libintl_libs $save_LIBS" 13686 13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13688 /* end confdefs.h. */ 13689 #include <libintl.h> 13690 int 13691 main () 13692 { 13693 13694 ; 13695 return 0; 13696 } 13697 _ACEOF 13698 if ac_fn_c_try_link "$LINENO"; then : 13699 13700 INCLUDE_libintl="$libintl_cflags" 13701 LIB_libintl="$libintl_libs" 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5 13703 $as_echo "from $with_libintl_config" >&6; } 13704 found=yes 13705 fi 13706 rm -f core conftest.err conftest.$ac_objext \ 13707 conftest$ac_exeext conftest.$ac_ext 13708 fi 13709 if test "$found" = no; then 13710 ires= lres= 13711 for i in $header_dirs; do 13712 CFLAGS="-I$i $save_CFLAGS" 13713 13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13715 /* end confdefs.h. */ 13716 #include <libintl.h> 13717 int 13718 main () 13719 { 13720 13721 ; 13722 return 0; 13723 } 13724 _ACEOF 13725 if ac_fn_c_try_compile "$LINENO"; then : 13726 ires=$i;break 13727 fi 13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13729 done 13730 for i in $lib_dirs; do 13731 LIBS="-L$i -lintl $save_LIBS" 13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13733 /* end confdefs.h. */ 13734 #include <libintl.h> 13735 int 13736 main () 13737 { 13738 13739 ; 13740 return 0; 13741 } 13742 _ACEOF 13743 if ac_fn_c_try_link "$LINENO"; then : 13744 lres=$i;break 13745 fi 13746 rm -f core conftest.err conftest.$ac_objext \ 13747 conftest$ac_exeext conftest.$ac_ext 13748 done 13749 if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then 13750 INCLUDE_libintl="-I$ires" 13751 LIB_libintl="-L$lres -lintl " 13752 found=yes 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 13754 $as_echo "headers $ires, libraries $lres" >&6; } 13755 fi 13756 fi 13757 CFLAGS="$save_CFLAGS" 13758 LIBS="$save_LIBS" 13759 fi 13760 13761 if test "$found" = yes; then 13762 13763 cat >>confdefs.h <<_ACEOF 13764 #define LIBINTL 1 13765 _ACEOF 13766 13767 with_libintl=yes 13768 else 13769 with_libintl=no 13770 INCLUDE_libintl= 13771 LIB_libintl= 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13773 $as_echo "no" >&6; } 13774 fi 13775 13776 13777 13778 13779 13780 13781 # Check whether --with-hdbdir was given. 13782 if test "${with_hdbdir+set}" = set; then : 13783 withval=$with_hdbdir; 13784 else 13785 with_hdbdir=/var/heimdal 13786 fi 13787 13788 DIR_hdbdir="$with_hdbdir" 13789 13790 13791 13792 with_krb4=no 13793 13794 13795 if false; then 13796 KRB4_TRUE= 13797 KRB4_FALSE='#' 13798 else 13799 KRB4_TRUE='#' 13800 KRB4_FALSE= 13801 fi 13802 13803 13804 if true; then 13805 KRB5_TRUE= 13806 KRB5_FALSE='#' 13807 else 13808 KRB5_TRUE='#' 13809 KRB5_FALSE= 13810 fi 13811 13812 if true; then 13813 do_roken_rename_TRUE= 13814 do_roken_rename_FALSE='#' 13815 else 13816 do_roken_rename_TRUE='#' 13817 do_roken_rename_FALSE= 13818 fi 13819 13820 13821 13822 $as_echo "#define SUPPORT_INETD 1" >>confdefs.h 13823 13824 13825 13826 $as_echo "#define KRB5 1" >>confdefs.h 13827 13828 13829 crypto_lib=unknown 13830 13831 13832 # Check whether --with-openssl was given. 13833 if test "${with_openssl+set}" = set; then : 13834 withval=$with_openssl; 13835 fi 13836 13837 13838 13839 # Check whether --with-openssl-lib was given. 13840 if test "${with_openssl_lib+set}" = set; then : 13841 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 13842 as_fn_error "No argument for --with-openssl-lib" "$LINENO" 5 13843 elif test "X$with_openssl" = "X"; then 13844 with_openssl=yes 13845 fi 13846 fi 13847 13848 13849 13850 # Check whether --with-openssl-include was given. 13851 if test "${with_openssl_include+set}" = set; then : 13852 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 13853 as_fn_error "No argument for --with-openssl-include" "$LINENO" 5 13854 elif test "X$with_openssl" = "X"; then 13855 with_openssl=yes 13856 fi 13857 fi 13858 13859 13860 case "$with_openssl" in 13861 yes) ;; 13862 no) ;; 13863 "") ;; 13864 *) if test "$with_openssl_include" = ""; then 13865 with_openssl_include="$with_openssl/include" 13866 fi 13867 if test "$with_openssl_lib" = ""; then 13868 with_openssl_lib="$with_openssl/lib$abilibdirext" 13869 fi 13870 ;; 13871 esac 13872 13873 13874 DIR_hcrypto= 13875 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5 13877 $as_echo_n "checking for crypto library... " >&6; } 13878 13879 openssl=no 13880 13881 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then 13882 save_CPPFLAGS="$CPPFLAGS" 13883 save_LIBS="$LIBS" 13884 13885 cdirs= clibs= 13886 for i in $LIB_krb4; do 13887 case "$i" in 13888 -L*) cdirs="$cdirs $i";; 13889 -l*) clibs="$clibs $i";; 13890 esac 13891 done 13892 13893 ires= 13894 for i in $INCLUDE_krb4; do 13895 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS" 13896 for j in $cdirs; do 13897 for k in $clibs; do 13898 LIBS="$j $k $save_LIBS" 13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13900 /* end confdefs.h. */ 13901 13902 #undef KRB5 /* makes md4.h et al unhappy */ 13903 #ifdef HAVE_OPENSSL 13904 #ifdef HAVE_SYS_TYPES_H 13905 #include <sys/types.h> 13906 #endif 13907 #include <openssl/evp.h> 13908 #include <openssl/md4.h> 13909 #include <openssl/md5.h> 13910 #include <openssl/sha.h> 13911 #include <openssl/des.h> 13912 #include <openssl/rc4.h> 13913 #include <openssl/aes.h> 13914 #include <openssl/ec.h> 13915 #include <openssl/engine.h> 13916 #include <openssl/ui.h> 13917 #include <openssl/rand.h> 13918 #include <openssl/hmac.h> 13919 #include <openssl/pkcs12.h> 13920 #else 13921 #include <hcrypto/evp.h> 13922 #include <hcrypto/md4.h> 13923 #include <hcrypto/md5.h> 13924 #include <hcrypto/sha.h> 13925 #include <hcrypto/des.h> 13926 #include <hcrypto/rc4.h> 13927 #include <hcrypto/aes.h> 13928 #include <hcrypto/engine.h> 13929 #include <hcrypto/hmac.h> 13930 #include <hcrypto/pkcs12.h> 13931 #endif 13932 13933 int 13934 main () 13935 { 13936 13937 void *schedule = 0; 13938 EVP_MD_CTX mdctx; 13939 13940 EVP_md4(); 13941 EVP_md5(); 13942 EVP_sha1(); 13943 EVP_sha256(); 13944 13945 EVP_MD_CTX_init(&mdctx); 13946 EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0); 13947 EVP_CIPHER_iv_length(((EVP_CIPHER*)0)); 13948 UI_UTIL_read_pw_string(0,0,0,0); 13949 RAND_status(); 13950 #ifdef HAVE_OPENSSL 13951 EC_KEY_new(); 13952 #endif 13953 13954 OpenSSL_add_all_algorithms(); 13955 AES_encrypt(0,0,0); 13956 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); 13957 RC4(0, 0, 0, 0); 13958 ; 13959 return 0; 13960 } 13961 _ACEOF 13962 if ac_fn_c_try_link "$LINENO"; then : 13963 openssl=yes ires="$i" lres="$j $k"; break 3 13964 fi 13965 rm -f core conftest.err conftest.$ac_objext \ 13966 conftest$ac_exeext conftest.$ac_ext 13967 done 13968 done 13969 CFLAGS="$i $save_CFLAGS" 13970 for j in $cdirs; do 13971 for k in $clibs; do 13972 LIBS="$j $k $save_LIBS" 13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13974 /* end confdefs.h. */ 13975 13976 #undef KRB5 /* makes md4.h et al unhappy */ 13977 #ifdef HAVE_OPENSSL 13978 #ifdef HAVE_SYS_TYPES_H 13979 #include <sys/types.h> 13980 #endif 13981 #include <openssl/evp.h> 13982 #include <openssl/md4.h> 13983 #include <openssl/md5.h> 13984 #include <openssl/sha.h> 13985 #include <openssl/des.h> 13986 #include <openssl/rc4.h> 13987 #include <openssl/aes.h> 13988 #include <openssl/ec.h> 13989 #include <openssl/engine.h> 13990 #include <openssl/ui.h> 13991 #include <openssl/rand.h> 13992 #include <openssl/hmac.h> 13993 #include <openssl/pkcs12.h> 13994 #else 13995 #include <hcrypto/evp.h> 13996 #include <hcrypto/md4.h> 13997 #include <hcrypto/md5.h> 13998 #include <hcrypto/sha.h> 13999 #include <hcrypto/des.h> 14000 #include <hcrypto/rc4.h> 14001 #include <hcrypto/aes.h> 14002 #include <hcrypto/engine.h> 14003 #include <hcrypto/hmac.h> 14004 #include <hcrypto/pkcs12.h> 14005 #endif 14006 14007 int 14008 main () 14009 { 14010 14011 void *schedule = 0; 14012 EVP_MD_CTX mdctx; 14013 14014 EVP_md4(); 14015 EVP_md5(); 14016 EVP_sha1(); 14017 EVP_sha256(); 14018 14019 EVP_MD_CTX_init(&mdctx); 14020 EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0); 14021 EVP_CIPHER_iv_length(((EVP_CIPHER*)0)); 14022 UI_UTIL_read_pw_string(0,0,0,0); 14023 RAND_status(); 14024 #ifdef HAVE_OPENSSL 14025 EC_KEY_new(); 14026 #endif 14027 14028 OpenSSL_add_all_algorithms(); 14029 AES_encrypt(0,0,0); 14030 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); 14031 RC4(0, 0, 0, 0); 14032 ; 14033 return 0; 14034 } 14035 _ACEOF 14036 if ac_fn_c_try_link "$LINENO"; then : 14037 openssl=no ires="$i" lres="$j $k"; break 3 14038 fi 14039 rm -f core conftest.err conftest.$ac_objext \ 14040 conftest$ac_exeext conftest.$ac_ext 14041 done 14042 done 14043 done 14044 14045 CFLAGS="$save_CFLAGS" 14046 LIBS="$save_LIBS" 14047 if test "$ires" -a "$lres"; then 14048 INCLUDE_hcrypto="$ires" 14049 LIB_hcrypto="$lres" 14050 crypto_lib=krb4 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: same as krb4" >&5 14052 $as_echo "same as krb4" >&6; } 14053 LIB_hcrypto_a='$(LIB_hcrypto)' 14054 LIB_hcrypto_so='$(LIB_hcrypto)' 14055 LIB_hcrypto_appl='$(LIB_hcrypto)' 14056 fi 14057 fi 14058 14059 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then 14060 save_CFLAGS="$CFLAGS" 14061 save_LIBS="$LIBS" 14062 INCLUDE_hcrypto= 14063 LIB_hcrypto= 14064 if test "$with_openssl_include" != ""; then 14065 INCLUDE_hcrypto="-I${with_openssl_include}" 14066 fi 14067 if test "$with_openssl_lib" != ""; then 14068 LIB_hcrypto="-L${with_openssl_lib}" 14069 fi 14070 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}" 14071 saved_LIB_hcrypto="$LIB_hcrypto" 14072 for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do 14073 LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres" 14074 LIB_hcrypto_a="$LIB_hcrypto" 14075 LIB_hcrypto_so="$LIB_hcrypto" 14076 LIB_hcrypto_appl="$LIB_hcrypto" 14077 LIBS="${LIBS} ${LIB_hcrypto}" 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079 /* end confdefs.h. */ 14080 14081 #undef KRB5 /* makes md4.h et al unhappy */ 14082 #ifdef HAVE_OPENSSL 14083 #ifdef HAVE_SYS_TYPES_H 14084 #include <sys/types.h> 14085 #endif 14086 #include <openssl/evp.h> 14087 #include <openssl/md4.h> 14088 #include <openssl/md5.h> 14089 #include <openssl/sha.h> 14090 #include <openssl/des.h> 14091 #include <openssl/rc4.h> 14092 #include <openssl/aes.h> 14093 #include <openssl/ec.h> 14094 #include <openssl/engine.h> 14095 #include <openssl/ui.h> 14096 #include <openssl/rand.h> 14097 #include <openssl/hmac.h> 14098 #include <openssl/pkcs12.h> 14099 #else 14100 #include <hcrypto/evp.h> 14101 #include <hcrypto/md4.h> 14102 #include <hcrypto/md5.h> 14103 #include <hcrypto/sha.h> 14104 #include <hcrypto/des.h> 14105 #include <hcrypto/rc4.h> 14106 #include <hcrypto/aes.h> 14107 #include <hcrypto/engine.h> 14108 #include <hcrypto/hmac.h> 14109 #include <hcrypto/pkcs12.h> 14110 #endif 14111 14112 int 14113 main () 14114 { 14115 14116 void *schedule = 0; 14117 EVP_MD_CTX mdctx; 14118 14119 EVP_md4(); 14120 EVP_md5(); 14121 EVP_sha1(); 14122 EVP_sha256(); 14123 14124 EVP_MD_CTX_init(&mdctx); 14125 EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0); 14126 EVP_CIPHER_iv_length(((EVP_CIPHER*)0)); 14127 UI_UTIL_read_pw_string(0,0,0,0); 14128 RAND_status(); 14129 #ifdef HAVE_OPENSSL 14130 EC_KEY_new(); 14131 #endif 14132 14133 OpenSSL_add_all_algorithms(); 14134 AES_encrypt(0,0,0); 14135 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); 14136 RC4(0, 0, 0, 0); 14137 ; 14138 return 0; 14139 } 14140 _ACEOF 14141 if ac_fn_c_try_link "$LINENO"; then : 14142 14143 crypto_lib=libcrypto openssl=yes 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libcrypto" >&5 14145 $as_echo "libcrypto" >&6; } 14146 14147 fi 14148 rm -f core conftest.err conftest.$ac_objext \ 14149 conftest$ac_exeext conftest.$ac_ext 14150 if test "$crypto_lib" = libcrypto ; then 14151 break; 14152 fi 14153 done 14154 CFLAGS="$save_CFLAGS" 14155 LIBS="$save_LIBS" 14156 fi 14157 14158 if test "$crypto_lib" = "unknown"; then 14159 14160 DIR_hcrypto='hcrypto' 14161 LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la' 14162 LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a' 14163 LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so' 14164 LIB_hcrypto_appl="-lhcrypto" 14165 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5 14167 $as_echo "included libhcrypto" >&6; } 14168 14169 fi 14170 14171 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then 14172 as_fn_error "the crypto library used by krb4 lacks features 14173 required by Kerberos 5; to continue, you need to install a newer 14174 Kerberos 4 or configure --without-krb4" "$LINENO" 5 14175 fi 14176 14177 if test "$openssl" = "yes"; then 14178 14179 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 14180 14181 fi 14182 if test "$openssl" = yes; then 14183 HAVE_OPENSSL_TRUE= 14184 HAVE_OPENSSL_FALSE='#' 14185 else 14186 HAVE_OPENSSL_TRUE='#' 14187 HAVE_OPENSSL_FALSE= 14188 fi 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5 14200 $as_echo_n "checking if compiling threadsafe libraries... " >&6; } 14201 14202 # Check whether --enable-pthread-support was given. 14203 if test "${enable_pthread_support+set}" = set; then : 14204 enableval=$enable_pthread_support; 14205 else 14206 enable_pthread_support=maybe 14207 fi 14208 14209 14210 case "$host" in 14211 *-*-solaris2*) 14212 native_pthread_support=yes 14213 if test "$GCC" = yes; then 14214 PTHREAD_CFLAGS=-pthreads 14215 PTHREAD_LIBADD=-pthreads 14216 else 14217 PTHREAD_CFLAGS=-mt 14218 PTHREAD_LDADD=-mt 14219 PTHREAD_LIBADD=-mt 14220 fi 14221 ;; 14222 *-*-netbsd[12]*) 14223 native_pthread_support="if running netbsd 1.6T or newer" 14224 PTHREAD_LIBADD="-lpthread" 14225 ;; 14226 *-*-netbsd[3456789]*) 14227 native_pthread_support="netbsd 3 uses explict pthread" 14228 PTHREAD_LIBADD="-lpthread" 14229 ;; 14230 *-*-freebsd[56789]*) 14231 native_pthread_support=yes 14232 PTHREAD_LIBADD="-pthread" 14233 ;; 14234 *-*-openbsd*) 14235 native_pthread_support=yes 14236 PTHREAD_CFLAGS=-pthread 14237 PTHREAD_LIBADD=-pthread 14238 ;; 14239 *-*-linux* | *-*-linux-gnu) 14240 case `uname -r` in 14241 2.*|3.*) 14242 native_pthread_support=yes 14243 PTHREAD_CFLAGS=-pthread 14244 PTHREAD_LIBADD=-pthread 14245 ;; 14246 esac 14247 ;; 14248 *-*-kfreebsd*-gnu*) 14249 native_pthread_support=yes 14250 PTHREAD_CFLAGS=-pthread 14251 PTHREAD_LIBADD=-pthread 14252 ;; 14253 *-*-aix*) 14254 native_pthread_support=no 14255 ;; 14256 mips-sgi-irix6.[5-9]) # maybe works for earlier versions too 14257 native_pthread_support=yes 14258 PTHREAD_LIBADD="-lpthread" 14259 ;; 14260 *-*-darwin*) 14261 native_pthread_support=yes 14262 ;; 14263 *) 14264 native_pthread_support=no 14265 ;; 14266 esac 14267 14268 if test "$enable_pthread_support" = maybe ; then 14269 enable_pthread_support="$native_pthread_support" 14270 fi 14271 14272 if test "$enable_pthread_support" != no; then 14273 14274 $as_echo "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h 14275 14276 LIBS="$PTHREAD_LIBADD $LIBS" 14277 else 14278 PTHREAD_CFLAGS="" 14279 PTHREAD_LIBADD="" 14280 fi 14281 14282 14283 14284 14285 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5 14287 $as_echo "$enable_pthread_support" >&6; } 14288 14289 14290 # Check whether --enable-dce was given. 14291 if test "${enable_dce+set}" = set; then : 14292 enableval=$enable_dce; 14293 fi 14294 14295 if test "$enable_dce" = yes; then 14296 14297 $as_echo "#define DCE 1" >>confdefs.h 14298 14299 fi 14300 if test "$enable_dce" = yes; then 14301 DCE_TRUE= 14302 DCE_FALSE='#' 14303 else 14304 DCE_TRUE='#' 14305 DCE_FALSE= 14306 fi 14307 14308 14309 ## XXX quite horrible: 14310 if test -f /etc/ibmcxx.cfg; then 14311 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 14312 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 14313 dpagaix_ldflags= 14314 else 14315 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 14316 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 14317 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 14318 fi 14319 14320 14321 14322 14323 # Check whether --enable-afs-support was given. 14324 if test "${enable_afs_support+set}" = set; then : 14325 enableval=$enable_afs_support; 14326 fi 14327 14328 if test "$enable_afs_support" = no; then 14329 14330 $as_echo "#define NO_AFS 1" >>confdefs.h 14331 14332 NO_AFS="1" 14333 fi 14334 14335 14336 14337 # Check whether --with-berkeley-db was given. 14338 if test "${with_berkeley_db+set}" = set; then : 14339 withval=$with_berkeley_db; 14340 else 14341 with_berkeley_db=check 14342 fi 14343 14344 14345 dbheader="" 14346 14347 # Check whether --with-berkeley-db-include was given. 14348 if test "${with_berkeley_db_include+set}" = set; then : 14349 withval=$with_berkeley_db_include; dbheader=$withval 14350 else 14351 with_berkeley_db_include=check 14352 fi 14353 14354 14355 # Check whether --enable-ndbm-db was given. 14356 if test "${enable_ndbm_db+set}" = set; then : 14357 enableval=$enable_ndbm_db; 14358 14359 fi 14360 14361 14362 have_ndbm=no 14363 db_type=unknown 14364 14365 if test "x$with_berkeley_db" != xno; then : 14366 if test "x$with_berkeley_db_include" != xcheck; then : 14367 for ac_header in "$dbheader/db.h" 14368 do : 14369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14371 eval as_val=\$$as_ac_Header 14372 if test "x$as_val" = x""yes; then : 14373 cat >>confdefs.h <<_ACEOF 14374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14375 _ACEOF 14376 DBHEADER=$dbheader 14377 14378 14379 $as_echo "#define HAVE_DBHEADER 1" >>confdefs.h 14380 14381 14382 else 14383 if test "x$with_berkeley_db_include" != xcheck; then 14384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14386 as_fn_error "--with-berkeley-db-include was given but include test failed 14387 See \`config.log' for more details." "$LINENO" 5; } 14388 fi 14389 14390 fi 14391 14392 done 14393 14394 else 14395 for ac_header in \ 14396 db5/db.h \ 14397 db4/db.h \ 14398 db3/db.h \ 14399 db.h \ 14400 14401 do : 14402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14403 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14404 eval as_val=\$$as_ac_Header 14405 if test "x$as_val" = x""yes; then : 14406 cat >>confdefs.h <<_ACEOF 14407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14408 _ACEOF 14409 14410 fi 14411 14412 done 14413 14414 fi 14415 14416 14417 14418 14419 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5 14421 $as_echo_n "checking for db_create... " >&6; } 14422 if test "${ac_cv_funclib_db_create+set}" = set; then : 14423 $as_echo_n "(cached) " >&6 14424 else 14425 14426 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 14427 ac_save_LIBS="$LIBS" 14428 for ac_lib in "" $dbheader db5 db4 db3 db; do 14429 case "$ac_lib" in 14430 "") ;; 14431 yes) ac_lib="" ;; 14432 no) continue ;; 14433 -l*) ;; 14434 *) ac_lib="-l$ac_lib" ;; 14435 esac 14436 LIBS=" $ac_lib $ac_save_LIBS" 14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14438 /* end confdefs.h. */ 14439 14440 #include <stdio.h> 14441 #ifdef HAVE_DBHEADER 14442 #include <$dbheader/db.h> 14443 #elif HAVE_DB5_DB_H 14444 #include <db5/db.h> 14445 #elif HAVE_DB4_DB_H 14446 #include <db4/db.h> 14447 #elif defined(HAVE_DB3_DB_H) 14448 #include <db3/db.h> 14449 #else 14450 #include <db.h> 14451 #endif 14452 14453 int 14454 main () 14455 { 14456 db_create(NULL, NULL, 0) 14457 ; 14458 return 0; 14459 } 14460 _ACEOF 14461 if ac_fn_c_try_link "$LINENO"; then : 14462 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 14463 fi 14464 rm -f core conftest.err conftest.$ac_objext \ 14465 conftest$ac_exeext conftest.$ac_ext 14466 done 14467 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 14468 LIBS="$ac_save_LIBS" 14469 fi 14470 14471 fi 14472 14473 14474 eval "ac_res=\$ac_cv_funclib_db_create" 14475 14476 if false; then 14477 for ac_func in db_create 14478 do : 14479 ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create" 14480 if test "x$ac_cv_func_db_create" = x""yes; then : 14481 cat >>confdefs.h <<_ACEOF 14482 #define HAVE_DB_CREATE 1 14483 _ACEOF 14484 14485 fi 14486 done 14487 14488 fi 14489 # db_create 14490 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14491 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14492 eval "LIB_db_create=$ac_res" 14493 14494 case "$ac_res" in 14495 yes) 14496 eval "ac_cv_func_db_create=yes" 14497 eval "LIB_db_create=" 14498 cat >>confdefs.h <<_ACEOF 14499 #define $ac_tr_func 1 14500 _ACEOF 14501 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14503 $as_echo "yes" >&6; } 14504 ;; 14505 no) 14506 eval "ac_cv_func_db_create=no" 14507 eval "LIB_db_create=" 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14509 $as_echo "no" >&6; } 14510 ;; 14511 *) 14512 eval "ac_cv_func_db_create=yes" 14513 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14514 cat >>confdefs.h <<_ACEOF 14515 #define $ac_tr_func 1 14516 _ACEOF 14517 14518 cat >>confdefs.h <<_ACEOF 14519 #define $ac_tr_lib 1 14520 _ACEOF 14521 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 14523 $as_echo "yes, in $ac_res" >&6; } 14524 ;; 14525 esac 14526 14527 14528 14529 if test "$ac_cv_func_db_create" = "yes"; then 14530 db_type=db3 14531 if test "$ac_cv_funclib_db_create" != "yes"; then 14532 DBLIB="$ac_cv_funclib_db_create" 14533 else 14534 DBLIB="" 14535 fi 14536 14537 $as_echo "#define HAVE_DB3 1" >>confdefs.h 14538 14539 fi 14540 14541 14542 14543 14544 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5 14546 $as_echo_n "checking for dbopen... " >&6; } 14547 if test "${ac_cv_funclib_dbopen+set}" = set; then : 14548 $as_echo_n "(cached) " >&6 14549 else 14550 14551 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 14552 ac_save_LIBS="$LIBS" 14553 for ac_lib in "" db2 db; do 14554 case "$ac_lib" in 14555 "") ;; 14556 yes) ac_lib="" ;; 14557 no) continue ;; 14558 -l*) ;; 14559 *) ac_lib="-l$ac_lib" ;; 14560 esac 14561 LIBS=" $ac_lib $ac_save_LIBS" 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563 /* end confdefs.h. */ 14564 14565 #include <stdio.h> 14566 #if defined(HAVE_DB2_DB_H) 14567 #include <db2/db.h> 14568 #elif defined(HAVE_DB_H) 14569 #include <db.h> 14570 #else 14571 #error no db.h 14572 #endif 14573 14574 int 14575 main () 14576 { 14577 dbopen(NULL, 0, 0, 0, NULL) 14578 ; 14579 return 0; 14580 } 14581 _ACEOF 14582 if ac_fn_c_try_link "$LINENO"; then : 14583 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 14584 fi 14585 rm -f core conftest.err conftest.$ac_objext \ 14586 conftest$ac_exeext conftest.$ac_ext 14587 done 14588 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 14589 LIBS="$ac_save_LIBS" 14590 fi 14591 14592 fi 14593 14594 14595 eval "ac_res=\$ac_cv_funclib_dbopen" 14596 14597 if false; then 14598 for ac_func in dbopen 14599 do : 14600 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" 14601 if test "x$ac_cv_func_dbopen" = x""yes; then : 14602 cat >>confdefs.h <<_ACEOF 14603 #define HAVE_DBOPEN 1 14604 _ACEOF 14605 14606 fi 14607 done 14608 14609 fi 14610 # dbopen 14611 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14612 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14613 eval "LIB_dbopen=$ac_res" 14614 14615 case "$ac_res" in 14616 yes) 14617 eval "ac_cv_func_dbopen=yes" 14618 eval "LIB_dbopen=" 14619 cat >>confdefs.h <<_ACEOF 14620 #define $ac_tr_func 1 14621 _ACEOF 14622 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14624 $as_echo "yes" >&6; } 14625 ;; 14626 no) 14627 eval "ac_cv_func_dbopen=no" 14628 eval "LIB_dbopen=" 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14630 $as_echo "no" >&6; } 14631 ;; 14632 *) 14633 eval "ac_cv_func_dbopen=yes" 14634 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14635 cat >>confdefs.h <<_ACEOF 14636 #define $ac_tr_func 1 14637 _ACEOF 14638 14639 cat >>confdefs.h <<_ACEOF 14640 #define $ac_tr_lib 1 14641 _ACEOF 14642 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 14644 $as_echo "yes, in $ac_res" >&6; } 14645 ;; 14646 esac 14647 14648 14649 14650 if test "$ac_cv_func_dbopen" = "yes"; then 14651 db_type=db1 14652 if test "$ac_cv_funclib_dbopen" != "yes"; then 14653 DBLIB="$ac_cv_funclib_dbopen" 14654 else 14655 DBLIB="" 14656 fi 14657 14658 $as_echo "#define HAVE_DB1 1" >>confdefs.h 14659 14660 fi 14661 14662 14663 if test "$ac_cv_func_dbm_firstkey" != yes; then 14664 14665 14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 14667 $as_echo_n "checking for dbm_firstkey... " >&6; } 14668 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then : 14669 $as_echo_n "(cached) " >&6 14670 else 14671 14672 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 14673 ac_save_LIBS="$LIBS" 14674 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 14675 case "$ac_lib" in 14676 "") ;; 14677 yes) ac_lib="" ;; 14678 no) continue ;; 14679 -l*) ;; 14680 *) ac_lib="-l$ac_lib" ;; 14681 esac 14682 LIBS=" $ac_lib $ac_save_LIBS" 14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14684 /* end confdefs.h. */ 14685 14686 #include <stdio.h> 14687 #define DB_DBM_HSEARCH 1 14688 #include <db.h> 14689 DBM *dbm; 14690 14691 int 14692 main () 14693 { 14694 dbm_firstkey(NULL) 14695 ; 14696 return 0; 14697 } 14698 _ACEOF 14699 if ac_fn_c_try_link "$LINENO"; then : 14700 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 14701 fi 14702 rm -f core conftest.err conftest.$ac_objext \ 14703 conftest$ac_exeext conftest.$ac_ext 14704 done 14705 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 14706 LIBS="$ac_save_LIBS" 14707 fi 14708 14709 fi 14710 14711 14712 eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 14713 14714 if false; then 14715 for ac_func in dbm_firstkey 14716 do : 14717 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 14718 if test "x$ac_cv_func_dbm_firstkey" = x""yes; then : 14719 cat >>confdefs.h <<_ACEOF 14720 #define HAVE_DBM_FIRSTKEY 1 14721 _ACEOF 14722 14723 fi 14724 done 14725 14726 fi 14727 # dbm_firstkey 14728 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14729 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14730 eval "LIB_dbm_firstkey=$ac_res" 14731 14732 case "$ac_res" in 14733 yes) 14734 eval "ac_cv_func_dbm_firstkey=yes" 14735 eval "LIB_dbm_firstkey=" 14736 cat >>confdefs.h <<_ACEOF 14737 #define $ac_tr_func 1 14738 _ACEOF 14739 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14741 $as_echo "yes" >&6; } 14742 ;; 14743 no) 14744 eval "ac_cv_func_dbm_firstkey=no" 14745 eval "LIB_dbm_firstkey=" 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14747 $as_echo "no" >&6; } 14748 ;; 14749 *) 14750 eval "ac_cv_func_dbm_firstkey=yes" 14751 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14752 cat >>confdefs.h <<_ACEOF 14753 #define $ac_tr_func 1 14754 _ACEOF 14755 14756 cat >>confdefs.h <<_ACEOF 14757 #define $ac_tr_lib 1 14758 _ACEOF 14759 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 14761 $as_echo "yes, in $ac_res" >&6; } 14762 ;; 14763 esac 14764 14765 14766 14767 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 14768 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 14769 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 14770 else 14771 LIB_NDBM="" 14772 fi 14773 14774 $as_echo "#define HAVE_DB_NDBM 1" >>confdefs.h 14775 14776 14777 $as_echo "#define HAVE_NEW_DB 1" >>confdefs.h 14778 14779 else 14780 $as_unset ac_cv_func_dbm_firstkey 14781 $as_unset ac_cv_funclib_dbm_firstkey 14782 fi 14783 fi 14784 14785 14786 fi # fi berkeley db 14787 14788 if test "$enable_ndbm_db" != "no"; then 14789 14790 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 14791 14792 for ac_header in \ 14793 dbm.h \ 14794 ndbm.h \ 14795 14796 do : 14797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14799 eval as_val=\$$as_ac_Header 14800 if test "x$as_val" = x""yes; then : 14801 cat >>confdefs.h <<_ACEOF 14802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14803 _ACEOF 14804 14805 fi 14806 14807 done 14808 14809 14810 14811 14812 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 14814 $as_echo_n "checking for dbm_firstkey... " >&6; } 14815 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then : 14816 $as_echo_n "(cached) " >&6 14817 else 14818 14819 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 14820 ac_save_LIBS="$LIBS" 14821 for ac_lib in "" ndbm; do 14822 case "$ac_lib" in 14823 "") ;; 14824 yes) ac_lib="" ;; 14825 no) continue ;; 14826 -l*) ;; 14827 *) ac_lib="-l$ac_lib" ;; 14828 esac 14829 LIBS=" $ac_lib $ac_save_LIBS" 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831 /* end confdefs.h. */ 14832 14833 #include <stdio.h> 14834 #if defined(HAVE_NDBM_H) 14835 #include <ndbm.h> 14836 #elif defined(HAVE_DBM_H) 14837 #include <dbm.h> 14838 #endif 14839 DBM *dbm; 14840 14841 int 14842 main () 14843 { 14844 dbm_firstkey(NULL) 14845 ; 14846 return 0; 14847 } 14848 _ACEOF 14849 if ac_fn_c_try_link "$LINENO"; then : 14850 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 14851 fi 14852 rm -f core conftest.err conftest.$ac_objext \ 14853 conftest$ac_exeext conftest.$ac_ext 14854 done 14855 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 14856 LIBS="$ac_save_LIBS" 14857 fi 14858 14859 fi 14860 14861 14862 eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 14863 14864 if false; then 14865 for ac_func in dbm_firstkey 14866 do : 14867 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 14868 if test "x$ac_cv_func_dbm_firstkey" = x""yes; then : 14869 cat >>confdefs.h <<_ACEOF 14870 #define HAVE_DBM_FIRSTKEY 1 14871 _ACEOF 14872 14873 fi 14874 done 14875 14876 fi 14877 # dbm_firstkey 14878 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14879 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14880 eval "LIB_dbm_firstkey=$ac_res" 14881 14882 case "$ac_res" in 14883 yes) 14884 eval "ac_cv_func_dbm_firstkey=yes" 14885 eval "LIB_dbm_firstkey=" 14886 cat >>confdefs.h <<_ACEOF 14887 #define $ac_tr_func 1 14888 _ACEOF 14889 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14891 $as_echo "yes" >&6; } 14892 ;; 14893 no) 14894 eval "ac_cv_func_dbm_firstkey=no" 14895 eval "LIB_dbm_firstkey=" 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897 $as_echo "no" >&6; } 14898 ;; 14899 *) 14900 eval "ac_cv_func_dbm_firstkey=yes" 14901 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14902 cat >>confdefs.h <<_ACEOF 14903 #define $ac_tr_func 1 14904 _ACEOF 14905 14906 cat >>confdefs.h <<_ACEOF 14907 #define $ac_tr_lib 1 14908 _ACEOF 14909 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 14911 $as_echo "yes, in $ac_res" >&6; } 14912 ;; 14913 esac 14914 14915 14916 14917 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 14918 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 14919 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 14920 else 14921 LIB_NDBM="" 14922 fi 14923 14924 $as_echo "#define HAVE_NDBM 1" >>confdefs.h 14925 have_ndbm=yes 14926 if test "$db_type" = "unknown"; then 14927 db_type=ndbm 14928 DBLIB="$LIB_NDBM" 14929 fi 14930 else 14931 14932 $as_unset ac_cv_func_dbm_firstkey 14933 $as_unset ac_cv_funclib_dbm_firstkey 14934 14935 for ac_header in \ 14936 gdbm/ndbm.h \ 14937 14938 do : 14939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14941 eval as_val=\$$as_ac_Header 14942 if test "x$as_val" = x""yes; then : 14943 cat >>confdefs.h <<_ACEOF 14944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14945 _ACEOF 14946 14947 fi 14948 14949 done 14950 14951 14952 14953 14954 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5 14956 $as_echo_n "checking for dbm_firstkey... " >&6; } 14957 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then : 14958 $as_echo_n "(cached) " >&6 14959 else 14960 14961 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 14962 ac_save_LIBS="$LIBS" 14963 for ac_lib in "" gdbm; do 14964 case "$ac_lib" in 14965 "") ;; 14966 yes) ac_lib="" ;; 14967 no) continue ;; 14968 -l*) ;; 14969 *) ac_lib="-l$ac_lib" ;; 14970 esac 14971 LIBS=" $ac_lib $ac_save_LIBS" 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973 /* end confdefs.h. */ 14974 14975 #include <stdio.h> 14976 #include <gdbm/ndbm.h> 14977 DBM *dbm; 14978 14979 int 14980 main () 14981 { 14982 dbm_firstkey(NULL) 14983 ; 14984 return 0; 14985 } 14986 _ACEOF 14987 if ac_fn_c_try_link "$LINENO"; then : 14988 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 14989 fi 14990 rm -f core conftest.err conftest.$ac_objext \ 14991 conftest$ac_exeext conftest.$ac_ext 14992 done 14993 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 14994 LIBS="$ac_save_LIBS" 14995 fi 14996 14997 fi 14998 14999 15000 eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 15001 15002 if false; then 15003 for ac_func in dbm_firstkey 15004 do : 15005 ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey" 15006 if test "x$ac_cv_func_dbm_firstkey" = x""yes; then : 15007 cat >>confdefs.h <<_ACEOF 15008 #define HAVE_DBM_FIRSTKEY 1 15009 _ACEOF 15010 15011 fi 15012 done 15013 15014 fi 15015 # dbm_firstkey 15016 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15017 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15018 eval "LIB_dbm_firstkey=$ac_res" 15019 15020 case "$ac_res" in 15021 yes) 15022 eval "ac_cv_func_dbm_firstkey=yes" 15023 eval "LIB_dbm_firstkey=" 15024 cat >>confdefs.h <<_ACEOF 15025 #define $ac_tr_func 1 15026 _ACEOF 15027 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15029 $as_echo "yes" >&6; } 15030 ;; 15031 no) 15032 eval "ac_cv_func_dbm_firstkey=no" 15033 eval "LIB_dbm_firstkey=" 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15035 $as_echo "no" >&6; } 15036 ;; 15037 *) 15038 eval "ac_cv_func_dbm_firstkey=yes" 15039 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15040 cat >>confdefs.h <<_ACEOF 15041 #define $ac_tr_func 1 15042 _ACEOF 15043 15044 cat >>confdefs.h <<_ACEOF 15045 #define $ac_tr_lib 1 15046 _ACEOF 15047 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 15049 $as_echo "yes, in $ac_res" >&6; } 15050 ;; 15051 esac 15052 15053 15054 15055 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 15056 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 15057 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 15058 else 15059 LIB_NDBM="" 15060 fi 15061 15062 $as_echo "#define HAVE_NDBM 1" >>confdefs.h 15063 have_ndbm=yes 15064 if test "$db_type" = "unknown"; then 15065 db_type=ndbm 15066 DBLIB="$LIB_NDBM" 15067 fi 15068 fi 15069 fi 15070 fi #enable_ndbm_db 15071 fi # unknown 15072 15073 if test "$have_ndbm" = "yes"; then 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5 15075 $as_echo_n "checking if ndbm is implemented with db... " >&6; } 15076 if test "$cross_compiling" = yes; then : 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5 15078 $as_echo "no-cross" >&6; } 15079 else 15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15081 /* end confdefs.h. */ 15082 15083 #include <unistd.h> 15084 #include <fcntl.h> 15085 #if defined(HAVE_GDBM_NDBM_H) 15086 #include <gdbm/ndbm.h> 15087 #elif defined(HAVE_NDBM_H) 15088 #include <ndbm.h> 15089 #elif defined(HAVE_DBM_H) 15090 #include <dbm.h> 15091 #endif 15092 int main(int argc, char **argv) 15093 { 15094 DBM *d; 15095 15096 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 15097 if (d == NULL) 15098 return 1; 15099 dbm_close(d); 15100 return 0; 15101 } 15102 _ACEOF 15103 if ac_fn_c_try_run "$LINENO"; then : 15104 15105 if test -f conftest.db; then 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15107 $as_echo "yes" >&6; } 15108 15109 $as_echo "#define HAVE_NEW_DB 1" >>confdefs.h 15110 15111 else 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15113 $as_echo "no" >&6; } 15114 fi 15115 else 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15117 $as_echo "no" >&6; } 15118 fi 15119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15120 conftest.$ac_objext conftest.beam conftest.$ac_ext 15121 fi 15122 15123 fi 15124 15125 if test "$db_type" = db1; then 15126 HAVE_DB1_TRUE= 15127 HAVE_DB1_FALSE='#' 15128 else 15129 HAVE_DB1_TRUE='#' 15130 HAVE_DB1_FALSE= 15131 fi 15132 if test "$db_type" = db3; then 15133 HAVE_DB3_TRUE= 15134 HAVE_DB3_FALSE='#' 15135 else 15136 HAVE_DB3_TRUE='#' 15137 HAVE_DB3_FALSE= 15138 fi 15139 if test "$db_type" = ndbm; then 15140 HAVE_NDBM_TRUE= 15141 HAVE_NDBM_FALSE='#' 15142 else 15143 HAVE_NDBM_TRUE='#' 15144 HAVE_NDBM_FALSE= 15145 fi 15146 if test "$dbheader" != ""; then 15147 HAVE_DBHEADER_TRUE= 15148 HAVE_DBHEADER_FALSE='#' 15149 else 15150 HAVE_DBHEADER_TRUE='#' 15151 HAVE_DBHEADER_FALSE= 15152 fi 15153 15154 ## it's probably not correct to include LDFLAGS here, but we might 15155 ## need it, for now just add any possible -L 15156 z="" 15157 for i in $LDFLAGS; do 15158 case "$i" in 15159 -L*) z="$z $i";; 15160 esac 15161 done 15162 DBLIB="$z $DBLIB" 15163 15164 15165 15166 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15168 $as_echo_n "checking for inline... " >&6; } 15169 if test "${ac_cv_c_inline+set}" = set; then : 15170 $as_echo_n "(cached) " >&6 15171 else 15172 ac_cv_c_inline=no 15173 for ac_kw in inline __inline__ __inline; do 15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15175 /* end confdefs.h. */ 15176 #ifndef __cplusplus 15177 typedef int foo_t; 15178 static $ac_kw foo_t static_foo () {return 0; } 15179 $ac_kw foo_t foo () {return 0; } 15180 #endif 15181 15182 _ACEOF 15183 if ac_fn_c_try_compile "$LINENO"; then : 15184 ac_cv_c_inline=$ac_kw 15185 fi 15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15187 test "$ac_cv_c_inline" != no && break 15188 done 15189 15190 fi 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15192 $as_echo "$ac_cv_c_inline" >&6; } 15193 15194 case $ac_cv_c_inline in 15195 inline | yes) ;; 15196 *) 15197 case $ac_cv_c_inline in 15198 no) ac_val=;; 15199 *) ac_val=$ac_cv_c_inline;; 15200 esac 15201 cat >>confdefs.h <<_ACEOF 15202 #ifndef __cplusplus 15203 #define inline $ac_val 15204 #endif 15205 _ACEOF 15206 ;; 15207 esac 15208 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15210 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15211 if test "${ac_cv_c_const+set}" = set; then : 15212 $as_echo_n "(cached) " >&6 15213 else 15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15215 /* end confdefs.h. */ 15216 15217 int 15218 main () 15219 { 15220 /* FIXME: Include the comments suggested by Paul. */ 15221 #ifndef __cplusplus 15222 /* Ultrix mips cc rejects this. */ 15223 typedef int charset[2]; 15224 const charset cs; 15225 /* SunOS 4.1.1 cc rejects this. */ 15226 char const *const *pcpcc; 15227 char **ppc; 15228 /* NEC SVR4.0.2 mips cc rejects this. */ 15229 struct point {int x, y;}; 15230 static struct point const zero = {0,0}; 15231 /* AIX XL C 1.02.0.0 rejects this. 15232 It does not let you subtract one const X* pointer from another in 15233 an arm of an if-expression whose if-part is not a constant 15234 expression */ 15235 const char *g = "string"; 15236 pcpcc = &g + (g ? g-g : 0); 15237 /* HPUX 7.0 cc rejects these. */ 15238 ++pcpcc; 15239 ppc = (char**) pcpcc; 15240 pcpcc = (char const *const *) ppc; 15241 { /* SCO 3.2v4 cc rejects this. */ 15242 char *t; 15243 char const *s = 0 ? (char *) 0 : (char const *) 0; 15244 15245 *t++ = 0; 15246 if (s) return 0; 15247 } 15248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15249 int x[] = {25, 17}; 15250 const int *foo = &x[0]; 15251 ++foo; 15252 } 15253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15254 typedef const int *iptr; 15255 iptr p = 0; 15256 ++p; 15257 } 15258 { /* AIX XL C 1.02.0.0 rejects this saying 15259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15260 struct s { int j; const int *ap[3]; }; 15261 struct s *b; b->j = 5; 15262 } 15263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15264 const int foo = 10; 15265 if (!foo) return 0; 15266 } 15267 return !cs[0] && !zero.x; 15268 #endif 15269 15270 ; 15271 return 0; 15272 } 15273 _ACEOF 15274 if ac_fn_c_try_compile "$LINENO"; then : 15275 ac_cv_c_const=yes 15276 else 15277 ac_cv_c_const=no 15278 fi 15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280 fi 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15282 $as_echo "$ac_cv_c_const" >&6; } 15283 if test $ac_cv_c_const = no; then 15284 15285 $as_echo "#define const /**/" >>confdefs.h 15286 15287 fi 15288 15289 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15290 if test "x$ac_cv_type_size_t" = x""yes; then : 15291 15292 else 15293 15294 cat >>confdefs.h <<_ACEOF 15295 #define size_t unsigned int 15296 _ACEOF 15297 15298 fi 15299 15300 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15301 if test "x$ac_cv_type_pid_t" = x""yes; then : 15302 15303 else 15304 15305 cat >>confdefs.h <<_ACEOF 15306 #define pid_t int 15307 _ACEOF 15308 15309 fi 15310 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 15312 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 15313 if test "${ac_cv_type_uid_t+set}" = set; then : 15314 $as_echo_n "(cached) " >&6 15315 else 15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15317 /* end confdefs.h. */ 15318 #include <sys/types.h> 15319 15320 _ACEOF 15321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15322 $EGREP "uid_t" >/dev/null 2>&1; then : 15323 ac_cv_type_uid_t=yes 15324 else 15325 ac_cv_type_uid_t=no 15326 fi 15327 rm -f conftest* 15328 15329 fi 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 15331 $as_echo "$ac_cv_type_uid_t" >&6; } 15332 if test $ac_cv_type_uid_t = no; then 15333 15334 $as_echo "#define uid_t int" >>confdefs.h 15335 15336 15337 $as_echo "#define gid_t int" >>confdefs.h 15338 15339 fi 15340 15341 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 15343 $as_echo_n "checking return type of signal handlers... " >&6; } 15344 if test "${ac_cv_type_signal+set}" = set; then : 15345 $as_echo_n "(cached) " >&6 15346 else 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348 /* end confdefs.h. */ 15349 #include <sys/types.h> 15350 #include <signal.h> 15351 15352 int 15353 main () 15354 { 15355 return *(signal (0, 0)) (0) == 1; 15356 ; 15357 return 0; 15358 } 15359 _ACEOF 15360 if ac_fn_c_try_compile "$LINENO"; then : 15361 ac_cv_type_signal=int 15362 else 15363 ac_cv_type_signal=void 15364 fi 15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15366 fi 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 15368 $as_echo "$ac_cv_type_signal" >&6; } 15369 15370 cat >>confdefs.h <<_ACEOF 15371 #define RETSIGTYPE $ac_cv_type_signal 15372 _ACEOF 15373 15374 15375 if test "$ac_cv_type_signal" = "void" ; then 15376 15377 $as_echo "#define VOID_RETSIGTYPE 1" >>confdefs.h 15378 15379 fi 15380 15381 15382 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 15384 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 15385 if test "${ac_cv_header_time+set}" = set; then : 15386 $as_echo_n "(cached) " >&6 15387 else 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389 /* end confdefs.h. */ 15390 #include <sys/types.h> 15391 #include <sys/time.h> 15392 #include <time.h> 15393 15394 int 15395 main () 15396 { 15397 if ((struct tm *) 0) 15398 return 0; 15399 ; 15400 return 0; 15401 } 15402 _ACEOF 15403 if ac_fn_c_try_compile "$LINENO"; then : 15404 ac_cv_header_time=yes 15405 else 15406 ac_cv_header_time=no 15407 fi 15408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15409 fi 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 15411 $as_echo "$ac_cv_header_time" >&6; } 15412 if test $ac_cv_header_time = yes; then 15413 15414 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15415 15416 fi 15417 15418 15419 for ac_header in standards.h 15420 do : 15421 ac_fn_c_check_header_mongrel "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default" 15422 if test "x$ac_cv_header_standards_h" = x""yes; then : 15423 cat >>confdefs.h <<_ACEOF 15424 #define HAVE_STANDARDS_H 1 15425 _ACEOF 15426 15427 fi 15428 15429 done 15430 15431 for i in netinet/ip.h netinet/tcp.h; do 15432 15433 cv=`echo "$i" | sed 'y%./+-%__p_%'` 15434 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $i" >&5 15436 $as_echo_n "checking for $i... " >&6; } 15437 if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 15438 $as_echo_n "(cached) " >&6 15439 else 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441 /* end confdefs.h. */ 15442 15443 #ifdef HAVE_STANDARDS_H 15444 #include <standards.h> 15445 #endif 15446 #include <$i> 15447 15448 _ACEOF 15449 if ac_fn_c_try_cpp "$LINENO"; then : 15450 eval "ac_cv_header_$cv=yes" 15451 else 15452 eval "ac_cv_header_$cv=no" 15453 fi 15454 rm -f conftest.err conftest.$ac_ext 15455 fi 15456 eval ac_res=\$ac_cv_header_$cv 15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15458 $as_echo "$ac_res" >&6; } 15459 ac_res=`eval echo \\$ac_cv_header_$cv` 15460 if test "$ac_res" = yes; then 15461 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 15462 cat >>confdefs.h <<_ACEOF 15463 #define $ac_tr_hdr 1 15464 _ACEOF 15465 15466 fi 15467 done 15468 if false;then 15469 for ac_header in netinet/ip.h netinet/tcp.h 15470 do : 15471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15473 eval as_val=\$$as_ac_Header 15474 if test "x$as_val" = x""yes; then : 15475 cat >>confdefs.h <<_ACEOF 15476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15477 _ACEOF 15478 15479 fi 15480 15481 done 15482 15483 fi 15484 15485 15486 for ac_func in getlogin setlogin 15487 do : 15488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15490 eval as_val=\$$as_ac_var 15491 if test "x$as_val" = x""yes; then : 15492 cat >>confdefs.h <<_ACEOF 15493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15494 _ACEOF 15495 15496 fi 15497 done 15498 15499 if test "$ac_cv_func_getlogin" = yes; then 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5 15501 $as_echo_n "checking if getlogin is posix... " >&6; } 15502 if test "${ac_cv_func_getlogin_posix+set}" = set; then : 15503 $as_echo_n "(cached) " >&6 15504 else 15505 15506 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 15507 ac_cv_func_getlogin_posix=no 15508 else 15509 ac_cv_func_getlogin_posix=yes 15510 fi 15511 15512 fi 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5 15514 $as_echo "$ac_cv_func_getlogin_posix" >&6; } 15515 if test "$ac_cv_func_getlogin_posix" = yes; then 15516 15517 $as_echo "#define POSIX_GETLOGIN 1" >>confdefs.h 15518 15519 fi 15520 fi 15521 15522 15523 15524 15525 for ac_header in $ac_header_list 15526 do : 15527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15529 " 15530 eval as_val=\$$as_ac_Header 15531 if test "x$as_val" = x""yes; then : 15532 cat >>confdefs.h <<_ACEOF 15533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15534 _ACEOF 15535 15536 fi 15537 15538 done 15539 15540 15541 15542 15543 15544 15545 15546 15547 for ac_func in getpagesize 15548 do : 15549 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 15550 if test "x$ac_cv_func_getpagesize" = x""yes; then : 15551 cat >>confdefs.h <<_ACEOF 15552 #define HAVE_GETPAGESIZE 1 15553 _ACEOF 15554 15555 fi 15556 done 15557 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15559 $as_echo_n "checking for working mmap... " >&6; } 15560 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 15561 $as_echo_n "(cached) " >&6 15562 else 15563 if test "$cross_compiling" = yes; then : 15564 ac_cv_func_mmap_fixed_mapped=no 15565 else 15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15567 /* end confdefs.h. */ 15568 $ac_includes_default 15569 /* malloc might have been renamed as rpl_malloc. */ 15570 #undef malloc 15571 15572 /* Thanks to Mike Haertel and Jim Avera for this test. 15573 Here is a matrix of mmap possibilities: 15574 mmap private not fixed 15575 mmap private fixed at somewhere currently unmapped 15576 mmap private fixed at somewhere already mapped 15577 mmap shared not fixed 15578 mmap shared fixed at somewhere currently unmapped 15579 mmap shared fixed at somewhere already mapped 15580 For private mappings, we should verify that changes cannot be read() 15581 back from the file, nor mmap's back from the file at a different 15582 address. (There have been systems where private was not correctly 15583 implemented like the infamous i386 svr4.0, and systems where the 15584 VM page cache was not coherent with the file system buffer cache 15585 like early versions of FreeBSD and possibly contemporary NetBSD.) 15586 For shared mappings, we should conversely verify that changes get 15587 propagated back to all the places they're supposed to be. 15588 15589 Grep wants private fixed already mapped. 15590 The main things grep needs to know about mmap are: 15591 * does it exist and is it safe to write into the mmap'd area 15592 * how to use it (BSD variants) */ 15593 15594 #include <fcntl.h> 15595 #include <sys/mman.h> 15596 15597 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 15598 char *malloc (); 15599 #endif 15600 15601 /* This mess was copied from the GNU getpagesize.h. */ 15602 #ifndef HAVE_GETPAGESIZE 15603 # ifdef _SC_PAGESIZE 15604 # define getpagesize() sysconf(_SC_PAGESIZE) 15605 # else /* no _SC_PAGESIZE */ 15606 # ifdef HAVE_SYS_PARAM_H 15607 # include <sys/param.h> 15608 # ifdef EXEC_PAGESIZE 15609 # define getpagesize() EXEC_PAGESIZE 15610 # else /* no EXEC_PAGESIZE */ 15611 # ifdef NBPG 15612 # define getpagesize() NBPG * CLSIZE 15613 # ifndef CLSIZE 15614 # define CLSIZE 1 15615 # endif /* no CLSIZE */ 15616 # else /* no NBPG */ 15617 # ifdef NBPC 15618 # define getpagesize() NBPC 15619 # else /* no NBPC */ 15620 # ifdef PAGESIZE 15621 # define getpagesize() PAGESIZE 15622 # endif /* PAGESIZE */ 15623 # endif /* no NBPC */ 15624 # endif /* no NBPG */ 15625 # endif /* no EXEC_PAGESIZE */ 15626 # else /* no HAVE_SYS_PARAM_H */ 15627 # define getpagesize() 8192 /* punt totally */ 15628 # endif /* no HAVE_SYS_PARAM_H */ 15629 # endif /* no _SC_PAGESIZE */ 15630 15631 #endif /* no HAVE_GETPAGESIZE */ 15632 15633 int 15634 main () 15635 { 15636 char *data, *data2, *data3; 15637 int i, pagesize; 15638 int fd, fd2; 15639 15640 pagesize = getpagesize (); 15641 15642 /* First, make a file with some known garbage in it. */ 15643 data = (char *) malloc (pagesize); 15644 if (!data) 15645 return 1; 15646 for (i = 0; i < pagesize; ++i) 15647 *(data + i) = rand (); 15648 umask (0); 15649 fd = creat ("conftest.mmap", 0600); 15650 if (fd < 0) 15651 return 2; 15652 if (write (fd, data, pagesize) != pagesize) 15653 return 3; 15654 close (fd); 15655 15656 /* Next, check that the tail of a page is zero-filled. File must have 15657 non-zero length, otherwise we risk SIGBUS for entire page. */ 15658 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15659 if (fd2 < 0) 15660 return 4; 15661 data2 = ""; 15662 if (write (fd2, data2, 1) != 1) 15663 return 5; 15664 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15665 if (data2 == MAP_FAILED) 15666 return 6; 15667 for (i = 0; i < pagesize; ++i) 15668 if (*(data2 + i)) 15669 return 7; 15670 close (fd2); 15671 if (munmap (data2, pagesize)) 15672 return 8; 15673 15674 /* Next, try to mmap the file at a fixed address which already has 15675 something else allocated at it. If we can, also make sure that 15676 we see the same garbage. */ 15677 fd = open ("conftest.mmap", O_RDWR); 15678 if (fd < 0) 15679 return 9; 15680 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15681 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15682 return 10; 15683 for (i = 0; i < pagesize; ++i) 15684 if (*(data + i) != *(data2 + i)) 15685 return 11; 15686 15687 /* Finally, make sure that changes to the mapped area do not 15688 percolate back to the file as seen by read(). (This is a bug on 15689 some variants of i386 svr4.0.) */ 15690 for (i = 0; i < pagesize; ++i) 15691 *(data2 + i) = *(data2 + i) + 1; 15692 data3 = (char *) malloc (pagesize); 15693 if (!data3) 15694 return 12; 15695 if (read (fd, data3, pagesize) != pagesize) 15696 return 13; 15697 for (i = 0; i < pagesize; ++i) 15698 if (*(data + i) != *(data3 + i)) 15699 return 14; 15700 close (fd); 15701 return 0; 15702 } 15703 _ACEOF 15704 if ac_fn_c_try_run "$LINENO"; then : 15705 ac_cv_func_mmap_fixed_mapped=yes 15706 else 15707 ac_cv_func_mmap_fixed_mapped=no 15708 fi 15709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15710 conftest.$ac_objext conftest.beam conftest.$ac_ext 15711 fi 15712 15713 fi 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15715 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 15716 if test $ac_cv_func_mmap_fixed_mapped = yes; then 15717 15718 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 15719 15720 fi 15721 rm -f conftest.mmap conftest.txt 15722 15723 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5 15725 $as_echo_n "checking if realloc if broken... " >&6; } 15726 if test "${ac_cv_func_realloc_broken+set}" = set; then : 15727 $as_echo_n "(cached) " >&6 15728 else 15729 15730 ac_cv_func_realloc_broken=no 15731 if test "$cross_compiling" = yes; then : 15732 : 15733 else 15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735 /* end confdefs.h. */ 15736 15737 #include <stddef.h> 15738 #include <stdlib.h> 15739 15740 int main(int argc, char **argv) 15741 { 15742 return realloc(NULL, 17) == NULL; 15743 } 15744 15745 _ACEOF 15746 if ac_fn_c_try_run "$LINENO"; then : 15747 : 15748 else 15749 ac_cv_func_realloc_broken=yes 15750 fi 15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15752 conftest.$ac_objext conftest.beam conftest.$ac_ext 15753 fi 15754 15755 15756 fi 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5 15758 $as_echo "$ac_cv_func_realloc_broken" >&6; } 15759 if test "$ac_cv_func_realloc_broken" = yes ; then 15760 15761 $as_echo "#define BROKEN_REALLOC 1" >>confdefs.h 15762 15763 fi 15764 15765 15766 15767 15768 15769 15770 DIR_roken=roken 15771 LIB_roken='$(top_builddir)/lib/roken/libroken.la' 15772 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 $as_echo "#define rk_PATH_DELIM '/'" >>confdefs.h 15784 15785 15786 15787 15788 15789 15790 15791 15792 # Check whether --enable-developer was given. 15793 if test "${enable_developer+set}" = set; then : 15794 enableval=$enable_developer; 15795 fi 15796 15797 if test "X$enable_developer" = Xyes; then 15798 dwflags="-Werror" 15799 fi 15800 15801 WFLAGS_NOUNUSED="" 15802 WFLAGS_NOIMPLICITINT="" 15803 if test -z "$WFLAGS" -a "$GCC" = "yes"; then 15804 # -Wno-implicit-int for broken X11 headers 15805 # leave these out for now: 15806 # -Wcast-align doesn't work well on alpha osf/1 15807 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 15808 # -Wmissing-declarations -Wnested-externs 15809 # -Wstrict-overflow=5 15810 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 15811 WFLAGS_NOUNUSED="-Wno-unused" 15812 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 15813 fi 15814 15815 15816 15817 15818 15819 15820 15821 15822 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 15824 $as_echo_n "checking for ssize_t... " >&6; } 15825 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 15826 $as_echo_n "(cached) " >&6 15827 else 15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15829 /* end confdefs.h. */ 15830 15831 #include <sys/types.h> 15832 #if STDC_HEADERS 15833 #include <stdlib.h> 15834 #include <stddef.h> 15835 #endif 15836 #include <unistd.h> 15837 int 15838 main () 15839 { 15840 ssize_t foo; 15841 ; 15842 return 0; 15843 } 15844 _ACEOF 15845 if ac_fn_c_try_compile "$LINENO"; then : 15846 eval "ac_cv_type_$cv=yes" 15847 else 15848 eval "ac_cv_type_$cv=no" 15849 fi 15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15851 fi 15852 ac_foo=`eval echo \\$ac_cv_type_$cv` 15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 15854 $as_echo "$ac_foo" >&6; } 15855 if test "$ac_foo" = yes; then 15856 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 15857 if false; then 15858 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15859 if test "x$ac_cv_type_ssize_t" = x""yes; then : 15860 15861 cat >>confdefs.h <<_ACEOF 15862 #define HAVE_SSIZE_T 1 15863 _ACEOF 15864 15865 15866 fi 15867 15868 fi 15869 15870 cat >>confdefs.h <<_ACEOF 15871 #define $ac_tr_hdr 1 15872 _ACEOF 15873 15874 fi 15875 15876 15877 15878 15879 15880 cv=`echo "long long" | sed 'y%./+- %__p__%'` 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 15882 $as_echo_n "checking for long long... " >&6; } 15883 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 15884 $as_echo_n "(cached) " >&6 15885 else 15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887 /* end confdefs.h. */ 15888 15889 #include <sys/types.h> 15890 #if STDC_HEADERS 15891 #include <stdlib.h> 15892 #include <stddef.h> 15893 #endif 15894 15895 int 15896 main () 15897 { 15898 long long foo; 15899 ; 15900 return 0; 15901 } 15902 _ACEOF 15903 if ac_fn_c_try_compile "$LINENO"; then : 15904 eval "ac_cv_type_$cv=yes" 15905 else 15906 eval "ac_cv_type_$cv=no" 15907 fi 15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15909 fi 15910 ac_foo=`eval echo \\$ac_cv_type_$cv` 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 15912 $as_echo "$ac_foo" >&6; } 15913 if test "$ac_foo" = yes; then 15914 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 15915 if false; then 15916 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 15917 if test "x$ac_cv_type_long_long" = x""yes; then : 15918 15919 cat >>confdefs.h <<_ACEOF 15920 #define HAVE_LONG_LONG 1 15921 _ACEOF 15922 15923 15924 fi 15925 15926 fi 15927 15928 cat >>confdefs.h <<_ACEOF 15929 #define $ac_tr_hdr 1 15930 _ACEOF 15931 15932 fi 15933 15934 15935 15936 15937 15938 15939 15940 for ac_header in \ 15941 arpa/inet.h \ 15942 config.h \ 15943 crypt.h \ 15944 dirent.h \ 15945 errno.h \ 15946 err.h \ 15947 fcntl.h \ 15948 fnmatch.h \ 15949 grp.h \ 15950 ifaddrs.h \ 15951 netinet/in.h \ 15952 netinet/in6.h \ 15953 netinet/in_systm.h \ 15954 netinet6/in6.h \ 15955 paths.h \ 15956 poll.h \ 15957 pwd.h \ 15958 rpcsvc/ypclnt.h \ 15959 search.h \ 15960 shadow.h \ 15961 stdint.h \ 15962 sys/bswap.h \ 15963 sys/ioctl.h \ 15964 sys/mman.h \ 15965 sys/param.h \ 15966 sys/resource.h \ 15967 sys/sockio.h \ 15968 sys/stat.h \ 15969 sys/time.h \ 15970 sys/tty.h \ 15971 sys/types.h \ 15972 sys/uio.h \ 15973 sys/utsname.h \ 15974 sys/wait.h \ 15975 syslog.h \ 15976 termios.h \ 15977 winsock2.h \ 15978 ws2tcpip.h \ 15979 unistd.h \ 15980 userconf.h \ 15981 usersec.h \ 15982 util.h \ 15983 15984 do : 15985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15987 eval as_val=\$$as_ac_Header 15988 if test "x$as_val" = x""yes; then : 15989 cat >>confdefs.h <<_ACEOF 15990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15991 _ACEOF 15992 15993 fi 15994 15995 done 15996 15997 15998 15999 16000 cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'` 16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 16002 $as_echo_n "checking for uintptr_t... " >&6; } 16003 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 16004 $as_echo_n "(cached) " >&6 16005 else 16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16007 /* end confdefs.h. */ 16008 16009 #include <sys/types.h> 16010 #if STDC_HEADERS 16011 #include <stdlib.h> 16012 #include <stddef.h> 16013 #endif 16014 #ifdef HAVE_STDINT_H 16015 #include <stdint.h> 16016 #endif 16017 int 16018 main () 16019 { 16020 uintptr_t foo; 16021 ; 16022 return 0; 16023 } 16024 _ACEOF 16025 if ac_fn_c_try_compile "$LINENO"; then : 16026 eval "ac_cv_type_$cv=yes" 16027 else 16028 eval "ac_cv_type_$cv=no" 16029 fi 16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16031 fi 16032 ac_foo=`eval echo \\$ac_cv_type_$cv` 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 16034 $as_echo "$ac_foo" >&6; } 16035 if test "$ac_foo" = yes; then 16036 ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 16037 if false; then 16038 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 16039 if test "x$ac_cv_type_uintptr_t" = x""yes; then : 16040 16041 cat >>confdefs.h <<_ACEOF 16042 #define HAVE_UINTPTR_T 1 16043 _ACEOF 16044 16045 16046 fi 16047 16048 fi 16049 16050 cat >>confdefs.h <<_ACEOF 16051 #define $ac_tr_hdr 1 16052 _ACEOF 16053 16054 fi 16055 16056 16057 for ac_header in vis.h 16058 do : 16059 ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" " 16060 #include <vis.h> 16061 #ifndef VIS_SP 16062 #error invis 16063 #endif 16064 " 16065 if test "x$ac_cv_header_vis_h" = x""yes; then : 16066 cat >>confdefs.h <<_ACEOF 16067 #define HAVE_VIS_H 1 16068 _ACEOF 16069 16070 fi 16071 16072 done 16073 16074 16075 for ac_header in netdb.h 16076 do : 16077 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 16078 #ifdef HAVE_SYS_TYPES_H 16079 #include <sys/types.h> 16080 #endif 16081 16082 " 16083 if test "x$ac_cv_header_netdb_h" = x""yes; then : 16084 cat >>confdefs.h <<_ACEOF 16085 #define HAVE_NETDB_H 1 16086 _ACEOF 16087 16088 fi 16089 16090 done 16091 16092 16093 for ac_header in sys/socket.h 16094 do : 16095 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 16096 #ifdef HAVE_SYS_TYPES_H 16097 #include <sys/types.h> 16098 #endif 16099 16100 " 16101 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 16102 cat >>confdefs.h <<_ACEOF 16103 #define HAVE_SYS_SOCKET_H 1 16104 _ACEOF 16105 16106 fi 16107 16108 done 16109 16110 16111 for ac_header in net/if.h 16112 do : 16113 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 16114 #ifdef HAVE_SYS_TYPES_H 16115 #include <sys/types.h> 16116 #endif 16117 #if HAVE_SYS_SOCKET_H 16118 #include <sys/socket.h> 16119 #endif 16120 " 16121 if test "x$ac_cv_header_net_if_h" = x""yes; then : 16122 cat >>confdefs.h <<_ACEOF 16123 #define HAVE_NET_IF_H 1 16124 _ACEOF 16125 16126 fi 16127 16128 done 16129 16130 16131 for ac_header in netinet6/in6_var.h 16132 do : 16133 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default 16134 #ifdef HAVE_SYS_TYPES_H 16135 #include <sys/types.h> 16136 #endif 16137 #if HAVE_SYS_SOCKET_H 16138 #include <sys/socket.h> 16139 #endif 16140 #ifdef HAVE_NETINET6_IN6_H 16141 #include <netinet6/in6.h> 16142 #endif 16143 16144 " 16145 if test "x$ac_cv_header_netinet6_in6_var_h" = x""yes; then : 16146 cat >>confdefs.h <<_ACEOF 16147 #define HAVE_NETINET6_IN6_VAR_H 1 16148 _ACEOF 16149 16150 fi 16151 16152 done 16153 16154 16155 for ac_header in sys/sysctl.h 16156 do : 16157 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 16158 #ifdef HAVE_SYS_PARAM_H 16159 #include <sys/param.h> 16160 #endif 16161 16162 " 16163 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then : 16164 cat >>confdefs.h <<_ACEOF 16165 #define HAVE_SYS_SYSCTL_H 1 16166 _ACEOF 16167 16168 fi 16169 16170 done 16171 16172 16173 for ac_header in sys/proc.h 16174 do : 16175 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default 16176 #ifdef HAVE_SYS_PARAM_H 16177 #include <sys/param.h> 16178 #endif 16179 16180 " 16181 if test "x$ac_cv_header_sys_proc_h" = x""yes; then : 16182 cat >>confdefs.h <<_ACEOF 16183 #define HAVE_SYS_PROC_H 1 16184 _ACEOF 16185 16186 fi 16187 16188 done 16189 16190 16191 16192 16193 if test "$ac_cv_header_err_h" = yes; then 16194 have_err_h_TRUE= 16195 have_err_h_FALSE='#' 16196 else 16197 have_err_h_TRUE='#' 16198 have_err_h_FALSE= 16199 fi 16200 16201 if test "$ac_cv_header_ifaddrs_h" = yes; then 16202 have_ifaddrs_h_TRUE= 16203 have_ifaddrs_h_FALSE='#' 16204 else 16205 have_ifaddrs_h_TRUE='#' 16206 have_ifaddrs_h_FALSE= 16207 fi 16208 16209 if test "$ac_cv_header_search_h" = yes; then 16210 have_search_h_TRUE= 16211 have_search_h_FALSE='#' 16212 else 16213 have_search_h_TRUE='#' 16214 have_search_h_FALSE= 16215 fi 16216 16217 if test "$ac_cv_header_vis_h" = yes; then 16218 have_vis_h_TRUE= 16219 have_vis_h_FALSE='#' 16220 else 16221 have_vis_h_TRUE='#' 16222 have_vis_h_FALSE= 16223 fi 16224 16225 16226 16227 16228 16229 16230 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket" >&5 16232 $as_echo_n "checking for socket... " >&6; } 16233 if test "${ac_cv_funclib_socket+set}" = set; then : 16234 $as_echo_n "(cached) " >&6 16235 else 16236 16237 if eval "test \"\$ac_cv_func_socket\" != yes" ; then 16238 ac_save_LIBS="$LIBS" 16239 for ac_lib in "" socket; do 16240 case "$ac_lib" in 16241 "") ;; 16242 yes) ac_lib="" ;; 16243 no) continue ;; 16244 -l*) ;; 16245 *) ac_lib="-l$ac_lib" ;; 16246 esac 16247 LIBS=" $ac_lib $ac_save_LIBS" 16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16249 /* end confdefs.h. */ 16250 16251 int 16252 main () 16253 { 16254 socket() 16255 ; 16256 return 0; 16257 } 16258 _ACEOF 16259 if ac_fn_c_try_link "$LINENO"; then : 16260 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 16261 fi 16262 rm -f core conftest.err conftest.$ac_objext \ 16263 conftest$ac_exeext conftest.$ac_ext 16264 done 16265 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 16266 LIBS="$ac_save_LIBS" 16267 fi 16268 16269 fi 16270 16271 16272 eval "ac_res=\$ac_cv_funclib_socket" 16273 16274 if false; then 16275 for ac_func in socket 16276 do : 16277 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 16278 if test "x$ac_cv_func_socket" = x""yes; then : 16279 cat >>confdefs.h <<_ACEOF 16280 #define HAVE_SOCKET 1 16281 _ACEOF 16282 16283 fi 16284 done 16285 16286 fi 16287 # socket 16288 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16289 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16290 eval "LIB_socket=$ac_res" 16291 16292 case "$ac_res" in 16293 yes) 16294 eval "ac_cv_func_socket=yes" 16295 eval "LIB_socket=" 16296 cat >>confdefs.h <<_ACEOF 16297 #define $ac_tr_func 1 16298 _ACEOF 16299 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16301 $as_echo "yes" >&6; } 16302 ;; 16303 no) 16304 eval "ac_cv_func_socket=no" 16305 eval "LIB_socket=" 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16307 $as_echo "no" >&6; } 16308 ;; 16309 *) 16310 eval "ac_cv_func_socket=yes" 16311 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16312 cat >>confdefs.h <<_ACEOF 16313 #define $ac_tr_func 1 16314 _ACEOF 16315 16316 cat >>confdefs.h <<_ACEOF 16317 #define $ac_tr_lib 1 16318 _ACEOF 16319 16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16321 $as_echo "yes, in $ac_res" >&6; } 16322 ;; 16323 esac 16324 16325 16326 if test -n "$LIB_socket"; then 16327 LIBS="$LIB_socket $LIBS" 16328 fi 16329 16330 16331 16332 16333 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5 16335 $as_echo_n "checking for gethostbyname... " >&6; } 16336 if test "${ac_cv_funclib_gethostbyname+set}" = set; then : 16337 $as_echo_n "(cached) " >&6 16338 else 16339 16340 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 16341 ac_save_LIBS="$LIBS" 16342 for ac_lib in "" nsl; do 16343 case "$ac_lib" in 16344 "") ;; 16345 yes) ac_lib="" ;; 16346 no) continue ;; 16347 -l*) ;; 16348 *) ac_lib="-l$ac_lib" ;; 16349 esac 16350 LIBS=" $ac_lib $ac_save_LIBS" 16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352 /* end confdefs.h. */ 16353 16354 int 16355 main () 16356 { 16357 gethostbyname() 16358 ; 16359 return 0; 16360 } 16361 _ACEOF 16362 if ac_fn_c_try_link "$LINENO"; then : 16363 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 16364 fi 16365 rm -f core conftest.err conftest.$ac_objext \ 16366 conftest$ac_exeext conftest.$ac_ext 16367 done 16368 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 16369 LIBS="$ac_save_LIBS" 16370 fi 16371 16372 fi 16373 16374 16375 eval "ac_res=\$ac_cv_funclib_gethostbyname" 16376 16377 if false; then 16378 for ac_func in gethostbyname 16379 do : 16380 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 16381 if test "x$ac_cv_func_gethostbyname" = x""yes; then : 16382 cat >>confdefs.h <<_ACEOF 16383 #define HAVE_GETHOSTBYNAME 1 16384 _ACEOF 16385 16386 fi 16387 done 16388 16389 fi 16390 # gethostbyname 16391 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16392 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16393 eval "LIB_gethostbyname=$ac_res" 16394 16395 case "$ac_res" in 16396 yes) 16397 eval "ac_cv_func_gethostbyname=yes" 16398 eval "LIB_gethostbyname=" 16399 cat >>confdefs.h <<_ACEOF 16400 #define $ac_tr_func 1 16401 _ACEOF 16402 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16404 $as_echo "yes" >&6; } 16405 ;; 16406 no) 16407 eval "ac_cv_func_gethostbyname=no" 16408 eval "LIB_gethostbyname=" 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16410 $as_echo "no" >&6; } 16411 ;; 16412 *) 16413 eval "ac_cv_func_gethostbyname=yes" 16414 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16415 cat >>confdefs.h <<_ACEOF 16416 #define $ac_tr_func 1 16417 _ACEOF 16418 16419 cat >>confdefs.h <<_ACEOF 16420 #define $ac_tr_lib 1 16421 _ACEOF 16422 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16424 $as_echo "yes, in $ac_res" >&6; } 16425 ;; 16426 esac 16427 16428 16429 if test -n "$LIB_gethostbyname"; then 16430 LIBS="$LIB_gethostbyname $LIBS" 16431 fi 16432 16433 16434 16435 16436 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5 16438 $as_echo_n "checking for syslog... " >&6; } 16439 if test "${ac_cv_funclib_syslog+set}" = set; then : 16440 $as_echo_n "(cached) " >&6 16441 else 16442 16443 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 16444 ac_save_LIBS="$LIBS" 16445 for ac_lib in "" syslog; do 16446 case "$ac_lib" in 16447 "") ;; 16448 yes) ac_lib="" ;; 16449 no) continue ;; 16450 -l*) ;; 16451 *) ac_lib="-l$ac_lib" ;; 16452 esac 16453 LIBS=" $ac_lib $ac_save_LIBS" 16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16455 /* end confdefs.h. */ 16456 16457 int 16458 main () 16459 { 16460 syslog() 16461 ; 16462 return 0; 16463 } 16464 _ACEOF 16465 if ac_fn_c_try_link "$LINENO"; then : 16466 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 16467 fi 16468 rm -f core conftest.err conftest.$ac_objext \ 16469 conftest$ac_exeext conftest.$ac_ext 16470 done 16471 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 16472 LIBS="$ac_save_LIBS" 16473 fi 16474 16475 fi 16476 16477 16478 eval "ac_res=\$ac_cv_funclib_syslog" 16479 16480 if false; then 16481 for ac_func in syslog 16482 do : 16483 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 16484 if test "x$ac_cv_func_syslog" = x""yes; then : 16485 cat >>confdefs.h <<_ACEOF 16486 #define HAVE_SYSLOG 1 16487 _ACEOF 16488 16489 fi 16490 done 16491 16492 fi 16493 # syslog 16494 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16495 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16496 eval "LIB_syslog=$ac_res" 16497 16498 case "$ac_res" in 16499 yes) 16500 eval "ac_cv_func_syslog=yes" 16501 eval "LIB_syslog=" 16502 cat >>confdefs.h <<_ACEOF 16503 #define $ac_tr_func 1 16504 _ACEOF 16505 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16507 $as_echo "yes" >&6; } 16508 ;; 16509 no) 16510 eval "ac_cv_func_syslog=no" 16511 eval "LIB_syslog=" 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16513 $as_echo "no" >&6; } 16514 ;; 16515 *) 16516 eval "ac_cv_func_syslog=yes" 16517 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16518 cat >>confdefs.h <<_ACEOF 16519 #define $ac_tr_func 1 16520 _ACEOF 16521 16522 cat >>confdefs.h <<_ACEOF 16523 #define $ac_tr_lib 1 16524 _ACEOF 16525 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16527 $as_echo "yes, in $ac_res" >&6; } 16528 ;; 16529 esac 16530 16531 16532 if test -n "$LIB_syslog"; then 16533 LIBS="$LIB_syslog $LIBS" 16534 fi 16535 16536 16537 16538 16539 # Check whether --with-ipv6 was given. 16540 if test "${with_ipv6+set}" = set; then : 16541 withval=$with_ipv6; 16542 ac_cv_lib_ipv6="$withval" 16543 16544 fi 16545 16546 save_CFLAGS="${CFLAGS}" 16547 16548 if test "X$ac_cv_lib_ipv6" != "Xno"; then 16549 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5 16551 $as_echo_n "checking for IPv6 stack type... " >&6; } 16552 if test "${rk_cv_v6type+set}" = set; then : 16553 $as_echo_n "(cached) " >&6 16554 else 16555 v6type=unknown 16556 v6lib=none 16557 16558 for i in v6d toshiba kame inria zeta linux; do 16559 case $i in 16560 v6d) 16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16562 /* end confdefs.h. */ 16563 16564 #include </usr/local/v6/include/sys/types.h> 16565 #ifdef __V6D__ 16566 yes 16567 #endif 16568 _ACEOF 16569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16570 $EGREP "yes" >/dev/null 2>&1; then : 16571 v6type=$i; v6lib=v6; 16572 v6libdir=/usr/local/v6/lib; 16573 CFLAGS="-I/usr/local/v6/include $CFLAGS" 16574 fi 16575 rm -f conftest* 16576 16577 ;; 16578 toshiba) 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580 /* end confdefs.h. */ 16581 16582 #include <sys/param.h> 16583 #ifdef _TOSHIBA_INET6 16584 yes 16585 #endif 16586 _ACEOF 16587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16588 $EGREP "yes" >/dev/null 2>&1; then : 16589 v6type=$i; v6lib=inet6; 16590 v6libdir=/usr/local/v6/lib; 16591 CFLAGS="-DINET6 $CFLAGS" 16592 fi 16593 rm -f conftest* 16594 16595 ;; 16596 kame) 16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16598 /* end confdefs.h. */ 16599 16600 #include <netinet/in.h> 16601 #ifdef __KAME__ 16602 yes 16603 #endif 16604 _ACEOF 16605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16606 $EGREP "yes" >/dev/null 2>&1; then : 16607 v6type=$i; v6lib=inet6; 16608 v6libdir=/usr/local/v6/lib; 16609 CFLAGS="-DINET6 $CFLAGS" 16610 fi 16611 rm -f conftest* 16612 16613 ;; 16614 inria) 16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16616 /* end confdefs.h. */ 16617 16618 #include <netinet/in.h> 16619 #ifdef IPV6_INRIA_VERSION 16620 yes 16621 #endif 16622 _ACEOF 16623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16624 $EGREP "yes" >/dev/null 2>&1; then : 16625 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 16626 fi 16627 rm -f conftest* 16628 16629 ;; 16630 zeta) 16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16632 /* end confdefs.h. */ 16633 16634 #include <sys/param.h> 16635 #ifdef _ZETA_MINAMI_INET6 16636 yes 16637 #endif 16638 _ACEOF 16639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16640 $EGREP "yes" >/dev/null 2>&1; then : 16641 v6type=$i; v6lib=inet6; 16642 v6libdir=/usr/local/v6/lib; 16643 CFLAGS="-DINET6 $CFLAGS" 16644 fi 16645 rm -f conftest* 16646 16647 ;; 16648 linux) 16649 if test -d /usr/inet6; then 16650 v6type=$i 16651 v6lib=inet6 16652 v6libdir=/usr/inet6 16653 CFLAGS="-DINET6 $CFLAGS" 16654 fi 16655 ;; 16656 esac 16657 if test "$v6type" != "unknown"; then 16658 break 16659 fi 16660 done 16661 16662 if test "$v6lib" != "none"; then 16663 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 16664 if test -d $dir -a -f $dir/lib$v6lib.a; then 16665 LIBS="-L$dir -l$v6lib $LIBS" 16666 break 16667 fi 16668 done 16669 fi 16670 fi 16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5 16672 $as_echo "$rk_cv_v6type" >&6; } 16673 16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 16675 $as_echo_n "checking for IPv6... " >&6; } 16676 if test "${rk_cv_lib_ipv6+set}" = set; then : 16677 $as_echo_n "(cached) " >&6 16678 else 16679 16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16681 /* end confdefs.h. */ 16682 16683 #ifdef HAVE_SYS_TYPES_H 16684 #include <sys/types.h> 16685 #endif 16686 #ifdef HAVE_SYS_SOCKET_H 16687 #include <sys/socket.h> 16688 #endif 16689 #ifdef HAVE_NETINET_IN_H 16690 #include <netinet/in.h> 16691 #endif 16692 #ifdef HAVE_NETINET_IN6_H 16693 #include <netinet/in6.h> 16694 #endif 16695 16696 int 16697 main () 16698 { 16699 16700 struct sockaddr_in6 sin6; 16701 int s; 16702 16703 s = socket(AF_INET6, SOCK_DGRAM, 0); 16704 16705 sin6.sin6_family = AF_INET6; 16706 sin6.sin6_port = htons(17); 16707 sin6.sin6_addr = in6addr_any; 16708 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 16709 16710 ; 16711 return 0; 16712 } 16713 _ACEOF 16714 if ac_fn_c_try_link "$LINENO"; then : 16715 ac_cv_lib_ipv6=yes 16716 else 16717 ac_cv_lib_ipv6=no 16718 fi 16719 rm -f core conftest.err conftest.$ac_objext \ 16720 conftest$ac_exeext conftest.$ac_ext 16721 fi 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5 16723 $as_echo "$rk_cv_lib_ipv6" >&6; } 16724 fi 16725 16726 if test "$ac_cv_lib_ipv6" = yes; then 16727 16728 $as_echo "#define HAVE_IPV6 1" >>confdefs.h 16729 16730 else 16731 CFLAGS="${save_CFLAGS}" 16732 fi 16733 16734 ## test for AIX missing in6addr_loopback 16735 if test "$ac_cv_lib_ipv6" = yes; then 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 16737 $as_echo_n "checking for in6addr_loopback... " >&6; } 16738 if test "${rk_cv_var_in6addr_loopback+set}" = set; then : 16739 $as_echo_n "(cached) " >&6 16740 else 16741 16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16743 /* end confdefs.h. */ 16744 16745 #ifdef HAVE_SYS_TYPES_H 16746 #include <sys/types.h> 16747 #endif 16748 #ifdef HAVE_SYS_SOCKET_H 16749 #include <sys/socket.h> 16750 #endif 16751 #ifdef HAVE_NETINET_IN_H 16752 #include <netinet/in.h> 16753 #endif 16754 #ifdef HAVE_NETINET_IN6_H 16755 #include <netinet/in6.h> 16756 #endif 16757 int 16758 main () 16759 { 16760 16761 struct sockaddr_in6 sin6; 16762 sin6.sin6_addr = in6addr_loopback; 16763 16764 ; 16765 return 0; 16766 } 16767 _ACEOF 16768 if ac_fn_c_try_link "$LINENO"; then : 16769 ac_cv_var_in6addr_loopback=yes 16770 else 16771 ac_cv_var_in6addr_loopback=no 16772 fi 16773 rm -f core conftest.err conftest.$ac_objext \ 16774 conftest$ac_exeext conftest.$ac_ext 16775 fi 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5 16777 $as_echo "$rk_cv_var_in6addr_loopback" >&6; } 16778 if test "$ac_cv_var_in6addr_loopback" = yes; then 16779 16780 $as_echo "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h 16781 16782 fi 16783 fi 16784 16785 16786 16787 16788 16789 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5 16791 $as_echo_n "checking for gethostbyname2... " >&6; } 16792 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then : 16793 $as_echo_n "(cached) " >&6 16794 else 16795 16796 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 16797 ac_save_LIBS="$LIBS" 16798 for ac_lib in "" inet6 ip6; do 16799 case "$ac_lib" in 16800 "") ;; 16801 yes) ac_lib="" ;; 16802 no) continue ;; 16803 -l*) ;; 16804 *) ac_lib="-l$ac_lib" ;; 16805 esac 16806 LIBS=" $ac_lib $ac_save_LIBS" 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808 /* end confdefs.h. */ 16809 16810 int 16811 main () 16812 { 16813 gethostbyname2() 16814 ; 16815 return 0; 16816 } 16817 _ACEOF 16818 if ac_fn_c_try_link "$LINENO"; then : 16819 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 16820 fi 16821 rm -f core conftest.err conftest.$ac_objext \ 16822 conftest$ac_exeext conftest.$ac_ext 16823 done 16824 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 16825 LIBS="$ac_save_LIBS" 16826 fi 16827 16828 fi 16829 16830 16831 eval "ac_res=\$ac_cv_funclib_gethostbyname2" 16832 16833 if false; then 16834 for ac_func in gethostbyname2 16835 do : 16836 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2" 16837 if test "x$ac_cv_func_gethostbyname2" = x""yes; then : 16838 cat >>confdefs.h <<_ACEOF 16839 #define HAVE_GETHOSTBYNAME2 1 16840 _ACEOF 16841 16842 fi 16843 done 16844 16845 fi 16846 # gethostbyname2 16847 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16848 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16849 eval "LIB_gethostbyname2=$ac_res" 16850 16851 case "$ac_res" in 16852 yes) 16853 eval "ac_cv_func_gethostbyname2=yes" 16854 eval "LIB_gethostbyname2=" 16855 cat >>confdefs.h <<_ACEOF 16856 #define $ac_tr_func 1 16857 _ACEOF 16858 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16860 $as_echo "yes" >&6; } 16861 ;; 16862 no) 16863 eval "ac_cv_func_gethostbyname2=no" 16864 eval "LIB_gethostbyname2=" 16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16866 $as_echo "no" >&6; } 16867 ;; 16868 *) 16869 eval "ac_cv_func_gethostbyname2=yes" 16870 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16871 cat >>confdefs.h <<_ACEOF 16872 #define $ac_tr_func 1 16873 _ACEOF 16874 16875 cat >>confdefs.h <<_ACEOF 16876 #define $ac_tr_lib 1 16877 _ACEOF 16878 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 16880 $as_echo "yes, in $ac_res" >&6; } 16881 ;; 16882 esac 16883 16884 16885 if test -n "$LIB_gethostbyname2"; then 16886 LIBS="$LIB_gethostbyname2 $LIBS" 16887 fi 16888 16889 16890 16891 16892 for ac_header in arpa/nameser.h dns.h 16893 do : 16894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16895 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16896 eval as_val=\$$as_ac_Header 16897 if test "x$as_val" = x""yes; then : 16898 cat >>confdefs.h <<_ACEOF 16899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16900 _ACEOF 16901 16902 fi 16903 16904 done 16905 16906 16907 for ac_header in resolv.h 16908 do : 16909 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default 16910 #ifdef HAVE_SYS_TYPES_H 16911 #include <sys/types.h> 16912 #endif 16913 #ifdef HAVE_NETINET_IN_H 16914 #include <netinet/in.h> 16915 #endif 16916 #ifdef HAVE_ARPA_NAMESER_H 16917 #include <arpa/nameser.h> 16918 #endif 16919 16920 " 16921 if test "x$ac_cv_header_resolv_h" = x""yes; then : 16922 cat >>confdefs.h <<_ACEOF 16923 #define HAVE_RESOLV_H 1 16924 _ACEOF 16925 16926 fi 16927 16928 done 16929 16930 16931 16932 16933 16934 16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5 16936 $as_echo_n "checking for res_search... " >&6; } 16937 if test "${ac_cv_funclib_res_search+set}" = set; then : 16938 $as_echo_n "(cached) " >&6 16939 else 16940 16941 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 16942 ac_save_LIBS="$LIBS" 16943 for ac_lib in "" resolv; do 16944 case "$ac_lib" in 16945 "") ;; 16946 yes) ac_lib="" ;; 16947 no) continue ;; 16948 -l*) ;; 16949 *) ac_lib="-l$ac_lib" ;; 16950 esac 16951 LIBS=" $ac_lib $ac_save_LIBS" 16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953 /* end confdefs.h. */ 16954 16955 #include <stdio.h> 16956 #ifdef HAVE_SYS_TYPES_H 16957 #include <sys/types.h> 16958 #endif 16959 #ifdef HAVE_NETINET_IN_H 16960 #include <netinet/in.h> 16961 #endif 16962 #ifdef HAVE_ARPA_NAMESER_H 16963 #include <arpa/nameser.h> 16964 #endif 16965 #ifdef HAVE_RESOLV_H 16966 #include <resolv.h> 16967 #endif 16968 16969 int 16970 main () 16971 { 16972 res_search(0,0,0,0,0) 16973 ; 16974 return 0; 16975 } 16976 _ACEOF 16977 if ac_fn_c_try_link "$LINENO"; then : 16978 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 16979 fi 16980 rm -f core conftest.err conftest.$ac_objext \ 16981 conftest$ac_exeext conftest.$ac_ext 16982 done 16983 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 16984 LIBS="$ac_save_LIBS" 16985 fi 16986 16987 fi 16988 16989 16990 eval "ac_res=\$ac_cv_funclib_res_search" 16991 16992 if false; then 16993 for ac_func in res_search 16994 do : 16995 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 16996 if test "x$ac_cv_func_res_search" = x""yes; then : 16997 cat >>confdefs.h <<_ACEOF 16998 #define HAVE_RES_SEARCH 1 16999 _ACEOF 17000 17001 fi 17002 done 17003 17004 fi 17005 # res_search 17006 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17007 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17008 eval "LIB_res_search=$ac_res" 17009 17010 case "$ac_res" in 17011 yes) 17012 eval "ac_cv_func_res_search=yes" 17013 eval "LIB_res_search=" 17014 cat >>confdefs.h <<_ACEOF 17015 #define $ac_tr_func 1 17016 _ACEOF 17017 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17019 $as_echo "yes" >&6; } 17020 ;; 17021 no) 17022 eval "ac_cv_func_res_search=no" 17023 eval "LIB_res_search=" 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17025 $as_echo "no" >&6; } 17026 ;; 17027 *) 17028 eval "ac_cv_func_res_search=yes" 17029 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17030 cat >>confdefs.h <<_ACEOF 17031 #define $ac_tr_func 1 17032 _ACEOF 17033 17034 cat >>confdefs.h <<_ACEOF 17035 #define $ac_tr_lib 1 17036 _ACEOF 17037 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17039 $as_echo "yes, in $ac_res" >&6; } 17040 ;; 17041 esac 17042 17043 17044 if test -n "$LIB_res_search"; then 17045 LIBS="$LIB_res_search $LIBS" 17046 fi 17047 17048 17049 17050 17051 17052 17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5 17054 $as_echo_n "checking for res_nsearch... " >&6; } 17055 if test "${ac_cv_funclib_res_nsearch+set}" = set; then : 17056 $as_echo_n "(cached) " >&6 17057 else 17058 17059 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 17060 ac_save_LIBS="$LIBS" 17061 for ac_lib in "" resolv; do 17062 case "$ac_lib" in 17063 "") ;; 17064 yes) ac_lib="" ;; 17065 no) continue ;; 17066 -l*) ;; 17067 *) ac_lib="-l$ac_lib" ;; 17068 esac 17069 LIBS=" $ac_lib $ac_save_LIBS" 17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17071 /* end confdefs.h. */ 17072 17073 #include <stdio.h> 17074 #ifdef HAVE_SYS_TYPES_H 17075 #include <sys/types.h> 17076 #endif 17077 #ifdef HAVE_NETINET_IN_H 17078 #include <netinet/in.h> 17079 #endif 17080 #ifdef HAVE_ARPA_NAMESER_H 17081 #include <arpa/nameser.h> 17082 #endif 17083 #ifdef HAVE_RESOLV_H 17084 #include <resolv.h> 17085 #endif 17086 17087 int 17088 main () 17089 { 17090 res_nsearch(0,0,0,0,0,0) 17091 ; 17092 return 0; 17093 } 17094 _ACEOF 17095 if ac_fn_c_try_link "$LINENO"; then : 17096 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 17097 fi 17098 rm -f core conftest.err conftest.$ac_objext \ 17099 conftest$ac_exeext conftest.$ac_ext 17100 done 17101 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 17102 LIBS="$ac_save_LIBS" 17103 fi 17104 17105 fi 17106 17107 17108 eval "ac_res=\$ac_cv_funclib_res_nsearch" 17109 17110 if false; then 17111 for ac_func in res_nsearch 17112 do : 17113 ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" 17114 if test "x$ac_cv_func_res_nsearch" = x""yes; then : 17115 cat >>confdefs.h <<_ACEOF 17116 #define HAVE_RES_NSEARCH 1 17117 _ACEOF 17118 17119 fi 17120 done 17121 17122 fi 17123 # res_nsearch 17124 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17125 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17126 eval "LIB_res_nsearch=$ac_res" 17127 17128 case "$ac_res" in 17129 yes) 17130 eval "ac_cv_func_res_nsearch=yes" 17131 eval "LIB_res_nsearch=" 17132 cat >>confdefs.h <<_ACEOF 17133 #define $ac_tr_func 1 17134 _ACEOF 17135 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17137 $as_echo "yes" >&6; } 17138 ;; 17139 no) 17140 eval "ac_cv_func_res_nsearch=no" 17141 eval "LIB_res_nsearch=" 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17143 $as_echo "no" >&6; } 17144 ;; 17145 *) 17146 eval "ac_cv_func_res_nsearch=yes" 17147 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17148 cat >>confdefs.h <<_ACEOF 17149 #define $ac_tr_func 1 17150 _ACEOF 17151 17152 cat >>confdefs.h <<_ACEOF 17153 #define $ac_tr_lib 1 17154 _ACEOF 17155 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17157 $as_echo "yes, in $ac_res" >&6; } 17158 ;; 17159 esac 17160 17161 17162 if test -n "$LIB_res_nsearch"; then 17163 LIBS="$LIB_res_nsearch $LIBS" 17164 fi 17165 17166 17167 17168 17169 17170 17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5 17172 $as_echo_n "checking for res_ndestroy... " >&6; } 17173 if test "${ac_cv_funclib_res_ndestroy+set}" = set; then : 17174 $as_echo_n "(cached) " >&6 17175 else 17176 17177 if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then 17178 ac_save_LIBS="$LIBS" 17179 for ac_lib in "" resolv; do 17180 case "$ac_lib" in 17181 "") ;; 17182 yes) ac_lib="" ;; 17183 no) continue ;; 17184 -l*) ;; 17185 *) ac_lib="-l$ac_lib" ;; 17186 esac 17187 LIBS=" $ac_lib $ac_save_LIBS" 17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17189 /* end confdefs.h. */ 17190 17191 #include <stdio.h> 17192 #ifdef HAVE_SYS_TYPES_H 17193 #include <sys/types.h> 17194 #endif 17195 #ifdef HAVE_NETINET_IN_H 17196 #include <netinet/in.h> 17197 #endif 17198 #ifdef HAVE_ARPA_NAMESER_H 17199 #include <arpa/nameser.h> 17200 #endif 17201 #ifdef HAVE_RESOLV_H 17202 #include <resolv.h> 17203 #endif 17204 17205 int 17206 main () 17207 { 17208 res_ndestroy(0) 17209 ; 17210 return 0; 17211 } 17212 _ACEOF 17213 if ac_fn_c_try_link "$LINENO"; then : 17214 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break 17215 fi 17216 rm -f core conftest.err conftest.$ac_objext \ 17217 conftest$ac_exeext conftest.$ac_ext 17218 done 17219 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}" 17220 LIBS="$ac_save_LIBS" 17221 fi 17222 17223 fi 17224 17225 17226 eval "ac_res=\$ac_cv_funclib_res_ndestroy" 17227 17228 if false; then 17229 for ac_func in res_ndestroy 17230 do : 17231 ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" 17232 if test "x$ac_cv_func_res_ndestroy" = x""yes; then : 17233 cat >>confdefs.h <<_ACEOF 17234 #define HAVE_RES_NDESTROY 1 17235 _ACEOF 17236 17237 fi 17238 done 17239 17240 fi 17241 # res_ndestroy 17242 eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17243 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17244 eval "LIB_res_ndestroy=$ac_res" 17245 17246 case "$ac_res" in 17247 yes) 17248 eval "ac_cv_func_res_ndestroy=yes" 17249 eval "LIB_res_ndestroy=" 17250 cat >>confdefs.h <<_ACEOF 17251 #define $ac_tr_func 1 17252 _ACEOF 17253 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17255 $as_echo "yes" >&6; } 17256 ;; 17257 no) 17258 eval "ac_cv_func_res_ndestroy=no" 17259 eval "LIB_res_ndestroy=" 17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17261 $as_echo "no" >&6; } 17262 ;; 17263 *) 17264 eval "ac_cv_func_res_ndestroy=yes" 17265 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17266 cat >>confdefs.h <<_ACEOF 17267 #define $ac_tr_func 1 17268 _ACEOF 17269 17270 cat >>confdefs.h <<_ACEOF 17271 #define $ac_tr_lib 1 17272 _ACEOF 17273 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17275 $as_echo "yes, in $ac_res" >&6; } 17276 ;; 17277 esac 17278 17279 17280 if test -n "$LIB_res_ndestroy"; then 17281 LIBS="$LIB_res_ndestroy $LIBS" 17282 fi 17283 17284 17285 17286 17287 17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5 17289 $as_echo_n "checking for dns_search... " >&6; } 17290 if test "${ac_cv_funclib_dns_search+set}" = set; then : 17291 $as_echo_n "(cached) " >&6 17292 else 17293 17294 if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then 17295 ac_save_LIBS="$LIBS" 17296 for ac_lib in "" ; do 17297 case "$ac_lib" in 17298 "") ;; 17299 yes) ac_lib="" ;; 17300 no) continue ;; 17301 -l*) ;; 17302 *) ac_lib="-l$ac_lib" ;; 17303 esac 17304 LIBS=" $ac_lib $ac_save_LIBS" 17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17306 /* end confdefs.h. */ 17307 17308 #ifdef HAVE_DNS_H 17309 #include <dns.h> 17310 #endif 17311 17312 int 17313 main () 17314 { 17315 dns_search(0,0,0,0,0,0,0,0) 17316 ; 17317 return 0; 17318 } 17319 _ACEOF 17320 if ac_fn_c_try_link "$LINENO"; then : 17321 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break 17322 fi 17323 rm -f core conftest.err conftest.$ac_objext \ 17324 conftest$ac_exeext conftest.$ac_ext 17325 done 17326 eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}" 17327 LIBS="$ac_save_LIBS" 17328 fi 17329 17330 fi 17331 17332 17333 eval "ac_res=\$ac_cv_funclib_dns_search" 17334 17335 if false; then 17336 for ac_func in dns_search 17337 do : 17338 ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" 17339 if test "x$ac_cv_func_dns_search" = x""yes; then : 17340 cat >>confdefs.h <<_ACEOF 17341 #define HAVE_DNS_SEARCH 1 17342 _ACEOF 17343 17344 fi 17345 done 17346 17347 fi 17348 # dns_search 17349 eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17350 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17351 eval "LIB_dns_search=$ac_res" 17352 17353 case "$ac_res" in 17354 yes) 17355 eval "ac_cv_func_dns_search=yes" 17356 eval "LIB_dns_search=" 17357 cat >>confdefs.h <<_ACEOF 17358 #define $ac_tr_func 1 17359 _ACEOF 17360 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17362 $as_echo "yes" >&6; } 17363 ;; 17364 no) 17365 eval "ac_cv_func_dns_search=no" 17366 eval "LIB_dns_search=" 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17368 $as_echo "no" >&6; } 17369 ;; 17370 *) 17371 eval "ac_cv_func_dns_search=yes" 17372 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17373 cat >>confdefs.h <<_ACEOF 17374 #define $ac_tr_func 1 17375 _ACEOF 17376 17377 cat >>confdefs.h <<_ACEOF 17378 #define $ac_tr_lib 1 17379 _ACEOF 17380 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17382 $as_echo "yes, in $ac_res" >&6; } 17383 ;; 17384 esac 17385 17386 17387 17388 17389 17390 17391 17392 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5 17394 $as_echo_n "checking for dn_expand... " >&6; } 17395 if test "${ac_cv_funclib_dn_expand+set}" = set; then : 17396 $as_echo_n "(cached) " >&6 17397 else 17398 17399 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 17400 ac_save_LIBS="$LIBS" 17401 for ac_lib in "" resolv; do 17402 case "$ac_lib" in 17403 "") ;; 17404 yes) ac_lib="" ;; 17405 no) continue ;; 17406 -l*) ;; 17407 *) ac_lib="-l$ac_lib" ;; 17408 esac 17409 LIBS=" $ac_lib $ac_save_LIBS" 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411 /* end confdefs.h. */ 17412 17413 #include <stdio.h> 17414 #ifdef HAVE_SYS_TYPES_H 17415 #include <sys/types.h> 17416 #endif 17417 #ifdef HAVE_NETINET_IN_H 17418 #include <netinet/in.h> 17419 #endif 17420 #ifdef HAVE_ARPA_NAMESER_H 17421 #include <arpa/nameser.h> 17422 #endif 17423 #ifdef HAVE_RESOLV_H 17424 #include <resolv.h> 17425 #endif 17426 17427 int 17428 main () 17429 { 17430 dn_expand(0,0,0,0,0) 17431 ; 17432 return 0; 17433 } 17434 _ACEOF 17435 if ac_fn_c_try_link "$LINENO"; then : 17436 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 17437 fi 17438 rm -f core conftest.err conftest.$ac_objext \ 17439 conftest$ac_exeext conftest.$ac_ext 17440 done 17441 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 17442 LIBS="$ac_save_LIBS" 17443 fi 17444 17445 fi 17446 17447 17448 eval "ac_res=\$ac_cv_funclib_dn_expand" 17449 17450 if false; then 17451 for ac_func in dn_expand 17452 do : 17453 ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" 17454 if test "x$ac_cv_func_dn_expand" = x""yes; then : 17455 cat >>confdefs.h <<_ACEOF 17456 #define HAVE_DN_EXPAND 1 17457 _ACEOF 17458 17459 fi 17460 done 17461 17462 fi 17463 # dn_expand 17464 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17465 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17466 eval "LIB_dn_expand=$ac_res" 17467 17468 case "$ac_res" in 17469 yes) 17470 eval "ac_cv_func_dn_expand=yes" 17471 eval "LIB_dn_expand=" 17472 cat >>confdefs.h <<_ACEOF 17473 #define $ac_tr_func 1 17474 _ACEOF 17475 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17477 $as_echo "yes" >&6; } 17478 ;; 17479 no) 17480 eval "ac_cv_func_dn_expand=no" 17481 eval "LIB_dn_expand=" 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17483 $as_echo "no" >&6; } 17484 ;; 17485 *) 17486 eval "ac_cv_func_dn_expand=yes" 17487 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17488 cat >>confdefs.h <<_ACEOF 17489 #define $ac_tr_func 1 17490 _ACEOF 17491 17492 cat >>confdefs.h <<_ACEOF 17493 #define $ac_tr_lib 1 17494 _ACEOF 17495 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 17497 $as_echo "yes, in $ac_res" >&6; } 17498 ;; 17499 esac 17500 17501 17502 if test -n "$LIB_dn_expand"; then 17503 LIBS="$LIB_dn_expand $LIBS" 17504 fi 17505 17506 17507 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _res" >&5 17509 $as_echo_n "checking for _res... " >&6; } 17510 if test "${ac_cv_var__res+set}" = set; then : 17511 $as_echo_n "(cached) " >&6 17512 else 17513 17514 17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17516 /* end confdefs.h. */ 17517 #include <stdio.h> 17518 #ifdef HAVE_SYS_TYPES_H 17519 #include <sys/types.h> 17520 #endif 17521 #ifdef HAVE_NETINET_IN_H 17522 #include <netinet/in.h> 17523 #endif 17524 #ifdef HAVE_ARPA_NAMESER_H 17525 #include <arpa/nameser.h> 17526 #endif 17527 #ifdef HAVE_RESOLV_H 17528 #include <resolv.h> 17529 #endif 17530 void * foo(void) { return &_res; } 17531 int 17532 main () 17533 { 17534 foo() 17535 ; 17536 return 0; 17537 } 17538 _ACEOF 17539 if ac_fn_c_try_link "$LINENO"; then : 17540 ac_cv_var__res=yes 17541 else 17542 ac_cv_var__res=no 17543 fi 17544 rm -f core conftest.err conftest.$ac_objext \ 17545 conftest$ac_exeext conftest.$ac_ext 17546 if test "$ac_cv_var__res" != yes ; then 17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17548 /* end confdefs.h. */ 17549 #include <stdio.h> 17550 #ifdef HAVE_SYS_TYPES_H 17551 #include <sys/types.h> 17552 #endif 17553 #ifdef HAVE_NETINET_IN_H 17554 #include <netinet/in.h> 17555 #endif 17556 #ifdef HAVE_ARPA_NAMESER_H 17557 #include <arpa/nameser.h> 17558 #endif 17559 #ifdef HAVE_RESOLV_H 17560 #include <resolv.h> 17561 #endif 17562 extern int _res; 17563 int foo(void) { return _res; } 17564 int 17565 main () 17566 { 17567 foo() 17568 ; 17569 return 0; 17570 } 17571 _ACEOF 17572 if ac_fn_c_try_link "$LINENO"; then : 17573 ac_cv_var__res=yes 17574 else 17575 ac_cv_var__res=no 17576 fi 17577 rm -f core conftest.err conftest.$ac_objext \ 17578 conftest$ac_exeext conftest.$ac_ext 17579 fi 17580 17581 fi 17582 17583 ac_foo=`eval echo \\$ac_cv_var__res` 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 17585 $as_echo "$ac_foo" >&6; } 17586 if test "$ac_foo" = yes; then 17587 17588 cat >>confdefs.h <<_ACEOF 17589 #define HAVE__RES 1 17590 _ACEOF 17591 17592 17593 # ac_fn_c_check_decl LINENO SYMBOL VAR 17594 # ------------------------------------ 17595 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 17596 ac_fn_c_check_decl () 17597 { 17598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 17600 $as_echo_n "checking whether $2 is declared... " >&6; } 17601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 17602 $as_echo_n "(cached) " >&6 17603 else 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605 /* end confdefs.h. */ 17606 $4 17607 int 17608 main () 17609 { 17610 #ifndef $2 17611 (void) $2; 17612 #endif 17613 17614 ; 17615 return 0; 17616 } 17617 _ACEOF 17618 if ac_fn_c_try_compile "$LINENO"; then : 17619 eval "$3=yes" 17620 else 17621 eval "$3=no" 17622 fi 17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17624 fi 17625 eval ac_res=\$$3 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17627 $as_echo "$ac_res" >&6; } 17628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 17629 17630 } # ac_fn_c_check_decl 17631 ac_fn_c_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h> 17632 #ifdef HAVE_SYS_TYPES_H 17633 #include <sys/types.h> 17634 #endif 17635 #ifdef HAVE_NETINET_IN_H 17636 #include <netinet/in.h> 17637 #endif 17638 #ifdef HAVE_ARPA_NAMESER_H 17639 #include <arpa/nameser.h> 17640 #endif 17641 #ifdef HAVE_RESOLV_H 17642 #include <resolv.h> 17643 #endif 17644 " 17645 if test "x$ac_cv_have_decl__res" = x""yes; then : 17646 ac_have_decl=1 17647 else 17648 ac_have_decl=0 17649 fi 17650 17651 cat >>confdefs.h <<_ACEOF 17652 #define HAVE_DECL__RES $ac_have_decl 17653 _ACEOF 17654 17655 fi 17656 17657 17658 17659 17660 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 17662 $as_echo_n "checking for working snprintf... " >&6; } 17663 if test "${ac_cv_func_snprintf_working+set}" = set; then : 17664 $as_echo_n "(cached) " >&6 17665 else 17666 ac_cv_func_snprintf_working=yes 17667 if test "$cross_compiling" = yes; then : 17668 : 17669 else 17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671 /* end confdefs.h. */ 17672 17673 #include <stdio.h> 17674 #include <string.h> 17675 int main(int argc, char **argv) 17676 { 17677 char foo[3]; 17678 snprintf(foo, 2, "12"); 17679 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2; 17680 } 17681 _ACEOF 17682 if ac_fn_c_try_run "$LINENO"; then : 17683 : 17684 else 17685 ac_cv_func_snprintf_working=no 17686 fi 17687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17688 conftest.$ac_objext conftest.beam conftest.$ac_ext 17689 fi 17690 17691 fi 17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5 17693 $as_echo "$ac_cv_func_snprintf_working" >&6; } 17694 17695 if test "$ac_cv_func_snprintf_working" = yes; then 17696 17697 cat >>confdefs.h <<_ACEOF 17698 #define HAVE_SNPRINTF 1 17699 _ACEOF 17700 17701 fi 17702 if test "$ac_cv_func_snprintf_working" = yes; then 17703 17704 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5 17706 $as_echo_n "checking if snprintf needs a prototype... " >&6; } 17707 if test "${ac_cv_func_snprintf_noproto+set}" = set; then : 17708 $as_echo_n "(cached) " >&6 17709 else 17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711 /* end confdefs.h. */ 17712 #include <stdio.h> 17713 struct foo { int foo; } xx; 17714 extern int snprintf (struct foo*); 17715 int 17716 main () 17717 { 17718 snprintf(&xx) 17719 ; 17720 return 0; 17721 } 17722 _ACEOF 17723 if ac_fn_c_try_compile "$LINENO"; then : 17724 eval "ac_cv_func_snprintf_noproto=yes" 17725 else 17726 eval "ac_cv_func_snprintf_noproto=no" 17727 fi 17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17729 fi 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5 17731 $as_echo "$ac_cv_func_snprintf_noproto" >&6; } 17732 if test "$ac_cv_func_snprintf_noproto" = yes; then 17733 17734 $as_echo "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h 17735 17736 fi 17737 fi 17738 17739 fi 17740 17741 17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5 17743 $as_echo_n "checking for working vsnprintf... " >&6; } 17744 if test "${ac_cv_func_vsnprintf_working+set}" = set; then : 17745 $as_echo_n "(cached) " >&6 17746 else 17747 ac_cv_func_vsnprintf_working=yes 17748 if test "$cross_compiling" = yes; then : 17749 : 17750 else 17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17752 /* end confdefs.h. */ 17753 17754 #include <stdio.h> 17755 #include <string.h> 17756 #include <stdarg.h> 17757 17758 int foo(int num, ...) 17759 { 17760 char bar[3]; 17761 va_list arg; 17762 va_start(arg, num); 17763 vsnprintf(bar, 2, "%s", arg); 17764 va_end(arg); 17765 return strcmp(bar, "1"); 17766 } 17767 17768 int bar(int num, int len, ...) 17769 { 17770 int r; 17771 va_list arg; 17772 va_start(arg, len); 17773 r = vsnprintf(NULL, 0, "%s", arg); 17774 va_end(arg); 17775 return r != len; 17776 } 17777 17778 int main(int argc, char **argv) 17779 { 17780 return foo(0, "12") || bar(0, 2, "12"); 17781 } 17782 _ACEOF 17783 if ac_fn_c_try_run "$LINENO"; then : 17784 : 17785 else 17786 ac_cv_func_vsnprintf_working=no 17787 fi 17788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17789 conftest.$ac_objext conftest.beam conftest.$ac_ext 17790 fi 17791 17792 fi 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5 17794 $as_echo "$ac_cv_func_vsnprintf_working" >&6; } 17795 17796 if test "$ac_cv_func_vsnprintf_working" = yes; then 17797 17798 cat >>confdefs.h <<_ACEOF 17799 #define HAVE_VSNPRINTF 1 17800 _ACEOF 17801 17802 fi 17803 if test "$ac_cv_func_vsnprintf_working" = yes; then 17804 17805 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5 17807 $as_echo_n "checking if vsnprintf needs a prototype... " >&6; } 17808 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then : 17809 $as_echo_n "(cached) " >&6 17810 else 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812 /* end confdefs.h. */ 17813 #include <stdio.h> 17814 struct foo { int foo; } xx; 17815 extern int vsnprintf (struct foo*); 17816 int 17817 main () 17818 { 17819 vsnprintf(&xx) 17820 ; 17821 return 0; 17822 } 17823 _ACEOF 17824 if ac_fn_c_try_compile "$LINENO"; then : 17825 eval "ac_cv_func_vsnprintf_noproto=yes" 17826 else 17827 eval "ac_cv_func_vsnprintf_noproto=no" 17828 fi 17829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17830 fi 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5 17832 $as_echo "$ac_cv_func_vsnprintf_noproto" >&6; } 17833 if test "$ac_cv_func_vsnprintf_noproto" = yes; then 17834 17835 $as_echo "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h 17836 17837 fi 17838 fi 17839 17840 fi 17841 17842 17843 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5 17845 $as_echo_n "checking for working glob... " >&6; } 17846 if test "${ac_cv_func_glob_working+set}" = set; then : 17847 $as_echo_n "(cached) " >&6 17848 else 17849 ac_cv_func_glob_working=yes 17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17851 /* end confdefs.h. */ 17852 17853 #include <stdio.h> 17854 #include <glob.h> 17855 int 17856 main () 17857 { 17858 17859 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 17860 #ifdef GLOB_MAXPATH 17861 GLOB_MAXPATH 17862 #else 17863 GLOB_LIMIT 17864 #endif 17865 , 17866 NULL, NULL); 17867 17868 ; 17869 return 0; 17870 } 17871 _ACEOF 17872 if ac_fn_c_try_link "$LINENO"; then : 17873 : 17874 else 17875 ac_cv_func_glob_working=no 17876 fi 17877 rm -f core conftest.err conftest.$ac_objext \ 17878 conftest$ac_exeext conftest.$ac_ext 17879 fi 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5 17881 $as_echo "$ac_cv_func_glob_working" >&6; } 17882 17883 if test "$ac_cv_func_glob_working" = yes; then 17884 17885 $as_echo "#define HAVE_GLOB 1" >>confdefs.h 17886 17887 fi 17888 if test "$ac_cv_func_glob_working" = yes; then 17889 17890 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5 17892 $as_echo_n "checking if glob needs a prototype... " >&6; } 17893 if test "${ac_cv_func_glob_noproto+set}" = set; then : 17894 $as_echo_n "(cached) " >&6 17895 else 17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17897 /* end confdefs.h. */ 17898 #include <stdio.h> 17899 #include <glob.h> 17900 struct foo { int foo; } xx; 17901 extern int glob (struct foo*); 17902 int 17903 main () 17904 { 17905 glob(&xx) 17906 ; 17907 return 0; 17908 } 17909 _ACEOF 17910 if ac_fn_c_try_compile "$LINENO"; then : 17911 eval "ac_cv_func_glob_noproto=yes" 17912 else 17913 eval "ac_cv_func_glob_noproto=no" 17914 fi 17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17916 fi 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5 17918 $as_echo "$ac_cv_func_glob_noproto" >&6; } 17919 if test "$ac_cv_func_glob_noproto" = yes; then 17920 17921 $as_echo "#define NEED_GLOB_PROTO 1" >>confdefs.h 17922 17923 fi 17924 fi 17925 17926 fi 17927 17928 if test "$ac_cv_func_glob_working" != yes; then 17929 case " $LIBOBJS " in 17930 *" glob.$ac_objext "* ) ;; 17931 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 17932 ;; 17933 esac 17934 17935 fi 17936 if test "$ac_cv_func_glob_working" = yes; then 17937 have_glob_h_TRUE= 17938 have_glob_h_FALSE='#' 17939 else 17940 have_glob_h_TRUE='#' 17941 have_glob_h_FALSE= 17942 fi 17943 17944 17945 17946 for ac_func in \ 17947 asnprintf \ 17948 asprintf \ 17949 atexit \ 17950 cgetent \ 17951 getconfattr \ 17952 getprogname \ 17953 getrlimit \ 17954 getspnam \ 17955 issetugid \ 17956 on_exit \ 17957 poll \ 17958 random \ 17959 setprogname \ 17960 strsvis \ 17961 strsvisx \ 17962 strunvis \ 17963 strvis \ 17964 strvisx \ 17965 svis \ 17966 sysconf \ 17967 sysctl \ 17968 tdelete \ 17969 tfind \ 17970 twalk \ 17971 uname \ 17972 unvis \ 17973 vasnprintf \ 17974 vasprintf \ 17975 vis \ 17976 17977 do : 17978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17980 eval as_val=\$$as_ac_var 17981 if test "x$as_val" = x""yes; then : 17982 cat >>confdefs.h <<_ACEOF 17983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17984 _ACEOF 17985 17986 fi 17987 done 17988 17989 17990 if test "$ac_cv_func_cgetent" = no; then 17991 case " $LIBOBJS " in 17992 *" getcap.$ac_objext "* ) ;; 17993 *) LIBOBJS="$LIBOBJS getcap.$ac_objext" 17994 ;; 17995 esac 17996 17997 fi 17998 if test "$ac_cv_func_cgetent" = yes; then 17999 have_cgetent_TRUE= 18000 have_cgetent_FALSE='#' 18001 else 18002 have_cgetent_TRUE='#' 18003 have_cgetent_FALSE= 18004 fi 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5 18015 $as_echo_n "checking for getsockopt... " >&6; } 18016 if test "${ac_cv_funclib_getsockopt+set}" = set; then : 18017 $as_echo_n "(cached) " >&6 18018 else 18019 18020 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 18021 ac_save_LIBS="$LIBS" 18022 for ac_lib in "" ; do 18023 case "$ac_lib" in 18024 "") ;; 18025 yes) ac_lib="" ;; 18026 no) continue ;; 18027 -l*) ;; 18028 *) ac_lib="-l$ac_lib" ;; 18029 esac 18030 LIBS=" $ac_lib $ac_save_LIBS" 18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18032 /* end confdefs.h. */ 18033 #ifdef HAVE_SYS_TYPES_H 18034 #include <sys/types.h> 18035 #endif 18036 #ifdef HAVE_SYS_SOCKET_H 18037 #include <sys/socket.h> 18038 #endif 18039 int 18040 main () 18041 { 18042 getsockopt(0,0,0,0,0) 18043 ; 18044 return 0; 18045 } 18046 _ACEOF 18047 if ac_fn_c_try_link "$LINENO"; then : 18048 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 18049 fi 18050 rm -f core conftest.err conftest.$ac_objext \ 18051 conftest$ac_exeext conftest.$ac_ext 18052 done 18053 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 18054 LIBS="$ac_save_LIBS" 18055 fi 18056 18057 fi 18058 18059 18060 eval "ac_res=\$ac_cv_funclib_getsockopt" 18061 18062 if false; then 18063 for ac_func in getsockopt 18064 do : 18065 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt" 18066 if test "x$ac_cv_func_getsockopt" = x""yes; then : 18067 cat >>confdefs.h <<_ACEOF 18068 #define HAVE_GETSOCKOPT 1 18069 _ACEOF 18070 18071 fi 18072 done 18073 18074 fi 18075 # getsockopt 18076 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18077 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18078 eval "LIB_getsockopt=$ac_res" 18079 18080 case "$ac_res" in 18081 yes) 18082 eval "ac_cv_func_getsockopt=yes" 18083 eval "LIB_getsockopt=" 18084 cat >>confdefs.h <<_ACEOF 18085 #define $ac_tr_func 1 18086 _ACEOF 18087 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18089 $as_echo "yes" >&6; } 18090 ;; 18091 no) 18092 eval "ac_cv_func_getsockopt=no" 18093 eval "LIB_getsockopt=" 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18095 $as_echo "no" >&6; } 18096 ;; 18097 *) 18098 eval "ac_cv_func_getsockopt=yes" 18099 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18100 cat >>confdefs.h <<_ACEOF 18101 #define $ac_tr_func 1 18102 _ACEOF 18103 18104 cat >>confdefs.h <<_ACEOF 18105 #define $ac_tr_lib 1 18106 _ACEOF 18107 18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18109 $as_echo "yes, in $ac_res" >&6; } 18110 ;; 18111 esac 18112 18113 18114 18115 18116 18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5 18118 $as_echo_n "checking for setsockopt... " >&6; } 18119 if test "${ac_cv_funclib_setsockopt+set}" = set; then : 18120 $as_echo_n "(cached) " >&6 18121 else 18122 18123 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 18124 ac_save_LIBS="$LIBS" 18125 for ac_lib in "" ; do 18126 case "$ac_lib" in 18127 "") ;; 18128 yes) ac_lib="" ;; 18129 no) continue ;; 18130 -l*) ;; 18131 *) ac_lib="-l$ac_lib" ;; 18132 esac 18133 LIBS=" $ac_lib $ac_save_LIBS" 18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18135 /* end confdefs.h. */ 18136 #ifdef HAVE_SYS_TYPES_H 18137 #include <sys/types.h> 18138 #endif 18139 #ifdef HAVE_SYS_SOCKET_H 18140 #include <sys/socket.h> 18141 #endif 18142 int 18143 main () 18144 { 18145 setsockopt(0,0,0,0,0) 18146 ; 18147 return 0; 18148 } 18149 _ACEOF 18150 if ac_fn_c_try_link "$LINENO"; then : 18151 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 18152 fi 18153 rm -f core conftest.err conftest.$ac_objext \ 18154 conftest$ac_exeext conftest.$ac_ext 18155 done 18156 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 18157 LIBS="$ac_save_LIBS" 18158 fi 18159 18160 fi 18161 18162 18163 eval "ac_res=\$ac_cv_funclib_setsockopt" 18164 18165 if false; then 18166 for ac_func in setsockopt 18167 do : 18168 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 18169 if test "x$ac_cv_func_setsockopt" = x""yes; then : 18170 cat >>confdefs.h <<_ACEOF 18171 #define HAVE_SETSOCKOPT 1 18172 _ACEOF 18173 18174 fi 18175 done 18176 18177 fi 18178 # setsockopt 18179 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18180 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18181 eval "LIB_setsockopt=$ac_res" 18182 18183 case "$ac_res" in 18184 yes) 18185 eval "ac_cv_func_setsockopt=yes" 18186 eval "LIB_setsockopt=" 18187 cat >>confdefs.h <<_ACEOF 18188 #define $ac_tr_func 1 18189 _ACEOF 18190 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18192 $as_echo "yes" >&6; } 18193 ;; 18194 no) 18195 eval "ac_cv_func_setsockopt=no" 18196 eval "LIB_setsockopt=" 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18198 $as_echo "no" >&6; } 18199 ;; 18200 *) 18201 eval "ac_cv_func_setsockopt=yes" 18202 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18203 cat >>confdefs.h <<_ACEOF 18204 #define $ac_tr_func 1 18205 _ACEOF 18206 18207 cat >>confdefs.h <<_ACEOF 18208 #define $ac_tr_lib 1 18209 _ACEOF 18210 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18212 $as_echo "yes, in $ac_res" >&6; } 18213 ;; 18214 esac 18215 18216 18217 18218 18219 18220 18221 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 18223 $as_echo_n "checking for hstrerror... " >&6; } 18224 if test "${ac_cv_funclib_hstrerror+set}" = set; then : 18225 $as_echo_n "(cached) " >&6 18226 else 18227 18228 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 18229 ac_save_LIBS="$LIBS" 18230 for ac_lib in "" resolv; do 18231 case "$ac_lib" in 18232 "") ;; 18233 yes) ac_lib="" ;; 18234 no) continue ;; 18235 -l*) ;; 18236 *) ac_lib="-l$ac_lib" ;; 18237 esac 18238 LIBS=" $ac_lib $ac_save_LIBS" 18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18240 /* end confdefs.h. */ 18241 #ifdef HAVE_NETDB_H 18242 #include <netdb.h> 18243 #endif 18244 int 18245 main () 18246 { 18247 hstrerror(17) 18248 ; 18249 return 0; 18250 } 18251 _ACEOF 18252 if ac_fn_c_try_link "$LINENO"; then : 18253 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 18254 fi 18255 rm -f core conftest.err conftest.$ac_objext \ 18256 conftest$ac_exeext conftest.$ac_ext 18257 done 18258 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 18259 LIBS="$ac_save_LIBS" 18260 fi 18261 18262 fi 18263 18264 18265 eval "ac_res=\$ac_cv_funclib_hstrerror" 18266 18267 if false; then 18268 for ac_func in hstrerror 18269 do : 18270 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 18271 if test "x$ac_cv_func_hstrerror" = x""yes; then : 18272 cat >>confdefs.h <<_ACEOF 18273 #define HAVE_HSTRERROR 1 18274 _ACEOF 18275 18276 fi 18277 done 18278 18279 fi 18280 # hstrerror 18281 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18282 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18283 eval "LIB_hstrerror=$ac_res" 18284 18285 case "$ac_res" in 18286 yes) 18287 eval "ac_cv_func_hstrerror=yes" 18288 eval "LIB_hstrerror=" 18289 cat >>confdefs.h <<_ACEOF 18290 #define $ac_tr_func 1 18291 _ACEOF 18292 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18294 $as_echo "yes" >&6; } 18295 ;; 18296 no) 18297 eval "ac_cv_func_hstrerror=no" 18298 eval "LIB_hstrerror=" 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18300 $as_echo "no" >&6; } 18301 ;; 18302 *) 18303 eval "ac_cv_func_hstrerror=yes" 18304 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18305 cat >>confdefs.h <<_ACEOF 18306 #define $ac_tr_func 1 18307 _ACEOF 18308 18309 cat >>confdefs.h <<_ACEOF 18310 #define $ac_tr_lib 1 18311 _ACEOF 18312 18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18314 $as_echo "yes, in $ac_res" >&6; } 18315 ;; 18316 esac 18317 18318 18319 if test -n "$LIB_hstrerror"; then 18320 LIBS="$LIB_hstrerror $LIBS" 18321 fi 18322 18323 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 18324 case " $LIBOBJS " in 18325 *" hstrerror.$ac_objext "* ) ;; 18326 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 18327 ;; 18328 esac 18329 18330 fi 18331 18332 18333 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5 18335 $as_echo_n "checking if hstrerror needs a prototype... " >&6; } 18336 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then : 18337 $as_echo_n "(cached) " >&6 18338 else 18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18340 /* end confdefs.h. */ 18341 18342 #ifdef HAVE_NETDB_H 18343 #include <netdb.h> 18344 #endif 18345 struct foo { int foo; } xx; 18346 extern int hstrerror (struct foo*); 18347 int 18348 main () 18349 { 18350 hstrerror(&xx) 18351 ; 18352 return 0; 18353 } 18354 _ACEOF 18355 if ac_fn_c_try_compile "$LINENO"; then : 18356 eval "ac_cv_func_hstrerror_noproto=yes" 18357 else 18358 eval "ac_cv_func_hstrerror_noproto=no" 18359 fi 18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18361 fi 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5 18363 $as_echo "$ac_cv_func_hstrerror_noproto" >&6; } 18364 if test "$ac_cv_func_hstrerror_noproto" = yes; then 18365 18366 $as_echo "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h 18367 18368 fi 18369 fi 18370 18371 18372 18373 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5 18375 $as_echo_n "checking if asprintf needs a prototype... " >&6; } 18376 if test "${ac_cv_func_asprintf_noproto+set}" = set; then : 18377 $as_echo_n "(cached) " >&6 18378 else 18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18380 /* end confdefs.h. */ 18381 18382 #include <stdio.h> 18383 #include <string.h> 18384 struct foo { int foo; } xx; 18385 extern int asprintf (struct foo*); 18386 int 18387 main () 18388 { 18389 asprintf(&xx) 18390 ; 18391 return 0; 18392 } 18393 _ACEOF 18394 if ac_fn_c_try_compile "$LINENO"; then : 18395 eval "ac_cv_func_asprintf_noproto=yes" 18396 else 18397 eval "ac_cv_func_asprintf_noproto=no" 18398 fi 18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18400 fi 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5 18402 $as_echo "$ac_cv_func_asprintf_noproto" >&6; } 18403 if test "$ac_cv_func_asprintf_noproto" = yes; then 18404 18405 $as_echo "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h 18406 18407 fi 18408 fi 18409 18410 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5 18412 $as_echo_n "checking if vasprintf needs a prototype... " >&6; } 18413 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then : 18414 $as_echo_n "(cached) " >&6 18415 else 18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18417 /* end confdefs.h. */ 18418 18419 #include <stdio.h> 18420 #include <string.h> 18421 struct foo { int foo; } xx; 18422 extern int vasprintf (struct foo*); 18423 int 18424 main () 18425 { 18426 vasprintf(&xx) 18427 ; 18428 return 0; 18429 } 18430 _ACEOF 18431 if ac_fn_c_try_compile "$LINENO"; then : 18432 eval "ac_cv_func_vasprintf_noproto=yes" 18433 else 18434 eval "ac_cv_func_vasprintf_noproto=no" 18435 fi 18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18437 fi 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5 18439 $as_echo "$ac_cv_func_vasprintf_noproto" >&6; } 18440 if test "$ac_cv_func_vasprintf_noproto" = yes; then 18441 18442 $as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h 18443 18444 fi 18445 fi 18446 18447 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5 18449 $as_echo_n "checking if asnprintf needs a prototype... " >&6; } 18450 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then : 18451 $as_echo_n "(cached) " >&6 18452 else 18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18454 /* end confdefs.h. */ 18455 18456 #include <stdio.h> 18457 #include <string.h> 18458 struct foo { int foo; } xx; 18459 extern int asnprintf (struct foo*); 18460 int 18461 main () 18462 { 18463 asnprintf(&xx) 18464 ; 18465 return 0; 18466 } 18467 _ACEOF 18468 if ac_fn_c_try_compile "$LINENO"; then : 18469 eval "ac_cv_func_asnprintf_noproto=yes" 18470 else 18471 eval "ac_cv_func_asnprintf_noproto=no" 18472 fi 18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18474 fi 18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5 18476 $as_echo "$ac_cv_func_asnprintf_noproto" >&6; } 18477 if test "$ac_cv_func_asnprintf_noproto" = yes; then 18478 18479 $as_echo "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h 18480 18481 fi 18482 fi 18483 18484 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5 18486 $as_echo_n "checking if vasnprintf needs a prototype... " >&6; } 18487 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then : 18488 $as_echo_n "(cached) " >&6 18489 else 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491 /* end confdefs.h. */ 18492 18493 #include <stdio.h> 18494 #include <string.h> 18495 struct foo { int foo; } xx; 18496 extern int vasnprintf (struct foo*); 18497 int 18498 main () 18499 { 18500 vasnprintf(&xx) 18501 ; 18502 return 0; 18503 } 18504 _ACEOF 18505 if ac_fn_c_try_compile "$LINENO"; then : 18506 eval "ac_cv_func_vasnprintf_noproto=yes" 18507 else 18508 eval "ac_cv_func_vasnprintf_noproto=no" 18509 fi 18510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18511 fi 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5 18513 $as_echo "$ac_cv_func_vasnprintf_noproto" >&6; } 18514 if test "$ac_cv_func_vasnprintf_noproto" = yes; then 18515 18516 $as_echo "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h 18517 18518 fi 18519 fi 18520 18521 18522 18523 18524 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5 18526 $as_echo_n "checking for bswap16... " >&6; } 18527 if test "${ac_cv_funclib_bswap16+set}" = set; then : 18528 $as_echo_n "(cached) " >&6 18529 else 18530 18531 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 18532 ac_save_LIBS="$LIBS" 18533 for ac_lib in "" ; do 18534 case "$ac_lib" in 18535 "") ;; 18536 yes) ac_lib="" ;; 18537 no) continue ;; 18538 -l*) ;; 18539 *) ac_lib="-l$ac_lib" ;; 18540 esac 18541 LIBS=" $ac_lib $ac_save_LIBS" 18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18543 /* end confdefs.h. */ 18544 #ifdef HAVE_SYS_TYPES_H 18545 #include <sys/types.h> 18546 #endif 18547 #ifdef HAVE_SYS_BSWAP_H 18548 #include <sys/bswap.h> 18549 #endif 18550 int 18551 main () 18552 { 18553 bswap16(0) 18554 ; 18555 return 0; 18556 } 18557 _ACEOF 18558 if ac_fn_c_try_link "$LINENO"; then : 18559 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 18560 fi 18561 rm -f core conftest.err conftest.$ac_objext \ 18562 conftest$ac_exeext conftest.$ac_ext 18563 done 18564 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 18565 LIBS="$ac_save_LIBS" 18566 fi 18567 18568 fi 18569 18570 18571 eval "ac_res=\$ac_cv_funclib_bswap16" 18572 18573 if false; then 18574 for ac_func in bswap16 18575 do : 18576 ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16" 18577 if test "x$ac_cv_func_bswap16" = x""yes; then : 18578 cat >>confdefs.h <<_ACEOF 18579 #define HAVE_BSWAP16 1 18580 _ACEOF 18581 18582 fi 18583 done 18584 18585 fi 18586 # bswap16 18587 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18588 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18589 eval "LIB_bswap16=$ac_res" 18590 18591 case "$ac_res" in 18592 yes) 18593 eval "ac_cv_func_bswap16=yes" 18594 eval "LIB_bswap16=" 18595 cat >>confdefs.h <<_ACEOF 18596 #define $ac_tr_func 1 18597 _ACEOF 18598 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18600 $as_echo "yes" >&6; } 18601 ;; 18602 no) 18603 eval "ac_cv_func_bswap16=no" 18604 eval "LIB_bswap16=" 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18606 $as_echo "no" >&6; } 18607 ;; 18608 *) 18609 eval "ac_cv_func_bswap16=yes" 18610 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18611 cat >>confdefs.h <<_ACEOF 18612 #define $ac_tr_func 1 18613 _ACEOF 18614 18615 cat >>confdefs.h <<_ACEOF 18616 #define $ac_tr_lib 1 18617 _ACEOF 18618 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18620 $as_echo "yes, in $ac_res" >&6; } 18621 ;; 18622 esac 18623 18624 18625 18626 18627 18628 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5 18630 $as_echo_n "checking for bswap32... " >&6; } 18631 if test "${ac_cv_funclib_bswap32+set}" = set; then : 18632 $as_echo_n "(cached) " >&6 18633 else 18634 18635 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 18636 ac_save_LIBS="$LIBS" 18637 for ac_lib in "" ; do 18638 case "$ac_lib" in 18639 "") ;; 18640 yes) ac_lib="" ;; 18641 no) continue ;; 18642 -l*) ;; 18643 *) ac_lib="-l$ac_lib" ;; 18644 esac 18645 LIBS=" $ac_lib $ac_save_LIBS" 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647 /* end confdefs.h. */ 18648 #ifdef HAVE_SYS_TYPES_H 18649 #include <sys/types.h> 18650 #endif 18651 #ifdef HAVE_SYS_BSWAP_H 18652 #include <sys/bswap.h> 18653 #endif 18654 int 18655 main () 18656 { 18657 bswap32(0) 18658 ; 18659 return 0; 18660 } 18661 _ACEOF 18662 if ac_fn_c_try_link "$LINENO"; then : 18663 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 18664 fi 18665 rm -f core conftest.err conftest.$ac_objext \ 18666 conftest$ac_exeext conftest.$ac_ext 18667 done 18668 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 18669 LIBS="$ac_save_LIBS" 18670 fi 18671 18672 fi 18673 18674 18675 eval "ac_res=\$ac_cv_funclib_bswap32" 18676 18677 if false; then 18678 for ac_func in bswap32 18679 do : 18680 ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32" 18681 if test "x$ac_cv_func_bswap32" = x""yes; then : 18682 cat >>confdefs.h <<_ACEOF 18683 #define HAVE_BSWAP32 1 18684 _ACEOF 18685 18686 fi 18687 done 18688 18689 fi 18690 # bswap32 18691 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18692 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18693 eval "LIB_bswap32=$ac_res" 18694 18695 case "$ac_res" in 18696 yes) 18697 eval "ac_cv_func_bswap32=yes" 18698 eval "LIB_bswap32=" 18699 cat >>confdefs.h <<_ACEOF 18700 #define $ac_tr_func 1 18701 _ACEOF 18702 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18704 $as_echo "yes" >&6; } 18705 ;; 18706 no) 18707 eval "ac_cv_func_bswap32=no" 18708 eval "LIB_bswap32=" 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18710 $as_echo "no" >&6; } 18711 ;; 18712 *) 18713 eval "ac_cv_func_bswap32=yes" 18714 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18715 cat >>confdefs.h <<_ACEOF 18716 #define $ac_tr_func 1 18717 _ACEOF 18718 18719 cat >>confdefs.h <<_ACEOF 18720 #define $ac_tr_lib 1 18721 _ACEOF 18722 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18724 $as_echo "yes, in $ac_res" >&6; } 18725 ;; 18726 esac 18727 18728 18729 18730 18731 18732 18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5 18734 $as_echo_n "checking for pidfile... " >&6; } 18735 if test "${ac_cv_funclib_pidfile+set}" = set; then : 18736 $as_echo_n "(cached) " >&6 18737 else 18738 18739 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 18740 ac_save_LIBS="$LIBS" 18741 for ac_lib in "" util; do 18742 case "$ac_lib" in 18743 "") ;; 18744 yes) ac_lib="" ;; 18745 no) continue ;; 18746 -l*) ;; 18747 *) ac_lib="-l$ac_lib" ;; 18748 esac 18749 LIBS=" $ac_lib $ac_save_LIBS" 18750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18751 /* end confdefs.h. */ 18752 #ifdef HAVE_UTIL_H 18753 #include <util.h> 18754 #endif 18755 int 18756 main () 18757 { 18758 pidfile(0) 18759 ; 18760 return 0; 18761 } 18762 _ACEOF 18763 if ac_fn_c_try_link "$LINENO"; then : 18764 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 18765 fi 18766 rm -f core conftest.err conftest.$ac_objext \ 18767 conftest$ac_exeext conftest.$ac_ext 18768 done 18769 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 18770 LIBS="$ac_save_LIBS" 18771 fi 18772 18773 fi 18774 18775 18776 eval "ac_res=\$ac_cv_funclib_pidfile" 18777 18778 if false; then 18779 for ac_func in pidfile 18780 do : 18781 ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile" 18782 if test "x$ac_cv_func_pidfile" = x""yes; then : 18783 cat >>confdefs.h <<_ACEOF 18784 #define HAVE_PIDFILE 1 18785 _ACEOF 18786 18787 fi 18788 done 18789 18790 fi 18791 # pidfile 18792 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18793 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18794 eval "LIB_pidfile=$ac_res" 18795 18796 case "$ac_res" in 18797 yes) 18798 eval "ac_cv_func_pidfile=yes" 18799 eval "LIB_pidfile=" 18800 cat >>confdefs.h <<_ACEOF 18801 #define $ac_tr_func 1 18802 _ACEOF 18803 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18805 $as_echo "yes" >&6; } 18806 ;; 18807 no) 18808 eval "ac_cv_func_pidfile=no" 18809 eval "LIB_pidfile=" 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18811 $as_echo "no" >&6; } 18812 ;; 18813 *) 18814 eval "ac_cv_func_pidfile=yes" 18815 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18816 cat >>confdefs.h <<_ACEOF 18817 #define $ac_tr_func 1 18818 _ACEOF 18819 18820 cat >>confdefs.h <<_ACEOF 18821 #define $ac_tr_lib 1 18822 _ACEOF 18823 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18825 $as_echo "yes, in $ac_res" >&6; } 18826 ;; 18827 esac 18828 18829 18830 18831 18832 18833 18834 18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 18836 $as_echo_n "checking for getaddrinfo... " >&6; } 18837 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then : 18838 $as_echo_n "(cached) " >&6 18839 else 18840 18841 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 18842 ac_save_LIBS="$LIBS" 18843 for ac_lib in "" ; do 18844 case "$ac_lib" in 18845 "") ;; 18846 yes) ac_lib="" ;; 18847 no) continue ;; 18848 -l*) ;; 18849 *) ac_lib="-l$ac_lib" ;; 18850 esac 18851 LIBS=" $ac_lib $ac_save_LIBS" 18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18853 /* end confdefs.h. */ 18854 #ifdef HAVE_NETDB_H 18855 #include <netdb.h> 18856 #endif 18857 #ifdef HAVE_WS2TCPIP_H 18858 #include <ws2tcpip.h> 18859 #endif 18860 int 18861 main () 18862 { 18863 getaddrinfo(0,0,0,0) 18864 ; 18865 return 0; 18866 } 18867 _ACEOF 18868 if ac_fn_c_try_link "$LINENO"; then : 18869 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 18870 fi 18871 rm -f core conftest.err conftest.$ac_objext \ 18872 conftest$ac_exeext conftest.$ac_ext 18873 done 18874 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 18875 LIBS="$ac_save_LIBS" 18876 fi 18877 18878 fi 18879 18880 18881 eval "ac_res=\$ac_cv_funclib_getaddrinfo" 18882 18883 if false; then 18884 for ac_func in getaddrinfo 18885 do : 18886 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18887 if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 18888 cat >>confdefs.h <<_ACEOF 18889 #define HAVE_GETADDRINFO 1 18890 _ACEOF 18891 18892 fi 18893 done 18894 18895 fi 18896 # getaddrinfo 18897 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18898 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18899 eval "LIB_getaddrinfo=$ac_res" 18900 18901 case "$ac_res" in 18902 yes) 18903 eval "ac_cv_func_getaddrinfo=yes" 18904 eval "LIB_getaddrinfo=" 18905 cat >>confdefs.h <<_ACEOF 18906 #define $ac_tr_func 1 18907 _ACEOF 18908 18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18910 $as_echo "yes" >&6; } 18911 ;; 18912 no) 18913 eval "ac_cv_func_getaddrinfo=no" 18914 eval "LIB_getaddrinfo=" 18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18916 $as_echo "no" >&6; } 18917 ;; 18918 *) 18919 eval "ac_cv_func_getaddrinfo=yes" 18920 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18921 cat >>confdefs.h <<_ACEOF 18922 #define $ac_tr_func 1 18923 _ACEOF 18924 18925 cat >>confdefs.h <<_ACEOF 18926 #define $ac_tr_lib 1 18927 _ACEOF 18928 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 18930 $as_echo "yes, in $ac_res" >&6; } 18931 ;; 18932 esac 18933 18934 18935 if test -n "$LIB_getaddrinfo"; then 18936 LIBS="$LIB_getaddrinfo $LIBS" 18937 fi 18938 18939 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 18940 case " $LIBOBJS " in 18941 *" getaddrinfo.$ac_objext "* ) ;; 18942 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 18943 ;; 18944 esac 18945 18946 fi 18947 18948 18949 18950 18951 18952 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 18954 $as_echo_n "checking for getnameinfo... " >&6; } 18955 if test "${ac_cv_funclib_getnameinfo+set}" = set; then : 18956 $as_echo_n "(cached) " >&6 18957 else 18958 18959 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 18960 ac_save_LIBS="$LIBS" 18961 for ac_lib in "" ; do 18962 case "$ac_lib" in 18963 "") ;; 18964 yes) ac_lib="" ;; 18965 no) continue ;; 18966 -l*) ;; 18967 *) ac_lib="-l$ac_lib" ;; 18968 esac 18969 LIBS=" $ac_lib $ac_save_LIBS" 18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18971 /* end confdefs.h. */ 18972 #ifdef HAVE_NETDB_H 18973 #include <netdb.h> 18974 #endif 18975 #ifdef HAVE_WS2TCPIP_H 18976 #include <ws2tcpip.h> 18977 #endif 18978 int 18979 main () 18980 { 18981 getnameinfo(0,0,0,0,0,0,0) 18982 ; 18983 return 0; 18984 } 18985 _ACEOF 18986 if ac_fn_c_try_link "$LINENO"; then : 18987 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 18988 fi 18989 rm -f core conftest.err conftest.$ac_objext \ 18990 conftest$ac_exeext conftest.$ac_ext 18991 done 18992 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 18993 LIBS="$ac_save_LIBS" 18994 fi 18995 18996 fi 18997 18998 18999 eval "ac_res=\$ac_cv_funclib_getnameinfo" 19000 19001 if false; then 19002 for ac_func in getnameinfo 19003 do : 19004 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 19005 if test "x$ac_cv_func_getnameinfo" = x""yes; then : 19006 cat >>confdefs.h <<_ACEOF 19007 #define HAVE_GETNAMEINFO 1 19008 _ACEOF 19009 19010 fi 19011 done 19012 19013 fi 19014 # getnameinfo 19015 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19016 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19017 eval "LIB_getnameinfo=$ac_res" 19018 19019 case "$ac_res" in 19020 yes) 19021 eval "ac_cv_func_getnameinfo=yes" 19022 eval "LIB_getnameinfo=" 19023 cat >>confdefs.h <<_ACEOF 19024 #define $ac_tr_func 1 19025 _ACEOF 19026 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19028 $as_echo "yes" >&6; } 19029 ;; 19030 no) 19031 eval "ac_cv_func_getnameinfo=no" 19032 eval "LIB_getnameinfo=" 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19034 $as_echo "no" >&6; } 19035 ;; 19036 *) 19037 eval "ac_cv_func_getnameinfo=yes" 19038 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19039 cat >>confdefs.h <<_ACEOF 19040 #define $ac_tr_func 1 19041 _ACEOF 19042 19043 cat >>confdefs.h <<_ACEOF 19044 #define $ac_tr_lib 1 19045 _ACEOF 19046 19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19048 $as_echo "yes, in $ac_res" >&6; } 19049 ;; 19050 esac 19051 19052 19053 if test -n "$LIB_getnameinfo"; then 19054 LIBS="$LIB_getnameinfo $LIBS" 19055 fi 19056 19057 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 19058 case " $LIBOBJS " in 19059 *" getnameinfo.$ac_objext "* ) ;; 19060 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 19061 ;; 19062 esac 19063 19064 fi 19065 19066 19067 19068 19069 19070 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5 19072 $as_echo_n "checking for freeaddrinfo... " >&6; } 19073 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then : 19074 $as_echo_n "(cached) " >&6 19075 else 19076 19077 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 19078 ac_save_LIBS="$LIBS" 19079 for ac_lib in "" ; do 19080 case "$ac_lib" in 19081 "") ;; 19082 yes) ac_lib="" ;; 19083 no) continue ;; 19084 -l*) ;; 19085 *) ac_lib="-l$ac_lib" ;; 19086 esac 19087 LIBS=" $ac_lib $ac_save_LIBS" 19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19089 /* end confdefs.h. */ 19090 #ifdef HAVE_NETDB_H 19091 #include <netdb.h> 19092 #endif 19093 #ifdef HAVE_WS2TCPIP_H 19094 #include <ws2tcpip.h> 19095 #endif 19096 int 19097 main () 19098 { 19099 freeaddrinfo(0) 19100 ; 19101 return 0; 19102 } 19103 _ACEOF 19104 if ac_fn_c_try_link "$LINENO"; then : 19105 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 19106 fi 19107 rm -f core conftest.err conftest.$ac_objext \ 19108 conftest$ac_exeext conftest.$ac_ext 19109 done 19110 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 19111 LIBS="$ac_save_LIBS" 19112 fi 19113 19114 fi 19115 19116 19117 eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 19118 19119 if false; then 19120 for ac_func in freeaddrinfo 19121 do : 19122 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" 19123 if test "x$ac_cv_func_freeaddrinfo" = x""yes; then : 19124 cat >>confdefs.h <<_ACEOF 19125 #define HAVE_FREEADDRINFO 1 19126 _ACEOF 19127 19128 fi 19129 done 19130 19131 fi 19132 # freeaddrinfo 19133 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19134 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19135 eval "LIB_freeaddrinfo=$ac_res" 19136 19137 case "$ac_res" in 19138 yes) 19139 eval "ac_cv_func_freeaddrinfo=yes" 19140 eval "LIB_freeaddrinfo=" 19141 cat >>confdefs.h <<_ACEOF 19142 #define $ac_tr_func 1 19143 _ACEOF 19144 19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19146 $as_echo "yes" >&6; } 19147 ;; 19148 no) 19149 eval "ac_cv_func_freeaddrinfo=no" 19150 eval "LIB_freeaddrinfo=" 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19152 $as_echo "no" >&6; } 19153 ;; 19154 *) 19155 eval "ac_cv_func_freeaddrinfo=yes" 19156 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19157 cat >>confdefs.h <<_ACEOF 19158 #define $ac_tr_func 1 19159 _ACEOF 19160 19161 cat >>confdefs.h <<_ACEOF 19162 #define $ac_tr_lib 1 19163 _ACEOF 19164 19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19166 $as_echo "yes, in $ac_res" >&6; } 19167 ;; 19168 esac 19169 19170 19171 if test -n "$LIB_freeaddrinfo"; then 19172 LIBS="$LIB_freeaddrinfo $LIBS" 19173 fi 19174 19175 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 19176 case " $LIBOBJS " in 19177 *" freeaddrinfo.$ac_objext "* ) ;; 19178 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 19179 ;; 19180 esac 19181 19182 fi 19183 19184 19185 19186 19187 19188 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5 19190 $as_echo_n "checking for gai_strerror... " >&6; } 19191 if test "${ac_cv_funclib_gai_strerror+set}" = set; then : 19192 $as_echo_n "(cached) " >&6 19193 else 19194 19195 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 19196 ac_save_LIBS="$LIBS" 19197 for ac_lib in "" ; do 19198 case "$ac_lib" in 19199 "") ;; 19200 yes) ac_lib="" ;; 19201 no) continue ;; 19202 -l*) ;; 19203 *) ac_lib="-l$ac_lib" ;; 19204 esac 19205 LIBS=" $ac_lib $ac_save_LIBS" 19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19207 /* end confdefs.h. */ 19208 #ifdef HAVE_NETDB_H 19209 #include <netdb.h> 19210 #endif 19211 #ifdef HAVE_WS2TCPIP_H 19212 #include <ws2tcpip.h> 19213 #endif 19214 int 19215 main () 19216 { 19217 gai_strerror(0) 19218 ; 19219 return 0; 19220 } 19221 _ACEOF 19222 if ac_fn_c_try_link "$LINENO"; then : 19223 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 19224 fi 19225 rm -f core conftest.err conftest.$ac_objext \ 19226 conftest$ac_exeext conftest.$ac_ext 19227 done 19228 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 19229 LIBS="$ac_save_LIBS" 19230 fi 19231 19232 fi 19233 19234 19235 eval "ac_res=\$ac_cv_funclib_gai_strerror" 19236 19237 if false; then 19238 for ac_func in gai_strerror 19239 do : 19240 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 19241 if test "x$ac_cv_func_gai_strerror" = x""yes; then : 19242 cat >>confdefs.h <<_ACEOF 19243 #define HAVE_GAI_STRERROR 1 19244 _ACEOF 19245 19246 fi 19247 done 19248 19249 fi 19250 # gai_strerror 19251 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19252 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19253 eval "LIB_gai_strerror=$ac_res" 19254 19255 case "$ac_res" in 19256 yes) 19257 eval "ac_cv_func_gai_strerror=yes" 19258 eval "LIB_gai_strerror=" 19259 cat >>confdefs.h <<_ACEOF 19260 #define $ac_tr_func 1 19261 _ACEOF 19262 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19264 $as_echo "yes" >&6; } 19265 ;; 19266 no) 19267 eval "ac_cv_func_gai_strerror=no" 19268 eval "LIB_gai_strerror=" 19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19270 $as_echo "no" >&6; } 19271 ;; 19272 *) 19273 eval "ac_cv_func_gai_strerror=yes" 19274 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19275 cat >>confdefs.h <<_ACEOF 19276 #define $ac_tr_func 1 19277 _ACEOF 19278 19279 cat >>confdefs.h <<_ACEOF 19280 #define $ac_tr_lib 1 19281 _ACEOF 19282 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 19284 $as_echo "yes, in $ac_res" >&6; } 19285 ;; 19286 esac 19287 19288 19289 if test -n "$LIB_gai_strerror"; then 19290 LIBS="$LIB_gai_strerror $LIBS" 19291 fi 19292 19293 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 19294 case " $LIBOBJS " in 19295 *" gai_strerror.$ac_objext "* ) ;; 19296 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 19297 ;; 19298 esac 19299 19300 fi 19301 19302 19303 case "$host_os" in 19304 darwin*) 19305 ;; 19306 *) 19307 19308 $as_echo "#define SUPPORT_DETACH 1" >>confdefs.h 19309 19310 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 19311 if test "x$ac_cv_func_daemon" = x""yes; then : 19312 19313 cat >>confdefs.h <<_ACEOF 19314 #define HAVE_DAEMON 1 19315 _ACEOF 19316 19317 else 19318 case " $LIBOBJS " in 19319 *" daemon.$ac_objext "* ) ;; 19320 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" 19321 ;; 19322 esac 19323 19324 fi 19325 ;; 19326 esac 19327 19328 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 19329 if test "x$ac_cv_func_chown" = x""yes; then : 19330 19331 cat >>confdefs.h <<_ACEOF 19332 #define HAVE_CHOWN 1 19333 _ACEOF 19334 19335 else 19336 case " $LIBOBJS " in 19337 *" chown.$ac_objext "* ) ;; 19338 *) LIBOBJS="$LIBOBJS chown.$ac_objext" 19339 ;; 19340 esac 19341 19342 fi 19343 ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent" 19344 if test "x$ac_cv_func_copyhostent" = x""yes; then : 19345 19346 cat >>confdefs.h <<_ACEOF 19347 #define HAVE_COPYHOSTENT 1 19348 _ACEOF 19349 19350 else 19351 case " $LIBOBJS " in 19352 *" copyhostent.$ac_objext "* ) ;; 19353 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 19354 ;; 19355 esac 19356 19357 fi 19358 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 19359 if test "x$ac_cv_func_closefrom" = x""yes; then : 19360 19361 cat >>confdefs.h <<_ACEOF 19362 #define HAVE_CLOSEFROM 1 19363 _ACEOF 19364 19365 else 19366 case " $LIBOBJS " in 19367 *" closefrom.$ac_objext "* ) ;; 19368 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 19369 ;; 19370 esac 19371 19372 fi 19373 ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc" 19374 if test "x$ac_cv_func_ecalloc" = x""yes; then : 19375 19376 cat >>confdefs.h <<_ACEOF 19377 #define HAVE_ECALLOC 1 19378 _ACEOF 19379 19380 else 19381 case " $LIBOBJS " in 19382 *" ecalloc.$ac_objext "* ) ;; 19383 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 19384 ;; 19385 esac 19386 19387 fi 19388 ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc" 19389 if test "x$ac_cv_func_emalloc" = x""yes; then : 19390 19391 cat >>confdefs.h <<_ACEOF 19392 #define HAVE_EMALLOC 1 19393 _ACEOF 19394 19395 else 19396 case " $LIBOBJS " in 19397 *" emalloc.$ac_objext "* ) ;; 19398 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" 19399 ;; 19400 esac 19401 19402 fi 19403 ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc" 19404 if test "x$ac_cv_func_erealloc" = x""yes; then : 19405 19406 cat >>confdefs.h <<_ACEOF 19407 #define HAVE_EREALLOC 1 19408 _ACEOF 19409 19410 else 19411 case " $LIBOBJS " in 19412 *" erealloc.$ac_objext "* ) ;; 19413 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" 19414 ;; 19415 esac 19416 19417 fi 19418 ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup" 19419 if test "x$ac_cv_func_estrdup" = x""yes; then : 19420 19421 cat >>confdefs.h <<_ACEOF 19422 #define HAVE_ESTRDUP 1 19423 _ACEOF 19424 19425 else 19426 case " $LIBOBJS " in 19427 *" estrdup.$ac_objext "* ) ;; 19428 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" 19429 ;; 19430 esac 19431 19432 fi 19433 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" 19434 if test "x$ac_cv_func_err" = x""yes; then : 19435 19436 cat >>confdefs.h <<_ACEOF 19437 #define HAVE_ERR 1 19438 _ACEOF 19439 19440 else 19441 case " $LIBOBJS " in 19442 *" err.$ac_objext "* ) ;; 19443 *) LIBOBJS="$LIBOBJS err.$ac_objext" 19444 ;; 19445 esac 19446 19447 fi 19448 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx" 19449 if test "x$ac_cv_func_errx" = x""yes; then : 19450 19451 cat >>confdefs.h <<_ACEOF 19452 #define HAVE_ERRX 1 19453 _ACEOF 19454 19455 else 19456 case " $LIBOBJS " in 19457 *" errx.$ac_objext "* ) ;; 19458 *) LIBOBJS="$LIBOBJS errx.$ac_objext" 19459 ;; 19460 esac 19461 19462 fi 19463 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 19464 if test "x$ac_cv_func_fchown" = x""yes; then : 19465 19466 cat >>confdefs.h <<_ACEOF 19467 #define HAVE_FCHOWN 1 19468 _ACEOF 19469 19470 else 19471 case " $LIBOBJS " in 19472 *" fchown.$ac_objext "* ) ;; 19473 *) LIBOBJS="$LIBOBJS fchown.$ac_objext" 19474 ;; 19475 esac 19476 19477 fi 19478 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 19479 if test "x$ac_cv_func_flock" = x""yes; then : 19480 19481 cat >>confdefs.h <<_ACEOF 19482 #define HAVE_FLOCK 1 19483 _ACEOF 19484 19485 else 19486 case " $LIBOBJS " in 19487 *" flock.$ac_objext "* ) ;; 19488 *) LIBOBJS="$LIBOBJS flock.$ac_objext" 19489 ;; 19490 esac 19491 19492 fi 19493 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 19494 if test "x$ac_cv_func_fnmatch" = x""yes; then : 19495 19496 cat >>confdefs.h <<_ACEOF 19497 #define HAVE_FNMATCH 1 19498 _ACEOF 19499 19500 else 19501 case " $LIBOBJS " in 19502 *" fnmatch.$ac_objext "* ) ;; 19503 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 19504 ;; 19505 esac 19506 19507 fi 19508 ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent" 19509 if test "x$ac_cv_func_freehostent" = x""yes; then : 19510 19511 cat >>confdefs.h <<_ACEOF 19512 #define HAVE_FREEHOSTENT 1 19513 _ACEOF 19514 19515 else 19516 case " $LIBOBJS " in 19517 *" freehostent.$ac_objext "* ) ;; 19518 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" 19519 ;; 19520 esac 19521 19522 fi 19523 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 19524 if test "x$ac_cv_func_getcwd" = x""yes; then : 19525 19526 cat >>confdefs.h <<_ACEOF 19527 #define HAVE_GETCWD 1 19528 _ACEOF 19529 19530 else 19531 case " $LIBOBJS " in 19532 *" getcwd.$ac_objext "* ) ;; 19533 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 19534 ;; 19535 esac 19536 19537 fi 19538 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 19539 if test "x$ac_cv_func_getdtablesize" = x""yes; then : 19540 19541 cat >>confdefs.h <<_ACEOF 19542 #define HAVE_GETDTABLESIZE 1 19543 _ACEOF 19544 19545 else 19546 case " $LIBOBJS " in 19547 *" getdtablesize.$ac_objext "* ) ;; 19548 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 19549 ;; 19550 esac 19551 19552 fi 19553 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 19554 if test "x$ac_cv_func_getegid" = x""yes; then : 19555 19556 cat >>confdefs.h <<_ACEOF 19557 #define HAVE_GETEGID 1 19558 _ACEOF 19559 19560 else 19561 case " $LIBOBJS " in 19562 *" getegid.$ac_objext "* ) ;; 19563 *) LIBOBJS="$LIBOBJS getegid.$ac_objext" 19564 ;; 19565 esac 19566 19567 fi 19568 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 19569 if test "x$ac_cv_func_geteuid" = x""yes; then : 19570 19571 cat >>confdefs.h <<_ACEOF 19572 #define HAVE_GETEUID 1 19573 _ACEOF 19574 19575 else 19576 case " $LIBOBJS " in 19577 *" geteuid.$ac_objext "* ) ;; 19578 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" 19579 ;; 19580 esac 19581 19582 fi 19583 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" 19584 if test "x$ac_cv_func_getgid" = x""yes; then : 19585 19586 cat >>confdefs.h <<_ACEOF 19587 #define HAVE_GETGID 1 19588 _ACEOF 19589 19590 else 19591 case " $LIBOBJS " in 19592 *" getgid.$ac_objext "* ) ;; 19593 *) LIBOBJS="$LIBOBJS getgid.$ac_objext" 19594 ;; 19595 esac 19596 19597 fi 19598 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 19599 if test "x$ac_cv_func_gethostname" = x""yes; then : 19600 19601 cat >>confdefs.h <<_ACEOF 19602 #define HAVE_GETHOSTNAME 1 19603 _ACEOF 19604 19605 else 19606 case " $LIBOBJS " in 19607 *" gethostname.$ac_objext "* ) ;; 19608 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" 19609 ;; 19610 esac 19611 19612 fi 19613 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 19614 if test "x$ac_cv_func_getifaddrs" = x""yes; then : 19615 19616 cat >>confdefs.h <<_ACEOF 19617 #define HAVE_GETIFADDRS 1 19618 _ACEOF 19619 19620 else 19621 case " $LIBOBJS " in 19622 *" getifaddrs.$ac_objext "* ) ;; 19623 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 19624 ;; 19625 esac 19626 19627 fi 19628 ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr" 19629 if test "x$ac_cv_func_getipnodebyaddr" = x""yes; then : 19630 19631 cat >>confdefs.h <<_ACEOF 19632 #define HAVE_GETIPNODEBYADDR 1 19633 _ACEOF 19634 19635 else 19636 case " $LIBOBJS " in 19637 *" getipnodebyaddr.$ac_objext "* ) ;; 19638 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 19639 ;; 19640 esac 19641 19642 fi 19643 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 19644 if test "x$ac_cv_func_getipnodebyname" = x""yes; then : 19645 19646 cat >>confdefs.h <<_ACEOF 19647 #define HAVE_GETIPNODEBYNAME 1 19648 _ACEOF 19649 19650 else 19651 case " $LIBOBJS " in 19652 *" getipnodebyname.$ac_objext "* ) ;; 19653 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 19654 ;; 19655 esac 19656 19657 fi 19658 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 19659 if test "x$ac_cv_func_getopt" = x""yes; then : 19660 19661 cat >>confdefs.h <<_ACEOF 19662 #define HAVE_GETOPT 1 19663 _ACEOF 19664 19665 else 19666 case " $LIBOBJS " in 19667 *" getopt.$ac_objext "* ) ;; 19668 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 19669 ;; 19670 esac 19671 19672 fi 19673 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 19674 if test "x$ac_cv_func_gettimeofday" = x""yes; then : 19675 19676 cat >>confdefs.h <<_ACEOF 19677 #define HAVE_GETTIMEOFDAY 1 19678 _ACEOF 19679 19680 else 19681 case " $LIBOBJS " in 19682 *" gettimeofday.$ac_objext "* ) ;; 19683 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 19684 ;; 19685 esac 19686 19687 fi 19688 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 19689 if test "x$ac_cv_func_getuid" = x""yes; then : 19690 19691 cat >>confdefs.h <<_ACEOF 19692 #define HAVE_GETUID 1 19693 _ACEOF 19694 19695 else 19696 case " $LIBOBJS " in 19697 *" getuid.$ac_objext "* ) ;; 19698 *) LIBOBJS="$LIBOBJS getuid.$ac_objext" 19699 ;; 19700 esac 19701 19702 fi 19703 ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell" 19704 if test "x$ac_cv_func_getusershell" = x""yes; then : 19705 19706 cat >>confdefs.h <<_ACEOF 19707 #define HAVE_GETUSERSHELL 1 19708 _ACEOF 19709 19710 else 19711 case " $LIBOBJS " in 19712 *" getusershell.$ac_objext "* ) ;; 19713 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" 19714 ;; 19715 esac 19716 19717 fi 19718 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 19719 if test "x$ac_cv_func_initgroups" = x""yes; then : 19720 19721 cat >>confdefs.h <<_ACEOF 19722 #define HAVE_INITGROUPS 1 19723 _ACEOF 19724 19725 else 19726 case " $LIBOBJS " in 19727 *" initgroups.$ac_objext "* ) ;; 19728 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" 19729 ;; 19730 esac 19731 19732 fi 19733 ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr" 19734 if test "x$ac_cv_func_innetgr" = x""yes; then : 19735 19736 cat >>confdefs.h <<_ACEOF 19737 #define HAVE_INNETGR 1 19738 _ACEOF 19739 19740 else 19741 case " $LIBOBJS " in 19742 *" innetgr.$ac_objext "* ) ;; 19743 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" 19744 ;; 19745 esac 19746 19747 fi 19748 ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok" 19749 if test "x$ac_cv_func_iruserok" = x""yes; then : 19750 19751 cat >>confdefs.h <<_ACEOF 19752 #define HAVE_IRUSEROK 1 19753 _ACEOF 19754 19755 else 19756 case " $LIBOBJS " in 19757 *" iruserok.$ac_objext "* ) ;; 19758 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" 19759 ;; 19760 esac 19761 19762 fi 19763 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 19764 if test "x$ac_cv_func_localtime_r" = x""yes; then : 19765 19766 cat >>confdefs.h <<_ACEOF 19767 #define HAVE_LOCALTIME_R 1 19768 _ACEOF 19769 19770 else 19771 case " $LIBOBJS " in 19772 *" localtime_r.$ac_objext "* ) ;; 19773 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 19774 ;; 19775 esac 19776 19777 fi 19778 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 19779 if test "x$ac_cv_func_lstat" = x""yes; then : 19780 19781 cat >>confdefs.h <<_ACEOF 19782 #define HAVE_LSTAT 1 19783 _ACEOF 19784 19785 else 19786 case " $LIBOBJS " in 19787 *" lstat.$ac_objext "* ) ;; 19788 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 19789 ;; 19790 esac 19791 19792 fi 19793 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 19794 if test "x$ac_cv_func_memmove" = x""yes; then : 19795 19796 cat >>confdefs.h <<_ACEOF 19797 #define HAVE_MEMMOVE 1 19798 _ACEOF 19799 19800 else 19801 case " $LIBOBJS " in 19802 *" memmove.$ac_objext "* ) ;; 19803 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 19804 ;; 19805 esac 19806 19807 fi 19808 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 19809 if test "x$ac_cv_func_mkstemp" = x""yes; then : 19810 19811 cat >>confdefs.h <<_ACEOF 19812 #define HAVE_MKSTEMP 1 19813 _ACEOF 19814 19815 else 19816 case " $LIBOBJS " in 19817 *" mkstemp.$ac_objext "* ) ;; 19818 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 19819 ;; 19820 esac 19821 19822 fi 19823 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 19824 if test "x$ac_cv_func_putenv" = x""yes; then : 19825 19826 cat >>confdefs.h <<_ACEOF 19827 #define HAVE_PUTENV 1 19828 _ACEOF 19829 19830 else 19831 case " $LIBOBJS " in 19832 *" putenv.$ac_objext "* ) ;; 19833 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" 19834 ;; 19835 esac 19836 19837 fi 19838 ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd" 19839 if test "x$ac_cv_func_rcmd" = x""yes; then : 19840 19841 cat >>confdefs.h <<_ACEOF 19842 #define HAVE_RCMD 1 19843 _ACEOF 19844 19845 else 19846 case " $LIBOBJS " in 19847 *" rcmd.$ac_objext "* ) ;; 19848 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" 19849 ;; 19850 esac 19851 19852 fi 19853 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" 19854 if test "x$ac_cv_func_readv" = x""yes; then : 19855 19856 cat >>confdefs.h <<_ACEOF 19857 #define HAVE_READV 1 19858 _ACEOF 19859 19860 else 19861 case " $LIBOBJS " in 19862 *" readv.$ac_objext "* ) ;; 19863 *) LIBOBJS="$LIBOBJS readv.$ac_objext" 19864 ;; 19865 esac 19866 19867 fi 19868 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 19869 if test "x$ac_cv_func_recvmsg" = x""yes; then : 19870 19871 cat >>confdefs.h <<_ACEOF 19872 #define HAVE_RECVMSG 1 19873 _ACEOF 19874 19875 else 19876 case " $LIBOBJS " in 19877 *" recvmsg.$ac_objext "* ) ;; 19878 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 19879 ;; 19880 esac 19881 19882 fi 19883 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 19884 if test "x$ac_cv_func_sendmsg" = x""yes; then : 19885 19886 cat >>confdefs.h <<_ACEOF 19887 #define HAVE_SENDMSG 1 19888 _ACEOF 19889 19890 else 19891 case " $LIBOBJS " in 19892 *" sendmsg.$ac_objext "* ) ;; 19893 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 19894 ;; 19895 esac 19896 19897 fi 19898 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" 19899 if test "x$ac_cv_func_setegid" = x""yes; then : 19900 19901 cat >>confdefs.h <<_ACEOF 19902 #define HAVE_SETEGID 1 19903 _ACEOF 19904 19905 else 19906 case " $LIBOBJS " in 19907 *" setegid.$ac_objext "* ) ;; 19908 *) LIBOBJS="$LIBOBJS setegid.$ac_objext" 19909 ;; 19910 esac 19911 19912 fi 19913 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 19914 if test "x$ac_cv_func_setenv" = x""yes; then : 19915 19916 cat >>confdefs.h <<_ACEOF 19917 #define HAVE_SETENV 1 19918 _ACEOF 19919 19920 else 19921 case " $LIBOBJS " in 19922 *" setenv.$ac_objext "* ) ;; 19923 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 19924 ;; 19925 esac 19926 19927 fi 19928 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 19929 if test "x$ac_cv_func_seteuid" = x""yes; then : 19930 19931 cat >>confdefs.h <<_ACEOF 19932 #define HAVE_SETEUID 1 19933 _ACEOF 19934 19935 else 19936 case " $LIBOBJS " in 19937 *" seteuid.$ac_objext "* ) ;; 19938 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 19939 ;; 19940 esac 19941 19942 fi 19943 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 19944 if test "x$ac_cv_func_strcasecmp" = x""yes; then : 19945 19946 cat >>confdefs.h <<_ACEOF 19947 #define HAVE_STRCASECMP 1 19948 _ACEOF 19949 19950 else 19951 case " $LIBOBJS " in 19952 *" strcasecmp.$ac_objext "* ) ;; 19953 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 19954 ;; 19955 esac 19956 19957 fi 19958 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 19959 if test "x$ac_cv_func_strdup" = x""yes; then : 19960 19961 cat >>confdefs.h <<_ACEOF 19962 #define HAVE_STRDUP 1 19963 _ACEOF 19964 19965 else 19966 case " $LIBOBJS " in 19967 *" strdup.$ac_objext "* ) ;; 19968 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 19969 ;; 19970 esac 19971 19972 fi 19973 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 19974 if test "x$ac_cv_func_strerror" = x""yes; then : 19975 19976 cat >>confdefs.h <<_ACEOF 19977 #define HAVE_STRERROR 1 19978 _ACEOF 19979 19980 else 19981 case " $LIBOBJS " in 19982 *" strerror.$ac_objext "* ) ;; 19983 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 19984 ;; 19985 esac 19986 19987 fi 19988 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 19989 if test "x$ac_cv_func_strftime" = x""yes; then : 19990 19991 cat >>confdefs.h <<_ACEOF 19992 #define HAVE_STRFTIME 1 19993 _ACEOF 19994 19995 else 19996 case " $LIBOBJS " in 19997 *" strftime.$ac_objext "* ) ;; 19998 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 19999 ;; 20000 esac 20001 20002 fi 20003 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20004 if test "x$ac_cv_func_strlcat" = x""yes; then : 20005 20006 cat >>confdefs.h <<_ACEOF 20007 #define HAVE_STRLCAT 1 20008 _ACEOF 20009 20010 else 20011 case " $LIBOBJS " in 20012 *" strlcat.$ac_objext "* ) ;; 20013 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20014 ;; 20015 esac 20016 20017 fi 20018 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20019 if test "x$ac_cv_func_strlcpy" = x""yes; then : 20020 20021 cat >>confdefs.h <<_ACEOF 20022 #define HAVE_STRLCPY 1 20023 _ACEOF 20024 20025 else 20026 case " $LIBOBJS " in 20027 *" strlcpy.$ac_objext "* ) ;; 20028 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20029 ;; 20030 esac 20031 20032 fi 20033 ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr" 20034 if test "x$ac_cv_func_strlwr" = x""yes; then : 20035 20036 cat >>confdefs.h <<_ACEOF 20037 #define HAVE_STRLWR 1 20038 _ACEOF 20039 20040 else 20041 case " $LIBOBJS " in 20042 *" strlwr.$ac_objext "* ) ;; 20043 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" 20044 ;; 20045 esac 20046 20047 fi 20048 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 20049 if test "x$ac_cv_func_strncasecmp" = x""yes; then : 20050 20051 cat >>confdefs.h <<_ACEOF 20052 #define HAVE_STRNCASECMP 1 20053 _ACEOF 20054 20055 else 20056 case " $LIBOBJS " in 20057 *" strncasecmp.$ac_objext "* ) ;; 20058 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 20059 ;; 20060 esac 20061 20062 fi 20063 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 20064 if test "x$ac_cv_func_strndup" = x""yes; then : 20065 20066 cat >>confdefs.h <<_ACEOF 20067 #define HAVE_STRNDUP 1 20068 _ACEOF 20069 20070 else 20071 case " $LIBOBJS " in 20072 *" strndup.$ac_objext "* ) ;; 20073 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 20074 ;; 20075 esac 20076 20077 fi 20078 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 20079 if test "x$ac_cv_func_strnlen" = x""yes; then : 20080 20081 cat >>confdefs.h <<_ACEOF 20082 #define HAVE_STRNLEN 1 20083 _ACEOF 20084 20085 else 20086 case " $LIBOBJS " in 20087 *" strnlen.$ac_objext "* ) ;; 20088 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 20089 ;; 20090 esac 20091 20092 fi 20093 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 20094 if test "x$ac_cv_func_strptime" = x""yes; then : 20095 20096 cat >>confdefs.h <<_ACEOF 20097 #define HAVE_STRPTIME 1 20098 _ACEOF 20099 20100 else 20101 case " $LIBOBJS " in 20102 *" strptime.$ac_objext "* ) ;; 20103 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 20104 ;; 20105 esac 20106 20107 fi 20108 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 20109 if test "x$ac_cv_func_strsep" = x""yes; then : 20110 20111 cat >>confdefs.h <<_ACEOF 20112 #define HAVE_STRSEP 1 20113 _ACEOF 20114 20115 else 20116 case " $LIBOBJS " in 20117 *" strsep.$ac_objext "* ) ;; 20118 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 20119 ;; 20120 esac 20121 20122 fi 20123 ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy" 20124 if test "x$ac_cv_func_strsep_copy" = x""yes; then : 20125 20126 cat >>confdefs.h <<_ACEOF 20127 #define HAVE_STRSEP_COPY 1 20128 _ACEOF 20129 20130 else 20131 case " $LIBOBJS " in 20132 *" strsep_copy.$ac_objext "* ) ;; 20133 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 20134 ;; 20135 esac 20136 20137 fi 20138 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 20139 if test "x$ac_cv_func_strtok_r" = x""yes; then : 20140 20141 cat >>confdefs.h <<_ACEOF 20142 #define HAVE_STRTOK_R 1 20143 _ACEOF 20144 20145 else 20146 case " $LIBOBJS " in 20147 *" strtok_r.$ac_objext "* ) ;; 20148 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 20149 ;; 20150 esac 20151 20152 fi 20153 ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr" 20154 if test "x$ac_cv_func_strupr" = x""yes; then : 20155 20156 cat >>confdefs.h <<_ACEOF 20157 #define HAVE_STRUPR 1 20158 _ACEOF 20159 20160 else 20161 case " $LIBOBJS " in 20162 *" strupr.$ac_objext "* ) ;; 20163 *) LIBOBJS="$LIBOBJS strupr.$ac_objext" 20164 ;; 20165 esac 20166 20167 fi 20168 ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab" 20169 if test "x$ac_cv_func_swab" = x""yes; then : 20170 20171 cat >>confdefs.h <<_ACEOF 20172 #define HAVE_SWAB 1 20173 _ACEOF 20174 20175 else 20176 case " $LIBOBJS " in 20177 *" swab.$ac_objext "* ) ;; 20178 *) LIBOBJS="$LIBOBJS swab.$ac_objext" 20179 ;; 20180 esac 20181 20182 fi 20183 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 20184 if test "x$ac_cv_func_tsearch" = x""yes; then : 20185 20186 cat >>confdefs.h <<_ACEOF 20187 #define HAVE_TSEARCH 1 20188 _ACEOF 20189 20190 else 20191 case " $LIBOBJS " in 20192 *" tsearch.$ac_objext "* ) ;; 20193 *) LIBOBJS="$LIBOBJS tsearch.$ac_objext" 20194 ;; 20195 esac 20196 20197 fi 20198 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 20199 if test "x$ac_cv_func_timegm" = x""yes; then : 20200 20201 cat >>confdefs.h <<_ACEOF 20202 #define HAVE_TIMEGM 1 20203 _ACEOF 20204 20205 else 20206 case " $LIBOBJS " in 20207 *" timegm.$ac_objext "* ) ;; 20208 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 20209 ;; 20210 esac 20211 20212 fi 20213 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 20214 if test "x$ac_cv_func_unsetenv" = x""yes; then : 20215 20216 cat >>confdefs.h <<_ACEOF 20217 #define HAVE_UNSETENV 1 20218 _ACEOF 20219 20220 else 20221 case " $LIBOBJS " in 20222 *" unsetenv.$ac_objext "* ) ;; 20223 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 20224 ;; 20225 esac 20226 20227 fi 20228 ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr" 20229 if test "x$ac_cv_func_verr" = x""yes; then : 20230 20231 cat >>confdefs.h <<_ACEOF 20232 #define HAVE_VERR 1 20233 _ACEOF 20234 20235 else 20236 case " $LIBOBJS " in 20237 *" verr.$ac_objext "* ) ;; 20238 *) LIBOBJS="$LIBOBJS verr.$ac_objext" 20239 ;; 20240 esac 20241 20242 fi 20243 ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx" 20244 if test "x$ac_cv_func_verrx" = x""yes; then : 20245 20246 cat >>confdefs.h <<_ACEOF 20247 #define HAVE_VERRX 1 20248 _ACEOF 20249 20250 else 20251 case " $LIBOBJS " in 20252 *" verrx.$ac_objext "* ) ;; 20253 *) LIBOBJS="$LIBOBJS verrx.$ac_objext" 20254 ;; 20255 esac 20256 20257 fi 20258 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" 20259 if test "x$ac_cv_func_vsyslog" = x""yes; then : 20260 20261 cat >>confdefs.h <<_ACEOF 20262 #define HAVE_VSYSLOG 1 20263 _ACEOF 20264 20265 else 20266 case " $LIBOBJS " in 20267 *" vsyslog.$ac_objext "* ) ;; 20268 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 20269 ;; 20270 esac 20271 20272 fi 20273 ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn" 20274 if test "x$ac_cv_func_vwarn" = x""yes; then : 20275 20276 cat >>confdefs.h <<_ACEOF 20277 #define HAVE_VWARN 1 20278 _ACEOF 20279 20280 else 20281 case " $LIBOBJS " in 20282 *" vwarn.$ac_objext "* ) ;; 20283 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" 20284 ;; 20285 esac 20286 20287 fi 20288 ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx" 20289 if test "x$ac_cv_func_vwarnx" = x""yes; then : 20290 20291 cat >>confdefs.h <<_ACEOF 20292 #define HAVE_VWARNX 1 20293 _ACEOF 20294 20295 else 20296 case " $LIBOBJS " in 20297 *" vwarnx.$ac_objext "* ) ;; 20298 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 20299 ;; 20300 esac 20301 20302 fi 20303 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" 20304 if test "x$ac_cv_func_warn" = x""yes; then : 20305 20306 cat >>confdefs.h <<_ACEOF 20307 #define HAVE_WARN 1 20308 _ACEOF 20309 20310 else 20311 case " $LIBOBJS " in 20312 *" warn.$ac_objext "* ) ;; 20313 *) LIBOBJS="$LIBOBJS warn.$ac_objext" 20314 ;; 20315 esac 20316 20317 fi 20318 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx" 20319 if test "x$ac_cv_func_warnx" = x""yes; then : 20320 20321 cat >>confdefs.h <<_ACEOF 20322 #define HAVE_WARNX 1 20323 _ACEOF 20324 20325 else 20326 case " $LIBOBJS " in 20327 *" warnx.$ac_objext "* ) ;; 20328 *) LIBOBJS="$LIBOBJS warnx.$ac_objext" 20329 ;; 20330 esac 20331 20332 fi 20333 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 20334 if test "x$ac_cv_func_writev" = x""yes; then : 20335 20336 cat >>confdefs.h <<_ACEOF 20337 #define HAVE_WRITEV 1 20338 _ACEOF 20339 20340 else 20341 case " $LIBOBJS " in 20342 *" writev.$ac_objext "* ) ;; 20343 *) LIBOBJS="$LIBOBJS writev.$ac_objext" 20344 ;; 20345 esac 20346 20347 fi 20348 20349 20350 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then 20351 have_fnmatch_h_TRUE= 20352 have_fnmatch_h_FALSE='#' 20353 else 20354 have_fnmatch_h_TRUE='#' 20355 have_fnmatch_h_FALSE= 20356 fi 20357 20358 20359 20360 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5 20362 $as_echo_n "checking if strndup needs a prototype... " >&6; } 20363 if test "${ac_cv_func_strndup_noproto+set}" = set; then : 20364 $as_echo_n "(cached) " >&6 20365 else 20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20367 /* end confdefs.h. */ 20368 #include <string.h> 20369 struct foo { int foo; } xx; 20370 extern int strndup (struct foo*); 20371 int 20372 main () 20373 { 20374 strndup(&xx) 20375 ; 20376 return 0; 20377 } 20378 _ACEOF 20379 if ac_fn_c_try_compile "$LINENO"; then : 20380 eval "ac_cv_func_strndup_noproto=yes" 20381 else 20382 eval "ac_cv_func_strndup_noproto=no" 20383 fi 20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20385 fi 20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5 20387 $as_echo "$ac_cv_func_strndup_noproto" >&6; } 20388 if test "$ac_cv_func_strndup_noproto" = yes; then 20389 20390 $as_echo "#define NEED_STRNDUP_PROTO 1" >>confdefs.h 20391 20392 fi 20393 fi 20394 20395 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5 20397 $as_echo_n "checking if strsep needs a prototype... " >&6; } 20398 if test "${ac_cv_func_strsep_noproto+set}" = set; then : 20399 $as_echo_n "(cached) " >&6 20400 else 20401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20402 /* end confdefs.h. */ 20403 #include <string.h> 20404 struct foo { int foo; } xx; 20405 extern int strsep (struct foo*); 20406 int 20407 main () 20408 { 20409 strsep(&xx) 20410 ; 20411 return 0; 20412 } 20413 _ACEOF 20414 if ac_fn_c_try_compile "$LINENO"; then : 20415 eval "ac_cv_func_strsep_noproto=yes" 20416 else 20417 eval "ac_cv_func_strsep_noproto=no" 20418 fi 20419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20420 fi 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5 20422 $as_echo "$ac_cv_func_strsep_noproto" >&6; } 20423 if test "$ac_cv_func_strsep_noproto" = yes; then 20424 20425 $as_echo "#define NEED_STRSEP_PROTO 1" >>confdefs.h 20426 20427 fi 20428 fi 20429 20430 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5 20432 $as_echo_n "checking if strtok_r needs a prototype... " >&6; } 20433 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then : 20434 $as_echo_n "(cached) " >&6 20435 else 20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20437 /* end confdefs.h. */ 20438 #include <string.h> 20439 struct foo { int foo; } xx; 20440 extern int strtok_r (struct foo*); 20441 int 20442 main () 20443 { 20444 strtok_r(&xx) 20445 ; 20446 return 0; 20447 } 20448 _ACEOF 20449 if ac_fn_c_try_compile "$LINENO"; then : 20450 eval "ac_cv_func_strtok_r_noproto=yes" 20451 else 20452 eval "ac_cv_func_strtok_r_noproto=no" 20453 fi 20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20455 fi 20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5 20457 $as_echo "$ac_cv_func_strtok_r_noproto" >&6; } 20458 if test "$ac_cv_func_strtok_r_noproto" = yes; then 20459 20460 $as_echo "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h 20461 20462 fi 20463 fi 20464 20465 20466 20467 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5 20469 $as_echo_n "checking if strsvis needs a prototype... " >&6; } 20470 if test "${ac_cv_func_strsvis_noproto+set}" = set; then : 20471 $as_echo_n "(cached) " >&6 20472 else 20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20474 /* end confdefs.h. */ 20475 #ifdef HAVE_VIS_H 20476 #include <vis.h> 20477 #endif 20478 struct foo { int foo; } xx; 20479 extern int strsvis (struct foo*); 20480 int 20481 main () 20482 { 20483 strsvis(&xx) 20484 ; 20485 return 0; 20486 } 20487 _ACEOF 20488 if ac_fn_c_try_compile "$LINENO"; then : 20489 eval "ac_cv_func_strsvis_noproto=yes" 20490 else 20491 eval "ac_cv_func_strsvis_noproto=no" 20492 fi 20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20494 fi 20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5 20496 $as_echo "$ac_cv_func_strsvis_noproto" >&6; } 20497 if test "$ac_cv_func_strsvis_noproto" = yes; then 20498 20499 $as_echo "#define NEED_STRSVIS_PROTO 1" >>confdefs.h 20500 20501 fi 20502 fi 20503 20504 if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then 20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5 20506 $as_echo_n "checking if strsvisx needs a prototype... " >&6; } 20507 if test "${ac_cv_func_strsvisx_noproto+set}" = set; then : 20508 $as_echo_n "(cached) " >&6 20509 else 20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20511 /* end confdefs.h. */ 20512 #ifdef HAVE_VIS_H 20513 #include <vis.h> 20514 #endif 20515 struct foo { int foo; } xx; 20516 extern int strsvisx (struct foo*); 20517 int 20518 main () 20519 { 20520 strsvisx(&xx) 20521 ; 20522 return 0; 20523 } 20524 _ACEOF 20525 if ac_fn_c_try_compile "$LINENO"; then : 20526 eval "ac_cv_func_strsvisx_noproto=yes" 20527 else 20528 eval "ac_cv_func_strsvisx_noproto=no" 20529 fi 20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20531 fi 20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5 20533 $as_echo "$ac_cv_func_strsvisx_noproto" >&6; } 20534 if test "$ac_cv_func_strsvisx_noproto" = yes; then 20535 20536 $as_echo "#define NEED_STRSVISX_PROTO 1" >>confdefs.h 20537 20538 fi 20539 fi 20540 20541 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5 20543 $as_echo_n "checking if strunvis needs a prototype... " >&6; } 20544 if test "${ac_cv_func_strunvis_noproto+set}" = set; then : 20545 $as_echo_n "(cached) " >&6 20546 else 20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20548 /* end confdefs.h. */ 20549 #ifdef HAVE_VIS_H 20550 #include <vis.h> 20551 #endif 20552 struct foo { int foo; } xx; 20553 extern int strunvis (struct foo*); 20554 int 20555 main () 20556 { 20557 strunvis(&xx) 20558 ; 20559 return 0; 20560 } 20561 _ACEOF 20562 if ac_fn_c_try_compile "$LINENO"; then : 20563 eval "ac_cv_func_strunvis_noproto=yes" 20564 else 20565 eval "ac_cv_func_strunvis_noproto=no" 20566 fi 20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20568 fi 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5 20570 $as_echo "$ac_cv_func_strunvis_noproto" >&6; } 20571 if test "$ac_cv_func_strunvis_noproto" = yes; then 20572 20573 $as_echo "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h 20574 20575 fi 20576 fi 20577 20578 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5 20580 $as_echo_n "checking if strvis needs a prototype... " >&6; } 20581 if test "${ac_cv_func_strvis_noproto+set}" = set; then : 20582 $as_echo_n "(cached) " >&6 20583 else 20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20585 /* end confdefs.h. */ 20586 #ifdef HAVE_VIS_H 20587 #include <vis.h> 20588 #endif 20589 struct foo { int foo; } xx; 20590 extern int strvis (struct foo*); 20591 int 20592 main () 20593 { 20594 strvis(&xx) 20595 ; 20596 return 0; 20597 } 20598 _ACEOF 20599 if ac_fn_c_try_compile "$LINENO"; then : 20600 eval "ac_cv_func_strvis_noproto=yes" 20601 else 20602 eval "ac_cv_func_strvis_noproto=no" 20603 fi 20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20605 fi 20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5 20607 $as_echo "$ac_cv_func_strvis_noproto" >&6; } 20608 if test "$ac_cv_func_strvis_noproto" = yes; then 20609 20610 $as_echo "#define NEED_STRVIS_PROTO 1" >>confdefs.h 20611 20612 fi 20613 fi 20614 20615 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5 20617 $as_echo_n "checking if strvisx needs a prototype... " >&6; } 20618 if test "${ac_cv_func_strvisx_noproto+set}" = set; then : 20619 $as_echo_n "(cached) " >&6 20620 else 20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20622 /* end confdefs.h. */ 20623 #ifdef HAVE_VIS_H 20624 #include <vis.h> 20625 #endif 20626 struct foo { int foo; } xx; 20627 extern int strvisx (struct foo*); 20628 int 20629 main () 20630 { 20631 strvisx(&xx) 20632 ; 20633 return 0; 20634 } 20635 _ACEOF 20636 if ac_fn_c_try_compile "$LINENO"; then : 20637 eval "ac_cv_func_strvisx_noproto=yes" 20638 else 20639 eval "ac_cv_func_strvisx_noproto=no" 20640 fi 20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20642 fi 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5 20644 $as_echo "$ac_cv_func_strvisx_noproto" >&6; } 20645 if test "$ac_cv_func_strvisx_noproto" = yes; then 20646 20647 $as_echo "#define NEED_STRVISX_PROTO 1" >>confdefs.h 20648 20649 fi 20650 fi 20651 20652 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5 20654 $as_echo_n "checking if svis needs a prototype... " >&6; } 20655 if test "${ac_cv_func_svis_noproto+set}" = set; then : 20656 $as_echo_n "(cached) " >&6 20657 else 20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20659 /* end confdefs.h. */ 20660 #ifdef HAVE_VIS_H 20661 #include <vis.h> 20662 #endif 20663 struct foo { int foo; } xx; 20664 extern int svis (struct foo*); 20665 int 20666 main () 20667 { 20668 svis(&xx) 20669 ; 20670 return 0; 20671 } 20672 _ACEOF 20673 if ac_fn_c_try_compile "$LINENO"; then : 20674 eval "ac_cv_func_svis_noproto=yes" 20675 else 20676 eval "ac_cv_func_svis_noproto=no" 20677 fi 20678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20679 fi 20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5 20681 $as_echo "$ac_cv_func_svis_noproto" >&6; } 20682 if test "$ac_cv_func_svis_noproto" = yes; then 20683 20684 $as_echo "#define NEED_SVIS_PROTO 1" >>confdefs.h 20685 20686 fi 20687 fi 20688 20689 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5 20691 $as_echo_n "checking if unvis needs a prototype... " >&6; } 20692 if test "${ac_cv_func_unvis_noproto+set}" = set; then : 20693 $as_echo_n "(cached) " >&6 20694 else 20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20696 /* end confdefs.h. */ 20697 #ifdef HAVE_VIS_H 20698 #include <vis.h> 20699 #endif 20700 struct foo { int foo; } xx; 20701 extern int unvis (struct foo*); 20702 int 20703 main () 20704 { 20705 unvis(&xx) 20706 ; 20707 return 0; 20708 } 20709 _ACEOF 20710 if ac_fn_c_try_compile "$LINENO"; then : 20711 eval "ac_cv_func_unvis_noproto=yes" 20712 else 20713 eval "ac_cv_func_unvis_noproto=no" 20714 fi 20715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20716 fi 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5 20718 $as_echo "$ac_cv_func_unvis_noproto" >&6; } 20719 if test "$ac_cv_func_unvis_noproto" = yes; then 20720 20721 $as_echo "#define NEED_UNVIS_PROTO 1" >>confdefs.h 20722 20723 fi 20724 fi 20725 20726 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5 20728 $as_echo_n "checking if vis needs a prototype... " >&6; } 20729 if test "${ac_cv_func_vis_noproto+set}" = set; then : 20730 $as_echo_n "(cached) " >&6 20731 else 20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20733 /* end confdefs.h. */ 20734 #ifdef HAVE_VIS_H 20735 #include <vis.h> 20736 #endif 20737 struct foo { int foo; } xx; 20738 extern int vis (struct foo*); 20739 int 20740 main () 20741 { 20742 vis(&xx) 20743 ; 20744 return 0; 20745 } 20746 _ACEOF 20747 if ac_fn_c_try_compile "$LINENO"; then : 20748 eval "ac_cv_func_vis_noproto=yes" 20749 else 20750 eval "ac_cv_func_vis_noproto=no" 20751 fi 20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20753 fi 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5 20755 $as_echo "$ac_cv_func_vis_noproto" >&6; } 20756 if test "$ac_cv_func_vis_noproto" = yes; then 20757 20758 $as_echo "#define NEED_VIS_PROTO 1" >>confdefs.h 20759 20760 fi 20761 fi 20762 20763 20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5 20765 $as_echo_n "checking checking for dirfd... " >&6; } 20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20767 /* end confdefs.h. */ 20768 #include <sys/types.h> 20769 #ifdef HAVE_DIRENT_H 20770 #include <dirent.h> 20771 #endif 20772 20773 int 20774 main () 20775 { 20776 DIR *d = 0; dirfd(d); 20777 ; 20778 return 0; 20779 } 20780 _ACEOF 20781 if ac_fn_c_try_link "$LINENO"; then : 20782 ac_rk_have_dirfd=yes 20783 else 20784 ac_rk_have_dirfd=no 20785 fi 20786 rm -f core conftest.err conftest.$ac_objext \ 20787 conftest$ac_exeext conftest.$ac_ext 20788 if test "$ac_rk_have_dirfd" = "yes" ; then 20789 20790 cat >>confdefs.h <<_ACEOF 20791 #define HAVE_DIRFD 1 20792 _ACEOF 20793 20794 fi 20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5 20796 $as_echo "$ac_rk_have_dirfd" >&6; } 20797 20798 20799 20800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5 20801 $as_echo_n "checking for dd_fd in DIR... " >&6; } 20802 if test "${ac_cv_type_dir_dd_fd+set}" = set; then : 20803 $as_echo_n "(cached) " >&6 20804 else 20805 20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20807 /* end confdefs.h. */ 20808 #include <sys/types.h> 20809 #ifdef HAVE_DIRENT_H 20810 #include <dirent.h> 20811 #endif 20812 int 20813 main () 20814 { 20815 DIR x; memset(&x, 0, sizeof(x)); x.dd_fd 20816 ; 20817 return 0; 20818 } 20819 _ACEOF 20820 if ac_fn_c_try_compile "$LINENO"; then : 20821 ac_cv_type_dir_dd_fd=yes 20822 else 20823 ac_cv_type_dir_dd_fd=no 20824 fi 20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20826 20827 fi 20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5 20829 $as_echo "$ac_cv_type_dir_dd_fd" >&6; } 20830 if test "$ac_cv_type_dir_dd_fd" = yes; then 20831 20832 20833 $as_echo "#define HAVE_DIR_DD_FD 1" >>confdefs.h 20834 20835 20836 fi 20837 20838 20839 20840 20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 20842 $as_echo_n "checking for inet_aton... " >&6; } 20843 if test "${ac_cv_func_inet_aton+set}" = set; then : 20844 $as_echo_n "(cached) " >&6 20845 else 20846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20847 /* end confdefs.h. */ 20848 #ifdef HAVE_SYS_TYPES_H 20849 #include <sys/types.h> 20850 #endif 20851 #ifdef HAVE_SYS_SOCKET_H 20852 #include <sys/socket.h> 20853 #endif 20854 #ifdef HAVE_NETINET_IN_H 20855 #include <netinet/in.h> 20856 #endif 20857 #ifdef HAVE_ARPA_INET_H 20858 #include <arpa/inet.h> 20859 #endif 20860 int 20861 main () 20862 { 20863 20864 /* The GNU C library defines this for functions which it implements 20865 to always fail with ENOSYS. Some functions are actually named 20866 something starting with __ and the normal name is an alias. */ 20867 #if defined (__stub_inet_aton) || defined (__stub___inet_aton) 20868 choke me 20869 #else 20870 inet_aton(0,0); 20871 #endif 20872 20873 ; 20874 return 0; 20875 } 20876 _ACEOF 20877 if ac_fn_c_try_link "$LINENO"; then : 20878 eval "ac_cv_func_inet_aton=yes" 20879 else 20880 eval "ac_cv_func_inet_aton=no" 20881 fi 20882 rm -f core conftest.err conftest.$ac_objext \ 20883 conftest$ac_exeext conftest.$ac_ext 20884 fi 20885 20886 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 20887 20888 cat >>confdefs.h <<_ACEOF 20889 #define HAVE_INET_ATON 1 20890 _ACEOF 20891 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20893 $as_echo "yes" >&6; } 20894 else 20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20896 $as_echo "no" >&6; } 20897 case " $LIBOBJS " in 20898 *" inet_aton.$ac_objext "* ) ;; 20899 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 20900 ;; 20901 esac 20902 20903 fi 20904 20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5 20906 $as_echo_n "checking for inet_ntop... " >&6; } 20907 if test "${ac_cv_func_inet_ntop+set}" = set; then : 20908 $as_echo_n "(cached) " >&6 20909 else 20910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20911 /* end confdefs.h. */ 20912 #ifdef HAVE_SYS_TYPES_H 20913 #include <sys/types.h> 20914 #endif 20915 #ifdef HAVE_SYS_SOCKET_H 20916 #include <sys/socket.h> 20917 #endif 20918 #ifdef HAVE_NETINET_IN_H 20919 #include <netinet/in.h> 20920 #endif 20921 #ifdef HAVE_ARPA_INET_H 20922 #include <arpa/inet.h> 20923 #endif 20924 int 20925 main () 20926 { 20927 20928 /* The GNU C library defines this for functions which it implements 20929 to always fail with ENOSYS. Some functions are actually named 20930 something starting with __ and the normal name is an alias. */ 20931 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 20932 choke me 20933 #else 20934 inet_ntop(0, 0, 0, 0); 20935 #endif 20936 20937 ; 20938 return 0; 20939 } 20940 _ACEOF 20941 if ac_fn_c_try_link "$LINENO"; then : 20942 eval "ac_cv_func_inet_ntop=yes" 20943 else 20944 eval "ac_cv_func_inet_ntop=no" 20945 fi 20946 rm -f core conftest.err conftest.$ac_objext \ 20947 conftest$ac_exeext conftest.$ac_ext 20948 fi 20949 20950 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 20951 20952 cat >>confdefs.h <<_ACEOF 20953 #define HAVE_INET_NTOP 1 20954 _ACEOF 20955 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20957 $as_echo "yes" >&6; } 20958 else 20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20960 $as_echo "no" >&6; } 20961 case " $LIBOBJS " in 20962 *" inet_ntop.$ac_objext "* ) ;; 20963 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 20964 ;; 20965 esac 20966 20967 fi 20968 20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 20970 $as_echo_n "checking for inet_pton... " >&6; } 20971 if test "${ac_cv_func_inet_pton+set}" = set; then : 20972 $as_echo_n "(cached) " >&6 20973 else 20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20975 /* end confdefs.h. */ 20976 #ifdef HAVE_SYS_TYPES_H 20977 #include <sys/types.h> 20978 #endif 20979 #ifdef HAVE_SYS_SOCKET_H 20980 #include <sys/socket.h> 20981 #endif 20982 #ifdef HAVE_NETINET_IN_H 20983 #include <netinet/in.h> 20984 #endif 20985 #ifdef HAVE_ARPA_INET_H 20986 #include <arpa/inet.h> 20987 #endif 20988 int 20989 main () 20990 { 20991 20992 /* The GNU C library defines this for functions which it implements 20993 to always fail with ENOSYS. Some functions are actually named 20994 something starting with __ and the normal name is an alias. */ 20995 #if defined (__stub_inet_pton) || defined (__stub___inet_pton) 20996 choke me 20997 #else 20998 inet_pton(0,0,0); 20999 #endif 21000 21001 ; 21002 return 0; 21003 } 21004 _ACEOF 21005 if ac_fn_c_try_link "$LINENO"; then : 21006 eval "ac_cv_func_inet_pton=yes" 21007 else 21008 eval "ac_cv_func_inet_pton=no" 21009 fi 21010 rm -f core conftest.err conftest.$ac_objext \ 21011 conftest$ac_exeext conftest.$ac_ext 21012 fi 21013 21014 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 21015 21016 cat >>confdefs.h <<_ACEOF 21017 #define HAVE_INET_PTON 1 21018 _ACEOF 21019 21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21021 $as_echo "yes" >&6; } 21022 else 21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21024 $as_echo "no" >&6; } 21025 case " $LIBOBJS " in 21026 *" inet_pton.$ac_objext "* ) ;; 21027 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 21028 ;; 21029 esac 21030 21031 fi 21032 21033 21034 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 21036 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; } 21037 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then : 21038 $as_echo_n "(cached) " >&6 21039 else 21040 21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21042 /* end confdefs.h. */ 21043 #include <sys/types.h> 21044 #include <sys/socket.h> 21045 int 21046 main () 21047 { 21048 struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len 21049 ; 21050 return 0; 21051 } 21052 _ACEOF 21053 if ac_fn_c_try_compile "$LINENO"; then : 21054 ac_cv_type_struct_sockaddr_sa_len=yes 21055 else 21056 ac_cv_type_struct_sockaddr_sa_len=no 21057 fi 21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21059 21060 fi 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 21062 $as_echo "$ac_cv_type_struct_sockaddr_sa_len" >&6; } 21063 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 21064 21065 21066 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 21067 21068 21069 fi 21070 21071 21072 21073 if test "$ac_cv_func_getaddrinfo" = "yes"; then 21074 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo handles numeric services" >&5 21076 $as_echo_n "checking if getaddrinfo handles numeric services... " >&6; } 21077 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then : 21078 $as_echo_n "(cached) " >&6 21079 else 21080 if test "$cross_compiling" = yes; then : 21081 ac_cv_func_getaddrinfo_numserv=yes 21082 else 21083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21084 /* end confdefs.h. */ 21085 #include <stdio.h> 21086 #include <sys/types.h> 21087 #include <sys/socket.h> 21088 #include <netdb.h> 21089 21090 int 21091 main(int argc, char **argv) 21092 { 21093 struct addrinfo hints, *ai; 21094 memset(&hints, 0, sizeof(hints)); 21095 hints.ai_flags = AI_PASSIVE; 21096 hints.ai_socktype = SOCK_STREAM; 21097 hints.ai_family = PF_UNSPEC; 21098 if(getaddrinfo(NULL, "17", &hints, &ai) != 0) 21099 return 1; 21100 if(getaddrinfo(NULL, "0", &hints, &ai) != 0) 21101 return 1; 21102 return 0; 21103 } 21104 21105 _ACEOF 21106 if ac_fn_c_try_run "$LINENO"; then : 21107 ac_cv_func_getaddrinfo_numserv=yes 21108 else 21109 ac_cv_func_getaddrinfo_numserv=no 21110 fi 21111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21112 conftest.$ac_objext conftest.beam conftest.$ac_ext 21113 fi 21114 21115 fi 21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo_numserv" >&5 21117 $as_echo "$ac_cv_func_getaddrinfo_numserv" >&6; } 21118 if test "$ac_cv_func_getaddrinfo_numserv" = no; then 21119 case " $LIBOBJS " in 21120 *" getaddrinfo.$ac_objext "* ) ;; 21121 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 21122 ;; 21123 esac 21124 21125 case " $LIBOBJS " in 21126 *" freeaddrinfo.$ac_objext "* ) ;; 21127 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 21128 ;; 21129 esac 21130 21131 fi 21132 fi 21133 21134 21135 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5 21137 $as_echo_n "checking if setenv needs a prototype... " >&6; } 21138 if test "${ac_cv_func_setenv_noproto+set}" = set; then : 21139 $as_echo_n "(cached) " >&6 21140 else 21141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21142 /* end confdefs.h. */ 21143 #include <stdlib.h> 21144 struct foo { int foo; } xx; 21145 extern int setenv (struct foo*); 21146 int 21147 main () 21148 { 21149 setenv(&xx) 21150 ; 21151 return 0; 21152 } 21153 _ACEOF 21154 if ac_fn_c_try_compile "$LINENO"; then : 21155 eval "ac_cv_func_setenv_noproto=yes" 21156 else 21157 eval "ac_cv_func_setenv_noproto=no" 21158 fi 21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21160 fi 21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5 21162 $as_echo "$ac_cv_func_setenv_noproto" >&6; } 21163 if test "$ac_cv_func_setenv_noproto" = yes; then 21164 21165 $as_echo "#define NEED_SETENV_PROTO 1" >>confdefs.h 21166 21167 fi 21168 fi 21169 21170 21171 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5 21173 $as_echo_n "checking if unsetenv needs a prototype... " >&6; } 21174 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then : 21175 $as_echo_n "(cached) " >&6 21176 else 21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21178 /* end confdefs.h. */ 21179 #include <stdlib.h> 21180 struct foo { int foo; } xx; 21181 extern int unsetenv (struct foo*); 21182 int 21183 main () 21184 { 21185 unsetenv(&xx) 21186 ; 21187 return 0; 21188 } 21189 _ACEOF 21190 if ac_fn_c_try_compile "$LINENO"; then : 21191 eval "ac_cv_func_unsetenv_noproto=yes" 21192 else 21193 eval "ac_cv_func_unsetenv_noproto=no" 21194 fi 21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21196 fi 21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5 21198 $as_echo "$ac_cv_func_unsetenv_noproto" >&6; } 21199 if test "$ac_cv_func_unsetenv_noproto" = yes; then 21200 21201 $as_echo "#define NEED_UNSETENV_PROTO 1" >>confdefs.h 21202 21203 fi 21204 fi 21205 21206 21207 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5 21209 $as_echo_n "checking if gethostname needs a prototype... " >&6; } 21210 if test "${ac_cv_func_gethostname_noproto+set}" = set; then : 21211 $as_echo_n "(cached) " >&6 21212 else 21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21214 /* end confdefs.h. */ 21215 #include <unistd.h> 21216 struct foo { int foo; } xx; 21217 extern int gethostname (struct foo*); 21218 int 21219 main () 21220 { 21221 gethostname(&xx) 21222 ; 21223 return 0; 21224 } 21225 _ACEOF 21226 if ac_fn_c_try_compile "$LINENO"; then : 21227 eval "ac_cv_func_gethostname_noproto=yes" 21228 else 21229 eval "ac_cv_func_gethostname_noproto=no" 21230 fi 21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21232 fi 21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5 21234 $as_echo "$ac_cv_func_gethostname_noproto" >&6; } 21235 if test "$ac_cv_func_gethostname_noproto" = yes; then 21236 21237 $as_echo "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h 21238 21239 fi 21240 fi 21241 21242 21243 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5 21245 $as_echo_n "checking if mkstemp needs a prototype... " >&6; } 21246 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then : 21247 $as_echo_n "(cached) " >&6 21248 else 21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21250 /* end confdefs.h. */ 21251 #include <unistd.h> 21252 struct foo { int foo; } xx; 21253 extern int mkstemp (struct foo*); 21254 int 21255 main () 21256 { 21257 mkstemp(&xx) 21258 ; 21259 return 0; 21260 } 21261 _ACEOF 21262 if ac_fn_c_try_compile "$LINENO"; then : 21263 eval "ac_cv_func_mkstemp_noproto=yes" 21264 else 21265 eval "ac_cv_func_mkstemp_noproto=no" 21266 fi 21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21268 fi 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5 21270 $as_echo "$ac_cv_func_mkstemp_noproto" >&6; } 21271 if test "$ac_cv_func_mkstemp_noproto" = yes; then 21272 21273 $as_echo "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h 21274 21275 fi 21276 fi 21277 21278 21279 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5 21281 $as_echo_n "checking if getusershell needs a prototype... " >&6; } 21282 if test "${ac_cv_func_getusershell_noproto+set}" = set; then : 21283 $as_echo_n "(cached) " >&6 21284 else 21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21286 /* end confdefs.h. */ 21287 #include <unistd.h> 21288 struct foo { int foo; } xx; 21289 extern int getusershell (struct foo*); 21290 int 21291 main () 21292 { 21293 getusershell(&xx) 21294 ; 21295 return 0; 21296 } 21297 _ACEOF 21298 if ac_fn_c_try_compile "$LINENO"; then : 21299 eval "ac_cv_func_getusershell_noproto=yes" 21300 else 21301 eval "ac_cv_func_getusershell_noproto=no" 21302 fi 21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21304 fi 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5 21306 $as_echo "$ac_cv_func_getusershell_noproto" >&6; } 21307 if test "$ac_cv_func_getusershell_noproto" = yes; then 21308 21309 $as_echo "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h 21310 21311 fi 21312 fi 21313 21314 21315 if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then 21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5 21317 $as_echo_n "checking if daemon needs a prototype... " >&6; } 21318 if test "${ac_cv_func_daemon_noproto+set}" = set; then : 21319 $as_echo_n "(cached) " >&6 21320 else 21321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21322 /* end confdefs.h. */ 21323 #include <unistd.h> 21324 struct foo { int foo; } xx; 21325 extern int daemon (struct foo*); 21326 int 21327 main () 21328 { 21329 daemon(&xx) 21330 ; 21331 return 0; 21332 } 21333 _ACEOF 21334 if ac_fn_c_try_compile "$LINENO"; then : 21335 eval "ac_cv_func_daemon_noproto=yes" 21336 else 21337 eval "ac_cv_func_daemon_noproto=no" 21338 fi 21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21340 fi 21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5 21342 $as_echo "$ac_cv_func_daemon_noproto" >&6; } 21343 if test "$ac_cv_func_daemon_noproto" = yes; then 21344 21345 $as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h 21346 21347 fi 21348 fi 21349 21350 21351 if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then 21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5 21353 $as_echo_n "checking if iruserok needs a prototype... " >&6; } 21354 if test "${ac_cv_func_iruserok_noproto+set}" = set; then : 21355 $as_echo_n "(cached) " >&6 21356 else 21357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21358 /* end confdefs.h. */ 21359 21360 #ifdef HAVE_SYS_TYPES_H 21361 #include <sys/types.h> 21362 #endif 21363 #ifdef HAVE_SYS_SOCKET_H 21364 #include <sys/socket.h> 21365 #endif 21366 #ifdef HAVE_NETINET_IN_H 21367 #include <netinet/in.h> 21368 #endif 21369 #ifdef HAVE_ARPA_INET_H 21370 #include <arpa/inet.h> 21371 #endif 21372 #ifdef HAVE_NETDB_H 21373 #include <netdb.h> 21374 #endif 21375 #ifdef HAVE_UNISTD_H 21376 #include <unistd.h> 21377 #endif 21378 struct foo { int foo; } xx; 21379 extern int iruserok (struct foo*); 21380 int 21381 main () 21382 { 21383 iruserok(&xx) 21384 ; 21385 return 0; 21386 } 21387 _ACEOF 21388 if ac_fn_c_try_compile "$LINENO"; then : 21389 eval "ac_cv_func_iruserok_noproto=yes" 21390 else 21391 eval "ac_cv_func_iruserok_noproto=no" 21392 fi 21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21394 fi 21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5 21396 $as_echo "$ac_cv_func_iruserok_noproto" >&6; } 21397 if test "$ac_cv_func_iruserok_noproto" = yes; then 21398 21399 $as_echo "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h 21400 21401 fi 21402 fi 21403 21404 21405 21406 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5 21408 $as_echo_n "checking if inet_aton needs a prototype... " >&6; } 21409 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then : 21410 $as_echo_n "(cached) " >&6 21411 else 21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21413 /* end confdefs.h. */ 21414 21415 #ifdef HAVE_SYS_TYPES_H 21416 #include <sys/types.h> 21417 #endif 21418 #ifdef HAVE_SYS_SOCKET_H 21419 #include <sys/socket.h> 21420 #endif 21421 #ifdef HAVE_NETINET_IN_H 21422 #include <netinet/in.h> 21423 #endif 21424 #ifdef HAVE_ARPA_INET_H 21425 #include <arpa/inet.h> 21426 #endif 21427 struct foo { int foo; } xx; 21428 extern int inet_aton (struct foo*); 21429 int 21430 main () 21431 { 21432 inet_aton(&xx) 21433 ; 21434 return 0; 21435 } 21436 _ACEOF 21437 if ac_fn_c_try_compile "$LINENO"; then : 21438 eval "ac_cv_func_inet_aton_noproto=yes" 21439 else 21440 eval "ac_cv_func_inet_aton_noproto=no" 21441 fi 21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21443 fi 21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5 21445 $as_echo "$ac_cv_func_inet_aton_noproto" >&6; } 21446 if test "$ac_cv_func_inet_aton_noproto" = yes; then 21447 21448 $as_echo "#define NEED_INET_ATON_PROTO 1" >>confdefs.h 21449 21450 fi 21451 fi 21452 21453 21454 21455 21456 21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5 21458 $as_echo_n "checking for crypt... " >&6; } 21459 if test "${ac_cv_funclib_crypt+set}" = set; then : 21460 $as_echo_n "(cached) " >&6 21461 else 21462 21463 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 21464 ac_save_LIBS="$LIBS" 21465 for ac_lib in "" crypt; do 21466 case "$ac_lib" in 21467 "") ;; 21468 yes) ac_lib="" ;; 21469 no) continue ;; 21470 -l*) ;; 21471 *) ac_lib="-l$ac_lib" ;; 21472 esac 21473 LIBS=" $ac_lib $ac_save_LIBS" 21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21475 /* end confdefs.h. */ 21476 21477 int 21478 main () 21479 { 21480 crypt() 21481 ; 21482 return 0; 21483 } 21484 _ACEOF 21485 if ac_fn_c_try_link "$LINENO"; then : 21486 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 21487 fi 21488 rm -f core conftest.err conftest.$ac_objext \ 21489 conftest$ac_exeext conftest.$ac_ext 21490 done 21491 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 21492 LIBS="$ac_save_LIBS" 21493 fi 21494 21495 fi 21496 21497 21498 eval "ac_res=\$ac_cv_funclib_crypt" 21499 21500 if false; then 21501 for ac_func in crypt 21502 do : 21503 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 21504 if test "x$ac_cv_func_crypt" = x""yes; then : 21505 cat >>confdefs.h <<_ACEOF 21506 #define HAVE_CRYPT 1 21507 _ACEOF 21508 21509 fi 21510 done 21511 21512 fi 21513 # crypt 21514 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21515 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21516 eval "LIB_crypt=$ac_res" 21517 21518 case "$ac_res" in 21519 yes) 21520 eval "ac_cv_func_crypt=yes" 21521 eval "LIB_crypt=" 21522 cat >>confdefs.h <<_ACEOF 21523 #define $ac_tr_func 1 21524 _ACEOF 21525 21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21527 $as_echo "yes" >&6; } 21528 ;; 21529 no) 21530 eval "ac_cv_func_crypt=no" 21531 eval "LIB_crypt=" 21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21533 $as_echo "no" >&6; } 21534 ;; 21535 *) 21536 eval "ac_cv_func_crypt=yes" 21537 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21538 cat >>confdefs.h <<_ACEOF 21539 #define $ac_tr_func 1 21540 _ACEOF 21541 21542 cat >>confdefs.h <<_ACEOF 21543 #define $ac_tr_lib 1 21544 _ACEOF 21545 21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 21547 $as_echo "yes, in $ac_res" >&6; } 21548 ;; 21549 esac 21550 21551 21552 21553 21554 21555 21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5 21557 $as_echo_n "checking if strerror_r is compatible with system prototype... " >&6; } 21558 if test "${ac_cv_func_strerror_r_proto_compat+set}" = set; then : 21559 $as_echo_n "(cached) " >&6 21560 else 21561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21562 /* end confdefs.h. */ 21563 21564 #include <stdio.h> 21565 #include <string.h> 21566 21567 int 21568 main () 21569 { 21570 int strerror_r(int, char *, size_t) 21571 ; 21572 return 0; 21573 } 21574 _ACEOF 21575 if ac_fn_c_try_compile "$LINENO"; then : 21576 eval "ac_cv_func_strerror_r_proto_compat=yes" 21577 else 21578 eval "ac_cv_func_strerror_r_proto_compat=no" 21579 fi 21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21581 fi 21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5 21583 $as_echo "$ac_cv_func_strerror_r_proto_compat" >&6; } 21584 21585 if test "$ac_cv_func_strerror_r_proto_compat" = yes; then 21586 21587 $as_echo "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h 21588 21589 fi 21590 21591 21592 21593 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 21594 if test "x$ac_cv_func_strerror_r" = x""yes; then : 21595 21596 cat >>confdefs.h <<_ACEOF 21597 #define HAVE_STRERROR_R 1 21598 _ACEOF 21599 21600 fi 21601 21602 21603 21604 21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5 21606 $as_echo_n "checking if gethostbyname is compatible with system prototype... " >&6; } 21607 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then : 21608 $as_echo_n "(cached) " >&6 21609 else 21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21611 /* end confdefs.h. */ 21612 21613 #ifdef HAVE_SYS_TYPES_H 21614 #include <sys/types.h> 21615 #endif 21616 #ifdef HAVE_SYS_SOCKET_H 21617 #include <sys/socket.h> 21618 #endif 21619 #ifdef HAVE_NETINET_IN_H 21620 #include <netinet/in.h> 21621 #endif 21622 #ifdef HAVE_ARPA_INET_H 21623 #include <arpa/inet.h> 21624 #endif 21625 #ifdef HAVE_NETDB_H 21626 #include <netdb.h> 21627 #endif 21628 21629 int 21630 main () 21631 { 21632 struct hostent *gethostbyname(const char *) 21633 ; 21634 return 0; 21635 } 21636 _ACEOF 21637 if ac_fn_c_try_compile "$LINENO"; then : 21638 eval "ac_cv_func_gethostbyname_proto_compat=yes" 21639 else 21640 eval "ac_cv_func_gethostbyname_proto_compat=no" 21641 fi 21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21643 fi 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5 21645 $as_echo "$ac_cv_func_gethostbyname_proto_compat" >&6; } 21646 21647 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 21648 21649 $as_echo "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 21650 21651 fi 21652 21653 21654 21655 21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5 21657 $as_echo_n "checking if gethostbyaddr is compatible with system prototype... " >&6; } 21658 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then : 21659 $as_echo_n "(cached) " >&6 21660 else 21661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21662 /* end confdefs.h. */ 21663 21664 #ifdef HAVE_SYS_TYPES_H 21665 #include <sys/types.h> 21666 #endif 21667 #ifdef HAVE_SYS_SOCKET_H 21668 #include <sys/socket.h> 21669 #endif 21670 #ifdef HAVE_NETINET_IN_H 21671 #include <netinet/in.h> 21672 #endif 21673 #ifdef HAVE_ARPA_INET_H 21674 #include <arpa/inet.h> 21675 #endif 21676 #ifdef HAVE_NETDB_H 21677 #include <netdb.h> 21678 #endif 21679 21680 int 21681 main () 21682 { 21683 struct hostent *gethostbyaddr(const void *, size_t, int) 21684 ; 21685 return 0; 21686 } 21687 _ACEOF 21688 if ac_fn_c_try_compile "$LINENO"; then : 21689 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 21690 else 21691 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 21692 fi 21693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21694 fi 21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 21696 $as_echo "$ac_cv_func_gethostbyaddr_proto_compat" >&6; } 21697 21698 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 21699 21700 $as_echo "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h 21701 21702 fi 21703 21704 21705 21706 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5 21708 $as_echo_n "checking if getservbyname is compatible with system prototype... " >&6; } 21709 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then : 21710 $as_echo_n "(cached) " >&6 21711 else 21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21713 /* end confdefs.h. */ 21714 21715 #ifdef HAVE_SYS_TYPES_H 21716 #include <sys/types.h> 21717 #endif 21718 #ifdef HAVE_SYS_SOCKET_H 21719 #include <sys/socket.h> 21720 #endif 21721 #ifdef HAVE_NETINET_IN_H 21722 #include <netinet/in.h> 21723 #endif 21724 #ifdef HAVE_ARPA_INET_H 21725 #include <arpa/inet.h> 21726 #endif 21727 #ifdef HAVE_NETDB_H 21728 #include <netdb.h> 21729 #endif 21730 21731 int 21732 main () 21733 { 21734 struct servent *getservbyname(const char *, const char *) 21735 ; 21736 return 0; 21737 } 21738 _ACEOF 21739 if ac_fn_c_try_compile "$LINENO"; then : 21740 eval "ac_cv_func_getservbyname_proto_compat=yes" 21741 else 21742 eval "ac_cv_func_getservbyname_proto_compat=no" 21743 fi 21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21745 fi 21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5 21747 $as_echo "$ac_cv_func_getservbyname_proto_compat" >&6; } 21748 21749 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 21750 21751 $as_echo "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h 21752 21753 fi 21754 21755 21756 21757 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5 21759 $as_echo_n "checking if getsockname is compatible with system prototype... " >&6; } 21760 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then : 21761 $as_echo_n "(cached) " >&6 21762 else 21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21764 /* end confdefs.h. */ 21765 21766 #ifdef HAVE_SYS_TYPES_H 21767 #include <sys/types.h> 21768 #endif 21769 #ifdef HAVE_SYS_SOCKET_H 21770 #include <sys/socket.h> 21771 #endif 21772 21773 int 21774 main () 21775 { 21776 int getsockname(int, struct sockaddr*, socklen_t*) 21777 ; 21778 return 0; 21779 } 21780 _ACEOF 21781 if ac_fn_c_try_compile "$LINENO"; then : 21782 eval "ac_cv_func_getsockname_proto_compat=yes" 21783 else 21784 eval "ac_cv_func_getsockname_proto_compat=no" 21785 fi 21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21787 fi 21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5 21789 $as_echo "$ac_cv_func_getsockname_proto_compat" >&6; } 21790 21791 if test "$ac_cv_func_getsockname_proto_compat" = yes; then 21792 21793 $as_echo "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h 21794 21795 fi 21796 21797 21798 21799 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5 21801 $as_echo_n "checking if openlog is compatible with system prototype... " >&6; } 21802 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then : 21803 $as_echo_n "(cached) " >&6 21804 else 21805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21806 /* end confdefs.h. */ 21807 21808 #ifdef HAVE_SYSLOG_H 21809 #include <syslog.h> 21810 #endif 21811 21812 int 21813 main () 21814 { 21815 void openlog(const char *, int, int) 21816 ; 21817 return 0; 21818 } 21819 _ACEOF 21820 if ac_fn_c_try_compile "$LINENO"; then : 21821 eval "ac_cv_func_openlog_proto_compat=yes" 21822 else 21823 eval "ac_cv_func_openlog_proto_compat=no" 21824 fi 21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21826 fi 21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5 21828 $as_echo "$ac_cv_func_openlog_proto_compat" >&6; } 21829 21830 if test "$ac_cv_func_openlog_proto_compat" = yes; then 21831 21832 $as_echo "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h 21833 21834 fi 21835 21836 21837 21838 21839 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5 21841 $as_echo_n "checking if crypt needs a prototype... " >&6; } 21842 if test "${ac_cv_func_crypt_noproto+set}" = set; then : 21843 $as_echo_n "(cached) " >&6 21844 else 21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21846 /* end confdefs.h. */ 21847 21848 #ifdef HAVE_CRYPT_H 21849 #include <crypt.h> 21850 #endif 21851 #ifdef HAVE_UNISTD_H 21852 #include <unistd.h> 21853 #endif 21854 21855 struct foo { int foo; } xx; 21856 extern int crypt (struct foo*); 21857 int 21858 main () 21859 { 21860 crypt(&xx) 21861 ; 21862 return 0; 21863 } 21864 _ACEOF 21865 if ac_fn_c_try_compile "$LINENO"; then : 21866 eval "ac_cv_func_crypt_noproto=yes" 21867 else 21868 eval "ac_cv_func_crypt_noproto=no" 21869 fi 21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21871 fi 21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5 21873 $as_echo "$ac_cv_func_crypt_noproto" >&6; } 21874 if test "$ac_cv_func_crypt_noproto" = yes; then 21875 21876 $as_echo "#define NEED_CRYPT_PROTO 1" >>confdefs.h 21877 21878 fi 21879 fi 21880 21881 21882 21883 21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5 21885 $as_echo_n "checking for h_errno... " >&6; } 21886 if test "${ac_cv_var_h_errno+set}" = set; then : 21887 $as_echo_n "(cached) " >&6 21888 else 21889 21890 21891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21892 /* end confdefs.h. */ 21893 #ifdef HAVE_SYS_TYPES_H 21894 #include <sys/types.h> 21895 #endif 21896 #ifdef HAVE_NETDB_H 21897 #include <netdb.h> 21898 #endif 21899 #ifdef HAVE_WS2TCPIP_H 21900 #include <ws2tcpip.h> 21901 #endif 21902 21903 void * foo(void) { return &h_errno; } 21904 int 21905 main () 21906 { 21907 foo() 21908 ; 21909 return 0; 21910 } 21911 _ACEOF 21912 if ac_fn_c_try_link "$LINENO"; then : 21913 ac_cv_var_h_errno=yes 21914 else 21915 ac_cv_var_h_errno=no 21916 fi 21917 rm -f core conftest.err conftest.$ac_objext \ 21918 conftest$ac_exeext conftest.$ac_ext 21919 if test "$ac_cv_var_h_errno" != yes ; then 21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21921 /* end confdefs.h. */ 21922 #ifdef HAVE_SYS_TYPES_H 21923 #include <sys/types.h> 21924 #endif 21925 #ifdef HAVE_NETDB_H 21926 #include <netdb.h> 21927 #endif 21928 #ifdef HAVE_WS2TCPIP_H 21929 #include <ws2tcpip.h> 21930 #endif 21931 21932 extern int h_errno; 21933 int foo(void) { return h_errno; } 21934 int 21935 main () 21936 { 21937 foo() 21938 ; 21939 return 0; 21940 } 21941 _ACEOF 21942 if ac_fn_c_try_link "$LINENO"; then : 21943 ac_cv_var_h_errno=yes 21944 else 21945 ac_cv_var_h_errno=no 21946 fi 21947 rm -f core conftest.err conftest.$ac_objext \ 21948 conftest$ac_exeext conftest.$ac_ext 21949 fi 21950 21951 fi 21952 21953 ac_foo=`eval echo \\$ac_cv_var_h_errno` 21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 21955 $as_echo "$ac_foo" >&6; } 21956 if test "$ac_foo" = yes; then 21957 21958 cat >>confdefs.h <<_ACEOF 21959 #define HAVE_H_ERRNO 1 21960 _ACEOF 21961 21962 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H 21963 #include <sys/types.h> 21964 #endif 21965 #ifdef HAVE_NETDB_H 21966 #include <netdb.h> 21967 #endif 21968 #ifdef HAVE_WS2TCPIP_H 21969 #include <ws2tcpip.h> 21970 #endif 21971 21972 " 21973 if test "x$ac_cv_have_decl_h_errno" = x""yes; then : 21974 ac_have_decl=1 21975 else 21976 ac_have_decl=0 21977 fi 21978 21979 cat >>confdefs.h <<_ACEOF 21980 #define HAVE_DECL_H_ERRNO $ac_have_decl 21981 _ACEOF 21982 21983 fi 21984 21985 21986 21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5 21988 $as_echo_n "checking for h_errlist... " >&6; } 21989 if test "${ac_cv_var_h_errlist+set}" = set; then : 21990 $as_echo_n "(cached) " >&6 21991 else 21992 21993 21994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21995 /* end confdefs.h. */ 21996 #ifdef HAVE_NETDB_H 21997 #include <netdb.h> 21998 #endif 21999 #ifdef HAVE_WS2TCPIP_H 22000 #include <ws2tcpip.h> 22001 #endif 22002 void * foo(void) { return &h_errlist; } 22003 int 22004 main () 22005 { 22006 foo() 22007 ; 22008 return 0; 22009 } 22010 _ACEOF 22011 if ac_fn_c_try_link "$LINENO"; then : 22012 ac_cv_var_h_errlist=yes 22013 else 22014 ac_cv_var_h_errlist=no 22015 fi 22016 rm -f core conftest.err conftest.$ac_objext \ 22017 conftest$ac_exeext conftest.$ac_ext 22018 if test "$ac_cv_var_h_errlist" != yes ; then 22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22020 /* end confdefs.h. */ 22021 #ifdef HAVE_NETDB_H 22022 #include <netdb.h> 22023 #endif 22024 #ifdef HAVE_WS2TCPIP_H 22025 #include <ws2tcpip.h> 22026 #endif 22027 extern int h_errlist; 22028 int foo(void) { return h_errlist; } 22029 int 22030 main () 22031 { 22032 foo() 22033 ; 22034 return 0; 22035 } 22036 _ACEOF 22037 if ac_fn_c_try_link "$LINENO"; then : 22038 ac_cv_var_h_errlist=yes 22039 else 22040 ac_cv_var_h_errlist=no 22041 fi 22042 rm -f core conftest.err conftest.$ac_objext \ 22043 conftest$ac_exeext conftest.$ac_ext 22044 fi 22045 22046 fi 22047 22048 ac_foo=`eval echo \\$ac_cv_var_h_errlist` 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22050 $as_echo "$ac_foo" >&6; } 22051 if test "$ac_foo" = yes; then 22052 22053 cat >>confdefs.h <<_ACEOF 22054 #define HAVE_H_ERRLIST 1 22055 _ACEOF 22056 22057 ac_fn_c_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H 22058 #include <netdb.h> 22059 #endif 22060 #ifdef HAVE_WS2TCPIP_H 22061 #include <ws2tcpip.h> 22062 #endif 22063 " 22064 if test "x$ac_cv_have_decl_h_errlist" = x""yes; then : 22065 ac_have_decl=1 22066 else 22067 ac_have_decl=0 22068 fi 22069 22070 cat >>confdefs.h <<_ACEOF 22071 #define HAVE_DECL_H_ERRLIST $ac_have_decl 22072 _ACEOF 22073 22074 fi 22075 22076 22077 22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5 22079 $as_echo_n "checking for h_nerr... " >&6; } 22080 if test "${ac_cv_var_h_nerr+set}" = set; then : 22081 $as_echo_n "(cached) " >&6 22082 else 22083 22084 22085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22086 /* end confdefs.h. */ 22087 #ifdef HAVE_NETDB_H 22088 #include <netdb.h> 22089 #endif 22090 #ifdef HAVE_WS2TCPIP_H 22091 #include <ws2tcpip.h> 22092 #endif 22093 void * foo(void) { return &h_nerr; } 22094 int 22095 main () 22096 { 22097 foo() 22098 ; 22099 return 0; 22100 } 22101 _ACEOF 22102 if ac_fn_c_try_link "$LINENO"; then : 22103 ac_cv_var_h_nerr=yes 22104 else 22105 ac_cv_var_h_nerr=no 22106 fi 22107 rm -f core conftest.err conftest.$ac_objext \ 22108 conftest$ac_exeext conftest.$ac_ext 22109 if test "$ac_cv_var_h_nerr" != yes ; then 22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22111 /* end confdefs.h. */ 22112 #ifdef HAVE_NETDB_H 22113 #include <netdb.h> 22114 #endif 22115 #ifdef HAVE_WS2TCPIP_H 22116 #include <ws2tcpip.h> 22117 #endif 22118 extern int h_nerr; 22119 int foo(void) { return h_nerr; } 22120 int 22121 main () 22122 { 22123 foo() 22124 ; 22125 return 0; 22126 } 22127 _ACEOF 22128 if ac_fn_c_try_link "$LINENO"; then : 22129 ac_cv_var_h_nerr=yes 22130 else 22131 ac_cv_var_h_nerr=no 22132 fi 22133 rm -f core conftest.err conftest.$ac_objext \ 22134 conftest$ac_exeext conftest.$ac_ext 22135 fi 22136 22137 fi 22138 22139 ac_foo=`eval echo \\$ac_cv_var_h_nerr` 22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22141 $as_echo "$ac_foo" >&6; } 22142 if test "$ac_foo" = yes; then 22143 22144 cat >>confdefs.h <<_ACEOF 22145 #define HAVE_H_NERR 1 22146 _ACEOF 22147 22148 ac_fn_c_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H 22149 #include <netdb.h> 22150 #endif 22151 #ifdef HAVE_WS2TCPIP_H 22152 #include <ws2tcpip.h> 22153 #endif 22154 " 22155 if test "x$ac_cv_have_decl_h_nerr" = x""yes; then : 22156 ac_have_decl=1 22157 else 22158 ac_have_decl=0 22159 fi 22160 22161 cat >>confdefs.h <<_ACEOF 22162 #define HAVE_DECL_H_NERR $ac_have_decl 22163 _ACEOF 22164 22165 fi 22166 22167 22168 22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 22170 $as_echo_n "checking for __progname... " >&6; } 22171 if test "${ac_cv_var___progname+set}" = set; then : 22172 $as_echo_n "(cached) " >&6 22173 else 22174 22175 22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22177 /* end confdefs.h. */ 22178 #ifdef HAVE_ERR_H 22179 #include <err.h> 22180 #endif 22181 void * foo(void) { return &__progname; } 22182 int 22183 main () 22184 { 22185 foo() 22186 ; 22187 return 0; 22188 } 22189 _ACEOF 22190 if ac_fn_c_try_link "$LINENO"; then : 22191 ac_cv_var___progname=yes 22192 else 22193 ac_cv_var___progname=no 22194 fi 22195 rm -f core conftest.err conftest.$ac_objext \ 22196 conftest$ac_exeext conftest.$ac_ext 22197 if test "$ac_cv_var___progname" != yes ; then 22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22199 /* end confdefs.h. */ 22200 #ifdef HAVE_ERR_H 22201 #include <err.h> 22202 #endif 22203 extern int __progname; 22204 int foo(void) { return __progname; } 22205 int 22206 main () 22207 { 22208 foo() 22209 ; 22210 return 0; 22211 } 22212 _ACEOF 22213 if ac_fn_c_try_link "$LINENO"; then : 22214 ac_cv_var___progname=yes 22215 else 22216 ac_cv_var___progname=no 22217 fi 22218 rm -f core conftest.err conftest.$ac_objext \ 22219 conftest$ac_exeext conftest.$ac_ext 22220 fi 22221 22222 fi 22223 22224 ac_foo=`eval echo \\$ac_cv_var___progname` 22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22226 $as_echo "$ac_foo" >&6; } 22227 if test "$ac_foo" = yes; then 22228 22229 cat >>confdefs.h <<_ACEOF 22230 #define HAVE___PROGNAME 1 22231 _ACEOF 22232 22233 ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H 22234 #include <err.h> 22235 #endif 22236 " 22237 if test "x$ac_cv_have_decl___progname" = x""yes; then : 22238 ac_have_decl=1 22239 else 22240 ac_have_decl=0 22241 fi 22242 22243 cat >>confdefs.h <<_ACEOF 22244 #define HAVE_DECL___PROGNAME $ac_have_decl 22245 _ACEOF 22246 22247 fi 22248 22249 22250 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " 22251 #include <stdlib.h> 22252 #ifdef HAVE_UNISTD_H 22253 #include <unistd.h> 22254 #endif 22255 " 22256 if test "x$ac_cv_have_decl_optarg" = x""yes; then : 22257 ac_have_decl=1 22258 else 22259 ac_have_decl=0 22260 fi 22261 22262 cat >>confdefs.h <<_ACEOF 22263 #define HAVE_DECL_OPTARG $ac_have_decl 22264 _ACEOF 22265 ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " 22266 #include <stdlib.h> 22267 #ifdef HAVE_UNISTD_H 22268 #include <unistd.h> 22269 #endif 22270 " 22271 if test "x$ac_cv_have_decl_optind" = x""yes; then : 22272 ac_have_decl=1 22273 else 22274 ac_have_decl=0 22275 fi 22276 22277 cat >>confdefs.h <<_ACEOF 22278 #define HAVE_DECL_OPTIND $ac_have_decl 22279 _ACEOF 22280 ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" " 22281 #include <stdlib.h> 22282 #ifdef HAVE_UNISTD_H 22283 #include <unistd.h> 22284 #endif 22285 " 22286 if test "x$ac_cv_have_decl_opterr" = x""yes; then : 22287 ac_have_decl=1 22288 else 22289 ac_have_decl=0 22290 fi 22291 22292 cat >>confdefs.h <<_ACEOF 22293 #define HAVE_DECL_OPTERR $ac_have_decl 22294 _ACEOF 22295 ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" " 22296 #include <stdlib.h> 22297 #ifdef HAVE_UNISTD_H 22298 #include <unistd.h> 22299 #endif 22300 " 22301 if test "x$ac_cv_have_decl_optopt" = x""yes; then : 22302 ac_have_decl=1 22303 else 22304 ac_have_decl=0 22305 fi 22306 22307 cat >>confdefs.h <<_ACEOF 22308 #define HAVE_DECL_OPTOPT $ac_have_decl 22309 _ACEOF 22310 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" " 22311 #include <stdlib.h> 22312 #ifdef HAVE_UNISTD_H 22313 #include <unistd.h> 22314 #endif 22315 " 22316 if test "x$ac_cv_have_decl_environ" = x""yes; then : 22317 ac_have_decl=1 22318 else 22319 ac_have_decl=0 22320 fi 22321 22322 cat >>confdefs.h <<_ACEOF 22323 #define HAVE_DECL_ENVIRON $ac_have_decl 22324 _ACEOF 22325 22326 22327 22328 22329 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 22331 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } 22332 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then : 22333 $as_echo_n "(cached) " >&6 22334 else 22335 22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22337 /* end confdefs.h. */ 22338 #include <time.h> 22339 int 22340 main () 22341 { 22342 struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff 22343 ; 22344 return 0; 22345 } 22346 _ACEOF 22347 if ac_fn_c_try_compile "$LINENO"; then : 22348 ac_cv_type_struct_tm_tm_gmtoff=yes 22349 else 22350 ac_cv_type_struct_tm_tm_gmtoff=no 22351 fi 22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22353 22354 fi 22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 22356 $as_echo "$ac_cv_type_struct_tm_tm_gmtoff" >&6; } 22357 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 22358 22359 22360 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 22361 22362 22363 fi 22364 22365 22366 22367 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 22369 $as_echo_n "checking for tm_zone in struct tm... " >&6; } 22370 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then : 22371 $as_echo_n "(cached) " >&6 22372 else 22373 22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22375 /* end confdefs.h. */ 22376 #include <time.h> 22377 int 22378 main () 22379 { 22380 struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone 22381 ; 22382 return 0; 22383 } 22384 _ACEOF 22385 if ac_fn_c_try_compile "$LINENO"; then : 22386 ac_cv_type_struct_tm_tm_zone=yes 22387 else 22388 ac_cv_type_struct_tm_tm_zone=no 22389 fi 22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22391 22392 fi 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5 22394 $as_echo "$ac_cv_type_struct_tm_tm_zone" >&6; } 22395 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 22396 22397 22398 $as_echo "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 22399 22400 22401 fi 22402 22403 22404 22405 22406 22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 22408 $as_echo_n "checking for timezone... " >&6; } 22409 if test "${ac_cv_var_timezone+set}" = set; then : 22410 $as_echo_n "(cached) " >&6 22411 else 22412 22413 22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22415 /* end confdefs.h. */ 22416 #include <time.h> 22417 void * foo(void) { return &timezone; } 22418 int 22419 main () 22420 { 22421 foo() 22422 ; 22423 return 0; 22424 } 22425 _ACEOF 22426 if ac_fn_c_try_link "$LINENO"; then : 22427 ac_cv_var_timezone=yes 22428 else 22429 ac_cv_var_timezone=no 22430 fi 22431 rm -f core conftest.err conftest.$ac_objext \ 22432 conftest$ac_exeext conftest.$ac_ext 22433 if test "$ac_cv_var_timezone" != yes ; then 22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22435 /* end confdefs.h. */ 22436 #include <time.h> 22437 extern int timezone; 22438 int foo(void) { return timezone; } 22439 int 22440 main () 22441 { 22442 foo() 22443 ; 22444 return 0; 22445 } 22446 _ACEOF 22447 if ac_fn_c_try_link "$LINENO"; then : 22448 ac_cv_var_timezone=yes 22449 else 22450 ac_cv_var_timezone=no 22451 fi 22452 rm -f core conftest.err conftest.$ac_objext \ 22453 conftest$ac_exeext conftest.$ac_ext 22454 fi 22455 22456 fi 22457 22458 ac_foo=`eval echo \\$ac_cv_var_timezone` 22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22460 $as_echo "$ac_foo" >&6; } 22461 if test "$ac_foo" = yes; then 22462 22463 cat >>confdefs.h <<_ACEOF 22464 #define HAVE_TIMEZONE 1 22465 _ACEOF 22466 22467 ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h> 22468 " 22469 if test "x$ac_cv_have_decl_timezone" = x""yes; then : 22470 ac_have_decl=1 22471 else 22472 ac_have_decl=0 22473 fi 22474 22475 cat >>confdefs.h <<_ACEOF 22476 #define HAVE_DECL_TIMEZONE $ac_have_decl 22477 _ACEOF 22478 22479 fi 22480 22481 22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5 22483 $as_echo_n "checking for altzone... " >&6; } 22484 if test "${ac_cv_var_altzone+set}" = set; then : 22485 $as_echo_n "(cached) " >&6 22486 else 22487 22488 22489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22490 /* end confdefs.h. */ 22491 #include <time.h> 22492 void * foo(void) { return &altzone; } 22493 int 22494 main () 22495 { 22496 foo() 22497 ; 22498 return 0; 22499 } 22500 _ACEOF 22501 if ac_fn_c_try_link "$LINENO"; then : 22502 ac_cv_var_altzone=yes 22503 else 22504 ac_cv_var_altzone=no 22505 fi 22506 rm -f core conftest.err conftest.$ac_objext \ 22507 conftest$ac_exeext conftest.$ac_ext 22508 if test "$ac_cv_var_altzone" != yes ; then 22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22510 /* end confdefs.h. */ 22511 #include <time.h> 22512 extern int altzone; 22513 int foo(void) { return altzone; } 22514 int 22515 main () 22516 { 22517 foo() 22518 ; 22519 return 0; 22520 } 22521 _ACEOF 22522 if ac_fn_c_try_link "$LINENO"; then : 22523 ac_cv_var_altzone=yes 22524 else 22525 ac_cv_var_altzone=no 22526 fi 22527 rm -f core conftest.err conftest.$ac_objext \ 22528 conftest$ac_exeext conftest.$ac_ext 22529 fi 22530 22531 fi 22532 22533 ac_foo=`eval echo \\$ac_cv_var_altzone` 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22535 $as_echo "$ac_foo" >&6; } 22536 if test "$ac_foo" = yes; then 22537 22538 cat >>confdefs.h <<_ACEOF 22539 #define HAVE_ALTZONE 1 22540 _ACEOF 22541 22542 ac_fn_c_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h> 22543 " 22544 if test "x$ac_cv_have_decl_altzone" = x""yes; then : 22545 ac_have_decl=1 22546 else 22547 ac_have_decl=0 22548 fi 22549 22550 cat >>confdefs.h <<_ACEOF 22551 #define HAVE_DECL_ALTZONE $ac_have_decl 22552 _ACEOF 22553 22554 fi 22555 22556 22557 22558 22559 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 22561 $as_echo_n "checking for sa_family_t... " >&6; } 22562 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22563 $as_echo_n "(cached) " >&6 22564 else 22565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22566 /* end confdefs.h. */ 22567 22568 #include <sys/types.h> 22569 #if STDC_HEADERS 22570 #include <stdlib.h> 22571 #include <stddef.h> 22572 #endif 22573 22574 #include <sys/types.h> 22575 #ifdef HAVE_SYS_SOCKET_H 22576 #include <sys/socket.h> 22577 #endif 22578 #ifdef HAVE_WS2TCPIP_H 22579 #include <ws2tcpip.h> 22580 #endif 22581 int 22582 main () 22583 { 22584 sa_family_t foo; 22585 ; 22586 return 0; 22587 } 22588 _ACEOF 22589 if ac_fn_c_try_compile "$LINENO"; then : 22590 eval "ac_cv_type_$cv=yes" 22591 else 22592 eval "ac_cv_type_$cv=no" 22593 fi 22594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22595 fi 22596 ac_foo=`eval echo \\$ac_cv_type_$cv` 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22598 $as_echo "$ac_foo" >&6; } 22599 if test "$ac_foo" = yes; then 22600 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22601 if false; then 22602 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default" 22603 if test "x$ac_cv_type_sa_family_t" = x""yes; then : 22604 22605 cat >>confdefs.h <<_ACEOF 22606 #define HAVE_SA_FAMILY_T 1 22607 _ACEOF 22608 22609 22610 fi 22611 22612 fi 22613 22614 cat >>confdefs.h <<_ACEOF 22615 #define $ac_tr_hdr 1 22616 _ACEOF 22617 22618 fi 22619 22620 22621 22622 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 22624 $as_echo_n "checking for socklen_t... " >&6; } 22625 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22626 $as_echo_n "(cached) " >&6 22627 else 22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22629 /* end confdefs.h. */ 22630 22631 #include <sys/types.h> 22632 #if STDC_HEADERS 22633 #include <stdlib.h> 22634 #include <stddef.h> 22635 #endif 22636 22637 #include <sys/types.h> 22638 #ifdef HAVE_SYS_SOCKET_H 22639 #include <sys/socket.h> 22640 #endif 22641 #ifdef HAVE_WS2TCPIP_H 22642 #include <ws2tcpip.h> 22643 #endif 22644 int 22645 main () 22646 { 22647 socklen_t foo; 22648 ; 22649 return 0; 22650 } 22651 _ACEOF 22652 if ac_fn_c_try_compile "$LINENO"; then : 22653 eval "ac_cv_type_$cv=yes" 22654 else 22655 eval "ac_cv_type_$cv=no" 22656 fi 22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22658 fi 22659 ac_foo=`eval echo \\$ac_cv_type_$cv` 22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22661 $as_echo "$ac_foo" >&6; } 22662 if test "$ac_foo" = yes; then 22663 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22664 if false; then 22665 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default" 22666 if test "x$ac_cv_type_socklen_t" = x""yes; then : 22667 22668 cat >>confdefs.h <<_ACEOF 22669 #define HAVE_SOCKLEN_T 1 22670 _ACEOF 22671 22672 22673 fi 22674 22675 fi 22676 22677 cat >>confdefs.h <<_ACEOF 22678 #define $ac_tr_hdr 1 22679 _ACEOF 22680 22681 fi 22682 22683 22684 22685 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5 22687 $as_echo_n "checking for struct sockaddr... " >&6; } 22688 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22689 $as_echo_n "(cached) " >&6 22690 else 22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22692 /* end confdefs.h. */ 22693 22694 #include <sys/types.h> 22695 #if STDC_HEADERS 22696 #include <stdlib.h> 22697 #include <stddef.h> 22698 #endif 22699 22700 #include <sys/types.h> 22701 #ifdef HAVE_SYS_SOCKET_H 22702 #include <sys/socket.h> 22703 #endif 22704 #ifdef HAVE_WS2TCPIP_H 22705 #include <ws2tcpip.h> 22706 #endif 22707 int 22708 main () 22709 { 22710 struct sockaddr foo; 22711 ; 22712 return 0; 22713 } 22714 _ACEOF 22715 if ac_fn_c_try_compile "$LINENO"; then : 22716 eval "ac_cv_type_$cv=yes" 22717 else 22718 eval "ac_cv_type_$cv=no" 22719 fi 22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22721 fi 22722 ac_foo=`eval echo \\$ac_cv_type_$cv` 22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22724 $as_echo "$ac_foo" >&6; } 22725 if test "$ac_foo" = yes; then 22726 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22727 if false; then 22728 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default" 22729 if test "x$ac_cv_type_struct_sockaddr" = x""yes; then : 22730 22731 cat >>confdefs.h <<_ACEOF 22732 #define HAVE_STRUCT_SOCKADDR 1 22733 _ACEOF 22734 22735 22736 fi 22737 22738 fi 22739 22740 cat >>confdefs.h <<_ACEOF 22741 #define $ac_tr_hdr 1 22742 _ACEOF 22743 22744 fi 22745 22746 22747 22748 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 22750 $as_echo_n "checking for struct sockaddr_storage... " >&6; } 22751 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22752 $as_echo_n "(cached) " >&6 22753 else 22754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22755 /* end confdefs.h. */ 22756 22757 #include <sys/types.h> 22758 #if STDC_HEADERS 22759 #include <stdlib.h> 22760 #include <stddef.h> 22761 #endif 22762 22763 #include <sys/types.h> 22764 #ifdef HAVE_SYS_SOCKET_H 22765 #include <sys/socket.h> 22766 #endif 22767 #ifdef HAVE_WS2TCPIP_H 22768 #include <ws2tcpip.h> 22769 #endif 22770 int 22771 main () 22772 { 22773 struct sockaddr_storage foo; 22774 ; 22775 return 0; 22776 } 22777 _ACEOF 22778 if ac_fn_c_try_compile "$LINENO"; then : 22779 eval "ac_cv_type_$cv=yes" 22780 else 22781 eval "ac_cv_type_$cv=no" 22782 fi 22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22784 fi 22785 ac_foo=`eval echo \\$ac_cv_type_$cv` 22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22787 $as_echo "$ac_foo" >&6; } 22788 if test "$ac_foo" = yes; then 22789 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22790 if false; then 22791 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default" 22792 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then : 22793 22794 cat >>confdefs.h <<_ACEOF 22795 #define HAVE_STRUCT_SOCKADDR_STORAGE 1 22796 _ACEOF 22797 22798 22799 fi 22800 22801 fi 22802 22803 cat >>confdefs.h <<_ACEOF 22804 #define $ac_tr_hdr 1 22805 _ACEOF 22806 22807 fi 22808 22809 22810 22811 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 22813 $as_echo_n "checking for struct addrinfo... " >&6; } 22814 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22815 $as_echo_n "(cached) " >&6 22816 else 22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22818 /* end confdefs.h. */ 22819 22820 #include <sys/types.h> 22821 #if STDC_HEADERS 22822 #include <stdlib.h> 22823 #include <stddef.h> 22824 #endif 22825 22826 #include <sys/types.h> 22827 #ifdef HAVE_NETDB_H 22828 #include <netdb.h> 22829 #endif 22830 #ifdef HAVE_WS2TCPIP_H 22831 #include <ws2tcpip.h> 22832 #endif 22833 int 22834 main () 22835 { 22836 struct addrinfo foo; 22837 ; 22838 return 0; 22839 } 22840 _ACEOF 22841 if ac_fn_c_try_compile "$LINENO"; then : 22842 eval "ac_cv_type_$cv=yes" 22843 else 22844 eval "ac_cv_type_$cv=no" 22845 fi 22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22847 fi 22848 ac_foo=`eval echo \\$ac_cv_type_$cv` 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22850 $as_echo "$ac_foo" >&6; } 22851 if test "$ac_foo" = yes; then 22852 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22853 if false; then 22854 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default" 22855 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then : 22856 22857 cat >>confdefs.h <<_ACEOF 22858 #define HAVE_STRUCT_ADDRINFO 1 22859 _ACEOF 22860 22861 22862 fi 22863 22864 fi 22865 22866 cat >>confdefs.h <<_ACEOF 22867 #define $ac_tr_hdr 1 22868 _ACEOF 22869 22870 fi 22871 22872 22873 22874 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5 22876 $as_echo_n "checking for struct ifaddrs... " >&6; } 22877 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22878 $as_echo_n "(cached) " >&6 22879 else 22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22881 /* end confdefs.h. */ 22882 22883 #include <sys/types.h> 22884 #if STDC_HEADERS 22885 #include <stdlib.h> 22886 #include <stddef.h> 22887 #endif 22888 #include <ifaddrs.h> 22889 int 22890 main () 22891 { 22892 struct ifaddrs foo; 22893 ; 22894 return 0; 22895 } 22896 _ACEOF 22897 if ac_fn_c_try_compile "$LINENO"; then : 22898 eval "ac_cv_type_$cv=yes" 22899 else 22900 eval "ac_cv_type_$cv=no" 22901 fi 22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22903 fi 22904 ac_foo=`eval echo \\$ac_cv_type_$cv` 22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22906 $as_echo "$ac_foo" >&6; } 22907 if test "$ac_foo" = yes; then 22908 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22909 if false; then 22910 ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default" 22911 if test "x$ac_cv_type_struct_ifaddrs" = x""yes; then : 22912 22913 cat >>confdefs.h <<_ACEOF 22914 #define HAVE_STRUCT_IFADDRS 1 22915 _ACEOF 22916 22917 22918 fi 22919 22920 fi 22921 22922 cat >>confdefs.h <<_ACEOF 22923 #define $ac_tr_hdr 1 22924 _ACEOF 22925 22926 fi 22927 22928 22929 22930 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5 22932 $as_echo_n "checking for struct iovec... " >&6; } 22933 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22934 $as_echo_n "(cached) " >&6 22935 else 22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22937 /* end confdefs.h. */ 22938 22939 #include <sys/types.h> 22940 #if STDC_HEADERS 22941 #include <stdlib.h> 22942 #include <stddef.h> 22943 #endif 22944 22945 #include <sys/types.h> 22946 #include <sys/uio.h> 22947 22948 int 22949 main () 22950 { 22951 struct iovec foo; 22952 ; 22953 return 0; 22954 } 22955 _ACEOF 22956 if ac_fn_c_try_compile "$LINENO"; then : 22957 eval "ac_cv_type_$cv=yes" 22958 else 22959 eval "ac_cv_type_$cv=no" 22960 fi 22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22962 fi 22963 ac_foo=`eval echo \\$ac_cv_type_$cv` 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 22965 $as_echo "$ac_foo" >&6; } 22966 if test "$ac_foo" = yes; then 22967 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22968 if false; then 22969 ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default" 22970 if test "x$ac_cv_type_struct_iovec" = x""yes; then : 22971 22972 cat >>confdefs.h <<_ACEOF 22973 #define HAVE_STRUCT_IOVEC 1 22974 _ACEOF 22975 22976 22977 fi 22978 22979 fi 22980 22981 cat >>confdefs.h <<_ACEOF 22982 #define $ac_tr_hdr 1 22983 _ACEOF 22984 22985 fi 22986 22987 22988 22989 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5 22991 $as_echo_n "checking for struct msghdr... " >&6; } 22992 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 22993 $as_echo_n "(cached) " >&6 22994 else 22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22996 /* end confdefs.h. */ 22997 22998 #include <sys/types.h> 22999 #if STDC_HEADERS 23000 #include <stdlib.h> 23001 #include <stddef.h> 23002 #endif 23003 23004 #include <sys/types.h> 23005 #ifdef HAVE_SYS_SOCKET_H 23006 #include <sys/socket.h> 23007 #endif 23008 #ifdef HAVE_WS2TCPIP_H 23009 #include <ws2tcpip.h> 23010 #endif 23011 int 23012 main () 23013 { 23014 struct msghdr foo; 23015 ; 23016 return 0; 23017 } 23018 _ACEOF 23019 if ac_fn_c_try_compile "$LINENO"; then : 23020 eval "ac_cv_type_$cv=yes" 23021 else 23022 eval "ac_cv_type_$cv=no" 23023 fi 23024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23025 fi 23026 ac_foo=`eval echo \\$ac_cv_type_$cv` 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 23028 $as_echo "$ac_foo" >&6; } 23029 if test "$ac_foo" = yes; then 23030 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 23031 if false; then 23032 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default" 23033 if test "x$ac_cv_type_struct_msghdr" = x""yes; then : 23034 23035 cat >>confdefs.h <<_ACEOF 23036 #define HAVE_STRUCT_MSGHDR 1 23037 _ACEOF 23038 23039 23040 fi 23041 23042 fi 23043 23044 cat >>confdefs.h <<_ACEOF 23045 #define $ac_tr_hdr 1 23046 _ACEOF 23047 23048 fi 23049 23050 23051 23052 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5 23054 $as_echo_n "checking for struct winsize... " >&6; } 23055 if test "${ac_cv_struct_winsize+set}" = set; then : 23056 $as_echo_n "(cached) " >&6 23057 else 23058 23059 ac_cv_struct_winsize=no 23060 for i in sys/termios.h sys/ioctl.h; do 23061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23062 /* end confdefs.h. */ 23063 #include <$i> 23064 23065 _ACEOF 23066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23067 $EGREP "struct[ ]*winsize" >/dev/null 2>&1; then : 23068 ac_cv_struct_winsize=yes; break 23069 fi 23070 rm -f conftest* 23071 done 23072 23073 fi 23074 23075 if test "$ac_cv_struct_winsize" = "yes"; then 23076 23077 $as_echo "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h 23078 23079 fi 23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5 23081 $as_echo "$ac_cv_struct_winsize" >&6; } 23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23083 /* end confdefs.h. */ 23084 #include <termios.h> 23085 23086 _ACEOF 23087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23088 $EGREP "ws_xpixel" >/dev/null 2>&1; then : 23089 23090 $as_echo "#define HAVE_WS_XPIXEL 1" >>confdefs.h 23091 23092 fi 23093 rm -f conftest* 23094 23095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23096 /* end confdefs.h. */ 23097 #include <termios.h> 23098 23099 _ACEOF 23100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23101 $EGREP "ws_ypixel" >/dev/null 2>&1; then : 23102 23103 $as_echo "#define HAVE_WS_YPIXEL 1" >>confdefs.h 23104 23105 fi 23106 rm -f conftest* 23107 23108 23109 23110 23111 23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5 23113 $as_echo_n "checking for struct spwd... " >&6; } 23114 if test "${ac_cv_struct_spwd+set}" = set; then : 23115 $as_echo_n "(cached) " >&6 23116 else 23117 23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23119 /* end confdefs.h. */ 23120 23121 #include <pwd.h> 23122 #ifdef HAVE_SHADOW_H 23123 #include <shadow.h> 23124 #endif 23125 int 23126 main () 23127 { 23128 struct spwd foo; 23129 ; 23130 return 0; 23131 } 23132 _ACEOF 23133 if ac_fn_c_try_compile "$LINENO"; then : 23134 ac_cv_struct_spwd=yes 23135 else 23136 ac_cv_struct_spwd=no 23137 fi 23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23139 23140 fi 23141 23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5 23143 $as_echo "$ac_cv_struct_spwd" >&6; } 23144 23145 if test "$ac_cv_struct_spwd" = "yes"; then 23146 23147 $as_echo "#define HAVE_STRUCT_SPWD 1" >>confdefs.h 23148 23149 fi 23150 23151 23152 # 23153 # Check if we want samba's socket wrapper 23154 # 23155 23156 23157 23158 # Check whether --enable-socket-wrapper was given. 23159 if test "${enable_socket_wrapper+set}" = set; then : 23160 enableval=$enable_socket_wrapper; 23161 fi 23162 23163 23164 if test "x$enable_socket_wrapper" = xyes; then 23165 have_socket_wrapper_TRUE= 23166 have_socket_wrapper_FALSE='#' 23167 else 23168 have_socket_wrapper_TRUE='#' 23169 have_socket_wrapper_FALSE= 23170 fi 23171 23172 if test "x$enable_socket_wrapper" = xyes ; then 23173 23174 $as_echo "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h 23175 23176 fi 23177 23178 23179 23180 23181 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 23182 23183 23184 LIBADD_roken="$LIB_roken" 23185 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 23186 23187 23188 # Check whether --enable-otp was given. 23189 if test "${enable_otp+set}" = set; then : 23190 enableval=$enable_otp; 23191 fi 23192 23193 if test "$enable_otp" = yes -a "$db_type" = unknown; then 23194 as_fn_error "OTP requires a NDBM/DB compatible library" "$LINENO" 5 23195 fi 23196 if test "$enable_otp" != no; then 23197 if test "$db_type" != unknown; then 23198 enable_otp=yes 23199 else 23200 enable_otp=no 23201 fi 23202 fi 23203 if test "$enable_otp" = yes; then 23204 23205 $as_echo "#define OTP 1" >>confdefs.h 23206 23207 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 23208 23209 fi 23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5 23211 $as_echo_n "checking whether to enable OTP library... " >&6; } 23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5 23213 $as_echo "$enable_otp" >&6; } 23214 if test "$enable_otp" = yes; then 23215 OTP_TRUE= 23216 OTP_FALSE='#' 23217 else 23218 OTP_TRUE='#' 23219 OTP_FALSE= 23220 fi 23221 23222 23223 23224 23225 for ac_header in dispatch/dispatch.h 23226 do : 23227 ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default" 23228 if test "x$ac_cv_header_dispatch_dispatch_h" = x""yes; then : 23229 cat >>confdefs.h <<_ACEOF 23230 #define HAVE_DISPATCH_DISPATCH_H 1 23231 _ACEOF 23232 23233 fi 23234 23235 done 23236 23237 23238 23239 23240 23241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5 23242 $as_echo_n "checking for dispatch_async_f... " >&6; } 23243 if test "${ac_cv_funclib_dispatch_async_f+set}" = set; then : 23244 $as_echo_n "(cached) " >&6 23245 else 23246 23247 if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then 23248 ac_save_LIBS="$LIBS" 23249 for ac_lib in "" dispatch; do 23250 case "$ac_lib" in 23251 "") ;; 23252 yes) ac_lib="" ;; 23253 no) continue ;; 23254 -l*) ;; 23255 *) ac_lib="-l$ac_lib" ;; 23256 esac 23257 LIBS=" $ac_lib $ac_save_LIBS" 23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23259 /* end confdefs.h. */ 23260 #ifdef HAVE_DISPATCH_DISPATCH_H 23261 #include <dispatch/dispatch.h> 23262 #endif 23263 int 23264 main () 23265 { 23266 dispatch_async_f(0,0,0) 23267 ; 23268 return 0; 23269 } 23270 _ACEOF 23271 if ac_fn_c_try_link "$LINENO"; then : 23272 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 23273 fi 23274 rm -f core conftest.err conftest.$ac_objext \ 23275 conftest$ac_exeext conftest.$ac_ext 23276 done 23277 eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}" 23278 LIBS="$ac_save_LIBS" 23279 fi 23280 23281 fi 23282 23283 23284 eval "ac_res=\$ac_cv_funclib_dispatch_async_f" 23285 23286 if false; then 23287 for ac_func in dispatch_async_f 23288 do : 23289 ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f" 23290 if test "x$ac_cv_func_dispatch_async_f" = x""yes; then : 23291 cat >>confdefs.h <<_ACEOF 23292 #define HAVE_DISPATCH_ASYNC_F 1 23293 _ACEOF 23294 23295 fi 23296 done 23297 23298 fi 23299 # dispatch_async_f 23300 eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23301 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23302 eval "LIB_dispatch_async_f=$ac_res" 23303 23304 case "$ac_res" in 23305 yes) 23306 eval "ac_cv_func_dispatch_async_f=yes" 23307 eval "LIB_dispatch_async_f=" 23308 cat >>confdefs.h <<_ACEOF 23309 #define $ac_tr_func 1 23310 _ACEOF 23311 23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23313 $as_echo "yes" >&6; } 23314 ;; 23315 no) 23316 eval "ac_cv_func_dispatch_async_f=no" 23317 eval "LIB_dispatch_async_f=" 23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23319 $as_echo "no" >&6; } 23320 ;; 23321 *) 23322 eval "ac_cv_func_dispatch_async_f=yes" 23323 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 23324 cat >>confdefs.h <<_ACEOF 23325 #define $ac_tr_func 1 23326 _ACEOF 23327 23328 cat >>confdefs.h <<_ACEOF 23329 #define $ac_tr_lib 1 23330 _ACEOF 23331 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 23333 $as_echo "yes, in $ac_res" >&6; } 23334 ;; 23335 esac 23336 23337 23338 23339 if test "$ac_cv_func_dispatch_async_f" = yes ; then 23340 23341 $as_echo "#define HAVE_GCD 1" >>confdefs.h 23342 23343 libdispatch=yes 23344 else 23345 libdispatch=no 23346 fi 23347 23348 if test "$libdispatch" = yes; then 23349 have_gcd_TRUE= 23350 have_gcd_FALSE='#' 23351 else 23352 have_gcd_TRUE='#' 23353 have_gcd_FALSE= 23354 fi 23355 23356 23357 23358 23359 23360 # Check whether --enable-osfc2 was given. 23361 if test "${enable_osfc2+set}" = set; then : 23362 enableval=$enable_osfc2; 23363 fi 23364 23365 LIB_security= 23366 if test "$enable_osfc2" = yes; then 23367 23368 $as_echo "#define HAVE_OSFC2 1" >>confdefs.h 23369 23370 LIB_security=-lsecurity 23371 fi 23372 23373 23374 23375 # Check whether --enable-mmap was given. 23376 if test "${enable_mmap+set}" = set; then : 23377 enableval=$enable_mmap; 23378 fi 23379 23380 if test "$enable_mmap" = "no"; then 23381 23382 $as_echo "#define NO_MMAP 1" >>confdefs.h 23383 23384 fi 23385 23386 # Check whether --enable-afs-string-to-key was given. 23387 if test "${enable_afs_string_to_key+set}" = set; then : 23388 enableval=$enable_afs_string_to_key; 23389 else 23390 enable_afs_string_to_key=yes 23391 fi 23392 23393 23394 if test "$enable_afs_string_to_key" = "yes"; then 23395 23396 $as_echo "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h 23397 23398 fi 23399 23400 23401 # Extract the first word of "nroff", so it can be a program name with args. 23402 set dummy nroff; ac_word=$2 23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23404 $as_echo_n "checking for $ac_word... " >&6; } 23405 if test "${ac_cv_path_NROFF+set}" = set; then : 23406 $as_echo_n "(cached) " >&6 23407 else 23408 case $NROFF in 23409 [\\/]* | ?:[\\/]*) 23410 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 23411 ;; 23412 *) 23413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23414 for as_dir in $PATH 23415 do 23416 IFS=$as_save_IFS 23417 test -z "$as_dir" && as_dir=. 23418 for ac_exec_ext in '' $ac_executable_extensions; do 23419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23420 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 23421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23422 break 2 23423 fi 23424 done 23425 done 23426 IFS=$as_save_IFS 23427 23428 ;; 23429 esac 23430 fi 23431 NROFF=$ac_cv_path_NROFF 23432 if test -n "$NROFF"; then 23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 23434 $as_echo "$NROFF" >&6; } 23435 else 23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23437 $as_echo "no" >&6; } 23438 fi 23439 23440 23441 # Extract the first word of "groff", so it can be a program name with args. 23442 set dummy groff; ac_word=$2 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23444 $as_echo_n "checking for $ac_word... " >&6; } 23445 if test "${ac_cv_path_GROFF+set}" = set; then : 23446 $as_echo_n "(cached) " >&6 23447 else 23448 case $GROFF in 23449 [\\/]* | ?:[\\/]*) 23450 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 23451 ;; 23452 *) 23453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23454 for as_dir in $PATH 23455 do 23456 IFS=$as_save_IFS 23457 test -z "$as_dir" && as_dir=. 23458 for ac_exec_ext in '' $ac_executable_extensions; do 23459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23460 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 23461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23462 break 2 23463 fi 23464 done 23465 done 23466 IFS=$as_save_IFS 23467 23468 ;; 23469 esac 23470 fi 23471 GROFF=$ac_cv_path_GROFF 23472 if test -n "$GROFF"; then 23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 23474 $as_echo "$GROFF" >&6; } 23475 else 23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23477 $as_echo "no" >&6; } 23478 fi 23479 23480 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5 23482 $as_echo_n "checking how to format man pages... " >&6; } 23483 if test "${ac_cv_sys_man_format+set}" = set; then : 23484 $as_echo_n "(cached) " >&6 23485 else 23486 cat > conftest.1 << END 23487 .Dd January 1, 1970 23488 .Dt CONFTEST 1 23489 .Sh NAME 23490 .Nm conftest 23491 .Nd foobar 23492 END 23493 23494 if test "$NROFF" ; then 23495 for i in "-mdoc" "-mandoc"; do 23496 if "$NROFF" $i conftest.1 2> /dev/null | \ 23497 grep Jan > /dev/null 2>&1 ; then 23498 ac_cv_sys_man_format="$NROFF $i" 23499 break 23500 fi 23501 done 23502 fi 23503 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 23504 for i in "-mdoc" "-mandoc"; do 23505 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 23506 grep Jan > /dev/null 2>&1 ; then 23507 ac_cv_sys_man_format="$GROFF -Tascii $i" 23508 break 23509 fi 23510 done 23511 fi 23512 if test "$ac_cv_sys_man_format"; then 23513 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 23514 fi 23515 23516 fi 23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5 23518 $as_echo "$ac_cv_sys_man_format" >&6; } 23519 if test "$ac_cv_sys_man_format"; then 23520 CATMAN="$ac_cv_sys_man_format" 23521 23522 fi 23523 if test "$CATMAN"; then 23524 CATMAN_TRUE= 23525 CATMAN_FALSE='#' 23526 else 23527 CATMAN_TRUE='#' 23528 CATMAN_FALSE= 23529 fi 23530 23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5 23532 $as_echo_n "checking extension of pre-formatted manual pages... " >&6; } 23533 if test "${ac_cv_sys_catman_ext+set}" = set; then : 23534 $as_echo_n "(cached) " >&6 23535 else 23536 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 23537 ac_cv_sys_catman_ext=0 23538 else 23539 ac_cv_sys_catman_ext=number 23540 fi 23541 23542 fi 23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5 23544 $as_echo "$ac_cv_sys_catman_ext" >&6; } 23545 if test "$ac_cv_sys_catman_ext" = number; then 23546 CATMANEXT='$$section' 23547 else 23548 CATMANEXT=0 23549 fi 23550 23551 23552 23553 23554 23555 # Check whether --with-readline was given. 23556 if test "${with_readline+set}" = set; then : 23557 withval=$with_readline; 23558 fi 23559 23560 23561 # Check whether --with-readline-lib was given. 23562 if test "${with_readline_lib+set}" = set; then : 23563 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 23564 as_fn_error "No argument for --with-readline-lib" "$LINENO" 5 23565 elif test "X$with_readline" = "X"; then 23566 with_readline=yes 23567 fi 23568 fi 23569 23570 23571 # Check whether --with-readline-include was given. 23572 if test "${with_readline_include+set}" = set; then : 23573 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then 23574 as_fn_error "No argument for --with-readline-include" "$LINENO" 5 23575 elif test "X$with_readline" = "X"; then 23576 with_readline=yes 23577 fi 23578 fi 23579 23580 23581 # Check whether --with-readline-config was given. 23582 if test "${with_readline_config+set}" = set; then : 23583 withval=$with_readline_config; 23584 fi 23585 23586 23587 23588 23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 23590 $as_echo_n "checking for readline... " >&6; } 23591 23592 case "$with_readline" in 23593 yes|"") d='' ;; 23594 no) d= ;; 23595 *) d="$with_readline" ;; 23596 esac 23597 23598 header_dirs= 23599 lib_dirs= 23600 for i in $d; do 23601 if test "$with_readline_include" = ""; then 23602 if test -d "$i/include/readline"; then 23603 header_dirs="$header_dirs $i/include/readline" 23604 fi 23605 if test -d "$i/include"; then 23606 header_dirs="$header_dirs $i/include" 23607 fi 23608 fi 23609 if test "$with_readline_lib" = ""; then 23610 if test -d "$i/lib$abilibdirext"; then 23611 lib_dirs="$lib_dirs $i/lib$abilibdirext" 23612 fi 23613 fi 23614 done 23615 23616 if test "$with_readline_include"; then 23617 header_dirs="$with_readline_include $header_dirs" 23618 fi 23619 if test "$with_readline_lib"; then 23620 lib_dirs="$with_readline_lib $lib_dirs" 23621 fi 23622 23623 if test "$with_readline_config" = ""; then 23624 with_readline_config='' 23625 fi 23626 23627 readline_cflags= 23628 readline_libs= 23629 23630 case "$with_readline_config" in 23631 yes|no|""|"") 23632 if test -f $with_readline/bin/ ; then 23633 with_readline_config=$with_readline/bin/ 23634 fi 23635 ;; 23636 esac 23637 23638 case "$with_readline_config" in 23639 yes|no|"") 23640 ;; 23641 *) 23642 readline_cflags="`$with_readline_config --cflags 2>&1`" 23643 readline_libs="`$with_readline_config --libs 2>&1`" 23644 ;; 23645 esac 23646 23647 found=no 23648 if test "$with_readline" != no; then 23649 save_CFLAGS="$CFLAGS" 23650 save_LIBS="$LIBS" 23651 if test "$readline_cflags" -a "$readline_libs"; then 23652 CFLAGS="$readline_cflags $save_CFLAGS" 23653 LIBS="$readline_libs $save_LIBS" 23654 for ac_header in readline.h readline/readline.h 23655 do : 23656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23657 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23658 eval as_val=\$$as_ac_Header 23659 if test "x$as_val" = x""yes; then : 23660 cat >>confdefs.h <<_ACEOF 23661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23662 _ACEOF 23663 23664 fi 23665 23666 done 23667 23668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23669 /* end confdefs.h. */ 23670 #include <stdio.h> 23671 #if defined(HAVE_READLINE_READLINE_H) 23672 #include <readline/readline.h> 23673 #elif defined(HAVE_READLINE_H) 23674 #include <readline.h> 23675 #endif 23676 23677 int 23678 main () 23679 { 23680 23681 ; 23682 return 0; 23683 } 23684 _ACEOF 23685 if ac_fn_c_try_link "$LINENO"; then : 23686 23687 INCLUDE_readline="$readline_cflags" 23688 LIB_readline="$readline_libs" 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5 23690 $as_echo "from $with_readline_config" >&6; } 23691 found=yes 23692 fi 23693 rm -f core conftest.err conftest.$ac_objext \ 23694 conftest$ac_exeext conftest.$ac_ext 23695 fi 23696 if test "$found" = no; then 23697 ires= lres= 23698 for i in $header_dirs; do 23699 CFLAGS="-I$i $save_CFLAGS" 23700 for ac_header in readline.h readline/readline.h 23701 do : 23702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23703 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23704 eval as_val=\$$as_ac_Header 23705 if test "x$as_val" = x""yes; then : 23706 cat >>confdefs.h <<_ACEOF 23707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23708 _ACEOF 23709 23710 fi 23711 23712 done 23713 23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23715 /* end confdefs.h. */ 23716 #include <stdio.h> 23717 #if defined(HAVE_READLINE_READLINE_H) 23718 #include <readline/readline.h> 23719 #elif defined(HAVE_READLINE_H) 23720 #include <readline.h> 23721 #endif 23722 23723 int 23724 main () 23725 { 23726 23727 ; 23728 return 0; 23729 } 23730 _ACEOF 23731 if ac_fn_c_try_compile "$LINENO"; then : 23732 ires=$i;break 23733 fi 23734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23735 done 23736 for i in $lib_dirs; do 23737 LIBS="-L$i -lreadline $save_LIBS" 23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23739 /* end confdefs.h. */ 23740 #include <stdio.h> 23741 #if defined(HAVE_READLINE_READLINE_H) 23742 #include <readline/readline.h> 23743 #elif defined(HAVE_READLINE_H) 23744 #include <readline.h> 23745 #endif 23746 23747 int 23748 main () 23749 { 23750 23751 ; 23752 return 0; 23753 } 23754 _ACEOF 23755 if ac_fn_c_try_link "$LINENO"; then : 23756 lres=$i;break 23757 fi 23758 rm -f core conftest.err conftest.$ac_objext \ 23759 conftest$ac_exeext conftest.$ac_ext 23760 done 23761 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 23762 INCLUDE_readline="-I$ires" 23763 LIB_readline="-L$lres -lreadline " 23764 found=yes 23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 23766 $as_echo "headers $ires, libraries $lres" >&6; } 23767 fi 23768 fi 23769 CFLAGS="$save_CFLAGS" 23770 LIBS="$save_LIBS" 23771 fi 23772 23773 if test "$found" = yes; then 23774 23775 cat >>confdefs.h <<_ACEOF 23776 #define READLINE 1 23777 _ACEOF 23778 23779 with_readline=yes 23780 else 23781 with_readline=no 23782 INCLUDE_readline= 23783 LIB_readline= 23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23785 $as_echo "no" >&6; } 23786 fi 23787 23788 23789 23790 23791 23792 23793 23794 # Check whether --with-libedit was given. 23795 if test "${with_libedit+set}" = set; then : 23796 withval=$with_libedit; 23797 fi 23798 23799 23800 # Check whether --with-libedit-lib was given. 23801 if test "${with_libedit_lib+set}" = set; then : 23802 withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 23803 as_fn_error "No argument for --with-libedit-lib" "$LINENO" 5 23804 elif test "X$with_libedit" = "X"; then 23805 with_libedit=yes 23806 fi 23807 fi 23808 23809 23810 # Check whether --with-libedit-include was given. 23811 if test "${with_libedit_include+set}" = set; then : 23812 withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then 23813 as_fn_error "No argument for --with-libedit-include" "$LINENO" 5 23814 elif test "X$with_libedit" = "X"; then 23815 with_libedit=yes 23816 fi 23817 fi 23818 23819 23820 # Check whether --with-libedit-config was given. 23821 if test "${with_libedit_config+set}" = set; then : 23822 withval=$with_libedit_config; 23823 fi 23824 23825 23826 23827 23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 23829 $as_echo_n "checking for libedit... " >&6; } 23830 23831 case "$with_libedit" in 23832 yes|"") d='' ;; 23833 no) d= ;; 23834 *) d="$with_libedit" ;; 23835 esac 23836 23837 header_dirs= 23838 lib_dirs= 23839 for i in $d; do 23840 if test "$with_libedit_include" = ""; then 23841 if test -d "$i/include/libedit"; then 23842 header_dirs="$header_dirs $i/include/libedit" 23843 fi 23844 if test -d "$i/include"; then 23845 header_dirs="$header_dirs $i/include" 23846 fi 23847 fi 23848 if test "$with_libedit_lib" = ""; then 23849 if test -d "$i/lib$abilibdirext"; then 23850 lib_dirs="$lib_dirs $i/lib$abilibdirext" 23851 fi 23852 fi 23853 done 23854 23855 if test "$with_libedit_include"; then 23856 header_dirs="$with_libedit_include $header_dirs" 23857 fi 23858 if test "$with_libedit_lib"; then 23859 lib_dirs="$with_libedit_lib $lib_dirs" 23860 fi 23861 23862 if test "$with_libedit_config" = ""; then 23863 with_libedit_config='' 23864 fi 23865 23866 libedit_cflags= 23867 libedit_libs= 23868 23869 case "$with_libedit_config" in 23870 yes|no|""|"") 23871 if test -f $with_libedit/bin/ ; then 23872 with_libedit_config=$with_libedit/bin/ 23873 fi 23874 ;; 23875 esac 23876 23877 case "$with_libedit_config" in 23878 yes|no|"") 23879 ;; 23880 *) 23881 libedit_cflags="`$with_libedit_config --cflags 2>&1`" 23882 libedit_libs="`$with_libedit_config --libs 2>&1`" 23883 ;; 23884 esac 23885 23886 found=no 23887 if test "$with_libedit" != no; then 23888 save_CFLAGS="$CFLAGS" 23889 save_LIBS="$LIBS" 23890 if test "$libedit_cflags" -a "$libedit_libs"; then 23891 CFLAGS="$libedit_cflags $save_CFLAGS" 23892 LIBS="$libedit_libs $save_LIBS" 23893 for ac_header in readline.h readline/readline.h 23894 do : 23895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23897 eval as_val=\$$as_ac_Header 23898 if test "x$as_val" = x""yes; then : 23899 cat >>confdefs.h <<_ACEOF 23900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23901 _ACEOF 23902 23903 fi 23904 23905 done 23906 23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23908 /* end confdefs.h. */ 23909 #include <stdio.h> 23910 #if defined(HAVE_READLINE_READLINE_H) 23911 #include <readline/readline.h> 23912 #elif defined(HAVE_READLINE_H) 23913 #include <readline.h> 23914 #endif 23915 23916 int 23917 main () 23918 { 23919 23920 ; 23921 return 0; 23922 } 23923 _ACEOF 23924 if ac_fn_c_try_link "$LINENO"; then : 23925 23926 INCLUDE_libedit="$libedit_cflags" 23927 LIB_libedit="$libedit_libs" 23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5 23929 $as_echo "from $with_libedit_config" >&6; } 23930 found=yes 23931 fi 23932 rm -f core conftest.err conftest.$ac_objext \ 23933 conftest$ac_exeext conftest.$ac_ext 23934 fi 23935 if test "$found" = no; then 23936 ires= lres= 23937 for i in $header_dirs; do 23938 CFLAGS="-I$i $save_CFLAGS" 23939 for ac_header in readline.h readline/readline.h 23940 do : 23941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23943 eval as_val=\$$as_ac_Header 23944 if test "x$as_val" = x""yes; then : 23945 cat >>confdefs.h <<_ACEOF 23946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23947 _ACEOF 23948 23949 fi 23950 23951 done 23952 23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23954 /* end confdefs.h. */ 23955 #include <stdio.h> 23956 #if defined(HAVE_READLINE_READLINE_H) 23957 #include <readline/readline.h> 23958 #elif defined(HAVE_READLINE_H) 23959 #include <readline.h> 23960 #endif 23961 23962 int 23963 main () 23964 { 23965 23966 ; 23967 return 0; 23968 } 23969 _ACEOF 23970 if ac_fn_c_try_compile "$LINENO"; then : 23971 ires=$i;break 23972 fi 23973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23974 done 23975 for i in $lib_dirs; do 23976 LIBS="-L$i -ledit $save_LIBS" 23977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23978 /* end confdefs.h. */ 23979 #include <stdio.h> 23980 #if defined(HAVE_READLINE_READLINE_H) 23981 #include <readline/readline.h> 23982 #elif defined(HAVE_READLINE_H) 23983 #include <readline.h> 23984 #endif 23985 23986 int 23987 main () 23988 { 23989 23990 ; 23991 return 0; 23992 } 23993 _ACEOF 23994 if ac_fn_c_try_link "$LINENO"; then : 23995 lres=$i;break 23996 fi 23997 rm -f core conftest.err conftest.$ac_objext \ 23998 conftest$ac_exeext conftest.$ac_ext 23999 done 24000 if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then 24001 INCLUDE_libedit="-I$ires" 24002 LIB_libedit="-L$lres -ledit " 24003 found=yes 24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 24005 $as_echo "headers $ires, libraries $lres" >&6; } 24006 fi 24007 fi 24008 CFLAGS="$save_CFLAGS" 24009 LIBS="$save_LIBS" 24010 fi 24011 24012 if test "$found" = yes; then 24013 24014 cat >>confdefs.h <<_ACEOF 24015 #define LIBEDIT 1 24016 _ACEOF 24017 24018 with_libedit=yes 24019 else 24020 with_libedit=no 24021 INCLUDE_libedit= 24022 LIB_libedit= 24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24024 $as_echo "no" >&6; } 24025 fi 24026 24027 24028 24029 24030 24031 24032 24033 subdirs="$subdirs lib/libedit" 24034 24035 24036 24037 24038 # Check whether --with-hesiod was given. 24039 if test "${with_hesiod+set}" = set; then : 24040 withval=$with_hesiod; 24041 fi 24042 24043 24044 # Check whether --with-hesiod-lib was given. 24045 if test "${with_hesiod_lib+set}" = set; then : 24046 withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 24047 as_fn_error "No argument for --with-hesiod-lib" "$LINENO" 5 24048 elif test "X$with_hesiod" = "X"; then 24049 with_hesiod=yes 24050 fi 24051 fi 24052 24053 24054 # Check whether --with-hesiod-include was given. 24055 if test "${with_hesiod_include+set}" = set; then : 24056 withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then 24057 as_fn_error "No argument for --with-hesiod-include" "$LINENO" 5 24058 elif test "X$with_hesiod" = "X"; then 24059 with_hesiod=yes 24060 fi 24061 fi 24062 24063 24064 # Check whether --with-hesiod-config was given. 24065 if test "${with_hesiod_config+set}" = set; then : 24066 withval=$with_hesiod_config; 24067 fi 24068 24069 24070 24071 24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hesiod" >&5 24073 $as_echo_n "checking for hesiod... " >&6; } 24074 24075 case "$with_hesiod" in 24076 yes|"") d='' ;; 24077 no) d= ;; 24078 *) d="$with_hesiod" ;; 24079 esac 24080 24081 header_dirs= 24082 lib_dirs= 24083 for i in $d; do 24084 if test "$with_hesiod_include" = ""; then 24085 if test -d "$i/include/hesiod"; then 24086 header_dirs="$header_dirs $i/include/hesiod" 24087 fi 24088 if test -d "$i/include"; then 24089 header_dirs="$header_dirs $i/include" 24090 fi 24091 fi 24092 if test "$with_hesiod_lib" = ""; then 24093 if test -d "$i/lib$abilibdirext"; then 24094 lib_dirs="$lib_dirs $i/lib$abilibdirext" 24095 fi 24096 fi 24097 done 24098 24099 if test "$with_hesiod_include"; then 24100 header_dirs="$with_hesiod_include $header_dirs" 24101 fi 24102 if test "$with_hesiod_lib"; then 24103 lib_dirs="$with_hesiod_lib $lib_dirs" 24104 fi 24105 24106 if test "$with_hesiod_config" = ""; then 24107 with_hesiod_config='' 24108 fi 24109 24110 hesiod_cflags= 24111 hesiod_libs= 24112 24113 case "$with_hesiod_config" in 24114 yes|no|""|"") 24115 if test -f $with_hesiod/bin/ ; then 24116 with_hesiod_config=$with_hesiod/bin/ 24117 fi 24118 ;; 24119 esac 24120 24121 case "$with_hesiod_config" in 24122 yes|no|"") 24123 ;; 24124 *) 24125 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`" 24126 hesiod_libs="`$with_hesiod_config --libs 2>&1`" 24127 ;; 24128 esac 24129 24130 found=no 24131 if test "$with_hesiod" != no; then 24132 save_CFLAGS="$CFLAGS" 24133 save_LIBS="$LIBS" 24134 if test "$hesiod_cflags" -a "$hesiod_libs"; then 24135 CFLAGS="$hesiod_cflags $save_CFLAGS" 24136 LIBS="$hesiod_libs $save_LIBS" 24137 24138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24139 /* end confdefs.h. */ 24140 #include <hesiod.h> 24141 int 24142 main () 24143 { 24144 24145 ; 24146 return 0; 24147 } 24148 _ACEOF 24149 if ac_fn_c_try_link "$LINENO"; then : 24150 24151 INCLUDE_hesiod="$hesiod_cflags" 24152 LIB_hesiod="$hesiod_libs" 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_hesiod_config" >&5 24154 $as_echo "from $with_hesiod_config" >&6; } 24155 found=yes 24156 fi 24157 rm -f core conftest.err conftest.$ac_objext \ 24158 conftest$ac_exeext conftest.$ac_ext 24159 fi 24160 if test "$found" = no; then 24161 ires= lres= 24162 for i in $header_dirs; do 24163 CFLAGS="-I$i $save_CFLAGS" 24164 24165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24166 /* end confdefs.h. */ 24167 #include <hesiod.h> 24168 int 24169 main () 24170 { 24171 24172 ; 24173 return 0; 24174 } 24175 _ACEOF 24176 if ac_fn_c_try_compile "$LINENO"; then : 24177 ires=$i;break 24178 fi 24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24180 done 24181 for i in $lib_dirs; do 24182 LIBS="-L$i -lhesiod $save_LIBS" 24183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24184 /* end confdefs.h. */ 24185 #include <hesiod.h> 24186 int 24187 main () 24188 { 24189 24190 ; 24191 return 0; 24192 } 24193 _ACEOF 24194 if ac_fn_c_try_link "$LINENO"; then : 24195 lres=$i;break 24196 fi 24197 rm -f core conftest.err conftest.$ac_objext \ 24198 conftest$ac_exeext conftest.$ac_ext 24199 done 24200 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 24201 INCLUDE_hesiod="-I$ires" 24202 LIB_hesiod="-L$lres -lhesiod " 24203 found=yes 24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5 24205 $as_echo "headers $ires, libraries $lres" >&6; } 24206 fi 24207 fi 24208 CFLAGS="$save_CFLAGS" 24209 LIBS="$save_LIBS" 24210 fi 24211 24212 if test "$found" = yes; then 24213 24214 cat >>confdefs.h <<_ACEOF 24215 #define HESIOD 1 24216 _ACEOF 24217 24218 with_hesiod=yes 24219 else 24220 with_hesiod=no 24221 INCLUDE_hesiod= 24222 LIB_hesiod= 24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24224 $as_echo "no" >&6; } 24225 fi 24226 24227 24228 24229 24230 24231 24232 # Check whether --enable-bigendian was given. 24233 if test "${enable_bigendian+set}" = set; then : 24234 enableval=$enable_bigendian; krb_cv_c_bigendian=yes 24235 fi 24236 24237 # Check whether --enable-littleendian was given. 24238 if test "${enable_littleendian+set}" = set; then : 24239 enableval=$enable_littleendian; krb_cv_c_bigendian=no 24240 fi 24241 24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5 24243 $as_echo_n "checking whether byte order is known at compile time... " >&6; } 24244 if test "${krb_cv_c_bigendian_compile+set}" = set; then : 24245 $as_echo_n "(cached) " >&6 24246 else 24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24248 /* end confdefs.h. */ 24249 24250 #include <sys/types.h> 24251 #include <sys/param.h> 24252 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 24253 bogus endian macros 24254 #endif 24255 _ACEOF 24256 if ac_fn_c_try_compile "$LINENO"; then : 24257 krb_cv_c_bigendian_compile=yes 24258 else 24259 krb_cv_c_bigendian_compile=no 24260 fi 24261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24262 fi 24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5 24264 $as_echo "$krb_cv_c_bigendian_compile" >&6; } 24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 24266 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 24267 if test "${krb_cv_c_bigendian+set}" = set; then : 24268 $as_echo_n "(cached) " >&6 24269 else 24270 24271 if test "$krb_cv_c_bigendian_compile" = "yes"; then 24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24273 /* end confdefs.h. */ 24274 24275 #include <sys/types.h> 24276 #include <sys/param.h> 24277 #if BYTE_ORDER != BIG_ENDIAN 24278 not big endian 24279 #endif 24280 _ACEOF 24281 if ac_fn_c_try_compile "$LINENO"; then : 24282 krb_cv_c_bigendian=yes 24283 else 24284 krb_cv_c_bigendian=no 24285 fi 24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24287 else 24288 if test "$cross_compiling" = yes; then : 24289 as_fn_error "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5 24290 else 24291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24292 /* end confdefs.h. */ 24293 main (int argc, char **argv) { 24294 /* Are we little or big endian? From Harbison&Steele. */ 24295 union 24296 { 24297 long l; 24298 char c[sizeof (long)]; 24299 } u; 24300 u.l = 1; 24301 exit (u.c[sizeof (long) - 1] == 1); 24302 } 24303 _ACEOF 24304 if ac_fn_c_try_run "$LINENO"; then : 24305 krb_cv_c_bigendian=no 24306 else 24307 krb_cv_c_bigendian=yes 24308 fi 24309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24310 conftest.$ac_objext conftest.beam conftest.$ac_ext 24311 fi 24312 24313 fi 24314 24315 fi 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5 24317 $as_echo "$krb_cv_c_bigendian" >&6; } 24318 if test "$krb_cv_c_bigendian" = "yes"; then 24319 24320 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 24321 fi 24322 if test "$krb_cv_c_bigendian_compile" = "yes"; then 24323 24324 $as_echo "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h 24325 fi 24326 24327 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 24329 $as_echo_n "checking for inline... " >&6; } 24330 if test "${ac_cv_c_inline+set}" = set; then : 24331 $as_echo_n "(cached) " >&6 24332 else 24333 ac_cv_c_inline=no 24334 for ac_kw in inline __inline__ __inline; do 24335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24336 /* end confdefs.h. */ 24337 #ifndef __cplusplus 24338 typedef int foo_t; 24339 static $ac_kw foo_t static_foo () {return 0; } 24340 $ac_kw foo_t foo () {return 0; } 24341 #endif 24342 24343 _ACEOF 24344 if ac_fn_c_try_compile "$LINENO"; then : 24345 ac_cv_c_inline=$ac_kw 24346 fi 24347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24348 test "$ac_cv_c_inline" != no && break 24349 done 24350 24351 fi 24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 24353 $as_echo "$ac_cv_c_inline" >&6; } 24354 24355 case $ac_cv_c_inline in 24356 inline | yes) ;; 24357 *) 24358 case $ac_cv_c_inline in 24359 no) ac_val=;; 24360 *) ac_val=$ac_cv_c_inline;; 24361 esac 24362 cat >>confdefs.h <<_ACEOF 24363 #ifndef __cplusplus 24364 #define inline $ac_val 24365 #endif 24366 _ACEOF 24367 ;; 24368 esac 24369 24370 24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 24372 $as_echo_n "checking for X... " >&6; } 24373 24374 24375 # Check whether --with-x was given. 24376 if test "${with_x+set}" = set; then : 24377 withval=$with_x; 24378 fi 24379 24380 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 24381 if test "x$with_x" = xno; then 24382 # The user explicitly disabled X. 24383 have_x=disabled 24384 else 24385 case $x_includes,$x_libraries in #( 24386 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 24387 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 24388 $as_echo_n "(cached) " >&6 24389 else 24390 # One or both of the vars are not set, and there is no cached value. 24391 ac_x_includes=no ac_x_libraries=no 24392 rm -f -r conftest.dir 24393 if mkdir conftest.dir; then 24394 cd conftest.dir 24395 cat >Imakefile <<'_ACEOF' 24396 incroot: 24397 @echo incroot='${INCROOT}' 24398 usrlibdir: 24399 @echo usrlibdir='${USRLIBDIR}' 24400 libdir: 24401 @echo libdir='${LIBDIR}' 24402 _ACEOF 24403 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 24404 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 24405 for ac_var in incroot usrlibdir libdir; do 24406 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 24407 done 24408 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 24409 for ac_extension in a so sl dylib la dll; do 24410 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 24411 test -f "$ac_im_libdir/libX11.$ac_extension"; then 24412 ac_im_usrlibdir=$ac_im_libdir; break 24413 fi 24414 done 24415 # Screen out bogus values from the imake configuration. They are 24416 # bogus both because they are the default anyway, and because 24417 # using them would break gcc on systems where it needs fixed includes. 24418 case $ac_im_incroot in 24419 /usr/include) ac_x_includes= ;; 24420 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 24421 esac 24422 case $ac_im_usrlibdir in 24423 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 24424 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 24425 esac 24426 fi 24427 cd .. 24428 rm -f -r conftest.dir 24429 fi 24430 24431 # Standard set of common directories for X headers. 24432 # Check X11 before X11Rn because it is often a symlink to the current release. 24433 ac_x_header_dirs=' 24434 /usr/X11/include 24435 /usr/X11R7/include 24436 /usr/X11R6/include 24437 /usr/X11R5/include 24438 /usr/X11R4/include 24439 24440 /usr/include/X11 24441 /usr/include/X11R7 24442 /usr/include/X11R6 24443 /usr/include/X11R5 24444 /usr/include/X11R4 24445 24446 /usr/local/X11/include 24447 /usr/local/X11R7/include 24448 /usr/local/X11R6/include 24449 /usr/local/X11R5/include 24450 /usr/local/X11R4/include 24451 24452 /usr/local/include/X11 24453 /usr/local/include/X11R7 24454 /usr/local/include/X11R6 24455 /usr/local/include/X11R5 24456 /usr/local/include/X11R4 24457 24458 /usr/X386/include 24459 /usr/x386/include 24460 /usr/XFree86/include/X11 24461 24462 /usr/include 24463 /usr/local/include 24464 /usr/unsupported/include 24465 /usr/athena/include 24466 /usr/local/x11r5/include 24467 /usr/lpp/Xamples/include 24468 24469 /usr/openwin/include 24470 /usr/openwin/share/include' 24471 24472 if test "$ac_x_includes" = no; then 24473 # Guess where to find include files, by looking for Xlib.h. 24474 # First, try using that file with no special directory specified. 24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24476 /* end confdefs.h. */ 24477 #include <X11/Xlib.h> 24478 _ACEOF 24479 if ac_fn_c_try_cpp "$LINENO"; then : 24480 # We can compile using X headers with no special include directory. 24481 ac_x_includes= 24482 else 24483 for ac_dir in $ac_x_header_dirs; do 24484 if test -r "$ac_dir/X11/Xlib.h"; then 24485 ac_x_includes=$ac_dir 24486 break 24487 fi 24488 done 24489 fi 24490 rm -f conftest.err conftest.$ac_ext 24491 fi # $ac_x_includes = no 24492 24493 if test "$ac_x_libraries" = no; then 24494 # Check for the libraries. 24495 # See if we find them without any special options. 24496 # Don't add to $LIBS permanently. 24497 ac_save_LIBS=$LIBS 24498 LIBS="-lX11 $LIBS" 24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24500 /* end confdefs.h. */ 24501 #include <X11/Xlib.h> 24502 int 24503 main () 24504 { 24505 XrmInitialize () 24506 ; 24507 return 0; 24508 } 24509 _ACEOF 24510 if ac_fn_c_try_link "$LINENO"; then : 24511 LIBS=$ac_save_LIBS 24512 # We can link X programs with no special library path. 24513 ac_x_libraries= 24514 else 24515 LIBS=$ac_save_LIBS 24516 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 24517 do 24518 # Don't even attempt the hair of trying to link an X program! 24519 for ac_extension in a so sl dylib la dll; do 24520 if test -r "$ac_dir/libX11.$ac_extension"; then 24521 ac_x_libraries=$ac_dir 24522 break 2 24523 fi 24524 done 24525 done 24526 fi 24527 rm -f core conftest.err conftest.$ac_objext \ 24528 conftest$ac_exeext conftest.$ac_ext 24529 fi # $ac_x_libraries = no 24530 24531 case $ac_x_includes,$ac_x_libraries in #( 24532 no,* | *,no | *\'*) 24533 # Didn't find X, or a directory has "'" in its name. 24534 ac_cv_have_x="have_x=no";; #( 24535 *) 24536 # Record where we found X for the cache. 24537 ac_cv_have_x="have_x=yes\ 24538 ac_x_includes='$ac_x_includes'\ 24539 ac_x_libraries='$ac_x_libraries'" 24540 esac 24541 fi 24542 ;; #( 24543 *) have_x=yes;; 24544 esac 24545 eval "$ac_cv_have_x" 24546 fi # $with_x != no 24547 24548 if test "$have_x" != yes; then 24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 24550 $as_echo "$have_x" >&6; } 24551 no_x=yes 24552 else 24553 # If each of the values was on the command line, it overrides each guess. 24554 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 24555 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 24556 # Update the cache value to reflect the command line values. 24557 ac_cv_have_x="have_x=yes\ 24558 ac_x_includes='$x_includes'\ 24559 ac_x_libraries='$x_libraries'" 24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 24561 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 24562 fi 24563 24564 24565 if test "$no_x" = yes; then 24566 # Not all programs may use this symbol, but it does not hurt to define it. 24567 24568 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 24569 24570 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 24571 else 24572 if test -n "$x_includes"; then 24573 X_CFLAGS="$X_CFLAGS -I$x_includes" 24574 fi 24575 24576 # It would also be nice to do this for all -L options, not just this one. 24577 if test -n "$x_libraries"; then 24578 X_LIBS="$X_LIBS -L$x_libraries" 24579 # For Solaris; some versions of Sun CC require a space after -R and 24580 # others require no space. Words are not sufficient . . . . 24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 24582 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 24583 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 24584 ac_xsave_c_werror_flag=$ac_c_werror_flag 24585 ac_c_werror_flag=yes 24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24587 /* end confdefs.h. */ 24588 24589 int 24590 main () 24591 { 24592 24593 ; 24594 return 0; 24595 } 24596 _ACEOF 24597 if ac_fn_c_try_link "$LINENO"; then : 24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24599 $as_echo "no" >&6; } 24600 X_LIBS="$X_LIBS -R$x_libraries" 24601 else 24602 LIBS="$ac_xsave_LIBS -R $x_libraries" 24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24604 /* end confdefs.h. */ 24605 24606 int 24607 main () 24608 { 24609 24610 ; 24611 return 0; 24612 } 24613 _ACEOF 24614 if ac_fn_c_try_link "$LINENO"; then : 24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24616 $as_echo "yes" >&6; } 24617 X_LIBS="$X_LIBS -R $x_libraries" 24618 else 24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 24620 $as_echo "neither works" >&6; } 24621 fi 24622 rm -f core conftest.err conftest.$ac_objext \ 24623 conftest$ac_exeext conftest.$ac_ext 24624 fi 24625 rm -f core conftest.err conftest.$ac_objext \ 24626 conftest$ac_exeext conftest.$ac_ext 24627 ac_c_werror_flag=$ac_xsave_c_werror_flag 24628 LIBS=$ac_xsave_LIBS 24629 fi 24630 24631 # Check for system-dependent libraries X programs must link with. 24632 # Do this before checking for the system-independent R6 libraries 24633 # (-lICE), since we may need -lsocket or whatever for X linking. 24634 24635 if test "$ISC" = yes; then 24636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 24637 else 24638 # Martyn Johnson says this is needed for Ultrix, if the X 24639 # libraries were built with DECnet support. And Karl Berry says 24640 # the Alpha needs dnet_stub (dnet does not exist). 24641 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24643 /* end confdefs.h. */ 24644 24645 /* Override any GCC internal prototype to avoid an error. 24646 Use char because int might match the return type of a GCC 24647 builtin and then its argument prototype would still apply. */ 24648 #ifdef __cplusplus 24649 extern "C" 24650 #endif 24651 char XOpenDisplay (); 24652 int 24653 main () 24654 { 24655 return XOpenDisplay (); 24656 ; 24657 return 0; 24658 } 24659 _ACEOF 24660 if ac_fn_c_try_link "$LINENO"; then : 24661 24662 else 24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 24664 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 24665 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 24666 $as_echo_n "(cached) " >&6 24667 else 24668 ac_check_lib_save_LIBS=$LIBS 24669 LIBS="-ldnet $LIBS" 24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24671 /* end confdefs.h. */ 24672 24673 /* Override any GCC internal prototype to avoid an error. 24674 Use char because int might match the return type of a GCC 24675 builtin and then its argument prototype would still apply. */ 24676 #ifdef __cplusplus 24677 extern "C" 24678 #endif 24679 char dnet_ntoa (); 24680 int 24681 main () 24682 { 24683 return dnet_ntoa (); 24684 ; 24685 return 0; 24686 } 24687 _ACEOF 24688 if ac_fn_c_try_link "$LINENO"; then : 24689 ac_cv_lib_dnet_dnet_ntoa=yes 24690 else 24691 ac_cv_lib_dnet_dnet_ntoa=no 24692 fi 24693 rm -f core conftest.err conftest.$ac_objext \ 24694 conftest$ac_exeext conftest.$ac_ext 24695 LIBS=$ac_check_lib_save_LIBS 24696 fi 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 24698 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 24699 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 24700 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 24701 fi 24702 24703 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 24705 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 24706 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 24707 $as_echo_n "(cached) " >&6 24708 else 24709 ac_check_lib_save_LIBS=$LIBS 24710 LIBS="-ldnet_stub $LIBS" 24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24712 /* end confdefs.h. */ 24713 24714 /* Override any GCC internal prototype to avoid an error. 24715 Use char because int might match the return type of a GCC 24716 builtin and then its argument prototype would still apply. */ 24717 #ifdef __cplusplus 24718 extern "C" 24719 #endif 24720 char dnet_ntoa (); 24721 int 24722 main () 24723 { 24724 return dnet_ntoa (); 24725 ; 24726 return 0; 24727 } 24728 _ACEOF 24729 if ac_fn_c_try_link "$LINENO"; then : 24730 ac_cv_lib_dnet_stub_dnet_ntoa=yes 24731 else 24732 ac_cv_lib_dnet_stub_dnet_ntoa=no 24733 fi 24734 rm -f core conftest.err conftest.$ac_objext \ 24735 conftest$ac_exeext conftest.$ac_ext 24736 LIBS=$ac_check_lib_save_LIBS 24737 fi 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 24739 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 24740 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 24741 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 24742 fi 24743 24744 fi 24745 fi 24746 rm -f core conftest.err conftest.$ac_objext \ 24747 conftest$ac_exeext conftest.$ac_ext 24748 LIBS="$ac_xsave_LIBS" 24749 24750 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 24751 # to get the SysV transport functions. 24752 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 24753 # needs -lnsl. 24754 # The nsl library prevents programs from opening the X display 24755 # on Irix 5.2, according to T.E. Dickey. 24756 # The functions gethostbyname, getservbyname, and inet_addr are 24757 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 24758 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 24759 if test "x$ac_cv_func_gethostbyname" = x""yes; then : 24760 24761 fi 24762 24763 if test $ac_cv_func_gethostbyname = no; then 24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 24765 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 24766 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 24767 $as_echo_n "(cached) " >&6 24768 else 24769 ac_check_lib_save_LIBS=$LIBS 24770 LIBS="-lnsl $LIBS" 24771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24772 /* end confdefs.h. */ 24773 24774 /* Override any GCC internal prototype to avoid an error. 24775 Use char because int might match the return type of a GCC 24776 builtin and then its argument prototype would still apply. */ 24777 #ifdef __cplusplus 24778 extern "C" 24779 #endif 24780 char gethostbyname (); 24781 int 24782 main () 24783 { 24784 return gethostbyname (); 24785 ; 24786 return 0; 24787 } 24788 _ACEOF 24789 if ac_fn_c_try_link "$LINENO"; then : 24790 ac_cv_lib_nsl_gethostbyname=yes 24791 else 24792 ac_cv_lib_nsl_gethostbyname=no 24793 fi 24794 rm -f core conftest.err conftest.$ac_objext \ 24795 conftest$ac_exeext conftest.$ac_ext 24796 LIBS=$ac_check_lib_save_LIBS 24797 fi 24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 24799 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 24800 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 24801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 24802 fi 24803 24804 if test $ac_cv_lib_nsl_gethostbyname = no; then 24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 24806 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 24807 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 24808 $as_echo_n "(cached) " >&6 24809 else 24810 ac_check_lib_save_LIBS=$LIBS 24811 LIBS="-lbsd $LIBS" 24812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24813 /* end confdefs.h. */ 24814 24815 /* Override any GCC internal prototype to avoid an error. 24816 Use char because int might match the return type of a GCC 24817 builtin and then its argument prototype would still apply. */ 24818 #ifdef __cplusplus 24819 extern "C" 24820 #endif 24821 char gethostbyname (); 24822 int 24823 main () 24824 { 24825 return gethostbyname (); 24826 ; 24827 return 0; 24828 } 24829 _ACEOF 24830 if ac_fn_c_try_link "$LINENO"; then : 24831 ac_cv_lib_bsd_gethostbyname=yes 24832 else 24833 ac_cv_lib_bsd_gethostbyname=no 24834 fi 24835 rm -f core conftest.err conftest.$ac_objext \ 24836 conftest$ac_exeext conftest.$ac_ext 24837 LIBS=$ac_check_lib_save_LIBS 24838 fi 24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 24840 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 24841 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 24842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 24843 fi 24844 24845 fi 24846 fi 24847 24848 # lieder@skyler.mavd.honeywell.com says without -lsocket, 24849 # socket/setsockopt and other routines are undefined under SCO ODT 24850 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 24851 # on later versions), says Simon Leinen: it contains gethostby* 24852 # variants that don't use the name server (or something). -lsocket 24853 # must be given before -lnsl if both are needed. We assume that 24854 # if connect needs -lnsl, so does gethostbyname. 24855 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 24856 if test "x$ac_cv_func_connect" = x""yes; then : 24857 24858 fi 24859 24860 if test $ac_cv_func_connect = no; then 24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 24862 $as_echo_n "checking for connect in -lsocket... " >&6; } 24863 if test "${ac_cv_lib_socket_connect+set}" = set; then : 24864 $as_echo_n "(cached) " >&6 24865 else 24866 ac_check_lib_save_LIBS=$LIBS 24867 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24869 /* end confdefs.h. */ 24870 24871 /* Override any GCC internal prototype to avoid an error. 24872 Use char because int might match the return type of a GCC 24873 builtin and then its argument prototype would still apply. */ 24874 #ifdef __cplusplus 24875 extern "C" 24876 #endif 24877 char connect (); 24878 int 24879 main () 24880 { 24881 return connect (); 24882 ; 24883 return 0; 24884 } 24885 _ACEOF 24886 if ac_fn_c_try_link "$LINENO"; then : 24887 ac_cv_lib_socket_connect=yes 24888 else 24889 ac_cv_lib_socket_connect=no 24890 fi 24891 rm -f core conftest.err conftest.$ac_objext \ 24892 conftest$ac_exeext conftest.$ac_ext 24893 LIBS=$ac_check_lib_save_LIBS 24894 fi 24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 24896 $as_echo "$ac_cv_lib_socket_connect" >&6; } 24897 if test "x$ac_cv_lib_socket_connect" = x""yes; then : 24898 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 24899 fi 24900 24901 fi 24902 24903 # Guillermo Gomez says -lposix is necessary on A/UX. 24904 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 24905 if test "x$ac_cv_func_remove" = x""yes; then : 24906 24907 fi 24908 24909 if test $ac_cv_func_remove = no; then 24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 24911 $as_echo_n "checking for remove in -lposix... " >&6; } 24912 if test "${ac_cv_lib_posix_remove+set}" = set; then : 24913 $as_echo_n "(cached) " >&6 24914 else 24915 ac_check_lib_save_LIBS=$LIBS 24916 LIBS="-lposix $LIBS" 24917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24918 /* end confdefs.h. */ 24919 24920 /* Override any GCC internal prototype to avoid an error. 24921 Use char because int might match the return type of a GCC 24922 builtin and then its argument prototype would still apply. */ 24923 #ifdef __cplusplus 24924 extern "C" 24925 #endif 24926 char remove (); 24927 int 24928 main () 24929 { 24930 return remove (); 24931 ; 24932 return 0; 24933 } 24934 _ACEOF 24935 if ac_fn_c_try_link "$LINENO"; then : 24936 ac_cv_lib_posix_remove=yes 24937 else 24938 ac_cv_lib_posix_remove=no 24939 fi 24940 rm -f core conftest.err conftest.$ac_objext \ 24941 conftest$ac_exeext conftest.$ac_ext 24942 LIBS=$ac_check_lib_save_LIBS 24943 fi 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 24945 $as_echo "$ac_cv_lib_posix_remove" >&6; } 24946 if test "x$ac_cv_lib_posix_remove" = x""yes; then : 24947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 24948 fi 24949 24950 fi 24951 24952 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 24953 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 24954 if test "x$ac_cv_func_shmat" = x""yes; then : 24955 24956 fi 24957 24958 if test $ac_cv_func_shmat = no; then 24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 24960 $as_echo_n "checking for shmat in -lipc... " >&6; } 24961 if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 24962 $as_echo_n "(cached) " >&6 24963 else 24964 ac_check_lib_save_LIBS=$LIBS 24965 LIBS="-lipc $LIBS" 24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24967 /* end confdefs.h. */ 24968 24969 /* Override any GCC internal prototype to avoid an error. 24970 Use char because int might match the return type of a GCC 24971 builtin and then its argument prototype would still apply. */ 24972 #ifdef __cplusplus 24973 extern "C" 24974 #endif 24975 char shmat (); 24976 int 24977 main () 24978 { 24979 return shmat (); 24980 ; 24981 return 0; 24982 } 24983 _ACEOF 24984 if ac_fn_c_try_link "$LINENO"; then : 24985 ac_cv_lib_ipc_shmat=yes 24986 else 24987 ac_cv_lib_ipc_shmat=no 24988 fi 24989 rm -f core conftest.err conftest.$ac_objext \ 24990 conftest$ac_exeext conftest.$ac_ext 24991 LIBS=$ac_check_lib_save_LIBS 24992 fi 24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 24994 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 24995 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 24996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 24997 fi 24998 24999 fi 25000 fi 25001 25002 # Check for libraries that X11R6 Xt/Xaw programs need. 25003 ac_save_LDFLAGS=$LDFLAGS 25004 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 25005 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 25006 # check for ICE first), but we must link in the order -lSM -lICE or 25007 # we get undefined symbols. So assume we have SM if we have ICE. 25008 # These have to be linked with before -lX11, unlike the other 25009 # libraries we check for below, so use a different variable. 25010 # John Interrante, Karl Berry 25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 25012 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 25013 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 25014 $as_echo_n "(cached) " >&6 25015 else 25016 ac_check_lib_save_LIBS=$LIBS 25017 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 25018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25019 /* end confdefs.h. */ 25020 25021 /* Override any GCC internal prototype to avoid an error. 25022 Use char because int might match the return type of a GCC 25023 builtin and then its argument prototype would still apply. */ 25024 #ifdef __cplusplus 25025 extern "C" 25026 #endif 25027 char IceConnectionNumber (); 25028 int 25029 main () 25030 { 25031 return IceConnectionNumber (); 25032 ; 25033 return 0; 25034 } 25035 _ACEOF 25036 if ac_fn_c_try_link "$LINENO"; then : 25037 ac_cv_lib_ICE_IceConnectionNumber=yes 25038 else 25039 ac_cv_lib_ICE_IceConnectionNumber=no 25040 fi 25041 rm -f core conftest.err conftest.$ac_objext \ 25042 conftest$ac_exeext conftest.$ac_ext 25043 LIBS=$ac_check_lib_save_LIBS 25044 fi 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 25046 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 25047 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 25048 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 25049 fi 25050 25051 LDFLAGS=$ac_save_LDFLAGS 25052 25053 fi 25054 25055 25056 # try to figure out if we need any additional ld flags, like -R 25057 # and yes, the autoconf X test is utterly broken 25058 if test "$no_x" != yes; then 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special X linker flags" >&5 25060 $as_echo_n "checking for special X linker flags... " >&6; } 25061 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then : 25062 $as_echo_n "(cached) " >&6 25063 else 25064 25065 ac_save_libs="$LIBS" 25066 ac_save_cflags="$CFLAGS" 25067 CFLAGS="$CFLAGS $X_CFLAGS" 25068 krb_cv_sys_x_libs_rpath="" 25069 krb_cv_sys_x_libs="" 25070 for rflag in "" "-R" "-R " "-rpath "; do 25071 if test "$rflag" = ""; then 25072 foo="$X_LIBS" 25073 else 25074 foo="" 25075 for flag in $X_LIBS; do 25076 case $flag in 25077 -L*) 25078 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 25079 ;; 25080 *) 25081 foo="$foo $flag" 25082 ;; 25083 esac 25084 done 25085 fi 25086 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 25087 if test "$cross_compiling" = yes; then : 25088 krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break 25089 else 25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25091 /* end confdefs.h. */ 25092 25093 #include <X11/Xlib.h> 25094 foo(void) 25095 { 25096 XOpenDisplay(NULL); 25097 } 25098 main(int argc, char **argv) 25099 { 25100 return 0; 25101 } 25102 25103 _ACEOF 25104 if ac_fn_c_try_run "$LINENO"; then : 25105 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 25106 else 25107 : 25108 fi 25109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25110 conftest.$ac_objext conftest.beam conftest.$ac_ext 25111 fi 25112 25113 done 25114 LIBS="$ac_save_libs" 25115 CFLAGS="$ac_save_cflags" 25116 25117 fi 25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_sys_x_libs_rpath" >&5 25119 $as_echo "$krb_cv_sys_x_libs_rpath" >&6; } 25120 X_LIBS="$krb_cv_sys_x_libs" 25121 fi 25122 25123 25124 if test "$no_x" != yes; then 25125 HAVE_X_TRUE= 25126 HAVE_X_FALSE='#' 25127 else 25128 HAVE_X_TRUE='#' 25129 HAVE_X_FALSE= 25130 fi 25131 25132 25133 25134 save_CFLAGS="$CFLAGS" 25135 CFLAGS="$X_CFLAGS $CFLAGS" 25136 save_LIBS="$LIBS" 25137 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 25138 save_LDFLAGS="$LDFLAGS" 25139 LDFLAGS="$LDFLAGS $X_LIBS" 25140 25141 ## check for XauWriteAuth first, so we detect the case where 25142 ## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this 25143 ## could be done by checking for XauReadAuth in -lXau first, but this 25144 ## breaks in IRIX 6.5 25145 25146 25147 25148 25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauWriteAuth" >&5 25150 $as_echo_n "checking for XauWriteAuth... " >&6; } 25151 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then : 25152 $as_echo_n "(cached) " >&6 25153 else 25154 25155 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 25156 ac_save_LIBS="$LIBS" 25157 for ac_lib in "" X11 Xau; do 25158 case "$ac_lib" in 25159 "") ;; 25160 yes) ac_lib="" ;; 25161 no) continue ;; 25162 -l*) ;; 25163 *) ac_lib="-l$ac_lib" ;; 25164 esac 25165 LIBS=" $ac_lib $ac_save_LIBS" 25166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25167 /* end confdefs.h. */ 25168 #include <X11/Xauth.h> 25169 int 25170 main () 25171 { 25172 XauWriteAuth(0,0) 25173 ; 25174 return 0; 25175 } 25176 _ACEOF 25177 if ac_fn_c_try_link "$LINENO"; then : 25178 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 25179 fi 25180 rm -f core conftest.err conftest.$ac_objext \ 25181 conftest$ac_exeext conftest.$ac_ext 25182 done 25183 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 25184 LIBS="$ac_save_LIBS" 25185 fi 25186 25187 fi 25188 25189 25190 eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 25191 25192 if false; then 25193 for ac_func in XauWriteAuth 25194 do : 25195 ac_fn_c_check_func "$LINENO" "XauWriteAuth" "ac_cv_func_XauWriteAuth" 25196 if test "x$ac_cv_func_XauWriteAuth" = x""yes; then : 25197 cat >>confdefs.h <<_ACEOF 25198 #define HAVE_XAUWRITEAUTH 1 25199 _ACEOF 25200 25201 fi 25202 done 25203 25204 fi 25205 # XauWriteAuth 25206 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25207 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25208 eval "LIB_XauWriteAuth=$ac_res" 25209 25210 case "$ac_res" in 25211 yes) 25212 eval "ac_cv_func_XauWriteAuth=yes" 25213 eval "LIB_XauWriteAuth=" 25214 cat >>confdefs.h <<_ACEOF 25215 #define $ac_tr_func 1 25216 _ACEOF 25217 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25219 $as_echo "yes" >&6; } 25220 ;; 25221 no) 25222 eval "ac_cv_func_XauWriteAuth=no" 25223 eval "LIB_XauWriteAuth=" 25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25225 $as_echo "no" >&6; } 25226 ;; 25227 *) 25228 eval "ac_cv_func_XauWriteAuth=yes" 25229 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 25230 cat >>confdefs.h <<_ACEOF 25231 #define $ac_tr_func 1 25232 _ACEOF 25233 25234 cat >>confdefs.h <<_ACEOF 25235 #define $ac_tr_lib 1 25236 _ACEOF 25237 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 25239 $as_echo "yes, in $ac_res" >&6; } 25240 ;; 25241 esac 25242 25243 25244 ac_xxx="$LIBS" 25245 LIBS="$LIB_XauWriteAuth $LIBS" 25246 25247 25248 25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth" >&5 25250 $as_echo_n "checking for XauReadAuth... " >&6; } 25251 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then : 25252 $as_echo_n "(cached) " >&6 25253 else 25254 25255 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 25256 ac_save_LIBS="$LIBS" 25257 for ac_lib in "" X11 Xau; do 25258 case "$ac_lib" in 25259 "") ;; 25260 yes) ac_lib="" ;; 25261 no) continue ;; 25262 -l*) ;; 25263 *) ac_lib="-l$ac_lib" ;; 25264 esac 25265 LIBS=" $ac_lib $ac_save_LIBS" 25266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25267 /* end confdefs.h. */ 25268 #include <X11/Xauth.h> 25269 int 25270 main () 25271 { 25272 XauReadAuth(0) 25273 ; 25274 return 0; 25275 } 25276 _ACEOF 25277 if ac_fn_c_try_link "$LINENO"; then : 25278 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 25279 fi 25280 rm -f core conftest.err conftest.$ac_objext \ 25281 conftest$ac_exeext conftest.$ac_ext 25282 done 25283 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 25284 LIBS="$ac_save_LIBS" 25285 fi 25286 25287 fi 25288 25289 25290 eval "ac_res=\$ac_cv_funclib_XauReadAuth" 25291 25292 if false; then 25293 for ac_func in XauReadAuth 25294 do : 25295 ac_fn_c_check_func "$LINENO" "XauReadAuth" "ac_cv_func_XauReadAuth" 25296 if test "x$ac_cv_func_XauReadAuth" = x""yes; then : 25297 cat >>confdefs.h <<_ACEOF 25298 #define HAVE_XAUREADAUTH 1 25299 _ACEOF 25300 25301 fi 25302 done 25303 25304 fi 25305 # XauReadAuth 25306 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25307 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25308 eval "LIB_XauReadAuth=$ac_res" 25309 25310 case "$ac_res" in 25311 yes) 25312 eval "ac_cv_func_XauReadAuth=yes" 25313 eval "LIB_XauReadAuth=" 25314 cat >>confdefs.h <<_ACEOF 25315 #define $ac_tr_func 1 25316 _ACEOF 25317 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25319 $as_echo "yes" >&6; } 25320 ;; 25321 no) 25322 eval "ac_cv_func_XauReadAuth=no" 25323 eval "LIB_XauReadAuth=" 25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25325 $as_echo "no" >&6; } 25326 ;; 25327 *) 25328 eval "ac_cv_func_XauReadAuth=yes" 25329 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 25330 cat >>confdefs.h <<_ACEOF 25331 #define $ac_tr_func 1 25332 _ACEOF 25333 25334 cat >>confdefs.h <<_ACEOF 25335 #define $ac_tr_lib 1 25336 _ACEOF 25337 25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 25339 $as_echo "yes, in $ac_res" >&6; } 25340 ;; 25341 esac 25342 25343 25344 LIBS="$LIB_XauReadAauth $LIBS" 25345 25346 25347 25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName" >&5 25349 $as_echo_n "checking for XauFileName... " >&6; } 25350 if test "${ac_cv_funclib_XauFileName+set}" = set; then : 25351 $as_echo_n "(cached) " >&6 25352 else 25353 25354 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 25355 ac_save_LIBS="$LIBS" 25356 for ac_lib in "" X11 Xau; do 25357 case "$ac_lib" in 25358 "") ;; 25359 yes) ac_lib="" ;; 25360 no) continue ;; 25361 -l*) ;; 25362 *) ac_lib="-l$ac_lib" ;; 25363 esac 25364 LIBS=" $ac_lib $ac_save_LIBS" 25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25366 /* end confdefs.h. */ 25367 #include <X11/Xauth.h> 25368 int 25369 main () 25370 { 25371 XauFileName() 25372 ; 25373 return 0; 25374 } 25375 _ACEOF 25376 if ac_fn_c_try_link "$LINENO"; then : 25377 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 25378 fi 25379 rm -f core conftest.err conftest.$ac_objext \ 25380 conftest$ac_exeext conftest.$ac_ext 25381 done 25382 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 25383 LIBS="$ac_save_LIBS" 25384 fi 25385 25386 fi 25387 25388 25389 eval "ac_res=\$ac_cv_funclib_XauFileName" 25390 25391 if false; then 25392 for ac_func in XauFileName 25393 do : 25394 ac_fn_c_check_func "$LINENO" "XauFileName" "ac_cv_func_XauFileName" 25395 if test "x$ac_cv_func_XauFileName" = x""yes; then : 25396 cat >>confdefs.h <<_ACEOF 25397 #define HAVE_XAUFILENAME 1 25398 _ACEOF 25399 25400 fi 25401 done 25402 25403 fi 25404 # XauFileName 25405 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25406 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25407 eval "LIB_XauFileName=$ac_res" 25408 25409 case "$ac_res" in 25410 yes) 25411 eval "ac_cv_func_XauFileName=yes" 25412 eval "LIB_XauFileName=" 25413 cat >>confdefs.h <<_ACEOF 25414 #define $ac_tr_func 1 25415 _ACEOF 25416 25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25418 $as_echo "yes" >&6; } 25419 ;; 25420 no) 25421 eval "ac_cv_func_XauFileName=no" 25422 eval "LIB_XauFileName=" 25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25424 $as_echo "no" >&6; } 25425 ;; 25426 *) 25427 eval "ac_cv_func_XauFileName=yes" 25428 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 25429 cat >>confdefs.h <<_ACEOF 25430 #define $ac_tr_func 1 25431 _ACEOF 25432 25433 cat >>confdefs.h <<_ACEOF 25434 #define $ac_tr_lib 1 25435 _ACEOF 25436 25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 25438 $as_echo "yes, in $ac_res" >&6; } 25439 ;; 25440 esac 25441 25442 25443 LIBS="$ac_xxx" 25444 25445 ## set LIB_XauReadAuth to union of these tests, since this is what the 25446 ## Makefiles are using 25447 case "$ac_cv_funclib_XauWriteAuth" in 25448 yes) ;; 25449 no) ;; 25450 *) if test "$ac_cv_funclib_XauReadAuth" = yes; then 25451 if test "$ac_cv_funclib_XauFileName" = yes; then 25452 LIB_XauReadAuth="$LIB_XauWriteAuth" 25453 else 25454 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 25455 fi 25456 else 25457 if test "$ac_cv_funclib_XauFileName" = yes; then 25458 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 25459 else 25460 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 25461 fi 25462 fi 25463 ;; 25464 esac 25465 25466 if test "$AUTOMAKE" != ""; then 25467 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 25468 NEED_WRITEAUTH_TRUE= 25469 NEED_WRITEAUTH_FALSE='#' 25470 else 25471 NEED_WRITEAUTH_TRUE='#' 25472 NEED_WRITEAUTH_FALSE= 25473 fi 25474 25475 else 25476 25477 25478 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 25479 NEED_WRITEAUTH_TRUE= 25480 NEED_WRITEAUTH_FALSE='#' 25481 else 25482 NEED_WRITEAUTH_TRUE='#' 25483 NEED_WRITEAUTH_FALSE= 25484 fi 25485 fi 25486 CFLAGS=$save_CFLAGS 25487 LIBS=$save_LIBS 25488 LDFLAGS=$save_LDFLAGS 25489 25490 25491 25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 25493 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 25494 if test "${ac_cv_c_const+set}" = set; then : 25495 $as_echo_n "(cached) " >&6 25496 else 25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25498 /* end confdefs.h. */ 25499 25500 int 25501 main () 25502 { 25503 /* FIXME: Include the comments suggested by Paul. */ 25504 #ifndef __cplusplus 25505 /* Ultrix mips cc rejects this. */ 25506 typedef int charset[2]; 25507 const charset cs; 25508 /* SunOS 4.1.1 cc rejects this. */ 25509 char const *const *pcpcc; 25510 char **ppc; 25511 /* NEC SVR4.0.2 mips cc rejects this. */ 25512 struct point {int x, y;}; 25513 static struct point const zero = {0,0}; 25514 /* AIX XL C 1.02.0.0 rejects this. 25515 It does not let you subtract one const X* pointer from another in 25516 an arm of an if-expression whose if-part is not a constant 25517 expression */ 25518 const char *g = "string"; 25519 pcpcc = &g + (g ? g-g : 0); 25520 /* HPUX 7.0 cc rejects these. */ 25521 ++pcpcc; 25522 ppc = (char**) pcpcc; 25523 pcpcc = (char const *const *) ppc; 25524 { /* SCO 3.2v4 cc rejects this. */ 25525 char *t; 25526 char const *s = 0 ? (char *) 0 : (char const *) 0; 25527 25528 *t++ = 0; 25529 if (s) return 0; 25530 } 25531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 25532 int x[] = {25, 17}; 25533 const int *foo = &x[0]; 25534 ++foo; 25535 } 25536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 25537 typedef const int *iptr; 25538 iptr p = 0; 25539 ++p; 25540 } 25541 { /* AIX XL C 1.02.0.0 rejects this saying 25542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 25543 struct s { int j; const int *ap[3]; }; 25544 struct s *b; b->j = 5; 25545 } 25546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 25547 const int foo = 10; 25548 if (!foo) return 0; 25549 } 25550 return !cs[0] && !zero.x; 25551 #endif 25552 25553 ; 25554 return 0; 25555 } 25556 _ACEOF 25557 if ac_fn_c_try_compile "$LINENO"; then : 25558 ac_cv_c_const=yes 25559 else 25560 ac_cv_c_const=no 25561 fi 25562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25563 fi 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 25565 $as_echo "$ac_cv_c_const" >&6; } 25566 if test $ac_cv_c_const = no; then 25567 25568 $as_echo "#define const /**/" >>confdefs.h 25569 25570 fi 25571 25572 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 25573 if test "x$ac_cv_type_off_t" = x""yes; then : 25574 25575 else 25576 25577 cat >>confdefs.h <<_ACEOF 25578 #define off_t long int 25579 _ACEOF 25580 25581 fi 25582 25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 25584 $as_echo_n "checking for mode_t... " >&6; } 25585 if test "${ac_cv_type_mode_t+set}" = set; then : 25586 $as_echo_n "(cached) " >&6 25587 else 25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25589 /* end confdefs.h. */ 25590 #include <sys/types.h> 25591 #if STDC_HEADERS 25592 #include <stdlib.h> 25593 #include <stddef.h> 25594 #endif 25595 25596 _ACEOF 25597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25598 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 25599 ac_cv_type_mode_t=yes 25600 else 25601 ac_cv_type_mode_t=no 25602 fi 25603 rm -f conftest* 25604 25605 fi 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5 25607 $as_echo "$ac_cv_type_mode_t" >&6; } 25608 if test $ac_cv_type_mode_t = no; then 25609 25610 $as_echo "#define mode_t unsigned short" >>confdefs.h 25611 25612 fi 25613 25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 25615 $as_echo_n "checking for sig_atomic_t... " >&6; } 25616 if test "${ac_cv_type_sig_atomic_t+set}" = set; then : 25617 $as_echo_n "(cached) " >&6 25618 else 25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25620 /* end confdefs.h. */ 25621 #include <sys/types.h> 25622 #if STDC_HEADERS 25623 #include <stdlib.h> 25624 #include <stddef.h> 25625 #endif 25626 #include <signal.h> 25627 _ACEOF 25628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25629 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 25630 ac_cv_type_sig_atomic_t=yes 25631 else 25632 ac_cv_type_sig_atomic_t=no 25633 fi 25634 rm -f conftest* 25635 25636 fi 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 25638 $as_echo "$ac_cv_type_sig_atomic_t" >&6; } 25639 if test $ac_cv_type_sig_atomic_t = no; then 25640 25641 $as_echo "#define sig_atomic_t int" >>confdefs.h 25642 25643 fi 25644 25645 25646 25647 cv=`echo "long long" | sed 'y%./+- %__p__%'` 25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 25649 $as_echo_n "checking for long long... " >&6; } 25650 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then : 25651 $as_echo_n "(cached) " >&6 25652 else 25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25654 /* end confdefs.h. */ 25655 25656 #include <sys/types.h> 25657 #if STDC_HEADERS 25658 #include <stdlib.h> 25659 #include <stddef.h> 25660 #endif 25661 25662 int 25663 main () 25664 { 25665 long long foo; 25666 ; 25667 return 0; 25668 } 25669 _ACEOF 25670 if ac_fn_c_try_compile "$LINENO"; then : 25671 eval "ac_cv_type_$cv=yes" 25672 else 25673 eval "ac_cv_type_$cv=no" 25674 fi 25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25676 fi 25677 ac_foo=`eval echo \\$ac_cv_type_$cv` 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5 25679 $as_echo "$ac_foo" >&6; } 25680 if test "$ac_foo" = yes; then 25681 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 25682 if false; then 25683 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 25684 if test "x$ac_cv_type_long_long" = x""yes; then : 25685 25686 cat >>confdefs.h <<_ACEOF 25687 #define HAVE_LONG_LONG 1 25688 _ACEOF 25689 25690 25691 fi 25692 25693 fi 25694 25695 cat >>confdefs.h <<_ACEOF 25696 #define $ac_tr_hdr 1 25697 _ACEOF 25698 25699 fi 25700 25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 25702 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 25703 if test "${ac_cv_header_time+set}" = set; then : 25704 $as_echo_n "(cached) " >&6 25705 else 25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25707 /* end confdefs.h. */ 25708 #include <sys/types.h> 25709 #include <sys/time.h> 25710 #include <time.h> 25711 25712 int 25713 main () 25714 { 25715 if ((struct tm *) 0) 25716 return 0; 25717 ; 25718 return 0; 25719 } 25720 _ACEOF 25721 if ac_fn_c_try_compile "$LINENO"; then : 25722 ac_cv_header_time=yes 25723 else 25724 ac_cv_header_time=no 25725 fi 25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25727 fi 25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 25729 $as_echo "$ac_cv_header_time" >&6; } 25730 if test $ac_cv_header_time = yes; then 25731 25732 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 25733 25734 fi 25735 25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 25737 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 25738 if test "${ac_cv_struct_tm+set}" = set; then : 25739 $as_echo_n "(cached) " >&6 25740 else 25741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25742 /* end confdefs.h. */ 25743 #include <sys/types.h> 25744 #include <time.h> 25745 25746 int 25747 main () 25748 { 25749 struct tm tm; 25750 int *p = &tm.tm_sec; 25751 return !p; 25752 ; 25753 return 0; 25754 } 25755 _ACEOF 25756 if ac_fn_c_try_compile "$LINENO"; then : 25757 ac_cv_struct_tm=time.h 25758 else 25759 ac_cv_struct_tm=sys/time.h 25760 fi 25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25762 fi 25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 25764 $as_echo "$ac_cv_struct_tm" >&6; } 25765 if test $ac_cv_struct_tm = sys/time.h; then 25766 25767 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 25768 25769 fi 25770 25771 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 25773 $as_echo_n "checking for ANSI C header files... " >&6; } 25774 if test "${ac_cv_header_stdc+set}" = set; then : 25775 $as_echo_n "(cached) " >&6 25776 else 25777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25778 /* end confdefs.h. */ 25779 #include <stdlib.h> 25780 #include <stdarg.h> 25781 #include <string.h> 25782 #include <float.h> 25783 25784 int 25785 main () 25786 { 25787 25788 ; 25789 return 0; 25790 } 25791 _ACEOF 25792 if ac_fn_c_try_compile "$LINENO"; then : 25793 ac_cv_header_stdc=yes 25794 else 25795 ac_cv_header_stdc=no 25796 fi 25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25798 25799 if test $ac_cv_header_stdc = yes; then 25800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 25801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25802 /* end confdefs.h. */ 25803 #include <string.h> 25804 25805 _ACEOF 25806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25807 $EGREP "memchr" >/dev/null 2>&1; then : 25808 25809 else 25810 ac_cv_header_stdc=no 25811 fi 25812 rm -f conftest* 25813 25814 fi 25815 25816 if test $ac_cv_header_stdc = yes; then 25817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 25818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25819 /* end confdefs.h. */ 25820 #include <stdlib.h> 25821 25822 _ACEOF 25823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25824 $EGREP "free" >/dev/null 2>&1; then : 25825 25826 else 25827 ac_cv_header_stdc=no 25828 fi 25829 rm -f conftest* 25830 25831 fi 25832 25833 if test $ac_cv_header_stdc = yes; then 25834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 25835 if test "$cross_compiling" = yes; then : 25836 : 25837 else 25838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25839 /* end confdefs.h. */ 25840 #include <ctype.h> 25841 #include <stdlib.h> 25842 #if ((' ' & 0x0FF) == 0x020) 25843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 25844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 25845 #else 25846 # define ISLOWER(c) \ 25847 (('a' <= (c) && (c) <= 'i') \ 25848 || ('j' <= (c) && (c) <= 'r') \ 25849 || ('s' <= (c) && (c) <= 'z')) 25850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 25851 #endif 25852 25853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 25854 int 25855 main () 25856 { 25857 int i; 25858 for (i = 0; i < 256; i++) 25859 if (XOR (islower (i), ISLOWER (i)) 25860 || toupper (i) != TOUPPER (i)) 25861 return 2; 25862 return 0; 25863 } 25864 _ACEOF 25865 if ac_fn_c_try_run "$LINENO"; then : 25866 25867 else 25868 ac_cv_header_stdc=no 25869 fi 25870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25871 conftest.$ac_objext conftest.beam conftest.$ac_ext 25872 fi 25873 25874 fi 25875 fi 25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 25877 $as_echo "$ac_cv_header_stdc" >&6; } 25878 if test $ac_cv_header_stdc = yes; then 25879 25880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 25881 25882 fi 25883 25884 25885 for ac_header in \ 25886 CommonCrypto/CommonDigest.h \ 25887 CommonCrypto/CommonCryptor.h \ 25888 arpa/ftp.h \ 25889 arpa/telnet.h \ 25890 bind/bitypes.h \ 25891 bsdsetjmp.h \ 25892 curses.h \ 25893 dlfcn.h \ 25894 execinfo.h \ 25895 fnmatch.h \ 25896 inttypes.h \ 25897 io.h \ 25898 libutil.h \ 25899 limits.h \ 25900 maillock.h \ 25901 netgroup.h \ 25902 netinet/in6_machtypes.h \ 25903 pthread.h \ 25904 pty.h \ 25905 sac.h \ 25906 sgtty.h \ 25907 siad.h \ 25908 signal.h \ 25909 strings.h \ 25910 stropts.h \ 25911 sys/bitypes.h \ 25912 sys/category.h \ 25913 sys/file.h \ 25914 sys/filio.h \ 25915 sys/ioccom.h \ 25916 sys/mman.h \ 25917 sys/param.h \ 25918 sys/pty.h \ 25919 sys/ptyio.h \ 25920 sys/select.h \ 25921 sys/socket.h \ 25922 sys/str_tty.h \ 25923 sys/stream.h \ 25924 sys/stropts.h \ 25925 sys/syscall.h \ 25926 sys/termio.h \ 25927 sys/timeb.h \ 25928 sys/times.h \ 25929 sys/types.h \ 25930 sys/un.h \ 25931 locale.h \ 25932 termcap.h \ 25933 termio.h \ 25934 termios.h \ 25935 time.h \ 25936 tmpdir.h \ 25937 udb.h \ 25938 util.h \ 25939 utmp.h \ 25940 utmpx.h \ 25941 25942 do : 25943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25944 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25945 eval as_val=\$$as_ac_Header 25946 if test "x$as_val" = x""yes; then : 25947 cat >>confdefs.h <<_ACEOF 25948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25949 _ACEOF 25950 25951 fi 25952 25953 done 25954 25955 25956 for ac_header in term.h 25957 do : 25958 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 25959 if test "x$ac_cv_header_term_h" = x""yes; then : 25960 cat >>confdefs.h <<_ACEOF 25961 #define HAVE_TERM_H 1 25962 _ACEOF 25963 25964 fi 25965 25966 done 25967 25968 25969 for ac_header in asl.h 25970 do : 25971 ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" " 25972 #include <asl.h> 25973 #ifndef ASL_STRING_EMERG 25974 #error ASL_STRING_EMERG missing 25975 #endif 25976 " 25977 if test "x$ac_cv_header_asl_h" = x""yes; then : 25978 cat >>confdefs.h <<_ACEOF 25979 #define HAVE_ASL_H 1 25980 _ACEOF 25981 25982 fi 25983 25984 done 25985 25986 25987 for ac_header in net/if.h 25988 do : 25989 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 25990 #if HAVE_SYS_SOCKET_H 25991 #include <sys/socket.h> 25992 #endif 25993 " 25994 if test "x$ac_cv_header_net_if_h" = x""yes; then : 25995 cat >>confdefs.h <<_ACEOF 25996 #define HAVE_NET_IF_H 1 25997 _ACEOF 25998 25999 fi 26000 26001 done 26002 26003 26004 for ac_header in sys/ptyvar.h 26005 do : 26006 ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default 26007 #if HAVE_SYS_TTY_H 26008 #include <sys/tty.h> 26009 #endif 26010 " 26011 if test "x$ac_cv_header_sys_ptyvar_h" = x""yes; then : 26012 cat >>confdefs.h <<_ACEOF 26013 #define HAVE_SYS_PTYVAR_H 1 26014 _ACEOF 26015 26016 fi 26017 26018 done 26019 26020 26021 for ac_header in sys/strtty.h 26022 do : 26023 ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default 26024 #if HAVE_TERMIOS_H 26025 #include <termios.h> 26026 #endif 26027 #if HAVE_SYS_STREAM_H 26028 #include <sys/stream.h> 26029 #endif 26030 " 26031 if test "x$ac_cv_header_sys_strtty_h" = x""yes; then : 26032 cat >>confdefs.h <<_ACEOF 26033 #define HAVE_SYS_STRTTY_H 1 26034 _ACEOF 26035 26036 fi 26037 26038 done 26039 26040 26041 for ac_header in sys/ucred.h 26042 do : 26043 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default 26044 #if HAVE_SYS_TYPES_H 26045 #include <sys/types.h> 26046 #endif 26047 #if HAVE_SYS_PARAM_H 26048 #include <sys/param.h> 26049 #endif 26050 " 26051 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then : 26052 cat >>confdefs.h <<_ACEOF 26053 #define HAVE_SYS_UCRED_H 1 26054 _ACEOF 26055 26056 fi 26057 26058 done 26059 26060 26061 for ac_header in security/pam_modules.h 26062 do : 26063 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default 26064 #include <security/pam_appl.h> 26065 26066 " 26067 if test "x$ac_cv_header_security_pam_modules_h" = x""yes; then : 26068 cat >>confdefs.h <<_ACEOF 26069 #define HAVE_SECURITY_PAM_MODULES_H 1 26070 _ACEOF 26071 26072 fi 26073 26074 done 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5 26086 $as_echo_n "checking for logwtmp... " >&6; } 26087 if test "${ac_cv_funclib_logwtmp+set}" = set; then : 26088 $as_echo_n "(cached) " >&6 26089 else 26090 26091 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 26092 ac_save_LIBS="$LIBS" 26093 for ac_lib in "" util; do 26094 case "$ac_lib" in 26095 "") ;; 26096 yes) ac_lib="" ;; 26097 no) continue ;; 26098 -l*) ;; 26099 *) ac_lib="-l$ac_lib" ;; 26100 esac 26101 LIBS=" $ac_lib $ac_save_LIBS" 26102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26103 /* end confdefs.h. */ 26104 26105 #ifdef HAVE_UTIL_H 26106 #include <util.h> 26107 #endif 26108 26109 int 26110 main () 26111 { 26112 logwtmp(0,0,0) 26113 ; 26114 return 0; 26115 } 26116 _ACEOF 26117 if ac_fn_c_try_link "$LINENO"; then : 26118 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 26119 fi 26120 rm -f core conftest.err conftest.$ac_objext \ 26121 conftest$ac_exeext conftest.$ac_ext 26122 done 26123 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 26124 LIBS="$ac_save_LIBS" 26125 fi 26126 26127 fi 26128 26129 26130 eval "ac_res=\$ac_cv_funclib_logwtmp" 26131 26132 if false; then 26133 for ac_func in logwtmp 26134 do : 26135 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp" 26136 if test "x$ac_cv_func_logwtmp" = x""yes; then : 26137 cat >>confdefs.h <<_ACEOF 26138 #define HAVE_LOGWTMP 1 26139 _ACEOF 26140 26141 fi 26142 done 26143 26144 fi 26145 # logwtmp 26146 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26147 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26148 eval "LIB_logwtmp=$ac_res" 26149 26150 case "$ac_res" in 26151 yes) 26152 eval "ac_cv_func_logwtmp=yes" 26153 eval "LIB_logwtmp=" 26154 cat >>confdefs.h <<_ACEOF 26155 #define $ac_tr_func 1 26156 _ACEOF 26157 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26159 $as_echo "yes" >&6; } 26160 ;; 26161 no) 26162 eval "ac_cv_func_logwtmp=no" 26163 eval "LIB_logwtmp=" 26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26165 $as_echo "no" >&6; } 26166 ;; 26167 *) 26168 eval "ac_cv_func_logwtmp=yes" 26169 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26170 cat >>confdefs.h <<_ACEOF 26171 #define $ac_tr_func 1 26172 _ACEOF 26173 26174 cat >>confdefs.h <<_ACEOF 26175 #define $ac_tr_lib 1 26176 _ACEOF 26177 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 26179 $as_echo "yes, in $ac_res" >&6; } 26180 ;; 26181 esac 26182 26183 26184 26185 26186 26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout" >&5 26188 $as_echo_n "checking for logout... " >&6; } 26189 if test "${ac_cv_funclib_logout+set}" = set; then : 26190 $as_echo_n "(cached) " >&6 26191 else 26192 26193 if eval "test \"\$ac_cv_func_logout\" != yes" ; then 26194 ac_save_LIBS="$LIBS" 26195 for ac_lib in "" util; do 26196 case "$ac_lib" in 26197 "") ;; 26198 yes) ac_lib="" ;; 26199 no) continue ;; 26200 -l*) ;; 26201 *) ac_lib="-l$ac_lib" ;; 26202 esac 26203 LIBS=" $ac_lib $ac_save_LIBS" 26204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26205 /* end confdefs.h. */ 26206 26207 #ifdef HAVE_UTIL_H 26208 #include <util.h> 26209 #endif 26210 26211 int 26212 main () 26213 { 26214 logout(0) 26215 ; 26216 return 0; 26217 } 26218 _ACEOF 26219 if ac_fn_c_try_link "$LINENO"; then : 26220 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 26221 fi 26222 rm -f core conftest.err conftest.$ac_objext \ 26223 conftest$ac_exeext conftest.$ac_ext 26224 done 26225 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 26226 LIBS="$ac_save_LIBS" 26227 fi 26228 26229 fi 26230 26231 26232 eval "ac_res=\$ac_cv_funclib_logout" 26233 26234 if false; then 26235 for ac_func in logout 26236 do : 26237 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout" 26238 if test "x$ac_cv_func_logout" = x""yes; then : 26239 cat >>confdefs.h <<_ACEOF 26240 #define HAVE_LOGOUT 1 26241 _ACEOF 26242 26243 fi 26244 done 26245 26246 fi 26247 # logout 26248 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26249 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26250 eval "LIB_logout=$ac_res" 26251 26252 case "$ac_res" in 26253 yes) 26254 eval "ac_cv_func_logout=yes" 26255 eval "LIB_logout=" 26256 cat >>confdefs.h <<_ACEOF 26257 #define $ac_tr_func 1 26258 _ACEOF 26259 26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26261 $as_echo "yes" >&6; } 26262 ;; 26263 no) 26264 eval "ac_cv_func_logout=no" 26265 eval "LIB_logout=" 26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26267 $as_echo "no" >&6; } 26268 ;; 26269 *) 26270 eval "ac_cv_func_logout=yes" 26271 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26272 cat >>confdefs.h <<_ACEOF 26273 #define $ac_tr_func 1 26274 _ACEOF 26275 26276 cat >>confdefs.h <<_ACEOF 26277 #define $ac_tr_lib 1 26278 _ACEOF 26279 26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 26281 $as_echo "yes, in $ac_res" >&6; } 26282 ;; 26283 esac 26284 26285 26286 26287 26288 26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5 26290 $as_echo_n "checking for openpty... " >&6; } 26291 if test "${ac_cv_funclib_openpty+set}" = set; then : 26292 $as_echo_n "(cached) " >&6 26293 else 26294 26295 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 26296 ac_save_LIBS="$LIBS" 26297 for ac_lib in "" util; do 26298 case "$ac_lib" in 26299 "") ;; 26300 yes) ac_lib="" ;; 26301 no) continue ;; 26302 -l*) ;; 26303 *) ac_lib="-l$ac_lib" ;; 26304 esac 26305 LIBS=" $ac_lib $ac_save_LIBS" 26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26307 /* end confdefs.h. */ 26308 26309 #ifdef HAVE_UTIL_H 26310 #include <util.h> 26311 #endif 26312 26313 int 26314 main () 26315 { 26316 openpty(0,0,0,0,0) 26317 ; 26318 return 0; 26319 } 26320 _ACEOF 26321 if ac_fn_c_try_link "$LINENO"; then : 26322 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 26323 fi 26324 rm -f core conftest.err conftest.$ac_objext \ 26325 conftest$ac_exeext conftest.$ac_ext 26326 done 26327 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 26328 LIBS="$ac_save_LIBS" 26329 fi 26330 26331 fi 26332 26333 26334 eval "ac_res=\$ac_cv_funclib_openpty" 26335 26336 if false; then 26337 for ac_func in openpty 26338 do : 26339 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 26340 if test "x$ac_cv_func_openpty" = x""yes; then : 26341 cat >>confdefs.h <<_ACEOF 26342 #define HAVE_OPENPTY 1 26343 _ACEOF 26344 26345 fi 26346 done 26347 26348 fi 26349 # openpty 26350 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26351 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26352 eval "LIB_openpty=$ac_res" 26353 26354 case "$ac_res" in 26355 yes) 26356 eval "ac_cv_func_openpty=yes" 26357 eval "LIB_openpty=" 26358 cat >>confdefs.h <<_ACEOF 26359 #define $ac_tr_func 1 26360 _ACEOF 26361 26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26363 $as_echo "yes" >&6; } 26364 ;; 26365 no) 26366 eval "ac_cv_func_openpty=no" 26367 eval "LIB_openpty=" 26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26369 $as_echo "no" >&6; } 26370 ;; 26371 *) 26372 eval "ac_cv_func_openpty=yes" 26373 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26374 cat >>confdefs.h <<_ACEOF 26375 #define $ac_tr_func 1 26376 _ACEOF 26377 26378 cat >>confdefs.h <<_ACEOF 26379 #define $ac_tr_lib 1 26380 _ACEOF 26381 26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 26383 $as_echo "yes, in $ac_res" >&6; } 26384 ;; 26385 esac 26386 26387 26388 26389 26390 26391 26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5 26393 $as_echo_n "checking for tgetent... " >&6; } 26394 if test "${ac_cv_funclib_tgetent+set}" = set; then : 26395 $as_echo_n "(cached) " >&6 26396 else 26397 26398 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 26399 ac_save_LIBS="$LIBS" 26400 for ac_lib in "" termcap ncurses curses; do 26401 case "$ac_lib" in 26402 "") ;; 26403 yes) ac_lib="" ;; 26404 no) continue ;; 26405 -l*) ;; 26406 *) ac_lib="-l$ac_lib" ;; 26407 esac 26408 LIBS=" $ac_lib $ac_save_LIBS" 26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26410 /* end confdefs.h. */ 26411 26412 #ifdef HAVE_TERMCAP_H 26413 #include <termcap.h> 26414 #endif 26415 #ifdef HAVE_CURSES_H 26416 #include <curses.h> 26417 #endif 26418 26419 int 26420 main () 26421 { 26422 tgetent(0,0) 26423 ; 26424 return 0; 26425 } 26426 _ACEOF 26427 if ac_fn_c_try_link "$LINENO"; then : 26428 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 26429 fi 26430 rm -f core conftest.err conftest.$ac_objext \ 26431 conftest$ac_exeext conftest.$ac_ext 26432 done 26433 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 26434 LIBS="$ac_save_LIBS" 26435 fi 26436 26437 fi 26438 26439 26440 eval "ac_res=\$ac_cv_funclib_tgetent" 26441 26442 if false; then 26443 for ac_func in tgetent 26444 do : 26445 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" 26446 if test "x$ac_cv_func_tgetent" = x""yes; then : 26447 cat >>confdefs.h <<_ACEOF 26448 #define HAVE_TGETENT 1 26449 _ACEOF 26450 26451 fi 26452 done 26453 26454 fi 26455 # tgetent 26456 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26457 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26458 eval "LIB_tgetent=$ac_res" 26459 26460 case "$ac_res" in 26461 yes) 26462 eval "ac_cv_func_tgetent=yes" 26463 eval "LIB_tgetent=" 26464 cat >>confdefs.h <<_ACEOF 26465 #define $ac_tr_func 1 26466 _ACEOF 26467 26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26469 $as_echo "yes" >&6; } 26470 ;; 26471 no) 26472 eval "ac_cv_func_tgetent=no" 26473 eval "LIB_tgetent=" 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26475 $as_echo "no" >&6; } 26476 ;; 26477 *) 26478 eval "ac_cv_func_tgetent=yes" 26479 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26480 cat >>confdefs.h <<_ACEOF 26481 #define $ac_tr_func 1 26482 _ACEOF 26483 26484 cat >>confdefs.h <<_ACEOF 26485 #define $ac_tr_lib 1 26486 _ACEOF 26487 26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 26489 $as_echo "yes, in $ac_res" >&6; } 26490 ;; 26491 esac 26492 26493 26494 26495 26496 for ac_func in \ 26497 _getpty \ 26498 _scrsize \ 26499 arc4random \ 26500 backtrace \ 26501 fcntl \ 26502 getpeereid \ 26503 getpeerucred \ 26504 grantpt \ 26505 mktime \ 26506 ptsname \ 26507 rand \ 26508 revoke \ 26509 select \ 26510 setitimer \ 26511 setpcred \ 26512 setpgid \ 26513 setproctitle \ 26514 setregid \ 26515 setresgid \ 26516 setresuid \ 26517 setreuid \ 26518 setsid \ 26519 setutent \ 26520 sigaction \ 26521 strstr \ 26522 ttyname \ 26523 ttyslot \ 26524 umask \ 26525 unlockpt \ 26526 vhangup \ 26527 yp_get_default_domain \ 26528 26529 do : 26530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26532 eval as_val=\$$as_ac_var 26533 if test "x$as_val" = x""yes; then : 26534 cat >>confdefs.h <<_ACEOF 26535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26536 _ACEOF 26537 26538 fi 26539 done 26540 26541 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5 26543 $as_echo_n "checking checking for __sync_add_and_fetch... " >&6; } 26544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26545 /* end confdefs.h. */ 26546 #include <sys/types.h> 26547 int 26548 main () 26549 { 26550 unsigned int foo; __sync_add_and_fetch(&foo, 1); 26551 ; 26552 return 0; 26553 } 26554 _ACEOF 26555 if ac_fn_c_try_link "$LINENO"; then : 26556 ac_rk_have___sync_add_and_fetch=yes 26557 else 26558 ac_rk_have___sync_add_and_fetch=no 26559 fi 26560 rm -f core conftest.err conftest.$ac_objext \ 26561 conftest$ac_exeext conftest.$ac_ext 26562 if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then 26563 26564 cat >>confdefs.h <<_ACEOF 26565 #define HAVE___SYNC_ADD_AND_FETCH 1 26566 _ACEOF 26567 26568 fi 26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5 26570 $as_echo "$ac_rk_have___sync_add_and_fetch" >&6; } 26571 26572 26573 for ac_func in getpagesize 26574 do : 26575 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 26576 if test "x$ac_cv_func_getpagesize" = x""yes; then : 26577 cat >>confdefs.h <<_ACEOF 26578 #define HAVE_GETPAGESIZE 1 26579 _ACEOF 26580 26581 fi 26582 done 26583 26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 26585 $as_echo_n "checking for working mmap... " >&6; } 26586 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 26587 $as_echo_n "(cached) " >&6 26588 else 26589 if test "$cross_compiling" = yes; then : 26590 ac_cv_func_mmap_fixed_mapped=no 26591 else 26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26593 /* end confdefs.h. */ 26594 $ac_includes_default 26595 /* malloc might have been renamed as rpl_malloc. */ 26596 #undef malloc 26597 26598 /* Thanks to Mike Haertel and Jim Avera for this test. 26599 Here is a matrix of mmap possibilities: 26600 mmap private not fixed 26601 mmap private fixed at somewhere currently unmapped 26602 mmap private fixed at somewhere already mapped 26603 mmap shared not fixed 26604 mmap shared fixed at somewhere currently unmapped 26605 mmap shared fixed at somewhere already mapped 26606 For private mappings, we should verify that changes cannot be read() 26607 back from the file, nor mmap's back from the file at a different 26608 address. (There have been systems where private was not correctly 26609 implemented like the infamous i386 svr4.0, and systems where the 26610 VM page cache was not coherent with the file system buffer cache 26611 like early versions of FreeBSD and possibly contemporary NetBSD.) 26612 For shared mappings, we should conversely verify that changes get 26613 propagated back to all the places they're supposed to be. 26614 26615 Grep wants private fixed already mapped. 26616 The main things grep needs to know about mmap are: 26617 * does it exist and is it safe to write into the mmap'd area 26618 * how to use it (BSD variants) */ 26619 26620 #include <fcntl.h> 26621 #include <sys/mman.h> 26622 26623 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 26624 char *malloc (); 26625 #endif 26626 26627 /* This mess was copied from the GNU getpagesize.h. */ 26628 #ifndef HAVE_GETPAGESIZE 26629 # ifdef _SC_PAGESIZE 26630 # define getpagesize() sysconf(_SC_PAGESIZE) 26631 # else /* no _SC_PAGESIZE */ 26632 # ifdef HAVE_SYS_PARAM_H 26633 # include <sys/param.h> 26634 # ifdef EXEC_PAGESIZE 26635 # define getpagesize() EXEC_PAGESIZE 26636 # else /* no EXEC_PAGESIZE */ 26637 # ifdef NBPG 26638 # define getpagesize() NBPG * CLSIZE 26639 # ifndef CLSIZE 26640 # define CLSIZE 1 26641 # endif /* no CLSIZE */ 26642 # else /* no NBPG */ 26643 # ifdef NBPC 26644 # define getpagesize() NBPC 26645 # else /* no NBPC */ 26646 # ifdef PAGESIZE 26647 # define getpagesize() PAGESIZE 26648 # endif /* PAGESIZE */ 26649 # endif /* no NBPC */ 26650 # endif /* no NBPG */ 26651 # endif /* no EXEC_PAGESIZE */ 26652 # else /* no HAVE_SYS_PARAM_H */ 26653 # define getpagesize() 8192 /* punt totally */ 26654 # endif /* no HAVE_SYS_PARAM_H */ 26655 # endif /* no _SC_PAGESIZE */ 26656 26657 #endif /* no HAVE_GETPAGESIZE */ 26658 26659 int 26660 main () 26661 { 26662 char *data, *data2, *data3; 26663 int i, pagesize; 26664 int fd, fd2; 26665 26666 pagesize = getpagesize (); 26667 26668 /* First, make a file with some known garbage in it. */ 26669 data = (char *) malloc (pagesize); 26670 if (!data) 26671 return 1; 26672 for (i = 0; i < pagesize; ++i) 26673 *(data + i) = rand (); 26674 umask (0); 26675 fd = creat ("conftest.mmap", 0600); 26676 if (fd < 0) 26677 return 2; 26678 if (write (fd, data, pagesize) != pagesize) 26679 return 3; 26680 close (fd); 26681 26682 /* Next, check that the tail of a page is zero-filled. File must have 26683 non-zero length, otherwise we risk SIGBUS for entire page. */ 26684 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 26685 if (fd2 < 0) 26686 return 4; 26687 data2 = ""; 26688 if (write (fd2, data2, 1) != 1) 26689 return 5; 26690 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 26691 if (data2 == MAP_FAILED) 26692 return 6; 26693 for (i = 0; i < pagesize; ++i) 26694 if (*(data2 + i)) 26695 return 7; 26696 close (fd2); 26697 if (munmap (data2, pagesize)) 26698 return 8; 26699 26700 /* Next, try to mmap the file at a fixed address which already has 26701 something else allocated at it. If we can, also make sure that 26702 we see the same garbage. */ 26703 fd = open ("conftest.mmap", O_RDWR); 26704 if (fd < 0) 26705 return 9; 26706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 26707 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 26708 return 10; 26709 for (i = 0; i < pagesize; ++i) 26710 if (*(data + i) != *(data2 + i)) 26711 return 11; 26712 26713 /* Finally, make sure that changes to the mapped area do not 26714 percolate back to the file as seen by read(). (This is a bug on 26715 some variants of i386 svr4.0.) */ 26716 for (i = 0; i < pagesize; ++i) 26717 *(data2 + i) = *(data2 + i) + 1; 26718 data3 = (char *) malloc (pagesize); 26719 if (!data3) 26720 return 12; 26721 if (read (fd, data3, pagesize) != pagesize) 26722 return 13; 26723 for (i = 0; i < pagesize; ++i) 26724 if (*(data + i) != *(data3 + i)) 26725 return 14; 26726 close (fd); 26727 return 0; 26728 } 26729 _ACEOF 26730 if ac_fn_c_try_run "$LINENO"; then : 26731 ac_cv_func_mmap_fixed_mapped=yes 26732 else 26733 ac_cv_func_mmap_fixed_mapped=no 26734 fi 26735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26736 conftest.$ac_objext conftest.beam conftest.$ac_ext 26737 fi 26738 26739 fi 26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 26741 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 26742 if test $ac_cv_func_mmap_fixed_mapped = yes; then 26743 26744 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 26745 26746 fi 26747 rm -f conftest.mmap conftest.txt 26748 26749 26750 26751 26752 for ac_header in capability.h sys/capability.h 26753 do : 26754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26755 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26756 eval as_val=\$$as_ac_Header 26757 if test "x$as_val" = x""yes; then : 26758 cat >>confdefs.h <<_ACEOF 26759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26760 _ACEOF 26761 26762 fi 26763 26764 done 26765 26766 26767 for ac_func in sgi_getcapabilitybyname cap_set_proc 26768 do : 26769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26771 eval as_val=\$$as_ac_var 26772 if test "x$as_val" = x""yes; then : 26773 cat >>confdefs.h <<_ACEOF 26774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26775 _ACEOF 26776 26777 fi 26778 done 26779 26780 26781 26782 26783 26784 26785 26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5 26787 $as_echo_n "checking for getpwnam_r... " >&6; } 26788 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then : 26789 $as_echo_n "(cached) " >&6 26790 else 26791 26792 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 26793 ac_save_LIBS="$LIBS" 26794 for ac_lib in "" c_r; do 26795 case "$ac_lib" in 26796 "") ;; 26797 yes) ac_lib="" ;; 26798 no) continue ;; 26799 -l*) ;; 26800 *) ac_lib="-l$ac_lib" ;; 26801 esac 26802 LIBS=" $ac_lib $ac_save_LIBS" 26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26804 /* end confdefs.h. */ 26805 26806 int 26807 main () 26808 { 26809 getpwnam_r() 26810 ; 26811 return 0; 26812 } 26813 _ACEOF 26814 if ac_fn_c_try_link "$LINENO"; then : 26815 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 26816 fi 26817 rm -f core conftest.err conftest.$ac_objext \ 26818 conftest$ac_exeext conftest.$ac_ext 26819 done 26820 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 26821 LIBS="$ac_save_LIBS" 26822 fi 26823 26824 fi 26825 26826 26827 eval "ac_res=\$ac_cv_funclib_getpwnam_r" 26828 26829 if false; then 26830 for ac_func in getpwnam_r 26831 do : 26832 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 26833 if test "x$ac_cv_func_getpwnam_r" = x""yes; then : 26834 cat >>confdefs.h <<_ACEOF 26835 #define HAVE_GETPWNAM_R 1 26836 _ACEOF 26837 26838 fi 26839 done 26840 26841 fi 26842 # getpwnam_r 26843 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26844 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26845 eval "LIB_getpwnam_r=$ac_res" 26846 26847 case "$ac_res" in 26848 yes) 26849 eval "ac_cv_func_getpwnam_r=yes" 26850 eval "LIB_getpwnam_r=" 26851 cat >>confdefs.h <<_ACEOF 26852 #define $ac_tr_func 1 26853 _ACEOF 26854 26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26856 $as_echo "yes" >&6; } 26857 ;; 26858 no) 26859 eval "ac_cv_func_getpwnam_r=no" 26860 eval "LIB_getpwnam_r=" 26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26862 $as_echo "no" >&6; } 26863 ;; 26864 *) 26865 eval "ac_cv_func_getpwnam_r=yes" 26866 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26867 cat >>confdefs.h <<_ACEOF 26868 #define $ac_tr_func 1 26869 _ACEOF 26870 26871 cat >>confdefs.h <<_ACEOF 26872 #define $ac_tr_lib 1 26873 _ACEOF 26874 26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 26876 $as_echo "yes, in $ac_res" >&6; } 26877 ;; 26878 esac 26879 26880 26881 if test "$ac_cv_func_getpwnam_r" = yes; then 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5 26883 $as_echo_n "checking if getpwnam_r is posix... " >&6; } 26884 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then : 26885 $as_echo_n "(cached) " >&6 26886 else 26887 ac_libs="$LIBS" 26888 LIBS="$LIBS $LIB_getpwnam_r" 26889 if test "$cross_compiling" = yes; then : 26890 : 26891 else 26892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26893 /* end confdefs.h. */ 26894 26895 #define _POSIX_PTHREAD_SEMANTICS 26896 #include <pwd.h> 26897 int main(int argc, char **argv) 26898 { 26899 struct passwd pw, *pwd; 26900 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 26901 } 26902 26903 _ACEOF 26904 if ac_fn_c_try_run "$LINENO"; then : 26905 ac_cv_func_getpwnam_r_posix=yes 26906 else 26907 ac_cv_func_getpwnam_r_posix=no 26908 fi 26909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26910 conftest.$ac_objext conftest.beam conftest.$ac_ext 26911 fi 26912 26913 LIBS="$ac_libs" 26914 fi 26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5 26916 $as_echo "$ac_cv_func_getpwnam_r_posix" >&6; } 26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5 26918 $as_echo_n "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; } 26919 if test "${ac_cv_func_getpwnam_r_posix_def+set}" = set; then : 26920 $as_echo_n "(cached) " >&6 26921 else 26922 ac_libs="$LIBS" 26923 LIBS="$LIBS $LIB_getpwnam_r" 26924 if test "$cross_compiling" = yes; then : 26925 : 26926 else 26927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26928 /* end confdefs.h. */ 26929 26930 #include <pwd.h> 26931 int main(int argc, char **argv) 26932 { 26933 struct passwd pw, *pwd; 26934 return getpwnam_r("", &pw, 0, 0, &pwd) < 0; 26935 } 26936 26937 _ACEOF 26938 if ac_fn_c_try_run "$LINENO"; then : 26939 ac_cv_func_getpwnam_r_posix_def=no 26940 else 26941 ac_cv_func_getpwnam_r_posix_def=yes 26942 fi 26943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26944 conftest.$ac_objext conftest.beam conftest.$ac_ext 26945 fi 26946 26947 LIBS="$ac_libs" 26948 fi 26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5 26950 $as_echo "$ac_cv_func_getpwnam_r_posix_def" >&6; } 26951 if test "$ac_cv_func_getpwnam_r_posix" = yes; then 26952 26953 $as_echo "#define POSIX_GETPWNAM_R 1" >>confdefs.h 26954 26955 fi 26956 if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then 26957 26958 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 26959 26960 fi 26961 fi 26962 26963 26964 if test "$enable_pthread_support" != no; then 26965 saved_LIBS="$LIBS" 26966 LIBS="$LIBS $PTHREADS_LIBS" 26967 26968 26969 26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5 26971 $as_echo_n "checking for door_create... " >&6; } 26972 if test "${ac_cv_funclib_door_create+set}" = set; then : 26973 $as_echo_n "(cached) " >&6 26974 else 26975 26976 if eval "test \"\$ac_cv_func_door_create\" != yes" ; then 26977 ac_save_LIBS="$LIBS" 26978 for ac_lib in "" door; do 26979 case "$ac_lib" in 26980 "") ;; 26981 yes) ac_lib="" ;; 26982 no) continue ;; 26983 -l*) ;; 26984 *) ac_lib="-l$ac_lib" ;; 26985 esac 26986 LIBS=" $ac_lib $ac_save_LIBS" 26987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26988 /* end confdefs.h. */ 26989 26990 int 26991 main () 26992 { 26993 door_create() 26994 ; 26995 return 0; 26996 } 26997 _ACEOF 26998 if ac_fn_c_try_link "$LINENO"; then : 26999 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break 27000 fi 27001 rm -f core conftest.err conftest.$ac_objext \ 27002 conftest$ac_exeext conftest.$ac_ext 27003 done 27004 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}" 27005 LIBS="$ac_save_LIBS" 27006 fi 27007 27008 fi 27009 27010 27011 eval "ac_res=\$ac_cv_funclib_door_create" 27012 27013 if false; then 27014 for ac_func in door_create 27015 do : 27016 ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create" 27017 if test "x$ac_cv_func_door_create" = x""yes; then : 27018 cat >>confdefs.h <<_ACEOF 27019 #define HAVE_DOOR_CREATE 1 27020 _ACEOF 27021 27022 fi 27023 done 27024 27025 fi 27026 # door_create 27027 eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27028 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27029 eval "LIB_door_create=$ac_res" 27030 27031 case "$ac_res" in 27032 yes) 27033 eval "ac_cv_func_door_create=yes" 27034 eval "LIB_door_create=" 27035 cat >>confdefs.h <<_ACEOF 27036 #define $ac_tr_func 1 27037 _ACEOF 27038 27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27040 $as_echo "yes" >&6; } 27041 ;; 27042 no) 27043 eval "ac_cv_func_door_create=no" 27044 eval "LIB_door_create=" 27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27046 $as_echo "no" >&6; } 27047 ;; 27048 *) 27049 eval "ac_cv_func_door_create=yes" 27050 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 27051 cat >>confdefs.h <<_ACEOF 27052 #define $ac_tr_func 1 27053 _ACEOF 27054 27055 cat >>confdefs.h <<_ACEOF 27056 #define $ac_tr_lib 1 27057 _ACEOF 27058 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5 27060 $as_echo "yes, in $ac_res" >&6; } 27061 ;; 27062 esac 27063 27064 27065 LIBS="$saved_LIBS" 27066 fi 27067 27068 # Check whether --enable-kcm was given. 27069 if test "${enable_kcm+set}" = set; then : 27070 enableval=$enable_kcm; 27071 else 27072 enable_kcm=yes 27073 fi 27074 27075 27076 if test "$enable_kcm" = yes ; then 27077 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then 27078 enable_kcm=no 27079 fi 27080 fi 27081 if test "$enable_kcm" = yes; then 27082 27083 $as_echo "#define HAVE_KCM 1" >>confdefs.h 27084 27085 fi 27086 if test "$enable_kcm" = yes; then 27087 KCM_TRUE= 27088 KCM_FALSE='#' 27089 else 27090 KCM_TRUE='#' 27091 KCM_FALSE= 27092 fi 27093 27094 27095 27096 27097 for ac_func in getudbnam setlim 27098 do : 27099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27101 eval as_val=\$$as_ac_var 27102 if test "x$as_val" = x""yes; then : 27103 cat >>confdefs.h <<_ACEOF 27104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27105 _ACEOF 27106 27107 fi 27108 done 27109 27110 27111 27112 27113 27114 27115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr in struct utmp" >&5 27116 $as_echo_n "checking for ut_addr in struct utmp... " >&6; } 27117 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then : 27118 $as_echo_n "(cached) " >&6 27119 else 27120 27121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27122 /* end confdefs.h. */ 27123 #include <utmp.h> 27124 int 27125 main () 27126 { 27127 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr 27128 ; 27129 return 0; 27130 } 27131 _ACEOF 27132 if ac_fn_c_try_compile "$LINENO"; then : 27133 ac_cv_type_struct_utmp_ut_addr=yes 27134 else 27135 ac_cv_type_struct_utmp_ut_addr=no 27136 fi 27137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27138 27139 fi 27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_addr" >&5 27141 $as_echo "$ac_cv_type_struct_utmp_ut_addr" >&6; } 27142 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 27143 27144 27145 $as_echo "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h 27146 27147 27148 fi 27149 27150 27151 27152 27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5 27154 $as_echo_n "checking for ut_host in struct utmp... " >&6; } 27155 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then : 27156 $as_echo_n "(cached) " >&6 27157 else 27158 27159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27160 /* end confdefs.h. */ 27161 #include <utmp.h> 27162 int 27163 main () 27164 { 27165 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host 27166 ; 27167 return 0; 27168 } 27169 _ACEOF 27170 if ac_fn_c_try_compile "$LINENO"; then : 27171 ac_cv_type_struct_utmp_ut_host=yes 27172 else 27173 ac_cv_type_struct_utmp_ut_host=no 27174 fi 27175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27176 27177 fi 27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_host" >&5 27179 $as_echo "$ac_cv_type_struct_utmp_ut_host" >&6; } 27180 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 27181 27182 27183 $as_echo "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h 27184 27185 27186 fi 27187 27188 27189 27190 27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmp" >&5 27192 $as_echo_n "checking for ut_id in struct utmp... " >&6; } 27193 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then : 27194 $as_echo_n "(cached) " >&6 27195 else 27196 27197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27198 /* end confdefs.h. */ 27199 #include <utmp.h> 27200 int 27201 main () 27202 { 27203 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id 27204 ; 27205 return 0; 27206 } 27207 _ACEOF 27208 if ac_fn_c_try_compile "$LINENO"; then : 27209 ac_cv_type_struct_utmp_ut_id=yes 27210 else 27211 ac_cv_type_struct_utmp_ut_id=no 27212 fi 27213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27214 27215 fi 27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_id" >&5 27217 $as_echo "$ac_cv_type_struct_utmp_ut_id" >&6; } 27218 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 27219 27220 27221 $as_echo "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h 27222 27223 27224 fi 27225 27226 27227 27228 27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmp" >&5 27230 $as_echo_n "checking for ut_pid in struct utmp... " >&6; } 27231 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then : 27232 $as_echo_n "(cached) " >&6 27233 else 27234 27235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27236 /* end confdefs.h. */ 27237 #include <utmp.h> 27238 int 27239 main () 27240 { 27241 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid 27242 ; 27243 return 0; 27244 } 27245 _ACEOF 27246 if ac_fn_c_try_compile "$LINENO"; then : 27247 ac_cv_type_struct_utmp_ut_pid=yes 27248 else 27249 ac_cv_type_struct_utmp_ut_pid=no 27250 fi 27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27252 27253 fi 27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_pid" >&5 27255 $as_echo "$ac_cv_type_struct_utmp_ut_pid" >&6; } 27256 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 27257 27258 27259 $as_echo "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h 27260 27261 27262 fi 27263 27264 27265 27266 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmp" >&5 27268 $as_echo_n "checking for ut_type in struct utmp... " >&6; } 27269 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then : 27270 $as_echo_n "(cached) " >&6 27271 else 27272 27273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27274 /* end confdefs.h. */ 27275 #include <utmp.h> 27276 int 27277 main () 27278 { 27279 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type 27280 ; 27281 return 0; 27282 } 27283 _ACEOF 27284 if ac_fn_c_try_compile "$LINENO"; then : 27285 ac_cv_type_struct_utmp_ut_type=yes 27286 else 27287 ac_cv_type_struct_utmp_ut_type=no 27288 fi 27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27290 27291 fi 27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_type" >&5 27293 $as_echo "$ac_cv_type_struct_utmp_ut_type" >&6; } 27294 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 27295 27296 27297 $as_echo "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h 27298 27299 27300 fi 27301 27302 27303 27304 27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmp" >&5 27306 $as_echo_n "checking for ut_user in struct utmp... " >&6; } 27307 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then : 27308 $as_echo_n "(cached) " >&6 27309 else 27310 27311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27312 /* end confdefs.h. */ 27313 #include <utmp.h> 27314 int 27315 main () 27316 { 27317 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user 27318 ; 27319 return 0; 27320 } 27321 _ACEOF 27322 if ac_fn_c_try_compile "$LINENO"; then : 27323 ac_cv_type_struct_utmp_ut_user=yes 27324 else 27325 ac_cv_type_struct_utmp_ut_user=no 27326 fi 27327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27328 27329 fi 27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_user" >&5 27331 $as_echo "$ac_cv_type_struct_utmp_ut_user" >&6; } 27332 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 27333 27334 27335 $as_echo "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h 27336 27337 27338 fi 27339 27340 27341 27342 27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmpx" >&5 27344 $as_echo_n "checking for ut_host in struct utmpx... " >&6; } 27345 if test "${ac_cv_type_struct_utmpx_ut_host+set}" = set; then : 27346 $as_echo_n "(cached) " >&6 27347 else 27348 27349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27350 /* end confdefs.h. */ 27351 #include <utmpx.h> 27352 int 27353 main () 27354 { 27355 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_host 27356 ; 27357 return 0; 27358 } 27359 _ACEOF 27360 if ac_fn_c_try_compile "$LINENO"; then : 27361 ac_cv_type_struct_utmpx_ut_host=yes 27362 else 27363 ac_cv_type_struct_utmpx_ut_host=no 27364 fi 27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27366 27367 fi 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_host" >&5 27369 $as_echo "$ac_cv_type_struct_utmpx_ut_host" >&6; } 27370 if test "$ac_cv_type_struct_utmpx_ut_host" = yes; then 27371 27372 27373 $as_echo "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h 27374 27375 27376 fi 27377 27378 27379 27380 27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmpx" >&5 27382 $as_echo_n "checking for ut_id in struct utmpx... " >&6; } 27383 if test "${ac_cv_type_struct_utmpx_ut_id+set}" = set; then : 27384 $as_echo_n "(cached) " >&6 27385 else 27386 27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27388 /* end confdefs.h. */ 27389 #include <utmpx.h> 27390 int 27391 main () 27392 { 27393 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_id 27394 ; 27395 return 0; 27396 } 27397 _ACEOF 27398 if ac_fn_c_try_compile "$LINENO"; then : 27399 ac_cv_type_struct_utmpx_ut_id=yes 27400 else 27401 ac_cv_type_struct_utmpx_ut_id=no 27402 fi 27403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27404 27405 fi 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_id" >&5 27407 $as_echo "$ac_cv_type_struct_utmpx_ut_id" >&6; } 27408 if test "$ac_cv_type_struct_utmpx_ut_id" = yes; then 27409 27410 27411 $as_echo "#define HAVE_STRUCT_UTMPX_UT_ID 1" >>confdefs.h 27412 27413 27414 fi 27415 27416 27417 27418 27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_line in struct utmpx" >&5 27420 $as_echo_n "checking for ut_line in struct utmpx... " >&6; } 27421 if test "${ac_cv_type_struct_utmpx_ut_line+set}" = set; then : 27422 $as_echo_n "(cached) " >&6 27423 else 27424 27425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27426 /* end confdefs.h. */ 27427 #include <utmpx.h> 27428 int 27429 main () 27430 { 27431 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_line 27432 ; 27433 return 0; 27434 } 27435 _ACEOF 27436 if ac_fn_c_try_compile "$LINENO"; then : 27437 ac_cv_type_struct_utmpx_ut_line=yes 27438 else 27439 ac_cv_type_struct_utmpx_ut_line=no 27440 fi 27441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27442 27443 fi 27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_line" >&5 27445 $as_echo "$ac_cv_type_struct_utmpx_ut_line" >&6; } 27446 if test "$ac_cv_type_struct_utmpx_ut_line" = yes; then 27447 27448 27449 $as_echo "#define HAVE_STRUCT_UTMPX_UT_LINE 1" >>confdefs.h 27450 27451 27452 fi 27453 27454 27455 27456 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmpx" >&5 27458 $as_echo_n "checking for ut_pid in struct utmpx... " >&6; } 27459 if test "${ac_cv_type_struct_utmpx_ut_pid+set}" = set; then : 27460 $as_echo_n "(cached) " >&6 27461 else 27462 27463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27464 /* end confdefs.h. */ 27465 #include <utmpx.h> 27466 int 27467 main () 27468 { 27469 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_pid 27470 ; 27471 return 0; 27472 } 27473 _ACEOF 27474 if ac_fn_c_try_compile "$LINENO"; then : 27475 ac_cv_type_struct_utmpx_ut_pid=yes 27476 else 27477 ac_cv_type_struct_utmpx_ut_pid=no 27478 fi 27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27480 27481 fi 27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_pid" >&5 27483 $as_echo "$ac_cv_type_struct_utmpx_ut_pid" >&6; } 27484 if test "$ac_cv_type_struct_utmpx_ut_pid" = yes; then 27485 27486 27487 $as_echo "#define HAVE_STRUCT_UTMPX_UT_PID 1" >>confdefs.h 27488 27489 27490 fi 27491 27492 27493 27494 27495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv in struct utmpx" >&5 27496 $as_echo_n "checking for ut_tv in struct utmpx... " >&6; } 27497 if test "${ac_cv_type_struct_utmpx_ut_tv+set}" = set; then : 27498 $as_echo_n "(cached) " >&6 27499 else 27500 27501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27502 /* end confdefs.h. */ 27503 #include <utmpx.h> 27504 int 27505 main () 27506 { 27507 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_tv 27508 ; 27509 return 0; 27510 } 27511 _ACEOF 27512 if ac_fn_c_try_compile "$LINENO"; then : 27513 ac_cv_type_struct_utmpx_ut_tv=yes 27514 else 27515 ac_cv_type_struct_utmpx_ut_tv=no 27516 fi 27517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27518 27519 fi 27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_tv" >&5 27521 $as_echo "$ac_cv_type_struct_utmpx_ut_tv" >&6; } 27522 if test "$ac_cv_type_struct_utmpx_ut_tv" = yes; then 27523 27524 27525 $as_echo "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h 27526 27527 27528 fi 27529 27530 27531 27532 27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmpx" >&5 27534 $as_echo_n "checking for ut_type in struct utmpx... " >&6; } 27535 if test "${ac_cv_type_struct_utmpx_ut_type+set}" = set; then : 27536 $as_echo_n "(cached) " >&6 27537 else 27538 27539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27540 /* end confdefs.h. */ 27541 #include <utmpx.h> 27542 int 27543 main () 27544 { 27545 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_type 27546 ; 27547 return 0; 27548 } 27549 _ACEOF 27550 if ac_fn_c_try_compile "$LINENO"; then : 27551 ac_cv_type_struct_utmpx_ut_type=yes 27552 else 27553 ac_cv_type_struct_utmpx_ut_type=no 27554 fi 27555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27556 27557 fi 27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_type" >&5 27559 $as_echo "$ac_cv_type_struct_utmpx_ut_type" >&6; } 27560 if test "$ac_cv_type_struct_utmpx_ut_type" = yes; then 27561 27562 27563 $as_echo "#define HAVE_STRUCT_UTMPX_UT_TYPE 1" >>confdefs.h 27564 27565 27566 fi 27567 27568 27569 27570 27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmpx" >&5 27572 $as_echo_n "checking for ut_user in struct utmpx... " >&6; } 27573 if test "${ac_cv_type_struct_utmpx_ut_user+set}" = set; then : 27574 $as_echo_n "(cached) " >&6 27575 else 27576 27577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27578 /* end confdefs.h. */ 27579 #include <utmpx.h> 27580 int 27581 main () 27582 { 27583 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_user 27584 ; 27585 return 0; 27586 } 27587 _ACEOF 27588 if ac_fn_c_try_compile "$LINENO"; then : 27589 ac_cv_type_struct_utmpx_ut_user=yes 27590 else 27591 ac_cv_type_struct_utmpx_ut_user=no 27592 fi 27593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27594 27595 fi 27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_user" >&5 27597 $as_echo "$ac_cv_type_struct_utmpx_ut_user" >&6; } 27598 if test "$ac_cv_type_struct_utmpx_ut_user" = yes; then 27599 27600 27601 $as_echo "#define HAVE_STRUCT_UTMPX_UT_USER 1" >>confdefs.h 27602 27603 27604 fi 27605 27606 27607 27608 27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit in struct utmpx" >&5 27610 $as_echo_n "checking for ut_exit in struct utmpx... " >&6; } 27611 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then : 27612 $as_echo_n "(cached) " >&6 27613 else 27614 27615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27616 /* end confdefs.h. */ 27617 #include <utmpx.h> 27618 int 27619 main () 27620 { 27621 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit 27622 ; 27623 return 0; 27624 } 27625 _ACEOF 27626 if ac_fn_c_try_compile "$LINENO"; then : 27627 ac_cv_type_struct_utmpx_ut_exit=yes 27628 else 27629 ac_cv_type_struct_utmpx_ut_exit=no 27630 fi 27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27632 27633 fi 27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 27635 $as_echo "$ac_cv_type_struct_utmpx_ut_exit" >&6; } 27636 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 27637 27638 27639 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h 27640 27641 27642 fi 27643 27644 27645 27646 27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_syslen in struct utmpx" >&5 27648 $as_echo_n "checking for ut_syslen in struct utmpx... " >&6; } 27649 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then : 27650 $as_echo_n "(cached) " >&6 27651 else 27652 27653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27654 /* end confdefs.h. */ 27655 #include <utmpx.h> 27656 int 27657 main () 27658 { 27659 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen 27660 ; 27661 return 0; 27662 } 27663 _ACEOF 27664 if ac_fn_c_try_compile "$LINENO"; then : 27665 ac_cv_type_struct_utmpx_ut_syslen=yes 27666 else 27667 ac_cv_type_struct_utmpx_ut_syslen=no 27668 fi 27669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27670 27671 fi 27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 27673 $as_echo "$ac_cv_type_struct_utmpx_ut_syslen" >&6; } 27674 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 27675 27676 27677 $as_echo "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h 27678 27679 27680 fi 27681 27682 27683 27684 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " 27685 #ifdef HAVE_INTTYPES_H 27686 #include <inttypes.h> 27687 #endif 27688 #ifdef HAVE_SYS_TYPES_H 27689 #include <sys/types.h> 27690 #endif 27691 #ifdef HAVE_SYS_BITYPES_H 27692 #include <sys/bitypes.h> 27693 #endif 27694 #ifdef HAVE_BIND_BITYPES_H 27695 #include <bind/bitypes.h> 27696 #endif 27697 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27698 #include <netinet/in6_machtypes.h> 27699 #endif 27700 27701 " 27702 if test "x$ac_cv_type_int8_t" = x""yes; then : 27703 27704 cat >>confdefs.h <<_ACEOF 27705 #define HAVE_INT8_T 1 27706 _ACEOF 27707 27708 27709 fi 27710 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " 27711 #ifdef HAVE_INTTYPES_H 27712 #include <inttypes.h> 27713 #endif 27714 #ifdef HAVE_SYS_TYPES_H 27715 #include <sys/types.h> 27716 #endif 27717 #ifdef HAVE_SYS_BITYPES_H 27718 #include <sys/bitypes.h> 27719 #endif 27720 #ifdef HAVE_BIND_BITYPES_H 27721 #include <bind/bitypes.h> 27722 #endif 27723 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27724 #include <netinet/in6_machtypes.h> 27725 #endif 27726 27727 " 27728 if test "x$ac_cv_type_int16_t" = x""yes; then : 27729 27730 cat >>confdefs.h <<_ACEOF 27731 #define HAVE_INT16_T 1 27732 _ACEOF 27733 27734 27735 fi 27736 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " 27737 #ifdef HAVE_INTTYPES_H 27738 #include <inttypes.h> 27739 #endif 27740 #ifdef HAVE_SYS_TYPES_H 27741 #include <sys/types.h> 27742 #endif 27743 #ifdef HAVE_SYS_BITYPES_H 27744 #include <sys/bitypes.h> 27745 #endif 27746 #ifdef HAVE_BIND_BITYPES_H 27747 #include <bind/bitypes.h> 27748 #endif 27749 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27750 #include <netinet/in6_machtypes.h> 27751 #endif 27752 27753 " 27754 if test "x$ac_cv_type_int32_t" = x""yes; then : 27755 27756 cat >>confdefs.h <<_ACEOF 27757 #define HAVE_INT32_T 1 27758 _ACEOF 27759 27760 27761 fi 27762 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " 27763 #ifdef HAVE_INTTYPES_H 27764 #include <inttypes.h> 27765 #endif 27766 #ifdef HAVE_SYS_TYPES_H 27767 #include <sys/types.h> 27768 #endif 27769 #ifdef HAVE_SYS_BITYPES_H 27770 #include <sys/bitypes.h> 27771 #endif 27772 #ifdef HAVE_BIND_BITYPES_H 27773 #include <bind/bitypes.h> 27774 #endif 27775 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27776 #include <netinet/in6_machtypes.h> 27777 #endif 27778 27779 " 27780 if test "x$ac_cv_type_int64_t" = x""yes; then : 27781 27782 cat >>confdefs.h <<_ACEOF 27783 #define HAVE_INT64_T 1 27784 _ACEOF 27785 27786 27787 fi 27788 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" " 27789 #ifdef HAVE_INTTYPES_H 27790 #include <inttypes.h> 27791 #endif 27792 #ifdef HAVE_SYS_TYPES_H 27793 #include <sys/types.h> 27794 #endif 27795 #ifdef HAVE_SYS_BITYPES_H 27796 #include <sys/bitypes.h> 27797 #endif 27798 #ifdef HAVE_BIND_BITYPES_H 27799 #include <bind/bitypes.h> 27800 #endif 27801 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27802 #include <netinet/in6_machtypes.h> 27803 #endif 27804 27805 " 27806 if test "x$ac_cv_type_u_int8_t" = x""yes; then : 27807 27808 cat >>confdefs.h <<_ACEOF 27809 #define HAVE_U_INT8_T 1 27810 _ACEOF 27811 27812 27813 fi 27814 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" " 27815 #ifdef HAVE_INTTYPES_H 27816 #include <inttypes.h> 27817 #endif 27818 #ifdef HAVE_SYS_TYPES_H 27819 #include <sys/types.h> 27820 #endif 27821 #ifdef HAVE_SYS_BITYPES_H 27822 #include <sys/bitypes.h> 27823 #endif 27824 #ifdef HAVE_BIND_BITYPES_H 27825 #include <bind/bitypes.h> 27826 #endif 27827 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27828 #include <netinet/in6_machtypes.h> 27829 #endif 27830 27831 " 27832 if test "x$ac_cv_type_u_int16_t" = x""yes; then : 27833 27834 cat >>confdefs.h <<_ACEOF 27835 #define HAVE_U_INT16_T 1 27836 _ACEOF 27837 27838 27839 fi 27840 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" " 27841 #ifdef HAVE_INTTYPES_H 27842 #include <inttypes.h> 27843 #endif 27844 #ifdef HAVE_SYS_TYPES_H 27845 #include <sys/types.h> 27846 #endif 27847 #ifdef HAVE_SYS_BITYPES_H 27848 #include <sys/bitypes.h> 27849 #endif 27850 #ifdef HAVE_BIND_BITYPES_H 27851 #include <bind/bitypes.h> 27852 #endif 27853 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27854 #include <netinet/in6_machtypes.h> 27855 #endif 27856 27857 " 27858 if test "x$ac_cv_type_u_int32_t" = x""yes; then : 27859 27860 cat >>confdefs.h <<_ACEOF 27861 #define HAVE_U_INT32_T 1 27862 _ACEOF 27863 27864 27865 fi 27866 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" " 27867 #ifdef HAVE_INTTYPES_H 27868 #include <inttypes.h> 27869 #endif 27870 #ifdef HAVE_SYS_TYPES_H 27871 #include <sys/types.h> 27872 #endif 27873 #ifdef HAVE_SYS_BITYPES_H 27874 #include <sys/bitypes.h> 27875 #endif 27876 #ifdef HAVE_BIND_BITYPES_H 27877 #include <bind/bitypes.h> 27878 #endif 27879 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27880 #include <netinet/in6_machtypes.h> 27881 #endif 27882 27883 " 27884 if test "x$ac_cv_type_u_int64_t" = x""yes; then : 27885 27886 cat >>confdefs.h <<_ACEOF 27887 #define HAVE_U_INT64_T 1 27888 _ACEOF 27889 27890 27891 fi 27892 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " 27893 #ifdef HAVE_INTTYPES_H 27894 #include <inttypes.h> 27895 #endif 27896 #ifdef HAVE_SYS_TYPES_H 27897 #include <sys/types.h> 27898 #endif 27899 #ifdef HAVE_SYS_BITYPES_H 27900 #include <sys/bitypes.h> 27901 #endif 27902 #ifdef HAVE_BIND_BITYPES_H 27903 #include <bind/bitypes.h> 27904 #endif 27905 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27906 #include <netinet/in6_machtypes.h> 27907 #endif 27908 27909 " 27910 if test "x$ac_cv_type_uint8_t" = x""yes; then : 27911 27912 cat >>confdefs.h <<_ACEOF 27913 #define HAVE_UINT8_T 1 27914 _ACEOF 27915 27916 27917 fi 27918 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " 27919 #ifdef HAVE_INTTYPES_H 27920 #include <inttypes.h> 27921 #endif 27922 #ifdef HAVE_SYS_TYPES_H 27923 #include <sys/types.h> 27924 #endif 27925 #ifdef HAVE_SYS_BITYPES_H 27926 #include <sys/bitypes.h> 27927 #endif 27928 #ifdef HAVE_BIND_BITYPES_H 27929 #include <bind/bitypes.h> 27930 #endif 27931 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27932 #include <netinet/in6_machtypes.h> 27933 #endif 27934 27935 " 27936 if test "x$ac_cv_type_uint16_t" = x""yes; then : 27937 27938 cat >>confdefs.h <<_ACEOF 27939 #define HAVE_UINT16_T 1 27940 _ACEOF 27941 27942 27943 fi 27944 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " 27945 #ifdef HAVE_INTTYPES_H 27946 #include <inttypes.h> 27947 #endif 27948 #ifdef HAVE_SYS_TYPES_H 27949 #include <sys/types.h> 27950 #endif 27951 #ifdef HAVE_SYS_BITYPES_H 27952 #include <sys/bitypes.h> 27953 #endif 27954 #ifdef HAVE_BIND_BITYPES_H 27955 #include <bind/bitypes.h> 27956 #endif 27957 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27958 #include <netinet/in6_machtypes.h> 27959 #endif 27960 27961 " 27962 if test "x$ac_cv_type_uint32_t" = x""yes; then : 27963 27964 cat >>confdefs.h <<_ACEOF 27965 #define HAVE_UINT32_T 1 27966 _ACEOF 27967 27968 27969 fi 27970 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " 27971 #ifdef HAVE_INTTYPES_H 27972 #include <inttypes.h> 27973 #endif 27974 #ifdef HAVE_SYS_TYPES_H 27975 #include <sys/types.h> 27976 #endif 27977 #ifdef HAVE_SYS_BITYPES_H 27978 #include <sys/bitypes.h> 27979 #endif 27980 #ifdef HAVE_BIND_BITYPES_H 27981 #include <bind/bitypes.h> 27982 #endif 27983 #ifdef HAVE_NETINET_IN6_MACHTYPES_H 27984 #include <netinet/in6_machtypes.h> 27985 #endif 27986 27987 " 27988 if test "x$ac_cv_type_uint64_t" = x""yes; then : 27989 27990 cat >>confdefs.h <<_ACEOF 27991 #define HAVE_UINT64_T 1 27992 _ACEOF 27993 27994 27995 fi 27996 27997 27998 27999 28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5 28001 $as_echo_n "checking for framework security... " >&6; } 28002 if test "${rk_cv_framework_security+set}" = set; then : 28003 $as_echo_n "(cached) " >&6 28004 else 28005 28006 if test "$rk_cv_framework_security" != yes; then 28007 ac_save_LIBS="$LIBS" 28008 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation" 28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28010 /* end confdefs.h. */ 28011 #include <Security/Security.h> 28012 28013 int 28014 main () 28015 { 28016 SecKeychainSearchRef searchRef; 28017 SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef); 28018 CFRelease(&searchRef); 28019 28020 ; 28021 return 0; 28022 } 28023 _ACEOF 28024 if ac_fn_c_try_link "$LINENO"; then : 28025 rk_cv_framework_security=yes 28026 fi 28027 rm -f core conftest.err conftest.$ac_objext \ 28028 conftest$ac_exeext conftest.$ac_ext 28029 LIBS="$ac_save_LIBS" 28030 fi 28031 28032 fi 28033 28034 28035 if test "$rk_cv_framework_security" = yes; then 28036 28037 $as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h 28038 28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28040 $as_echo "yes" >&6; } 28041 else 28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28043 $as_echo "no" >&6; } 28044 fi 28045 if test "$rk_cv_framework_security" = yes; then 28046 FRAMEWORK_SECURITY_TRUE= 28047 FRAMEWORK_SECURITY_FALSE='#' 28048 else 28049 FRAMEWORK_SECURITY_TRUE='#' 28050 FRAMEWORK_SECURITY_FALSE= 28051 fi 28052 28053 28054 if test "$rk_cv_framework_security" = yes; then 28055 28056 if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5 28058 $as_echo_n "checking if SecKeyGetCSPHandle needs a prototype... " >&6; } 28059 if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then : 28060 $as_echo_n "(cached) " >&6 28061 else 28062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28063 /* end confdefs.h. */ 28064 #include <Security/Security.h> 28065 struct foo { int foo; } xx; 28066 extern int SecKeyGetCSPHandle (struct foo*); 28067 int 28068 main () 28069 { 28070 SecKeyGetCSPHandle(&xx) 28071 ; 28072 return 0; 28073 } 28074 _ACEOF 28075 if ac_fn_c_try_compile "$LINENO"; then : 28076 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes" 28077 else 28078 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no" 28079 fi 28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28081 fi 28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5 28083 $as_echo "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; } 28084 if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then 28085 28086 $as_echo "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h 28087 28088 fi 28089 fi 28090 28091 fi 28092 28093 28094 28095 28096 28097 28098 ac_foo=no 28099 build_editline=no 28100 if test "$with_readline" = yes; then 28101 : 28102 elif test "$with_libedit" = yes; then 28103 LIB_readline="${LIB_libedit}" 28104 elif test "$ac_cv_func_readline" = yes; then 28105 : 28106 else 28107 build_libedit=yes 28108 LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)" 28109 fi 28110 if test "$build_libedit" = yes; then 28111 LIBEDIT_TRUE= 28112 LIBEDIT_FALSE='#' 28113 else 28114 LIBEDIT_TRUE='#' 28115 LIBEDIT_FALSE= 28116 fi 28117 28118 28119 $as_echo "#define HAVE_READLINE 1" >>confdefs.h 28120 28121 28122 28123 28124 28125 $as_echo "#define AUTHENTICATION 1" >>confdefs.h 28126 28127 $as_echo "#define ENCRYPTION 1" >>confdefs.h 28128 28129 $as_echo "#define DES_ENCRYPTION 1" >>confdefs.h 28130 28131 $as_echo "#define DIAGNOSTICS 1" >>confdefs.h 28132 28133 $as_echo "#define OLD_ENVIRON 1" >>confdefs.h 28134 if false; then 28135 28136 $as_echo "#define ENV_HACK 1" >>confdefs.h 28137 28138 fi 28139 28140 # Simple test for streamspty, based on the existance of getmsg(), alas 28141 # this breaks on SunOS4 which have streams but BSD-like ptys 28142 # 28143 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys 28144 28145 case "$host" in 28146 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 28147 ;; 28148 *) 28149 ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg" 28150 if test "x$ac_cv_func_getmsg" = x""yes; then : 28151 28152 fi 28153 28154 if test "$ac_cv_func_getmsg" = "yes"; then 28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5 28156 $as_echo_n "checking if getmsg works... " >&6; } 28157 if test "${ac_cv_func_getmsg_works+set}" = set; then : 28158 $as_echo_n "(cached) " >&6 28159 else 28160 if test "$cross_compiling" = yes; then : 28161 ac_cv_func_getmsg_works=no 28162 else 28163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28164 /* end confdefs.h. */ 28165 28166 #include <stdio.h> 28167 #include <errno.h> 28168 28169 int main(int argc, char **argv) 28170 { 28171 int ret; 28172 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 28173 if(ret < 0 && errno == ENOSYS) 28174 return 1; 28175 return 0; 28176 } 28177 28178 _ACEOF 28179 if ac_fn_c_try_run "$LINENO"; then : 28180 ac_cv_func_getmsg_works=yes 28181 else 28182 ac_cv_func_getmsg_works=no 28183 fi 28184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28185 conftest.$ac_objext conftest.beam conftest.$ac_ext 28186 fi 28187 28188 fi 28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5 28190 $as_echo "$ac_cv_func_getmsg_works" >&6; } 28191 if test "$ac_cv_func_getmsg_works" = "yes"; then 28192 28193 $as_echo "#define HAVE_GETMSG 1" >>confdefs.h 28194 28195 28196 $as_echo "#define STREAMSPTY 1" >>confdefs.h 28197 28198 fi 28199 fi 28200 ;; 28201 esac 28202 28203 28204 28205 28206 28207 28208 # Extract the first word of "compile_et", so it can be a program name with args. 28209 set dummy compile_et; ac_word=$2 28210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28211 $as_echo_n "checking for $ac_word... " >&6; } 28212 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then : 28213 $as_echo_n "(cached) " >&6 28214 else 28215 if test -n "$COMPILE_ET"; then 28216 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 28217 else 28218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28219 for as_dir in $PATH 28220 do 28221 IFS=$as_save_IFS 28222 test -z "$as_dir" && as_dir=. 28223 for ac_exec_ext in '' $ac_executable_extensions; do 28224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28225 ac_cv_prog_COMPILE_ET="compile_et" 28226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28227 break 2 28228 fi 28229 done 28230 done 28231 IFS=$as_save_IFS 28232 28233 fi 28234 fi 28235 COMPILE_ET=$ac_cv_prog_COMPILE_ET 28236 if test -n "$COMPILE_ET"; then 28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5 28238 $as_echo "$COMPILE_ET" >&6; } 28239 else 28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28241 $as_echo "no" >&6; } 28242 fi 28243 28244 28245 28246 krb_cv_compile_et="no" 28247 krb_cv_com_err_need_r="" 28248 krb_cv_compile_et_cross=no 28249 if test "${COMPILE_ET}" = "compile_et"; then 28250 28251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5 28252 $as_echo_n "checking whether compile_et has the features we need... " >&6; } 28253 cat > conftest_et.et <<'EOF' 28254 error_table test conf 28255 prefix CONFTEST 28256 index 1 28257 error_code CODE1, "CODE1" 28258 index 128 28259 error_code CODE2, "CODE2" 28260 end 28261 EOF 28262 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 28263 save_CPPFLAGS="${CPPFLAGS}" 28264 if test -d "/usr/include/et"; then 28265 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 28266 fi 28267 if test "$cross_compiling" = yes; then : 28268 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes 28269 else 28270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28271 /* end confdefs.h. */ 28272 28273 #include <com_err.h> 28274 #include <string.h> 28275 #include "conftest_et.h" 28276 int main(int argc, char **argv){ 28277 #ifndef ERROR_TABLE_BASE_conf 28278 #error compile_et does not handle error_table N M 28279 #endif 28280 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 28281 28282 _ACEOF 28283 if ac_fn_c_try_run "$LINENO"; then : 28284 krb_cv_compile_et="yes" 28285 else 28286 CPPFLAGS="${save_CPPFLAGS}" 28287 fi 28288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28289 conftest.$ac_objext conftest.beam conftest.$ac_ext 28290 fi 28291 28292 fi 28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5 28294 $as_echo "${krb_cv_compile_et}" >&6; } 28295 if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then 28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5 28297 $as_echo_n "checking for if com_err generates a initialize_conf_error_table_r... " >&6; } 28298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28299 /* end confdefs.h. */ 28300 #include "conftest_et.h" 28301 _ACEOF 28302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28303 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then : 28304 krb_cv_com_err_need_r="ok" 28305 fi 28306 rm -f conftest* 28307 28308 if test X"$krb_cv_com_err_need_r" = X ; then 28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28310 $as_echo "no" >&6; } 28311 krb_cv_compile_et=no 28312 else 28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28314 $as_echo "yes" >&6; } 28315 fi 28316 fi 28317 rm -fr conftest* 28318 fi 28319 28320 if test "${krb_cv_compile_et_cross}" = yes ; then 28321 krb_cv_com_err="cross" 28322 elif test "${krb_cv_compile_et}" = "yes"; then 28323 krb_cv_save_LIBS="${LIBS}" 28324 LIBS="${LIBS} -lcom_err" 28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5 28326 $as_echo_n "checking for com_err... " >&6; } 28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28328 /* end confdefs.h. */ 28329 #include <com_err.h> 28330 int 28331 main () 28332 { 28333 28334 const char *p; 28335 p = error_message(0); 28336 initialize_error_table_r(0,0,0,0); 28337 com_right_r(0, 0, 0, 0); 28338 28339 ; 28340 return 0; 28341 } 28342 _ACEOF 28343 if ac_fn_c_try_link "$LINENO"; then : 28344 krb_cv_com_err="yes" 28345 else 28346 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 28347 fi 28348 rm -f core conftest.err conftest.$ac_objext \ 28349 conftest$ac_exeext conftest.$ac_ext 28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5 28351 $as_echo "${krb_cv_com_err}" >&6; } 28352 LIBS="${krb_cv_save_LIBS}" 28353 else 28354 krb_cv_com_err="no" 28355 fi 28356 28357 if test "${krb_cv_com_err}" = "yes"; then 28358 DIR_com_err="" 28359 LIB_com_err="-lcom_err" 28360 LIB_com_err_a="" 28361 LIB_com_err_so="" 28362 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5 28363 $as_echo "$as_me: Using the already-installed com_err" >&6;} 28364 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 28365 localcomerr=no 28366 elif test "${krb_cv_com_err}" = "cross"; then 28367 DIR_com_err="com_err" 28368 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 28369 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 28370 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 28371 { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5 28372 $as_echo "$as_me: Using our own com_err with toolchain compile_et" >&6;} 28373 COMPILE_ET="${ac_cv_prog_COMPILE_ET}" 28374 localcomerr=yes 28375 else 28376 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 28377 DIR_com_err="com_err" 28378 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 28379 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 28380 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 28381 { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5 28382 $as_echo "$as_me: Using our own com_err" >&6;} 28383 localcomerr=yes 28384 fi 28385 if test "$localcomerr" = yes; then 28386 COM_ERR_TRUE= 28387 COM_ERR_FALSE='#' 28388 else 28389 COM_ERR_TRUE='#' 28390 COM_ERR_FALSE= 28391 fi 28392 28393 28394 28395 28396 28397 28398 28399 28400 28401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5 28402 $as_echo_n "checking which authentication modules should be built... " >&6; } 28403 28404 z='sia afskauthlib' 28405 LIB_AUTH_SUBDIRS= 28406 for i in $z; do 28407 case $i in 28408 sia) 28409 if test "$ac_cv_header_siad_h" = yes; then 28410 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 28411 fi 28412 ;; 28413 pam) 28414 case "${host}" in 28415 *-*-freebsd*) ac_cv_want_pam_krb4=no ;; 28416 *) ac_cv_want_pam_krb4=yes ;; 28417 esac 28418 28419 if test "$ac_cv_want_pam_krb4" = yes -a \ 28420 "$ac_cv_header_security_pam_modules_h" = yes -a \ 28421 "$enable_shared" = yes; then 28422 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 28423 fi 28424 ;; 28425 afskauthlib) 28426 case "${host}" in 28427 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 28428 esac 28429 ;; 28430 esac 28431 done 28432 if test "$LIB_AUTH_SUBDIRS"; then 28433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5 28434 $as_echo "$LIB_AUTH_SUBDIRS" >&6; } 28435 else 28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 28437 $as_echo "none" >&6; } 28438 fi 28439 28440 28441 28442 28443 # This is done by AC_OUTPUT but we need the result here. 28444 test "x$prefix" = xNONE && prefix=$ac_default_prefix 28445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28446 28447 28448 x="${bindir}" 28449 eval y="$x" 28450 while test "x$y" != "x$x"; do 28451 x="$y" 28452 eval y="$x" 28453 done 28454 28455 cat >>confdefs.h <<_ACEOF 28456 #define BINDIR "$x" 28457 _ACEOF 28458 28459 x="${libdir}" 28460 eval y="$x" 28461 while test "x$y" != "x$x"; do 28462 x="$y" 28463 eval y="$x" 28464 done 28465 28466 cat >>confdefs.h <<_ACEOF 28467 #define LIBDIR "$x" 28468 _ACEOF 28469 28470 x="${libexecdir}" 28471 eval y="$x" 28472 while test "x$y" != "x$x"; do 28473 x="$y" 28474 eval y="$x" 28475 done 28476 28477 cat >>confdefs.h <<_ACEOF 28478 #define LIBEXECDIR "$x" 28479 _ACEOF 28480 28481 x="${localstatedir}" 28482 eval y="$x" 28483 while test "x$y" != "x$x"; do 28484 x="$y" 28485 eval y="$x" 28486 done 28487 28488 cat >>confdefs.h <<_ACEOF 28489 #define LOCALSTATEDIR "$x" 28490 _ACEOF 28491 28492 x="${sbindir}" 28493 eval y="$x" 28494 while test "x$y" != "x$x"; do 28495 x="$y" 28496 eval y="$x" 28497 done 28498 28499 cat >>confdefs.h <<_ACEOF 28500 #define SBINDIR "$x" 28501 _ACEOF 28502 28503 x="${sysconfdir}" 28504 eval y="$x" 28505 while test "x$y" != "x$x"; do 28506 x="$y" 28507 eval y="$x" 28508 done 28509 28510 cat >>confdefs.h <<_ACEOF 28511 #define SYSCONFDIR "$x" 28512 _ACEOF 28513 28514 28515 28516 28517 28518 # Check whether --enable-developer was given. 28519 if test "${enable_developer+set}" = set; then : 28520 enableval=$enable_developer; 28521 fi 28522 28523 if test "X$enable_developer" = Xyes; then 28524 dwflags="-Werror" 28525 fi 28526 28527 WFLAGS_NOUNUSED="" 28528 WFLAGS_NOIMPLICITINT="" 28529 if test -z "$WFLAGS" -a "$GCC" = "yes"; then 28530 # -Wno-implicit-int for broken X11 headers 28531 # leave these out for now: 28532 # -Wcast-align doesn't work well on alpha osf/1 28533 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 28534 # -Wmissing-declarations -Wnested-externs 28535 # -Wstrict-overflow=5 28536 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 28537 WFLAGS_NOUNUSED="-Wno-unused" 28538 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 28539 fi 28540 28541 28542 28543 28544 28545 28546 28547 # Check whether --enable-heimdal-documentation was given. 28548 if test "${enable_heimdal_documentation+set}" = set; then : 28549 enableval=$enable_heimdal_documentation; 28550 fi 28551 28552 if test "$enable_heimdal_documentation" != no; then 28553 HEIMDAL_DOCUMENTATION_TRUE= 28554 HEIMDAL_DOCUMENTATION_FALSE='#' 28555 else 28556 HEIMDAL_DOCUMENTATION_TRUE='#' 28557 HEIMDAL_DOCUMENTATION_FALSE= 28558 fi 28559 28560 28561 ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile 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/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/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" 28562 28563 28564 cat >confcache <<\_ACEOF 28565 # This file is a shell script that caches the results of configure 28566 # tests run on this system so they can be shared between configure 28567 # scripts and configure runs, see configure's option --config-cache. 28568 # It is not useful on other systems. If it contains results you don't 28569 # want to keep, you may remove or edit it. 28570 # 28571 # config.status only pays attention to the cache file if you give it 28572 # the --recheck option to rerun configure. 28573 # 28574 # `ac_cv_env_foo' variables (set or unset) will be overridden when 28575 # loading this file, other *unset* `ac_cv_foo' will be assigned the 28576 # following values. 28577 28578 _ACEOF 28579 28580 # The following way of writing the cache mishandles newlines in values, 28581 # but we know of no workaround that is simple, portable, and efficient. 28582 # So, we kill variables containing newlines. 28583 # Ultrix sh set writes to stderr and can't be redirected directly, 28584 # and sets the high bit in the cache file unless we assign to the vars. 28585 ( 28586 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 28587 eval ac_val=\$$ac_var 28588 case $ac_val in #( 28589 *${as_nl}*) 28590 case $ac_var in #( 28591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 28592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 28593 esac 28594 case $ac_var in #( 28595 _ | IFS | as_nl) ;; #( 28596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 28597 *) { eval $ac_var=; unset $ac_var;} ;; 28598 esac ;; 28599 esac 28600 done 28601 28602 (set) 2>&1 | 28603 case $as_nl`(ac_space=' '; set) 2>&1` in #( 28604 *${as_nl}ac_space=\ *) 28605 # `set' does not quote correctly, so add quotes: double-quote 28606 # substitution turns \\\\ into \\, and sed turns \\ into \. 28607 sed -n \ 28608 "s/'/'\\\\''/g; 28609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28610 ;; #( 28611 *) 28612 # `set' quotes correctly as required by POSIX, so do not add quotes. 28613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 28614 ;; 28615 esac | 28616 sort 28617 ) | 28618 sed ' 28619 /^ac_cv_env_/b end 28620 t clear 28621 :clear 28622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 28623 t end 28624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28625 :end' >>confcache 28626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 28627 if test -w "$cache_file"; then 28628 test "x$cache_file" != "x/dev/null" && 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 28630 $as_echo "$as_me: updating cache $cache_file" >&6;} 28631 cat confcache >$cache_file 28632 else 28633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 28634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 28635 fi 28636 fi 28637 rm -f confcache 28638 28639 test "x$prefix" = xNONE && prefix=$ac_default_prefix 28640 # Let make expand exec_prefix. 28641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28642 28643 DEFS=-DHAVE_CONFIG_H 28644 28645 ac_libobjs= 28646 ac_ltlibobjs= 28647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 28648 # 1. Remove the extension, and $U if already installed. 28649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 28650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 28651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 28652 # will be set to the directory where LIBOBJS objects are built. 28653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 28654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 28655 done 28656 LIBOBJS=$ac_libobjs 28657 28658 LTLIBOBJS=$ac_ltlibobjs 28659 28660 28661 if test -n "$EXEEXT"; then 28662 am__EXEEXT_TRUE= 28663 am__EXEEXT_FALSE='#' 28664 else 28665 am__EXEEXT_TRUE='#' 28666 am__EXEEXT_FALSE= 28667 fi 28668 28669 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 28670 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 28671 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28672 fi 28673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 28674 as_fn_error "conditional \"AMDEP\" was never defined. 28675 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28676 fi 28677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 28678 as_fn_error "conditional \"am__fastdepCC\" was never defined. 28679 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28680 fi 28681 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 28682 as_fn_error "conditional \"AIX\" was never defined. 28683 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28684 fi 28685 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 28686 as_fn_error "conditional \"AIX4\" was never defined. 28687 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28688 fi 28689 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 28690 as_fn_error "conditional \"HAVE_DLOPEN\" was never defined. 28691 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28692 fi 28693 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 28694 as_fn_error "conditional \"AIX_DYNAMIC_AFS\" was never defined. 28695 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28696 fi 28697 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 28698 as_fn_error "conditional \"IRIX\" was never defined. 28699 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28700 fi 28701 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 28702 as_fn_error "conditional \"ENABLE_SHARED\" was never defined. 28703 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28704 fi 28705 if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then 28706 as_fn_error "conditional \"versionscript\" was never defined. 28707 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28708 fi 28709 if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then 28710 as_fn_error "conditional \"CROSS_COMPILE\" was never defined. 28711 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28712 fi 28713 if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then 28714 as_fn_error "conditional \"OPENLDAP_MODULE\" was never defined. 28715 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28716 fi 28717 if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then 28718 as_fn_error "conditional \"PKINIT\" was never defined. 28719 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28720 fi 28721 if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then 28722 as_fn_error "conditional \"HAVE_CAPNG\" was never defined. 28723 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28724 fi 28725 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then 28726 as_fn_error "conditional \"SQLITE3\" was never defined. 28727 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28728 fi 28729 if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then 28730 as_fn_error "conditional \"have_scc\" was never defined. 28731 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28732 fi 28733 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then 28734 as_fn_error "conditional \"KRB4\" was never defined. 28735 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28736 fi 28737 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 28738 as_fn_error "conditional \"KRB5\" was never defined. 28739 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28740 fi 28741 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 28742 as_fn_error "conditional \"do_roken_rename\" was never defined. 28743 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28744 fi 28745 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 28746 as_fn_error "conditional \"HAVE_OPENSSL\" was never defined. 28747 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28748 fi 28749 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 28750 as_fn_error "conditional \"DCE\" was never defined. 28751 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28752 fi 28753 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 28754 as_fn_error "conditional \"HAVE_DB1\" was never defined. 28755 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28756 fi 28757 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 28758 as_fn_error "conditional \"HAVE_DB3\" was never defined. 28759 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28760 fi 28761 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 28762 as_fn_error "conditional \"HAVE_NDBM\" was never defined. 28763 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28764 fi 28765 if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then 28766 as_fn_error "conditional \"HAVE_DBHEADER\" was never defined. 28767 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28768 fi 28769 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 28770 as_fn_error "conditional \"have_err_h\" was never defined. 28771 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28772 fi 28773 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 28774 as_fn_error "conditional \"have_ifaddrs_h\" was never defined. 28775 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28776 fi 28777 if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then 28778 as_fn_error "conditional \"have_search_h\" was never defined. 28779 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28780 fi 28781 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 28782 as_fn_error "conditional \"have_vis_h\" was never defined. 28783 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28784 fi 28785 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 28786 as_fn_error "conditional \"have_glob_h\" was never defined. 28787 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28788 fi 28789 if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then 28790 as_fn_error "conditional \"have_cgetent\" was never defined. 28791 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28792 fi 28793 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 28794 as_fn_error "conditional \"have_fnmatch_h\" was never defined. 28795 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28796 fi 28797 if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then 28798 as_fn_error "conditional \"have_socket_wrapper\" was never defined. 28799 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28800 fi 28801 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 28802 as_fn_error "conditional \"OTP\" was never defined. 28803 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28804 fi 28805 if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then 28806 as_fn_error "conditional \"have_gcd\" was never defined. 28807 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28808 fi 28809 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 28810 as_fn_error "conditional \"CATMAN\" was never defined. 28811 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28812 fi 28813 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 28814 as_fn_error "conditional \"HAVE_X\" was never defined. 28815 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28816 fi 28817 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then 28818 as_fn_error "conditional \"NEED_WRITEAUTH\" was never defined. 28819 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28820 fi 28821 if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then 28822 as_fn_error "conditional \"KCM\" was never defined. 28823 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28824 fi 28825 if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then 28826 as_fn_error "conditional \"FRAMEWORK_SECURITY\" was never defined. 28827 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28828 fi 28829 if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then 28830 as_fn_error "conditional \"LIBEDIT\" was never defined. 28831 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28832 fi 28833 if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then 28834 as_fn_error "conditional \"COM_ERR\" was never defined. 28835 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28836 fi 28837 if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then 28838 as_fn_error "conditional \"HEIMDAL_DOCUMENTATION\" was never defined. 28839 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28840 fi 28841 28842 : ${CONFIG_STATUS=./config.status} 28843 ac_write_fail=0 28844 ac_clean_files_save=$ac_clean_files 28845 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 28847 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 28848 as_write_fail=0 28849 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 28850 #! $SHELL 28851 # Generated by $as_me. 28852 # Run this file to recreate the current configuration. 28853 # Compiler output produced by configure, useful for debugging 28854 # configure, is in config.log if it exists. 28855 28856 debug=false 28857 ac_cs_recheck=false 28858 ac_cs_silent=false 28859 28860 SHELL=\${CONFIG_SHELL-$SHELL} 28861 export SHELL 28862 _ASEOF 28863 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 28864 ## -------------------- ## 28865 ## M4sh Initialization. ## 28866 ## -------------------- ## 28867 28868 # Be more Bourne compatible 28869 DUALCASE=1; export DUALCASE # for MKS sh 28870 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 28871 emulate sh 28872 NULLCMD=: 28873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28874 # is contrary to our usage. Disable this feature. 28875 alias -g '${1+"$@"}'='"$@"' 28876 setopt NO_GLOB_SUBST 28877 else 28878 case `(set -o) 2>/dev/null` in #( 28879 *posix*) : 28880 set -o posix ;; #( 28881 *) : 28882 ;; 28883 esac 28884 fi 28885 28886 28887 as_nl=' 28888 ' 28889 export as_nl 28890 # Printing a long string crashes Solaris 7 /usr/bin/printf. 28891 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 28892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 28893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 28894 # Prefer a ksh shell builtin over an external printf program on Solaris, 28895 # but without wasting forks for bash or zsh. 28896 if test -z "$BASH_VERSION$ZSH_VERSION" \ 28897 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 28898 as_echo='print -r --' 28899 as_echo_n='print -rn --' 28900 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 28901 as_echo='printf %s\n' 28902 as_echo_n='printf %s' 28903 else 28904 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 28905 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 28906 as_echo_n='/usr/ucb/echo -n' 28907 else 28908 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 28909 as_echo_n_body='eval 28910 arg=$1; 28911 case $arg in #( 28912 *"$as_nl"*) 28913 expr "X$arg" : "X\\(.*\\)$as_nl"; 28914 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 28915 esac; 28916 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 28917 ' 28918 export as_echo_n_body 28919 as_echo_n='sh -c $as_echo_n_body as_echo' 28920 fi 28921 export as_echo_body 28922 as_echo='sh -c $as_echo_body as_echo' 28923 fi 28924 28925 # The user is always right. 28926 if test "${PATH_SEPARATOR+set}" != set; then 28927 PATH_SEPARATOR=: 28928 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 28929 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 28930 PATH_SEPARATOR=';' 28931 } 28932 fi 28933 28934 28935 # IFS 28936 # We need space, tab and new line, in precisely that order. Quoting is 28937 # there to prevent editors from complaining about space-tab. 28938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 28939 # splitting by setting IFS to empty value.) 28940 IFS=" "" $as_nl" 28941 28942 # Find who we are. Look in the path if we contain no directory separator. 28943 case $0 in #(( 28944 *[\\/]* ) as_myself=$0 ;; 28945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28946 for as_dir in $PATH 28947 do 28948 IFS=$as_save_IFS 28949 test -z "$as_dir" && as_dir=. 28950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 28951 done 28952 IFS=$as_save_IFS 28953 28954 ;; 28955 esac 28956 # We did not find ourselves, most probably we were run as `sh COMMAND' 28957 # in which case we are not to be found in the path. 28958 if test "x$as_myself" = x; then 28959 as_myself=$0 28960 fi 28961 if test ! -f "$as_myself"; then 28962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 28963 exit 1 28964 fi 28965 28966 # Unset variables that we do not need and which cause bugs (e.g. in 28967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 28968 # suppresses any "Segmentation fault" message there. '((' could 28969 # trigger a bug in pdksh 5.2.14. 28970 for as_var in BASH_ENV ENV MAIL MAILPATH 28971 do eval test x\${$as_var+set} = xset \ 28972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 28973 done 28974 PS1='$ ' 28975 PS2='> ' 28976 PS4='+ ' 28977 28978 # NLS nuisances. 28979 LC_ALL=C 28980 export LC_ALL 28981 LANGUAGE=C 28982 export LANGUAGE 28983 28984 # CDPATH. 28985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28986 28987 28988 # as_fn_error ERROR [LINENO LOG_FD] 28989 # --------------------------------- 28990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 28991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 28992 # script with status $?, using 1 if that was 0. 28993 as_fn_error () 28994 { 28995 as_status=$?; test $as_status -eq 0 && as_status=1 28996 if test "$3"; then 28997 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 28998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 28999 fi 29000 $as_echo "$as_me: error: $1" >&2 29001 as_fn_exit $as_status 29002 } # as_fn_error 29003 29004 29005 # as_fn_set_status STATUS 29006 # ----------------------- 29007 # Set $? to STATUS, without forking. 29008 as_fn_set_status () 29009 { 29010 return $1 29011 } # as_fn_set_status 29012 29013 # as_fn_exit STATUS 29014 # ----------------- 29015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 29016 as_fn_exit () 29017 { 29018 set +e 29019 as_fn_set_status $1 29020 exit $1 29021 } # as_fn_exit 29022 29023 # as_fn_unset VAR 29024 # --------------- 29025 # Portably unset VAR. 29026 as_fn_unset () 29027 { 29028 { eval $1=; unset $1;} 29029 } 29030 as_unset=as_fn_unset 29031 # as_fn_append VAR VALUE 29032 # ---------------------- 29033 # Append the text in VALUE to the end of the definition contained in VAR. Take 29034 # advantage of any shell optimizations that allow amortized linear growth over 29035 # repeated appends, instead of the typical quadratic growth present in naive 29036 # implementations. 29037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 29038 eval 'as_fn_append () 29039 { 29040 eval $1+=\$2 29041 }' 29042 else 29043 as_fn_append () 29044 { 29045 eval $1=\$$1\$2 29046 } 29047 fi # as_fn_append 29048 29049 # as_fn_arith ARG... 29050 # ------------------ 29051 # Perform arithmetic evaluation on the ARGs, and store the result in the 29052 # global $as_val. Take advantage of shells that can avoid forks. The arguments 29053 # must be portable across $(()) and expr. 29054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 29055 eval 'as_fn_arith () 29056 { 29057 as_val=$(( $* )) 29058 }' 29059 else 29060 as_fn_arith () 29061 { 29062 as_val=`expr "$@" || test $? -eq 1` 29063 } 29064 fi # as_fn_arith 29065 29066 29067 if expr a : '\(a\)' >/dev/null 2>&1 && 29068 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29069 as_expr=expr 29070 else 29071 as_expr=false 29072 fi 29073 29074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29075 as_basename=basename 29076 else 29077 as_basename=false 29078 fi 29079 29080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29081 as_dirname=dirname 29082 else 29083 as_dirname=false 29084 fi 29085 29086 as_me=`$as_basename -- "$0" || 29087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29088 X"$0" : 'X\(//\)$' \| \ 29089 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29090 $as_echo X/"$0" | 29091 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29092 s//\1/ 29093 q 29094 } 29095 /^X\/\(\/\/\)$/{ 29096 s//\1/ 29097 q 29098 } 29099 /^X\/\(\/\).*/{ 29100 s//\1/ 29101 q 29102 } 29103 s/.*/./; q'` 29104 29105 # Avoid depending upon Character Ranges. 29106 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29109 as_cr_digits='0123456789' 29110 as_cr_alnum=$as_cr_Letters$as_cr_digits 29111 29112 ECHO_C= ECHO_N= ECHO_T= 29113 case `echo -n x` in #((((( 29114 -n*) 29115 case `echo 'xy\c'` in 29116 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29117 xy) ECHO_C='\c';; 29118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 29119 ECHO_T=' ';; 29120 esac;; 29121 *) 29122 ECHO_N='-n';; 29123 esac 29124 29125 rm -f conf$$ conf$$.exe conf$$.file 29126 if test -d conf$$.dir; then 29127 rm -f conf$$.dir/conf$$.file 29128 else 29129 rm -f conf$$.dir 29130 mkdir conf$$.dir 2>/dev/null 29131 fi 29132 if (echo >conf$$.file) 2>/dev/null; then 29133 if ln -s conf$$.file conf$$ 2>/dev/null; then 29134 as_ln_s='ln -s' 29135 # ... but there are two gotchas: 29136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29138 # In both cases, we have to default to `cp -p'. 29139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29140 as_ln_s='cp -p' 29141 elif ln conf$$.file conf$$ 2>/dev/null; then 29142 as_ln_s=ln 29143 else 29144 as_ln_s='cp -p' 29145 fi 29146 else 29147 as_ln_s='cp -p' 29148 fi 29149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29150 rmdir conf$$.dir 2>/dev/null 29151 29152 29153 # as_fn_mkdir_p 29154 # ------------- 29155 # Create "$as_dir" as a directory, including parents if necessary. 29156 as_fn_mkdir_p () 29157 { 29158 29159 case $as_dir in #( 29160 -*) as_dir=./$as_dir;; 29161 esac 29162 test -d "$as_dir" || eval $as_mkdir_p || { 29163 as_dirs= 29164 while :; do 29165 case $as_dir in #( 29166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29167 *) as_qdir=$as_dir;; 29168 esac 29169 as_dirs="'$as_qdir' $as_dirs" 29170 as_dir=`$as_dirname -- "$as_dir" || 29171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29172 X"$as_dir" : 'X\(//\)[^/]' \| \ 29173 X"$as_dir" : 'X\(//\)$' \| \ 29174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29175 $as_echo X"$as_dir" | 29176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29177 s//\1/ 29178 q 29179 } 29180 /^X\(\/\/\)[^/].*/{ 29181 s//\1/ 29182 q 29183 } 29184 /^X\(\/\/\)$/{ 29185 s//\1/ 29186 q 29187 } 29188 /^X\(\/\).*/{ 29189 s//\1/ 29190 q 29191 } 29192 s/.*/./; q'` 29193 test -d "$as_dir" && break 29194 done 29195 test -z "$as_dirs" || eval "mkdir $as_dirs" 29196 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 29197 29198 29199 } # as_fn_mkdir_p 29200 if mkdir -p . 2>/dev/null; then 29201 as_mkdir_p='mkdir -p "$as_dir"' 29202 else 29203 test -d ./-p && rmdir ./-p 29204 as_mkdir_p=false 29205 fi 29206 29207 if test -x / >/dev/null 2>&1; then 29208 as_test_x='test -x' 29209 else 29210 if ls -dL / >/dev/null 2>&1; then 29211 as_ls_L_option=L 29212 else 29213 as_ls_L_option= 29214 fi 29215 as_test_x=' 29216 eval sh -c '\'' 29217 if test -d "$1"; then 29218 test -d "$1/."; 29219 else 29220 case $1 in #( 29221 -*)set "./$1";; 29222 esac; 29223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 29224 ???[sx]*):;;*)false;;esac;fi 29225 '\'' sh 29226 ' 29227 fi 29228 as_executable_p=$as_test_x 29229 29230 # Sed expression to map a string onto a valid CPP name. 29231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29232 29233 # Sed expression to map a string onto a valid variable name. 29234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29235 29236 29237 exec 6>&1 29238 ## ----------------------------------- ## 29239 ## Main body of $CONFIG_STATUS script. ## 29240 ## ----------------------------------- ## 29241 _ASEOF 29242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29243 29244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29245 # Save the log message, to keep $0 and so on meaningful, and to 29246 # report actual input values of CONFIG_FILES etc. instead of their 29247 # values after options handling. 29248 ac_log=" 29249 This file was extended by Heimdal $as_me 1.5.2, which was 29250 generated by GNU Autoconf 2.65. Invocation command line was 29251 29252 CONFIG_FILES = $CONFIG_FILES 29253 CONFIG_HEADERS = $CONFIG_HEADERS 29254 CONFIG_LINKS = $CONFIG_LINKS 29255 CONFIG_COMMANDS = $CONFIG_COMMANDS 29256 $ $0 $@ 29257 29258 on `(hostname || uname -n) 2>/dev/null | sed 1q` 29259 " 29260 29261 _ACEOF 29262 29263 case $ac_config_files in *" 29264 "*) set x $ac_config_files; shift; ac_config_files=$*;; 29265 esac 29266 29267 case $ac_config_headers in *" 29268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29269 esac 29270 29271 29272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29273 # Files that config.status was made for. 29274 config_files="$ac_config_files" 29275 config_headers="$ac_config_headers" 29276 config_commands="$ac_config_commands" 29277 29278 _ACEOF 29279 29280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29281 ac_cs_usage="\ 29282 \`$as_me' instantiates files and other configuration actions 29283 from templates according to the current configuration. Unless the files 29284 and actions are specified as TAGs, all are instantiated by default. 29285 29286 Usage: $0 [OPTION]... [TAG]... 29287 29288 -h, --help print this help, then exit 29289 -V, --version print version number and configuration settings, then exit 29290 --config print configuration, then exit 29291 -q, --quiet, --silent 29292 do not print progress messages 29293 -d, --debug don't remove temporary files 29294 --recheck update $as_me by reconfiguring in the same conditions 29295 --file=FILE[:TEMPLATE] 29296 instantiate the configuration file FILE 29297 --header=FILE[:TEMPLATE] 29298 instantiate the configuration header FILE 29299 29300 Configuration files: 29301 $config_files 29302 29303 Configuration headers: 29304 $config_headers 29305 29306 Configuration commands: 29307 $config_commands 29308 29309 Report bugs to <heimdal-bugs@h5l.org>." 29310 29311 _ACEOF 29312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 29314 ac_cs_version="\\ 29315 Heimdal config.status 1.5.2 29316 configured by $0, generated by GNU Autoconf 2.65, 29317 with options \\"\$ac_cs_config\\" 29318 29319 Copyright (C) 2009 Free Software Foundation, Inc. 29320 This config.status script is free software; the Free Software Foundation 29321 gives unlimited permission to copy, distribute and modify it." 29322 29323 ac_pwd='$ac_pwd' 29324 srcdir='$srcdir' 29325 INSTALL='$INSTALL' 29326 MKDIR_P='$MKDIR_P' 29327 AWK='$AWK' 29328 test -n "\$AWK" || AWK=awk 29329 _ACEOF 29330 29331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29332 # The default lists apply if the user does not specify any file. 29333 ac_need_defaults=: 29334 while test $# != 0 29335 do 29336 case $1 in 29337 --*=*) 29338 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29339 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29340 ac_shift=: 29341 ;; 29342 *) 29343 ac_option=$1 29344 ac_optarg=$2 29345 ac_shift=shift 29346 ;; 29347 esac 29348 29349 case $ac_option in 29350 # Handling of the options. 29351 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29352 ac_cs_recheck=: ;; 29353 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29354 $as_echo "$ac_cs_version"; exit ;; 29355 --config | --confi | --conf | --con | --co | --c ) 29356 $as_echo "$ac_cs_config"; exit ;; 29357 --debug | --debu | --deb | --de | --d | -d ) 29358 debug=: ;; 29359 --file | --fil | --fi | --f ) 29360 $ac_shift 29361 case $ac_optarg in 29362 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29363 esac 29364 as_fn_append CONFIG_FILES " '$ac_optarg'" 29365 ac_need_defaults=false;; 29366 --header | --heade | --head | --hea ) 29367 $ac_shift 29368 case $ac_optarg in 29369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29370 esac 29371 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 29372 ac_need_defaults=false;; 29373 --he | --h) 29374 # Conflict between --help and --header 29375 as_fn_error "ambiguous option: \`$1' 29376 Try \`$0 --help' for more information.";; 29377 --help | --hel | -h ) 29378 $as_echo "$ac_cs_usage"; exit ;; 29379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29380 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29381 ac_cs_silent=: ;; 29382 29383 # This is an error. 29384 -*) as_fn_error "unrecognized option: \`$1' 29385 Try \`$0 --help' for more information." ;; 29386 29387 *) as_fn_append ac_config_targets " $1" 29388 ac_need_defaults=false ;; 29389 29390 esac 29391 shift 29392 done 29393 29394 ac_configure_extra_args= 29395 29396 if $ac_cs_silent; then 29397 exec 6>/dev/null 29398 ac_configure_extra_args="$ac_configure_extra_args --silent" 29399 fi 29400 29401 _ACEOF 29402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29403 if \$ac_cs_recheck; then 29404 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29405 shift 29406 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 29407 CONFIG_SHELL='$SHELL' 29408 export CONFIG_SHELL 29409 exec "\$@" 29410 fi 29411 29412 _ACEOF 29413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29414 exec 5>>config.log 29415 { 29416 echo 29417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29418 ## Running $as_me. ## 29419 _ASBOX 29420 $as_echo "$ac_log" 29421 } >&5 29422 29423 _ACEOF 29424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29425 # 29426 # INIT-COMMANDS 29427 # 29428 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 29429 29430 29431 # The HP-UX ksh and POSIX shell print the target directory to stdout 29432 # if CDPATH is set. 29433 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29434 29435 sed_quote_subst='$sed_quote_subst' 29436 double_quote_subst='$double_quote_subst' 29437 delay_variable_subst='$delay_variable_subst' 29438 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 29439 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 29440 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 29441 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 29442 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 29443 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 29444 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 29445 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 29446 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 29447 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 29448 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 29449 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 29450 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 29451 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 29452 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 29453 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 29454 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 29455 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 29456 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 29457 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 29458 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 29459 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 29460 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 29461 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 29462 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 29463 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 29464 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 29465 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 29466 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 29467 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 29468 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 29469 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 29470 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 29471 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 29472 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 29473 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 29474 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 29475 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 29476 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 29477 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 29478 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 29479 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 29480 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 29481 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 29482 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 29483 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 29484 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 29485 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 29486 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 29487 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 29488 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 29489 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 29490 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 29491 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 29492 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 29493 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"`' 29494 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 29495 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 29496 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 29497 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 29498 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 29499 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 29500 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 29501 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 29502 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 29503 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 29504 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 29505 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 29506 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 29507 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 29508 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 29509 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 29510 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 29511 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 29512 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 29513 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 29514 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 29515 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 29516 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 29517 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 29518 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 29519 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 29520 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 29521 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 29522 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 29523 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 29524 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 29525 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 29526 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 29527 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 29528 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 29529 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 29530 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 29531 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 29532 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 29533 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 29534 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 29535 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 29536 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 29537 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 29538 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 29539 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 29540 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 29541 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 29542 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 29543 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 29544 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 29545 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 29546 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 29547 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 29548 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 29549 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 29550 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 29551 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 29552 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 29553 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 29554 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 29555 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 29556 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 29557 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 29558 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 29559 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 29560 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 29561 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 29562 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 29563 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 29564 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 29565 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 29566 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 29567 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 29568 29569 LTCC='$LTCC' 29570 LTCFLAGS='$LTCFLAGS' 29571 compiler='$compiler_DEFAULT' 29572 29573 # A function that is used when there is no print builtin or printf. 29574 func_fallback_echo () 29575 { 29576 eval 'cat <<_LTECHO_EOF 29577 \$1 29578 _LTECHO_EOF' 29579 } 29580 29581 # Quote evaled strings. 29582 for var in SHELL \ 29583 ECHO \ 29584 SED \ 29585 GREP \ 29586 EGREP \ 29587 FGREP \ 29588 LD \ 29589 NM \ 29590 LN_S \ 29591 lt_SP2NL \ 29592 lt_NL2SP \ 29593 reload_flag \ 29594 OBJDUMP \ 29595 deplibs_check_method \ 29596 file_magic_cmd \ 29597 file_magic_glob \ 29598 want_nocaseglob \ 29599 DLLTOOL \ 29600 sharedlib_from_linklib_cmd \ 29601 AR \ 29602 AR_FLAGS \ 29603 archiver_list_spec \ 29604 STRIP \ 29605 RANLIB \ 29606 CC \ 29607 CFLAGS \ 29608 compiler \ 29609 lt_cv_sys_global_symbol_pipe \ 29610 lt_cv_sys_global_symbol_to_cdecl \ 29611 lt_cv_sys_global_symbol_to_c_name_address \ 29612 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 29613 nm_file_list_spec \ 29614 lt_prog_compiler_no_builtin_flag \ 29615 lt_prog_compiler_pic \ 29616 lt_prog_compiler_wl \ 29617 lt_prog_compiler_static \ 29618 lt_cv_prog_compiler_c_o \ 29619 need_locks \ 29620 MANIFEST_TOOL \ 29621 DSYMUTIL \ 29622 NMEDIT \ 29623 LIPO \ 29624 OTOOL \ 29625 OTOOL64 \ 29626 shrext_cmds \ 29627 export_dynamic_flag_spec \ 29628 whole_archive_flag_spec \ 29629 compiler_needs_object \ 29630 with_gnu_ld \ 29631 allow_undefined_flag \ 29632 no_undefined_flag \ 29633 hardcode_libdir_flag_spec \ 29634 hardcode_libdir_flag_spec_ld \ 29635 hardcode_libdir_separator \ 29636 exclude_expsyms \ 29637 include_expsyms \ 29638 file_list_spec \ 29639 variables_saved_for_relink \ 29640 libname_spec \ 29641 library_names_spec \ 29642 soname_spec \ 29643 install_override_mode \ 29644 finish_eval \ 29645 old_striplib \ 29646 striplib; do 29647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 29648 *[\\\\\\\`\\"\\\$]*) 29649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 29650 ;; 29651 *) 29652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 29653 ;; 29654 esac 29655 done 29656 29657 # Double-quote double-evaled strings. 29658 for var in reload_cmds \ 29659 old_postinstall_cmds \ 29660 old_postuninstall_cmds \ 29661 old_archive_cmds \ 29662 extract_expsyms_cmds \ 29663 old_archive_from_new_cmds \ 29664 old_archive_from_expsyms_cmds \ 29665 archive_cmds \ 29666 archive_expsym_cmds \ 29667 module_cmds \ 29668 module_expsym_cmds \ 29669 export_symbols_cmds \ 29670 prelink_cmds \ 29671 postlink_cmds \ 29672 postinstall_cmds \ 29673 postuninstall_cmds \ 29674 finish_cmds \ 29675 sys_lib_search_path_spec \ 29676 sys_lib_dlsearch_path_spec; do 29677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 29678 *[\\\\\\\`\\"\\\$]*) 29679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 29680 ;; 29681 *) 29682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 29683 ;; 29684 esac 29685 done 29686 29687 ac_aux_dir='$ac_aux_dir' 29688 xsi_shell='$xsi_shell' 29689 lt_shell_append='$lt_shell_append' 29690 29691 # See if we are running on zsh, and set the options which allow our 29692 # commands through without removal of \ escapes INIT. 29693 if test -n "\${ZSH_VERSION+set}" ; then 29694 setopt NO_GLOB_SUBST 29695 fi 29696 29697 29698 PACKAGE='$PACKAGE' 29699 VERSION='$VERSION' 29700 TIMESTAMP='$TIMESTAMP' 29701 RM='$RM' 29702 ofile='$ofile' 29703 29704 29705 29706 29707 _ACEOF 29708 29709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29710 29711 # Handling of arguments. 29712 for ac_config_target in $ac_config_targets 29713 do 29714 case $ac_config_target in 29715 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 29716 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 29717 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 29718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29719 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 29720 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 29721 "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;; 29722 "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;; 29723 "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 29724 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 29725 "base/Makefile") CONFIG_FILES="$CONFIG_FILES base/Makefile" ;; 29726 "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 29727 "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 29728 "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;; 29729 "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;; 29730 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 29731 "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;; 29732 "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 29733 "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;; 29734 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 29735 "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 29736 "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 29737 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 29738 "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 29739 "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 29740 "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 29741 "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;; 29742 "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 29743 "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;; 29744 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 29745 "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 29746 "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 29747 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 29748 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 29749 "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;; 29750 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 29751 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 29752 "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 29753 "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 29754 "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 29755 "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 29756 "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 29757 "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;; 29758 "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 29759 "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 29760 "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 29761 "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 29762 "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 29763 "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 29764 "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 29765 "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 29766 "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 29767 "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 29768 "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 29769 "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 29770 "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 29771 "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 29772 "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 29773 "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 29774 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 29775 "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;; 29776 "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;; 29777 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;; 29778 "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;; 29779 "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;; 29780 "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;; 29781 "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;; 29782 "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;; 29783 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 29784 "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;; 29785 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 29786 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 29787 29788 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 29789 esac 29790 done 29791 29792 29793 # If the user did not use the arguments to specify the items to instantiate, 29794 # then the envvar interface is used. Set only those that are not. 29795 # We use the long form for the default assignment because of an extremely 29796 # bizarre bug on SunOS 4.1.3. 29797 if $ac_need_defaults; then 29798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 29799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 29800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 29801 fi 29802 29803 # Have a temporary directory for convenience. Make it in the build tree 29804 # simply because there is no reason against having it here, and in addition, 29805 # creating and moving files from /tmp can sometimes cause problems. 29806 # Hook for its removal unless debugging. 29807 # Note that there is a small window in which the directory will not be cleaned: 29808 # after its creation but before its name has been assigned to `$tmp'. 29809 $debug || 29810 { 29811 tmp= 29812 trap 'exit_status=$? 29813 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 29814 ' 0 29815 trap 'as_fn_exit 1' 1 2 13 15 29816 } 29817 # Create a (secure) tmp directory for tmp files. 29818 29819 { 29820 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29821 test -n "$tmp" && test -d "$tmp" 29822 } || 29823 { 29824 tmp=./conf$$-$RANDOM 29825 (umask 077 && mkdir "$tmp") 29826 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 29827 29828 # Set up the scripts for CONFIG_FILES section. 29829 # No need to generate them if there are no CONFIG_FILES. 29830 # This happens for instance with `./config.status config.h'. 29831 if test -n "$CONFIG_FILES"; then 29832 29833 29834 ac_cr=`echo X | tr X '\015'` 29835 # On cygwin, bash can eat \r inside `` if the user requested igncr. 29836 # But we know of no other shell where ac_cr would be empty at this 29837 # point, so we can use a bashism as a fallback. 29838 if test "x$ac_cr" = x; then 29839 eval ac_cr=\$\'\\r\' 29840 fi 29841 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29843 ac_cs_awk_cr='\r' 29844 else 29845 ac_cs_awk_cr=$ac_cr 29846 fi 29847 29848 echo 'BEGIN {' >"$tmp/subs1.awk" && 29849 _ACEOF 29850 29851 29852 { 29853 echo "cat >conf$$subs.awk <<_ACEOF" && 29854 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29855 echo "_ACEOF" 29856 } >conf$$subs.sh || 29857 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 29858 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 29859 ac_delim='%!_!# ' 29860 for ac_last_try in false false false false false :; do 29861 . ./conf$$subs.sh || 29862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 29863 29864 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29865 if test $ac_delim_n = $ac_delim_num; then 29866 break 29867 elif $ac_last_try; then 29868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 29869 else 29870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29871 fi 29872 done 29873 rm -f conf$$subs.sh 29874 29875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29876 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 29877 _ACEOF 29878 sed -n ' 29879 h 29880 s/^/S["/; s/!.*/"]=/ 29881 p 29882 g 29883 s/^[^!]*!// 29884 :repl 29885 t repl 29886 s/'"$ac_delim"'$// 29887 t delim 29888 :nl 29889 h 29890 s/\(.\{148\}\)..*/\1/ 29891 t more1 29892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29893 p 29894 n 29895 b repl 29896 :more1 29897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29898 p 29899 g 29900 s/.\{148\}// 29901 t nl 29902 :delim 29903 h 29904 s/\(.\{148\}\)..*/\1/ 29905 t more2 29906 s/["\\]/\\&/g; s/^/"/; s/$/"/ 29907 p 29908 b 29909 :more2 29910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29911 p 29912 g 29913 s/.\{148\}// 29914 t delim 29915 ' <conf$$subs.awk | sed ' 29916 /^[^""]/{ 29917 N 29918 s/\n// 29919 } 29920 ' >>$CONFIG_STATUS || ac_write_fail=1 29921 rm -f conf$$subs.awk 29922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29923 _ACAWK 29924 cat >>"\$tmp/subs1.awk" <<_ACAWK && 29925 for (key in S) S_is_set[key] = 1 29926 FS = "" 29927 29928 } 29929 { 29930 line = $ 0 29931 nfields = split(line, field, "@") 29932 substed = 0 29933 len = length(field[1]) 29934 for (i = 2; i < nfields; i++) { 29935 key = field[i] 29936 keylen = length(key) 29937 if (S_is_set[key]) { 29938 value = S[key] 29939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 29940 len += length(value) + length(field[++i]) 29941 substed = 1 29942 } else 29943 len += 1 + keylen 29944 } 29945 29946 print line 29947 } 29948 29949 _ACAWK 29950 _ACEOF 29951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 29953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 29954 else 29955 cat 29956 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 29957 || as_fn_error "could not setup config files machinery" "$LINENO" 5 29958 _ACEOF 29959 29960 # VPATH may cause trouble with some makes, so we remove $(srcdir), 29961 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 29962 # trailing colons and then remove the whole line if VPATH becomes empty 29963 # (actually we leave an empty line to preserve line numbers). 29964 if test "x$srcdir" = x.; then 29965 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 29966 s/:*\$(srcdir):*/:/ 29967 s/:*\${srcdir}:*/:/ 29968 s/:*@srcdir@:*/:/ 29969 s/^\([^=]*=[ ]*\):*/\1/ 29970 s/:*$// 29971 s/^[^=]*=[ ]*$// 29972 }' 29973 fi 29974 29975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29976 fi # test -n "$CONFIG_FILES" 29977 29978 # Set up the scripts for CONFIG_HEADERS section. 29979 # No need to generate them if there are no CONFIG_HEADERS. 29980 # This happens for instance with `./config.status Makefile'. 29981 if test -n "$CONFIG_HEADERS"; then 29982 cat >"$tmp/defines.awk" <<\_ACAWK || 29983 BEGIN { 29984 _ACEOF 29985 29986 # Transform confdefs.h into an awk script `defines.awk', embedded as 29987 # here-document in config.status, that substitutes the proper values into 29988 # config.h.in to produce config.h. 29989 29990 # Create a delimiter string that does not exist in confdefs.h, to ease 29991 # handling of long lines. 29992 ac_delim='%!_!# ' 29993 for ac_last_try in false false :; do 29994 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 29995 if test -z "$ac_t"; then 29996 break 29997 elif $ac_last_try; then 29998 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 29999 else 30000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30001 fi 30002 done 30003 30004 # For the awk script, D is an array of macro values keyed by name, 30005 # likewise P contains macro parameters if any. Preserve backslash 30006 # newline sequences. 30007 30008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30009 sed -n ' 30010 s/.\{148\}/&'"$ac_delim"'/g 30011 t rset 30012 :rset 30013 s/^[ ]*#[ ]*define[ ][ ]*/ / 30014 t def 30015 d 30016 :def 30017 s/\\$// 30018 t bsnl 30019 s/["\\]/\\&/g 30020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30021 D["\1"]=" \3"/p 30022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30023 d 30024 :bsnl 30025 s/["\\]/\\&/g 30026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30027 D["\1"]=" \3\\\\\\n"\\/p 30028 t cont 30029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30030 t cont 30031 d 30032 :cont 30033 n 30034 s/.\{148\}/&'"$ac_delim"'/g 30035 t clear 30036 :clear 30037 s/\\$// 30038 t bsnlc 30039 s/["\\]/\\&/g; s/^/"/; s/$/"/p 30040 d 30041 :bsnlc 30042 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30043 b cont 30044 ' <confdefs.h | sed ' 30045 s/'"$ac_delim"'/"\\\ 30046 "/g' >>$CONFIG_STATUS || ac_write_fail=1 30047 30048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30049 for (key in D) D_is_set[key] = 1 30050 FS = "" 30051 } 30052 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30053 line = \$ 0 30054 split(line, arg, " ") 30055 if (arg[1] == "#") { 30056 defundef = arg[2] 30057 mac1 = arg[3] 30058 } else { 30059 defundef = substr(arg[1], 2) 30060 mac1 = arg[2] 30061 } 30062 split(mac1, mac2, "(") #) 30063 macro = mac2[1] 30064 prefix = substr(line, 1, index(line, defundef) - 1) 30065 if (D_is_set[macro]) { 30066 # Preserve the white space surrounding the "#". 30067 print prefix "define", macro P[macro] D[macro] 30068 next 30069 } else { 30070 # Replace #undef with comments. This is necessary, for example, 30071 # in the case of _POSIX_SOURCE, which is predefined and required 30072 # on some systems where configure will not decide to define it. 30073 if (defundef == "undef") { 30074 print "/*", prefix defundef, macro, "*/" 30075 next 30076 } 30077 } 30078 } 30079 { print } 30080 _ACAWK 30081 _ACEOF 30082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30083 as_fn_error "could not setup config headers machinery" "$LINENO" 5 30084 fi # test -n "$CONFIG_HEADERS" 30085 30086 30087 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 30088 shift 30089 for ac_tag 30090 do 30091 case $ac_tag in 30092 :[FHLC]) ac_mode=$ac_tag; continue;; 30093 esac 30094 case $ac_mode$ac_tag in 30095 :[FHL]*:*);; 30096 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 30097 :[FH]-) ac_tag=-:-;; 30098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30099 esac 30100 ac_save_IFS=$IFS 30101 IFS=: 30102 set x $ac_tag 30103 IFS=$ac_save_IFS 30104 shift 30105 ac_file=$1 30106 shift 30107 30108 case $ac_mode in 30109 :L) ac_source=$1;; 30110 :[FH]) 30111 ac_file_inputs= 30112 for ac_f 30113 do 30114 case $ac_f in 30115 -) ac_f="$tmp/stdin";; 30116 *) # Look for the file first in the build tree, then in the source tree 30117 # (if the path is not absolute). The absolute path cannot be DOS-style, 30118 # because $ac_f cannot contain `:'. 30119 test -f "$ac_f" || 30120 case $ac_f in 30121 [\\/$]*) false;; 30122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30123 esac || 30124 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 30125 esac 30126 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 30127 as_fn_append ac_file_inputs " '$ac_f'" 30128 done 30129 30130 # Let's still pretend it is `configure' which instantiates (i.e., don't 30131 # use $as_me), people would be surprised to read: 30132 # /* config.h. Generated by config.status. */ 30133 configure_input='Generated from '` 30134 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 30135 `' by configure.' 30136 if test x"$ac_file" != x-; then 30137 configure_input="$ac_file. $configure_input" 30138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 30139 $as_echo "$as_me: creating $ac_file" >&6;} 30140 fi 30141 # Neutralize special characters interpreted by sed in replacement strings. 30142 case $configure_input in #( 30143 *\&* | *\|* | *\\* ) 30144 ac_sed_conf_input=`$as_echo "$configure_input" | 30145 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30146 *) ac_sed_conf_input=$configure_input;; 30147 esac 30148 30149 case $ac_tag in 30150 *:-:* | *:-) cat >"$tmp/stdin" \ 30151 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 30152 esac 30153 ;; 30154 esac 30155 30156 ac_dir=`$as_dirname -- "$ac_file" || 30157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30158 X"$ac_file" : 'X\(//\)[^/]' \| \ 30159 X"$ac_file" : 'X\(//\)$' \| \ 30160 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30161 $as_echo X"$ac_file" | 30162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30163 s//\1/ 30164 q 30165 } 30166 /^X\(\/\/\)[^/].*/{ 30167 s//\1/ 30168 q 30169 } 30170 /^X\(\/\/\)$/{ 30171 s//\1/ 30172 q 30173 } 30174 /^X\(\/\).*/{ 30175 s//\1/ 30176 q 30177 } 30178 s/.*/./; q'` 30179 as_dir="$ac_dir"; as_fn_mkdir_p 30180 ac_builddir=. 30181 30182 case "$ac_dir" in 30183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30184 *) 30185 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 30186 # A ".." for each directory in $ac_dir_suffix. 30187 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30188 case $ac_top_builddir_sub in 30189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30191 esac ;; 30192 esac 30193 ac_abs_top_builddir=$ac_pwd 30194 ac_abs_builddir=$ac_pwd$ac_dir_suffix 30195 # for backward compatibility: 30196 ac_top_builddir=$ac_top_build_prefix 30197 30198 case $srcdir in 30199 .) # We are building in place. 30200 ac_srcdir=. 30201 ac_top_srcdir=$ac_top_builddir_sub 30202 ac_abs_top_srcdir=$ac_pwd ;; 30203 [\\/]* | ?:[\\/]* ) # Absolute name. 30204 ac_srcdir=$srcdir$ac_dir_suffix; 30205 ac_top_srcdir=$srcdir 30206 ac_abs_top_srcdir=$srcdir ;; 30207 *) # Relative name. 30208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30209 ac_top_srcdir=$ac_top_build_prefix$srcdir 30210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30211 esac 30212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30213 30214 30215 case $ac_mode in 30216 :F) 30217 # 30218 # CONFIG_FILE 30219 # 30220 30221 case $INSTALL in 30222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30223 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30224 esac 30225 ac_MKDIR_P=$MKDIR_P 30226 case $MKDIR_P in 30227 [\\/$]* | ?:[\\/]* ) ;; 30228 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 30229 esac 30230 _ACEOF 30231 30232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30233 # If the template does not know about datarootdir, expand it. 30234 # FIXME: This hack should be removed a few years after 2.60. 30235 ac_datarootdir_hack=; ac_datarootdir_seen= 30236 ac_sed_dataroot=' 30237 /datarootdir/ { 30238 p 30239 q 30240 } 30241 /@datadir@/p 30242 /@docdir@/p 30243 /@infodir@/p 30244 /@localedir@/p 30245 /@mandir@/p' 30246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30247 *datarootdir*) ac_datarootdir_seen=yes;; 30248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30251 _ACEOF 30252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30253 ac_datarootdir_hack=' 30254 s&@datadir@&$datadir&g 30255 s&@docdir@&$docdir&g 30256 s&@infodir@&$infodir&g 30257 s&@localedir@&$localedir&g 30258 s&@mandir@&$mandir&g 30259 s&\\\${datarootdir}&$datarootdir&g' ;; 30260 esac 30261 _ACEOF 30262 30263 # Neutralize VPATH when `$srcdir' = `.'. 30264 # Shell code in configure.ac might set extrasub. 30265 # FIXME: do we really want to maintain this feature? 30266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30267 ac_sed_extra="$ac_vpsub 30268 $extrasub 30269 _ACEOF 30270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30271 :t 30272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30273 s|@configure_input@|$ac_sed_conf_input|;t t 30274 s&@top_builddir@&$ac_top_builddir_sub&;t t 30275 s&@top_build_prefix@&$ac_top_build_prefix&;t t 30276 s&@srcdir@&$ac_srcdir&;t t 30277 s&@abs_srcdir@&$ac_abs_srcdir&;t t 30278 s&@top_srcdir@&$ac_top_srcdir&;t t 30279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30280 s&@builddir@&$ac_builddir&;t t 30281 s&@abs_builddir@&$ac_abs_builddir&;t t 30282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30283 s&@INSTALL@&$ac_INSTALL&;t t 30284 s&@MKDIR_P@&$ac_MKDIR_P&;t t 30285 $ac_datarootdir_hack 30286 " 30287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 30288 || as_fn_error "could not create $ac_file" "$LINENO" 5 30289 30290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30291 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 30292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30294 which seems to be undefined. Please make sure it is defined." >&5 30295 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30296 which seems to be undefined. Please make sure it is defined." >&2;} 30297 30298 rm -f "$tmp/stdin" 30299 case $ac_file in 30300 -) cat "$tmp/out" && rm -f "$tmp/out";; 30301 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 30302 esac \ 30303 || as_fn_error "could not create $ac_file" "$LINENO" 5 30304 ;; 30305 :H) 30306 # 30307 # CONFIG_HEADER 30308 # 30309 if test x"$ac_file" != x-; then 30310 { 30311 $as_echo "/* $configure_input */" \ 30312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 30313 } >"$tmp/config.h" \ 30314 || as_fn_error "could not create $ac_file" "$LINENO" 5 30315 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 30317 $as_echo "$as_me: $ac_file is unchanged" >&6;} 30318 else 30319 rm -f "$ac_file" 30320 mv "$tmp/config.h" "$ac_file" \ 30321 || as_fn_error "could not create $ac_file" "$LINENO" 5 30322 fi 30323 else 30324 $as_echo "/* $configure_input */" \ 30325 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 30326 || as_fn_error "could not create -" "$LINENO" 5 30327 fi 30328 # Compute "$ac_file"'s index in $config_headers. 30329 _am_arg="$ac_file" 30330 _am_stamp_count=1 30331 for _am_header in $config_headers :; do 30332 case $_am_header in 30333 $_am_arg | $_am_arg:* ) 30334 break ;; 30335 * ) 30336 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 30337 esac 30338 done 30339 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 30340 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30341 X"$_am_arg" : 'X\(//\)[^/]' \| \ 30342 X"$_am_arg" : 'X\(//\)$' \| \ 30343 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 30344 $as_echo X"$_am_arg" | 30345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30346 s//\1/ 30347 q 30348 } 30349 /^X\(\/\/\)[^/].*/{ 30350 s//\1/ 30351 q 30352 } 30353 /^X\(\/\/\)$/{ 30354 s//\1/ 30355 q 30356 } 30357 /^X\(\/\).*/{ 30358 s//\1/ 30359 q 30360 } 30361 s/.*/./; q'`/stamp-h$_am_stamp_count 30362 ;; 30363 30364 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 30365 $as_echo "$as_me: executing $ac_file commands" >&6;} 30366 ;; 30367 esac 30368 30369 30370 case $ac_file$ac_mode in 30371 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 30372 # Autoconf 2.62 quotes --file arguments for eval, but not when files 30373 # are listed without --file. Let's play safe and only enable the eval 30374 # if we detect the quoting. 30375 case $CONFIG_FILES in 30376 *\'*) eval set x "$CONFIG_FILES" ;; 30377 *) set x $CONFIG_FILES ;; 30378 esac 30379 shift 30380 for mf 30381 do 30382 # Strip MF so we end up with the name of the file. 30383 mf=`echo "$mf" | sed -e 's/:.*$//'` 30384 # Check whether this is an Automake generated Makefile or not. 30385 # We used to match only the files named `Makefile.in', but 30386 # some people rename them; so instead we look at the file content. 30387 # Grep'ing the first line is not enough: some people post-process 30388 # each Makefile.in and add a new line on top of each file to say so. 30389 # Grep'ing the whole file is not good either: AIX grep has a line 30390 # limit of 2048, but all sed's we know have understand at least 4000. 30391 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 30392 dirpart=`$as_dirname -- "$mf" || 30393 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30394 X"$mf" : 'X\(//\)[^/]' \| \ 30395 X"$mf" : 'X\(//\)$' \| \ 30396 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 30397 $as_echo X"$mf" | 30398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30399 s//\1/ 30400 q 30401 } 30402 /^X\(\/\/\)[^/].*/{ 30403 s//\1/ 30404 q 30405 } 30406 /^X\(\/\/\)$/{ 30407 s//\1/ 30408 q 30409 } 30410 /^X\(\/\).*/{ 30411 s//\1/ 30412 q 30413 } 30414 s/.*/./; q'` 30415 else 30416 continue 30417 fi 30418 # Extract the definition of DEPDIR, am__include, and am__quote 30419 # from the Makefile without running `make'. 30420 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 30421 test -z "$DEPDIR" && continue 30422 am__include=`sed -n 's/^am__include = //p' < "$mf"` 30423 test -z "am__include" && continue 30424 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 30425 # When using ansi2knr, U may be empty or an underscore; expand it 30426 U=`sed -n 's/^U = //p' < "$mf"` 30427 # Find all dependency output files, they are included files with 30428 # $(DEPDIR) in their names. We invoke sed twice because it is the 30429 # simplest approach to changing $(DEPDIR) to its actual value in the 30430 # expansion. 30431 for file in `sed -n " 30432 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 30433 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 30434 # Make sure the directory exists. 30435 test -f "$dirpart/$file" && continue 30436 fdir=`$as_dirname -- "$file" || 30437 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30438 X"$file" : 'X\(//\)[^/]' \| \ 30439 X"$file" : 'X\(//\)$' \| \ 30440 X"$file" : 'X\(/\)' \| . 2>/dev/null || 30441 $as_echo X"$file" | 30442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30443 s//\1/ 30444 q 30445 } 30446 /^X\(\/\/\)[^/].*/{ 30447 s//\1/ 30448 q 30449 } 30450 /^X\(\/\/\)$/{ 30451 s//\1/ 30452 q 30453 } 30454 /^X\(\/\).*/{ 30455 s//\1/ 30456 q 30457 } 30458 s/.*/./; q'` 30459 as_dir=$dirpart/$fdir; as_fn_mkdir_p 30460 # echo "creating $dirpart/$file" 30461 echo '# dummy' > "$dirpart/$file" 30462 done 30463 done 30464 } 30465 ;; 30466 "libtool":C) 30467 30468 # See if we are running on zsh, and set the options which allow our 30469 # commands through without removal of \ escapes. 30470 if test -n "${ZSH_VERSION+set}" ; then 30471 setopt NO_GLOB_SUBST 30472 fi 30473 30474 cfgfile="${ofile}T" 30475 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 30476 $RM "$cfgfile" 30477 30478 cat <<_LT_EOF >> "$cfgfile" 30479 #! $SHELL 30480 30481 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 30482 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 30483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 30484 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 30485 # 30486 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 30487 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 30488 # Inc. 30489 # Written by Gordon Matzigkeit, 1996 30490 # 30491 # This file is part of GNU Libtool. 30492 # 30493 # GNU Libtool is free software; you can redistribute it and/or 30494 # modify it under the terms of the GNU General Public License as 30495 # published by the Free Software Foundation; either version 2 of 30496 # the License, or (at your option) any later version. 30497 # 30498 # As a special exception to the GNU General Public License, 30499 # if you distribute this file as part of a program or library that 30500 # is built using GNU Libtool, you may include this file under the 30501 # same distribution terms that you use for the rest of that program. 30502 # 30503 # GNU Libtool is distributed in the hope that it will be useful, 30504 # but WITHOUT ANY WARRANTY; without even the implied warranty of 30505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30506 # GNU General Public License for more details. 30507 # 30508 # You should have received a copy of the GNU General Public License 30509 # along with GNU Libtool; see the file COPYING. If not, a copy 30510 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 30511 # obtained by writing to the Free Software Foundation, Inc., 30512 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 30513 30514 30515 # The names of the tagged configurations supported by this script. 30516 available_tags="" 30517 30518 # ### BEGIN LIBTOOL CONFIG 30519 30520 # Which release of libtool.m4 was used? 30521 macro_version=$macro_version 30522 macro_revision=$macro_revision 30523 30524 # Whether or not to build shared libraries. 30525 build_libtool_libs=$enable_shared 30526 30527 # Whether or not to build static libraries. 30528 build_old_libs=$enable_static 30529 30530 # What type of objects to build. 30531 pic_mode=$pic_mode 30532 30533 # Whether or not to optimize for fast installation. 30534 fast_install=$enable_fast_install 30535 30536 # Shell to use when invoking shell scripts. 30537 SHELL=$lt_SHELL 30538 30539 # An echo program that protects backslashes. 30540 ECHO=$lt_ECHO 30541 30542 # The host system. 30543 host_alias=$host_alias 30544 host=$host 30545 host_os=$host_os 30546 30547 # The build system. 30548 build_alias=$build_alias 30549 build=$build 30550 build_os=$build_os 30551 30552 # A sed program that does not truncate output. 30553 SED=$lt_SED 30554 30555 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 30556 Xsed="\$SED -e 1s/^X//" 30557 30558 # A grep program that handles long lines. 30559 GREP=$lt_GREP 30560 30561 # An ERE matcher. 30562 EGREP=$lt_EGREP 30563 30564 # A literal string matcher. 30565 FGREP=$lt_FGREP 30566 30567 # A BSD- or MS-compatible name lister. 30568 NM=$lt_NM 30569 30570 # Whether we need soft or hard links. 30571 LN_S=$lt_LN_S 30572 30573 # What is the maximum length of a command? 30574 max_cmd_len=$max_cmd_len 30575 30576 # Object file suffix (normally "o"). 30577 objext=$ac_objext 30578 30579 # Executable file suffix (normally ""). 30580 exeext=$exeext 30581 30582 # whether the shell understands "unset". 30583 lt_unset=$lt_unset 30584 30585 # turn spaces into newlines. 30586 SP2NL=$lt_lt_SP2NL 30587 30588 # turn newlines into spaces. 30589 NL2SP=$lt_lt_NL2SP 30590 30591 # convert \$build file names to \$host format. 30592 to_host_file_cmd=$lt_cv_to_host_file_cmd 30593 30594 # convert \$build files to toolchain format. 30595 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 30596 30597 # An object symbol dumper. 30598 OBJDUMP=$lt_OBJDUMP 30599 30600 # Method to check whether dependent libraries are shared objects. 30601 deplibs_check_method=$lt_deplibs_check_method 30602 30603 # Command to use when deplibs_check_method = "file_magic". 30604 file_magic_cmd=$lt_file_magic_cmd 30605 30606 # How to find potential files when deplibs_check_method = "file_magic". 30607 file_magic_glob=$lt_file_magic_glob 30608 30609 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 30610 want_nocaseglob=$lt_want_nocaseglob 30611 30612 # DLL creation program. 30613 DLLTOOL=$lt_DLLTOOL 30614 30615 # Command to associate shared and link libraries. 30616 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 30617 30618 # The archiver. 30619 AR=$lt_AR 30620 30621 # Flags to create an archive. 30622 AR_FLAGS=$lt_AR_FLAGS 30623 30624 # How to feed a file listing to the archiver. 30625 archiver_list_spec=$lt_archiver_list_spec 30626 30627 # A symbol stripping program. 30628 STRIP=$lt_STRIP 30629 30630 # Commands used to install an old-style archive. 30631 RANLIB=$lt_RANLIB 30632 old_postinstall_cmds=$lt_old_postinstall_cmds 30633 old_postuninstall_cmds=$lt_old_postuninstall_cmds 30634 30635 # Whether to use a lock for old archive extraction. 30636 lock_old_archive_extraction=$lock_old_archive_extraction 30637 30638 # A C compiler. 30639 LTCC=$lt_CC 30640 30641 # LTCC compiler flags. 30642 LTCFLAGS=$lt_CFLAGS 30643 30644 # Take the output of nm and produce a listing of raw symbols and C names. 30645 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 30646 30647 # Transform the output of nm in a proper C declaration. 30648 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 30649 30650 # Transform the output of nm in a C name address pair. 30651 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 30652 30653 # Transform the output of nm in a C name address pair when lib prefix is needed. 30654 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 30655 30656 # Specify filename containing input files for \$NM. 30657 nm_file_list_spec=$lt_nm_file_list_spec 30658 30659 # The root where to search for dependent libraries,and in which our libraries should be installed. 30660 lt_sysroot=$lt_sysroot 30661 30662 # The name of the directory that contains temporary libtool files. 30663 objdir=$objdir 30664 30665 # Used to examine libraries when file_magic_cmd begins with "file". 30666 MAGIC_CMD=$MAGIC_CMD 30667 30668 # Must we lock files when doing compilation? 30669 need_locks=$lt_need_locks 30670 30671 # Manifest tool. 30672 MANIFEST_TOOL=$lt_MANIFEST_TOOL 30673 30674 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 30675 DSYMUTIL=$lt_DSYMUTIL 30676 30677 # Tool to change global to local symbols on Mac OS X. 30678 NMEDIT=$lt_NMEDIT 30679 30680 # Tool to manipulate fat objects and archives on Mac OS X. 30681 LIPO=$lt_LIPO 30682 30683 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 30684 OTOOL=$lt_OTOOL 30685 30686 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 30687 OTOOL64=$lt_OTOOL64 30688 30689 # Old archive suffix (normally "a"). 30690 libext=$libext 30691 30692 # Shared library suffix (normally ".so"). 30693 shrext_cmds=$lt_shrext_cmds 30694 30695 # The commands to extract the exported symbol list from a shared archive. 30696 extract_expsyms_cmds=$lt_extract_expsyms_cmds 30697 30698 # Variables whose values should be saved in libtool wrapper scripts and 30699 # restored at link time. 30700 variables_saved_for_relink=$lt_variables_saved_for_relink 30701 30702 # Do we need the "lib" prefix for modules? 30703 need_lib_prefix=$need_lib_prefix 30704 30705 # Do we need a version for libraries? 30706 need_version=$need_version 30707 30708 # Library versioning type. 30709 version_type=$version_type 30710 30711 # Shared library runtime path variable. 30712 runpath_var=$runpath_var 30713 30714 # Shared library path variable. 30715 shlibpath_var=$shlibpath_var 30716 30717 # Is shlibpath searched before the hard-coded library search path? 30718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 30719 30720 # Format of library name prefix. 30721 libname_spec=$lt_libname_spec 30722 30723 # List of archive names. First name is the real one, the rest are links. 30724 # The last name is the one that the linker finds with -lNAME 30725 library_names_spec=$lt_library_names_spec 30726 30727 # The coded name of the library, if different from the real name. 30728 soname_spec=$lt_soname_spec 30729 30730 # Permission mode override for installation of shared libraries. 30731 install_override_mode=$lt_install_override_mode 30732 30733 # Command to use after installation of a shared archive. 30734 postinstall_cmds=$lt_postinstall_cmds 30735 30736 # Command to use after uninstallation of a shared archive. 30737 postuninstall_cmds=$lt_postuninstall_cmds 30738 30739 # Commands used to finish a libtool library installation in a directory. 30740 finish_cmds=$lt_finish_cmds 30741 30742 # As "finish_cmds", except a single script fragment to be evaled but 30743 # not shown. 30744 finish_eval=$lt_finish_eval 30745 30746 # Whether we should hardcode library paths into libraries. 30747 hardcode_into_libs=$hardcode_into_libs 30748 30749 # Compile-time system search path for libraries. 30750 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 30751 30752 # Run-time system search path for libraries. 30753 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 30754 30755 # Whether dlopen is supported. 30756 dlopen_support=$enable_dlopen 30757 30758 # Whether dlopen of programs is supported. 30759 dlopen_self=$enable_dlopen_self 30760 30761 # Whether dlopen of statically linked programs is supported. 30762 dlopen_self_static=$enable_dlopen_self_static 30763 30764 # Commands to strip libraries. 30765 old_striplib=$lt_old_striplib 30766 striplib=$lt_striplib 30767 30768 30769 # The linker used to build libraries. 30770 LD=$lt_LD 30771 30772 # How to create reloadable object files. 30773 reload_flag=$lt_reload_flag 30774 reload_cmds=$lt_reload_cmds 30775 30776 # Commands used to build an old-style archive. 30777 old_archive_cmds=$lt_old_archive_cmds 30778 30779 # A language specific compiler. 30780 CC=$lt_compiler 30781 30782 # Is the compiler the GNU compiler? 30783 with_gcc=$GCC 30784 30785 # Compiler flag to turn off builtin functions. 30786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 30787 30788 # Additional compiler flags for building library objects. 30789 pic_flag=$lt_lt_prog_compiler_pic 30790 30791 # How to pass a linker flag through the compiler. 30792 wl=$lt_lt_prog_compiler_wl 30793 30794 # Compiler flag to prevent dynamic linking. 30795 link_static_flag=$lt_lt_prog_compiler_static 30796 30797 # Does compiler simultaneously support -c and -o options? 30798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 30799 30800 # Whether or not to add -lc for building shared libraries. 30801 build_libtool_need_lc=$archive_cmds_need_lc 30802 30803 # Whether or not to disallow shared libs when runtime libs are static. 30804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 30805 30806 # Compiler flag to allow reflexive dlopens. 30807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 30808 30809 # Compiler flag to generate shared objects directly from archives. 30810 whole_archive_flag_spec=$lt_whole_archive_flag_spec 30811 30812 # Whether the compiler copes with passing no objects directly. 30813 compiler_needs_object=$lt_compiler_needs_object 30814 30815 # Create an old-style archive from a shared archive. 30816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 30817 30818 # Create a temporary old-style archive to link instead of a shared archive. 30819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 30820 30821 # Commands used to build a shared archive. 30822 archive_cmds=$lt_archive_cmds 30823 archive_expsym_cmds=$lt_archive_expsym_cmds 30824 30825 # Commands used to build a loadable module if different from building 30826 # a shared archive. 30827 module_cmds=$lt_module_cmds 30828 module_expsym_cmds=$lt_module_expsym_cmds 30829 30830 # Whether we are building with GNU ld or not. 30831 with_gnu_ld=$lt_with_gnu_ld 30832 30833 # Flag that allows shared libraries with undefined symbols to be built. 30834 allow_undefined_flag=$lt_allow_undefined_flag 30835 30836 # Flag that enforces no undefined symbols. 30837 no_undefined_flag=$lt_no_undefined_flag 30838 30839 # Flag to hardcode \$libdir into a binary during linking. 30840 # This must work even if \$libdir does not exist 30841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 30842 30843 # If ld is used when linking, flag to hardcode \$libdir into a binary 30844 # during linking. This must work even if \$libdir does not exist. 30845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 30846 30847 # Whether we need a single "-rpath" flag with a separated argument. 30848 hardcode_libdir_separator=$lt_hardcode_libdir_separator 30849 30850 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 30851 # DIR into the resulting binary. 30852 hardcode_direct=$hardcode_direct 30853 30854 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 30855 # DIR into the resulting binary and the resulting library dependency is 30856 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 30857 # library is relocated. 30858 hardcode_direct_absolute=$hardcode_direct_absolute 30859 30860 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 30861 # into the resulting binary. 30862 hardcode_minus_L=$hardcode_minus_L 30863 30864 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 30865 # into the resulting binary. 30866 hardcode_shlibpath_var=$hardcode_shlibpath_var 30867 30868 # Set to "yes" if building a shared library automatically hardcodes DIR 30869 # into the library and all subsequent libraries and executables linked 30870 # against it. 30871 hardcode_automatic=$hardcode_automatic 30872 30873 # Set to yes if linker adds runtime paths of dependent libraries 30874 # to runtime path list. 30875 inherit_rpath=$inherit_rpath 30876 30877 # Whether libtool must link a program against all its dependency libraries. 30878 link_all_deplibs=$link_all_deplibs 30879 30880 # Set to "yes" if exported symbols are required. 30881 always_export_symbols=$always_export_symbols 30882 30883 # The commands to list exported symbols. 30884 export_symbols_cmds=$lt_export_symbols_cmds 30885 30886 # Symbols that should not be listed in the preloaded symbols. 30887 exclude_expsyms=$lt_exclude_expsyms 30888 30889 # Symbols that must always be exported. 30890 include_expsyms=$lt_include_expsyms 30891 30892 # Commands necessary for linking programs (against libraries) with templates. 30893 prelink_cmds=$lt_prelink_cmds 30894 30895 # Commands necessary for finishing linking programs. 30896 postlink_cmds=$lt_postlink_cmds 30897 30898 # Specify filename containing input files. 30899 file_list_spec=$lt_file_list_spec 30900 30901 # How to hardcode a shared library path into an executable. 30902 hardcode_action=$hardcode_action 30903 30904 # ### END LIBTOOL CONFIG 30905 30906 _LT_EOF 30907 30908 case $host_os in 30909 aix3*) 30910 cat <<\_LT_EOF >> "$cfgfile" 30911 # AIX sometimes has problems with the GCC collect2 program. For some 30912 # reason, if we set the COLLECT_NAMES environment variable, the problems 30913 # vanish in a puff of smoke. 30914 if test "X${COLLECT_NAMES+set}" != Xset; then 30915 COLLECT_NAMES= 30916 export COLLECT_NAMES 30917 fi 30918 _LT_EOF 30919 ;; 30920 esac 30921 30922 30923 ltmain="$ac_aux_dir/ltmain.sh" 30924 30925 30926 # We use sed instead of cat because bash on DJGPP gets confused if 30927 # if finds mixed CR/LF and LF-only lines. Since sed operates in 30928 # text mode, it properly converts lines to CR/LF. This bash problem 30929 # is reportedly fixed, but why not run on old versions too? 30930 sed '$q' "$ltmain" >> "$cfgfile" \ 30931 || (rm -f "$cfgfile"; exit 1) 30932 30933 if test x"$xsi_shell" = xyes; then 30934 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 30935 func_dirname ()\ 30936 {\ 30937 \ case ${1} in\ 30938 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 30939 \ * ) func_dirname_result="${3}" ;;\ 30940 \ esac\ 30941 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 30942 && mv -f "$cfgfile.tmp" "$cfgfile" \ 30943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 30944 test 0 -eq $? || _lt_function_replace_fail=: 30945 30946 30947 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 30948 func_basename ()\ 30949 {\ 30950 \ func_basename_result="${1##*/}"\ 30951 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 30952 && mv -f "$cfgfile.tmp" "$cfgfile" \ 30953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 30954 test 0 -eq $? || _lt_function_replace_fail=: 30955 30956 30957 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 30958 func_dirname_and_basename ()\ 30959 {\ 30960 \ case ${1} in\ 30961 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 30962 \ * ) func_dirname_result="${3}" ;;\ 30963 \ esac\ 30964 \ func_basename_result="${1##*/}"\ 30965 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 30966 && mv -f "$cfgfile.tmp" "$cfgfile" \ 30967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 30968 test 0 -eq $? || _lt_function_replace_fail=: 30969 30970 30971 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 30972 func_stripname ()\ 30973 {\ 30974 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 30975 \ # positional parameters, so assign one to ordinary parameter first.\ 30976 \ func_stripname_result=${3}\ 30977 \ func_stripname_result=${func_stripname_result#"${1}"}\ 30978 \ func_stripname_result=${func_stripname_result%"${2}"}\ 30979 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 30980 && mv -f "$cfgfile.tmp" "$cfgfile" \ 30981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 30982 test 0 -eq $? || _lt_function_replace_fail=: 30983 30984 30985 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 30986 func_split_long_opt ()\ 30987 {\ 30988 \ func_split_long_opt_name=${1%%=*}\ 30989 \ func_split_long_opt_arg=${1#*=}\ 30990 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 30991 && mv -f "$cfgfile.tmp" "$cfgfile" \ 30992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 30993 test 0 -eq $? || _lt_function_replace_fail=: 30994 30995 30996 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 30997 func_split_short_opt ()\ 30998 {\ 30999 \ func_split_short_opt_arg=${1#??}\ 31000 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 31001 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 31002 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31004 test 0 -eq $? || _lt_function_replace_fail=: 31005 31006 31007 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 31008 func_lo2o ()\ 31009 {\ 31010 \ case ${1} in\ 31011 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 31012 \ *) func_lo2o_result=${1} ;;\ 31013 \ esac\ 31014 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 31015 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31017 test 0 -eq $? || _lt_function_replace_fail=: 31018 31019 31020 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 31021 func_xform ()\ 31022 {\ 31023 func_xform_result=${1%.*}.lo\ 31024 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 31025 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31027 test 0 -eq $? || _lt_function_replace_fail=: 31028 31029 31030 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 31031 func_arith ()\ 31032 {\ 31033 func_arith_result=$(( $* ))\ 31034 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 31035 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31037 test 0 -eq $? || _lt_function_replace_fail=: 31038 31039 31040 sed -e '/^func_len ()$/,/^} # func_len /c\ 31041 func_len ()\ 31042 {\ 31043 func_len_result=${#1}\ 31044 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 31045 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31047 test 0 -eq $? || _lt_function_replace_fail=: 31048 31049 fi 31050 31051 if test x"$lt_shell_append" = xyes; then 31052 sed -e '/^func_append ()$/,/^} # func_append /c\ 31053 func_append ()\ 31054 {\ 31055 eval "${1}+=\\${2}"\ 31056 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 31057 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31059 test 0 -eq $? || _lt_function_replace_fail=: 31060 31061 31062 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 31063 func_append_quoted ()\ 31064 {\ 31065 \ func_quote_for_eval "${2}"\ 31066 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 31067 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 31068 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31070 test 0 -eq $? || _lt_function_replace_fail=: 31071 31072 31073 # Save a `func_append' function call where possible by direct use of '+=' 31074 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 31075 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31077 test 0 -eq $? || _lt_function_replace_fail=: 31078 else 31079 # Save a `func_append' function call even when '+=' is not available 31080 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 31081 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31083 test 0 -eq $? || _lt_function_replace_fail=: 31084 fi 31085 31086 if test x"$_lt_function_replace_fail" = x":"; then 31087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 31088 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 31089 fi 31090 31091 31092 mv -f "$cfgfile" "$ofile" || 31093 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 31094 chmod +x "$ofile" 31095 31096 ;; 31097 31098 esac 31099 done # for ac_tag 31100 31101 31102 as_fn_exit 0 31103 _ACEOF 31104 ac_clean_files=$ac_clean_files_save 31105 31106 test $ac_write_fail = 0 || 31107 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 31108 31109 31110 # configure is writing to config.log, and then calls config.status. 31111 # config.status does its own redirection, appending to config.log. 31112 # Unfortunately, on DOS this fails, as config.log is still kept open 31113 # by configure, so config.status won't be able to write to it; its 31114 # output is simply discarded. So we exec the FD to /dev/null, 31115 # effectively closing config.log, so it can be properly (re)opened and 31116 # appended to by config.status. When coming back to configure, we 31117 # need to make the FD available again. 31118 if test "$no_create" != yes; then 31119 ac_cs_success=: 31120 ac_config_status_args= 31121 test "$silent" = yes && 31122 ac_config_status_args="$ac_config_status_args --quiet" 31123 exec 5>/dev/null 31124 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 31125 exec 5>>config.log 31126 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 31127 # would make configure fail if this is the last instruction. 31128 $ac_cs_success || as_fn_exit $? 31129 fi 31130 31131 # 31132 # CONFIG_SUBDIRS section. 31133 # 31134 if test "$no_recursion" != yes; then 31135 31136 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 31137 # so they do not pile up. 31138 ac_sub_configure_args= 31139 ac_prev= 31140 eval "set x $ac_configure_args" 31141 shift 31142 for ac_arg 31143 do 31144 if test -n "$ac_prev"; then 31145 ac_prev= 31146 continue 31147 fi 31148 case $ac_arg in 31149 -cache-file | --cache-file | --cache-fil | --cache-fi \ 31150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 31151 ac_prev=cache_file ;; 31152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 31153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 31154 | --c=*) 31155 ;; 31156 --config-cache | -C) 31157 ;; 31158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 31159 ac_prev=srcdir ;; 31160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 31161 ;; 31162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 31163 ac_prev=prefix ;; 31164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 31165 ;; 31166 --disable-option-checking) 31167 ;; 31168 *) 31169 case $ac_arg in 31170 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 31171 esac 31172 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 31173 esac 31174 done 31175 31176 # Always prepend --prefix to ensure using the same prefix 31177 # in subdir configurations. 31178 ac_arg="--prefix=$prefix" 31179 case $ac_arg in 31180 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 31181 esac 31182 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 31183 31184 # Pass --silent 31185 if test "$silent" = yes; then 31186 ac_sub_configure_args="--silent $ac_sub_configure_args" 31187 fi 31188 31189 # Always prepend --disable-option-checking to silence warnings, since 31190 # different subdirs can have different --enable and --with options. 31191 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 31192 31193 ac_popdir=`pwd` 31194 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 31195 31196 # Do not complain, so a configure script can configure whichever 31197 # parts of a large source tree are present. 31198 test -d "$srcdir/$ac_dir" || continue 31199 31200 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 31201 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 31202 $as_echo "$ac_msg" >&6 31203 as_dir="$ac_dir"; as_fn_mkdir_p 31204 ac_builddir=. 31205 31206 case "$ac_dir" in 31207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31208 *) 31209 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31210 # A ".." for each directory in $ac_dir_suffix. 31211 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31212 case $ac_top_builddir_sub in 31213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31215 esac ;; 31216 esac 31217 ac_abs_top_builddir=$ac_pwd 31218 ac_abs_builddir=$ac_pwd$ac_dir_suffix 31219 # for backward compatibility: 31220 ac_top_builddir=$ac_top_build_prefix 31221 31222 case $srcdir in 31223 .) # We are building in place. 31224 ac_srcdir=. 31225 ac_top_srcdir=$ac_top_builddir_sub 31226 ac_abs_top_srcdir=$ac_pwd ;; 31227 [\\/]* | ?:[\\/]* ) # Absolute name. 31228 ac_srcdir=$srcdir$ac_dir_suffix; 31229 ac_top_srcdir=$srcdir 31230 ac_abs_top_srcdir=$srcdir ;; 31231 *) # Relative name. 31232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31233 ac_top_srcdir=$ac_top_build_prefix$srcdir 31234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31235 esac 31236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31237 31238 31239 cd "$ac_dir" 31240 31241 # Check for guested configure; otherwise get Cygnus style configure. 31242 if test -f "$ac_srcdir/configure.gnu"; then 31243 ac_sub_configure=$ac_srcdir/configure.gnu 31244 elif test -f "$ac_srcdir/configure"; then 31245 ac_sub_configure=$ac_srcdir/configure 31246 elif test -f "$ac_srcdir/configure.in"; then 31247 # This should be Cygnus configure. 31248 ac_sub_configure=$ac_aux_dir/configure 31249 else 31250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 31251 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 31252 ac_sub_configure= 31253 fi 31254 31255 # The recursion is here. 31256 if test -n "$ac_sub_configure"; then 31257 # Make the cache file name correct relative to the subdirectory. 31258 case $cache_file in 31259 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 31260 *) # Relative name. 31261 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 31262 esac 31263 31264 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 31265 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 31266 # The eval makes quoting arguments work. 31267 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 31268 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 31269 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 31270 fi 31271 31272 cd "$ac_popdir" 31273 done 31274 fi 31275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 31276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 31277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 31278 fi 31279 31280 31281 31282 cat > include/newversion.h.in <<EOF 31283 #ifndef VERSION_HIDDEN 31284 #define VERSION_HIDDEN 31285 #endif 31286 VERSION_HIDDEN const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$"; 31287 VERSION_HIDDEN const char *heimdal_version = "Heimdal 1.5.2"; 31288 EOF 31289 31290 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 31291 echo "include/version.h is unchanged" 31292 rm -f include/newversion.h.in 31293 else 31294 echo "creating include/version.h" 31295 User=${USER-${LOGNAME}} 31296 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 31297 Date=`date` 31298 mv -f include/newversion.h.in include/version.h.in 31299 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 31300 fi 31301